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
00307ed891cc3bbf4d17b34c5cc7d2164137d3c2
17,263
py
Python
channels/italiafilmvideohd.py
sodicarus/channels
d77402f4f460ea6daa66959aa5384aaffbff70b5
[ "MIT" ]
null
null
null
channels/italiafilmvideohd.py
sodicarus/channels
d77402f4f460ea6daa66959aa5384aaffbff70b5
[ "MIT" ]
null
null
null
channels/italiafilmvideohd.py
sodicarus/channels
d77402f4f460ea6daa66959aa5384aaffbff70b5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------ # StreamOnDemand-PureITA / XBMC Plugin # Canal para italiafilmvideohd # http://www.mimediacenter.info/foro/viewtopic.php?f=36&t=7808 # ------------------------------------------------------------ import base64 import re import urlpar...
40.618824
154
0.553148
0
0
0
0
0
0
0
0
6,451
0.373603
00316d362ddde2a4019229bccffbafd03e33e693
1,129
py
Python
covid19uk/data/tier_data_test.py
sdwfrost/covid19uk
ffd59342d9daee2d819d2f7211afbe9713880612
[ "MIT" ]
10
2020-03-21T22:36:24.000Z
2021-05-23T22:47:13.000Z
covid19uk/data/tier_data_test.py
sdwfrost/covid19uk
ffd59342d9daee2d819d2f7211afbe9713880612
[ "MIT" ]
14
2020-03-27T19:24:51.000Z
2021-07-21T12:41:23.000Z
covid19uk/data/tier_data_test.py
sdwfrost/covid19uk
ffd59342d9daee2d819d2f7211afbe9713880612
[ "MIT" ]
13
2020-03-21T17:17:20.000Z
2021-05-06T22:50:18.000Z
"""Tests Tier Data""" import numpy as np from covid.data import TierData def test_url_tier_data(): config = { "AreaCodeData": { "input": "json", "address": "https://services1.arcgis.com/ESMARspQHYMw9BZ9/arcgis/rest/services/LAD_APR_2019_UK_NC/FeatureServer/0/query?where=1%3D1&out...
30.513514
258
0.560673
0
0
0
0
0
0
0
0
567
0.502214
00333d9d6b82d73d347ef774e208f7a11fd780ab
1,550
py
Python
Baixar um arquivo Excel e mandar o resultado para emails.py
GustavooBueno/Projetos-Python-Automacao
43ec53040cd543746d88e8523fcffbdb69112ab7
[ "MIT" ]
null
null
null
Baixar um arquivo Excel e mandar o resultado para emails.py
GustavooBueno/Projetos-Python-Automacao
43ec53040cd543746d88e8523fcffbdb69112ab7
[ "MIT" ]
null
null
null
Baixar um arquivo Excel e mandar o resultado para emails.py
GustavooBueno/Projetos-Python-Automacao
43ec53040cd543746d88e8523fcffbdb69112ab7
[ "MIT" ]
null
null
null
import pyautogui import time import pyperclip import pandas as pd #pyautogui.displayMousePosition() pyautogui.PAUSE = 1 #Passo 1 #Abrir uma nova aba time.sleep(2) pyautogui.hotkey('ctrl', 't') #Entrar no link do sistema link = "https://drive.google.com/drive/folders/149xknr9JvrlEnhNWO49zPcw0PW5icxga" py...
25
82
0.713548
0
0
0
0
0
0
0
0
705
0.454545
00341cca0d8a5cb36317216f72b4964ad336e187
34,289
py
Python
brain_class.py
featureCreacle/Baka-battle
0588216ff08bec1f6d4e0679daa8ac70e7f3d83a
[ "MIT" ]
1
2017-12-23T11:16:35.000Z
2017-12-23T11:16:35.000Z
brain_class.py
featureCreacle/Baka-battle
0588216ff08bec1f6d4e0679daa8ac70e7f3d83a
[ "MIT" ]
null
null
null
brain_class.py
featureCreacle/Baka-battle
0588216ff08bec1f6d4e0679daa8ac70e7f3d83a
[ "MIT" ]
null
null
null
import tkinter import json from math import * from random import * from tkinter import * class brain_abstract(): ''' # один слой это лист туплов: колво нейронов в группе, # плюс(True) или минус(False) на выходе нейронов группы, # номер...
46.906977
143
0.495727
35,300
0.997316
0
0
0
0
0
0
4,328
0.122277
0034f805a844662bdcbee5246fde715c74fdfb46
761
py
Python
xiamiu/urls.py
Vida42/xiamiu
9249a20746d1da050546e3fcdfafbc5ff49ab4d0
[ "Apache-2.0" ]
null
null
null
xiamiu/urls.py
Vida42/xiamiu
9249a20746d1da050546e3fcdfafbc5ff49ab4d0
[ "Apache-2.0" ]
null
null
null
xiamiu/urls.py
Vida42/xiamiu
9249a20746d1da050546e3fcdfafbc5ff49ab4d0
[ "Apache-2.0" ]
null
null
null
from django.urls import path from django.conf.urls import url from . import views urlpatterns = [ path('', views.index, name='home'), url(r'^artist/(?P<inputID>.*?)/$', views.showArtistPage, name='showArtistPage'), url(r'^album/(?P<inputID>.*?)/$', views.showAlbumPage, name='showAlbumPage'), url(r'^so...
44.764706
84
0.672799
0
0
0
0
0
0
0
0
311
0.408673
00350a7f72c371d77bedf708f8a55456f2d37c38
19,030
py
Python
lib/python/treadmill_aws/formatter.py
Morgan-Stanley/treadmill-aws
4c3d25c477422d83f0cd8dc6851fd02ffa48dcbb
[ "Apache-2.0" ]
6
2018-05-24T17:17:51.000Z
2020-06-06T02:21:59.000Z
lib/python/treadmill_aws/formatter.py
Morgan-Stanley/treadmill-aws
4c3d25c477422d83f0cd8dc6851fd02ffa48dcbb
[ "Apache-2.0" ]
93
2018-04-16T16:14:40.000Z
2019-09-17T22:10:28.000Z
lib/python/treadmill_aws/formatter.py
Morgan-Stanley/treadmill-aws
4c3d25c477422d83f0cd8dc6851fd02ffa48dcbb
[ "Apache-2.0" ]
17
2017-09-29T10:30:47.000Z
2019-01-28T21:52:03.000Z
"""Table CLI formatter. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import yaml from treadmill.formatter import tablefmt def _sort(unsorted): """Sort list.""" unsorted.sort() return '\n'.join(un...
31.094771
77
0.534314
13,245
0.696006
0
0
12,134
0.637625
0
0
5,334
0.280294
00357487ee3571e98c5b7547cf6b9f56fc60e338
483
py
Python
BOJ16360.py
INYEONGKIM/BOJ
5e83d77a92d18b0d20d26645c7cfe4ba3e2d25bc
[ "MIT" ]
2
2019-03-05T15:42:46.000Z
2019-07-24T15:52:36.000Z
BOJ16360.py
INYEONGKIM/BOJ
5e83d77a92d18b0d20d26645c7cfe4ba3e2d25bc
[ "MIT" ]
null
null
null
BOJ16360.py
INYEONGKIM/BOJ
5e83d77a92d18b0d20d26645c7cfe4ba3e2d25bc
[ "MIT" ]
null
null
null
r="" for _ in range(int(input())): s=input();tn=s[-2]+s[-1] if tn=='ne': r+=s[:-2]+'anes\n' else: t=s[-1] if t=='a' or t=='o' or t=='u': r+=s+'s\n' elif t=='i' or t=='y': r+=s[:-1]+'ios\n' elif t=='l' or t=='r' or t=='v': r+=s+'es\n...
23
40
0.3147
0
0
0
0
0
0
0
0
87
0.180124
0035d39504b6fcd873cb06e3d139aa8135704401
10,156
py
Python
src/newt/db/updater.py
bmjjr/db
39d3833f4458fcd20d09f383711745842b5db4f2
[ "MIT" ]
153
2017-01-24T16:55:00.000Z
2022-03-21T08:24:13.000Z
src/newt/db/updater.py
bmjjr/db
39d3833f4458fcd20d09f383711745842b5db4f2
[ "MIT" ]
14
2017-01-25T17:04:49.000Z
2021-12-05T19:26:35.000Z
src/newt/db/updater.py
bmjjr/db
39d3833f4458fcd20d09f383711745842b5db4f2
[ "MIT" ]
16
2017-01-25T07:25:17.000Z
2022-03-21T08:24:16.000Z
from __future__ import print_function """Updates database json representation """ import argparse import itertools import logging import relstorage.adapters.postgresql import relstorage.options import sys from . import pg_connection from . import follow from .jsonpickle import Jsonifier from ._adapter import DELETE_T...
35.760563
79
0.581824
0
0
0
0
0
0
0
0
3,427
0.337436
00366b8cd6a29a13103561a0ee4650cafb902f88
124
py
Python
pangram/pangram.py
oscantillomen/Exercism-Python
1a598769aff0e4dd58294fcd692ca0402061717e
[ "MIT" ]
null
null
null
pangram/pangram.py
oscantillomen/Exercism-Python
1a598769aff0e4dd58294fcd692ca0402061717e
[ "MIT" ]
null
null
null
pangram/pangram.py
oscantillomen/Exercism-Python
1a598769aff0e4dd58294fcd692ca0402061717e
[ "MIT" ]
null
null
null
import string ALPHABET = set(string.ascii_lowercase) def is_pangram(sentence): return ALPHABET <= set(sentence.lower())
24.8
44
0.766129
0
0
0
0
0
0
0
0
0
0
00366e60b64cbced6f7219fc7522d549d4e96c74
48
py
Python
src/pyyam/yam/exceptions/ShardConfigException.py
dpquigl/YAM
bd30afd1e2e662e43da0c41de6bde814f9fae1cf
[ "Apache-2.0" ]
null
null
null
src/pyyam/yam/exceptions/ShardConfigException.py
dpquigl/YAM
bd30afd1e2e662e43da0c41de6bde814f9fae1cf
[ "Apache-2.0" ]
null
null
null
src/pyyam/yam/exceptions/ShardConfigException.py
dpquigl/YAM
bd30afd1e2e662e43da0c41de6bde814f9fae1cf
[ "Apache-2.0" ]
null
null
null
class ShardConfigException(ValueError): pass
24
39
0.8125
48
1
0
0
0
0
0
0
0
0
00372000fecac8f61456e1d5394b1e5bd0e18f9f
3,538
py
Python
medtype-trainer/neleval/scripts/merge_evaluations.py
vsocrates/medtype
16c6f39d38a73c4c44258bbdf78074a81e07b1c7
[ "Apache-2.0" ]
113
2015-01-07T14:12:25.000Z
2022-01-21T12:23:57.000Z
medtype-trainer/neleval/scripts/merge_evaluations.py
vsocrates/medtype
16c6f39d38a73c4c44258bbdf78074a81e07b1c7
[ "Apache-2.0" ]
27
2015-02-02T02:45:38.000Z
2018-09-08T10:33:25.000Z
medtype-trainer/neleval/scripts/merge_evaluations.py
vsocrates/medtype
16c6f39d38a73c4c44258bbdf78074a81e07b1c7
[ "Apache-2.0" ]
24
2015-02-16T18:26:48.000Z
2021-05-25T13:23:53.000Z
#!/usr/bin/env python """Merge multiple evaluation files into one with prefixed measure names If directories are given, and --out-dir, will group by filename. Example usage: ./scripts/merge_evaluations.py --label-re='[^/]+/?$' -x eval_merged -l =TEDL2015_neleval-no1331 --out-dir /tmp/foobar tac15data/TEDL2015_nel...
34.349515
218
0.623799
0
0
0
0
0
0
0
0
832
0.235161
00373487473f078500f863d310d10f7cf34f3397
11,276
py
Python
IQA_BIECON_release/models/BIECON_base.py
lionzhnn/IQA_BIECON_release
9b9452681460cbd3b670aff62f18c6661a724997
[ "MIT" ]
96
2017-07-25T07:54:59.000Z
2022-01-09T03:33:07.000Z
IQA_BIECON_release/models/BIECON_base.py
lionzhnn/IQA_BIECON_release
9b9452681460cbd3b670aff62f18c6661a724997
[ "MIT" ]
4
2018-04-25T09:46:05.000Z
2019-11-08T12:44:39.000Z
IQA_BIECON_release/models/BIECON_base.py
jongyookim/IQA_BIECON_release
9b9452681460cbd3b670aff62f18c6661a724997
[ "MIT" ]
35
2017-07-25T02:51:22.000Z
2022-02-05T03:05:40.000Z
from __future__ import absolute_import, division, print_function import os import numpy as np import theano.tensor as T from .model_basis import ModelBasis from .model_record import Record from ..layers import layers class Model(ModelBasis): def __init__(self, model_config, rng=None): super...
35.796825
80
0.55321
11,042
0.979248
0
0
0
0
0
0
2,173
0.19271
003742f13f9356a906c197142f7555948cd82cbe
3,964
py
Python
portfolio/Python/scrapy/bosch_russian/220volt.py
0--key/lib
ba7a85dda2b208adc290508ca617bdc55a5ded22
[ "Apache-2.0" ]
null
null
null
portfolio/Python/scrapy/bosch_russian/220volt.py
0--key/lib
ba7a85dda2b208adc290508ca617bdc55a5ded22
[ "Apache-2.0" ]
null
null
null
portfolio/Python/scrapy/bosch_russian/220volt.py
0--key/lib
ba7a85dda2b208adc290508ca617bdc55a5ded22
[ "Apache-2.0" ]
5
2016-03-22T07:40:46.000Z
2021-05-30T16:12:21.000Z
import csv import os import json from string import join from scrapy import log from scrapy.spider import BaseSpider from scrapy.selector import HtmlXPathSelector from scrapy.http import Request, HtmlResponse, FormRequest from scrapy.utils.url import urljoin_rfc from product_spiders.items import Product, ProductLo...
39.247525
184
0.693239
3,556
0.897074
380
0.095863
0
0
0
0
1,323
0.333754
00375bfd9ff84622fa3d819bbee6225d14901c17
97
py
Python
Streamlit_DEMO/Text_input.py
ysraell/examples
b41df16ddda3db2cbafc4e4c85ac9bd5d000d375
[ "BSD-3-Clause" ]
7
2020-06-11T19:15:29.000Z
2021-01-31T22:04:56.000Z
Streamlit_DEMO/Text_input.py
ysraell/examples
b41df16ddda3db2cbafc4e4c85ac9bd5d000d375
[ "BSD-3-Clause" ]
2
2019-12-30T13:09:07.000Z
2020-06-22T03:14:28.000Z
Streamlit_DEMO/Text_input.py
ysraell/examples
b41df16ddda3db2cbafc4e4c85ac9bd5d000d375
[ "BSD-3-Clause" ]
3
2020-06-15T18:17:53.000Z
2020-06-22T20:32:33.000Z
import streamlit as st title = st.text_input("Search:", "") st.write("You search for: ", title)
19.4
36
0.680412
0
0
0
0
0
0
0
0
29
0.298969
00388d39e13165d5d68a97cebd954314afba1ff8
908
py
Python
pi4_software/Examples/WSClient.py
stuckatmarine/srauv-sim
30f4bae5d22a4529233ffa2705d7631d048a8130
[ "MIT" ]
1
2020-11-01T13:39:42.000Z
2020-11-01T13:39:42.000Z
pi4_software/Examples/WSClient.py
stuckatmarine/srauv-sim
30f4bae5d22a4529233ffa2705d7631d048a8130
[ "MIT" ]
null
null
null
pi4_software/Examples/WSClient.py
stuckatmarine/srauv-sim
30f4bae5d22a4529233ffa2705d7631d048a8130
[ "MIT" ]
null
null
null
#!/usr/bin/env python # WS client example to test server import asyncio import websockets import json import time async def hello(): uri = "ws://localhost:8001" async with websockets.connect(uri) as websocket: inp = input("Input msg number? ") obj = { "source" : "sim", ...
24.540541
61
0.480176
0
0
0
0
0
0
738
0.812775
246
0.270925
00389d2165f30aa4a1d559c1fcdd0bbb4c1ad957
1,834
py
Python
scripts/trends.py
iamDyeus/KnickAI
c17d808c949cb3467031498e7252bd2095c04699
[ "MIT" ]
31
2021-11-08T18:42:17.000Z
2022-03-25T07:45:46.000Z
scripts/trends.py
iamDyeus/KnickAI
c17d808c949cb3467031498e7252bd2095c04699
[ "MIT" ]
6
2021-12-20T14:15:44.000Z
2022-03-28T16:19:12.000Z
scripts/trends.py
iamDyeus/KnickAI
c17d808c949cb3467031498e7252bd2095c04699
[ "MIT" ]
3
2021-11-13T09:38:12.000Z
2022-03-25T07:44:17.000Z
#NOT YET WORKING PROPERLY #NOT INTEGRATED WITH THE ASSISTANT YET from pytrends.request import TrendReq # Only need to run this once, the rest of requests will use the same session. pytrend = TrendReq() def trending_searches(): # Get Google Hot Trends data trending_searches = pytrend.trending_...
35.960784
187
0.657034
0
0
0
0
0
0
0
0
725
0.395311
00394b6eff0f3c670ab13b288147b361f3297dc6
4,902
py
Python
Speedo/helpers/convert.py
aviskumar/speedo
758e8ac1fdeeb0b72c3a57742032ca5c79f0b2fa
[ "BSD-3-Clause" ]
null
null
null
Speedo/helpers/convert.py
aviskumar/speedo
758e8ac1fdeeb0b72c3a57742032ca5c79f0b2fa
[ "BSD-3-Clause" ]
null
null
null
Speedo/helpers/convert.py
aviskumar/speedo
758e8ac1fdeeb0b72c3a57742032ca5c79f0b2fa
[ "BSD-3-Clause" ]
3
2021-10-12T08:17:01.000Z
2021-12-21T01:17:54.000Z
import os import asyncio import re import requests import time import lottie import PIL.ImageOps from os.path import basename from PIL import Image from typing import Optional from .. import LOGS from ..config import Config from ..utils.extras import edit_or_reply as eor from .progress import * from .runner import r...
33.346939
101
0.625663
0
0
0
0
0
0
3,361
0.685639
1,259
0.256834
0039f4a3f7a0d18a245aaaaea7e026a31503a73d
453
py
Python
src/api/celery.py
Anfevazu/library-api-R5
6930226776d0146b7daa34151ee98457f202dbc5
[ "MIT" ]
null
null
null
src/api/celery.py
Anfevazu/library-api-R5
6930226776d0146b7daa34151ee98457f202dbc5
[ "MIT" ]
null
null
null
src/api/celery.py
Anfevazu/library-api-R5
6930226776d0146b7daa34151ee98457f202dbc5
[ "MIT" ]
null
null
null
from __future__ import absolute_import import os from celery import Celery from django.conf import settings os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings.'+os.environ.get('APP_ENV', 'local')) app = Celery('app') app.config_from_object('django.conf:settings') app.autodiscover_t...
26.647059
76
0.739514
0
0
0
0
92
0.203091
0
0
101
0.222958
003c4c33a5e695c65aafeb6d426e17f7228d37ef
12,953
py
Python
assemblyline_service_server/api/v1/task.py
CybercentreCanada/assemblyline-service-server
f4fbc7dcab122fa63fcc598db1c23a770c10145f
[ "MIT" ]
6
2020-06-29T14:32:24.000Z
2022-01-03T19:40:39.000Z
assemblyline_service_server/api/v1/task.py
CybercentreCanada/assemblyline-service-server
f4fbc7dcab122fa63fcc598db1c23a770c10145f
[ "MIT" ]
null
null
null
assemblyline_service_server/api/v1/task.py
CybercentreCanada/assemblyline-service-server
f4fbc7dcab122fa63fcc598db1c23a770c10145f
[ "MIT" ]
2
2021-01-15T18:31:17.000Z
2021-05-29T15:57:08.000Z
import time from typing import cast, Dict, Any from flask import request from assemblyline.common import forge from assemblyline.common.constants import SERVICE_STATE_HASH, ServiceStatus from assemblyline.common.dict_utils import flatten, unflatten from assemblyline.common.forge import CachedObject from assemblyline....
42.608553
119
0.63576
0
0
0
0
5,602
0.432487
0
0
3,252
0.251062
003c669ec9b5a285ed0283853c1db390654e252e
3,627
py
Python
install/app_store/tk-framework-qtwidgets/v2.6.5/python/search_completer/global_search_result_delegate.py
JoanAzpeitia/lp_sg
e0ee79555e419dd2ae3a5f31e5515b3f40b22a62
[ "MIT" ]
null
null
null
install/app_store/tk-framework-qtwidgets/v2.6.5/python/search_completer/global_search_result_delegate.py
JoanAzpeitia/lp_sg
e0ee79555e419dd2ae3a5f31e5515b3f40b22a62
[ "MIT" ]
null
null
null
install/app_store/tk-framework-qtwidgets/v2.6.5/python/search_completer/global_search_result_delegate.py
JoanAzpeitia/lp_sg
e0ee79555e419dd2ae3a5f31e5515b3f40b22a62
[ "MIT" ]
1
2020-02-15T10:42:56.000Z
2020-02-15T10:42:56.000Z
# Copyright (c) 2017 Shotgun Software Inc. # # CONFIDENTIAL AND PROPRIETARY # # This work is provided "AS IS" and subject to the Shotgun Pipeline Toolkit # Source Code License included in this distribution package. See LICENSE. # By accessing, using, copying or modifying this work you indicate your # agreement to the S...
38.585106
115
0.650675
2,739
0.75517
0
0
0
0
0
0
1,672
0.460987
003ca20243cae85d6e1700ea19f81a8feb7a525d
36
py
Python
clarity/Alignment/__init__.py
wjguan/phenocell
80ff7a0b5cc9e1ecedd8fe488b81a3df120096d9
[ "MIT" ]
null
null
null
clarity/Alignment/__init__.py
wjguan/phenocell
80ff7a0b5cc9e1ecedd8fe488b81a3df120096d9
[ "MIT" ]
null
null
null
clarity/Alignment/__init__.py
wjguan/phenocell
80ff7a0b5cc9e1ecedd8fe488b81a3df120096d9
[ "MIT" ]
null
null
null
__all__ = ['Elastix', 'Resampling'];
36
36
0.666667
0
0
0
0
0
0
0
0
21
0.583333
003d3548a8cf8ece40ea1e41ad2dd7fe0e795e6b
398
py
Python
heltour/tournament/migrations/0086_auto_20160901_2352.py
zbidwell/heltour
3895142695096a81cc65c3fefb7d4501ed796f46
[ "MIT" ]
41
2016-08-17T19:58:42.000Z
2021-11-08T10:52:07.000Z
heltour/tournament/migrations/0086_auto_20160901_2352.py
zbidwell/heltour
3895142695096a81cc65c3fefb7d4501ed796f46
[ "MIT" ]
257
2016-08-17T22:29:05.000Z
2022-01-13T00:42:05.000Z
heltour/tournament/migrations/0086_auto_20160901_2352.py
zbidwell/heltour
3895142695096a81cc65c3fefb7d4501ed796f46
[ "MIT" ]
31
2016-09-23T23:36:14.000Z
2022-01-14T17:05:08.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-09-01 23:52 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('tournament', '0085_auto_20160901_2341'), ] operations = [ migrations.AlterUniqueTogether( name='gameselection',...
19.9
59
0.600503
288
0.723618
0
0
0
0
0
0
141
0.354271
003db226f92b023c219ed5b17f0367bc583465db
124,728
py
Python
ros_bt_py/test/unittest/test_tree_manager.py
fzi-forschungszentrum-informatik/ros_bt_py
ed65e2b2f0a03411101f455c0ab38401ba50bada
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
4
2022-03-11T14:30:43.000Z
2022-03-31T07:21:35.000Z
ros_bt_py/test/unittest/test_tree_manager.py
fzi-forschungszentrum-informatik/ros_bt_py
ed65e2b2f0a03411101f455c0ab38401ba50bada
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
ros_bt_py/test/unittest/test_tree_manager.py
fzi-forschungszentrum-informatik/ros_bt_py
ed65e2b2f0a03411101f455c0ab38401ba50bada
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# -------- BEGIN LICENSE BLOCK -------- # Copyright 2022 FZI Forschungszentrum Informatik # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright # n...
43.113723
99
0.641372
121,023
0.970295
0
0
2,434
0.019514
0
0
14,797
0.118634
003dc875c6b6a3c3cf3b1f0f40f7270a5adb32a6
225
py
Python
examples/plugins/dummy/dummy/main.py
mikiec84/gaffer
8c5d5b5e2ff3fcb1f7cc7c8fbfc623f97dd0da8d
[ "MIT", "Unlicense" ]
null
null
null
examples/plugins/dummy/dummy/main.py
mikiec84/gaffer
8c5d5b5e2ff3fcb1f7cc7c8fbfc623f97dd0da8d
[ "MIT", "Unlicense" ]
null
null
null
examples/plugins/dummy/dummy/main.py
mikiec84/gaffer
8c5d5b5e2ff3fcb1f7cc7c8fbfc623f97dd0da8d
[ "MIT", "Unlicense" ]
1
2018-10-28T00:59:17.000Z
2018-10-28T00:59:17.000Z
from gaffer import Plugin __all__ = ['DummyPlugin'] from .app import DummyApp class DummyPlugin(Plugin): name = "dummy" version = "1.0" description = "test" def app(self, cfg): return DummyApp()
14.0625
26
0.635556
142
0.631111
0
0
0
0
0
0
31
0.137778
003e8e2269ee664c19971a3c8f0ad03c45a56847
2,485
py
Python
preprocessing/generate_diffs.py
windysavage/dfdc_deepfake_challenge
d10b54cf933282366157a031954b046d87d57009
[ "MIT" ]
null
null
null
preprocessing/generate_diffs.py
windysavage/dfdc_deepfake_challenge
d10b54cf933282366157a031954b046d87d57009
[ "MIT" ]
null
null
null
preprocessing/generate_diffs.py
windysavage/dfdc_deepfake_challenge
d10b54cf933282366157a031954b046d87d57009
[ "MIT" ]
null
null
null
import numpy as np import cv2 from preprocessing.utils import get_original_with_fakes from tqdm import tqdm from multiprocessing.pool import Pool from functools import partial # from skimage.measure import compare_ssim from skimage import metrics import argparse import os os.environ["MKL_NUM_THREADS"] = "1" os.environ...
31.858974
70
0.612475
0
0
0
0
0
0
0
0
278
0.111871
003fa9552b48b33e85beb33eaf261aef70d7ae40
18,905
py
Python
Model/model_v2.py
Insper-Data/data_bcg_news
49986db18095759adea00bb0dedc149acebb683b
[ "MIT" ]
null
null
null
Model/model_v2.py
Insper-Data/data_bcg_news
49986db18095759adea00bb0dedc149acebb683b
[ "MIT" ]
null
null
null
Model/model_v2.py
Insper-Data/data_bcg_news
49986db18095759adea00bb0dedc149acebb683b
[ "MIT" ]
null
null
null
import ast import community import datetime import lightgbm as lgb import math import matplotlib.pyplot as plt import networkx as nx import numpy as np import pandas as pd import pickle import plotly.express as px import os from sklearn.metrics import accuracy_score, confusion_matrix, roc_auc_score from tqdm import tqd...
41.187364
118
0.598678
18,566
0.981445
0
0
0
0
0
0
2,576
0.136174
00433726aac3c77abe8b0c9529d3eb24d0cd9286
1,074
py
Python
recipe_app/forms.py
dbobbgit/recipebox
8e4e5c6f609e2524726954c9382ca37e844721f9
[ "MIT" ]
null
null
null
recipe_app/forms.py
dbobbgit/recipebox
8e4e5c6f609e2524726954c9382ca37e844721f9
[ "MIT" ]
null
null
null
recipe_app/forms.py
dbobbgit/recipebox
8e4e5c6f609e2524726954c9382ca37e844721f9
[ "MIT" ]
null
null
null
from django import forms from recipe_app.models import Author from django.contrib.auth.forms import UserCreationForm # Create two forms: RecipeForm & AuthorForm """ Author: - Name: CharField - Bio: TextField Recipe: - Title: CharField - Author: ForeignKey - Description: TextField - Time Requ...
26.195122
66
0.685289
674
0.627561
0
0
0
0
0
0
364
0.33892
0044e564b42a943f2371101ac16d4cb0e1aee8d7
42,840
py
Python
roosterize/data/DataMiner.py
EngineeringSoftware/roosterize
2990f7bdef8889045a26f3e9aaaca96d9c92e0bc
[ "MIT" ]
16
2020-06-05T20:01:56.000Z
2022-02-09T16:10:09.000Z
roosterize/data/DataMiner.py
EngineeringSoftware/roosterize
2990f7bdef8889045a26f3e9aaaca96d9c92e0bc
[ "MIT" ]
6
2020-07-02T15:22:36.000Z
2020-12-16T13:04:16.000Z
roosterize/data/DataMiner.py
EngineeringSoftware/roosterize
2990f7bdef8889045a26f3e9aaaca96d9c92e0bc
[ "MIT" ]
3
2020-07-21T17:37:51.000Z
2020-12-10T05:36:32.000Z
from typing import * import collections import copy import hashlib import math import numpy as np from pathlib import Path import random import re from tqdm import tqdm import traceback import sys from seutil import LoggingUtils, IOUtils, BashUtils from seutil.project import Project from roosterize.data.CoqDocument ...
49.016018
259
0.639519
41,868
0.977311
0
0
40,467
0.944608
0
0
8,975
0.2095
00464d29c3ee1cf1c9de61907d49f9253edbd2f3
965
py
Python
venv/Lib/site-packages/gensim/similarities/__init__.py
saritmaitra/nlp_ner_topic_modeling
70914b4ae4cd7d3b9cb10776161132216394883c
[ "MIT" ]
3
2021-03-29T19:21:08.000Z
2021-12-31T09:30:11.000Z
VisionAPI/lib/python3.8/site-packages/gensim/similarities/__init__.py
aniruddhakj/AnswerScriptEvaluation
7b039b84355ecda1d55dc037ccfc4a4d661ad5e3
[ "BSD-3-Clause" ]
1
2021-08-30T08:53:09.000Z
2021-08-30T08:53:09.000Z
venv/Lib/site-packages/gensim/similarities/__init__.py
saritmaitra/nlp_ner_topic_modeling
70914b4ae4cd7d3b9cb10776161132216394883c
[ "MIT" ]
1
2021-03-30T05:02:53.000Z
2021-03-30T05:02:53.000Z
""" This package contains implementations of pairwise similarity queries. """ # bring classes directly into package namespace, to save some typing import warnings try: import Levenshtein # noqa:F401 except ImportError: msg = ( "The gensim.similarities.levenshtein submodule is disabled, because the opt...
32.166667
95
0.741969
0
0
0
0
0
0
0
0
443
0.459067
0046656ceee49a476e8e983594a595e1bad5bf96
27
py
Python
tpucolab/__init__.py
taomanwai/tpucolab
b822cc145987db96cfb0052dbb10934bedd005e6
[ "MIT" ]
1
2021-12-24T23:53:08.000Z
2021-12-24T23:53:08.000Z
tpucolab/__init__.py
taomanwai/tpucolab
b822cc145987db96cfb0052dbb10934bedd005e6
[ "MIT" ]
null
null
null
tpucolab/__init__.py
taomanwai/tpucolab
b822cc145987db96cfb0052dbb10934bedd005e6
[ "MIT" ]
2
2018-12-16T14:08:54.000Z
2019-05-28T14:41:59.000Z
from tpucolab.core import *
27
27
0.814815
0
0
0
0
0
0
0
0
0
0
004abcc62f87b11013e726a8b69a3c514744935d
1,858
py
Python
src/PIDController.py
methylDragon/momo-emotions
137161632cc45227884d1a7a46dbd75d261de371
[ "BSD-2-Clause" ]
11
2019-05-24T00:25:59.000Z
2021-05-17T07:08:58.000Z
src/PIDController.py
methylDragon/momo-emotions
137161632cc45227884d1a7a46dbd75d261de371
[ "BSD-2-Clause" ]
null
null
null
src/PIDController.py
methylDragon/momo-emotions
137161632cc45227884d1a7a46dbd75d261de371
[ "BSD-2-Clause" ]
10
2019-06-21T02:38:45.000Z
2021-07-07T04:50:39.000Z
import time class PIDController: def __init__(self, Kp=0.25, Ki=0.0, Kd=0.0, anti_windup=10.0, cmd_freq=0.0): self.Kp = Kp self.Ki = Ki self.Kd = Kd # Set max integral correction per timestep self.anti_windup = anti_windup # Set delay between updates (seconds) ...
27.731343
80
0.595264
1,844
0.992465
0
0
0
0
0
0
203
0.109257
004b29aa8664031730012b088eba2ecb4c151bb6
1,420
py
Python
tilty/emitters/sqlite.py
heresurpizza/tilty
758fc2513b5fb660ac11163941340e4c10f61081
[ "MIT" ]
13
2020-02-27T03:07:50.000Z
2022-01-02T20:01:57.000Z
tilty/emitters/sqlite.py
heresurpizza/tilty
758fc2513b5fb660ac11163941340e4c10f61081
[ "MIT" ]
10
2020-03-04T14:57:59.000Z
2021-07-23T03:54:17.000Z
tilty/emitters/sqlite.py
heresurpizza/tilty
758fc2513b5fb660ac11163941340e4c10f61081
[ "MIT" ]
8
2020-03-15T02:23:10.000Z
2020-11-25T12:42:37.000Z
# -*- coding: utf-8 -*- """ SQLite emitter """ import logging import sqlite3 LOGGER = logging.getLogger() def __type__() -> str: return 'SQLite' class SQLite: # pylint: disable=too-few-public-methods """ SQLite wrapper class """ def __init__(self, config: dict) -> None: """ Initializer ...
26.792453
73
0.527465
1,265
0.890845
0
0
0
0
0
0
843
0.593662
004de3fdbd877d9dca8c67922ef30d1cf30e4c3c
6,043
py
Python
IFishFarm.py
HussamElden/IFishFarm
c49acc997229b9ae0649d9e4765255cb2db02bfc
[ "CECILL-B" ]
1
2021-08-03T13:24:38.000Z
2021-08-03T13:24:38.000Z
IFishFarm.py
HussamElden/IFishFarm
c49acc997229b9ae0649d9e4765255cb2db02bfc
[ "CECILL-B" ]
null
null
null
IFishFarm.py
HussamElden/IFishFarm
c49acc997229b9ae0649d9e4765255cb2db02bfc
[ "CECILL-B" ]
2
2021-01-12T11:25:11.000Z
2022-03-11T21:25:53.000Z
import cv2 import numpy as np from numpy.linalg import norm import math import csv from operator import itemgetter from datetime import datetime import VideoEnhancement import fishpredictor import detector import kmeancluster import preproccesing import randomforst cluster = kmeancluster.kmeans() classifier = randomfo...
35.547059
133
0.529869
0
0
0
0
0
0
0
0
393
0.065034
004ed29e696ed2aef36a881fbaccde0ba220306d
889
py
Python
nanopores/geometries/W_3D_geo/params_geo.py
jhwnkim/nanopores
98b3dbb5d36464fbdc03f59d224d38e4255324ce
[ "MIT" ]
8
2016-09-07T01:59:31.000Z
2021-03-06T12:14:31.000Z
nanopores/geometries/W_3D_geo/params_geo.py
jhwnkim/nanopores
98b3dbb5d36464fbdc03f59d224d38e4255324ce
[ "MIT" ]
null
null
null
nanopores/geometries/W_3D_geo/params_geo.py
jhwnkim/nanopores
98b3dbb5d36464fbdc03f59d224d38e4255324ce
[ "MIT" ]
4
2017-12-06T17:43:01.000Z
2020-05-01T05:41:14.000Z
""" --- geometry parameters for Wei et al stochastic sensing --- """ nm = 1e-0 # @TODO maybe include tolc in parent file tolc = 1e-2*nm # tolerance for coordinate comparisons dim = 3 # molecule radius rMolecule = 5*nm # effective pore radius ~ d^SAM_p/2 r0 = 13*nm # aperture angle in degrees angle = 40 # SiN mem...
20.204545
68
0.730034
0
0
0
0
0
0
0
0
591
0.664792
004faf5abb1b54060367d19932230f631232c8a0
254
py
Python
Testing/send_test.py
jaronoff97/Flask-Boilerplate
f750f10274f84ba6682e65b3e9eb7d900813ee21
[ "CC0-1.0" ]
null
null
null
Testing/send_test.py
jaronoff97/Flask-Boilerplate
f750f10274f84ba6682e65b3e9eb7d900813ee21
[ "CC0-1.0" ]
null
null
null
Testing/send_test.py
jaronoff97/Flask-Boilerplate
f750f10274f84ba6682e65b3e9eb7d900813ee21
[ "CC0-1.0" ]
null
null
null
import requests sample_user = {"latitude" : 42.2561110, "longitude" : -71.0741010, "uid" : "0" , "first_name" : "alex", "last_name" : "iansiti"} send_url = "http://flask-macoder.rhcloud.com/near" r = requests.post(send_url, sample_user) print(r.json())
36.285714
128
0.685039
0
0
0
0
0
0
0
0
106
0.417323
005275ffc230ec92bee5ce893b5981ac62fa9054
3,293
py
Python
library/ucs_vlan_find.py
dsoper2/ucsm-ansible-1
9eef898d016e8e2c5f07990385ec1b8885edc533
[ "NTP" ]
54
2017-05-30T19:22:23.000Z
2021-12-17T07:36:55.000Z
library/ucs_vlan_find.py
dsoper2/ucsm-ansible-1
9eef898d016e8e2c5f07990385ec1b8885edc533
[ "NTP" ]
50
2017-05-10T07:37:09.000Z
2021-07-26T18:23:30.000Z
library/ucs_vlan_find.py
dsoper2/ucsm-ansible-1
9eef898d016e8e2c5f07990385ec1b8885edc533
[ "NTP" ]
54
2017-05-08T05:31:23.000Z
2021-11-16T09:34:32.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], ...
26.991803
107
0.64379
0
0
0
0
0
0
0
0
2,033
0.616621
0053cf487a42c750c2cd4aedb2f3962276b8ea47
1,660
py
Python
pytf2/currency.py
mninc/pytf
3dbf93f6c6b8edd7366f9fdb8f46ad84df3ac819
[ "MIT" ]
7
2018-03-09T22:50:31.000Z
2021-08-09T10:17:45.000Z
pytf2/currency.py
mninc/pytf
3dbf93f6c6b8edd7366f9fdb8f46ad84df3ac819
[ "MIT" ]
2
2019-06-19T19:18:34.000Z
2020-08-20T11:10:09.000Z
pytf2/currency.py
mninc/pytf
3dbf93f6c6b8edd7366f9fdb8f46ad84df3ac819
[ "MIT" ]
1
2019-08-15T08:23:32.000Z
2019-08-15T08:23:32.000Z
from functools import total_ordering def keys_to_scrap(keyprice, keys, metal): return round(keys * round(keyprice * 9)) + round(metal * 9) def scrap_to_keys(keyprice, scrap, force_ref=False): keys = 0 while not force_ref and scrap > round(keyprice * 9): keys += 1 scrap -= round(keyprice ...
24.411765
65
0.56747
972
0.585542
0
0
988
0.595181
0
0
12
0.007229
cc363d4217d466323d8e71cf244f2eebe4bc0f84
6,251
py
Python
course_valve/valve_core.py
sharpblade4/course_valve
52f1ad5600c17bb9fe876b6cf1ed91151ce41498
[ "Apache-2.0" ]
null
null
null
course_valve/valve_core.py
sharpblade4/course_valve
52f1ad5600c17bb9fe876b6cf1ed91151ce41498
[ "Apache-2.0" ]
null
null
null
course_valve/valve_core.py
sharpblade4/course_valve
52f1ad5600c17bb9fe876b6cf1ed91151ce41498
[ "Apache-2.0" ]
null
null
null
from typing import Tuple, Pattern from urllib.request import urlopen import os from ftplib import FTP from tempfile import TemporaryDirectory from hashlib import sha256 import re from course_valve.valve_defs import ( TARGET_FTP, ENCRYPTED_PASSWORD, TARGET_FILE_NAME, IDENTIFIER, NO_IDENTIFIER, F...
41.125
99
0.648216
5,835
0.933451
0
0
1,694
0.270997
0
0
487
0.077908
cc3793708ffd8065396601385980cfad2d4740fe
1,782
py
Python
tests/test_base.py
mwibrow/vlnm
f3fc6ba1a207431bc12a457aab4ab847a584a66f
[ "AFL-3.0" ]
null
null
null
tests/test_base.py
mwibrow/vlnm
f3fc6ba1a207431bc12a457aab4ab847a584a66f
[ "AFL-3.0" ]
4
2018-09-25T06:57:29.000Z
2019-09-09T13:22:00.000Z
tests/test_base.py
mwibrow/vlnm
f3fc6ba1a207431bc12a457aab4ab847a584a66f
[ "AFL-3.0" ]
1
2020-10-20T05:42:45.000Z
2020-10-20T05:42:45.000Z
""" Tests for the base module """ from vlnm.normalizers.base import ( FormantGenericNormalizer, FormantSpecificNormalizer, FormantsTransformNormalizer, Normalizer) from tests.helpers import Helper class TestBaseNormalizers(Helper.TestNormalizerBase): """ Tests for the base Normalizer class. ...
32.4
90
0.685746
1,564
0.877666
0
0
0
0
0
0
415
0.232884
cc37b7d3f91a095814758d351ed6ae362f360126
5,934
py
Python
arbiter.py
camerongivler/bitcoin-utils
86e7ba95ef016b24c33fe819a9879b387f7f70f9
[ "MIT" ]
null
null
null
arbiter.py
camerongivler/bitcoin-utils
86e7ba95ef016b24c33fe819a9879b387f7f70f9
[ "MIT" ]
null
null
null
arbiter.py
camerongivler/bitcoin-utils
86e7ba95ef016b24c33fe819a9879b387f7f70f9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import sys import time import traceback from itertools import combinations from multiprocessing.pool import ThreadPool from exchangebase import ExchangeBase from exchangepair import ExchangePair from gdaxapi import Gdax from krakenapi import Kraken class Arbiter: def __init__(se...
41.496503
117
0.531345
5,437
0.916245
0
0
0
0
0
0
1,225
0.206437
cc3a46291852e6e6df74967b9e59f3edcd3b7c15
2,289
py
Python
demos/dlgr/demos/rumour_stuff_chain/extend_hit.py
allisonmorgan/Dallinger
f171e28c352854a3c6ed6b21f25362cd933b17dc
[ "MIT" ]
1
2019-08-01T16:15:44.000Z
2019-08-01T16:15:44.000Z
demos/dlgr/demos/rumour_stuff_chain/extend_hit.py
allisonmorgan/Dallinger
f171e28c352854a3c6ed6b21f25362cd933b17dc
[ "MIT" ]
null
null
null
demos/dlgr/demos/rumour_stuff_chain/extend_hit.py
allisonmorgan/Dallinger
f171e28c352854a3c6ed6b21f25362cd933b17dc
[ "MIT" ]
null
null
null
import boto3 import sys import numpy as np import random import time # endpoint_url = 'https://mturk-requester-sandbox.us-east-1.amazonaws.com' endpoint_url = 'https://mturk-requester.us-east-1.amazonaws.com' ##Remember to put the AWS credential in ~/.aws/credential like below: ####### #[default] #aws_access_key_id = ...
48.702128
138
0.769332
0
0
0
0
0
0
0
0
968
0.422892
cc3b53a3879a2fe4a77aa4a8b7af91545a4857ec
4,623
py
Python
stable_baselines/low_dim_analysis/eval_util.py
hugerepo-tianhang/low_dim_update_stable
565f6cbf886d266d0633bc112ccae28f1d116ee1
[ "MIT" ]
null
null
null
stable_baselines/low_dim_analysis/eval_util.py
hugerepo-tianhang/low_dim_update_stable
565f6cbf886d266d0633bc112ccae28f1d116ee1
[ "MIT" ]
null
null
null
stable_baselines/low_dim_analysis/eval_util.py
hugerepo-tianhang/low_dim_update_stable
565f6cbf886d266d0633bc112ccae28f1d116ee1
[ "MIT" ]
null
null
null
# def get_param_traj_file_path(dir_name, net_name, index): # return f'{dir_name}/{net_name}_{index}.txt' import os from datetime import datetime def get_current_timestamp(): return datetime.now().strftime('%Y-%m-%d-%H:%M:%S') def get_project_dir(): project_dir = os.path.abspath(os.path.join(os.path.abspa...
36.401575
134
0.784123
0
0
0
0
0
0
0
0
2,174
0.470257
cc3bb136570430d6501e2f8f63227f6e1d115c10
6,018
py
Python
tests/test_manager.py
rscalzo/sami
7ac5632e018cdf2384f5ff067c503177684f61c8
[ "BSD-3-Clause" ]
1
2021-12-07T08:30:38.000Z
2021-12-07T08:30:38.000Z
tests/test_manager.py
rscalzo/sami
7ac5632e018cdf2384f5ff067c503177684f61c8
[ "BSD-3-Clause" ]
null
null
null
tests/test_manager.py
rscalzo/sami
7ac5632e018cdf2384f5ff067c503177684f61c8
[ "BSD-3-Clause" ]
3
2021-02-15T19:51:59.000Z
2021-05-04T05:48:46.000Z
from __future__ import print_function import pytest from tempfile import mkdtemp from glob import glob import shutil import fnmatch import os import os.path import sami TEST_DIR = os.path.join(os.path.split(__file__)[0], "test_data") # Note: if the test data is changed, then these lists must be updated # (too hard...
38.088608
106
0.674643
4,505
0.748588
0
0
4,755
0.79013
0
0
1,795
0.298272
cc3c03312a697ba2de1761ab5b8ccb3cbedb8ca1
1,536
py
Python
test/test_add_contact.py
galarina1880/python_training
f8fefdd484f4409cb6f43be1d791b50306e5bb2d
[ "Apache-2.0" ]
null
null
null
test/test_add_contact.py
galarina1880/python_training
f8fefdd484f4409cb6f43be1d791b50306e5bb2d
[ "Apache-2.0" ]
null
null
null
test/test_add_contact.py
galarina1880/python_training
f8fefdd484f4409cb6f43be1d791b50306e5bb2d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from model.contact import Contact def test_add_contact(app): old_contacts = app.contact.get_contact_list() contact = Contact(firstname='firstname', middlename='middlename', lastname='lastname', nickname='nick', title='title', company='company', address='address', home='home phone', mob...
64
438
0.684245
0
0
0
0
0
0
0
0
895
0.582682
cc3d4f119ef3b88e30b1e9d3c45699b0745cbf05
1,038
py
Python
AntShares/Network/Inventory.py
OTCGO/sync_antshares
5724a5a820ec5f59e0c886a3c1646db2d07b4d78
[ "MIT" ]
10
2017-03-28T05:44:35.000Z
2021-02-17T03:51:39.000Z
AntShares/Network/Inventory.py
OTCGO/sync_antshares
5724a5a820ec5f59e0c886a3c1646db2d07b4d78
[ "MIT" ]
2
2017-07-06T10:00:25.000Z
2017-08-09T10:14:34.000Z
AntShares/Network/Inventory.py
OTCGO/sync_antshares
5724a5a820ec5f59e0c886a3c1646db2d07b4d78
[ "MIT" ]
3
2017-03-28T05:44:39.000Z
2018-02-09T09:56:03.000Z
# -*- coding:utf-8 -*- """ Description: Inventory Class Usage: from AntShares.Network.Inventory import Inventory """ from AntShares.IO.MemoryStream import MemoryStream from AntShares.IO.BinaryWriter import BinaryWriter from AntShares.Cryptography.Helper import * from AntShares.Helper import * import binascii...
21.183673
80
0.654143
714
0.687861
0
0
0
0
0
0
152
0.146435
cc3e5392334cf15bfc02e165a4492d59caf3fc7b
1,585
py
Python
colorswatch-translator.py
MartyMacGyver/color-swatch-tool
a1351e459a4bea4da2e3dfaf881221109595fa21
[ "Apache-2.0" ]
null
null
null
colorswatch-translator.py
MartyMacGyver/color-swatch-tool
a1351e459a4bea4da2e3dfaf881221109595fa21
[ "Apache-2.0" ]
null
null
null
colorswatch-translator.py
MartyMacGyver/color-swatch-tool
a1351e459a4bea4da2e3dfaf881221109595fa21
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2015-2017 Martin F. Falatic # # 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 # # Unl...
31.7
77
0.565931
0
0
0
0
0
0
0
0
818
0.516088
cc3ffb8f152bd3e99ff55c7878559254b86ef957
11,024
py
Python
broker/test_setup/nas/run_jobs.py
ebloc/ebloc-broker
776a8d9d4642ed1ba4726c94da68d61bd81c098b
[ "MIT" ]
3
2021-12-11T19:26:57.000Z
2021-12-30T00:17:23.000Z
broker/test_setup/nas/run_jobs.py
ebloc/ebloc-broker
776a8d9d4642ed1ba4726c94da68d61bd81c098b
[ "MIT" ]
null
null
null
broker/test_setup/nas/run_jobs.py
ebloc/ebloc-broker
776a8d9d4642ed1ba4726c94da68d61bd81c098b
[ "MIT" ]
1
2021-09-18T11:38:07.000Z
2021-09-18T11:38:07.000Z
#!/usr/bin/env python3 import os.path import random from pathlib import Path from random import randint from pymongo import MongoClient from web3.logs import DISCARD from broker import cfg from broker._utils import _log from broker._utils._log import console_ruler from broker._utils.tools import _time, _timestamp, c...
44.273092
120
0.61484
0
0
0
0
0
0
0
0
4,533
0.411194
cc4031a6954bcf042bbc85f87eefa7a1869a0a28
8,441
py
Python
src/models/basic.py
ewanlee/mackrl
6dd505aa09830f16c35a022f67e255db935c807e
[ "Apache-2.0" ]
26
2019-10-28T09:01:45.000Z
2021-09-20T08:56:12.000Z
src/models/basic.py
ewanlee/mackrl
6dd505aa09830f16c35a022f67e255db935c807e
[ "Apache-2.0" ]
1
2020-07-25T06:50:05.000Z
2020-07-25T06:50:05.000Z
src/models/basic.py
ewanlee/mackrl
6dd505aa09830f16c35a022f67e255db935c807e
[ "Apache-2.0" ]
6
2019-12-18T12:02:57.000Z
2021-03-03T13:15:47.000Z
from torch.autograd import Variable import torch.nn.functional as F import torch.nn as nn import torch as th from components.transforms import _to_batch, _from_batch, _check_inputs_validity, _tdim, _vdim class DQN(nn.Module): def __init__(self, input_shapes, n_actions, output_type=None, output_shapes=None, layer_...
39.260465
120
0.621016
8,226
0.974529
0
0
0
0
0
0
1,901
0.22521
cc40fcfa271ed898e5b820a6656b997eb787c958
401
py
Python
02 - Estruturas de controle/ex041.py
epedropaulo/MyPython
cdb3602a01aedac26047f5b11a36a2262d4cc2ea
[ "MIT" ]
null
null
null
02 - Estruturas de controle/ex041.py
epedropaulo/MyPython
cdb3602a01aedac26047f5b11a36a2262d4cc2ea
[ "MIT" ]
null
null
null
02 - Estruturas de controle/ex041.py
epedropaulo/MyPython
cdb3602a01aedac26047f5b11a36a2262d4cc2ea
[ "MIT" ]
null
null
null
from datetime import date nascimento = int(input('Digite o ano de nascimento: ')) idade = date.today().year - nascimento print(f'Ele tem {idade} anos.') if idade <= 9: lugar = 'mirim' elif idade <= 14: lugar = 'infantil' elif idade <= 19: lugar = 'junior' elif idade <= 25: lugar = 'sênior' ...
23.588235
56
0.618454
0
0
0
0
0
0
0
0
138
0.343284
cc42acd8fcb3b2b7849649f0c10ba4fa44824a33
82
py
Python
utils/__init__.py
HerrYu123/deeplabv3
4f29d2bfb725a77b22fb04e1e0006ae742fa5d47
[ "MIT" ]
null
null
null
utils/__init__.py
HerrYu123/deeplabv3
4f29d2bfb725a77b22fb04e1e0006ae742fa5d47
[ "MIT" ]
null
null
null
utils/__init__.py
HerrYu123/deeplabv3
4f29d2bfb725a77b22fb04e1e0006ae742fa5d47
[ "MIT" ]
null
null
null
from .utils import add_weight_decay, AverageMeter, label_img_to_color, check_mkdir
82
82
0.878049
0
0
0
0
0
0
0
0
0
0
cc45ba5985dd0e3782dd94c105224f3ada5ebf10
1,159
py
Python
scripts/collect_infer.py
TsaiTung-Chen/wtbd
60fb153eec88e83c04ad4eac3c4a94188a28eeac
[ "MIT" ]
null
null
null
scripts/collect_infer.py
TsaiTung-Chen/wtbd
60fb153eec88e83c04ad4eac3c4a94188a28eeac
[ "MIT" ]
null
null
null
scripts/collect_infer.py
TsaiTung-Chen/wtbd
60fb153eec88e83c04ad4eac3c4a94188a28eeac
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Sep 27 18:11:58 2021 @author: TSAI, TUNG-CHEN @update: 2021/10/05 """ MODEL_NAME = 'PhysicalCNN' DIRECTORY = r"../dataset/preprocessed/data/" WALK = True SUBSET = 'all' from wtbd.infer import infer from wtbd.utils import print_info from wtbd.data_c...
26.953488
79
0.449525
0
0
0
0
0
0
0
0
525
0.452977
cc48fd52654d6c5c9dcc17149850ed8b8aa26647
2,262
py
Python
coll_plw.py
flychensc/apple
1b85d05e589b3c53b0ac4df29f53d4793c1a3686
[ "Apache-2.0" ]
2
2018-12-18T13:00:22.000Z
2020-01-08T07:40:52.000Z
coll_plw.py
flychensc/apple
1b85d05e589b3c53b0ac4df29f53d4793c1a3686
[ "Apache-2.0" ]
null
null
null
coll_plw.py
flychensc/apple
1b85d05e589b3c53b0ac4df29f53d4793c1a3686
[ "Apache-2.0" ]
1
2019-04-23T00:16:37.000Z
2019-04-23T00:16:37.000Z
""" 排列五的概率输出 """ from lottery import get_history import pandas as pd import dash import dash_html_components as html import dash_core_components as dcc CODE = '排列五' MIN = 1 COUNT = 200 def _calc_prob(num, datas): """ 计算num在datas里的概率 e.g.: num = 1 data = [[2,3],[1,7],[3,6]] retun...
23.5625
78
0.516799
0
0
0
0
0
0
0
0
581
0.247445
cc490adc1922a89384ac9296797453d77a47df06
1,947
py
Python
shipper/build.py
obukhov-sergey/shipper
574b30b2b76087d6ebb8ccf9824e175bd1c9d123
[ "Apache-2.0" ]
1
2021-11-27T14:40:26.000Z
2021-11-27T14:40:26.000Z
shipper/build.py
obukhov-sergey/shipper
574b30b2b76087d6ebb8ccf9824e175bd1c9d123
[ "Apache-2.0" ]
null
null
null
shipper/build.py
obukhov-sergey/shipper
574b30b2b76087d6ebb8ccf9824e175bd1c9d123
[ "Apache-2.0" ]
1
2021-11-27T14:40:27.000Z
2021-11-27T14:40:27.000Z
""" Copyright [2013] [Rackspace] 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, software ...
29.5
75
0.657422
0
0
0
0
0
0
0
0
839
0.430919
cc49b50c5785fa980c7e85218289793f796ae7da
266
py
Python
util/logs.py
seen-idc/disco
c0a2e83ebcb26be469ee2a3243c315429add556b
[ "MIT" ]
1
2021-12-11T12:01:04.000Z
2021-12-11T12:01:04.000Z
util/logs.py
seen-idc/disco
c0a2e83ebcb26be469ee2a3243c315429add556b
[ "MIT" ]
null
null
null
util/logs.py
seen-idc/disco
c0a2e83ebcb26be469ee2a3243c315429add556b
[ "MIT" ]
null
null
null
from datetime import datetime today = datetime.today().strftime('%Y-%m-%d %H-%M-%S') def log_msg(text): with open(f'./logs/{today}.log', 'a+') as log: log_time = datetime.today().strftime('%Y-%m-%d %H:%M:%S') log.write(f'[{log_time}] {text}\n')
33.25
65
0.586466
0
0
0
0
0
0
0
0
87
0.327068
cc4ce47e67db9699366e5b5fb9b6dab99a776e52
581
py
Python
platformio_script.py
aircarto/Nebulo
3134def3810e5c9579350a63299a33670583a722
[ "MIT" ]
1
2021-12-27T01:07:26.000Z
2021-12-27T01:07:26.000Z
platformio_script.py
aircarto/Nebulo
3134def3810e5c9579350a63299a33670583a722
[ "MIT" ]
null
null
null
platformio_script.py
aircarto/Nebulo
3134def3810e5c9579350a63299a33670583a722
[ "MIT" ]
null
null
null
Import("env") import hashlib import os import shutil def _file_md5_hexdigest(fname): return hashlib.md5(open(fname, 'rb').read()).hexdigest() def after_build(source, target, env): if not os.path.exists("builds"): os.mkdir("builds") lang = env.GetProjectOption('lang') target_name = lang.lower(...
26.409091
67
0.695353
0
0
0
0
0
0
0
0
131
0.225473
cc4e03aa9fb9cf8d29ed71ffc7fbde9900f6b98a
8,184
py
Python
htmldiffer/utils.py
IYIagnus/htmldiffer
0778e8771905db57f57f32d84471d35cf9a0f39d
[ "MIT" ]
9
2017-10-06T01:39:54.000Z
2021-08-21T12:59:27.000Z
htmldiffer/utils.py
IYIagnus/htmldiffer
0778e8771905db57f57f32d84471d35cf9a0f39d
[ "MIT" ]
21
2017-09-08T04:03:12.000Z
2021-12-23T12:28:44.000Z
htmldiffer/utils.py
anastasia/htmldiff
2a4e770eca6f742216afd33a1a6e82bb25f5fea0
[ "MIT" ]
10
2017-10-06T01:40:03.000Z
2021-12-23T12:30:11.000Z
import re import os from bs4 import BeautifulSoup from . import settings def html2list(html_string, level='word'): """ :param html_string: any ol' html string you've got level: either 'word' or 'character'. If level='word', elements will be words. If level='character', elem...
30.651685
115
0.568793
0
0
0
0
0
0
0
0
3,060
0.3739
cc4f335d8706e5da167e24cbfe0bd8271e69c190
3,846
py
Python
pgAdmin/pgadmin4/web/pgadmin/browser/server_groups/servers/databases/foreign_data_wrappers/foreign_servers/user_mappings/tests/utils.py
WeilerWebServices/PostgreSQL
ae594ed077bebbad1be3c1d95c38b7c2c2683e8c
[ "PostgreSQL" ]
null
null
null
pgAdmin/pgadmin4/web/pgadmin/browser/server_groups/servers/databases/foreign_data_wrappers/foreign_servers/user_mappings/tests/utils.py
WeilerWebServices/PostgreSQL
ae594ed077bebbad1be3c1d95c38b7c2c2683e8c
[ "PostgreSQL" ]
null
null
null
pgAdmin/pgadmin4/web/pgadmin/browser/server_groups/servers/databases/foreign_data_wrappers/foreign_servers/user_mappings/tests/utils.py
WeilerWebServices/PostgreSQL
ae594ed077bebbad1be3c1d95c38b7c2c2683e8c
[ "PostgreSQL" ]
null
null
null
########################################################################## # # pgAdmin 4 - PostgreSQL Tools # # Copyright (C) 2013 - 2020, The pgAdmin Development Team # This software is released under the PostgreSQL Licence # ########################################################################## import os import...
33.736842
77
0.50286
0
0
0
0
0
0
0
0
1,450
0.377015
cc4fff28ee4d94fb2b52c842939ccc5bea70cd6b
1,467
py
Python
src/litedesk/lib/airwatch/base.py
litedesk/litedesk-lib-airwatch
19c47a50d606f966497a6e24fd892bca1bf11354
[ "Apache-2.0" ]
1
2016-12-22T07:10:45.000Z
2016-12-22T07:10:45.000Z
src/litedesk/lib/airwatch/base.py
litedesk/litedesk-lib-airwatch
19c47a50d606f966497a6e24fd892bca1bf11354
[ "Apache-2.0" ]
null
null
null
src/litedesk/lib/airwatch/base.py
litedesk/litedesk-lib-airwatch
19c47a50d606f966497a6e24fd892bca1bf11354
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2014, Deutsche Telekom AG - Laboratories (T-Labs) # # 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 # # Unl...
34.928571
92
0.656442
164
0.111793
0
0
0
0
0
0
643
0.438309
cc50d33be84a339a3707572fbfdb3ba740f84346
840
py
Python
employee_management/employee_management/doctype/valiant/Permission_Override/permission_override.py
Vivekananthan112599/Frappe-Vivek
6a2b70c736e17e9748c6a30e5722341acfb3b5c5
[ "MIT" ]
null
null
null
employee_management/employee_management/doctype/valiant/Permission_Override/permission_override.py
Vivekananthan112599/Frappe-Vivek
6a2b70c736e17e9748c6a30e5722341acfb3b5c5
[ "MIT" ]
null
null
null
employee_management/employee_management/doctype/valiant/Permission_Override/permission_override.py
Vivekananthan112599/Frappe-Vivek
6a2b70c736e17e9748c6a30e5722341acfb3b5c5
[ "MIT" ]
null
null
null
import frappe def permission_ov(user): pass # print("///////////******///////******////******///**") # print(user) # print(frappe.session.user) # return """(`tabValiant`.`native`='Salem' )""" # return "(`tabValiant`.owner = 'i am')".format(user=frappe.db.escape(user)) def has_permission(doc, user=None, permiss...
24
76
0.513095
0
0
0
0
0
0
0
0
505
0.60119
cc52398a725b3573f2ce15c63cfb703dc5d3fa5f
2,760
py
Python
test/Django/05/02/BookManager/Book/views.py
Kingworrior007/lchw001
e59e6f300123bd98d49e81be16e73a4440ffa85a
[ "MIT" ]
2
2018-03-09T02:13:54.000Z
2020-12-28T01:47:30.000Z
test/Django/05/02/BookManager/Book/views.py
X-Warrior007/lchw001
e59e6f300123bd98d49e81be16e73a4440ffa85a
[ "MIT" ]
null
null
null
test/Django/05/02/BookManager/Book/views.py
X-Warrior007/lchw001
e59e6f300123bd98d49e81be16e73a4440ffa85a
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse,JsonResponse from django.conf import settings from Book.models import PictureInfo,AreaInfo from django.core.paginator import Paginator # Create your views here. def sheng(request): """获取省级数据,并转JSON字典,响应给ajax""" # 查询省级数据 sheng_list = [Ar...
21.5625
113
0.63913
0
0
0
0
0
0
0
0
1,976
0.589147
cc539e34ac77acde6025be508c15b403c3e70d57
4,925
py
Python
stanCode_projects/boggle_game/add2.py
lindcrj/stanCode_projects
2ce2f7b51fb1e6940ab2b62b05edccfef66739b4
[ "MIT" ]
null
null
null
stanCode_projects/boggle_game/add2.py
lindcrj/stanCode_projects
2ce2f7b51fb1e6940ab2b62b05edccfef66739b4
[ "MIT" ]
null
null
null
stanCode_projects/boggle_game/add2.py
lindcrj/stanCode_projects
2ce2f7b51fb1e6940ab2b62b05edccfef66739b4
[ "MIT" ]
null
null
null
""" File: add2.py Name: ------------------------ TODO: """ import sys class ListNode: def __init__(self, data=0, pointer=None): self.val = data self.next = pointer def add_2_numbers(l1: ListNode, l2: ListNode) -> ListNode: ####################### # # # TOD...
27.361111
64
0.431878
113
0.022842
0
0
0
0
0
0
787
0.159086
cc53da809995bfcf906eeef477759efe194c27ed
1,157
py
Python
node/trust.py
cflynn07/OpenBazaar
439511e9c81a658cdad2014b02d3fdf13abab5c4
[ "MIT" ]
null
null
null
node/trust.py
cflynn07/OpenBazaar
439511e9c81a658cdad2014b02d3fdf13abab5c4
[ "MIT" ]
null
null
null
node/trust.py
cflynn07/OpenBazaar
439511e9c81a658cdad2014b02d3fdf13abab5c4
[ "MIT" ]
null
null
null
import obelisk import logging import bitcoin from twisted.internet import reactor _log = logging.getLogger('trust') TESTNET = False def burnaddr_from_guid(guid_hex): _log.debug("burnaddr_from_guid: %s", guid_hex) if TESTNET: guid_hex = '6f' + guid_hex else: guid_hex = '00' + guid_hex ...
21.425926
59
0.673293
0
0
0
0
0
0
0
0
324
0.280035
cc540b688ab45280f7ea07bb3f403f279507c6f1
1,261
py
Python
backend/collages/__init__.py
dyachoksa/collage-generator
a5682869488f8e5ebbca56a58a7f425dada215ed
[ "MIT" ]
null
null
null
backend/collages/__init__.py
dyachoksa/collage-generator
a5682869488f8e5ebbca56a58a7f425dada215ed
[ "MIT" ]
null
null
null
backend/collages/__init__.py
dyachoksa/collage-generator
a5682869488f8e5ebbca56a58a7f425dada215ed
[ "MIT" ]
null
null
null
# Collage Generator Backend Application import logging.config from starlette.applications import Starlette from starlette.middleware import Middleware from starlette.middleware.authentication import AuthenticationMiddleware from starlette.middleware.gzip import GZipMiddleware from starlette_context import plugins from...
26.829787
77
0.780333
0
0
0
0
141
0.111816
90
0.071372
118
0.093577
cc575e937de9aeef001a485a8da20d00adb1974e
2,298
py
Python
codechef/long-challenge/may21/LKDNGOLF.py
ramanaditya/data-structure-and-algorithms
8dcfeb011e76b2b38b54842e8ccc7a59728141f8
[ "MIT" ]
81
2020-05-22T14:22:04.000Z
2021-12-18T10:11:23.000Z
codechef/long-challenge/may21/LKDNGOLF.py
techhub-community/data-structure-and-algorithms
8dcfeb011e76b2b38b54842e8ccc7a59728141f8
[ "MIT" ]
4
2020-08-06T21:08:00.000Z
2021-03-31T16:07:50.000Z
codechef/long-challenge/may21/LKDNGOLF.py
techhub-community/data-structure-and-algorithms
8dcfeb011e76b2b38b54842e8ccc7a59728141f8
[ "MIT" ]
37
2020-05-22T14:25:21.000Z
2021-12-30T03:13:13.000Z
""" [Golf](https://www.codechef.com/MAY21C/problems/LKDNGOLF) It's a lockdown. You’re bored in your house and are playing golf in the hallway. The hallway has N+2 tiles numbered from 0 to N+1 from left to right. There is a hole on tile number x. You hit the ball standing on tile 0. When you hit the ball, it bounces a...
29.088608
119
0.679721
0
0
0
0
0
0
0
0
1,960
0.844828
cc58d71d7ae86ba704bcdd360c5f0a8dc49d8018
1,446
py
Python
yogit/yogit/logger.py
jmaneyrol69/yogit
347a6ee990e066eab36432dbae93ee05c681f329
[ "MIT" ]
17
2019-07-15T08:01:08.000Z
2022-02-16T20:07:20.000Z
yogit/yogit/logger.py
jmaneyrol69/yogit
347a6ee990e066eab36432dbae93ee05c681f329
[ "MIT" ]
5
2019-07-16T12:49:08.000Z
2020-10-20T15:27:41.000Z
yogit/yogit/logger.py
jmaneyrol69/yogit
347a6ee990e066eab36432dbae93ee05c681f329
[ "MIT" ]
4
2019-07-16T12:38:46.000Z
2020-10-19T12:51:37.000Z
""" Application logger """ import logging import os import sys from yogit import get_name, get_version from yogit.yogit.paths import get_log_path, SETTINGS_DIR def get_logger(stdout=False, logger_name=get_name(), version=get_version()): """ Create and configure a logger using a given name. """ os.ma...
24.931034
76
0.677732
0
0
0
0
0
0
0
0
261
0.180498
cc58da3fac72aacf2a23055a4b3451dabb43f644
481
py
Python
src/mbed_cloud/_backends/statistics/models/__init__.py
GQMai/mbed-cloud-sdk-python
76ef009903415f37f69dcc5778be8f5fb14c08fe
[ "Apache-2.0" ]
12
2017-12-28T11:18:43.000Z
2020-10-04T12:11:15.000Z
src/mbed_cloud/_backends/statistics/models/__init__.py
GQMai/mbed-cloud-sdk-python
76ef009903415f37f69dcc5778be8f5fb14c08fe
[ "Apache-2.0" ]
50
2017-12-21T12:50:41.000Z
2020-01-13T16:07:08.000Z
src/mbed_cloud/_backends/statistics/models/__init__.py
GQMai/mbed-cloud-sdk-python
76ef009903415f37f69dcc5778be8f5fb14c08fe
[ "Apache-2.0" ]
8
2018-04-25T17:47:29.000Z
2019-08-29T06:38:27.000Z
# coding: utf-8 """ Connect Statistics API Connect Statistics API provides statistics about other cloud services through defined counters. OpenAPI spec version: 3 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import # import models into m...
22.904762
99
0.779626
0
0
0
0
0
0
0
0
287
0.596674
cc5982992e201503c11c0734dd8dc758ba63e2ee
488
py
Python
sane_logger/sane_logger.py
JesseAldridge/sane_logger
d8850a67f7ffe6cd3d8b25ef5a9d482a254870bc
[ "MIT" ]
1
2021-06-06T15:37:13.000Z
2021-06-06T15:37:13.000Z
sane_logger/sane_logger.py
JesseAldridge/sane_logger
d8850a67f7ffe6cd3d8b25ef5a9d482a254870bc
[ "MIT" ]
null
null
null
sane_logger/sane_logger.py
JesseAldridge/sane_logger
d8850a67f7ffe6cd3d8b25ef5a9d482a254870bc
[ "MIT" ]
null
null
null
import logging, sys def sane_logger(log_level=logging.INFO): logger = logging.getLogger() logger.setLevel(log_level) sh = logging.StreamHandler(sys.stdout) formatter = logging.Formatter( '[%(asctime)s] %(levelname)s [%(filename)s.%(funcName)s:%(lineno)d] %(message)s', datefmt='%a, %d %b %Y %H:%M:%S %...
24.4
85
0.684426
0
0
0
0
0
0
0
0
126
0.258197
cc5a9edbb995731c204cc21e2a54a1a17f5290cd
7,104
py
Python
core_tools/drivers/hardware/virtual_gate_matrix.py
opietx/core_tools
d5bd2d4beed74791b80ff5bdabd67774403763ef
[ "BSD-2-Clause" ]
null
null
null
core_tools/drivers/hardware/virtual_gate_matrix.py
opietx/core_tools
d5bd2d4beed74791b80ff5bdabd67774403763ef
[ "BSD-2-Clause" ]
null
null
null
core_tools/drivers/hardware/virtual_gate_matrix.py
opietx/core_tools
d5bd2d4beed74791b80ff5bdabd67774403763ef
[ "BSD-2-Clause" ]
null
null
null
from core_tools.data.SQL.SQL_connection_mgr import SQL_database_manager from core_tools.drivers.hardware.hardware_SQL_backend import virtual_gate_queries import time import numpy as np def lamda_do_nothing(matrix): return matrix class virtual_gate_matrix(): def __init__(self, name, gates, v_gates, data, ...
36.244898
125
0.649352
3,691
0.519566
0
0
637
0.089668
0
0
738
0.103885
cc5d1f2725d275ded5ef2a2efe3f720356553637
4,658
py
Python
koto - backend/backend/views.py
SirJAKfromSpace/Koto-FinanceManager
bfec6f36d97b5986294e348bdf2c0b229449bb19
[ "MIT" ]
null
null
null
koto - backend/backend/views.py
SirJAKfromSpace/Koto-FinanceManager
bfec6f36d97b5986294e348bdf2c0b229449bb19
[ "MIT" ]
null
null
null
koto - backend/backend/views.py
SirJAKfromSpace/Koto-FinanceManager
bfec6f36d97b5986294e348bdf2c0b229449bb19
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.shortcuts import get_object_or_404 from rest_framework.views import APIView from rest_framework import status from rest_framework.response import Response from rest_framework import generics from .models import kotoUser from .models import transaction from .models import ...
36.390625
219
0.678188
3,615
0.776084
0
0
0
0
0
0
1,748
0.375268
cc61601dbf922a6709fa7e843196b29dbf744599
54,648
py
Python
outlier-analyzer-wrapper/cal_outlier.py
vasu018/outlier-analyzers
a46102e90f7c87560efa2f33dff3b337561486b5
[ "Apache-2.0" ]
null
null
null
outlier-analyzer-wrapper/cal_outlier.py
vasu018/outlier-analyzers
a46102e90f7c87560efa2f33dff3b337561486b5
[ "Apache-2.0" ]
null
null
null
outlier-analyzer-wrapper/cal_outlier.py
vasu018/outlier-analyzers
a46102e90f7c87560efa2f33dff3b337561486b5
[ "Apache-2.0" ]
null
null
null
import sys import re import json import numpy as np import matplotlib.pyplot as plt import pandas as pd from sklearn.cluster import KMeans from sklearn.decomposition import PCA from sklearn.preprocessing import MultiLabelBinarizer from scipy.spatial.distance import cdist from colorama import Fore, Style from kneed impo...
34.326633
170
0.549114
0
0
0
0
0
0
0
0
18,564
0.339701
cc61b60657d94c8b13604d637733f5892011c4df
748
py
Python
war.py
hiraokusky/pronwar
bfc9afb958dcd0523578075a734350007d3f55ff
[ "MIT" ]
null
null
null
war.py
hiraokusky/pronwar
bfc9afb958dcd0523578075a734350007d3f55ff
[ "MIT" ]
null
null
null
war.py
hiraokusky/pronwar
bfc9afb958dcd0523578075a734350007d3f55ff
[ "MIT" ]
null
null
null
import json from collections import OrderedDict import pprint import json import sys # prons = sys.argv prons = ['pron1.json', 'pron2.json','pron3.json','pron4.json'] def war(pron): with open(pron, encoding='utf8') as f: d_update = json.load(f, object_pairs_hook=OrderedDict) synset = {} ...
29.92
85
0.580214
0
0
0
0
0
0
0
0
173
0.231283
cc61c5747c8e80d78815a2359b70248eed632e99
495
py
Python
app/main/__init__.py
ChegeDaniella/Pitches
40b6bea69fe8774ca39e6199e9e80f32429503fd
[ "MIT" ]
null
null
null
app/main/__init__.py
ChegeDaniella/Pitches
40b6bea69fe8774ca39e6199e9e80f32429503fd
[ "MIT" ]
null
null
null
app/main/__init__.py
ChegeDaniella/Pitches
40b6bea69fe8774ca39e6199e9e80f32429503fd
[ "MIT" ]
null
null
null
from flask import Blueprint,Flask main = Blueprint('main',__name__) from app.main import views from flask_bootstrap import Bootstrap from flask_sqlalchemy import SQLAlchemy bootstrap= Bootstrap() db = SQLAlchemy() def create_app(): app= Flask(__name__) #initializing flask extensions bootstrap.init_app(...
16.5
43
0.739394
0
0
0
0
0
0
0
0
62
0.125253
cc62fe75b877b6b99c9222c7927faf2a48f691e2
506
py
Python
tkinter/grid-pack/example-1.py
whitmans-max/python-examples
881a8f23f0eebc76816a0078e19951893f0daaaa
[ "MIT" ]
140
2017-02-21T22:49:04.000Z
2022-03-22T17:51:58.000Z
tkinter/grid-pack/example-1.py
whitmans-max/python-examples
881a8f23f0eebc76816a0078e19951893f0daaaa
[ "MIT" ]
5
2017-12-02T19:55:00.000Z
2021-09-22T23:18:39.000Z
tkinter/grid-pack/example-1.py
whitmans-max/python-examples
881a8f23f0eebc76816a0078e19951893f0daaaa
[ "MIT" ]
79
2017-01-25T10:53:33.000Z
2022-03-11T16:13:57.000Z
#!/usr/bin/env python3 '''set frame height 10%, 80%, 10%''' import tkinter as tk root = tk.Tk() root.geometry('400x300') header = tk.Frame(root, bg='green') content = tk.Frame(root, bg='red') footer = tk.Frame(root, bg='green') root.columnconfigure(0, weight=1) # 100% root.rowconfigure(0, weight=1) # 10% root.rowc...
21.083333
40
0.679842
0
0
0
0
0
0
0
0
125
0.247036
cc646705f21a4dc7ee92c166bbcc05bcef77bd7a
2,524
py
Python
step_7_generate_pr_bins.py
byuccl/fiate
318f634badd69f241091277ead59d7ead64ee6aa
[ "Apache-2.0" ]
1
2021-05-12T09:42:14.000Z
2021-05-12T09:42:14.000Z
step_7_generate_pr_bins.py
byuccl/fiate
318f634badd69f241091277ead59d7ead64ee6aa
[ "Apache-2.0" ]
null
null
null
step_7_generate_pr_bins.py
byuccl/fiate
318f634badd69f241091277ead59d7ead64ee6aa
[ "Apache-2.0" ]
3
2021-04-19T19:36:06.000Z
2021-08-17T01:46:23.000Z
from lib import * generate_bins("./bld/bits/vex_pb0_partial.bit","./bld/bins/vex_pb0.bin",0x8D) generate_bins("./bld/bits/vex_pb1_partial.bit","./bld/bins/vex_pb1.bin",0x8D) generate_bins("./bld/bits/vex_pb2_partial.bit","./bld/bins/vex_pb2.bin",0x8D) generate_bins("./bld/bits/vex_tmr_pb0_partial.bit","./bld/bins/vex...
60.095238
89
0.768225
0
0
0
0
0
0
0
0
1,836
0.727417
cc64f175ff792df752b089599b18bdca929aecf6
922
py
Python
tests/dsl/set_unit_test.py
chen0040/pysie
5e5edeae214009b963405cb1e5c948980bb4ae93
[ "MIT" ]
2
2019-04-13T19:50:46.000Z
2020-10-11T07:26:29.000Z
tests/dsl/set_unit_test.py
chen0040/pysie
5e5edeae214009b963405cb1e5c948980bb4ae93
[ "MIT" ]
null
null
null
tests/dsl/set_unit_test.py
chen0040/pysie
5e5edeae214009b963405cb1e5c948980bb4ae93
[ "MIT" ]
1
2020-06-15T10:30:47.000Z
2020-06-15T10:30:47.000Z
import unittest from pysie.dsl.set import TernarySearchTrie class TernarySearchTrieUnitTest(unittest.TestCase): def test_map(self): trie = TernarySearchTrie() self.assertTrue(trie.is_empty()) trie.put('hello', 'world') self.assertTrue(trie.contains_key('hello')) self.asse...
30.733333
54
0.614967
811
0.87961
0
0
0
0
0
0
79
0.085683
cc66060295d57944997a0a9eb2202003307a5a50
825
py
Python
server/dataplay/usersvc/service.py
data2068/dataplay3
6834bbf589cefa6007176da3577b5146eda70f52
[ "Apache-2.0" ]
153
2019-04-19T22:14:43.000Z
2022-03-17T08:48:46.000Z
server/dataplay/usersvc/service.py
diandian11/dataplay3
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
[ "Apache-2.0" ]
10
2019-04-14T16:10:11.000Z
2021-01-04T02:54:13.000Z
server/dataplay/usersvc/service.py
diandian11/dataplay3
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
[ "Apache-2.0" ]
51
2019-04-14T16:02:52.000Z
2022-03-05T00:52:42.000Z
from sanic import Blueprint from sanic import response from sanic.log import logger from sanic_openapi import doc from .user import get_user, get_routes user_svc = Blueprint('user_svc') @user_svc.get('/currentUser', strict_slashes=True) @doc.summary('get current user info') async def user(request): try: ...
26.612903
53
0.699394
0
0
0
0
631
0.764848
453
0.549091
136
0.164848
cc6617c6b503c309c32e9fd739483b4b5f04738c
15,071
py
Python
dnabot/test_ot2_scripts/purification_template_2.8_test.py
BASIC-DNA-ASSEMBLY/dnabot
d53710d58a4ae3fb2e950f2ca21765fe25abc2e8
[ "MIT" ]
3
2019-11-17T17:28:55.000Z
2019-11-19T19:24:58.000Z
dnabot/test_ot2_scripts/purification_template_2.8_test.py
BASIC-DNA-ASSEMBLY/dnabot
d53710d58a4ae3fb2e950f2ca21765fe25abc2e8
[ "MIT" ]
2
2019-11-15T20:33:03.000Z
2019-11-16T12:41:55.000Z
dnabot/test_ot2_scripts/purification_template_2.8_test.py
BASIC-DNA-ASSEMBLY/dnabot
d53710d58a4ae3fb2e950f2ca21765fe25abc2e8
[ "MIT" ]
7
2019-11-15T20:21:19.000Z
2019-11-25T11:53:27.000Z
from opentrons import protocol_api # Rename to 'purification_template' and paste into 'template_ot2_scripts' folder in DNA-BOT to use metadata = { 'apiLevel': '2.8', 'protocolName': 'purification_template', 'description': 'Implements magbead purification reactions for BASIC assembly usin...
47.393082
159
0.618141
0
0
0
0
0
0
0
0
7,649
0.507531
cc67238765ba95b77b94fefb1d5fa168307525e1
1,921
py
Python
DjangoBlog/articles/migrations/0009_auto_20210815_1840.py
Dimple278/Publication-Repository
ec274bf5822e160b90f0a5bc8559c1d199e12854
[ "Unlicense", "MIT" ]
null
null
null
DjangoBlog/articles/migrations/0009_auto_20210815_1840.py
Dimple278/Publication-Repository
ec274bf5822e160b90f0a5bc8559c1d199e12854
[ "Unlicense", "MIT" ]
1
2021-08-08T06:46:46.000Z
2021-08-08T06:46:46.000Z
DjangoBlog/articles/migrations/0009_auto_20210815_1840.py
Dimple278/Publication-Repository
ec274bf5822e160b90f0a5bc8559c1d199e12854
[ "Unlicense", "MIT" ]
2
2021-07-03T11:55:11.000Z
2021-08-09T08:27:52.000Z
# Generated by Django 3.2.4 on 2021-08-15 12:55 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('articles', '0008_auto_20210808_0801'), ] operations = [ migrations.AddField( model_name='article', name='doi', ...
30.015625
142
0.548673
1,828
0.951588
0
0
0
0
0
0
357
0.185841
cc676366b3fceddf1caf5ecfe78cd52bb3870d2d
2,567
py
Python
ecommerce/api/tests/views_tests.py
MayaraMachado/sns_and_sqs_project
4fcc5bbb5f6841543ea8dda353dd85a43024f683
[ "MIT" ]
5
2020-06-22T21:29:54.000Z
2021-11-01T20:12:04.000Z
ecommerce/api/tests/views_tests.py
MayaraMachado/sns_and_sqs_project
4fcc5bbb5f6841543ea8dda353dd85a43024f683
[ "MIT" ]
5
2021-03-30T13:38:15.000Z
2021-09-22T19:10:27.000Z
ecommerce/api/tests/views_tests.py
MayaraMachado/sns_and_sqs_project
4fcc5bbb5f6841543ea8dda353dd85a43024f683
[ "MIT" ]
null
null
null
import pytest import json from django.urls import reverse def test_view_get_page_not_found(client): response = client.get('/') assert response.status_code == 404 def test_purchase_without_authentication(client, db): url = reverse('purchase') body = { "products" : [ { ...
35.652778
105
0.700818
0
0
0
0
653
0.254383
0
0
419
0.163226
cc6abadfa6473eb99280316b2542ed0cff6cc265
3,056
py
Python
Features/CAI.py
jcg/d-tailor
7ea83bcf7a2cda21eb8727575ff2b20ac8b49606
[ "BSD-2-Clause" ]
14
2016-05-19T08:31:44.000Z
2021-08-05T08:56:56.000Z
Features/CAI.py
jcg/d-tailor
7ea83bcf7a2cda21eb8727575ff2b20ac8b49606
[ "BSD-2-Clause" ]
1
2018-09-25T12:00:23.000Z
2018-12-10T18:42:31.000Z
Features/CAI.py
jcg/d-tailor
7ea83bcf7a2cda21eb8727575ff2b20ac8b49606
[ "BSD-2-Clause" ]
4
2016-06-23T21:40:49.000Z
2021-02-02T03:05:35.000Z
''' Created on Nov 16, 2011 @author: jcg ''' from Features.Feature import Feature import Functions from uuid import uuid4 class CAI(Feature): """ CAI Feature solution - solution where CAI should be computed label - some label to append to the name cai_range - start and end position to...
51.79661
200
0.571008
2,905
0.950589
0
0
0
0
0
0
750
0.245419
cc6aeaaae4e5bb3332145b24a68cddaba311806b
132
py
Python
portfolio/urls.py
radoslawdabrowski/radoslawdabrowski.pl
b3d4f92ea51b40b104449259a376134aeb11766b
[ "Apache-2.0" ]
1
2019-05-17T10:57:25.000Z
2019-05-17T10:57:25.000Z
portfolio/urls.py
radoslawdabrowski/radoslawdabrowski.pl
b3d4f92ea51b40b104449259a376134aeb11766b
[ "Apache-2.0" ]
1
2019-08-06T01:55:54.000Z
2019-08-06T01:55:54.000Z
portfolio/urls.py
radoslawdabrowski/personal-website
b3d4f92ea51b40b104449259a376134aeb11766b
[ "MIT" ]
1
2019-05-07T21:23:57.000Z
2019-05-07T21:23:57.000Z
from django.urls import path from .views import portfolio_view urlpatterns = [ path('', portfolio_view, name='projects_view') ]
22
50
0.75
0
0
0
0
0
0
0
0
17
0.128788
cc6c1dd9f30f9947c241979383cf14113417045e
17,690
py
Python
ebot_main/scripts/task5.py
Jovian-Dsouza/sahayak_bot
3565e910218e73e95ed8ce9b9d92dfcbe537894e
[ "MIT" ]
3
2021-10-02T10:36:48.000Z
2022-03-18T15:47:17.000Z
ebot_main/scripts/task5.py
Jovian-Dsouza/sahayak_bot
3565e910218e73e95ed8ce9b9d92dfcbe537894e
[ "MIT" ]
2
2021-10-06T07:21:57.000Z
2022-03-04T03:20:27.000Z
ebot_main/scripts/task5.py
Jovian-Dsouza/sahayak_bot
3565e910218e73e95ed8ce9b9d92dfcbe537894e
[ "MIT" ]
1
2021-09-06T16:34:45.000Z
2021-09-06T16:34:45.000Z
#! /usr/bin/env python ''' This node uses the detection_info topic and performs the actual Ur5 arm manipulation ''' import rospy import random from math import pi, sin, cos from geometry_msgs.msg import Point, Quaternion, Pose, PointStamped, PoseStamped from std_msgs.msg import Header from object_msgs.msg import Obj...
28.624595
111
0.656981
6,946
0.392651
0
0
0
0
0
0
4,036
0.228151
cc6ca3b5cf9fc18b22965b52903b9910ca3fbede
2,224
py
Python
attacks.py
giuscri/thesis
d7aa0a8476f53ad304495b437841af1a8d6c87d4
[ "MIT" ]
null
null
null
attacks.py
giuscri/thesis
d7aa0a8476f53ad304495b437841af1a8d6c87d4
[ "MIT" ]
10
2018-05-11T08:40:48.000Z
2018-06-29T16:14:27.000Z
attacks.py
giuscri/thesis
d7aa0a8476f53ad304495b437841af1a8d6c87d4
[ "MIT" ]
null
null
null
import tensorflow as tf from cleverhans.attacks import FastGradientMethod from cleverhans.utils_keras import KerasModelWrapper from keras.utils import to_categorical import keras.backend as K import numpy as np from functools import lru_cache from pickle import loads, dumps from models import filter_correctly_class...
34.215385
86
0.748201
0
0
0
0
791
0.355665
0
0
40
0.017986
cc6f7c4f27c2a00ff15ccd7856ec922db8699702
2,187
py
Python
chime/href.py
sanAkdam/chime
1adbddbdddcdc2669086dee60d1bfb2f97535cff
[ "BSD-3-Clause" ]
8
2015-02-05T22:12:41.000Z
2015-05-15T16:15:14.000Z
chime/href.py
sanAkdam/chime
1adbddbdddcdc2669086dee60d1bfb2f97535cff
[ "BSD-3-Clause" ]
168
2015-02-02T23:02:52.000Z
2015-05-15T21:54:07.000Z
chime/href.py
codeforamerica/bizarro-cms
1adbddbdddcdc2669086dee60d1bfb2f97535cff
[ "BSD-3-Clause" ]
5
2016-11-20T15:51:32.000Z
2021-04-16T09:44:08.000Z
from urlparse import urlparse from re import match def get_redirect(req_path, ref_url): ''' >>> get_redirect('/style.css', 'http://preview.local/tree/foo/view/') '/tree/foo/view/style.css' >>> get_redirect('/style.css', 'http://preview.local/tree/foo/view/quux.html') '/tree/foo/view/style.css' ...
31.242857
106
0.652492
0
0
0
0
0
0
0
0
1,466
0.670325
cc7140d5ec453c262b76c09e1ad92c183427766b
237
py
Python
backend/routers/home.py
b1team/Python-OCR
fe8237978ab0eec18db3bd674dae772ec7c48a3c
[ "MIT" ]
null
null
null
backend/routers/home.py
b1team/Python-OCR
fe8237978ab0eec18db3bd674dae772ec7c48a3c
[ "MIT" ]
null
null
null
backend/routers/home.py
b1team/Python-OCR
fe8237978ab0eec18db3bd674dae772ec7c48a3c
[ "MIT" ]
null
null
null
from flask import Blueprint, render_template home_bp = Blueprint( "home_bp", __name__, ) @home_bp.route("/") def home(): return render_template("index.html", title="Chuyển ảnh thành văn bản", submit_localtion="/scanner")
18.230769
103
0.704641
0
0
0
0
143
0.583673
0
0
68
0.277551
cc749c4fcb4807611aed92e6a739be63d7aba80c
1,746
py
Python
demos/matplotlib/gradient_chart.py
0lru/p3ui
162c6c68f4a55ec109a593c8ced66a62520b5602
[ "MIT" ]
21
2021-07-22T21:33:01.000Z
2022-02-12T15:17:46.000Z
demos/matplotlib/gradient_chart.py
0lru/p3ui
162c6c68f4a55ec109a593c8ced66a62520b5602
[ "MIT" ]
3
2021-07-26T19:00:39.000Z
2021-12-12T09:29:09.000Z
demos/matplotlib/gradient_chart.py
0lru/p3ui
162c6c68f4a55ec109a593c8ced66a62520b5602
[ "MIT" ]
2
2021-07-23T04:57:21.000Z
2021-12-15T22:51:45.000Z
from p3ui import * import matplotlib.pyplot as plt import numpy as np def gradient_image(ax, extent, direction=0.3, cmap_range=(0, 1), **kwargs): phi = direction * np.pi / 2 v = np.array([np.cos(phi), np.sin(phi)]) X = np.array([[v @ [1, 0], v @ [1, 1]], [v @ [0, 0], v @ [0, 1]]]) a,...
34.92
138
0.555556
1,013
0.580183
0
0
0
0
46
0.026346
164
0.093929
cc757cd407448942e86aaa6d46fed30c9d25b05b
816
py
Python
Stack/StackOperations.py
prash-kr-meena/GoogleR
27aca71e51cc2442e604e07ab00406a98d8d63a4
[ "Apache-2.0" ]
null
null
null
Stack/StackOperations.py
prash-kr-meena/GoogleR
27aca71e51cc2442e604e07ab00406a98d8d63a4
[ "Apache-2.0" ]
null
null
null
Stack/StackOperations.py
prash-kr-meena/GoogleR
27aca71e51cc2442e604e07ab00406a98d8d63a4
[ "Apache-2.0" ]
null
null
null
from collections import deque """ Operations * Enqueue * Dequeue * Peek (first element) * Size * IsEmpty * Print """ def demo_queue_operation_using_deque(): stack = deque() # enqueue - inserting at the Right stack.append(1) stack.append(2) stack.append(3) stack.append(4) stack.append(5) ...
16.653061
42
0.610294
0
0
0
0
0
0
0
0
298
0.365196
cc7588de324a87e070270762efbca68576fe8829
85
py
Python
ndarray/same.py
Hupengyu/Paddle_learning
0ac1e2ad32e41ac87bbb19e4535a4bc253ca9b0f
[ "Apache-2.0" ]
1
2021-08-02T01:51:35.000Z
2021-08-02T01:51:35.000Z
ndarray/same.py
Hupengyu/Paddle_learning
0ac1e2ad32e41ac87bbb19e4535a4bc253ca9b0f
[ "Apache-2.0" ]
1
2021-11-03T08:58:30.000Z
2021-11-03T08:58:30.000Z
ndarray/same.py
Hupengyu/Paddle_learning
0ac1e2ad32e41ac87bbb19e4535a4bc253ca9b0f
[ "Apache-2.0" ]
null
null
null
mask = 255 print(mask == 255) blue_mask = mask == 255 print(mask) print(blue_mask)
10.625
23
0.682353
0
0
0
0
0
0
0
0
0
0
cc7685e77b5702f2bcf63b723074355167f96c83
7,664
py
Python
app/data_model/find_songs.py
TemsyChen/Spotifinder
b069ffcd63bd7654e1afd51cde3288c9678d121a
[ "MIT" ]
null
null
null
app/data_model/find_songs.py
TemsyChen/Spotifinder
b069ffcd63bd7654e1afd51cde3288c9678d121a
[ "MIT" ]
3
2021-04-23T22:52:32.000Z
2021-04-26T04:02:51.000Z
app/data_model/find_songs.py
TemsyChen/Spotifinder
b069ffcd63bd7654e1afd51cde3288c9678d121a
[ "MIT" ]
6
2021-04-28T21:14:10.000Z
2021-10-15T01:47:55.000Z
''' Contains the implementation of the FindSongs class. ''' from re import compile as rcompile from zipfile import ZipFile from os.path import dirname import pandas as pd from tensorflow.keras.models import load_model from sklearn.neighbors import NearestNeighbors from joblib import load DIR = dirname(__file__) rex =...
41.204301
99
0.656315
6,758
0.881785
0
0
0
0
0
0
3,924
0.512004
cc775b2e46440022feb26f05b0cd7bb859a90f65
3,516
py
Python
ecua_vac.py
andradf/ecua_vac
acc7153bc8d0a7fcf08352f79c4112386dd72744
[ "MIT" ]
null
null
null
ecua_vac.py
andradf/ecua_vac
acc7153bc8d0a7fcf08352f79c4112386dd72744
[ "MIT" ]
null
null
null
ecua_vac.py
andradf/ecua_vac
acc7153bc8d0a7fcf08352f79c4112386dd72744
[ "MIT" ]
null
null
null
import tweepy import time import pandas as pd import datetime import re from auth import consumer_key,consumer_secret,key,secret,user_ID def trimtweet(tweet): if(tweet.length <= 280): return tweet return tweet.substring(0, 277) + "..." # twitter auth process auth = tweepy.OAuthHandler(consumer_key, c...
44.506329
255
0.685154
0
0
0
0
0
0
0
0
1,433
0.40664
cc78ed70d34e15e55d4c89613eb5c38a3da4d0ac
1,277
py
Python
py_lecture/scripts/rosbag_analisys_pose.py
yasutomo57jp/ros_lecture
811afaded5a5780fa1291bd41196d80446da1e53
[ "MIT" ]
110
2018-11-13T15:04:35.000Z
2022-03-27T20:48:03.000Z
py_lecture/scripts/rosbag_analisys_pose.py
yasutomo57jp/ros_lecture
811afaded5a5780fa1291bd41196d80446da1e53
[ "MIT" ]
4
2020-07-16T13:32:22.000Z
2022-01-11T01:08:12.000Z
py_lecture/scripts/rosbag_analisys_pose.py
yasutomo57jp/ros_lecture
811afaded5a5780fa1291bd41196d80446da1e53
[ "MIT" ]
57
2019-07-02T23:43:17.000Z
2022-03-27T20:47:28.000Z
#!/usr/bin/env python import rosbag import numpy as np import matplotlib.pyplot as plt import sys import os args = sys.argv print(len(args)) assert len(args)>=2, "you must specify the argument." # get path filename=os.path.normpath(os.path.join(os.getcwd(),args[1])) print(filename) # read from bag file bag = rosbag....
23.648148
74
0.651527
0
0
0
0
0
0
0
0
177
0.138606
cc7af5edf4c13756157ef5543e25175963fa44f3
1,748
py
Python
ambra/temporal_feature_extraction.py
vene/ambra
e220dbb332b86ed60ecb025efbefbb33080118b7
[ "BSD-2-Clause" ]
1
2016-04-14T07:11:00.000Z
2016-04-14T07:11:00.000Z
ambra/temporal_feature_extraction.py
vene/ambra
e220dbb332b86ed60ecb025efbefbb33080118b7
[ "BSD-2-Clause" ]
null
null
null
ambra/temporal_feature_extraction.py
vene/ambra
e220dbb332b86ed60ecb025efbefbb33080118b7
[ "BSD-2-Clause" ]
null
null
null
''' Created on Dec 21, 2014 @author: Alina Maria Ciobanu ''' import numpy import re TOKEN_NER_TAGS = ['DATE', 'NUMBER'] WIKI_NER_TAGS = ['PERSON', 'ORGANIZATION', 'LOCATION'] DEFAULT_YEAR_VALUE = 1858 # the mean of the lowest and highest value for all possible intervals, hardcoded for now def get_tem...
28.655738
115
0.627574
0
0
0
0
0
0
0
0
382
0.218535
cc7c0a236ab84be9186e7062cc86b20f502b6f05
7,270
py
Python
src/academia_tag_recommender/classwise_classifier.py
gefei-htw/academia_tag_recommender
aea56d36e16584824ef217d1f2caaee3414098f8
[ "MIT" ]
null
null
null
src/academia_tag_recommender/classwise_classifier.py
gefei-htw/academia_tag_recommender
aea56d36e16584824ef217d1f2caaee3414098f8
[ "MIT" ]
null
null
null
src/academia_tag_recommender/classwise_classifier.py
gefei-htw/academia_tag_recommender
aea56d36e16584824ef217d1f2caaee3414098f8
[ "MIT" ]
1
2021-01-29T19:41:47.000Z
2021-01-29T19:41:47.000Z
"""This module handles classifier calculation.""" from academia_tag_recommender.definitions import MODELS_PATH from sklearn.model_selection import train_test_split from sklearn.model_selection import GridSearchCV from sklearn.metrics import make_scorer, recall_score from sklearn.model_selection import StratifiedKFold f...
31.068376
122
0.573315
6,615
0.909904
0
0
0
0
0
0
3,711
0.510454
cc82f61e6c3b07e04c0a74f6e8e72511be3bc55f
646
py
Python
leetcode/978/978.py
OhYee/code-questions
5f1c64422ecc21b0399d54e5ca7d0caa911a417f
[ "MIT" ]
null
null
null
leetcode/978/978.py
OhYee/code-questions
5f1c64422ecc21b0399d54e5ca7d0caa911a417f
[ "MIT" ]
null
null
null
leetcode/978/978.py
OhYee/code-questions
5f1c64422ecc21b0399d54e5ca7d0caa911a417f
[ "MIT" ]
null
null
null
class Solution: def maxTurbulenceSize(self, arr: List[int]) -> int: n = len(arr) if n == 1: return 1 def calc(a, b): if a == b: return 0 elif a > b: return -1 else: return 1 res = 0 ...
24.846154
55
0.351393
645
0.998452
0
0
0
0
0
0
0
0
cc8419824483cd3b9a3d2944955bdaa815ca7106
2,332
py
Python
Lib/site-packages/node/tests/test_nodespace.py
Dr8Ninja/ShareSpace
7b445783a313cbdebb1938e824e98370a42def5f
[ "MIT" ]
11
2015-04-02T17:47:44.000Z
2020-10-26T20:27:43.000Z
Lib/site-packages/node/tests/test_nodespace.py
Dr8Ninja/ShareSpace
7b445783a313cbdebb1938e824e98370a42def5f
[ "MIT" ]
5
2017-01-18T11:05:42.000Z
2019-03-30T06:19:21.000Z
Lib/site-packages/node/tests/test_nodespace.py
Dr8Ninja/ShareSpace
7b445783a313cbdebb1938e824e98370a42def5f
[ "MIT" ]
2
2015-09-15T06:50:22.000Z
2016-12-01T11:12:01.000Z
from node.behaviors import Adopt from node.behaviors import DefaultInit from node.behaviors import Nodespaces from node.behaviors import Nodify from node.behaviors import OdictStorage from node.tests import NodeTestCase from odict import odict from plumber import plumbing #############################################...
29.15
79
0.565609
1,568
0.672384
0
0
206
0.088336
0
0
613
0.262864
cc85a1c4d80d0d0402facd00a8044ff49b268555
443
py
Python
osmaxx/excerptexport/migrations/0042_remove_outputfile_file_extension.py
tyrasd/osmaxx
da4454083d17b2ef8b0623cad62e39992b6bd52a
[ "MIT" ]
27
2015-03-30T14:17:26.000Z
2022-02-19T17:30:44.000Z
osmaxx/excerptexport/migrations/0042_remove_outputfile_file_extension.py
tyrasd/osmaxx
da4454083d17b2ef8b0623cad62e39992b6bd52a
[ "MIT" ]
483
2015-03-09T16:58:03.000Z
2022-03-14T09:29:06.000Z
osmaxx/excerptexport/migrations/0042_remove_outputfile_file_extension.py
tyrasd/osmaxx
da4454083d17b2ef8b0623cad62e39992b6bd52a
[ "MIT" ]
6
2015-04-07T07:38:30.000Z
2020-04-01T12:45:53.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2016-06-07 13:30 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('excerptexport', '0041_set_date_to_past_for_existing_exports_20160531_2235'), ] operations = ...
22.15
86
0.656885
294
0.663657
0
0
0
0
0
0
171
0.386005
cc85a942cbf7b59c5567afa83b5cd9d0434c51dd
3,673
py
Python
extract/river/extract_rivers.py
parkermac/LO
09e0197de7f2166bfa835ec62018b7a8fbfa7379
[ "MIT" ]
1
2022-01-31T23:12:22.000Z
2022-01-31T23:12:22.000Z
extract/river/extract_rivers.py
parkermac/LO
09e0197de7f2166bfa835ec62018b7a8fbfa7379
[ "MIT" ]
1
2022-03-18T23:51:54.000Z
2022-03-21T18:02:44.000Z
extract/river/extract_rivers.py
parkermac/LO
09e0197de7f2166bfa835ec62018b7a8fbfa7379
[ "MIT" ]
null
null
null
""" Extract as-run river time series. To test on mac: run extract_rivers -gtx cas6_v3_lo8b -0 2019.07.04 -1 2019.07.04 To run on perigee: run extract_rivers -gtx cas6_v3_lo8b -0 2018.01.01 -1 2018.01.10 run extract_rivers -gtx cas6_v3_lo8b -0 2018.01.01 -1 2018.12.31 Performance: takes 23 sec per year on perigee M...
28.253846
121
0.659406
0
0
0
0
0
0
0
0
1,676
0.456303
cc87ec2077a4bb23825353e65fcb8ba6c7ee17e1
570
py
Python
common/migrations/0016_GlobalComments.py
jakubhyza/kelvin
b06c0ed0594a3fb48df1e50ff30cee010ddeea5a
[ "MIT" ]
8
2020-01-11T15:25:25.000Z
2022-02-20T17:32:58.000Z
common/migrations/0016_GlobalComments.py
jakubhyza/kelvin
b06c0ed0594a3fb48df1e50ff30cee010ddeea5a
[ "MIT" ]
72
2020-01-13T21:07:26.000Z
2022-03-28T10:17:50.000Z
common/migrations/0016_GlobalComments.py
jakubhyza/kelvin
b06c0ed0594a3fb48df1e50ff30cee010ddeea5a
[ "MIT" ]
6
2020-01-11T16:50:04.000Z
2022-02-19T10:12:19.000Z
# Generated by Django 3.0.7 on 2020-11-07 16:58 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('common', '0015_task_unique_dir'), ] operations = [ migrations.AlterField( model_name='comment', name='line', ...
23.75
74
0.580702
477
0.836842
0
0
0
0
0
0
109
0.191228
cc884c667af3244727045d36ce0f98e65a2527d2
6,361
py
Python
laia/models/kws/dortmund_phocnet.py
basbeu/PyLaia
d14458484b56622204b1730a7d53220c5d0f1bc1
[ "MIT" ]
2
2020-09-10T13:31:17.000Z
2021-07-31T09:44:17.000Z
laia/models/kws/dortmund_phocnet.py
basbeu/PyLaia
d14458484b56622204b1730a7d53220c5d0f1bc1
[ "MIT" ]
1
2020-12-06T18:11:52.000Z
2020-12-06T18:19:38.000Z
laia/models/kws/dortmund_phocnet.py
basbeu/PyLaia
d14458484b56622204b1730a7d53220c5d0f1bc1
[ "MIT" ]
2
2020-04-20T13:40:56.000Z
2020-10-17T11:59:55.000Z
from __future__ import absolute_import import math import operator from collections import OrderedDict from functools import reduce from typing import Union, Sequence, Optional import torch from laia.data import PaddedTensor from laia.nn.pyramid_maxpool_2d import PyramidMaxPool2d from laia.nn.temporal_pyramid_maxpoo...
41.575163
88
0.564377
2,562
0.402767
0
0
0
0
0
0
841
0.132212
cc8a2d2f86634a18b7bce0839a293dfedd5c4feb
1,541
py
Python
robocute/widget/__init__.py
kfields/robocute
f6f15ab74266053da5fe4ede3cc81310a62146e5
[ "MIT" ]
1
2015-08-24T21:58:34.000Z
2015-08-24T21:58:34.000Z
robocute/widget/__init__.py
kfields/robocute
f6f15ab74266053da5fe4ede3cc81310a62146e5
[ "MIT" ]
null
null
null
robocute/widget/__init__.py
kfields/robocute
f6f15ab74266053da5fe4ede3cc81310a62146e5
[ "MIT" ]
null
null
null
import pyglet from pyglet.gl import * from robocute.node import * from robocute.vu import * from robocute.shape import Rect class WidgetVu(Vu): def __init__(self, node): super().__init__(node) # self.content = Rect() # self.margin_top = 5 self.margin_b...
27.035088
81
0.541856
1,388
0.900714
0
0
0
0
0
0
32
0.020766