hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
5075a5097a61b674035f729519e126cb8f5c9b76
15,683
py
Python
SVGPs/kernels.py
vincentadam87/SVGPs
0de1194bf0f24997148dfce0cd6fbffae16fb3bc
[ "Apache-2.0" ]
3
2017-09-28T21:02:58.000Z
2018-02-06T17:58:48.000Z
SVGPs/kernels.py
vincentadam87/SVGPs
0de1194bf0f24997148dfce0cd6fbffae16fb3bc
[ "Apache-2.0" ]
null
null
null
SVGPs/kernels.py
vincentadam87/SVGPs
0de1194bf0f24997148dfce0cd6fbffae16fb3bc
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 James Hensman, alexggmatthews # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
38.723457
124
0.58184
14,757
0.940955
0
0
0
0
0
0
4,633
0.295415
5078031a29f9c615ac065fdda79ac390f846ff12
1,708
py
Python
setup.py
schoenemeyer/pyheatmagic
c7e1dbaf1ff01fc990cd519f93449cae20fc2bab
[ "MIT" ]
null
null
null
setup.py
schoenemeyer/pyheatmagic
c7e1dbaf1ff01fc990cd519f93449cae20fc2bab
[ "MIT" ]
null
null
null
setup.py
schoenemeyer/pyheatmagic
c7e1dbaf1ff01fc990cd519f93449cae20fc2bab
[ "MIT" ]
null
null
null
#!/usr/bin/env python try: from setuptools import setup except ImportError: from distutils.core import setup from os import path here = path.abspath(path.dirname(__file__)) # Get the long description from the README file with open(path.join(here, "README.rst")) as f: long_description = f.read() setup( ...
27.548387
71
0.597775
0
0
0
0
0
0
0
0
961
0.562646
507808c6821aee8867cf4c8684a2d08868e253a3
1,104
py
Python
certificator/meetup/__init__.py
lamenezes/certificator
fdb3d6f31499da8705de5453b8f55c0d313761bd
[ "MIT" ]
19
2017-09-26T14:03:33.000Z
2021-09-11T18:18:53.000Z
certificator/meetup/__init__.py
lamenezes/certificator
fdb3d6f31499da8705de5453b8f55c0d313761bd
[ "MIT" ]
12
2017-10-01T20:10:51.000Z
2019-05-22T01:39:48.000Z
certificator/meetup/__init__.py
lamenezes/certificator
fdb3d6f31499da8705de5453b8f55c0d313761bd
[ "MIT" ]
5
2017-10-24T22:14:26.000Z
2021-09-11T18:18:55.000Z
from datetime import datetime as dt from .client import MeetupClient from ..certificator import BaseCertificator from .models import Event class MeetupCertificator(BaseCertificator): def __init__(self, urlname, event_id, api_key, **kwargs): super().__init__(**kwargs) self.urlname = urlname ...
32.470588
85
0.624094
961
0.870471
0
0
693
0.627717
0
0
106
0.096014
507882446718b2c00a42bfdd52f4470e8480586d
5,583
py
Python
kolab/yk/yk2.py
KuramitsuLab/kolab
91fa4bae4a440a15291ba2d2690e4e335cbfd21e
[ "MIT" ]
null
null
null
kolab/yk/yk2.py
KuramitsuLab/kolab
91fa4bae4a440a15291ba2d2690e4e335cbfd21e
[ "MIT" ]
1
2021-11-14T05:38:27.000Z
2021-11-14T05:38:27.000Z
kolab/yk/yk2.py
KuramitsuLab/kolab
91fa4bae4a440a15291ba2d2690e4e335cbfd21e
[ "MIT" ]
7
2020-11-02T13:05:44.000Z
2022-01-09T11:06:04.000Z
from os import read import random import sys import pegtree as pg import argparse import csv from pegtree.optimizer import optimize peg = pg.grammar('yk.tpeg') parse = pg.generate(peg) parser = argparse.ArgumentParser(description='yk for Parameter Handling') parser.add_argument('--notConv', action='store_true') # ...
32.649123
111
0.506538
0
0
0
0
0
0
0
0
764
0.132708
5078b6e119c9edbe09ab52c04f0e4fca017f3a0f
3,491
py
Python
Lesson_6_Homework.py
verafes/python_training
3cf989e5924d40f78f218de323c07efa85f2edcf
[ "Apache-2.0" ]
null
null
null
Lesson_6_Homework.py
verafes/python_training
3cf989e5924d40f78f218de323c07efa85f2edcf
[ "Apache-2.0" ]
null
null
null
Lesson_6_Homework.py
verafes/python_training
3cf989e5924d40f78f218de323c07efa85f2edcf
[ "Apache-2.0" ]
null
null
null
# Homework #6. Loops print("--- Task #1. 10 monkeys") # Task #1. Write a program that output the following string: "1 monkey 2 monkeys ... 10 monkeys". for x in range(1, 11): if x == 1: monkey = f"{x} monkey " else: monkey = monkey + f"{x} monkeys " print(monkey.strip()) print("\n--- Task #2. Countdow...
33.247619
274
0.630765
0
0
0
0
0
0
0
0
2,359
0.675738
5078d56ccc790f70f1e43a28737794a0f83dfcac
1,022
py
Python
creel_portal/api/filters/FN125Tag_Filter.py
AdamCottrill/CreelPortal
5ec867c4f11b4231c112e8209116b6b96c2830ec
[ "MIT" ]
null
null
null
creel_portal/api/filters/FN125Tag_Filter.py
AdamCottrill/CreelPortal
5ec867c4f11b4231c112e8209116b6b96c2830ec
[ "MIT" ]
null
null
null
creel_portal/api/filters/FN125Tag_Filter.py
AdamCottrill/CreelPortal
5ec867c4f11b4231c112e8209116b6b96c2830ec
[ "MIT" ]
null
null
null
import django_filters from .filter_utils import ValueInFilter from ...models import FN125_Tag from .FishAttr_Filter import FishAttrFilters class FN125TagFilter(FishAttrFilters): """A filter set class for lamprey data. Inherits all of the filters in FishAttrs and add some that are specific to Tag attribute...
30.969697
74
0.736791
876
0.857143
0
0
0
0
0
0
354
0.34638
50798cd80915d992ba6dd1be2547207b24526dd0
858
py
Python
testing/test_file_path.py
xapple/autopaths
4b9bdf220454c38d53c90e2375c00eee036dd02b
[ "MIT" ]
null
null
null
testing/test_file_path.py
xapple/autopaths
4b9bdf220454c38d53c90e2375c00eee036dd02b
[ "MIT" ]
null
null
null
testing/test_file_path.py
xapple/autopaths
4b9bdf220454c38d53c90e2375c00eee036dd02b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Some simple tests for the autopaths package. You can run this file like this: ipython -i -- ~/repos/autopaths/test/test_file_path.py """ # Built-in modules # import os, inspect # Get current directory (works always) # file_name = os.path.abspath((inspect.stack()...
26
79
0.564103
0
0
0
0
0
0
0
0
514
0.599068
507ab70263733fd377475d2677b804a7e98a6466
350
py
Python
RecoEgamma/EgammaPhotonProducers/python/propOppoMomentumWithMaterialForElectrons_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
RecoEgamma/EgammaPhotonProducers/python/propOppoMomentumWithMaterialForElectrons_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
RecoEgamma/EgammaPhotonProducers/python/propOppoMomentumWithMaterialForElectrons_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms import TrackingTools.MaterialEffects.OppositeMaterialPropagator_cfi #PropagatorWithMaterialESProducer oppositeToMomElePropagator = TrackingTools.MaterialEffects.OppositeMaterialPropagator_cfi.OppositeMaterialPropagator.clone( Mass = 0.000511, ComponentName = '...
38.888889
123
0.845714
0
0
0
0
0
0
0
0
62
0.177143
507af7b7c926d5ad374babb7e525c9985c6d28d6
155
py
Python
test/__init__.py
gjhiggins/rdflib-sqlalchemy
d4c057934cd2675083d3df943103bdffb20341d4
[ "BSD-3-Clause" ]
112
2015-02-21T15:56:34.000Z
2022-02-22T12:10:26.000Z
test/__init__.py
gjhiggins/rdflib-sqlalchemy
d4c057934cd2675083d3df943103bdffb20341d4
[ "BSD-3-Clause" ]
64
2015-01-22T12:40:11.000Z
2021-12-27T19:15:14.000Z
test/__init__.py
gjhiggins/rdflib-sqlalchemy
d4c057934cd2675083d3df943103bdffb20341d4
[ "BSD-3-Clause" ]
28
2015-06-22T08:06:58.000Z
2022-02-16T11:17:49.000Z
from rdflib import plugin from rdflib import store plugin.register( "SQLAlchemy", store.Store, "rdflib_sqlalchemy.store", "SQLAlchemy", )
15.5
30
0.703226
0
0
0
0
0
0
0
0
49
0.316129
507b62f01d2d7eb84fda5bfb12a25df2f50e5d9b
943
py
Python
Others/jsc/jsc2019-qual/b.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
2
2020-06-12T09:54:23.000Z
2021-05-04T01:34:07.000Z
Others/jsc/jsc2019-qual/b.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
961
2020-06-23T07:26:22.000Z
2022-03-31T21:34:52.000Z
Others/jsc/jsc2019-qual/b.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- def main(): n, k = map(int, input().split()) a = list(map(int, input().split())) mod = 10 ** 9 + 7 ans = 0 # See: # https://www.youtube.com/watch?v=JTH27weC38k # https://atcoder.jp/contests/jsc2019-qual/submissions/7107452 # Key Insight # 2つの...
19.645833
67
0.448568
0
0
0
0
0
0
0
0
495
0.436123
507cca4ec63870b93d1cdafab433d17c43eeaf55
1,494
py
Python
Python-Programs/dicord.py-bot-suggest-commands/main.py
adityaverma121/Simple-Programs
8450560b97f89e0fa3da16a623ad35c0b26409c9
[ "MIT" ]
71
2021-09-30T11:25:12.000Z
2021-10-03T11:33:22.000Z
Python-Programs/dicord.py-bot-suggest-commands/main.py
adityaverma121/Simple-Programs
8450560b97f89e0fa3da16a623ad35c0b26409c9
[ "MIT" ]
186
2021-09-30T12:25:16.000Z
2021-10-03T13:45:04.000Z
Python-Programs/dicord.py-bot-suggest-commands/main.py
adityaverma121/Simple-Programs
8450560b97f89e0fa3da16a623ad35c0b26409c9
[ "MIT" ]
385
2021-09-30T11:34:23.000Z
2021-10-03T13:41:00.000Z
import difflib import discord from discord.ext import commands from discord.ext.commands import CommandNotFound intents = discord.Intents.all() client = commands.Bot(command_prefix="+", intents=intents, help_command=None) @client.event async def on_ready(): print("Bot Online") @client.event async def on_comma...
28.730769
88
0.678715
0
0
0
0
253
0.169344
1,211
0.810576
91
0.06091
507e76ba862e5ec623301b68c6d97748d8e7260c
2,898
py
Python
hummingbot/connector/exchange/bitfinex/bitfinex_api_user_stream_data_source.py
joedomino874/hummingbot
cb3ee5a30a2feb0a55ceca9d200c59662d7e3057
[ "Apache-2.0" ]
37
2020-07-08T03:44:26.000Z
2022-01-16T12:35:26.000Z
hummingbot/connector/exchange/bitfinex/bitfinex_api_user_stream_data_source.py
joedomino874/hummingbot
cb3ee5a30a2feb0a55ceca9d200c59662d7e3057
[ "Apache-2.0" ]
17
2022-01-28T14:19:30.000Z
2022-03-31T08:54:28.000Z
hummingbot/connector/exchange/bitfinex/bitfinex_api_user_stream_data_source.py
joedomino874/hummingbot
cb3ee5a30a2feb0a55ceca9d200c59662d7e3057
[ "Apache-2.0" ]
17
2021-04-07T21:29:46.000Z
2022-02-03T02:01:04.000Z
import asyncio import logging import time from typing import Optional, List from hummingbot.core.data_type.user_stream_tracker_data_source import \ UserStreamTrackerDataSource from hummingbot.logger import HummingbotLogger from hummingbot.connector.exchange.bitfinex.bitfinex_order_book import BitfinexOrderBook fro...
37.153846
117
0.677709
2,302
0.794341
0
0
324
0.111801
922
0.31815
117
0.040373
5080d44c3782fcef3563b3dbf70986c2e7c13739
283
py
Python
test_mersenne.py
Crulzor/algorithms-python-intro-ex
b3c10eff978a2f0f20e41c6d5aba24746ec07076
[ "Apache-2.0" ]
null
null
null
test_mersenne.py
Crulzor/algorithms-python-intro-ex
b3c10eff978a2f0f20e41c6d5aba24746ec07076
[ "Apache-2.0" ]
null
null
null
test_mersenne.py
Crulzor/algorithms-python-intro-ex
b3c10eff978a2f0f20e41c6d5aba24746ec07076
[ "Apache-2.0" ]
null
null
null
from mersenne import generatePotentialMP, isPrime def test_generatePotentialMP(): assert(generatePotentialMP(2) == 3) assert(generatePotentialMP(1) ==1) def test_isPrime(): assert(isPrime(7)) assert(isPrime(2)) assert(isPrime(3)) assert(isPrime(4) == False)
25.727273
49
0.710247
0
0
0
0
0
0
0
0
0
0
50817a3d79676d6cf698802c15669fffcdb668b3
18,873
py
Python
sim21/provider/base.py
kpatvt/sim21
4cbbfcbef6371d3dc5404429545e003a48c69ba5
[ "Artistic-2.0" ]
7
2021-08-23T18:46:27.000Z
2022-01-26T07:10:22.000Z
sim21/provider/base.py
kpatvt/sim21
4cbbfcbef6371d3dc5404429545e003a48c69ba5
[ "Artistic-2.0" ]
null
null
null
sim21/provider/base.py
kpatvt/sim21
4cbbfcbef6371d3dc5404429545e003a48c69ba5
[ "Artistic-2.0" ]
null
null
null
import math import sys import numpy as np from numpy import ndarray from sim21.data import chemsep from sim21.data.chemsep_consts import GAS_CONSTANT from numba import njit from sim21.provider.generic import calc_ig_props from sim21.provider.flash.basic import basic_flash_temp_press_2phase from sim21.provider.flash.i...
45.808252
128
0.612303
17,864
0.946537
0
0
779
0.041276
0
0
852
0.045144
5081e2e48236509a27ddba158c1b708d27b5b395
2,516
py
Python
server/routers/auth.py
CraftyChimera/nittfest-site
71754a0f282dff247e9b5ef8bc992718c6643576
[ "MIT" ]
null
null
null
server/routers/auth.py
CraftyChimera/nittfest-site
71754a0f282dff247e9b5ef8bc992718c6643576
[ "MIT" ]
null
null
null
server/routers/auth.py
CraftyChimera/nittfest-site
71754a0f282dff247e9b5ef8bc992718c6643576
[ "MIT" ]
null
null
null
""" Auth route """ import requests from fastapi import APIRouter, HTTPException from fastapi.param_functions import Depends from sqlalchemy.orm import Session from config.database import get_database from config.logger import logger from config.settings import settings from server.controllers.auth import get_departme...
30.682927
78
0.595787
0
0
0
0
2,095
0.832671
2,069
0.822337
557
0.221383
50826185ee7d341557b552bde864d1a94b521ad3
3,480
py
Python
isc_dhcp_leases/test_lease6.py
dholl/python-isc-dhcp-leases
7bd07a3a4a7965bd7a6e0a45de7b30914e1bbced
[ "MIT" ]
111
2015-02-11T21:36:40.000Z
2022-03-18T13:36:12.000Z
isc_dhcp_leases/test_lease6.py
dholl/python-isc-dhcp-leases
7bd07a3a4a7965bd7a6e0a45de7b30914e1bbced
[ "MIT" ]
36
2015-05-05T12:04:07.000Z
2021-06-17T12:58:30.000Z
isc_dhcp_leases/test_lease6.py
dholl/python-isc-dhcp-leases
7bd07a3a4a7965bd7a6e0a45de7b30914e1bbced
[ "MIT" ]
52
2015-05-02T19:31:20.000Z
2022-03-18T13:36:29.000Z
import datetime from unittest import TestCase from isc_dhcp_leases.iscdhcpleases import Lease6, utc from freezegun import freeze_time __author__ = 'Martijn Braam <martijn@brixit.nl>' class TestLease6(TestCase): def setUp(self): self.lease_time = datetime.datetime(2015, 8, 18, 16, 55, 37, tzinfo=utc) ...
43.5
107
0.60977
3,293
0.946264
0
0
92
0.026437
0
0
1,051
0.302011
5082b9694adff95b4f7e54e0b6bed0eb02d39395
7,599
py
Python
dril_pack/dril.py
RuohanW/il_baseline_fork
824d5117e573292e707d648b087f1e10253cc8d6
[ "MIT" ]
null
null
null
dril_pack/dril.py
RuohanW/il_baseline_fork
824d5117e573292e707d648b087f1e10253cc8d6
[ "MIT" ]
null
null
null
dril_pack/dril.py
RuohanW/il_baseline_fork
824d5117e573292e707d648b087f1e10253cc8d6
[ "MIT" ]
null
null
null
import os import numpy as np import torch import gym import pandas as pd from stable_baselines3.common.running_mean_std import RunningMeanStd from collections import defaultdict from torch.utils.data import DataLoader, TensorDataset # This file creates the reward function used by dril. Both reinforcement algorithms...
44.964497
115
0.614818
7,216
0.949599
0
0
0
0
0
0
826
0.108699
5086e67eb9871f894ec3e82717bcf87e2d9b440a
20,226
py
Python
graphlearn/python/values.py
hansugu/graph-learn
d20edf7734cc0246a7e38dd8c553237b04c6b897
[ "Apache-2.0" ]
1
2020-03-30T07:49:22.000Z
2020-03-30T07:49:22.000Z
graphlearn/python/values.py
Sunsj2014/graph-learn
7bbffceed2c69a7acf903d80ee5bbc7e3fec6ca1
[ "Apache-2.0" ]
null
null
null
graphlearn/python/values.py
Sunsj2014/graph-learn
7bbffceed2c69a7acf903d80ee5bbc7e3fec6ca1
[ "Apache-2.0" ]
1
2020-08-10T08:25:52.000Z
2020-08-10T08:25:52.000Z
# Copyright 2020 Alibaba Group Holding Limited. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
30.278443
88
0.60442
19,202
0.949372
0
0
4,225
0.20889
0
0
3,763
0.186048
50871214482998dd46fb289bdd14022510cc1714
10,360
py
Python
.github/scripts/version_number_update.py
wattch/FreeRTOS
52cabc06846daef817959b800650e251a5e2aafb
[ "MIT" ]
null
null
null
.github/scripts/version_number_update.py
wattch/FreeRTOS
52cabc06846daef817959b800650e251a5e2aafb
[ "MIT" ]
3
2020-09-18T00:55:54.000Z
2020-10-30T02:32:16.000Z
.github/scripts/version_number_update.py
wattch/FreeRTOS
52cabc06846daef817959b800650e251a5e2aafb
[ "MIT" ]
null
null
null
import os import re import argparse from collections import defaultdict _AFR_COMPONENTS = [ 'demos', 'freertos_kernel', os.path.join('libraries','abstractions','ble_hal'), os.path.join('libraries','abstractions','common_io'), os.path.join('libraries','abstractions','pkcs11'), os.path.join('lib...
41.94332
145
0.584653
0
0
0
0
0
0
0
0
2,963
0.286004
50879439035ca2e6d3397d74ace1320560aeb002
2,232
py
Python
Medium/452.MinimumNumberofArrowstoBurstBalloons.py
YuriSpiridonov/LeetCode
2dfcc9c71466ffa2ebc1c89e461ddfca92e2e781
[ "MIT" ]
39
2020-07-04T11:15:13.000Z
2022-02-04T22:33:42.000Z
Medium/452.MinimumNumberofArrowstoBurstBalloons.py
YuriSpiridonov/LeetCode
2dfcc9c71466ffa2ebc1c89e461ddfca92e2e781
[ "MIT" ]
1
2020-07-15T11:53:37.000Z
2020-07-15T11:53:37.000Z
Medium/452.MinimumNumberofArrowstoBurstBalloons.py
YuriSpiridonov/LeetCode
2dfcc9c71466ffa2ebc1c89e461ddfca92e2e781
[ "MIT" ]
20
2020-07-14T19:12:53.000Z
2022-03-02T06:28:17.000Z
""" There are some spherical balloons spread in two-dimensional space. For each balloon, provided input is the start and end coordinates of the horizontal diameter. Since it's horizontal, y-coordinates don't matter, and hence the x-coordinates of start and end of the diameter suffice. The start is al...
33.818182
118
0.59991
419
0.187388
0
0
0
0
0
0
1,807
0.80814
5087fd9779109ae3757b5e0e1a9ac31884d9c109
1,844
py
Python
pl_extension/callbacks/speed.py
DuinoDu/pl-extension
1ed8f3dd95aa569ee3493fcc69634d3ab9322430
[ "Apache-2.0" ]
null
null
null
pl_extension/callbacks/speed.py
DuinoDu/pl-extension
1ed8f3dd95aa569ee3493fcc69634d3ab9322430
[ "Apache-2.0" ]
null
null
null
pl_extension/callbacks/speed.py
DuinoDu/pl-extension
1ed8f3dd95aa569ee3493fcc69634d3ab9322430
[ "Apache-2.0" ]
null
null
null
import logging from pytorch_lightning.callbacks.base import Callback __all__ = ["Speed"] logger = logging.getLogger(__name__) class Speed(Callback): r""" Training speed callback, require 'simple' or 'advanced' profiler. """ def on_train_batch_end( self, trainer, pl_module, outputs, batch...
32.928571
78
0.642082
1,712
0.928416
0
0
0
0
0
0
302
0.163774
50889e61c09c24ca6b275f770b232c7c15f511c1
3,158
py
Python
spectacles/validators/validator.py
felipefrancisco/spectacles
92f7af5810e2669343dd18425b2a8cb49d7167d2
[ "MIT" ]
150
2019-10-05T18:35:36.000Z
2022-03-26T21:21:44.000Z
spectacles/validators/validator.py
felipefrancisco/spectacles
92f7af5810e2669343dd18425b2a8cb49d7167d2
[ "MIT" ]
406
2019-10-03T14:54:22.000Z
2022-03-28T04:02:31.000Z
spectacles/validators/validator.py
felipefrancisco/spectacles
92f7af5810e2669343dd18425b2a8cb49d7167d2
[ "MIT" ]
26
2019-11-08T16:21:50.000Z
2022-03-28T06:06:14.000Z
from typing import Optional, List from abc import ABC, abstractmethod from spectacles.client import LookerClient from spectacles.lookml import Project, Model, Dimension from spectacles.select import is_selected from spectacles.exceptions import LookMlNotFound class Validator(ABC): # pragma: no cover """Defines a...
34.703297
84
0.569981
2,895
0.916719
0
0
73
0.023116
0
0
828
0.262191
5088c0c6396ddfd3443bddad31b38216e9bda0c1
1,330
py
Python
python/periodic-web-scrapper/scraper/Scraper.py
MarioCodes/ProyectosClaseDAM
df568b4feda8bf3a6cf7cc8e81e7dfa4156dcfd9
[ "Apache-2.0" ]
null
null
null
python/periodic-web-scrapper/scraper/Scraper.py
MarioCodes/ProyectosClaseDAM
df568b4feda8bf3a6cf7cc8e81e7dfa4156dcfd9
[ "Apache-2.0" ]
17
2019-06-14T12:30:46.000Z
2022-02-18T11:38:50.000Z
python/periodic-web-scrapper/scraper/Scraper.py
MarioCodes/ProyectosClaseDAM
df568b4feda8bf3a6cf7cc8e81e7dfa4156dcfd9
[ "Apache-2.0" ]
null
null
null
''' Created on Apr 18, 2018 @author: msanchez ''' from scraper.RequestScraper import RequestScraper from scraper.HTMLFilter import HTMLFilter from scraper.NewsFilter import NewsFilter from scraper.utilities.WebUtilities import WebUtilities class Scraper(object): ''' Full scrap operation. Downloads the request wit...
30.930233
159
0.64812
1,088
0.818045
0
0
0
0
0
0
330
0.24812
50897cd7ac40da6c45acf1571aad36057bdb2d94
2,877
py
Python
cabot_alert_pushover/models.py
dnelson/cabot-alert-pushover
c10f34e59c9f289e60016e7240c4e6ada611f611
[ "MIT" ]
null
null
null
cabot_alert_pushover/models.py
dnelson/cabot-alert-pushover
c10f34e59c9f289e60016e7240c4e6ada611f611
[ "MIT" ]
1
2015-02-09T22:26:48.000Z
2015-02-09T22:26:48.000Z
cabot_alert_pushover/models.py
packetcollision/cabot-alert-pushover
c10f34e59c9f289e60016e7240c4e6ada611f611
[ "MIT" ]
1
2015-04-29T15:43:31.000Z
2015-04-29T15:43:31.000Z
from django.db import models from django.conf import settings from django.template import Context, Template from cabot.cabotapp.alert import AlertPlugin, AlertPluginUserData from os import environ as env import requests pushover_alert_url = "https://api.pushover.net/1/messages.json" pushover_template = "Service {{ ...
35.518519
250
0.583246
2,332
0.810567
0
0
0
0
0
0
571
0.198471
508b71956b5d3b6c286150774b34745d6e9b14c4
683
py
Python
mezzanine_faq/templatetags/faq_tags.py
fpytloun/mezzanine-faq
01f8d5a33bb97a2c72679675ef98c4318ac70779
[ "BSD-3-Clause" ]
null
null
null
mezzanine_faq/templatetags/faq_tags.py
fpytloun/mezzanine-faq
01f8d5a33bb97a2c72679675ef98c4318ac70779
[ "BSD-3-Clause" ]
null
null
null
mezzanine_faq/templatetags/faq_tags.py
fpytloun/mezzanine-faq
01f8d5a33bb97a2c72679675ef98c4318ac70779
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from django import template from mezzanine.conf import settings from mezzanine_faq.models import FaqPage register = template.Library() @register.inclusion_tag('includes/faqlist.html') def faq_list(**kwargs): page = FaqPage.objects.get(**kwargs) return { 'page': page, ...
24.392857
72
0.66325
0
0
0
0
516
0.75549
0
0
138
0.20205
508bdde093af310cb7c78c41d80054d13c12905d
1,234
py
Python
easy/543-Diameter of Binary Tree.py
Davidxswang/leetcode
d554b7f5228f14c646f726ddb91014a612673e06
[ "Apache-2.0" ]
2
2020-05-08T02:17:17.000Z
2020-05-17T04:55:56.000Z
easy/543-Diameter of Binary Tree.py
Davidxswang/leetcode
d554b7f5228f14c646f726ddb91014a612673e06
[ "Apache-2.0" ]
null
null
null
easy/543-Diameter of Binary Tree.py
Davidxswang/leetcode
d554b7f5228f14c646f726ddb91014a612673e06
[ "Apache-2.0" ]
null
null
null
""" https://leetcode.com/problems/diameter-of-binary-tree/ Given a binary tree, you need to compute the length of the diameter of the tree. The diameter of a binary tree is the length of the longest path between any two nodes in a tree. This path may or may not pass through the root. Example: Given a binary tree ...
31.641026
225
0.626418
398
0.322528
0
0
0
0
0
0
824
0.667747
508c6c7312c3774719180054ec3e60ba8af3b4ea
1,114
py
Python
hsf_website_helpers/bin/hsf_reformat_training_events.py
HSF/website-helpers
7b01db3648d9f8026a318a4fac2fd3a8aeea354e
[ "MIT" ]
null
null
null
hsf_website_helpers/bin/hsf_reformat_training_events.py
HSF/website-helpers
7b01db3648d9f8026a318a4fac2fd3a8aeea354e
[ "MIT" ]
null
null
null
hsf_website_helpers/bin/hsf_reformat_training_events.py
HSF/website-helpers
7b01db3648d9f8026a318a4fac2fd3a8aeea354e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Quick script to read all training schools from data file and write them out again to e.g. update the formatting. """ import argparse from hsf_website_helpers.events.event import EventDatabase from hsf_website_helpers.util.cli import add_website_home_option def get_parser() -> argparse.Ar...
28.564103
77
0.682226
0
0
0
0
0
0
0
0
485
0.435368
508e3fc0c39607a000fe637e25c5db2d8a7dc060
275
py
Python
clothstream/styletags/urls.py
julienaubert/clothstream
daa76389be8b359208e88cd1f7aa8e7e98766656
[ "MIT" ]
null
null
null
clothstream/styletags/urls.py
julienaubert/clothstream
daa76389be8b359208e88cd1f7aa8e7e98766656
[ "MIT" ]
null
null
null
clothstream/styletags/urls.py
julienaubert/clothstream
daa76389be8b359208e88cd1f7aa8e7e98766656
[ "MIT" ]
null
null
null
from clothstream.lib.rest import SharedAPIRootRouter from .views import ItemStyleTagCreate, StyleTagList router = SharedAPIRootRouter() router.register(r'styletag-item/create', ItemStyleTagCreate, base_name='itemstyletag-create') router.register(r'styletags', StyleTagList)
39.285714
93
0.84
0
0
0
0
0
0
0
0
56
0.203636
508e54ebec8de34c224abfb2a9e4b84d25629fa1
6,652
py
Python
aws_automation/s3.py
VCCRI/Scavenger
a17f48b242a1cd8d626ad3a21439fa2c80b06533
[ "MIT" ]
4
2018-07-25T15:52:00.000Z
2020-10-20T00:47:35.000Z
aws_automation/s3.py
VCCRI/Scavenger
a17f48b242a1cd8d626ad3a21439fa2c80b06533
[ "MIT" ]
null
null
null
aws_automation/s3.py
VCCRI/Scavenger
a17f48b242a1cd8d626ad3a21439fa2c80b06533
[ "MIT" ]
null
null
null
# a module that wraps some of the S3 commands import boto3 from botocore.exceptions import ClientError from boto3.s3.transfer import S3Transfer import re import os # check for existance of bucket def list_bucket(bucket_name, region): s3 = boto3.resource('s3', region) bucket = s3.Bucket(bucket_name) object_...
34.827225
96
0.637853
0
0
0
0
0
0
0
0
3,089
0.464372
508f157fb5ef3d702783d7357c19874b1334a4e9
7,597
py
Python
bot/exts/info/codeblock/_instructions.py
zwycl/bot
862fb070a501ca45cccb481d62f079b3bdb1d16f
[ "MIT", "BSD-3-Clause" ]
1
2020-12-22T09:13:09.000Z
2020-12-22T09:13:09.000Z
bot/exts/info/codeblock/_instructions.py
Ezamey/bot
0b7a1be1dd57a464fc79fcb235b79d75bec43f99
[ "MIT", "BSD-3-Clause" ]
null
null
null
bot/exts/info/codeblock/_instructions.py
Ezamey/bot
0b7a1be1dd57a464fc79fcb235b79d75bec43f99
[ "MIT", "BSD-3-Clause" ]
null
null
null
"""This module generates and formats instructional messages about fixing Markdown code blocks.""" import logging from typing import Optional from bot.exts.info.codeblock import _parsing log = logging.getLogger(__name__) _EXAMPLE_PY = "{lang}\nprint('Hello, world!')" # Make sure to escape any Markdown symbols here....
41.064865
97
0.675925
0
0
0
0
0
0
0
0
4,371
0.575359
508f3ea247a38d0be96d2163379720704f7d48b6
533
py
Python
app/urls.py
julesc00/madmin
c02d8c61e96831270075aa827d3de9d53ff8048d
[ "MIT" ]
null
null
null
app/urls.py
julesc00/madmin
c02d8c61e96831270075aa827d3de9d53ff8048d
[ "MIT" ]
null
null
null
app/urls.py
julesc00/madmin
c02d8c61e96831270075aa827d3de9d53ff8048d
[ "MIT" ]
null
null
null
from django.urls import path from . import views app_name = "app" urlpatterns = [ path('', views.index, name="index"), path('posts/', views.posts, name="posts"), path('categories/', views.categories, name="categories"), path('comments/', views.comments, name="comments"), path('users/', views.user...
31.352941
61
0.634146
0
0
0
0
0
0
0
0
154
0.288931
5092dda4e656ef453bfc8239860a22fcd917e66f
11,775
py
Python
lib/python/cellranger/analysis/pca.py
qiangli/cellranger
046e24c3275cfbd4516a6ebc064594513a5c45b7
[ "MIT" ]
1
2019-03-29T04:05:58.000Z
2019-03-29T04:05:58.000Z
lib/python/cellranger/analysis/pca.py
qiangli/cellranger
046e24c3275cfbd4516a6ebc064594513a5c45b7
[ "MIT" ]
null
null
null
lib/python/cellranger/analysis/pca.py
qiangli/cellranger
046e24c3275cfbd4516a6ebc064594513a5c45b7
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Copyright (c) 2017 10X Genomics, Inc. All rights reserved. # import cellranger.analysis.io as analysis_io import cellranger.analysis.constants as analysis_constants import cellranger.h5_constants as h5_constants import cellranger.io as cr_io import cellranger.analysis.stats as analysis_stats ...
52.802691
150
0.726369
54
0.004586
0
0
0
0
0
0
4,491
0.381401
5093de6bb237feb29997a009c2a055d96c61745b
221
py
Python
src/atc/etl/__init__.py
atc-net/atc-dataplatform
4614efbbc9a5b2b4e063cc12211aa5c697cad115
[ "MIT" ]
6
2021-09-10T09:50:20.000Z
2022-02-12T09:30:47.000Z
src/atc/etl/__init__.py
atc-net/atc-dataplatform
4614efbbc9a5b2b4e063cc12211aa5c697cad115
[ "MIT" ]
40
2021-09-10T11:20:42.000Z
2022-03-25T08:26:57.000Z
src/atc/etl/__init__.py
atc-net/atc-dataplatform
4614efbbc9a5b2b4e063cc12211aa5c697cad115
[ "MIT" ]
2
2021-09-10T10:07:04.000Z
2022-02-16T17:49:08.000Z
from .loader import Loader from .extractor import Extractor from .transformer import Transformer from .orchestrator import Orchestrator __all__ = [ "Loader", "Extractor", "Transformer", "Orchestrator", ]
18.416667
38
0.728507
0
0
0
0
0
0
0
0
46
0.208145
5096dbccfc3c601a9f1661b60c8a31eb3826dccd
3,182
py
Python
a.py
Planecrayon/DAT120_Oblig_9
7cb6a6e9443ed609d27177746f532ee09dcf32e4
[ "MIT" ]
null
null
null
a.py
Planecrayon/DAT120_Oblig_9
7cb6a6e9443ed609d27177746f532ee09dcf32e4
[ "MIT" ]
null
null
null
a.py
Planecrayon/DAT120_Oblig_9
7cb6a6e9443ed609d27177746f532ee09dcf32e4
[ "MIT" ]
null
null
null
# Som del av et spørrespill skal du lage en klasse for flervalgspørsmål. # Et flervalgspørsmål skal ha en spørsmålstekst, ei liste med svaralternativer # (hvert svaralternativ er en tekststreng), og et tall som sier hvilket av # svaralternativene som er korrekt.Klassen skal ha en __str__ metode som returnerer # en stre...
39.775
184
0.664676
2,012
0.627378
0
0
0
0
0
0
1,659
0.517306
5096fa7b9ba14d4d27ff9de996781aa68a5007aa
4,047
py
Python
py/abd/abdcmd_instaweb.py
valhallasw/phabricator-tools
397406485901ce3bd26e1aee122e652539f99f98
[ "Apache-2.0" ]
null
null
null
py/abd/abdcmd_instaweb.py
valhallasw/phabricator-tools
397406485901ce3bd26e1aee122e652539f99f98
[ "Apache-2.0" ]
null
null
null
py/abd/abdcmd_instaweb.py
valhallasw/phabricator-tools
397406485901ce3bd26e1aee122e652539f99f98
[ "Apache-2.0" ]
null
null
null
"""Start a local webserver to report the status of an arcyd instance.""" # ============================================================================= # CONTENTS # ----------------------------------------------------------------------------- # abdcmd_instaweb # # Public Functions: # getFromfilePrefixChars # setup...
29.757353
79
0.57277
1,658
0.409686
0
0
0
0
0
0
1,734
0.428466
5097201247dfae21276abab2938bc5634f746acc
23,328
py
Python
instana/span.py
tirkarthi/python-sensor
9872d146ac00baff2673fde5ba97fdbe596869a4
[ "MIT" ]
2
2019-12-02T10:08:58.000Z
2020-10-04T09:34:20.000Z
instana/span.py
tirkarthi/python-sensor
9872d146ac00baff2673fde5ba97fdbe596869a4
[ "MIT" ]
2
2020-06-09T12:24:54.000Z
2021-03-15T12:49:15.000Z
instana/span.py
takeaway/python-sensor
52d6eaa2d6a8e625201bad36ac2448201c4bd63d
[ "MIT" ]
null
null
null
# (c) Copyright IBM Corp. 2021 # (c) Copyright Instana Inc. 2017 """ This module contains the classes that represents spans. InstanaSpan - the OpenTracing based span used during tracing When an InstanaSpan is finished, it is converted into either an SDKSpan or RegisteredSpan depending on type. BaseSpan: Base class ...
46.656
116
0.578018
22,672
0.971879
0
0
0
0
0
0
7,686
0.329475
5098655d84e342408ca02ab0c8f4527b84ed0fab
2,787
py
Python
code/import_iworx.py
StolkArjen/human-interaction
0559a58ea8131f61ed661c093045b34284568bc4
[ "Apache-2.0" ]
1
2022-01-10T02:18:45.000Z
2022-01-10T02:18:45.000Z
code/import_iworx.py
StolkArjen/human-interaction
d87badf7db20a50db058ca714f3d77664111100b
[ "Apache-2.0" ]
null
null
null
code/import_iworx.py
StolkArjen/human-interaction
d87badf7db20a50db058ca714f3d77664111100b
[ "Apache-2.0" ]
1
2022-02-14T15:28:48.000Z
2022-02-14T15:28:48.000Z
#!/usr/bin/env python """ -------------------------------------------------------- IMPORT_IWORX reads and converts various IWORX datafiles into a FieldTrip-type data structure. Use as data, event = import_iworx(filename) where the filename should point to a .mat or .txt datafile. data has the followin...
27.323529
80
0.547542
262
0.094008
0
0
0
0
0
0
1,019
0.365626
5098854b1bebe51b75f24ed1504c767942b2632b
961
py
Python
ex/classifier.py
scw/conda-uc-2017
c113583b88beb58adf51e4fc4ee6b6f6a963638d
[ "Apache-2.0" ]
1
2019-09-19T01:37:27.000Z
2019-09-19T01:37:27.000Z
ex/classifier.py
scw/conda-uc-2017
c113583b88beb58adf51e4fc4ee6b6f6a963638d
[ "Apache-2.0" ]
null
null
null
ex/classifier.py
scw/conda-uc-2017
c113583b88beb58adf51e4fc4ee6b6f6a963638d
[ "Apache-2.0" ]
null
null
null
import arcpy import pandas as pd from sklearn.feature_extraction.text import CountVectorizer from sklearn.naive_bayes import MultinomialNB input_csv = arcpy.GetParameterAsText(0) test_string = arcpy.GetParameterAsText(1) df = pd.read_csv(input_csv) target = df['is_there_an_emotion_directed_at_a_brand_or_product'] tex...
31
70
0.790843
0
0
0
0
0
0
0
0
381
0.396462
50993243321f041c53a88a278ea5aece495a4f45
9,453
py
Python
pysnmp/TRANGO-APEX-TRAP-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/TRANGO-APEX-TRAP-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/TRANGO-APEX-TRAP-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module TRANGO-APEX-TRAP-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/TRANGO-APEX-TRAP-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 21:19:34 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (defau...
95.484848
1,742
0.756056
42
0.004443
0
0
0
0
0
0
1,309
0.138475
509a3e7b6cd578f69b49591849f510331b44efb2
8,780
py
Python
test/test_gg_snippets.py
ooz/ggpy
a222299c3fc23739576ae0d3dfc75362fb1152cd
[ "MIT" ]
null
null
null
test/test_gg_snippets.py
ooz/ggpy
a222299c3fc23739576ae0d3dfc75362fb1152cd
[ "MIT" ]
2
2020-05-13T22:12:39.000Z
2021-05-01T22:41:55.000Z
test/test_gg_snippets.py
ooz/ggpy
a222299c3fc23739576ae0d3dfc75362fb1152cd
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import gg from ggconfig import config ############################################################################## # CONTENT SNIPPETS ############################################################################## def test_logo_url(): assert gg.logo_url(config) == 'h...
37.20339
185
0.637813
0
0
0
0
0
0
0
0
6,059
0.689855
509af6bcf44faa152d90bad8b829b7b4847920a9
359
py
Python
example/controller/tests/helper/security/web/csrf/verify/by_value.py
donghak-shin/dp-tornado
095bb293661af35cce5f917d8a2228d273489496
[ "MIT" ]
18
2015-04-07T14:28:39.000Z
2020-02-08T14:03:38.000Z
example/controller/tests/helper/security/web/csrf/verify/by_value.py
donghak-shin/dp-tornado
095bb293661af35cce5f917d8a2228d273489496
[ "MIT" ]
7
2016-10-05T05:14:06.000Z
2021-05-20T02:07:22.000Z
example/controller/tests/helper/security/web/csrf/verify/by_value.py
donghak-shin/dp-tornado
095bb293661af35cce5f917d8a2228d273489496
[ "MIT" ]
11
2015-12-15T09:49:39.000Z
2021-09-06T18:38:21.000Z
# -*- coding: utf-8 -*- from dp_tornado.engine.controller import Controller class ByValueController(Controller): def get(self): param_key = 'csrf' if not self.helper.security.web.csrf.verify_token(controller=self, value=self.get_argument(param_key)): return self.parent.finish_with_e...
23.933333
111
0.688022
278
0.774373
0
0
0
0
0
0
35
0.097493
509bc06e0b8597b7dcfcd3d366bc4b0a1b33cced
1,913
py
Python
dis_snek/api/http/route.py
BoredManCodes/Dis-Snek
662dbc3f86c133fd704c22d3d6d55af5ee1f6f5b
[ "MIT" ]
null
null
null
dis_snek/api/http/route.py
BoredManCodes/Dis-Snek
662dbc3f86c133fd704c22d3d6d55af5ee1f6f5b
[ "MIT" ]
null
null
null
dis_snek/api/http/route.py
BoredManCodes/Dis-Snek
662dbc3f86c133fd704c22d3d6d55af5ee1f6f5b
[ "MIT" ]
null
null
null
from typing import TYPE_CHECKING, Any, ClassVar, Optional from urllib.parse import quote as _uriquote if TYPE_CHECKING: from dis_snek.models.discord.snowflake import Snowflake_Type __all__ = ["Route"] class Route: BASE: ClassVar[str] = "https://discord.com/api/v9" path: str params: dict[str, str | ...
28.984848
109
0.634605
1,702
0.889702
0
0
725
0.378986
0
0
428
0.223732
509cf64c7635b5d2dcfcf6e0039a3e50e9325a99
13,539
py
Python
second/data/udi_dataset.py
muzi2045/second_TANET.pytorch
3e10c93075a76684871fe0f188819c7b282671fd
[ "MIT" ]
6
2020-02-15T09:11:53.000Z
2021-11-12T09:03:41.000Z
second/data/udi_dataset.py
muzi2045/second_TANET.pytorch
3e10c93075a76684871fe0f188819c7b282671fd
[ "MIT" ]
2
2020-04-15T02:40:44.000Z
2020-11-28T02:14:32.000Z
second/data/udi_dataset.py
muzi2045/second_TANET.pytorch
3e10c93075a76684871fe0f188819c7b282671fd
[ "MIT" ]
3
2020-02-11T20:12:50.000Z
2021-05-28T07:31:02.000Z
# udi dataset process module # modiflied from nuscenes_dataset.py import json import pickle import time import random from copy import deepcopy from functools import partial from pathlib import Path import subprocess import fire import numpy as np import os from second.core import box_np_ops from second.core import...
34.189394
106
0.557648
6,749
0.498486
0
0
6,767
0.499815
0
0
4,062
0.300022
509dc1b0cc588c10476a8cfd8e1bdc0626468d3f
14,657
py
Python
storm_analysis/diagnostics/multicolor/configure.py
oxfordni/storm-analysis
835a5c17497c563c3632db561ae7e7c9144a8dd1
[ "CNRI-Python" ]
null
null
null
storm_analysis/diagnostics/multicolor/configure.py
oxfordni/storm-analysis
835a5c17497c563c3632db561ae7e7c9144a8dd1
[ "CNRI-Python" ]
null
null
null
storm_analysis/diagnostics/multicolor/configure.py
oxfordni/storm-analysis
835a5c17497c563c3632db561ae7e7c9144a8dd1
[ "CNRI-Python" ]
null
null
null
#!/usr/bin/env python """ Configure folder for Multicolor testing. Hazen 01/18 """ import argparse import inspect import numpy import os import pickle import subprocess import storm_analysis import storm_analysis.sa_library.parameters as parameters import storm_analysis.sa_library.sa_h5py as saH5Py import storm_anal...
39.720867
138
0.542608
0
0
0
0
0
0
0
0
4,636
0.316299
509ed4cc66c4ac402187a077d75f1b426136225c
430
py
Python
tests/views/test_application_views.py
snowdensb/domain-manager-api
9bde9cec4231c0a0e27a12730182315571967980
[ "CC0-1.0" ]
null
null
null
tests/views/test_application_views.py
snowdensb/domain-manager-api
9bde9cec4231c0a0e27a12730182315571967980
[ "CC0-1.0" ]
28
2021-08-09T15:04:22.000Z
2022-03-19T01:11:58.000Z
tests/views/test_application_views.py
snowdensb/domain-manager-api
9bde9cec4231c0a0e27a12730182315571967980
[ "CC0-1.0" ]
null
null
null
"""Application View Tests.""" # Standard Python Libraries import json # cisagov Libraries from tests.data.application_data import get_applications def test_applications_get(client, mocker): """Test getting list of applications.""" mocker.patch("api.manager.ApplicationManager.all", return_value=get_applicatio...
28.666667
88
0.74186
0
0
0
0
0
0
0
0
171
0.397674
50a2baaf689466aee04130a2a99ad570fae29004
967
py
Python
infratabapp/tasks.py
sheeshmohsin/infratabtask
5884c06d21d0c62a92ae203d941baafffab2e278
[ "MIT" ]
null
null
null
infratabapp/tasks.py
sheeshmohsin/infratabtask
5884c06d21d0c62a92ae203d941baafffab2e278
[ "MIT" ]
null
null
null
infratabapp/tasks.py
sheeshmohsin/infratabtask
5884c06d21d0c62a92ae203d941baafffab2e278
[ "MIT" ]
null
null
null
from __future__ import absolute_import from infratabtask.celery import app from celery import Task from infratabapp.utils import send_email_notf, send_phone_notf class SendNotf(Task): def __init__(self, *args, **kwargs): self.pk = kwargs.get('pk', None) def run(self): self.get_object() ...
28.441176
62
0.66908
801
0.828335
0
0
0
0
0
0
4
0.004137
50a3bc0cc77af6e3f24e20ed927fe327a30a1517
695
py
Python
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/survey/admin.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
3
2021-12-15T04:58:18.000Z
2022-02-06T12:15:37.000Z
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/survey/admin.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
null
null
null
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/survey/admin.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
1
2019-01-02T14:38:50.000Z
2019-01-02T14:38:50.000Z
""" Provide accessors to these models via the Django Admin pages """ from django import forms from django.contrib import admin from lms.djangoapps.survey.models import SurveyForm class SurveyFormAdminForm(forms.ModelForm): """Form providing validation of SurveyForm content.""" class Meta: model = ...
21.71875
60
0.700719
456
0.656115
0
0
0
0
0
0
199
0.286331
50a4666c1ec0642dcf588201b7c9a50b15e6dd48
1,804
py
Python
resources/lib/guisettings.py
gade01/xbmcbackup
6f4921a77eb1f73cdf30ddd863c38609ce5bd164
[ "MIT" ]
86
2015-01-11T12:41:31.000Z
2022-02-08T09:59:59.000Z
resources/lib/guisettings.py
weblate/xbmcbackup
40b626052160ce06663d3ea467122641b84651ae
[ "MIT" ]
126
2015-01-28T20:18:44.000Z
2022-02-27T16:03:26.000Z
resources/lib/guisettings.py
weblate/xbmcbackup
40b626052160ce06663d3ea467122641b84651ae
[ "MIT" ]
43
2015-01-11T02:57:49.000Z
2022-03-01T00:13:54.000Z
import json import xbmc from . import utils as utils class GuiSettingsManager: filename = 'kodi_settings.json' systemSettings = None def __init__(self): # get all of the current Kodi settings json_response = json.loads(xbmc.executeJSONRPC('{"jsonrpc":"2.0", "id":1, "method":"Settings.GetS...
37.583333
145
0.608093
1,748
0.968958
0
0
0
0
0
0
666
0.36918
50a50aa1a40424c9e929c23a7eb5cdd5ccf71c81
120
py
Python
distopia/mapping/__init__.py
kevinguo344/distopia
077dd3501bd43565d1a9647a151fb20b90b71a54
[ "MIT" ]
null
null
null
distopia/mapping/__init__.py
kevinguo344/distopia
077dd3501bd43565d1a9647a151fb20b90b71a54
[ "MIT" ]
7
2019-07-11T04:19:01.000Z
2019-10-31T15:26:49.000Z
distopia/mapping/__init__.py
kevinguo344/distopia
077dd3501bd43565d1a9647a151fb20b90b71a54
[ "MIT" ]
4
2018-10-29T20:32:03.000Z
2019-10-02T03:15:57.000Z
""" District Mapping ================ Defines the algorithms that perform the mapping from precincts to districts. """
17.142857
76
0.666667
0
0
0
0
0
0
0
0
119
0.991667
50a51e2bd1f9dab244096057e39978a0aa037170
1,741
py
Python
pymilldb/context/Column.py
Toka-Taka/mill-db
1edf390f2ce89d9232ba91d722cb4b104c398078
[ "MIT" ]
2
2019-11-05T06:24:59.000Z
2020-03-06T09:04:38.000Z
pymilldb/context/Column.py
bmstu-iu9/mill-db
a3725b11fcd995953dabc21f7fe6f4d5f5d38815
[ "MIT" ]
2
2019-05-22T09:40:51.000Z
2020-03-03T12:17:12.000Z
pymilldb/context/Column.py
Toka-Taka/mill-db
1edf390f2ce89d9232ba91d722cb4b104c398078
[ "MIT" ]
6
2018-05-03T16:04:13.000Z
2019-12-01T11:01:07.000Z
from .DataType import BaseType class Column(object): COLUMN_COMMON = 0 COLUMN_BLOOM = 1 COLUMN_INDEXED = 2 COLUMN_PRIMARY = 3 DEFAULT_FAIL_SHARE = 0.2 __NAME_TO_MOD = dict( bloom=1, indexed=2, pk=3, ) def __init__(self, name: str, kind: BaseType, mod: int, ta...
28.540984
89
0.657668
1,707
0.980471
0
0
1,150
0.66054
0
0
0
0
50a5a6f4507fa5ed92be275eb4339130e457b023
6,369
py
Python
calico/etcddriver/test/test_hwm.py
ozdanborne/felix
5eff313e6498b3a7d775aa16cb09fd4578331701
[ "Apache-2.0" ]
6
2016-10-18T04:04:25.000Z
2016-10-18T04:06:49.000Z
calico/etcddriver/test/test_hwm.py
ozdanborne/felix
5eff313e6498b3a7d775aa16cb09fd4578331701
[ "Apache-2.0" ]
1
2021-06-01T21:45:37.000Z
2021-06-01T21:45:37.000Z
calico/etcddriver/test/test_hwm.py
ozdanborne/felix
5eff313e6498b3a7d775aa16cb09fd4578331701
[ "Apache-2.0" ]
2
2018-10-31T08:55:19.000Z
2019-04-16T02:14:50.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2015-2016 Tigera, Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unle...
41.627451
79
0.633851
5,459
0.85712
0
0
0
0
0
0
2,617
0.410897
50a67e7e71443f0123964ab785888984cda3fc3b
404
py
Python
skdecide/hub/domain/gym/__init__.py
jeromerobert/scikit-decide
900916e627669fb3f7520edb2aaef55e08064b25
[ "MIT" ]
null
null
null
skdecide/hub/domain/gym/__init__.py
jeromerobert/scikit-decide
900916e627669fb3f7520edb2aaef55e08064b25
[ "MIT" ]
null
null
null
skdecide/hub/domain/gym/__init__.py
jeromerobert/scikit-decide
900916e627669fb3f7520edb2aaef55e08064b25
[ "MIT" ]
1
2021-02-26T17:31:51.000Z
2021-02-26T17:31:51.000Z
# Copyright (c) AIRBUS and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from .gym import GymDomain, DeterministicInitializedGymDomain, GymWidthDomain, \ GymDiscreteActionDomain, DeterministicGymDomain, CostDeterministicG...
50.5
82
0.816832
0
0
0
0
0
0
0
0
164
0.405941
50a78e2e1ef64a3b922e626522f2580ee9837a7c
7,092
py
Python
openwisp_network_topology/tests/test_admin.py
mafalaz/openwisp-network-topology
36188cfd20ad62787e8202bb6a4e106aaa26ef18
[ "BSD-3-Clause" ]
1
2018-12-07T14:24:26.000Z
2018-12-07T14:24:26.000Z
openwisp_network_topology/tests/test_admin.py
mafalaz/openwisp-network-topology
36188cfd20ad62787e8202bb6a4e106aaa26ef18
[ "BSD-3-Clause" ]
null
null
null
openwisp_network_topology/tests/test_admin.py
mafalaz/openwisp-network-topology
36188cfd20ad62787e8202bb6a4e106aaa26ef18
[ "BSD-3-Clause" ]
null
null
null
from django.test import TestCase from django.urls import reverse from django_netjsongraph.tests import CreateGraphObjectsMixin from django_netjsongraph.tests.base.test_admin import TestAdminMixin from openwisp_users.tests.utils import TestOrganizationMixin from openwisp_utils.tests.utils import TestMultitenantAdminMix...
41.473684
90
0.607727
6,629
0.934715
0
0
82
0.011562
0
0
876
0.123519
50a7e0a80d5cef9b4bb80a0f46b84c78195b8ae4
527
py
Python
FaceLandmarking.LearningProcess/readers/regressor_example_reader.py
TomaszRewak/FaceLandmarking
74bc5cbcdb61cd9835e5bfc61e978fad256940f4
[ "MIT" ]
78
2018-02-09T14:30:06.000Z
2020-10-01T08:43:32.000Z
FaceLandmarking.LearningProcess/readers/regressor_example_reader.py
YoungerGao/Face-Landmarking
74bc5cbcdb61cd9835e5bfc61e978fad256940f4
[ "MIT" ]
1
2019-03-20T00:16:47.000Z
2019-03-24T09:12:25.000Z
FaceLandmarking.LearningProcess/readers/regressor_example_reader.py
YoungerGao/Face-Landmarking
74bc5cbcdb61cd9835e5bfc61e978fad256940f4
[ "MIT" ]
8
2019-03-03T11:57:43.000Z
2021-07-01T09:27:20.000Z
import csv def read_regressor_examples(num_of_features, num_of_decisions, file_path): xs = [] ys = [] with open(file_path, mode='r', encoding='utf-8') as file: reader = csv.reader(file, delimiter=' ') for row in reader: x = [float(value) for value in row[0 : num_of_features]]...
23.954545
101
0.571157
0
0
0
0
0
0
0
0
19
0.036053
50a82399bf9b9b372729a8b7cc2d453fc77656d4
3,355
py
Python
tests/test_models.py
jmichalicek/django-mail-viewer
ede04bc6a0809b8e62621f5646396893ad966d71
[ "MIT" ]
3
2017-07-19T23:35:31.000Z
2022-02-13T18:49:04.000Z
tests/test_models.py
jmichalicek/django-mail-viewer
ede04bc6a0809b8e62621f5646396893ad966d71
[ "MIT" ]
1
2019-10-05T14:51:39.000Z
2019-10-05T14:51:40.000Z
tests/test_models.py
jmichalicek/django-mail-viewer
ede04bc6a0809b8e62621f5646396893ad966d71
[ "MIT" ]
null
null
null
from pathlib import Path import shutil from django.conf import settings from django.core import cache, mail from django.test import TestCase from django_mail_viewer.backends.database.models import EmailMessage class DatabaseBackendEmailMessageTest(TestCase): connection_backend = 'django_mail_viewer.backends.dat...
37.277778
119
0.633085
3,139
0.935618
0
0
843
0.251267
0
0
778
0.231893
50a8805bffcc07db1ad4a801fc9b5ce33c494c35
5,977
py
Python
utils.py
mfouilleul/Haddock
de5f0ad9966707b09ff2a77f10d64290fb26083b
[ "MIT" ]
null
null
null
utils.py
mfouilleul/Haddock
de5f0ad9966707b09ff2a77f10d64290fb26083b
[ "MIT" ]
null
null
null
utils.py
mfouilleul/Haddock
de5f0ad9966707b09ff2a77f10d64290fb26083b
[ "MIT" ]
null
null
null
''' utils.py General utility functions: unit conversions, great-circle distances, CSV queries, platform-independent web browsing. ''' import csv import math import webbrowser # UNIT CONVERSIONS MPS_TO_KTS = 1.944 class units: def mps_to_kts(mps): return mps*MPS_TO_KTS def enforceTwoDigi...
34.549133
147
0.565501
5,743
0.960689
0
0
0
0
0
0
1,149
0.192205
50a8f8b8a04737c09a518f900e9a3dbfb59b7774
1,862
py
Python
frontend/front.py
streampizza/chirrup
39444cdaa1af7fdcac9d8dcd34df644d4feae496
[ "Apache-2.0" ]
null
null
null
frontend/front.py
streampizza/chirrup
39444cdaa1af7fdcac9d8dcd34df644d4feae496
[ "Apache-2.0" ]
null
null
null
frontend/front.py
streampizza/chirrup
39444cdaa1af7fdcac9d8dcd34df644d4feae496
[ "Apache-2.0" ]
null
null
null
from flask import Flask from flask import request, render_template, redirect from datetime import datetime from pymongo import MongoClient import html import random import json import ast from flask.ext.pymongo import PyMongo from flask import make_response, request, current_app from functools import update_wrapper app...
40.478261
176
0.727175
0
0
0
0
1,252
0.672395
0
0
384
0.20623
50abbdac4aab572c750bb3e9b9b2333c098a8e14
1,578
py
Python
resticweb/engine_configure.py
XXL6/resticweb
48f8c86438d6c67b9f20f062d8c9e04ea6732767
[ "MIT" ]
1
2019-07-29T13:54:58.000Z
2019-07-29T13:54:58.000Z
resticweb/engine_configure.py
XXL6/resticweb
48f8c86438d6c67b9f20f062d8c9e04ea6732767
[ "MIT" ]
1
2020-04-30T09:57:31.000Z
2020-04-30T09:57:31.000Z
resticweb/engine_configure.py
XXL6/resticweb
48f8c86438d6c67b9f20f062d8c9e04ea6732767
[ "MIT" ]
1
2019-08-02T22:51:28.000Z
2019-08-02T22:51:28.000Z
from resticweb.dictionary.resticweb_variables import Config import resticweb.engine as local_engine from resticweb.dictionary.resticweb_exceptions import NoEngineAvailable import subprocess import os.path as path def configure_engine(): return_value = False command = [Config.ENGINE_COMMAND, 'version'] try:...
35.863636
71
0.609632
0
0
0
0
0
0
0
0
170
0.107731
50acb7ed0b3df74f0efa284a48e9366ef80c9de6
2,104
py
Python
saas/aiops/api/anomalydetection/main/anomaly_detection.py
iuskye/SREWorks
a2a7446767d97ec5f6d15bd00189c42150d6c894
[ "Apache-2.0" ]
407
2022-03-16T08:09:38.000Z
2022-03-31T12:27:10.000Z
saas/aiops/api/anomalydetection/main/anomaly_detection.py
Kwafoor/SREWorks
37a64a0a84b29c65cf6b77424bd2acd0c7b42e2b
[ "Apache-2.0" ]
25
2022-03-22T04:27:31.000Z
2022-03-30T08:47:28.000Z
saas/aiops/api/anomalydetection/main/anomaly_detection.py
Kwafoor/SREWorks
37a64a0a84b29c65cf6b77424bd2acd0c7b42e2b
[ "Apache-2.0" ]
109
2022-03-21T17:30:44.000Z
2022-03-31T09:36:28.000Z
import pandas as pd import json import time from bentoml import env, artifacts, api, BentoService from bentoml.adapters import DataframeInput, JsonInput, StringInput from bentoml.frameworks.sklearn import SklearnModelArtifact @env(infer_pip_packages=True) @artifacts([SklearnModelArtifact('model')]) class AnomalyDete...
28.821918
88
0.613593
1,798
0.854563
0
0
1,872
0.889734
0
0
929
0.44154
50acfb5ef2c2292d0cbbb5ceac5eacf6da2c2045
139
py
Python
test cases/windows/10 vs module defs generated custom target/subdir/make_def.py
kira78/meson
0ae840656c5b87f30872072aa8694667c63c96d2
[ "Apache-2.0" ]
4,047
2015-06-18T10:36:48.000Z
2022-03-31T09:47:02.000Z
test cases/windows/10 vs module defs generated custom target/subdir/make_def.py
kira78/meson
0ae840656c5b87f30872072aa8694667c63c96d2
[ "Apache-2.0" ]
8,206
2015-06-14T12:20:48.000Z
2022-03-31T22:50:37.000Z
test cases/windows/10 vs module defs generated custom target/subdir/make_def.py
kira78/meson
0ae840656c5b87f30872072aa8694667c63c96d2
[ "Apache-2.0" ]
1,489
2015-06-27T04:06:38.000Z
2022-03-29T10:14:48.000Z
#!/usr/bin/env python3 import sys with open(sys.argv[1], 'w') as f: print('EXPORTS', file=f) print(' somedllfunc', file=f)
19.857143
40
0.597122
0
0
0
0
0
0
0
0
55
0.395683
50ad9dd5356464000203ac7fc55703309310959c
730
py
Python
class-notes/fukushu/F-0728_graph.py
rhoenkelevra/python_simple_applications
28ceb5f9fe7ecf11d606d49463385e92927e8f98
[ "MIT" ]
null
null
null
class-notes/fukushu/F-0728_graph.py
rhoenkelevra/python_simple_applications
28ceb5f9fe7ecf11d606d49463385e92927e8f98
[ "MIT" ]
null
null
null
class-notes/fukushu/F-0728_graph.py
rhoenkelevra/python_simple_applications
28ceb5f9fe7ecf11d606d49463385e92927e8f98
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Jul 28 13:31:06 2021 @author: user24 """ ''' Suchi wo nyuryoku only accepts integer end shuryou creates a graph as image ''' import matplotlib.pyplot as plt cnt = 0 Y = [] while True: ans = input("数値を入力してください \n-->") if ans == "end": break try: ...
16.590909
76
0.521918
0
0
0
0
0
0
0
0
434
0.5425
50ae8802ab2f67d8085eed2af76c35268d1f3319
3,167
py
Python
flan/exports/awssqs.py
bretlowery/flan
b79319044fcdb2230ac090232e9056719cb09f17
[ "MIT" ]
3
2019-08-03T13:27:31.000Z
2021-06-08T16:25:31.000Z
flan/exports/awssqs.py
bretlowery/flan
b79319044fcdb2230ac090232e9056719cb09f17
[ "MIT" ]
2
2020-09-24T10:44:55.000Z
2021-06-25T15:31:24.000Z
flan/exports/awssqs.py
bretlowery/flan
b79319044fcdb2230ac090232e9056719cb09f17
[ "MIT" ]
null
null
null
from flanexport import FlanExport, timeout_after import os import ast try: from boto.sqs import connection from boto.sqs.message import Message except: pass class AWSSQS(FlanExport): def __init__(self, meta, config): name = self.__class__.__name__ super().__init__(name, meta, config)...
38.156627
94
0.610988
2,995
0.94569
0
0
2,823
0.89138
0
0
293
0.092517
50af227f5cf4f7092ecffc1ecb9dc0ca94929c50
905
py
Python
setup.py
jongwon-jay-lee/ko_lm_dataformat
6ab51d9a021c550bab92534caf130f9cd7e26972
[ "MIT" ]
22
2021-06-30T03:13:21.000Z
2022-01-12T05:16:59.000Z
setup.py
jongwon-jay-lee/ko_lm_dataformat
6ab51d9a021c550bab92534caf130f9cd7e26972
[ "MIT" ]
10
2021-07-08T09:14:29.000Z
2021-11-07T18:54:50.000Z
setup.py
jongwon-jay-lee/ko_lm_dataformat
6ab51d9a021c550bab92534caf130f9cd7e26972
[ "MIT" ]
1
2021-07-08T01:44:51.000Z
2021-07-08T01:44:51.000Z
import os import sys from setuptools import setup, find_packages if sys.version_info < (3, 6): sys.exit("Sorry, Python >= 3.6 is required for ko_lm_dataformat") with open("requirements.txt") as f: require_packages = [line.strip() for line in f] with open(os.path.join("ko_lm_dataformat", "version.txt")) as f:...
31.206897
82
0.707182
0
0
0
0
0
0
0
0
318
0.351381
50b00721b02820e3b4b32a57d5d51dcc9d8741c6
5,852
py
Python
tools/prepare_iata_airline_dump_file.py
mtrampont/opentraveldata
94d10fc313f75058079d9a3e1a766c704fbe9488
[ "CC-BY-4.0" ]
208
2015-03-24T13:42:20.000Z
2022-01-16T23:48:02.000Z
tools/prepare_iata_airline_dump_file.py
mtrampont/opentraveldata
94d10fc313f75058079d9a3e1a766c704fbe9488
[ "CC-BY-4.0" ]
155
2015-02-11T13:53:43.000Z
2022-03-12T08:25:13.000Z
tools/prepare_iata_airline_dump_file.py
mtrampont/opentraveldata
94d10fc313f75058079d9a3e1a766c704fbe9488
[ "CC-BY-4.0" ]
99
2015-01-27T14:32:19.000Z
2022-02-05T15:13:13.000Z
#!/usr/bin/env python import getopt, sys, io import pandas as pd # # Usage # def usage (script_name): """ Display the usage. """ print ("") print ("Usage: {} [options]".format(script_name)) print ("") print ("That script transforms and filter a fix width data file into a hat symbol separa...
32.876404
136
0.576384
0
0
0
0
0
0
0
0
2,304
0.393712
50b0d3191e31237febc87109e80b45a79739c498
8,117
py
Python
sanalberto/views/polls.py
xJavii8/dafi-system
6f4a3f77c40424a0c1d7c80236f0bf52be4304d2
[ "MIT" ]
7
2019-08-03T12:25:18.000Z
2021-11-02T12:51:33.000Z
sanalberto/views/polls.py
xJavii8/dafi-system
6f4a3f77c40424a0c1d7c80236f0bf52be4304d2
[ "MIT" ]
11
2019-08-20T17:07:37.000Z
2021-11-23T14:26:07.000Z
sanalberto/views/polls.py
xJavii8/dafi-system
6f4a3f77c40424a0c1d7c80236f0bf52be4304d2
[ "MIT" ]
4
2020-04-06T11:33:02.000Z
2021-10-31T09:10:53.000Z
from collections import Counter from typing import ( Any, cast, ) from django.contrib import messages from django.contrib.auth.mixins import ( LoginRequiredMixin, UserPassesTestMixin, ) from django.db import transaction from django.db.models import ( Count, Q, ) from django.forms.models import ...
28.28223
92
0.604164
7,257
0.893829
0
0
0
0
0
0
865
0.10654
50b1a3151683891fe29f85b69660417956b904a6
4,473
py
Python
face_morpher/facemorpher/warper.py
ivan-uskov/faces
59a27c305888e8e000cb1549f8b06216449b1f05
[ "MIT" ]
1
2021-09-16T00:02:48.000Z
2021-09-16T00:02:48.000Z
facemorpher/warper.py
ImpactCrater/AutoFaceMorpher
9955a02d9cec309ca0db8c2454f9466f7e1633c5
[ "MIT" ]
null
null
null
facemorpher/warper.py
ImpactCrater/AutoFaceMorpher
9955a02d9cec309ca0db8c2454f9466f7e1633c5
[ "MIT" ]
null
null
null
import numpy as np import scipy.spatial as spatial def bilinear_interpolate(img, coords): """ Interpolates over every image channel http://en.wikipedia.org/wiki/Bilinear_interpolation :param img: max 3 channel image :param coords: 2 x _m_ array. 1st row = xcoords, 2nd row = ycoords :returns: array of interp...
31.95
79
0.709144
0
0
717
0.160295
0
0
0
0
1,245
0.278337
50b1e8b1216b573ce1073b4417985c18776e49bb
346
py
Python
paddlehub/serving/gunicorn.py
18621579069/PaddleHub-yu
15e8bcef2addf239081e235bdcfd039de12330e0
[ "Apache-2.0" ]
4
2021-02-25T03:27:38.000Z
2021-05-15T03:20:23.000Z
paddlehub/serving/gunicorn.py
Melissa9596/PaddleHub
0b002a0add1c982d52f7591a5e773bf09b3e6361
[ "Apache-2.0" ]
null
null
null
paddlehub/serving/gunicorn.py
Melissa9596/PaddleHub
0b002a0add1c982d52f7591a5e773bf09b3e6361
[ "Apache-2.0" ]
2
2021-03-01T07:04:01.000Z
2021-05-14T05:54:18.000Z
#!/usr/bin/env python # coding=utf-8 # coding: utf8 """ configuration for gunicorn """ import multiprocessing bind = '0.0.0.0:8888' backlog = 2048 workers = multiprocessing.cpu_count() * 2 + 1 threads = 1 worker_class = 'sync' worker_connections = 1000 timeout = 500 keepalive = 40 daemon = False loglevel = 'info' error...
17.3
45
0.702312
0
0
0
0
0
0
0
0
115
0.33237
50b2c8b6eb4eb1e401d69a4ec9a24c73d1dd8ed4
220
py
Python
Exercices/Secao04/exercicio46.py
Guilt-tech/PythonExercices
e59bffae997a1974d3e3cdcfff7700afbed65e6e
[ "MIT" ]
null
null
null
Exercices/Secao04/exercicio46.py
Guilt-tech/PythonExercices
e59bffae997a1974d3e3cdcfff7700afbed65e6e
[ "MIT" ]
null
null
null
Exercices/Secao04/exercicio46.py
Guilt-tech/PythonExercices
e59bffae997a1974d3e3cdcfff7700afbed65e6e
[ "MIT" ]
null
null
null
print('Digite um número inteiro positivo de três dígitos (100 a 999), para gerar o número invertido') num = int(input('Número: ')) num = str(num) reverso = num[::-1] print(f'O número ao contrário de: {num} é: {reverso}')
44
101
0.695455
0
0
0
0
0
0
0
0
159
0.697368
50b40243d48dd7096f88e7ab86cfe6c9d963a1b7
1,277
py
Python
webapp/assessdb/scripts/import_csv_instruments.py
sspickle/assessdb
89f99424ef7ab1405d7fa37a74764dd12cef1abf
[ "BSD-2-Clause" ]
null
null
null
webapp/assessdb/scripts/import_csv_instruments.py
sspickle/assessdb
89f99424ef7ab1405d7fa37a74764dd12cef1abf
[ "BSD-2-Clause" ]
null
null
null
webapp/assessdb/scripts/import_csv_instruments.py
sspickle/assessdb
89f99424ef7ab1405d7fa37a74764dd12cef1abf
[ "BSD-2-Clause" ]
null
null
null
import os import sys import transaction import csv from pyramid.paster import ( get_appsettings, setup_logging, ) from pyramid.scripts.common import parse_vars from ..models.meta import Base from ..models import ( get_engine, get_session_factory, get_tm_session, ) from ..models import Ins...
24.557692
72
0.636648
0
0
0
0
0
0
0
0
101
0.079092
50b4618057184dfc1016b24c9b7fde5730dbf199
14,440
py
Python
stock/experiment_compare_iterations_autions.py
dvirg/auctions
da706f3d11b9582c7f811de9f50b96b43ac8cbd0
[ "MIT" ]
1
2021-11-20T19:27:45.000Z
2021-11-20T19:27:45.000Z
stock/experiment_compare_iterations_autions.py
dvirg/auctions
da706f3d11b9582c7f811de9f50b96b43ac8cbd0
[ "MIT" ]
null
null
null
stock/experiment_compare_iterations_autions.py
dvirg/auctions
da706f3d11b9582c7f811de9f50b96b43ac8cbd0
[ "MIT" ]
null
null
null
#!python3 """ A utility for performing simulation experiments on auction mechanisms. The experiment is similar to the one described by McAfee (1992), Table I (page 448). In each experiment, we measure the actual vs. the optimal gain-from-trade. This experiment using the real prices from Stock market. the prices are i...
60.92827
290
0.572853
0
0
0
0
0
0
0
0
4,444
0.307756
50b799f3f9190f81ef4e7396819f3c43e59e132b
106
py
Python
categorias/iniciante/python/1095.py
carlos3g/URI-solutions
dc7f9b896cdff88aedf67611917b178d3ad60ab3
[ "MIT" ]
1
2022-01-26T23:38:17.000Z
2022-01-26T23:38:17.000Z
categorias/iniciante/python/1095.py
carlos3g/URI-solutions
dc7f9b896cdff88aedf67611917b178d3ad60ab3
[ "MIT" ]
1
2020-07-12T00:49:35.000Z
2021-06-26T20:53:18.000Z
categorias/iniciante/python/1095.py
carlos3g/URI-solutions
dc7f9b896cdff88aedf67611917b178d3ad60ab3
[ "MIT" ]
1
2020-07-04T03:27:04.000Z
2020-07-04T03:27:04.000Z
# -*- coding: utf-8 -*- i = 1 for x in range(60, -1, -5): print('I={} J={}'.format(i, x)) i += 3
15.142857
35
0.415094
0
0
0
0
0
0
0
0
34
0.320755
50bb8c5b0c6ec60a8f6499ccba72330254c202d1
6,572
py
Python
py_version/primary.py
the-phinisher/tic-tac-toe
d8aa6c396fb3c97c3c97ebbcf68c80663bb04723
[ "MIT" ]
null
null
null
py_version/primary.py
the-phinisher/tic-tac-toe
d8aa6c396fb3c97c3c97ebbcf68c80663bb04723
[ "MIT" ]
1
2022-02-22T09:48:54.000Z
2022-02-22T09:48:54.000Z
py_version/primary.py
the-phinisher/tic-tac-toe
d8aa6c396fb3c97c3c97ebbcf68c80663bb04723
[ "MIT" ]
null
null
null
from copy import deepcopy from math import inf import platform from os import system if platform.system() == 'Windows': def clear(): system('cls') else: def clear(): system('clear') board = [[0,0,0], [0,0,0], [0,0,0]] player1 = 1 player2 = -1 null_move = [None, None] draw...
24.522388
73
0.574559
0
0
0
0
0
0
0
0
2,752
0.418746
50bd37ee8461876376290a970632ede83e07fe93
183
py
Python
set.py
git4satya/koleksyon
966f3f6ea16a9c5c0bb12d2aec52c5c89e42090c
[ "MIT" ]
null
null
null
set.py
git4satya/koleksyon
966f3f6ea16a9c5c0bb12d2aec52c5c89e42090c
[ "MIT" ]
null
null
null
set.py
git4satya/koleksyon
966f3f6ea16a9c5c0bb12d2aec52c5c89e42090c
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages from distutils.core import setup from Cython.Build import cythonize setup(name="mcmc", ext_modules=cythonize("./src/koleksyon/mcmc.pyx"))
30.5
69
0.808743
0
0
0
0
0
0
0
0
32
0.174863
50becd1ac57ae3a984bcaa01bb929787c41d56e8
995
py
Python
tests/test_functions/http_log_exception/main.py
KaylaNguyen/functions-framework-python
e44416e8e35a0f997d0dacd9f313306fe63646a4
[ "Apache-2.0" ]
479
2020-01-09T19:50:54.000Z
2022-03-31T11:26:16.000Z
tests/test_functions/http_log_exception/main.py
KaylaNguyen/functions-framework-python
e44416e8e35a0f997d0dacd9f313306fe63646a4
[ "Apache-2.0" ]
97
2020-01-10T21:45:46.000Z
2022-03-29T12:19:17.000Z
tests/test_functions/http_log_exception/main.py
KaylaNguyen/functions-framework-python
e44416e8e35a0f997d0dacd9f313306fe63646a4
[ "Apache-2.0" ]
81
2020-01-09T22:20:08.000Z
2022-03-25T21:55:20.000Z
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
29.264706
74
0.725628
0
0
0
0
0
0
0
0
787
0.790955
50bf59fcf053969178b6b0b82c944711edaaf728
574
py
Python
tivol/tests/assets/migration_handlers.py
RoySegall/tivol
b3f32470e10f1d94c88df095e4cb67adb97b6b1a
[ "MIT" ]
2
2020-02-14T01:34:03.000Z
2020-03-16T16:22:56.000Z
tivol/tests/assets/migration_handlers.py
RoySegall/tivol
b3f32470e10f1d94c88df095e4cb67adb97b6b1a
[ "MIT" ]
8
2020-01-23T14:12:23.000Z
2020-02-01T09:49:28.000Z
tivol/tests/assets/migration_handlers.py
RoySegall/django-tivol
b3f32470e10f1d94c88df095e4cb67adb97b6b1a
[ "MIT" ]
null
null
null
from tivol.base_classes.mappers import CsvMapper from tivol.base_classes.migration_handler_base import MigrationHandlerBase import os class AnimalMigration(MigrationHandlerBase): def init_metadata(self): csv_mapper = CsvMapper() path = os.path.join( os.getcwd(), 'tivol', 'tests', 'ass...
30.210526
74
0.688153
437
0.761324
0
0
0
0
0
0
96
0.167247
50c1727f4cbaa7d21dda9d008ae65222d11294d4
1,718
py
Python
2017/day25/day25.py
icemanblues/advent-of-code
eac937ac2762d1c8b8cec358a13af352e339446c
[ "Apache-2.0" ]
null
null
null
2017/day25/day25.py
icemanblues/advent-of-code
eac937ac2762d1c8b8cec358a13af352e339446c
[ "Apache-2.0" ]
2
2020-04-06T18:56:13.000Z
2022-03-30T20:32:50.000Z
2017/day25/day25.py
icemanblues/advent-of-code
eac937ac2762d1c8b8cec358a13af352e339446c
[ "Apache-2.0" ]
null
null
null
from typing import Set day_num = "25" day_title = "The Halting Problem" def part1(): tape: Set[int] = set() curr: int = 0 state: str = 'a' for _ in range(12523873): is_one = curr in tape if state == 'a' and not is_one: tape.add(curr) curr += 1 stat...
23.534247
41
0.419092
0
0
0
0
0
0
0
0
148
0.086147
50c19a0a1d56c769b8744b086fd0f546baaa2e03
263
py
Python
Code.py
sad786/Python
738198bbab5abfa1d521e83291eed7026a4f6f12
[ "Apache-2.0" ]
null
null
null
Code.py
sad786/Python
738198bbab5abfa1d521e83291eed7026a4f6f12
[ "Apache-2.0" ]
null
null
null
Code.py
sad786/Python
738198bbab5abfa1d521e83291eed7026a4f6f12
[ "Apache-2.0" ]
null
null
null
def process(N): temp = str(N) temp = temp.replace('4','2') res1 = int(temp) res2 = N-res1 return res1,res2 T = int(input()) for t in range(T): N = int(input()) res1,res2 = process(N) print('Case #{}: {} {}'.format(t+1,res1,res2))
20.230769
50
0.536122
0
0
0
0
0
0
0
0
23
0.087452
50c26ee0fff34f323c178c0a015c36474ab32bbb
1,067
py
Python
repos/insightface/deploy/test.py
batermj/DeepVideoAnalytics
daad116b87370fce1799b7948af73b92f617cf41
[ "BSD-3-Clause", "Apache-2.0", "MIT" ]
1
2021-03-23T12:31:59.000Z
2021-03-23T12:31:59.000Z
repos/insightface/deploy/test.py
batermj/DeepVideoAnalytics
daad116b87370fce1799b7948af73b92f617cf41
[ "BSD-3-Clause", "Apache-2.0", "MIT" ]
null
null
null
repos/insightface/deploy/test.py
batermj/DeepVideoAnalytics
daad116b87370fce1799b7948af73b92f617cf41
[ "BSD-3-Clause", "Apache-2.0", "MIT" ]
null
null
null
import face_embedding import argparse import cv2 import numpy as np parser = argparse.ArgumentParser(description='face model test') # general parser.add_argument('--image-size', default='112,112', help='') parser.add_argument('--model', default='../models/model-r34-amf/model,0', help='path to load model.') parser.add_...
41.038462
103
0.700094
0
0
0
0
0
0
0
0
315
0.29522
50c35512a7e771c592f2f59783b3d7b03116ff00
6,509
py
Python
apollon/io.py
bader28/apollon
588a347f02e4c78a455d7c6ae7e61af80058eafa
[ "BSD-3-Clause" ]
null
null
null
apollon/io.py
bader28/apollon
588a347f02e4c78a455d7c6ae7e61af80058eafa
[ "BSD-3-Clause" ]
null
null
null
apollon/io.py
bader28/apollon
588a347f02e4c78a455d7c6ae7e61af80058eafa
[ "BSD-3-Clause" ]
null
null
null
# Licensed under the terms of the BSD-3-Clause license. # Copyright (C) 2019 Michael Blaß # michael.blass@uni-hamburg.de """apollon/io.py -- General I/O functionallity. Classes: ArrayEncoder Serialize numpy array to JSON. FileAccessControl Descriptor for file name attributes. Functions: ...
29.586364
94
0.591796
2,860
0.439324
408
0.062673
425
0.065284
0
0
3,297
0.506452
50c4211594641f15f4d0dd51846dc4859fa97b1a
3,327
py
Python
stockbot/provider/yahoo.py
Habbie/stockbot
648e70604828d0ed762c243b4eb83122fd393b4d
[ "Apache-2.0" ]
null
null
null
stockbot/provider/yahoo.py
Habbie/stockbot
648e70604828d0ed762c243b4eb83122fd393b4d
[ "Apache-2.0" ]
null
null
null
stockbot/provider/yahoo.py
Habbie/stockbot
648e70604828d0ed762c243b4eb83122fd393b4d
[ "Apache-2.0" ]
null
null
null
import logging import requests import urllib.parse from datetime import datetime from stockbot.provider.base import BaseQuoteService, BaseQuote LOGGER = logging.getLogger(__name__) class YahooFallbackQuote(object): def __init__(self, *args, **kwargs): pass def __str__(self): return "Didn't...
31.990385
113
0.613766
3,132
0.941389
0
0
0
0
0
0
704
0.211602
50c582358879f0d88ea08b7b116c6d9019fa47eb
850
py
Python
Database/SQLIte/15.Limit/U1.py
sarincr/Business-analytics-Course-with-Python-
10e577fdb3cf90bb87c97cd23ee3ecd6a083bfc4
[ "MIT" ]
3
2022-01-18T05:35:52.000Z
2022-03-25T06:13:54.000Z
Database/SQLIte/15.Limit/U1.py
sarincr/Business-analytics-Course-with-Python-
10e577fdb3cf90bb87c97cd23ee3ecd6a083bfc4
[ "MIT" ]
null
null
null
Database/SQLIte/15.Limit/U1.py
sarincr/Business-analytics-Course-with-Python-
10e577fdb3cf90bb87c97cd23ee3ecd6a083bfc4
[ "MIT" ]
2
2022-01-17T08:23:59.000Z
2022-01-17T08:28:18.000Z
import sqlite3 X = sqlite3.connect('NeDB.db') Y = X.cursor() Y.execute('''CREATE TABLE IF NOT EXISTS EMPLOYEE ( ID integer, Name text NOT NULL, Date_Join text, Place text, Age integer, Salary real);''') Y.execute('''INSERT INT...
27.419355
167
0.556471
0
0
0
0
0
0
0
0
660
0.776471
50c5e0a8570cdd739aa3c8e994e48c1fd64e8100
196
py
Python
lambda/python/ip/what_is_my_ip.py
enrikiko/AWS
e8984e5fc5d015285ef2cc3f4295a273d1994e22
[ "MIT" ]
null
null
null
lambda/python/ip/what_is_my_ip.py
enrikiko/AWS
e8984e5fc5d015285ef2cc3f4295a273d1994e22
[ "MIT" ]
null
null
null
lambda/python/ip/what_is_my_ip.py
enrikiko/AWS
e8984e5fc5d015285ef2cc3f4295a273d1994e22
[ "MIT" ]
null
null
null
import json def lambda_handler(event, context): ip = event["requestContext"]["identity"]["sourceIp"] return { 'statusCode': 200, 'body': json.dumps(ip) }
21.777778
57
0.561224
0
0
0
0
0
0
0
0
54
0.27551
50c7a3be78d0fd416ee2c6259ac08e9ae566c6ec
47
py
Python
week1/8.py
kamorozov/coursera_python
706bc1bc46839f8b3debdf293240ad5ce20c9775
[ "Unlicense" ]
2
2019-05-17T13:42:02.000Z
2019-05-18T04:00:35.000Z
week1/8.py
kamorozov/coursera_python
706bc1bc46839f8b3debdf293240ad5ce20c9775
[ "Unlicense" ]
null
null
null
week1/8.py
kamorozov/coursera_python
706bc1bc46839f8b3debdf293240ad5ce20c9775
[ "Unlicense" ]
2
2019-10-03T09:07:44.000Z
2019-12-28T19:17:20.000Z
n = int(input()) n = n % 100 print(n // 10)
11.75
17
0.468085
0
0
0
0
0
0
0
0
0
0
50c9aef6ef070fdd9753a4e730c01e945a86b51c
3,581
py
Python
qtpp/views/auth.py
xzdylyh/qtppy
baa37c59082863ace3cddb09c30a55a92d64f656
[ "Apache-2.0" ]
2
2020-04-23T06:10:05.000Z
2021-01-21T08:56:09.000Z
qtpp/views/auth.py
xzdylyh/qtppy
baa37c59082863ace3cddb09c30a55a92d64f656
[ "Apache-2.0" ]
2
2020-04-22T10:11:29.000Z
2020-05-12T10:02:14.000Z
qtpp/views/auth.py
xzdylyh/qtppy
baa37c59082863ace3cddb09c30a55a92d64f656
[ "Apache-2.0" ]
4
2020-04-22T09:35:14.000Z
2020-12-19T08:15:25.000Z
import functools from flask import ( Blueprint, flash, g, redirect, render_template, request, session, url_for, jsonify, abort ) from werkzeug.security import check_password_hash, generate_password_hash from qtpp import db from qtpp.libs.framework.operate_db import OperationDB from qtpp.libs.framework.constant i...
26.330882
93
0.647584
0
0
0
0
3,183
0.644985
0
0
2,759
0.559068
50cb859c45255f62ffcfcc061001338143096d48
403
py
Python
engine/mixer.py
UnidayStudio/Easy-2D-Game-Engine
1a8501cba538d7542b0e24bf64eead388085480f
[ "MIT" ]
8
2019-12-15T22:32:30.000Z
2021-06-14T07:38:51.000Z
engine/mixer.py
UnidayStudio/Easy-2D-Game-Engine
1a8501cba538d7542b0e24bf64eead388085480f
[ "MIT" ]
null
null
null
engine/mixer.py
UnidayStudio/Easy-2D-Game-Engine
1a8501cba538d7542b0e24bf64eead388085480f
[ "MIT" ]
2
2020-09-10T17:34:23.000Z
2021-03-11T09:26:26.000Z
import pygame import engine.file class Mixer(): def __init__(self): self._sounds = {} def _getSound(self, name): if not name in self._sounds: try: img = pygame.mixer.Sound(engine.file.getPath(name)) except: return None self._sounds[name] = img return self._sounds[name] def playSound(self, ...
17.521739
55
0.674938
367
0.91067
0
0
0
0
0
0
0
0
50cdb2534223082d1a5457fe8849bcb64350b906
3,984
py
Python
csv sift.py
hitime1234/progress-8-sorter
91007d823f0b64c082c39a619464b3c0b7af7bd9
[ "Unlicense" ]
null
null
null
csv sift.py
hitime1234/progress-8-sorter
91007d823f0b64c082c39a619464b3c0b7af7bd9
[ "Unlicense" ]
null
null
null
csv sift.py
hitime1234/progress-8-sorter
91007d823f0b64c082c39a619464b3c0b7af7bd9
[ "Unlicense" ]
null
null
null
import time def readcsv(filename, linenumber): import csv data = list(csv.reader(open(filename + ".csv"))) return data def schoolpo8finder(data,name): info = [] for i in range(0, len(data)): try: if (str(name)).lower() in (str(data[i][4])).lower(): ...
27.86014
148
0.482681
0
0
0
0
0
0
0
0
611
0.153363
50cf002b29b4d43070275df7465fc14466be2932
3,430
py
Python
pcircle/globals.py
fwang2/ccss
f2521cc492c5f459363cbaf4a55c9c504762efa4
[ "Apache-2.0" ]
20
2015-10-02T14:43:17.000Z
2020-01-21T15:17:42.000Z
pcircle/globals.py
fwang2/ccss
f2521cc492c5f459363cbaf4a55c9c504762efa4
[ "Apache-2.0" ]
37
2015-10-01T18:52:08.000Z
2018-11-20T21:05:39.000Z
pcircle/globals.py
fwang2/ccss
f2521cc492c5f459363cbaf4a55c9c504762efa4
[ "Apache-2.0" ]
7
2015-12-04T02:36:16.000Z
2018-08-31T18:16:39.000Z
class T: WORK_REQUEST = 1 WORK_REPLY = 2 REDUCE = 3 BARRIER = 4 TOKEN = 7 class Tally: total_dirs = 0 total_files = 0 total_filesize = 0 total_stat_filesize = 0 total_symlinks = 0 total_skipped = 0 total_sparse = 0 max_files = 0 total_nlinks = 0 total_nlinke...
25.597015
113
0.533819
3,424
0.998251
0
0
0
0
0
0
971
0.28309
50d06ff15aa34045442b090d6e40b36a03bc3175
714
py
Python
kge/util/glove_to_word2vec.py
Team-Project-OKG/kge
d09e41ccc30b54c1de983e8c4f6f95b92983bcb3
[ "MIT" ]
null
null
null
kge/util/glove_to_word2vec.py
Team-Project-OKG/kge
d09e41ccc30b54c1de983e8c4f6f95b92983bcb3
[ "MIT" ]
1
2020-12-10T16:59:43.000Z
2020-12-10T16:59:43.000Z
kge/util/glove_to_word2vec.py
Team-Project-OKG/kge
d09e41ccc30b54c1de983e8c4f6f95b92983bcb3
[ "MIT" ]
null
null
null
import os import sys from gensim.scripts.glove2word2vec import glove2word2vec from kge.misc import kge_base_dir def _convert_to_word2vec( filename: str ): """ Convert file of pretrained embeddings in GloVe format to word2vec format. """ folder = os.path.join(kge_base_dir(), "pretrained") ...
27.461538
81
0.72409
0
0
0
0
0
0
0
0
195
0.273109
50d086d27fad503205a3c61c81321db64af884db
25,829
py
Python
ui/command_list.py
wangjing1215/COM-DEV
2d8e412447cb2b98847c871208af3d2497f19d1b
[ "MIT" ]
null
null
null
ui/command_list.py
wangjing1215/COM-DEV
2d8e412447cb2b98847c871208af3d2497f19d1b
[ "MIT" ]
null
null
null
ui/command_list.py
wangjing1215/COM-DEV
2d8e412447cb2b98847c871208af3d2497f19d1b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'command_list.ui' # # Created by: PyQt5 UI code generator 5.15.4 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore,...
41.3264
150
0.628634
25,512
0.98681
0
0
0
0
0
0
22,305
0.862763
50d091c9f0425cffc07e257ef10b1881ccd4fbda
1,514
py
Python
pedidos/migrations/0001_initial.py
tiagocordeiro/zumaq-partners
ba2c5d4257438ec062ef034096cd203efe58ef4a
[ "MIT" ]
1
2019-02-13T11:01:25.000Z
2019-02-13T11:01:25.000Z
pedidos/migrations/0001_initial.py
tiagocordeiro/zumaq-partners
ba2c5d4257438ec062ef034096cd203efe58ef4a
[ "MIT" ]
619
2018-11-26T06:11:05.000Z
2022-03-31T22:56:13.000Z
pedidos/migrations/0001_initial.py
tiagocordeiro/zumaq-partners
ba2c5d4257438ec062ef034096cd203efe58ef4a
[ "MIT" ]
1
2020-03-12T16:34:13.000Z
2020-03-12T16:34:13.000Z
# Generated by Django 2.1.7 on 2019-02-14 13:07 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
38.820513
174
0.602378
1,357
0.895119
0
0
0
0
0
0
275
0.181398
50d1ff29cc95475cd6346e510fcbdb66477154e4
2,358
py
Python
spyderlib/utils/debug.py
MarlaJahari/Marve
d8d18122c19f050429a91ef23edc87a85fecad1d
[ "MIT" ]
1
2021-01-25T02:13:36.000Z
2021-01-25T02:13:36.000Z
SMlib/utils/debug.py
koll00/Gui_SM
d02d28b20ef2ae1aa602b9bb52a6bb55fd66be9c
[ "MIT" ]
null
null
null
SMlib/utils/debug.py
koll00/Gui_SM
d02d28b20ef2ae1aa602b9bb52a6bb55fd66be9c
[ "MIT" ]
1
2021-08-04T08:13:34.000Z
2021-08-04T08:13:34.000Z
# -*- coding: utf-8 -*- # # Copyright © 2009-2010 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """Debug utilities""" import inspect import traceback import time def log_time(fd): timestr = "Logging time: %s" % time.ctime(time.time()) p...
31.026316
79
0.583121
0
0
0
0
0
0
0
0
1,019
0.431963
50d2c1c7aa4bbe6ee66540b15f05fba5392b4c86
5,495
bzl
Python
swift/internal/swift_c_module.bzl
BalestraPatrick/rules_swift
35ef1d6ebd7adb8d20c096bb4355cf41c9a0b5cf
[ "Apache-2.0" ]
215
2018-06-06T18:05:25.000Z
2022-03-28T09:46:50.000Z
swift/internal/swift_c_module.bzl
BalestraPatrick/rules_swift
35ef1d6ebd7adb8d20c096bb4355cf41c9a0b5cf
[ "Apache-2.0" ]
416
2018-06-06T22:13:18.000Z
2022-03-31T15:57:04.000Z
swift/internal/swift_c_module.bzl
BalestraPatrick/rules_swift
35ef1d6ebd7adb8d20c096bb4355cf41c9a0b5cf
[ "Apache-2.0" ]
92
2018-06-10T17:45:35.000Z
2022-03-17T21:45:27.000Z
# Copyright 2018 The Bazel Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
41.315789
80
0.682621
0
0
0
0
0
0
0
0
3,644
0.663148
50d2c63c50baed76074a457c6cee5b8d1cf60572
2,170
py
Python
PytomationMailStandalone.py
riensWinoto/PytomationMail
c29f406a86eecabd7e1258795ed95b5328be9d5f
[ "MIT" ]
null
null
null
PytomationMailStandalone.py
riensWinoto/PytomationMail
c29f406a86eecabd7e1258795ed95b5328be9d5f
[ "MIT" ]
null
null
null
PytomationMailStandalone.py
riensWinoto/PytomationMail
c29f406a86eecabd7e1258795ed95b5328be9d5f
[ "MIT" ]
null
null
null
import smtplib import sys import time from datetime import datetime # variable trigger = 0 myName = "your name" myEmail = "your@email.com" myPass = "y0urP4s5w0rd" myEmailSMTP = "smtp.yourEmailProvider.com" #for gmail: smtp.gmail.com for outlook: smtp.office365.com mySMTPPort = 587 receivers = {"receiver name": "rece...
28.181818
102
0.670507
0
0
0
0
0
0
0
0
507
0.233641
50d316e96203c330defac6b5f9275d3b8cbbe62b
220
py
Python
tempgui.py
mustafaIhssan/semantic-segmentation-maker
83ac9af29fccdba83e463762116e22445938987b
[ "MIT" ]
1
2016-12-29T07:59:10.000Z
2016-12-29T07:59:10.000Z
tempgui.py
mustafaIhssan/semantic-segmentation-maker
83ac9af29fccdba83e463762116e22445938987b
[ "MIT" ]
null
null
null
tempgui.py
mustafaIhssan/semantic-segmentation-maker
83ac9af29fccdba83e463762116e22445938987b
[ "MIT" ]
null
null
null
import Tkinter parent_widget = Tkinter.Tk() scale_widget = Tkinter.Scale(parent_widget, from_=0, to=100, orient=Tkinter.HORIZONTAL) scale_widget.set(25) scale_widget.pack() Tkinter.mainloop()
31.428571
60
0.7
0
0
0
0
0
0
0
0
0
0
50d3680b3ac0276b323b0fe43cf5218d56058d3e
2,864
py
Python
main.py
agoupy/parrainages
383e69e962ef256c9375d2b5ce01dbcad656c579
[ "MIT" ]
null
null
null
main.py
agoupy/parrainages
383e69e962ef256c9375d2b5ce01dbcad656c579
[ "MIT" ]
null
null
null
main.py
agoupy/parrainages
383e69e962ef256c9375d2b5ce01dbcad656c579
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Feb 24 14:12:38 2022 @author: j64280 """ import alluvial import pandas as pd import matplotlib.pyplot as plt import numpy as np import matplotlib.cm list_2017 = pd.read_csv('parrainagestotal_2017.csv',sep=';') list_2022 = pd.read_csv('parrainagestot...
44.061538
133
0.688198
0
0
0
0
0
0
0
0
1,283
0.444868
50d3d47aab29740b1510e0aea9c31e455ae9cd65
21,767
py
Python
bridge_sim/sim/run/opensees/build/d3/__init__.py
jerbaroo/bridge-sim
c4ec1c18a07a78462ccf3b970a99a1bd7efcc2af
[ "MIT" ]
2
2020-05-12T11:41:49.000Z
2020-08-10T15:00:58.000Z
bridge_sim/sim/run/opensees/build/d3/__init__.py
barischrooneyj/bridge-sim
c4ec1c18a07a78462ccf3b970a99a1bd7efcc2af
[ "MIT" ]
48
2020-05-11T23:58:22.000Z
2020-09-18T20:28:52.000Z
bridge_sim/sim/run/opensees/build/d3/__init__.py
jerbaroo/bridge-sim
c4ec1c18a07a78462ccf3b970a99a1bd7efcc2af
[ "MIT" ]
1
2020-05-27T12:43:37.000Z
2020-05-27T12:43:37.000Z
"""Build OpenSees 3D model files.""" import os from collections import OrderedDict, defaultdict from itertools import chain from typing import List, Optional, Tuple import numpy as np from bridge_sim.model import PierSettlement, PointLoad, Config, Material from bridge_sim.sim.model import ( BuildContext, Dec...
35.45114
89
0.612119
1,440
0.066155
0
0
0
0
0
0
7,822
0.359351
50d3ff539d0dc35fa385af4b1fce1942ee1690c8
1,944
py
Python
setup.py
KathleenLabrie/KLpysci
848f659dd6743e2f390ee08ac7d350817ef5e9b3
[ "0BSD" ]
null
null
null
setup.py
KathleenLabrie/KLpysci
848f659dd6743e2f390ee08ac7d350817ef5e9b3
[ "0BSD" ]
null
null
null
setup.py
KathleenLabrie/KLpysci
848f659dd6743e2f390ee08ac7d350817ef5e9b3
[ "0BSD" ]
null
null
null
from setuptools import setup, find_packages from codecs import open import os import klpysci VERSION = klpysci.__version__ cwd = os.path.abspath(os.path.dirname(__file__)) # Get the long_description from the Description.rst file with open(os.path.join(cwd, 'DESCRIPTION.rst'), encoding='utf-8') as f: long_descrip...
29.014925
93
0.542181
0
0
0
0
0
0
0
0
810
0.416667
50d58d7591d92e204d555b99d0383a3caa6df18d
240
py
Python
lnc/lib/exceptions.py
atrosinenko/lecture-notes-compiler
40764c48664cec2001f1a5cbfa579ae970af0dac
[ "MIT" ]
3
2015-09-10T16:10:57.000Z
2016-12-03T01:49:28.000Z
lnc/lib/exceptions.py
atrosinenko/lecture-notes-compiler
40764c48664cec2001f1a5cbfa579ae970af0dac
[ "MIT" ]
null
null
null
lnc/lib/exceptions.py
atrosinenko/lecture-notes-compiler
40764c48664cec2001f1a5cbfa579ae970af0dac
[ "MIT" ]
null
null
null
class ProgramError(Exception): """Generic exception class for errors in this program.""" pass class PluginError(ProgramError): pass class NoOptionError(ProgramError): pass class ExtCommandError(ProgramError): pass
15
61
0.729167
230
0.958333
0
0
0
0
0
0
57
0.2375
50d864ab62ce6a701debae2af6bac07b0dbf0ee8
9,439
py
Python
libsolresol.py
MishaKlopukh/solresol-language
075332912fdda7412e11c759c958997fee6c87a9
[ "MIT" ]
null
null
null
libsolresol.py
MishaKlopukh/solresol-language
075332912fdda7412e11c759c958997fee6c87a9
[ "MIT" ]
null
null
null
libsolresol.py
MishaKlopukh/solresol-language
075332912fdda7412e11c759c958997fee6c87a9
[ "MIT" ]
null
null
null
import enum import numpy as np import matplotlib.pyplot as plt import matplotlib.patches as patches from scipy.io import wavfile import json jupyter_nb_mode = False try: assert jupyter_nb_mode from IPython.display import Audio except: import sounddevice as sd def Audio(array,rate=44100): sd.pla...
44.523585
156
0.599534
8,484
0.898824
0
0
1,312
0.138998
0
0
461
0.04884
50d889e431ae6bc543ceb74e6af10a5b1cfede00
4,351
py
Python
src/icegrams/trie_build.py
vthorsteinsson/Icegrams
d20d137a7e2b3316f38dfd5ace826993704c2050
[ "MIT" ]
7
2019-03-04T18:14:37.000Z
2019-03-29T02:57:02.000Z
src/icegrams/trie_build.py
vthorsteinsson/Icegrams
d20d137a7e2b3316f38dfd5ace826993704c2050
[ "MIT" ]
1
2020-09-04T13:19:38.000Z
2020-09-06T20:14:58.000Z
src/icegrams/trie_build.py
vthorsteinsson/Icegrams
d20d137a7e2b3316f38dfd5ace826993704c2050
[ "MIT" ]
1
2019-05-31T11:45:51.000Z
2019-05-31T11:45:51.000Z
""" Icegrams: A trigrams library for Icelandic CFFI builder for _trie module Copyright (C) 2020 Miðeind ehf. Original author: Vilhjálmur Þorsteinsson This software is licensed under the MIT License: Permission is hereby granted, free of charge, to any person obtaining a copy of ...
35.08871
81
0.69846
0
0
0
0
0
0
0
0
3,777
0.867478