hexsha
stringlengths
40
40
size
int64
7
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
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
4
247
max_issues_repo_name
stringlengths
4
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
4
247
max_forks_repo_name
stringlengths
4
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
1
1.04M
avg_line_length
float64
1.77
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
7
1.04M
filtered:remove_function_no_docstring
int64
-102
942k
filtered:remove_class_no_docstring
int64
-354
977k
filtered:remove_delete_markers
int64
0
60.1k
5f74f4c683579121f94744d0179b6494bfae72ac
153
py
Python
blockworld/envs/__init__.py
menwhitehead/gym-blockworld
ce3a878487c28c0fd80bd98764e8e8cf65b9eb84
[ "MIT" ]
null
null
null
blockworld/envs/__init__.py
menwhitehead/gym-blockworld
ce3a878487c28c0fd80bd98764e8e8cf65b9eb84
[ "MIT" ]
null
null
null
blockworld/envs/__init__.py
menwhitehead/gym-blockworld
ce3a878487c28c0fd80bd98764e8e8cf65b9eb84
[ "MIT" ]
null
null
null
from blockworld_walkway import BlockworldWalkway from bigworld import BlockworldBigworld # from blockworld_env.envs.walkway import BlockworldWalkwayEnv
30.6
62
0.888889
from blockworld_walkway import BlockworldWalkway from bigworld import BlockworldBigworld # from blockworld_env.envs.walkway import BlockworldWalkwayEnv
0
0
0
7a1579cfeeda5c0de88e288563fa4209b5bc65c8
881
py
Python
compute_icc_with_R.py
MaximeDdnn/ICC
4ff0a46c83d2b47e61204b33fa3c61d85b26c2aa
[ "MIT" ]
null
null
null
compute_icc_with_R.py
MaximeDdnn/ICC
4ff0a46c83d2b47e61204b33fa3c61d85b26c2aa
[ "MIT" ]
null
null
null
compute_icc_with_R.py
MaximeDdnn/ICC
4ff0a46c83d2b47e61204b33fa3c61d85b26c2aa
[ "MIT" ]
1
2021-12-11T05:55:47.000Z
2021-12-11T05:55:47.000Z
import rpy2.robjects as ro from rpy2.robjects.packages import importr from rpy2.robjects import pandas2ri from rpy2.robjects.conversion import localconverter
36.708333
82
0.732123
import rpy2.robjects as ro from rpy2.robjects.packages import importr from rpy2.robjects import pandas2ri from rpy2.robjects.conversion import localconverter def compute_icc_with_R(df, LMER): psych = importr('psych') ICC = ro.r['ICC'] # calcul of ICC3 # then, we convert the pandas df in R df with l...
701
0
23
4352cbf9ffd1fd12aebbf117c96b9205f26dbe75
3,482
py
Python
demos/sysmon/server.py
rob-blackbourn/bareASGI-graphql-next
7ff1b455a0dc61dbf41cb6383d8934155661b2cc
[ "Apache-2.0" ]
2
2020-04-27T19:54:26.000Z
2022-03-30T10:06:29.000Z
demos/sysmon/server.py
rob-blackbourn/bareASGI-graphql-next
7ff1b455a0dc61dbf41cb6383d8934155661b2cc
[ "Apache-2.0" ]
null
null
null
demos/sysmon/server.py
rob-blackbourn/bareASGI-graphql-next
7ff1b455a0dc61dbf41cb6383d8934155661b2cc
[ "Apache-2.0" ]
null
null
null
""" Server """ import asyncio import logging import os from typing import Optional from hypercorn.asyncio import serve from hypercorn.config import Config import uvicorn from sysmon.app import make_application LOGGER = logging.getLogger(__name__) def initialise_logging() -> None: """Initialise logging""" ...
25.05036
80
0.547099
""" Server """ import asyncio import logging import os from typing import Optional from hypercorn.asyncio import serve from hypercorn.config import Config import uvicorn from sysmon.app import make_application LOGGER = logging.getLogger(__name__) def initialise_logging() -> None: """Initialise logging""" ...
0
0
0
dc079868b534e5648a36f9fc47bcc0427f96db96
4,527
py
Python
cinder/api/v3/snapshots.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/api/v3/snapshots.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/api/v3/snapshots.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 EMC Corporation # 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 ...
40.061947
79
0.625801
# Copyright 2016 EMC Corporation # 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 ...
63
0
23
95e899c26edccd219f8ce067bcf1b04f98a8e10b
357
py
Python
django_throttling/middleware.py
hotbaby/django-throttling-py
9a8b2f0d9fae7e439c332826b9ac154e48c3f10c
[ "MIT" ]
null
null
null
django_throttling/middleware.py
hotbaby/django-throttling-py
9a8b2f0d9fae7e439c332826b9ac154e48c3f10c
[ "MIT" ]
null
null
null
django_throttling/middleware.py
hotbaby/django-throttling-py
9a8b2f0d9fae7e439c332826b9ac154e48c3f10c
[ "MIT" ]
null
null
null
# encoding: utf8 from django.http.response import JsonResponse from .throttling import AnonRateThrottle from .settings import THROTTLE_TRIGGER_RESPONSE
27.461538
63
0.787115
# encoding: utf8 from django.http.response import JsonResponse from .throttling import AnonRateThrottle from .settings import THROTTLE_TRIGGER_RESPONSE class AnonThrottleMiddleware(object): def process_request(self, request): if not AnonRateThrottle().allow_request(request, None): return Jso...
137
16
49
43f2249288ec5a0aadda34f7ad71b9fbfc846014
304
py
Python
users/admin.py
LeonardoCruzx/Projeto_rede_social
5f6fc9fe4d1fbc1cfea696a4ff1d19fd98697bc0
[ "CC0-1.0" ]
null
null
null
users/admin.py
LeonardoCruzx/Projeto_rede_social
5f6fc9fe4d1fbc1cfea696a4ff1d19fd98697bc0
[ "CC0-1.0" ]
7
2020-06-05T20:31:01.000Z
2021-09-22T18:22:45.000Z
users/admin.py
LeonardoCruzx/Projeto_rede_social
5f6fc9fe4d1fbc1cfea696a4ff1d19fd98697bc0
[ "CC0-1.0" ]
null
null
null
from django.contrib import admin from .models import User # Register your models here. @admin.register(User)
30.4
74
0.726974
from django.contrib import admin from .models import User # Register your models here. @admin.register(User) class UserAdmin(admin.ModelAdmin): list_display = ('nick','email','last_login','is_staff','is_superuser') list_filter = ('last_login','date_joined') search_fields = ['nick','email']
0
172
22
cbad31c5a78e4d83b04f6fff8f9b73426ebf50f0
408
py
Python
utils/dictionary.py
devbas/aml-quora
da343ff3499566da082e12329e6228a1d9b34a7a
[ "MIT" ]
null
null
null
utils/dictionary.py
devbas/aml-quora
da343ff3499566da082e12329e6228a1d9b34a7a
[ "MIT" ]
null
null
null
utils/dictionary.py
devbas/aml-quora
da343ff3499566da082e12329e6228a1d9b34a7a
[ "MIT" ]
null
null
null
dictionary = dict()
20.4
49
0.710784
dictionary = dict() def word_to_index(word): if word not in dictionary.values(): dictionary.append(word) print('dictionary: ', dictionary); return dictionary[word] def create_dict(row): for count, word in enumerate(row['question1']): row['question1'][count] = word_to_index(word) for count, word in enu...
341
0
46
1bfa2752c549d969ba1de71e5a1817a77f46995d
2,385
py
Python
module2-sql-for-analysis/titanic_import.py
jonDuke/DS-Unit-3-Sprint-2-SQL-and-Databases
76b951430098bfafd4fc5e882380af98cc302268
[ "MIT" ]
null
null
null
module2-sql-for-analysis/titanic_import.py
jonDuke/DS-Unit-3-Sprint-2-SQL-and-Databases
76b951430098bfafd4fc5e882380af98cc302268
[ "MIT" ]
null
null
null
module2-sql-for-analysis/titanic_import.py
jonDuke/DS-Unit-3-Sprint-2-SQL-and-Databases
76b951430098bfafd4fc5e882380af98cc302268
[ "MIT" ]
null
null
null
### migrates data from titanic.csv to postgresql # load titanic data import pandas as pd url = 'https://raw.githubusercontent.com/jonDuke/DS-Unit-3-Sprint-2-SQL-and-Databases/master/module2-sql-for-analysis/titanic.csv' df = pd.read_csv(url) # df.columns = ['Survived', 'Pclass', 'Name', 'Sex', 'Age', # ...
30.576923
131
0.673795
### migrates data from titanic.csv to postgresql # load titanic data import pandas as pd url = 'https://raw.githubusercontent.com/jonDuke/DS-Unit-3-Sprint-2-SQL-and-Databases/master/module2-sql-for-analysis/titanic.csv' df = pd.read_csv(url) # df.columns = ['Survived', 'Pclass', 'Name', 'Sex', 'Age', # ...
0
0
0
5d4f439b73158e89c246dfc5c2d639f5751c02bd
2,246
py
Python
empire/client/src/utils/autocomplete_util.py
chenxiangfang/Empire
2d93b231e754fbd1277a2e54d89d42d1e954322f
[ "BSD-3-Clause" ]
2,541
2019-08-08T19:38:05.000Z
2022-03-30T22:24:06.000Z
empire/client/src/utils/autocomplete_util.py
Devil123166/Empire
6d8169a8ea818f9af478e173a9a548c626c80d05
[ "BSD-3-Clause" ]
344
2019-10-24T03:06:15.000Z
2022-03-26T10:54:10.000Z
empire/client/src/utils/autocomplete_util.py
Devil123166/Empire
6d8169a8ea818f9af478e173a9a548c626c80d05
[ "BSD-3-Clause" ]
431
2019-08-22T22:45:45.000Z
2022-03-29T18:45:21.000Z
import os from typing import List def filtered_search_list(search: str, keys) -> List[str]: """ Filters the search list by a search string :param search: the string prefix :param keys: the list of strings to search :return: filtered list """ return list(filter(lambda x: (search.lower()) i...
35.09375
103
0.67854
import os from typing import List def filtered_search_list(search: str, keys) -> List[str]: """ Filters the search list by a search string :param search: the string prefix :param keys: the list of strings to search :return: filtered list """ return list(filter(lambda x: (search.lower()) i...
0
0
0
93681128798884254303ff7e0d2b2f44420e0596
6,087
py
Python
BaseNotebooks/LR2DB.py
evgeniy97/taskgenerator
7680989c2a080761ef574fac148a0a94c722ad16
[ "MIT" ]
1
2018-07-19T09:56:35.000Z
2018-07-19T09:56:35.000Z
BaseNotebooks/LR2DB.py
evgeniy97/taskgenerator
7680989c2a080761ef574fac148a0a94c722ad16
[ "MIT" ]
null
null
null
BaseNotebooks/LR2DB.py
evgeniy97/taskgenerator
7680989c2a080761ef574fac148a0a94c722ad16
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Numerical Methods, lab 2 """ import sympy as sy from sympy import Rational as syR from sympy import exp, sin, cos, sqrt, log, ln from sympy import pi, cot, sinh, cosh, atan, tan # Это был Task_db Tasks_db = { 'Task1': [ # 2.1.1 {'f': lambda x: sin(x)**2 - syR(5, 6)*sin(x)...
30.742424
85
0.357155
# -*- coding: utf-8 -*- """ Numerical Methods, lab 2 """ import sympy as sy from sympy import Rational as syR from sympy import exp, sin, cos, sqrt, log, ln from sympy import pi, cot, sinh, cosh, atan, tan # Это был Task_db Tasks_db = { 'Task1': [ # 2.1.1 {'f': lambda x: sin(x)**2 - syR(5, 6)*sin(x)...
0
0
0
5e510e6737a7b1df98fc81548f508053cb62b611
980
py
Python
main.py
gstok/stddev-gradient
a13a463438d7d71556bbc4289ade0fbd4314468e
[ "MIT" ]
1
2021-01-16T07:06:31.000Z
2021-01-16T07:06:31.000Z
main.py
gstok/stddev-gradient
a13a463438d7d71556bbc4289ade0fbd4314468e
[ "MIT" ]
null
null
null
main.py
gstok/stddev-gradient
a13a463438d7d71556bbc4289ade0fbd4314468e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import numpy as np; a = np.array([3.0, 3.0, 2.0, 4.9, 100.2, -8.9]); # 数值微分求标准差梯度 grad = gradient(); print(grad); n1 = func2(0); n2 = func2(1); n3 = func2(2); n4 = func2(3); n5 = func2(4); n6 = func2(5); b = [n1, n2, n3, n4, n5, n6]; print(b);
18.490566
68
0.47551
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import numpy as np; a = np.array([3.0, 3.0, 2.0, 4.9, 100.2, -8.9]); # 数值微分求标准差梯度 def gradient (): d = 1e-5; grad = np.zeros(a.size); func = lambda : np.sqrt(np.sum((a - np.mean(a)) ** 2) / a.size); # func = lambda : np.std(a, ddof = 1); # func = lam...
646
0
45
922d7bcfaefa314c1230ff67b8babf51fea44b0e
2,884
py
Python
anli/corpus_statistics.py
rlebras/abductive-commonsense-reasoning
1632561ea87da2129fc2275498f52e175b75b8ec
[ "Apache-2.0" ]
41
2020-02-27T22:46:13.000Z
2022-03-22T02:53:32.000Z
anli/corpus_statistics.py
higuseonhye/abductive-commonsense-reasoning
3407ad999ccc351fc78dd0598d584d1e9f5bd2fc
[ "Apache-2.0" ]
3
2020-04-05T20:20:06.000Z
2020-09-01T10:19:05.000Z
anli/corpus_statistics.py
higuseonhye/abductive-commonsense-reasoning
3407ad999ccc351fc78dd0598d584d1e9f5bd2fc
[ "Apache-2.0" ]
16
2020-04-29T22:56:27.000Z
2022-03-20T15:22:00.000Z
import argparse import json import numpy as np from utils.file_utils import read_jsonl_lines, read_lines if __name__ == '__main__': parser = argparse.ArgumentParser( description='Script to compute corpus satistics') # Required Parameters parser.add_argument('--input_file', type=str, help='L...
32.044444
109
0.666782
import argparse import json import numpy as np from utils.file_utils import read_jsonl_lines, read_lines def _key(r): return r['obs1'] + '||' + r['obs2'] def correct_middle(r): return r['hyp' + r['label']] def incorrect_middle(r): if r['label'] == "1": return r['hyp2'] else: retur...
2,148
0
115
4b8a529e609b440497e2750f8e857e41f5fdbd4b
609
py
Python
lcodev/ecom/api/order/models.py
ShahSau/Amina-s
bb57e138b2256f064eb9bc5d44aa1b19300c029a
[ "MIT" ]
null
null
null
lcodev/ecom/api/order/models.py
ShahSau/Amina-s
bb57e138b2256f064eb9bc5d44aa1b19300c029a
[ "MIT" ]
null
null
null
lcodev/ecom/api/order/models.py
ShahSau/Amina-s
bb57e138b2256f064eb9bc5d44aa1b19300c029a
[ "MIT" ]
null
null
null
from django.db import models from api.user.models import CustomUser from api.product.models import Product # Create your models here.
35.823529
89
0.776683
from django.db import models from api.user.models import CustomUser from api.product.models import Product # Create your models here. class Order(models.Model): user = models.ForeignKey(CustomUser, on_delete=models.CASCADE, null=True, blank=True) product_names= models.CharField(max_length=500) total_pro...
0
450
23
ff4968e83e42959d231483637e223fcbbab5bb11
2,437
py
Python
OnlineHeart.py
zhaoqq4/bilibili-live-tools
b61c3ccf20c7bf5cae9e705258651e78ed4886d0
[ "MIT" ]
2
2019-11-18T07:54:17.000Z
2020-04-15T03:24:52.000Z
OnlineHeart.py
zhaoqq4/bilibili-live-tools
b61c3ccf20c7bf5cae9e705258651e78ed4886d0
[ "MIT" ]
null
null
null
OnlineHeart.py
zhaoqq4/bilibili-live-tools
b61c3ccf20c7bf5cae9e705258651e78ed4886d0
[ "MIT" ]
1
2019-04-24T14:33:49.000Z
2019-04-24T14:33:49.000Z
from bilibili import bilibili from login import login import time import datetime import asyncio from printer import Printer # 因为休眠时间差不多,所以放到这里,此为实验性功能
37.492308
107
0.539598
from bilibili import bilibili from login import login import time import datetime import asyncio from printer import Printer def CurrentTime(): currenttime = int(time.mktime(datetime.datetime.now().timetuple())) return str(currenttime) class OnlineHeart(): async def apppost_heartbeat(self): awa...
2,207
-1
180
6e645357ab662bd0d18a805145e739fa2992aed6
5,515
py
Python
libcloud/resource/lb/drivers/rackspace.py
epolyan/libcloud
45cf7c65498ac338d8e211e625a7900352a29a20
[ "Apache-2.0" ]
1
2019-06-26T22:47:33.000Z
2019-06-26T22:47:33.000Z
libcloud/resource/lb/drivers/rackspace.py
epolyan/libcloud
45cf7c65498ac338d8e211e625a7900352a29a20
[ "Apache-2.0" ]
null
null
null
libcloud/resource/lb/drivers/rackspace.py
epolyan/libcloud
45cf7c65498ac338d8e211e625a7900352a29a20
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use ...
33.628049
80
0.599819
# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use ...
3,571
719
123
02117903ce1d2d7f42712f62b3d73542777dd9d1
10,420
py
Python
abu/UtilBu/ABuFileUtil.py
zhengfaning/vnpy_andy
403d48768d5915188537aaf376b172b35c8e2999
[ "MIT" ]
1
2019-05-28T05:54:42.000Z
2019-05-28T05:54:42.000Z
abu/UtilBu/ABuFileUtil.py
zhengfaning/vnpy_andy
403d48768d5915188537aaf376b172b35c8e2999
[ "MIT" ]
9
2020-03-24T16:45:25.000Z
2022-03-11T23:40:51.000Z
abupy/UtilBu/ABuFileUtil.py
luqin/firefly
2e5ab17f2d20deb3c68c927f6208ea89db7c639d
[ "MIT" ]
1
2021-09-08T17:39:58.000Z
2021-09-08T17:39:58.000Z
# coding=utf-8 """ 文件处理读取写入 """ from __future__ import print_function from __future__ import division from __future__ import absolute_import import logging import os import shutil from contextlib import contextmanager import functools import pandas as pd from .ABuDTUtil import warnings_filter # noinspection PyUn...
27.277487
118
0.616987
# coding=utf-8 """ 文件处理读取写入 """ from __future__ import print_function from __future__ import division from __future__ import absolute_import import logging import os import shutil from contextlib import contextmanager import functools import pandas as pd from .ABuDTUtil import warnings_filter # noinspection PyUn...
721
0
54
df890e5e3a3c69496141d46c8ddc412f76d5199a
1,316
py
Python
extra_settings/admin.py
belkka/django-extra-settings
50b98e2ca8a703f1479e724b6df3229750f6cca9
[ "MIT" ]
null
null
null
extra_settings/admin.py
belkka/django-extra-settings
50b98e2ca8a703f1479e724b6df3229750f6cca9
[ "MIT" ]
null
null
null
extra_settings/admin.py
belkka/django-extra-settings
50b98e2ca8a703f1479e724b6df3229750f6cca9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.contrib import admin from extra_settings.forms import SettingForm from extra_settings.models import Setting admin.site.register(Setting, SettingAdmin)
29.244444
77
0.612462
# -*- coding: utf-8 -*- from django.contrib import admin from extra_settings.forms import SettingForm from extra_settings.models import Setting class SettingAdmin(admin.ModelAdmin): form = SettingForm value_fields_names = ( 'value_bool', 'value_date', 'value_datetime', 'value_decimal', 'val...
394
708
23
f60ecba7436bd0feccfd955d45034ff47acbac07
1,928
py
Python
boss_grabbing/spiders/company_detail.py
shansb/boss_grabbing
20aabd6b2062099eb287d7586dcf619648569ba2
[ "MIT" ]
null
null
null
boss_grabbing/spiders/company_detail.py
shansb/boss_grabbing
20aabd6b2062099eb287d7586dcf619648569ba2
[ "MIT" ]
null
null
null
boss_grabbing/spiders/company_detail.py
shansb/boss_grabbing
20aabd6b2062099eb287d7586dcf619648569ba2
[ "MIT" ]
null
null
null
import sqlite3 import re import scrapy from scrapy import Request # 这个类在最终整合后不再使用
39.346939
113
0.616183
import sqlite3 import re import scrapy from scrapy import Request # 这个类在最终整合后不再使用 class BossSpider(scrapy.Spider): # 这里是将爬虫定义为scrapy.Spider这个类下的一个实例。 # Spider这个类定义了爬虫的很多基本功能,我们直接实例化就好, # 省却了很多重写方法的麻烦。 name = 'bossDetail' # 这是爬虫的名字,这个非常重要。 # start_urls = ['https://www.zhipin.com/c101210400-p1001...
1,114
913
22
2bc030ca5db4461ed3574d0129ac264901f570ee
1,442
py
Python
mel/lib/debugrenderer.py
aevri/mel
4451b272ddc2095f757423ff519f36fc57708ec6
[ "Apache-2.0" ]
5
2015-04-20T12:27:29.000Z
2022-02-12T21:01:39.000Z
mel/lib/debugrenderer.py
aevri/mel
4451b272ddc2095f757423ff519f36fc57708ec6
[ "Apache-2.0" ]
27
2016-06-20T15:02:03.000Z
2022-03-29T06:23:01.000Z
mel/lib/debugrenderer.py
aevri/mel
4451b272ddc2095f757423ff519f36fc57708ec6
[ "Apache-2.0" ]
3
2015-12-27T12:33:34.000Z
2019-07-23T04:05:47.000Z
"""A global object for debug rendering into images without around.""" import cv2 # ----------------------------------------------------------------------------- # Copyright (C) 2018 Angelos Evripiotis. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in complian...
29.428571
79
0.549237
"""A global object for debug rendering into images without around.""" import cv2 class GlobalContext: def __init__(self): self._image = None def arrow(self, from_, to): if self._image is None: return cv2.arrowedLine( self._image, tuple(from_.astype...
508
-1
103
4a924f7c51faa62d6417829f67ab54a1b247bf48
44,034
py
Python
dist/Basilisk/simulation/ephemeris_converter/ephemeris_converter.py
ian-cooke/basilisk_mag
a8b1e37c31c1287549d6fd4d71fcaa35b6fc3f14
[ "0BSD" ]
null
null
null
dist/Basilisk/simulation/ephemeris_converter/ephemeris_converter.py
ian-cooke/basilisk_mag
a8b1e37c31c1287549d6fd4d71fcaa35b6fc3f14
[ "0BSD" ]
1
2019-03-13T20:52:22.000Z
2019-03-13T20:52:22.000Z
dist/Basilisk/simulation/ephemeris_converter/ephemeris_converter.py
ian-cooke/basilisk_mag
a8b1e37c31c1287549d6fd4d71fcaa35b6fc3f14
[ "0BSD" ]
null
null
null
# This file was automatically generated by SWIG (http://www.swig.org). # Version 3.0.12 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info as _swig_python_version_info if _swig_python_version_info >= (2, 7, 0): _ephemeris_...
34.42846
165
0.734569
# This file was automatically generated by SWIG (http://www.swig.org). # Version 3.0.12 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info as _swig_python_version_info if _swig_python_version_info >= (2, 7, 0): def swig_im...
23,919
15,561
974
a082ba62d382fcbf529a314f3081363baba0a629
5,761
py
Python
monty/exts/info/_global_source_snekcode.py
onerandomusername/monty-python
fcd8b2827eb9bbb2a05d28f80ac9e215589f03f7
[ "MIT" ]
20
2021-12-31T10:17:20.000Z
2022-03-31T04:16:17.000Z
monty/exts/info/_global_source_snekcode.py
onerandomusername/monty-bot
b1c769e44b56bc45f37fc809064571d59c80db27
[ "MIT" ]
1
2022-03-13T22:34:33.000Z
2022-03-13T22:34:52.000Z
monty/exts/info/_global_source_snekcode.py
onerandomusername/monty-bot
b1c769e44b56bc45f37fc809064571d59c80db27
[ "MIT" ]
3
2022-01-02T15:21:46.000Z
2022-03-05T09:37:54.000Z
""" Do not import this file. NOTE: THIS RUNS ON PYTHON 3.10 """ # exit codes: # 0: success # 1: indeterminate error # 2: module not resolvable # 3: attribute does not exist # 4: invalid characters, not a valid object path # 5: dynamically created object # 6: is a builtin object, prints module name # 7: invalid metad...
33.109195
116
0.583753
""" Do not import this file. NOTE: THIS RUNS ON PYTHON 3.10 """ # exit codes: # 0: success # 1: indeterminate error # 2: module not resolvable # 3: attribute does not exist # 4: invalid characters, not a valid object path # 5: dynamically created object # 6: is a builtin object, prints module name # 7: invalid metad...
0
0
0
e5190fa81eba75de95857797fc1d9f5bde486ef3
388
py
Python
config/settings/local.py
jhurtadojerves/product-hunt
4e7df9c038852db22e71717120699ef9bc5edd36
[ "MIT" ]
null
null
null
config/settings/local.py
jhurtadojerves/product-hunt
4e7df9c038852db22e71717120699ef9bc5edd36
[ "MIT" ]
null
null
null
config/settings/local.py
jhurtadojerves/product-hunt
4e7df9c038852db22e71717120699ef9bc5edd36
[ "MIT" ]
null
null
null
from .base import * DEBUG = True ALLOWED_HOSTS = ['*'] THIRD_PARTY_APPS += ('debug_toolbar',) # Database # https://docs.djangoproject.com/en/2.0/ref/settings/#databases MIDDLEWARE.insert(3, 'debug_toolbar.middleware.DebugToolbarMiddleware') DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqli...
19.4
71
0.670103
from .base import * DEBUG = True ALLOWED_HOSTS = ['*'] THIRD_PARTY_APPS += ('debug_toolbar',) # Database # https://docs.djangoproject.com/en/2.0/ref/settings/#databases MIDDLEWARE.insert(3, 'debug_toolbar.middleware.DebugToolbarMiddleware') DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqli...
0
0
0
ac0af079ef583a59891bbe099e537166e62e4e80
845
py
Python
devel/create_workspace.py
magland/sortingview
0b1be9d55048cd4b8a0b6b6733bd7d35cb440aa7
[ "Apache-2.0" ]
2
2021-11-19T04:51:42.000Z
2022-03-12T23:36:19.000Z
devel/create_workspace.py
magland/sortingview
0b1be9d55048cd4b8a0b6b6733bd7d35cb440aa7
[ "Apache-2.0" ]
172
2021-05-10T17:39:15.000Z
2022-03-18T21:46:15.000Z
devel/create_workspace.py
magland/sortingview
0b1be9d55048cd4b8a0b6b6733bd7d35cb440aa7
[ "Apache-2.0" ]
2
2021-08-29T20:13:57.000Z
2022-03-12T23:36:34.000Z
import sortingview as sv import spikeextractors as se recording, sorting = se.example_datasets.toy_example(K=11, duration=60, seed=6) R = sv.LabboxEphysRecordingExtractor.from_memory(recording, serialize=True, serialize_dtype='float32') S = sv.LabboxEphysSortingExtractor.from_memory(sorting, serialize=True) W = sv.c...
36.73913
135
0.808284
import sortingview as sv import spikeextractors as se recording, sorting = se.example_datasets.toy_example(K=11, duration=60, seed=6) R = sv.LabboxEphysRecordingExtractor.from_memory(recording, serialize=True, serialize_dtype='float32') S = sv.LabboxEphysSortingExtractor.from_memory(sorting, serialize=True) W = sv.c...
0
0
0
676081027b43c842e587bf0a13ec035d57f5746b
2,182
py
Python
django_rest_multitokenauth/models.py
anx-mfischer/django-rest-multitokenauth
ccdf059f8409f55f8c5d908a27cb887a2da9fd5f
[ "BSD-3-Clause" ]
3
2020-11-24T03:00:31.000Z
2021-07-04T20:21:31.000Z
django_rest_multitokenauth/models.py
anx-mfischer/django-rest-multitokenauth
ccdf059f8409f55f8c5d908a27cb887a2da9fd5f
[ "BSD-3-Clause" ]
8
2020-01-14T17:15:21.000Z
2021-11-05T13:59:35.000Z
django_rest_multitokenauth/models.py
anx-mfischer/django-rest-multitokenauth
ccdf059f8409f55f8c5d908a27cb887a2da9fd5f
[ "BSD-3-Clause" ]
5
2020-06-12T06:21:42.000Z
2021-10-08T07:52:49.000Z
import binascii import os from django.conf import settings from django.db import models from django.utils.translation import ugettext_lazy as _ __all__ = [ 'MultiToken', ] # Prior to Django 1.5, the AUTH_USER_MODEL setting does not exist. # Note that we don't perform this code in the compat module due to # bug r...
27.974359
84
0.634739
import binascii import os from django.conf import settings from django.db import models from django.utils.translation import ugettext_lazy as _ __all__ = [ 'MultiToken', ] # Prior to Django 1.5, the AUTH_USER_MODEL setting does not exist. # Note that we don't perform this code in the compat module due to # bug r...
283
367
81
4499bc7cf3785258e6fbb00a6f9ad2f3223bd15f
29,306
py
Python
qpp_ref.py
Zendelo/IRQPP
fdcc11743cd83517363570efe99e03ddf57cc2a1
[ "MIT" ]
2
2020-09-30T12:38:07.000Z
2021-04-01T06:59:56.000Z
qpp_ref.py
Zendelo/IRQPP
fdcc11743cd83517363570efe99e03ddf57cc2a1
[ "MIT" ]
null
null
null
qpp_ref.py
Zendelo/IRQPP
fdcc11743cd83517363570efe99e03ddf57cc2a1
[ "MIT" ]
null
null
null
import argparse import glob import itertools import multiprocessing as mp import os from functools import partial from subprocess import run import numpy as np import pandas as pd from qpputils import dataparser as dp from Timer import Timer from crossval import InterTopicCrossValidation from query_features import fe...
50.878472
120
0.644203
import argparse import glob import itertools import multiprocessing as mp import os from functools import partial from subprocess import run import numpy as np import pandas as pd from qpputils import dataparser as dp from Timer import Timer from crossval import InterTopicCrossValidation from query_features import fe...
15,835
0
650
30a884640a621c0f4dbfca2f8f5470da114c2391
1,649
py
Python
src/setup.py
salimfadhley/neowrapper
54116d099f4d6e5559931bf5f6a1dace4d847f38
[ "MIT" ]
null
null
null
src/setup.py
salimfadhley/neowrapper
54116d099f4d6e5559931bf5f6a1dace4d847f38
[ "MIT" ]
null
null
null
src/setup.py
salimfadhley/neowrapper
54116d099f4d6e5559931bf5f6a1dace4d847f38
[ "MIT" ]
null
null
null
from setuptools import setup import os import sys SRC_ROOT, _ = os.path.split(__file__) PROJECT_ROOT = os.path.dirname(SRC_ROOT) REVISION = '0.0.1' PROJECT_NAME = 'neowrapper' PROJECT_AUTHORS = "Salim Fadhley" # Please see readme.rst for a complete list of contributors PROJECT_EMAILS = 'salimfadhley@gmail.com' PROJEC...
27.949153
70
0.634324
from setuptools import setup import os import sys SRC_ROOT, _ = os.path.split(__file__) PROJECT_ROOT = os.path.dirname(SRC_ROOT) REVISION = '0.0.1' PROJECT_NAME = 'neowrapper' PROJECT_AUTHORS = "Salim Fadhley" # Please see readme.rst for a complete list of contributors PROJECT_EMAILS = 'salimfadhley@gmail.com' PROJEC...
0
0
0
0b4989abdaf9cc0a4faa2db937d056c3c32e1de2
151
py
Python
upguard/policy.py
ScriptRock/py-upguard
7e41952fde1c75c363cd72b0752a643aa92c8a70
[ "MIT" ]
null
null
null
upguard/policy.py
ScriptRock/py-upguard
7e41952fde1c75c363cd72b0752a643aa92c8a70
[ "MIT" ]
19
2017-07-06T14:38:46.000Z
2018-04-13T21:28:23.000Z
upguard/policy.py
ScriptRock/py-upguard
7e41952fde1c75c363cd72b0752a643aa92c8a70
[ "MIT" ]
null
null
null
from upguard import UpGuardObject
25.166667
62
0.682119
from upguard import UpGuardObject class Policy(UpGuardObject): def __repr__(self): return "Policy {} (ID: {})".format(self.name, self.id)
61
7
49
79b97d03ccf4dbab70af627b1932d5c08cc2c0ed
1,728
py
Python
pythonit_toolkit/pastaporto/entities.py
pythonitalia/pythonit-toolkit
373f703bff0b573c0aa9993868d5a4770d3a2dc1
[ "MIT" ]
56
2018-01-20T17:18:40.000Z
2022-03-28T22:42:04.000Z
toolkit/pythonit_toolkit/pastaporto/entities.py
pythonitalia/pycon
14e03b2158916f9437fdbde70e48e5bf5266997e
[ "MIT" ]
2,029
2018-01-20T11:37:24.000Z
2022-03-31T04:10:51.000Z
pythonit_toolkit/pastaporto/entities.py
pythonitalia/pythonit-toolkit
373f703bff0b573c0aa9993868d5a4770d3a2dc1
[ "MIT" ]
17
2018-03-17T09:44:28.000Z
2021-12-27T19:57:35.000Z
from __future__ import annotations from dataclasses import dataclass, field from enum import Enum from typing import Any, Optional import jwt from .exceptions import InvalidPastaportoError from .tokens import decode_pastaporto @dataclass @dataclass
24.685714
85
0.661458
from __future__ import annotations from dataclasses import dataclass, field from enum import Enum from typing import Any, Optional import jwt from .exceptions import InvalidPastaportoError from .tokens import decode_pastaporto class Credential(str, Enum): AUTHENTICATED = "authenticated" STAFF = "staff" ...
920
460
90
360985d17336c167eab4044ad7e51e3f794f7757
2,333
py
Python
socialsim/apps/main/models.py
Harryonismyname/SocialSim
d1c9c8f1aadbf4aaa761d590269a6d60558470f5
[ "MIT" ]
null
null
null
socialsim/apps/main/models.py
Harryonismyname/SocialSim
d1c9c8f1aadbf4aaa761d590269a6d60558470f5
[ "MIT" ]
null
null
null
socialsim/apps/main/models.py
Harryonismyname/SocialSim
d1c9c8f1aadbf4aaa761d590269a6d60558470f5
[ "MIT" ]
null
null
null
from re import error from django.db import models from ..login.models import User # Create your models here.
48.604167
192
0.739391
from re import error from django.db import models from ..login.models import User # Create your models here. class CharacterManager(models.Manager): def character_validator(self, postData): errors = {} if len(postData['first_name'])<1: errors['noName'] = 'Please enter a name' re...
782
1,276
167
0ff026c02ac3218cee4c841a548d710b08845fe6
986
py
Python
net/migrations/0016_equipmentsuggestcredentials.py
dehu4ka/lna
f5ee176bdb5c7507b76fba5ae651ce333b71c3db
[ "MIT" ]
null
null
null
net/migrations/0016_equipmentsuggestcredentials.py
dehu4ka/lna
f5ee176bdb5c7507b76fba5ae651ce333b71c3db
[ "MIT" ]
null
null
null
net/migrations/0016_equipmentsuggestcredentials.py
dehu4ka/lna
f5ee176bdb5c7507b76fba5ae651ce333b71c3db
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2017-07-03 07:24 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion
34
133
0.616633
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2017-07-03 07:24 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('net', '0015_auto_20170702_2210'), ] operations = [...
0
774
23
c0aefa9cb92705a6d2af447d674fb79f3c5da767
59
py
Python
{{cookiecutter.project_name}}/api/app/constants/aws_errors.py
seantbaier/fullstack-react-fastapi-dynamodb
3ab1c806b1b7684ba2509463563a0221118506d3
[ "MIT" ]
null
null
null
{{cookiecutter.project_name}}/api/app/constants/aws_errors.py
seantbaier/fullstack-react-fastapi-dynamodb
3ab1c806b1b7684ba2509463563a0221118506d3
[ "MIT" ]
null
null
null
{{cookiecutter.project_name}}/api/app/constants/aws_errors.py
seantbaier/fullstack-react-fastapi-dynamodb
3ab1c806b1b7684ba2509463563a0221118506d3
[ "MIT" ]
null
null
null
RESOURCE_NOT_FOUND_EXCEPTION = "ResourceNotFoundException"
29.5
58
0.898305
RESOURCE_NOT_FOUND_EXCEPTION = "ResourceNotFoundException"
0
0
0
25c8a4ffbd0b78a2d9282f40b59bb59aab41b94b
2,697
py
Python
cmaes/optim_L2M2019Ctrl_2D.py
mcmips/osim-rl
610b95cf0c4484f1acecd31187736b0113dcfb73
[ "MIT" ]
867
2017-01-21T20:53:36.000Z
2022-03-20T09:47:08.000Z
cmaes/optim_L2M2019Ctrl_2D.py
mcmips/osim-rl
610b95cf0c4484f1acecd31187736b0113dcfb73
[ "MIT" ]
197
2017-01-22T21:27:36.000Z
2022-01-10T16:18:35.000Z
cmaes/optim_L2M2019Ctrl_2D.py
mcmips/osim-rl
610b95cf0c4484f1acecd31187736b0113dcfb73
[ "MIT" ]
277
2017-02-01T18:42:18.000Z
2022-03-23T11:30:31.000Z
from osim.env import L2M2019CtrlEnv from osim.control.osim_loco_reflex_song2019 import OsimReflexCtrl import sys import numpy as np trial_name = 'trial_190501_L2M2019CtrlEnv_2D_' params = np.ones(37) #params = np.loadtxt('./data/cma/trial_181029_walk_3D_noStand_8_best.txt') if __name__ == '__main__': prob = CMA...
31.360465
121
0.60178
from osim.env import L2M2019CtrlEnv from osim.control.osim_loco_reflex_song2019 import OsimReflexCtrl import sys import numpy as np trial_name = 'trial_190501_L2M2019CtrlEnv_2D_' class CMATrain(object): def __init__(self, ): self.n_f_call = 0 self.best_total_reward = -np.inf self.flag_mo...
1,921
2
84
f53badafa9e6234f22945066f24e56e6a8901b63
282
py
Python
pacman-termux/test/pacman/tests/querycheck_fast_file_type.py
Maxython/pacman-for-termux
3b208eb9274cbfc7a27fca673ea8a58f09ebad47
[ "MIT" ]
23
2021-05-21T19:11:06.000Z
2022-03-31T18:14:20.000Z
source/pacman-6.0.1/test/pacman/tests/querycheck_fast_file_type.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
11
2021-05-21T12:08:44.000Z
2021-12-21T08:30:08.000Z
source/pacman-6.0.1/test/pacman/tests/querycheck_fast_file_type.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "check file type without mtree" self.filesystem = [ "bar/", "foo -> bar/" ] pkg = pmpkg("dummy") pkg.files = [ "foo/" ] self.addpkg2db("local",pkg) self.args = "-Qk" self.addrule("PACMAN_RETCODE=1") self.addrule("PACMAN_OUTPUT=warning.*(File type mismatch)")
21.692308
59
0.677305
self.description = "check file type without mtree" self.filesystem = [ "bar/", "foo -> bar/" ] pkg = pmpkg("dummy") pkg.files = [ "foo/" ] self.addpkg2db("local",pkg) self.args = "-Qk" self.addrule("PACMAN_RETCODE=1") self.addrule("PACMAN_OUTPUT=warning.*(File type mismatch)")
0
0
0
130bb291c8c4792dc4b46a527df4539fcf23c7e7
6,722
py
Python
factorizer/factorization/base.py
pashtari/factorizer
730f295b403a90c1c691f99b529d5d32b635d0c6
[ "Apache-2.0" ]
7
2022-03-05T00:43:29.000Z
2022-03-07T01:23:08.000Z
factorizer/factorization/base.py
pashtari/factorizer
730f295b403a90c1c691f99b529d5d32b635d0c6
[ "Apache-2.0" ]
null
null
null
factorizer/factorization/base.py
pashtari/factorizer
730f295b403a90c1c691f99b529d5d32b635d0c6
[ "Apache-2.0" ]
1
2022-03-21T05:28:23.000Z
2022-03-21T05:28:23.000Z
import math import torch from torch import nn from ..utils.helpers import wrap_class, null_context from .operations import t, relative_error from ..tensor_network import SingleTensor class MF(nn.Module): """Base module for matrix factorization. X ≈ U t(V), U, V ∈ S """ class TF(nn.Module): ""...
28.483051
79
0.553109
import math import torch from torch import nn from ..utils.helpers import wrap_class, null_context from .operations import t, relative_error from ..tensor_network import SingleTensor class MF(nn.Module): """Base module for matrix factorization. X ≈ U t(V), U, V ∈ S """ def __init__( se...
5,937
0
324
16a55c0e3927ddc84d35389a18aa2e8779ead4b3
154
py
Python
basepy/libs/logger.py
glenacota/basepy
c51883dff1a92486be966b70a950502a862fd7cb
[ "MIT" ]
null
null
null
basepy/libs/logger.py
glenacota/basepy
c51883dff1a92486be966b70a950502a862fd7cb
[ "MIT" ]
1
2021-01-10T20:43:43.000Z
2021-01-10T20:43:43.000Z
basepy/libs/logger.py
glenacota/basepy
c51883dff1a92486be966b70a950502a862fd7cb
[ "MIT" ]
null
null
null
"""Logger """ import logging import logging.config logging.config.fileConfig("logging.ini")
11.846154
45
0.727273
"""Logger """ import logging import logging.config logging.config.fileConfig("logging.ini") def log(): return logging.getLogger("defaultLogger")
35
0
23
7cb42dcb4878f5eea333aacdcea96fbfbdba501d
20,865
py
Python
src/cozmo/annotate.py
wmh123456789/cozmo-python-wmh
ce66a1b22d75c086e413d61cea9b65ade6aefa24
[ "Apache-2.0" ]
null
null
null
src/cozmo/annotate.py
wmh123456789/cozmo-python-wmh
ce66a1b22d75c086e413d61cea9b65ade6aefa24
[ "Apache-2.0" ]
null
null
null
src/cozmo/annotate.py
wmh123456789/cozmo-python-wmh
ce66a1b22d75c086e413d61cea9b65ade6aefa24
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2016-2017 Anki, Inc. # # 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 in the file LICENSE.txt or at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
36.098616
100
0.638917
# Copyright (c) 2016-2017 Anki, Inc. # # 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 in the file LICENSE.txt or at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
4,049
13
504
6ff86e996a422fb72b4760438ffa6e29ca191105
2,011
py
Python
src/utils/interface_train_tool.py
waverDeep/WaveBYOL
ab062c26598e0fa6ab8426498f9920048988b5c1
[ "MIT" ]
1
2022-03-15T00:00:57.000Z
2022-03-15T00:00:57.000Z
src/utils/interface_train_tool.py
waverDeep/WaveBYOL
ab062c26598e0fa6ab8426498f9920048988b5c1
[ "MIT" ]
null
null
null
src/utils/interface_train_tool.py
waverDeep/WaveBYOL
ab062c26598e0fa6ab8426498f9920048988b5c1
[ "MIT" ]
null
null
null
import argparse import json import random import numpy as np import os import torch.cuda from datetime import datetime import src.utils.interface_file_io as file_io
37.943396
118
0.672302
import argparse import json import random import numpy as np import os import torch.cuda from datetime import datetime import src.utils.interface_file_io as file_io def setup_seed(seed=42): random.seed(seed) os.environ['PYTHONHASHSEED'] = str(seed) np.random.seed(seed) torch.manual_seed(seed) torc...
1,727
0
115
a889917e4af1f1b70c643c40ae9292d5dcd9b175
4,675
py
Python
unittest/unittest.py
mfkiwl/coast-compilerAssistedSoftwareFaultTolerance
397a26ecdb01e7c329884d12c9f6bb2a05c3abc9
[ "MIT" ]
12
2019-08-19T17:05:17.000Z
2022-03-21T23:07:41.000Z
unittest/unittest.py
mfkiwl/coast-compilerAssistedSoftwareFaultTolerance
397a26ecdb01e7c329884d12c9f6bb2a05c3abc9
[ "MIT" ]
3
2020-02-13T12:46:07.000Z
2022-03-23T22:48:29.000Z
unittest/unittest.py
mfkiwl/coast-compilerAssistedSoftwareFaultTolerance
397a26ecdb01e7c329884d12c9f6bb2a05c3abc9
[ "MIT" ]
7
2019-04-23T13:52:28.000Z
2021-09-23T03:49:16.000Z
import sys import argparse import pathlib import yaml import subprocess import re COAST_dir = pathlib.Path(__file__).resolve().parent.parent tests_dir = COAST_dir / "tests" # Compile the benchmark for x86 using provided opt_passes # Run the x86 compiled benchmark (must call compile first) if __name__ == "_...
32.241379
91
0.588449
import sys import argparse import pathlib import yaml import subprocess import re COAST_dir = pathlib.Path(__file__).resolve().parent.parent tests_dir = COAST_dir / "tests" class bcolors: HEADER = '\033[95m' OKBLUE = '\033[94m' OKGREEN = '\033[92m' WARNING = '\033[93m' FAIL = '\033[91m' ENDC =...
3,922
196
216
0ed1e225e00c574cabde72e06f429759b38ea0a3
1,796
py
Python
example-plugins/emorand_plugin.py
gsi-upm/senpy
c5a2cf23cb5ccb5ba96ae11aa1dcbb3d902c6218
[ "Apache-2.0" ]
74
2015-02-26T18:27:00.000Z
2022-02-17T17:14:43.000Z
example-plugins/emorand_plugin.py
gsi-upm/senpy
c5a2cf23cb5ccb5ba96ae11aa1dcbb3d902c6218
[ "Apache-2.0" ]
39
2015-02-26T18:26:45.000Z
2018-05-14T09:42:59.000Z
example-plugins/emorand_plugin.py
gsi-upm/senpy
c5a2cf23cb5ccb5ba96ae11aa1dcbb3d902c6218
[ "Apache-2.0" ]
24
2016-03-10T11:52:55.000Z
2020-11-27T06:38:37.000Z
# # Copyright 2014 Grupo de Sistemas Inteligentes (GSI) DIT, UPM # # 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 # # Unles...
35.92
95
0.672606
# # Copyright 2014 Grupo de Sistemas Inteligentes (GSI) DIT, UPM # # 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 # # Unles...
715
0
54
9f657525382f71d187facef0cf2bd508ed5ad88c
1,451
py
Python
setup.py
tyler-a-cox/recipe-parsing
fa883f66a39063cf72912527628b082cda455e76
[ "MIT" ]
null
null
null
setup.py
tyler-a-cox/recipe-parsing
fa883f66a39063cf72912527628b082cda455e76
[ "MIT" ]
null
null
null
setup.py
tyler-a-cox/recipe-parsing
fa883f66a39063cf72912527628b082cda455e76
[ "MIT" ]
null
null
null
import os import glob from setuptools import find_packages, setup about = {} here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(os.path.dirname(__file__), "README.md")).read() os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) extra_files = package_files("recip...
32.244444
78
0.68091
import os import glob from setuptools import find_packages, setup about = {} here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(os.path.dirname(__file__), "README.md")).read() os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) def package_files(directory): p...
198
0
23
356fdb728a10942cacde6ea987542938dbd25a5b
2,906
py
Python
chorus/rdkit.py
mojaie/chorus
63cbe4764ab2498b7b1da11a628bec01d03ca012
[ "MIT" ]
5
2018-03-23T04:56:17.000Z
2022-03-04T15:54:39.000Z
chorus/rdkit.py
mojaie/chorus
63cbe4764ab2498b7b1da11a628bec01d03ca012
[ "MIT" ]
4
2017-09-08T02:08:12.000Z
2018-06-12T00:55:18.000Z
chorus/rdkit.py
mojaie/chorus
63cbe4764ab2498b7b1da11a628bec01d03ca012
[ "MIT" ]
6
2018-01-22T22:21:20.000Z
2021-03-25T04:47:11.000Z
# # (C) 2014-2017 Seiji Matsuoka # Licensed under the MIT License (MIT) # http://opensource.org/licenses/MIT # from rdkit import Chem from rdkit.Chem import AllChem from rdkit.Chem import rdFMCS from rdkit import DataStructs from chorus.model.graphmol import Compound from chorus.model.atom import Atom, atom_number fr...
30.270833
75
0.659326
# # (C) 2014-2017 Seiji Matsuoka # Licensed under the MIT License (MIT) # http://opensource.org/licenses/MIT # from rdkit import Chem from rdkit.Chem import AllChem from rdkit.Chem import rdFMCS from rdkit import DataStructs from chorus.model.graphmol import Compound from chorus.model.atom import Atom, atom_number fr...
673
0
46
d3c005b2e7e40baf179922f1ad53ea36608635e8
292
py
Python
fjord/feedback/management/commands/purge_data.py
DESHRAJ/fjord
8899b6286b23347c9b024334e61c33fe133e836d
[ "BSD-3-Clause" ]
null
null
null
fjord/feedback/management/commands/purge_data.py
DESHRAJ/fjord
8899b6286b23347c9b024334e61c33fe133e836d
[ "BSD-3-Clause" ]
null
null
null
fjord/feedback/management/commands/purge_data.py
DESHRAJ/fjord
8899b6286b23347c9b024334e61c33fe133e836d
[ "BSD-3-Clause" ]
null
null
null
from django.core.management.base import BaseCommand from fjord.feedback.models import purge_data
24.333333
57
0.695205
from django.core.management.base import BaseCommand from fjord.feedback.models import purge_data class Command(BaseCommand): help = 'Purges old data' def handle(self, *args, **options): verbose = (int(options.get('verbosity', 1)) >= 1) purge_data(verbose=verbose)
108
62
23
931f1705fe91eb8bc4e4f3f7afd3dde8decf6c82
1,775
py
Python
pnc/draco3_pnc/draco3_state_machine/double_support_swaying.py
MaxxWilson/ASE389Project
13c3c72887e27fbed2eef63c1e27b4a185036a39
[ "MIT" ]
17
2021-05-31T10:55:48.000Z
2022-03-30T10:09:37.000Z
pnc/draco3_pnc/draco3_state_machine/double_support_swaying.py
MaxxWilson/ASE389Project
13c3c72887e27fbed2eef63c1e27b4a185036a39
[ "MIT" ]
2
2021-10-01T22:11:43.000Z
2021-12-06T02:34:33.000Z
pnc/draco3_pnc/draco3_state_machine/double_support_swaying.py
MaxxWilson/ASE389Project
13c3c72887e27fbed2eef63c1e27b4a185036a39
[ "MIT" ]
3
2021-08-24T00:53:18.000Z
2022-03-31T17:29:07.000Z
import numpy as np from config.draco3_config import WalkingState from pnc.state_machine import StateMachine from pnc.planner.locomotion.dcm_planner.footstep import Footstep from pnc.draco3_pnc.draco3_state_provider import Draco3StateProvider
27.734375
78
0.669296
import numpy as np from config.draco3_config import WalkingState from pnc.state_machine import StateMachine from pnc.planner.locomotion.dcm_planner.footstep import Footstep from pnc.draco3_pnc.draco3_state_provider import Draco3StateProvider class DoubleSupportSwaying(StateMachine): def __init__(self, id, tm, hm...
1,158
350
23
df54cba02d780baef764a2cae8809390e2547df2
3,030
py
Python
mnist/clean_and_view.py
mFarouki/tensorflow
18521f71d2fc9f1173e445f198dfb84577fe815b
[ "MIT" ]
null
null
null
mnist/clean_and_view.py
mFarouki/tensorflow
18521f71d2fc9f1173e445f198dfb84577fe815b
[ "MIT" ]
null
null
null
mnist/clean_and_view.py
mFarouki/tensorflow
18521f71d2fc9f1173e445f198dfb84577fe815b
[ "MIT" ]
null
null
null
from math import ceil, floor, sqrt from pathlib import Path from random import randint import matplotlib.pyplot as plt import numpy as np import tensorflow as tf
36.95122
120
0.733333
from math import ceil, floor, sqrt from pathlib import Path from random import randint import matplotlib.pyplot as plt import numpy as np import tensorflow as tf def version_check(): print(f'Running TensorFlow version {tf.__version__}') def load_data(dataset): (x_train, y_train), (x_test, y_test) = dataset...
2,675
0
184
c44dccf155b9b70e34f552e0f9ae4ca324dce910
1,617
py
Python
shooting method.py
Cecilia-ChenJY/transition-pathway
498df12fc022b036a3b45540513bccf519dcf2c1
[ "MIT" ]
null
null
null
shooting method.py
Cecilia-ChenJY/transition-pathway
498df12fc022b036a3b45540513bccf519dcf2c1
[ "MIT" ]
null
null
null
shooting method.py
Cecilia-ChenJY/transition-pathway
498df12fc022b036a3b45540513bccf519dcf2c1
[ "MIT" ]
null
null
null
# %% import tensorflow as tf from tensorflow import keras from tensorflow.keras import layers from tensorflow.python.keras.layers.core import Dropout #%% model = tf.keras.models.Sequential([ tf.keras.Input(shape=(2,)), tf.keras.layers.Dense(80, activation='sigmoid'), tf.keras.layers.Dense(2) ]) # %% # x_train=t...
23.1
158
0.635127
# %% import tensorflow as tf from tensorflow import keras from tensorflow.keras import layers from tensorflow.python.keras.layers.core import Dropout #%% model = tf.keras.models.Sequential([ tf.keras.Input(shape=(2,)), tf.keras.layers.Dense(80, activation='sigmoid'), tf.keras.layers.Dense(2) ]) # %% # x_train=t...
0
0
0
8d810281c058b88b280cf98d189172065a5be063
566
py
Python
sl_cutscenes/lighting.py
AIS-Bonn/sl-cutscenes
d50128b86a9c808cbe5943e737a4974f0a8d3982
[ "MIT" ]
2
2022-03-25T08:24:10.000Z
2022-03-29T09:06:47.000Z
sl_cutscenes/lighting.py
AIS-Bonn/sl-scenes
d50128b86a9c808cbe5943e737a4974f0a8d3982
[ "MIT" ]
null
null
null
sl_cutscenes/lighting.py
AIS-Bonn/sl-scenes
d50128b86a9c808cbe5943e737a4974f0a8d3982
[ "MIT" ]
null
null
null
import random import stillleben as sl import sl_cutscenes.constants as CONSTANTS def get_lightmap(map_name="random"): """ Fetches the right lightmap given command line argument. """ assert map_name in ["default", "random"] + list(CONSTANTS.ALL_LIGHTMAPS.keys()), f"Unknown lightmap {map_name}..." ...
29.789474
118
0.701413
import random import stillleben as sl import sl_cutscenes.constants as CONSTANTS def get_lightmap(map_name="random"): """ Fetches the right lightmap given command line argument. """ assert map_name in ["default", "random"] + list(CONSTANTS.ALL_LIGHTMAPS.keys()), f"Unknown lightmap {map_name}..." ...
0
0
0
3a9028379ee755f1eaf5837d3fe07532341bdfc1
236
py
Python
imugi/compiler/types/__init__.py
hahnlee/imugi
4095f5ba7fb475ec4389798c247ac540cff2c983
[ "BSD-2-Clause" ]
5
2018-09-09T14:48:13.000Z
2021-03-01T01:58:20.000Z
imugi/compiler/types/__init__.py
me2nuk/imugi
4095f5ba7fb475ec4389798c247ac540cff2c983
[ "BSD-2-Clause" ]
null
null
null
imugi/compiler/types/__init__.py
me2nuk/imugi
4095f5ba7fb475ec4389798c247ac540cff2c983
[ "BSD-2-Clause" ]
3
2021-05-24T16:26:21.000Z
2022-02-10T13:52:52.000Z
from .llvm_type import ( char_pointer, i8, i32, i64, ) from .objc import ( objc_ivar, objc_ivar_list, ) __all__ = [ 'char_pointer', 'i8', 'i32', 'i64', 'objc_ivar', 'objc_ivar_list', ]
10.727273
24
0.533898
from .llvm_type import ( char_pointer, i8, i32, i64, ) from .objc import ( objc_ivar, objc_ivar_list, ) __all__ = [ 'char_pointer', 'i8', 'i32', 'i64', 'objc_ivar', 'objc_ivar_list', ]
0
0
0
c60aa4271fbb35402de9018343cf37b5cdd7f47b
926
py
Python
scraper/tests.py
bartromgens/waarnemingkaart
3889d429a1c10586115b045a17be3e9c98931613
[ "MIT" ]
null
null
null
scraper/tests.py
bartromgens/waarnemingkaart
3889d429a1c10586115b045a17be3e9c98931613
[ "MIT" ]
8
2020-01-01T16:11:19.000Z
2021-12-13T19:42:07.000Z
scraper/tests.py
bartromgens/waarnemingkaart
3889d429a1c10586115b045a17be3e9c98931613
[ "MIT" ]
1
2020-11-15T23:06:43.000Z
2020-11-15T23:06:43.000Z
import datetime import json import pprint from django.test import TestCase from scraper import scraper pp = pprint.PrettyPrinter(indent=4)
27.235294
93
0.676026
import datetime import json import pprint from django.test import TestCase from scraper import scraper pp = pprint.PrettyPrinter(indent=4) class TestObservationListScraper(TestCase): def test_scrape_observations(self): date = datetime.date(year=2017, month=9, day=1) max_n = 2 observati...
642
40
100
878a3b5f99b514948fe12ecc35b54f5e10ee7016
2,881
py
Python
ocr_handler_factory.py
weenerberg/guildtracker
1957018cdaa93678b6591248905804dc4d892d04
[ "MIT" ]
null
null
null
ocr_handler_factory.py
weenerberg/guildtracker
1957018cdaa93678b6591248905804dc4d892d04
[ "MIT" ]
null
null
null
ocr_handler_factory.py
weenerberg/guildtracker
1957018cdaa93678b6591248905804dc4d892d04
[ "MIT" ]
null
null
null
import logging from sith_score_handler import SithScoreHandler from raidtickets_lifetime_handler import RaidticketsLifetimeHandler from guildtickets_lifetime_handler import GuildticketsLifetimeHandler from territory_battle_total_score_handler import TerritoryBattleTotalScoreHandler from territory_battle_total_combat_wa...
64.022222
236
0.816383
import logging from sith_score_handler import SithScoreHandler from raidtickets_lifetime_handler import RaidticketsLifetimeHandler from guildtickets_lifetime_handler import GuildticketsLifetimeHandler from territory_battle_total_score_handler import TerritoryBattleTotalScoreHandler from territory_battle_total_combat_wa...
2,267
11
71
acd013c99d99968db3e82b68c59e53f87908a78f
2,204
py
Python
DallasPlayers/repeat_outcome_player.py
fras2560/Competition
b4671573f547a82a159c3f2e98686a9855491892
[ "MIT" ]
null
null
null
DallasPlayers/repeat_outcome_player.py
fras2560/Competition
b4671573f547a82a159c3f2e98686a9855491892
[ "MIT" ]
null
null
null
DallasPlayers/repeat_outcome_player.py
fras2560/Competition
b4671573f547a82a159c3f2e98686a9855491892
[ "MIT" ]
null
null
null
''' @author: Dallas Fraser @id: 20652186 @class: CS686 @date: 2016-02-13 @note: contains a player using a repeat (Pavlov) strategy ''' from DallasPlayers.player import COOPERATE, Player, DEFECT import unittest class RepeatOutcomePlayer(Player): """ Repeat Outcome Player - repeat last choice if good outcome ...
34.4375
72
0.617967
''' @author: Dallas Fraser @id: 20652186 @class: CS686 @date: 2016-02-13 @note: contains a player using a repeat (Pavlov) strategy ''' from DallasPlayers.player import COOPERATE, Player, DEFECT import unittest class RepeatOutcomePlayer(Player): """ Repeat Outcome Player - repeat last choice if good outcome ...
1,706
15
156
53238245cb95ddc1dce0b7800b91c719d6a1110e
61
py
Python
adain/cfg/__init__.py
srihari-humbarwadi/adain-tensorflow2.x
c0da16e4d39d5316683ed0988787aedbb1c9768c
[ "MIT" ]
6
2020-12-27T08:20:19.000Z
2021-07-03T10:28:21.000Z
adain/cfg/__init__.py
srihari-humbarwadi/adain-tensorflow2.x
c0da16e4d39d5316683ed0988787aedbb1c9768c
[ "MIT" ]
null
null
null
adain/cfg/__init__.py
srihari-humbarwadi/adain-tensorflow2.x
c0da16e4d39d5316683ed0988787aedbb1c9768c
[ "MIT" ]
null
null
null
from adain.cfg.config import Config __all__ = ['Config']
15.25
36
0.704918
from adain.cfg.config import Config __all__ = ['Config']
0
0
0
169eac8b55d04972afcb92a805c952f20a9a5da6
29,826
py
Python
google/cloud/iam_credentials_v1/services/iam_credentials/client.py
Sandy1811/python-iam
f895427f7e59820931de194af42a10f44c5e9ae6
[ "Apache-2.0" ]
null
null
null
google/cloud/iam_credentials_v1/services/iam_credentials/client.py
Sandy1811/python-iam
f895427f7e59820931de194af42a10f44c5e9ae6
[ "Apache-2.0" ]
null
null
null
google/cloud/iam_credentials_v1/services/iam_credentials/client.py
Sandy1811/python-iam
f895427f7e59820931de194af42a10f44c5e9ae6
[ "Apache-2.0" ]
1
2021-06-21T07:25:10.000Z
2021-06-21T07:25:10.000Z
# -*- coding: utf-8 -*- # 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 o...
42.008451
106
0.599846
# -*- coding: utf-8 -*- # 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 o...
0
0
0
649d2c724b47b9dc4e3e609cd5390cfac81c2bc4
3,608
py
Python
os_testr/testlist_builder.py
mail2nsrajesh/os-testr
e605216736c1867d7f03d0530f6e26fc20e064ce
[ "Apache-2.0" ]
null
null
null
os_testr/testlist_builder.py
mail2nsrajesh/os-testr
e605216736c1867d7f03d0530f6e26fc20e064ce
[ "Apache-2.0" ]
null
null
null
os_testr/testlist_builder.py
mail2nsrajesh/os-testr
e605216736c1867d7f03d0530f6e26fc20e064ce
[ "Apache-2.0" ]
1
2020-07-21T02:18:23.000Z
2020-07-21T02:18:23.000Z
# Copyright 2016 RedHat, Inc. # # 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...
33.407407
78
0.645233
# Copyright 2016 RedHat, Inc. # # 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...
783
0
46
0435041c010170c69d01cc26aec3f6bd9ca040c1
91
py
Python
src/functions_framework/__main__.py
uraniun/functions-framework-python
748f51f08a72d798544f5e8aa20c8a426a2dbb30
[ "Apache-2.0" ]
1
2021-02-11T13:09:03.000Z
2021-02-11T13:09:03.000Z
src/functions_framework/__main__.py
uraniun/functions-framework-python
748f51f08a72d798544f5e8aa20c8a426a2dbb30
[ "Apache-2.0" ]
null
null
null
src/functions_framework/__main__.py
uraniun/functions-framework-python
748f51f08a72d798544f5e8aa20c8a426a2dbb30
[ "Apache-2.0" ]
1
2020-04-23T21:37:50.000Z
2020-04-23T21:37:50.000Z
from functions_framework._cli import _cli _cli(prog_name="python -m functions_framework")
22.75
47
0.835165
from functions_framework._cli import _cli _cli(prog_name="python -m functions_framework")
0
0
0
346e22a22f276cb6603d6d67db3aad27ceae71ef
426
py
Python
handover/migrations/0006_auto_20190603_0327.py
utkarsh3mehta/todo
8b1b22a3b016658050572abf818beabac8658f12
[ "MIT" ]
null
null
null
handover/migrations/0006_auto_20190603_0327.py
utkarsh3mehta/todo
8b1b22a3b016658050572abf818beabac8658f12
[ "MIT" ]
null
null
null
handover/migrations/0006_auto_20190603_0327.py
utkarsh3mehta/todo
8b1b22a3b016658050572abf818beabac8658f12
[ "MIT" ]
null
null
null
# Generated by Django 2.2 on 2019-06-03 10:27 from django.db import migrations, models
22.421053
87
0.619718
# Generated by Django 2.2 on 2019-06-03 10:27 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('handover', '0005_auto_20190603_0203'), ] operations = [ migrations.AlterField( model_name='user', name='userlastname',...
0
314
23
220d83971dc2ce007c674a09a95d458f14926a9a
1,607
py
Python
pylibs/pymode/queue.py
thekuffs/dotfiles
2567136e941c428f10ca3a8e256f487ec36f5dbd
[ "Vim" ]
1
2020-04-05T16:51:30.000Z
2020-04-05T16:51:30.000Z
pylibs/pymode/queue.py
teranex/python-mode
51d0c3f341b5d0cd68300e16cc29a97a5783ce02
[ "Vim" ]
null
null
null
pylibs/pymode/queue.py
teranex/python-mode
51d0c3f341b5d0cd68300e16cc29a97a5783ce02
[ "Vim" ]
null
null
null
import threading from .interface import show_message import time def stop_queue(): " Stop all tasks. " for thread in threading.enumerate(): if isinstance(thread, Task): thread.stop() show_message('%s stopped.' % thread.title) def add_task(target, callback=None, buffer=None, ...
26.344262
96
0.598009
import threading from .interface import show_message import time class Task(threading.Thread): def __init__(self, buffer, callback=None, title=None, *args, **kwargs): self.buffer = buffer self._stop = threading.Event() self.result = None self.callback = callback self.done ...
345
355
23
9eba67aa60edbd5993f9d92bce188d5381ea2235
418
py
Python
mem_filter.py
cpt-wigger/filters
f2fa14196cfa1c6dd242746dd96e23b5dba02af8
[ "Apache-2.0" ]
1
2019-08-19T06:39:29.000Z
2019-08-19T06:39:29.000Z
mem_filter.py
cpt-wigger/filters
f2fa14196cfa1c6dd242746dd96e23b5dba02af8
[ "Apache-2.0" ]
null
null
null
mem_filter.py
cpt-wigger/filters
f2fa14196cfa1c6dd242746dd96e23b5dba02af8
[ "Apache-2.0" ]
null
null
null
""" 基于内存进行去重,非持久 """ from base import BaseFilter
16.076923
43
0.576555
""" 基于内存进行去重,非持久 """ from base import BaseFilter class MemFilter(BaseFilter): def _get_storage(self): return set() def _save(self, hash_value): """ 利用集合进行存储 :param hash_value: :return: """ return self.storage.add(hash_value) def _is_exists(self, h...
119
239
23
a7d339c931675592c1cfee92a95a4a6fa71b7450
148
py
Python
src/syn_reports/commands/benefactor_permissions_report/__init__.py
pcstout/syn-reports
9b2692fbc38e5596e62d8a415536483f2d05ee78
[ "Apache-2.0" ]
1
2020-02-27T02:15:38.000Z
2020-02-27T02:15:38.000Z
src/syn_reports/commands/benefactor_permissions_report/__init__.py
pcstout/syn-reports
9b2692fbc38e5596e62d8a415536483f2d05ee78
[ "Apache-2.0" ]
7
2020-03-24T18:21:31.000Z
2021-06-22T14:22:11.000Z
src/syn_reports/commands/benefactor_permissions_report/__init__.py
pcstout/syn-reports
9b2692fbc38e5596e62d8a415536483f2d05ee78
[ "Apache-2.0" ]
2
2020-03-02T21:30:50.000Z
2020-03-13T22:03:43.000Z
from .cli import create, execute from .benefactor_permissions_report import BenefactorPermissionsReport from .benefactor_view import BenefactorView
37
70
0.885135
from .cli import create, execute from .benefactor_permissions_report import BenefactorPermissionsReport from .benefactor_view import BenefactorView
0
0
0
44a4559200be6a1b3bbcec88db0afa7080c254d1
1,156
py
Python
learning/state_space.py
lmzintgraf/MultiMAuS
629a64ecb1f2587283611a5cdc15802cfeaf3bf5
[ "MIT" ]
14
2017-08-16T09:57:13.000Z
2022-03-22T06:37:17.000Z
learning/state_space.py
lmzintgraf/MultiMAuS
629a64ecb1f2587283611a5cdc15802cfeaf3bf5
[ "MIT" ]
null
null
null
learning/state_space.py
lmzintgraf/MultiMAuS
629a64ecb1f2587283611a5cdc15802cfeaf3bf5
[ "MIT" ]
8
2017-11-21T13:26:06.000Z
2022-03-24T23:54:35.000Z
""" In here we create a discrete state space representation which can be used in learning algorithms such as Q-Learning. The state space is intended to represent a single transaction sufficiently, meaning it should include all relevant information that an agent could use when making a decision; and it should not includ...
27.52381
78
0.716263
""" In here we create a discrete state space representation which can be used in learning algorithms such as Q-Learning. The state space is intended to represent a single transaction sufficiently, meaning it should include all relevant information that an agent could use when making a decision; and it should not includ...
326
0
23
082bb2c59a5d07b11cfe6d2cc8bc8bc628e31123
2,608
py
Python
forms/edit_purchase_form.py
chucktilbury/Accounting
15c467dac4405e872f3820e3ff35a53240335631
[ "MIT" ]
null
null
null
forms/edit_purchase_form.py
chucktilbury/Accounting
15c467dac4405e872f3820e3ff35a53240335631
[ "MIT" ]
null
null
null
forms/edit_purchase_form.py
chucktilbury/Accounting
15c467dac4405e872f3820e3ff35a53240335631
[ "MIT" ]
null
null
null
from system.forms import Forms from system.logger import * from dialogs.select_dialog import * @class_wrapper @class_wrapper class NewPurchaseForm(_edit_purch_form): ''' ''' @class_wrapper class EditPurchaseForm(_edit_purch_form): ''' '''
31.047619
111
0.628451
from system.forms import Forms from system.logger import * from dialogs.select_dialog import * @class_wrapper class _edit_purch_form(Forms): def __init__(self, owner, row_index): self.logger.set_level(Logger.DEBUG) super().__init__(owner, 'PurchaseRecord') self.row_index = row_index ...
2,158
9
182
ff321447747a09e8db814bfba8288e7e71bd279a
960
py
Python
main.py
p1rkr41n/-S-Pomodoro
e4fce57423f44b9357d6e596122943ada6875703
[ "MIT" ]
null
null
null
main.py
p1rkr41n/-S-Pomodoro
e4fce57423f44b9357d6e596122943ada6875703
[ "MIT" ]
null
null
null
main.py
p1rkr41n/-S-Pomodoro
e4fce57423f44b9357d6e596122943ada6875703
[ "MIT" ]
null
null
null
from time import process_time, sleep from PyQt5.QtCore import pyqtRemoveInputHook from exec import pomodoro as pomodoro import gui3 import gui31 from threading import Thread import os import psutil import sys if __name__ == "__main__": #print("buscu") worker1() #worker2() t2 =Thread(target ...
25.945946
74
0.596875
from time import process_time, sleep from PyQt5.QtCore import pyqtRemoveInputHook from exec import pomodoro as pomodoro import gui3 import gui31 from threading import Thread import os import psutil import sys def worker1(): gui3.run() #sys.exit(gui3) def worker2(): #pomodoro(25,5,25,4) g...
332
0
70
00863625acddcae295185e43b0b58664b41f72fc
506
py
Python
apps/demo/hello_world.py
HaydenTWilson/Dash_applications
9f464ea374a043bf4ea9a9d37d431ca52ae1cde7
[ "MIT" ]
null
null
null
apps/demo/hello_world.py
HaydenTWilson/Dash_applications
9f464ea374a043bf4ea9a9d37d431ca52ae1cde7
[ "MIT" ]
1
2021-09-13T10:01:42.000Z
2021-09-13T10:01:42.000Z
apps/demo/hello_world.py
HaydenTWilson/Dash_applications
9f464ea374a043bf4ea9a9d37d431ca52ae1cde7
[ "MIT" ]
6
2021-09-01T12:24:51.000Z
2021-09-13T12:12:36.000Z
import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input, Output from app import app data = { 1: 'One', 2: 'Two', 3: 'Three', 4: 'Four' } layout = html.Div([ html.H1('Hello World!'), dcc.Slider(id='demo-slider', min=1, max=4, value=1), htm...
18.740741
56
0.646245
import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input, Output from app import app data = { 1: 'One', 2: 'Two', 3: 'Three', 4: 'Four' } layout = html.Div([ html.H1('Hello World!'), dcc.Slider(id='demo-slider', min=1, max=4, value=1), htm...
41
0
22
ae8eb3804ebce0c09ee13274e2d2162ecb460713
1,173
py
Python
pi_test.py
mslinn/ibm-personality-insights-fun
7b1470f04cb199dc0bbddd1f76c13e4c3b7c32f9
[ "Apache-2.0" ]
2
2019-12-16T13:34:50.000Z
2020-05-30T16:36:40.000Z
pi_test.py
mslinn/ibm-personality-insights-fun
7b1470f04cb199dc0bbddd1f76c13e4c3b7c32f9
[ "Apache-2.0" ]
null
null
null
pi_test.py
mslinn/ibm-personality-insights-fun
7b1470f04cb199dc0bbddd1f76c13e4c3b7c32f9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import json import os from watson_developer_cloud import PersonalityInsightsV3 def insights(user_text): """ Analyze text using IBM Personality Insights. ``pip install --upgrade watson-developer-cloud`` This code is based on the `IBM Watson Python SDK`_ docs. Environment variables mus...
27.928571
114
0.724638
#!/usr/bin/env python import json import os from watson_developer_cloud import PersonalityInsightsV3 def insights(user_text): """ Analyze text using IBM Personality Insights. ``pip install --upgrade watson-developer-cloud`` This code is based on the `IBM Watson Python SDK`_ docs. Environment variables mus...
0
0
0
c9db9cc2ab6177edaf7061083941fa7e3c1bc227
79
py
Python
micropython/010_press.py
mirontoli/tolle-rasp
020638e86c167aedd7b556d8515a3adef70724af
[ "MIT" ]
2
2021-06-29T17:18:09.000Z
2022-01-25T08:29:59.000Z
micropython/010_press.py
mirontoli/tolle-rasp
020638e86c167aedd7b556d8515a3adef70724af
[ "MIT" ]
null
null
null
micropython/010_press.py
mirontoli/tolle-rasp
020638e86c167aedd7b556d8515a3adef70724af
[ "MIT" ]
null
null
null
from microbit import * sleep(10000) display.scroll(str(button_a.get_presses()))
26.333333
43
0.797468
from microbit import * sleep(10000) display.scroll(str(button_a.get_presses()))
0
0
0
ad0ced3dfb10c1fb26045807f0f33765478ec140
28
py
Python
pyscriptdeck/_version.py
uicodefr/pyscriptdeck
d145bc9a644c908a66dfbe28f306500b5f6b93b2
[ "MIT" ]
null
null
null
pyscriptdeck/_version.py
uicodefr/pyscriptdeck
d145bc9a644c908a66dfbe28f306500b5f6b93b2
[ "MIT" ]
null
null
null
pyscriptdeck/_version.py
uicodefr/pyscriptdeck
d145bc9a644c908a66dfbe28f306500b5f6b93b2
[ "MIT" ]
null
null
null
VERSION = "0.2.2-SNAPSHOT"
9.333333
26
0.642857
VERSION = "0.2.2-SNAPSHOT"
0
0
0
18a38b7690d154ce3b685ff2f52ecda1c10a1e13
1,551
py
Python
astrofunc/LensingProfiles/spemd.py
LBJ-Wade/astrofunc_lensing_profile
d2223705bc44d07575a5e93291375ab8e69ebfa8
[ "MIT" ]
null
null
null
astrofunc/LensingProfiles/spemd.py
LBJ-Wade/astrofunc_lensing_profile
d2223705bc44d07575a5e93291375ab8e69ebfa8
[ "MIT" ]
null
null
null
astrofunc/LensingProfiles/spemd.py
LBJ-Wade/astrofunc_lensing_profile
d2223705bc44d07575a5e93291375ab8e69ebfa8
[ "MIT" ]
null
null
null
__author__ = 'sibirrer' from astrofunc.LensingProfiles.spp import SPP from astrofunc.LensingProfiles.spemd_smooth import SPEMD_SMOOTH class SPEMD(object): """ class for smooth power law ellipse mass density profile """ def mass_3d_lens(self, r, theta_E, gamma, q, phi_G): """ computes...
34.466667
105
0.640232
__author__ = 'sibirrer' from astrofunc.LensingProfiles.spp import SPP from astrofunc.LensingProfiles.spemd_smooth import SPEMD_SMOOTH class SPEMD(object): """ class for smooth power law ellipse mass density profile """ def __init__(self): self.s2 = 0.00000001 self.spp = SPP() ...
570
0
107
7478c823ce1ee11f4fcd7bb45981dbe3bcd08105
3,149
py
Python
plugins/polio/preparedness/spread_cache.py
BLSQ/iaso-copy
85fb17f408c15e8c2d730416d1312f58f8db39b7
[ "MIT" ]
null
null
null
plugins/polio/preparedness/spread_cache.py
BLSQ/iaso-copy
85fb17f408c15e8c2d730416d1312f58f8db39b7
[ "MIT" ]
null
null
null
plugins/polio/preparedness/spread_cache.py
BLSQ/iaso-copy
85fb17f408c15e8c2d730416d1312f58f8db39b7
[ "MIT" ]
1
2022-03-23T16:44:12.000Z
2022-03-23T16:44:12.000Z
import gspread import gspread.utils
31.49
99
0.576691
import gspread import gspread.utils class CachedSpread: def __init__(self, cache_dict): self.c = cache_dict @staticmethod def from_spread(spread: gspread.Spreadsheet): dict_spread = {} dict_spread["title"] = spread.title dict_spread["id"] = spread.id dict_spread["p...
1,851
1,214
46
03537bdfd96d3eee95ed97f589ab5ede4eb48dd1
2,632
py
Python
markov.py
fgdorais/MarkovModel
2d2c8df5dfdd0d5d1d13ad66e35b7a5cbaea3f77
[ "MIT" ]
null
null
null
markov.py
fgdorais/MarkovModel
2d2c8df5dfdd0d5d1d13ad66e35b7a5cbaea3f77
[ "MIT" ]
null
null
null
markov.py
fgdorais/MarkovModel
2d2c8df5dfdd0d5d1d13ad66e35b7a5cbaea3f77
[ "MIT" ]
null
null
null
from __future__ import unicode_literals # Python 2/3 compatibility # from __future__ import print_function # Python 2/3 compatibility # import sys import argparse import modelio from parser import TokenParser from trainer import MarkovTrainer from generator import MarkovGenerator parser = argparse.ArgumentParser(d...
38.144928
114
0.700608
from __future__ import unicode_literals # Python 2/3 compatibility # from __future__ import print_function # Python 2/3 compatibility # import sys import argparse import modelio from parser import TokenParser from trainer import MarkovTrainer from generator import MarkovGenerator parser = argparse.ArgumentParser(d...
0
0
0
d3131f985d21cdc2819702064c09b0e083f44196
623
py
Python
run.py
ACK-J/Quantum-Key-Distribution-BB84
2899de51aed62b7355e92b6b70efb921abffdd6b
[ "MIT" ]
1
2021-07-10T10:51:26.000Z
2021-07-10T10:51:26.000Z
run.py
ACK-J/Quantum-Key-Distribution-BB84
2899de51aed62b7355e92b6b70efb921abffdd6b
[ "MIT" ]
null
null
null
run.py
ACK-J/Quantum-Key-Distribution-BB84
2899de51aed62b7355e92b6b70efb921abffdd6b
[ "MIT" ]
null
null
null
import qsharp from BB84 import Start import onetimepad success, aliceKey, BobKey = Start.simulate() binaryKeyAlice = "" binaryKeyBob = "" for each in aliceKey: if each is True: binaryKeyAlice = binaryKeyAlice + "1" else: binaryKeyAlice = binaryKeyAlice + "0" for each in BobKey: if each is...
22.25
52
0.699839
import qsharp from BB84 import Start import onetimepad success, aliceKey, BobKey = Start.simulate() binaryKeyAlice = "" binaryKeyBob = "" for each in aliceKey: if each is True: binaryKeyAlice = binaryKeyAlice + "1" else: binaryKeyAlice = binaryKeyAlice + "0" for each in BobKey: if each is...
0
0
0
fb4c9b7825915a8be20c6ad60069ea6a843b636f
1,022
py
Python
libya_site/tests/factories.py
SmartElect/SmartElect
d6d35f2fa8f60e756ad5247f8f0a5f05830e92f8
[ "Apache-2.0" ]
23
2015-10-28T14:08:23.000Z
2021-09-11T21:38:41.000Z
libya_site/tests/factories.py
SmartElect/SmartElect
d6d35f2fa8f60e756ad5247f8f0a5f05830e92f8
[ "Apache-2.0" ]
4
2019-12-05T20:36:10.000Z
2020-06-05T18:41:54.000Z
libya_site/tests/factories.py
SmartElect/SmartElect
d6d35f2fa8f60e756ad5247f8f0a5f05830e92f8
[ "Apache-2.0" ]
11
2015-10-28T15:49:56.000Z
2021-09-14T14:18:36.000Z
from django.contrib.auth import get_user_model import factory DEFAULT_USER_PASSWORD = 'password'
35.241379
87
0.683953
from django.contrib.auth import get_user_model import factory DEFAULT_USER_PASSWORD = 'password' class UserFactory(factory.DjangoModelFactory): class Meta: model = get_user_model() username = factory.Sequence(lambda n: 'user%s' % n) password = DEFAULT_USER_PASSWORD email = factory.LazyAttr...
0
898
23
ca6c21dff9b289603037d0123cbf0069676e49c7
369
py
Python
popnet/exceptions.py
vincentpainchaud/PopNet
a95a66fa933dea0dc29a2744c4fd1f44622bbe36
[ "MIT" ]
null
null
null
popnet/exceptions.py
vincentpainchaud/PopNet
a95a66fa933dea0dc29a2744c4fd1f44622bbe36
[ "MIT" ]
null
null
null
popnet/exceptions.py
vincentpainchaud/PopNet
a95a66fa933dea0dc29a2744c4fd1f44622bbe36
[ "MIT" ]
null
null
null
"""Exceptions related to PopNet. """ class PopNetError(Exception): """Generic class for exceptions related to PopNet.""" pass class FormatError(PopNetError): """Exceptions related to formatting errors in files handled by PopNet.""" pass class PopNetWarning(Warning): """Generic c...
21.705882
78
0.674797
"""Exceptions related to PopNet. """ class PopNetError(Exception): """Generic class for exceptions related to PopNet.""" pass class FormatError(PopNetError): """Exceptions related to formatting errors in files handled by PopNet.""" pass class PopNetWarning(Warning): """Generic c...
0
0
0
bb5cdc48ea74ef5667a7333484b610440ee9f96f
758
py
Python
melodic/migrations/0004_auto_20211115_1712.py
V3rita2/capstone
77d1abb2239b5a3aa1d7bd64d6ed891526c7d8a1
[ "MIT" ]
null
null
null
melodic/migrations/0004_auto_20211115_1712.py
V3rita2/capstone
77d1abb2239b5a3aa1d7bd64d6ed891526c7d8a1
[ "MIT" ]
null
null
null
melodic/migrations/0004_auto_20211115_1712.py
V3rita2/capstone
77d1abb2239b5a3aa1d7bd64d6ed891526c7d8a1
[ "MIT" ]
null
null
null
# Generated by Django 3.2.7 on 2021-11-15 17:12 from django.db import migrations, models import django.db.models.deletion
28.074074
140
0.622691
# Generated by Django 3.2.7 on 2021-11-15 17:12 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('melodic', '0003_remove_track_author'), ] operations = [ migrations.AddField( model_name='commen...
0
611
23
27728b8c8bf1ba2618f3442fd0ac58795ff703be
5,060
py
Python
enhanced-binary-randomization/test-disp.py
pwwl/enhanced-binary-diversification
deac4bfebc336845347cd1a9fd428df1f12b0c79
[ "MIT" ]
11
2021-05-28T11:52:06.000Z
2022-03-28T11:30:48.000Z
enhanced-binary-randomization/test-disp.py
pwwl/enhanced-binary-diversification
deac4bfebc336845347cd1a9fd428df1f12b0c79
[ "MIT" ]
2
2021-05-22T05:26:40.000Z
2021-07-14T22:41:07.000Z
enhanced-binary-randomization/test-disp.py
pwwl/enhanced-binary-diversification
deac4bfebc336845347cd1a9fd428df1f12b0c79
[ "MIT" ]
1
2022-03-01T16:56:06.000Z
2022-03-01T16:56:06.000Z
# Copyright (c) 2021, Mahmood Sharif, Keane Lucas, Michael K. Reiter, Lujo Bauer, and Saurabh Shintre # This file is code used in Malware Makeover """ Code to develop/test code-displacement transformations. """ import random import time random.seed(time.time()) import sys sys.path.append('orp') import peLib import ...
29.248555
101
0.634783
# Copyright (c) 2021, Mahmood Sharif, Keane Lucas, Michael K. Reiter, Lujo Bauer, and Saurabh Shintre # This file is code used in Malware Makeover """ Code to develop/test code-displacement transformations. """ import random import time random.seed(time.time()) import sys sys.path.append('orp') import peLib import ...
3,844
0
46
ca1ca984df5581e18f5d529694c0f639bbc97437
4,692
py
Python
scripts/owner/suggest_owners.py
allansrc/fuchsia
a2c235b33fc4305044d496354a08775f30cdcf37
[ "BSD-2-Clause" ]
210
2019-02-05T12:45:09.000Z
2022-03-28T07:59:06.000Z
scripts/owner/suggest_owners.py
PlugFox/fuchsia
39afe5230d41628b3c736a6e384393df954968c8
[ "BSD-2-Clause" ]
56
2021-06-03T03:16:25.000Z
2022-03-20T01:07:44.000Z
scripts/owner/suggest_owners.py
PlugFox/fuchsia
39afe5230d41628b3c736a6e384393df954968c8
[ "BSD-2-Clause" ]
73
2019-03-06T18:55:23.000Z
2022-03-26T12:04:51.000Z
#!/usr/bin/env python3.8 # Copyright 2021 The Fuchsia Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Suggests OWNERS for projects in a jiri manifest without owners. For each project in a given jiri manifest file, do the following:...
34
80
0.62127
#!/usr/bin/env python3.8 # Copyright 2021 The Fuchsia Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Suggests OWNERS for projects in a jiri manifest without owners. For each project in a given jiri manifest file, do the following:...
3,610
0
115
fbbcff01309dc538dce335623a46e29f85f0ca13
731
py
Python
Tokenization/Tokenizer and pad_sequences sarcasm.py
reddyprasade/Natural-Language-Processing
d02ef63832f595635645ea3468bf5dc8cafc0e76
[ "Apache-2.0" ]
null
null
null
Tokenization/Tokenizer and pad_sequences sarcasm.py
reddyprasade/Natural-Language-Processing
d02ef63832f595635645ea3468bf5dc8cafc0e76
[ "Apache-2.0" ]
null
null
null
Tokenization/Tokenizer and pad_sequences sarcasm.py
reddyprasade/Natural-Language-Processing
d02ef63832f595635645ea3468bf5dc8cafc0e76
[ "Apache-2.0" ]
null
null
null
import json with open("Data/sarcasm.json", 'r') as f: datastore = json.load(f) sentences = [] labels = [] urls = [] for item in datastore: sentences.append(item['headline']) labels.append(item['is_sarcastic']) urls.append(item['article_link']) from tensorflow.keras.preprocessing.text im...
23.580645
66
0.729138
import json with open("Data/sarcasm.json", 'r') as f: datastore = json.load(f) sentences = [] labels = [] urls = [] for item in datastore: sentences.append(item['headline']) labels.append(item['is_sarcastic']) urls.append(item['article_link']) from tensorflow.keras.preprocessing.text im...
0
0
0
12b9bd7c12372343af689d54b3257cbece097433
1,146
py
Python
code/models/decoder/Deeplabv3p_Decoder.py
xueruoyao/FCN-pytorch
a5019da3943f47fa4f7baed3640cdbfeae2d677e
[ "MIT" ]
1
2021-11-16T12:24:43.000Z
2021-11-16T12:24:43.000Z
code/models/decoder/Deeplabv3p_Decoder.py
xueruoyao/FCN-pytorch
a5019da3943f47fa4f7baed3640cdbfeae2d677e
[ "MIT" ]
null
null
null
code/models/decoder/Deeplabv3p_Decoder.py
xueruoyao/FCN-pytorch
a5019da3943f47fa4f7baed3640cdbfeae2d677e
[ "MIT" ]
null
null
null
from __future__ import absolute_import, print_function import torch import torch.nn as nn import torch.nn.functional as F from code.models.backbone.ResNet_Dilated import _ConvBnReLU from collections import OrderedDict
33.705882
95
0.602094
from __future__ import absolute_import, print_function import torch import torch.nn as nn import torch.nn.functional as F from code.models.backbone.ResNet_Dilated import _ConvBnReLU from collections import OrderedDict class DeepLabv3p_decoder(nn.Module): def __init__(self, mid_ch, reduce_ch, n_classes): ...
831
15
81
9516e2614644f8a4e1d53349de322d9b69fc8177
3,529
py
Python
3rdparty/pytorch/tools/setup_helpers/cudnn.py
WoodoLee/TorchCraft
999f68aab9e7d50ed3ae138297226dc95fefc458
[ "MIT" ]
1
2019-07-23T11:20:58.000Z
2019-07-23T11:20:58.000Z
3rdparty/pytorch/tools/setup_helpers/cudnn.py
WoodoLee/TorchCraft
999f68aab9e7d50ed3ae138297226dc95fefc458
[ "MIT" ]
1
2019-07-22T09:48:46.000Z
2019-07-22T09:48:46.000Z
pytorch/tools/setup_helpers/cudnn.py
raghavnauhria/whatmt
c20483a437c82936cb0fb8080925e37b9c4bba87
[ "MIT" ]
null
null
null
import os import glob from .env import IS_WINDOWS, IS_CONDA, CONDA_DIR, check_negative_env_flag, gather_paths, lib_paths_from_base from .cuda import USE_CUDA, CUDA_HOME USE_CUDNN = False CUDNN_LIB_DIR = None CUDNN_INCLUDE_DIR = None CUDNN_LIBRARY = None WITH_STATIC_CUDNN = os.getenv("USE_STATIC_CUDNN") if USE_CUDA ...
36.381443
108
0.622273
import os import glob from .env import IS_WINDOWS, IS_CONDA, CONDA_DIR, check_negative_env_flag, gather_paths, lib_paths_from_base from .cuda import USE_CUDA, CUDA_HOME USE_CUDNN = False CUDNN_LIB_DIR = None CUDNN_INCLUDE_DIR = None CUDNN_LIBRARY = None WITH_STATIC_CUDNN = os.getenv("USE_STATIC_CUDNN") if USE_CUDA ...
0
0
0
552536ee85002d05a625aa6d866ca130ffde03a2
670
py
Python
onepercentclub/settings/testing.py
jfterpstra/onepercentclub-site
43e8e01ac4d3d1ffdd5959ebd048ce95bb2dba0e
[ "BSD-3-Clause" ]
7
2015-01-02T19:31:14.000Z
2021-03-22T17:30:23.000Z
onepercentclub/settings/testing.py
jfterpstra/onepercentclub-site
43e8e01ac4d3d1ffdd5959ebd048ce95bb2dba0e
[ "BSD-3-Clause" ]
1
2015-03-06T08:34:59.000Z
2015-03-06T08:34:59.000Z
onepercentclub/settings/testing.py
jfterpstra/onepercentclub-site
43e8e01ac4d3d1ffdd5959ebd048ce95bb2dba0e
[ "BSD-3-Clause" ]
null
null
null
# # NOTE: This is the settings file for the server at https://testing.onepercentclub.com # This is not for running tests! # try: from .secrets import * except ImportError: import sys sys.exit('secrets.py settings file not found. Please run `prepare.sh` to create one.') from .server import * # # Put...
21.612903
90
0.741791
# # NOTE: This is the settings file for the server at https://testing.onepercentclub.com # This is not for running tests! # try: from .secrets import * except ImportError: import sys sys.exit('secrets.py settings file not found. Please run `prepare.sh` to create one.') from .server import * # # Put...
0
0
0
96817cf8004d09915827d7463be294ae74597983
15,699
py
Python
tests/test_configs_command.py
systemcraftsman/strimzi-kafka-cli
f4ed19b849fdd9b59274eab96fc29fab3aa38e0f
[ "Apache-2.0" ]
51
2020-06-14T12:51:06.000Z
2022-03-29T18:16:48.000Z
tests/test_configs_command.py
systemcraftsman/strimzi-kafka-cli
f4ed19b849fdd9b59274eab96fc29fab3aa38e0f
[ "Apache-2.0" ]
90
2020-06-09T23:35:55.000Z
2022-03-26T20:50:08.000Z
tests/test_configs_command.py
systemcraftsman/strimzi-kafka-cli
f4ed19b849fdd9b59274eab96fc29fab3aa38e0f
[ "Apache-2.0" ]
9
2020-08-25T13:24:56.000Z
2022-03-23T11:42:53.000Z
from unittest import TestCase, mock from click.testing import CliRunner from kfk.commands.configs import kfk from kfk.kubectl_command_builder import Kubectl from kfk.constants import * from kfk.messages import *
56.471223
120
0.594879
from unittest import TestCase, mock from click.testing import CliRunner from kfk.commands.configs import kfk from kfk.kubectl_command_builder import Kubectl from kfk.constants import * from kfk.messages import * class TestKfkConfigs(TestCase): def setUp(self): self.runner = CliRunner() self.clust...
13,392
2,071
23
1392dbe8d51ffbca470715d64eabacb4e01d9797
8,480
py
Python
tests/conftest.py
hendrikdutoit/SQLAlchemyExample
6078219101daf1917eced84d45b5fbb91cbed9e4
[ "MIT" ]
null
null
null
tests/conftest.py
hendrikdutoit/SQLAlchemyExample
6078219101daf1917eced84d45b5fbb91cbed9e4
[ "MIT" ]
2
2022-01-12T15:24:53.000Z
2022-01-13T08:18:41.000Z
tests/conftest.py
hendrikdutoit/SQLAlchemyExample
6078219101daf1917eced84d45b5fbb91cbed9e4
[ "MIT" ]
null
null
null
'''Create a conftest.py Define the fixture functions in this file to make them accessible across multiple test files. ''' from pathlib import Path import pytest from tempfile import mkdtemp from beetools import rm_tree # from github import Github, GithubException as gh_exc _DESC = __doc__.split('\n')[0] ...
29.444444
105
0.630425
'''Create a conftest.py Define the fixture functions in this file to make them accessible across multiple test files. ''' from pathlib import Path import pytest from tempfile import mkdtemp from beetools import rm_tree # from github import Github, GithubException as gh_exc _DESC = __doc__.split('\n')[0] ...
265
-10
104
0595bdc640ee445111d792645c90f5da8fe1e319
690
py
Python
src/pipelining/pipes/pipe_create_index_TEST.py
acdh-oeaw/mara_nlp_suite
223850ffde46bb9fedce9981d1f7a94f865a6a5a
[ "MIT" ]
null
null
null
src/pipelining/pipes/pipe_create_index_TEST.py
acdh-oeaw/mara_nlp_suite
223850ffde46bb9fedce9981d1f7a94f865a6a5a
[ "MIT" ]
null
null
null
src/pipelining/pipes/pipe_create_index_TEST.py
acdh-oeaw/mara_nlp_suite
223850ffde46bb9fedce9981d1f7a94f865a6a5a
[ "MIT" ]
null
null
null
from pipelining.pipe_root import ConfigRoot from etl import maxqdata_manager, gold_data_transform_rules from pipelining import data_flow_registry from IPython import embed import main
25.555556
86
0.791304
from pipelining.pipe_root import ConfigRoot from etl import maxqdata_manager, gold_data_transform_rules from pipelining import data_flow_registry from IPython import embed import main class ConfigIndex(ConfigRoot): model_path = data_flow_registry.models["mo9"]["path"] index_table_name = "i_TEST" indexin...
269
188
46
e068be4ae383b596c8ddfa770f53dcd6c9e99336
900
py
Python
working_directory/utils/string_handling.py
projectscara2014/scara
bd1b8f11e40cbc351cd72f78e706e56ae11e34fe
[ "MIT" ]
2
2020-05-11T12:58:28.000Z
2021-06-29T09:11:37.000Z
working_directory/utils/string_handling.py
projectscara2014/scara
bd1b8f11e40cbc351cd72f78e706e56ae11e34fe
[ "MIT" ]
null
null
null
working_directory/utils/string_handling.py
projectscara2014/scara
bd1b8f11e40cbc351cd72f78e706e56ae11e34fe
[ "MIT" ]
4
2015-12-19T12:57:55.000Z
2017-07-29T08:38:01.000Z
useless_array = [' ','\n','\t','%']
21.428571
65
0.601111
def char_to_int(c) : for i in range(256) : if(chr(i) == c) : return i def skip_character(string,character,i) : j = i while((string[j] == character)and(i<len(string))) : j += 1 return j-i def skip_until_character(string,character,i) : j = i while((string[j] != character)and(i<len(string))) : j +...
728
0
136
82ae77e0d236637aa7a6a5861bec99da11270cc7
1,772
py
Python
gram/models.py
karushi/Instagram
40ae3c55d37fd2be5555a14413440ca1dc22e703
[ "MIT" ]
null
null
null
gram/models.py
karushi/Instagram
40ae3c55d37fd2be5555a14413440ca1dc22e703
[ "MIT" ]
null
null
null
gram/models.py
karushi/Instagram
40ae3c55d37fd2be5555a14413440ca1dc22e703
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User # Create your models here.
26.848485
100
0.701467
from django.db import models from django.contrib.auth.models import User # Create your models here. class Profile(models.Model): bio = models.TextField(max_length=150) photo = models.ImageField(upload_to='pics/',null=True, blank=True) user = models.ForeignKey(User) @classmethod def search_by_use...
418
1,182
69
cd4c259ac5a47102f2836f425a837c32f261fda7
3,818
py
Python
src/Luna.Packages/luna-publish-utils/luna/dataset/luna_file_dataset.py
isabella232/projectluna
36692c018cbb658947380db45d844a5fffccefee
[ "MIT" ]
17
2020-10-01T16:17:24.000Z
2022-03-27T12:28:54.000Z
src/Luna.Packages/luna-publish-utils/luna/dataset/luna_file_dataset.py
bmurphy-affirma/projectluna
d5a2fa927403371c00f9ca85f654550b0f342891
[ "MIT" ]
2
2021-01-04T13:49:10.000Z
2021-07-01T02:13:39.000Z
src/Luna.Packages/luna-publish-utils/luna/dataset/luna_file_dataset.py
isabella232/projectluna
36692c018cbb658947380db45d844a5fffccefee
[ "MIT" ]
8
2020-07-20T22:18:58.000Z
2021-11-26T09:12:55.000Z
from luna.dataset.luna_dataset import LunaDataset from luna.dataset.exceptions import LunaDatasetNotSupportedException, LunaInvalidConfigException class LunaAzureMLFileDataset(LunaFileDataset): """ Download file(s) from Azure ML file dataset. Only supported when running in an Azure ML workspace. """ ...
35.351852
190
0.667365
from luna.dataset.luna_dataset import LunaDataset from luna.dataset.exceptions import LunaDatasetNotSupportedException, LunaInvalidConfigException class LunaFileDataset(LunaDataset): def to_pandas_dataframe(self): """ to_pandas_dataframe function is not supported in LunaFileDataset. Use LunaTabula...
419
2,603
96
dcc8212c479d35716d6171cc58afb361e94c045d
1,670
py
Python
tests/acceptance/commercial/test_delta_update_module.py
bdx-iot/meta-mender
d6a24868fca3e4d9839e71fb65a02de95e28df64
[ "Apache-2.0" ]
null
null
null
tests/acceptance/commercial/test_delta_update_module.py
bdx-iot/meta-mender
d6a24868fca3e4d9839e71fb65a02de95e28df64
[ "Apache-2.0" ]
null
null
null
tests/acceptance/commercial/test_delta_update_module.py
bdx-iot/meta-mender
d6a24868fca3e4d9839e71fb65a02de95e28df64
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright 2019 Northern.tech AS # # 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 ap...
41.75
115
0.70479
#!/usr/bin/python # Copyright 2019 Northern.tech AS # # 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 ap...
827
75
22
7e0c40bb30d0f5912cc06ea629bffa5efe44c86d
2,355
py
Python
tests/test_cascade.py
bio2bel/ComPath
26c43da61a0329f56013d3e3b39d83cf0a127134
[ "MIT" ]
8
2019-02-01T03:21:09.000Z
2022-01-12T04:01:42.000Z
tests/test_cascade.py
ComPath/ComPath
26c43da61a0329f56013d3e3b39d83cf0a127134
[ "MIT" ]
78
2018-02-28T14:34:10.000Z
2020-11-18T19:05:00.000Z
tests/test_cascade.py
bio2bel/ComPath
26c43da61a0329f56013d3e3b39d83cf0a127134
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Test cascade.""" from compath.constants import EQUIVALENT_TO from compath.models import User from tests.constants import DatabaseMixin, KEGG, REACTOME class TestCascades(DatabaseMixin): """Test that votes are cascaded properly.""" def setUp(self): """Create fakes emails....
30.584416
71
0.615711
# -*- coding: utf-8 -*- """Test cascade.""" from compath.constants import EQUIVALENT_TO from compath.models import User from tests.constants import DatabaseMixin, KEGG, REACTOME class TestCascades(DatabaseMixin): """Test that votes are cascaded properly.""" def setUp(self): """Create fakes emails....
0
0
0
286b65b8a6ceac8d3ec38e6c514b36d04d7a09c1
21,168
py
Python
bud.py
Sichengthebest/Pokegod
b5e5aa82e674a495e1096ead98b9a8702f0c19de
[ "BSD-2-Clause" ]
1
2021-07-19T16:14:18.000Z
2021-07-19T16:14:18.000Z
bud.py
Sichengthebest/Pokegod
b5e5aa82e674a495e1096ead98b9a8702f0c19de
[ "BSD-2-Clause" ]
null
null
null
bud.py
Sichengthebest/Pokegod
b5e5aa82e674a495e1096ead98b9a8702f0c19de
[ "BSD-2-Clause" ]
null
null
null
import random import pokeconfig import pokemon_new import pokelist import pokeutils import pokemoves import movelist from telegram.ext import CommandHandler, CallbackQueryHandler from telegram import InputMediaPhoto from datetime import datetime typeTrans = { 'Grass': '🌱', 'Fire': '🔥', 'Water': '💧', ...
48.774194
383
0.596136
import random import pokeconfig import pokemon_new import pokelist import pokeutils import pokemoves import movelist from telegram.ext import CommandHandler, CallbackQueryHandler from telegram import InputMediaPhoto from datetime import datetime typeTrans = { 'Grass': '🌱', 'Fire': '🔥', 'Water': '💧', ...
20,199
0
441
11b0e17e7a3bc9ecf25b4afc8c30a58db3df1baa
221
py
Python
fabric_bolt/core/settings/example_channels.py
jooni22/fabric-bolt
129d83036f84018b62624794d2cbf9cca80ab210
[ "MIT" ]
219
2015-08-16T15:36:50.000Z
2021-11-15T09:38:54.000Z
fabric_bolt/core/settings/example_channels.py
jooni22/fabric-bolt
129d83036f84018b62624794d2cbf9cca80ab210
[ "MIT" ]
76
2015-08-12T14:49:09.000Z
2022-03-11T23:20:33.000Z
fabric_bolt/core/settings/example_channels.py
jooni22/fabric-bolt
129d83036f84018b62624794d2cbf9cca80ab210
[ "MIT" ]
67
2015-08-18T11:04:41.000Z
2021-01-10T13:46:42.000Z
""" This settings file is an example of what you need to do to use the channels backend. """ from .base import * INSTALLED_APPS += ['channels'] TASK_RUNNER_BACKEND = 'fabric_bolt.task_runners.channels.ChannelsBackend'
22.1
84
0.760181
""" This settings file is an example of what you need to do to use the channels backend. """ from .base import * INSTALLED_APPS += ['channels'] TASK_RUNNER_BACKEND = 'fabric_bolt.task_runners.channels.ChannelsBackend'
0
0
0
88278f1544e0a3040ab43864dea4d73d9ec6b33d
498
py
Python
aoc/day01.py
martinhenstridge/adventofcode2021
f9fa76fd91f13abab9307794e30461033a470eca
[ "MIT" ]
null
null
null
aoc/day01.py
martinhenstridge/adventofcode2021
f9fa76fd91f13abab9307794e30461033a470eca
[ "MIT" ]
null
null
null
aoc/day01.py
martinhenstridge/adventofcode2021
f9fa76fd91f13abab9307794e30461033a470eca
[ "MIT" ]
null
null
null
from . import util
20.75
48
0.658635
from . import util def get_depths(lines): return [int(line) for line in lines if line] def count_increases(depths, window): count = 0 for idx in range(len(depths) - window): if depths[idx + window] > depths[idx]: count += 1 return count def run(): inputlines = util.get_inpu...
407
0
69
32c85ca2f16fb99b3e445985b9ecfc63867e8a86
473
py
Python
tests/echoschema.py
Zapix/mtpylon
b268a4e2d1bc641cace1962ea68de73c1156e44c
[ "MIT" ]
9
2021-11-10T08:53:51.000Z
2021-12-15T12:03:44.000Z
tests/echoschema.py
Zapix/mtpylon
b268a4e2d1bc641cace1962ea68de73c1156e44c
[ "MIT" ]
123
2020-10-22T07:08:20.000Z
2021-09-29T15:26:22.000Z
tests/echoschema.py
Zapix/mtpylon
b268a4e2d1bc641cace1962ea68de73c1156e44c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import random from dataclasses import dataclass from aiohttp import web from mtpylon import Schema @dataclass schema = Schema(constructors=[Reply], functions=[echo])
16.892857
60
0.646934
# -*- coding: utf-8 -*- import random from dataclasses import dataclass from aiohttp import web from mtpylon import Schema @dataclass class Reply: rand_id: int content: str class Meta: name = 'reply' order = ('rand_id', 'content') async def echo(request: web.Request, content: str) -> ...
127
104
45
dbff888c5a055155585e62bdf918a7c442453d77
3,291
py
Python
tests/conftest.py
MrVoi/ric-plt-xapp-frame-py
9c09be1e9598d4e145faea412b047b64d38feb22
[ "Apache-2.0", "CC-BY-4.0" ]
3
2020-10-10T08:35:22.000Z
2021-12-28T21:39:01.000Z
tests/conftest.py
MrVoi/ric-plt-xapp-frame-py
9c09be1e9598d4e145faea412b047b64d38feb22
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
tests/conftest.py
MrVoi/ric-plt-xapp-frame-py
9c09be1e9598d4e145faea412b047b64d38feb22
[ "Apache-2.0", "CC-BY-4.0" ]
9
2020-11-03T04:33:47.000Z
2022-03-21T21:47:37.000Z
# ================================================================================== # Copyright (c) 2019 Nokia # Copyright (c) 2018-2019 AT&T Intellectual Property. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # ...
33.927835
147
0.614099
# ================================================================================== # Copyright (c) 2019 Nokia # Copyright (c) 2018-2019 AT&T Intellectual Property. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # ...
1,801
0
66
fefee34dcd51050a11b00a5f229c5107a5475ef0
3,089
py
Python
process_nas_results.py
young-geng/design-baselines-icml
ce4183babac304ed5f83151a602d75de6c4740c4
[ "MIT" ]
28
2020-06-30T00:40:33.000Z
2022-03-22T05:16:27.000Z
process_nas_results.py
young-geng/design-baselines-icml
ce4183babac304ed5f83151a602d75de6c4740c4
[ "MIT" ]
5
2020-09-17T07:15:52.000Z
2022-03-31T23:33:27.000Z
process_nas_results.py
young-geng/design-baselines-icml
ce4183babac304ed5f83151a602d75de6c4740c4
[ "MIT" ]
3
2020-09-17T06:55:53.000Z
2021-08-09T20:27:26.000Z
import tensorflow as tf import numpy as np import argparse import os import random import string import pickle as pkl import glob import design_bench as db from datetime import datetime if __name__ == "__main__": baseline_to_iteration = { "autofocused-cbas": 20, "cbas": 20, ...
33.945055
115
0.580447
import tensorflow as tf import numpy as np import argparse import os import random import string import pickle as pkl import glob import design_bench as db from datetime import datetime if __name__ == "__main__": baseline_to_iteration = { "autofocused-cbas": 20, "cbas": 20, ...
0
0
0
2331e2f962a5a782f51042da8d0328c972476fbd
2,285
py
Python
libhandy/list.py
jeteokeeffe/gtk-python-examples
fd0ea414d5cf91f905f7081117136379cd4768fe
[ "MIT" ]
null
null
null
libhandy/list.py
jeteokeeffe/gtk-python-examples
fd0ea414d5cf91f905f7081117136379cd4768fe
[ "MIT" ]
null
null
null
libhandy/list.py
jeteokeeffe/gtk-python-examples
fd0ea414d5cf91f905f7081117136379cd4768fe
[ "MIT" ]
null
null
null
import gi gi.require_version('Handy', '0.0') gi.require_version('Gtk', '3.0') from gi.repository import Gtk, Handy, Gio, GObject Handy.init() # Create Window window = Gtk.Window(title="LibHandy List example") window.set_border_width(10) # Create a Button # button = Gtk.Button.new_from_icon_name('batter...
25.10989
86
0.719475
import gi gi.require_version('Handy', '0.0') gi.require_version('Gtk', '3.0') from gi.repository import Gtk, Handy, Gio, GObject class Flatpak(GObject.GObject): name = GObject.Property(type=str) repo = GObject.Property(type=str) def __init__(self, name, repo): GObject.GObject.__init__(self) ...
264
113
69
03761f9ec58d486452021f425aaec846a8ecc2b7
1,052
py
Python
tests/pause_command_tests.py
rluzuriaga/TogglCLI
bb172ba5a6bcfbed6a2f969d7ae12f983394a5c7
[ "MIT" ]
null
null
null
tests/pause_command_tests.py
rluzuriaga/TogglCLI
bb172ba5a6bcfbed6a2f969d7ae12f983394a5c7
[ "MIT" ]
11
2020-04-30T02:48:33.000Z
2020-07-02T20:23:46.000Z
tests/pause_command_tests.py
rluzuriaga/TogglCLI
bb172ba5a6bcfbed6a2f969d7ae12f983394a5c7
[ "MIT" ]
null
null
null
import unittest from tgl.utils import delete_user_data from tests.utils import setup_credentials, run_command, tgl_stop if __name__ == "__main__": unittest.main()
30.941176
74
0.665399
import unittest from tgl.utils import delete_user_data from tests.utils import setup_credentials, run_command, tgl_stop class TestPauseCommand(unittest.TestCase): def setUp(self) -> None: delete_user_data() setup_credentials() return super().setUp() def tearDown(self) -> None: ...
175
683
23
79d11d6fff7919b03cc7e9cc8b4bdf39f91a0370
706
py
Python
utils/test/test_str_utils.py
Nizarazo/instl
d04e9aede292caa1174447189a423726fa3bb97f
[ "BSD-3-Clause" ]
8
2015-06-10T12:33:11.000Z
2022-02-19T03:02:56.000Z
utils/test/test_str_utils.py
Nizarazo/instl
d04e9aede292caa1174447189a423726fa3bb97f
[ "BSD-3-Clause" ]
13
2016-12-27T09:02:20.000Z
2022-02-07T08:49:24.000Z
utils/test/test_str_utils.py
Nizarazo/instl
d04e9aede292caa1174447189a423726fa3bb97f
[ "BSD-3-Clause" ]
6
2015-09-24T21:20:46.000Z
2021-06-23T12:58:31.000Z
import unittest from utils import *
39.222222
157
0.616147
import unittest from utils import * class TestStrUtils(unittest.TestCase): def setUp(self): pass def tearDown(self): pass def test_quoteme_by_type(self): to_quote_in = (True, False, 0.001, 'bazu"ka',"shuki", 123, [123, "mama"], {"artizan": "vodka", "price": 19.19} ) quoted...
550
17
103
1c9751ec266362c5569af45ece41ba64e37cf65b
702
py
Python
pytglib/api/functions/set_alarm.py
iTeam-co/pytglib
e5e75e0a85f89b77762209b32a61b0a883c0ae61
[ "MIT" ]
6
2019-10-30T08:57:27.000Z
2021-02-08T14:17:43.000Z
pytglib/api/functions/set_alarm.py
iTeam-co/python-telegram
e5e75e0a85f89b77762209b32a61b0a883c0ae61
[ "MIT" ]
1
2021-08-19T05:44:10.000Z
2021-08-19T07:14:56.000Z
pytglib/api/functions/set_alarm.py
iTeam-co/python-telegram
e5e75e0a85f89b77762209b32a61b0a883c0ae61
[ "MIT" ]
5
2019-12-04T05:30:39.000Z
2021-05-21T18:23:32.000Z
from ..utils import Object class SetAlarm(Object): """ Succeeds after a specified amount of time has passed. Can be called before authorization. Can be called before initialization Attributes: ID (:obj:`str`): ``SetAlarm`` Args: seconds (:obj:`float`): Number of second...
21.272727
130
0.599715
from ..utils import Object class SetAlarm(Object): """ Succeeds after a specified amount of time has passed. Can be called before authorization. Can be called before initialization Attributes: ID (:obj:`str`): ``SetAlarm`` Args: seconds (:obj:`float`): Number of second...
182
0
53
95a00a7427ef9c56fecc12bd59285407fc5e4ff2
6,507
py
Python
main.py
yashwardhan-gautam/AlgoTrading
fee9c1caf019f7e328da63843f8d82b799751047
[ "MIT" ]
1
2021-07-24T06:15:09.000Z
2021-07-24T06:15:09.000Z
main.py
yashwardhan-gautam/AlgoTrading
fee9c1caf019f7e328da63843f8d82b799751047
[ "MIT" ]
null
null
null
main.py
yashwardhan-gautam/AlgoTrading
fee9c1caf019f7e328da63843f8d82b799751047
[ "MIT" ]
null
null
null
import dateutil.utils from alice_blue import * import conf import logging from datetime import datetime import statistics from time import sleep logging.basicConfig(level=logging.DEBUG) ltp = 0 EMA_CROSS_SCRIP = 'INFY' NIFTY_BANK_IDX = '' lots = 1 sl_percentage = 0.25 # exit if it goes more than 25% on either size of ...
36.55618
166
0.582911
import dateutil.utils from alice_blue import * import conf import logging from datetime import datetime import statistics from time import sleep def generate_key_token(): try: access_token = AliceBlue.login_and_get_access_token(username=conf.username, password=conf.password, twoFA='a', api_secret=conf.app_...
5,106
0
230
083169999c21fba938362b3a1d758c1c6f384f1f
223
py
Python
tests/deployReady.py
Wombatlord/St_Germain
a27ccd17134d14b6b494e138dca33fdb50e28fc6
[ "MIT" ]
null
null
null
tests/deployReady.py
Wombatlord/St_Germain
a27ccd17134d14b6b494e138dca33fdb50e28fc6
[ "MIT" ]
2
2021-03-06T05:02:19.000Z
2021-05-03T18:24:35.000Z
tests/deployReady.py
Wombatlord/St_Germain
a27ccd17134d14b6b494e138dca33fdb50e28fc6
[ "MIT" ]
1
2021-03-11T21:14:18.000Z
2021-03-11T21:14:18.000Z
from src.server.token import devFlag import unittest
20.272727
39
0.663677
from src.server.token import devFlag import unittest class BotTest(unittest.TestCase): def setUp(self) -> None: self.devFlag = devFlag def testFlag(self): self.assertFalse(self.devFlag)
73
12
81
7dff0b3121b2c11ec7d1be5a82823430c3402110
48
py
Python
.history/config_20210927032258.py
GraceOswal/pitch-perfect
d781c6e0f55c11f2a5e5dceb952f6b2de3c47c3b
[ "MIT" ]
null
null
null
.history/config_20210927032258.py
GraceOswal/pitch-perfect
d781c6e0f55c11f2a5e5dceb952f6b2de3c47c3b
[ "MIT" ]
null
null
null
.history/config_20210927032258.py
GraceOswal/pitch-perfect
d781c6e0f55c11f2a5e5dceb952f6b2de3c47c3b
[ "MIT" ]
null
null
null
import os from dotenv import load_dotenv as ld
12
36
0.8125
import os from dotenv import load_dotenv as ld
0
0
0
d37853652caf3ae06869be8c3f76d2886037c66c
283
py
Python
setup.py
SharpKoi/SproutNet
c3363eaa295fa92da162973b161a5718d75fc7dc
[ "MIT" ]
null
null
null
setup.py
SharpKoi/SproutNet
c3363eaa295fa92da162973b161a5718d75fc7dc
[ "MIT" ]
null
null
null
setup.py
SharpKoi/SproutNet
c3363eaa295fa92da162973b161a5718d75fc7dc
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup(name='sproutnet', version='0.3.0', author='Sharpkoi', author_email='sharpkoi1222@gmail.com', license='LICENSE', description='neural network for learning and education.', packages=find_packages())
28.3
63
0.685512
from setuptools import setup, find_packages setup(name='sproutnet', version='0.3.0', author='Sharpkoi', author_email='sharpkoi1222@gmail.com', license='LICENSE', description='neural network for learning and education.', packages=find_packages())
0
0
0