hexsha
stringlengths
40
40
size
int64
2
1.02M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
245
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
4
245
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
245
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
40
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
2
1.02M
avg_line_length
float64
1
958k
max_line_length
int64
1
987k
alphanum_fraction
float64
0
1
content_no_comment
stringlengths
0
1.01M
is_comment_constant_removed
bool
2 classes
is_sharp_comment_removed
bool
1 class
f7662c60a13bee85c16ac9a4ae25776bbc2a1ed7
6,183
py
Python
src/CCA_Gui.py
HunterJFrey/CurriculumContentAnalysis
2f1e95784c33f6bfd47d27c57183c21796484a7f
[ "MIT" ]
null
null
null
src/CCA_Gui.py
HunterJFrey/CurriculumContentAnalysis
2f1e95784c33f6bfd47d27c57183c21796484a7f
[ "MIT" ]
null
null
null
src/CCA_Gui.py
HunterJFrey/CurriculumContentAnalysis
2f1e95784c33f6bfd47d27c57183c21796484a7f
[ "MIT" ]
null
null
null
#GUI Imports import PySimpleGUI as sg #FileUpload Imports import fitz import os import string import re import pprint from DocSearcher import DocSearcher from TextCleaner import TextCleaner from TopicModeler import TopicModeler from timeit import default_timer as timer def GetFilepath(filepath, index): file_contents...
35.130682
194
0.713569
import PySimpleGUI as sg import fitz import os import string import re import pprint from DocSearcher import DocSearcher from TextCleaner import TextCleaner from TopicModeler import TopicModeler from timeit import default_timer as timer def GetFilepath(filepath, index): file_contents = [] translator = str.maketrans...
true
true
f7662e97665ca0a344cc576d5842f70d22908183
2,263
py
Python
beauty_and_pics/django_messages/models.py
entpy/beauty-and-pics
50d9c79c05061dc8594a70871cb9df5920cc4b28
[ "MIT" ]
null
null
null
beauty_and_pics/django_messages/models.py
entpy/beauty-and-pics
50d9c79c05061dc8594a70871cb9df5920cc4b28
[ "MIT" ]
null
null
null
beauty_and_pics/django_messages/models.py
entpy/beauty-and-pics
50d9c79c05061dc8594a70871cb9df5920cc4b28
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.db import models from django.db.models import Q from datetime import timedelta from django.utils import timezone from contest_app.models.contest_types import Contest_Type from contest_app.models.metrics import Metric from beauty_and_pics.consts import project_constants from website....
29.776316
103
0.718073
from django.db import models from django.db.models import Q from datetime import timedelta from django.utils import timezone from contest_app.models.contest_types import Contest_Type from contest_app.models.metrics import Metric from beauty_and_pics.consts import project_constants from website.exceptions import Contes...
true
true
f7662e9fcf25e1ecba94f14c14095b5fe31b1f8f
434
py
Python
src/run_dev_server.py
stapetro/demo-tpl-py
f95960e6368ca105a941a4b760c96282c5eb536d
[ "MIT" ]
2
2021-03-19T09:41:24.000Z
2021-03-29T10:29:21.000Z
src/run_dev_server.py
stapetro/demo-tpl-py
f95960e6368ca105a941a4b760c96282c5eb536d
[ "MIT" ]
null
null
null
src/run_dev_server.py
stapetro/demo-tpl-py
f95960e6368ca105a941a4b760c96282c5eb536d
[ "MIT" ]
null
null
null
""" Dev config for uvicorn """ import uvicorn from app.core.config import settings if __name__ == "__main__": if settings.PYDEVD: import pydevd_pycharm pydevd_pycharm.settrace( settings.PYDEVD_HOST, port=settings.PYDEVD_PORT, stdoutToServer=True, st...
21.7
83
0.626728
import uvicorn from app.core.config import settings if __name__ == "__main__": if settings.PYDEVD: import pydevd_pycharm pydevd_pycharm.settrace( settings.PYDEVD_HOST, port=settings.PYDEVD_PORT, stdoutToServer=True, stderrToServer=True, ) ...
true
true
f7662f068377a99a373d9c2c322bb5a5e6ca6f2f
1,649
py
Python
dvadmin-backend/application/urls.py
aseoe/Dunyu
6c0d8dc698506d5d0ce2001799a15330e95fc561
[ "MIT" ]
null
null
null
dvadmin-backend/application/urls.py
aseoe/Dunyu
6c0d8dc698506d5d0ce2001799a15330e95fc561
[ "MIT" ]
null
null
null
dvadmin-backend/application/urls.py
aseoe/Dunyu
6c0d8dc698506d5d0ce2001799a15330e95fc561
[ "MIT" ]
null
null
null
"""application URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Clas...
35.085106
96
0.713766
from captcha.conf import settings as ca_settings from captcha.helpers import captcha_image_url, captcha_audio_url from captcha.models import CaptchaStore from django.conf import settings from django.urls import re_path, include from django.views.static import serve from rest_framework.views import APIView from apps.v...
true
true
f76630a4cd3e5eb613782b17145b4ab2bb21db42
795
py
Python
Modulo_3/Semana 4/matplotlib/practica2.py
AutodidactaMx/cocid_python
11628f465ff362807a692c79ede26bf30dd8e26a
[ "MIT" ]
null
null
null
Modulo_3/Semana 4/matplotlib/practica2.py
AutodidactaMx/cocid_python
11628f465ff362807a692c79ede26bf30dd8e26a
[ "MIT" ]
null
null
null
Modulo_3/Semana 4/matplotlib/practica2.py
AutodidactaMx/cocid_python
11628f465ff362807a692c79ede26bf30dd8e26a
[ "MIT" ]
1
2022-03-04T00:57:18.000Z
2022-03-04T00:57:18.000Z
import tkinter as tk import matplotlib.pyplot as plt from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg, NavigationToolbar2Tk data = { '0-9': 5000, '10-19': 2000, '20-29': 30000, '30-39': 43490, '40-49': 39898 } clave = data.keys() valor ...
26.5
85
0.685535
import tkinter as tk import matplotlib.pyplot as plt from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg, NavigationToolbar2Tk data = { '0-9': 5000, '10-19': 2000, '20-29': 30000, '30-39': 43490, '40-49': 39898 } clave = data.keys() valor ...
true
true
f7663198ae1bfe271966d51fb872e3e8e078ae78
4,262
py
Python
tests/test_lambdaexecutor.py
HumanCellAtlas/data-store
6b27d0f7e0110c62b3079151708689ab5145f15b
[ "MIT" ]
46
2017-03-24T15:56:09.000Z
2021-03-15T19:49:07.000Z
tests/test_lambdaexecutor.py
HumanCellAtlas/DCC
6b27d0f7e0110c62b3079151708689ab5145f15b
[ "MIT" ]
1,799
2017-04-04T17:54:28.000Z
2020-11-19T12:30:13.000Z
tests/test_lambdaexecutor.py
HumanCellAtlas/DCC
6b27d0f7e0110c62b3079151708689ab5145f15b
[ "MIT" ]
13
2017-03-27T23:49:35.000Z
2021-01-18T07:39:49.000Z
#!/usr/bin/env python # coding: utf-8 import os import sys import threading import time import unittest pkg_root = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) # noqa sys.path.insert(0, pkg_root) # noqa import dss.stepfunctions.lambdaexecutor as lambdaexecutor from tests.infra import testmode c...
30.014085
84
0.545284
import os import sys import threading import time import unittest pkg_root = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) sys.path.insert(0, pkg_root) import dss.stepfunctions.lambdaexecutor as lambdaexecutor from tests.infra import testmode class TestLambdaExecutor(unittest.TestCase): @tes...
true
true
f76632151cc2caf22e156aac8ed327da283e5f7a
3,322
py
Python
src/cores/converter.py
shmilee/gdpy3
2e007851fc87793c0038f7b1dacba729271e17a3
[ "MIT" ]
4
2018-08-07T13:28:06.000Z
2021-03-08T04:31:20.000Z
src/cores/converter.py
shmilee/gdpy3
2e007851fc87793c0038f7b1dacba729271e17a3
[ "MIT" ]
null
null
null
src/cores/converter.py
shmilee/gdpy3
2e007851fc87793c0038f7b1dacba729271e17a3
[ "MIT" ]
3
2018-05-05T01:34:33.000Z
2022-03-07T15:57:10.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2019-2020 shmilee ''' Contains Converter core class. ''' import re from .base import BaseCore, AppendDocstringMeta from ..glogger import getGLogger __all__ = ['Converter'] clog = getGLogger('C') class Converter(BaseCore, metaclass=AppendDocstringMeta): ''' Convert ...
28.886957
78
0.552378
import re from .base import BaseCore, AppendDocstringMeta from ..glogger import getGLogger __all__ = ['Converter'] clog = getGLogger('C') class Converter(BaseCore, metaclass=AppendDocstringMeta): __slots__ = ['_files', '_group'] @property def rawloader(self): return self.loader @propert...
true
true
f766324aa05b01dc6b312fa921abe72ed76ee177
1,696
py
Python
python-practice/leetcode/isValidSudoku.py
daohuei/practice-playground
50522a57ef056108c662cf668f26c97078caf61c
[ "MIT" ]
null
null
null
python-practice/leetcode/isValidSudoku.py
daohuei/practice-playground
50522a57ef056108c662cf668f26c97078caf61c
[ "MIT" ]
null
null
null
python-practice/leetcode/isValidSudoku.py
daohuei/practice-playground
50522a57ef056108c662cf668f26c97078caf61c
[ "MIT" ]
null
null
null
def isValidSudoku(board: list()) -> bool: row, col, block = {}, {}, {} for i in range(9): for j in range(9): num = board[i][j] if num != ".": if i not in row.keys(): row[i] = [] if j not in col.keys(): col[j]...
37.688889
84
0.222288
def isValidSudoku(board: list()) -> bool: row, col, block = {}, {}, {} for i in range(9): for j in range(9): num = board[i][j] if num != ".": if i not in row.keys(): row[i] = [] if j not in col.keys(): col[j]...
true
true
f7663346ac3874ad7fa518cef14e899b7d1935ff
3,321
py
Python
sql/snsql/sql/privacy.py
oskarkocol/smartnoise-sdk
e76cad9c8fd6c58c4fc126e90f00b60eb589d1be
[ "MIT" ]
63
2020-03-26T15:26:10.000Z
2020-10-22T06:26:38.000Z
sql/snsql/sql/privacy.py
oskarkocol/smartnoise-sdk
e76cad9c8fd6c58c4fc126e90f00b60eb589d1be
[ "MIT" ]
82
2020-03-10T17:54:48.000Z
2020-10-23T02:11:06.000Z
sql/snsql/sql/privacy.py
oskarkocol/smartnoise-sdk
e76cad9c8fd6c58c4fc126e90f00b60eb589d1be
[ "MIT" ]
15
2020-03-10T05:52:14.000Z
2020-10-09T09:09:52.000Z
from typing import List from ._mechanisms import * from enum import Enum import numpy as np class Stat(Enum): count = 1 sum_int = 2 sum_large_int = 3 sum_float = 4 sum_large_float = 5 threshold = 6 class Mechanisms: def __init__(self): self.classes = { Mechanism.laplace...
40.5
146
0.644685
from typing import List from ._mechanisms import * from enum import Enum import numpy as np class Stat(Enum): count = 1 sum_int = 2 sum_large_int = 3 sum_float = 4 sum_large_float = 5 threshold = 6 class Mechanisms: def __init__(self): self.classes = { Mechanism.laplace...
true
true
f766340515ccbcc6ae7464d074dc7699741fa2aa
6,928
py
Python
tests/integration/serverless/v1/service/test_environment.py
timgates42/twilio-python
ef29d03a4857b62b616df4a8f4f2b7c294afbb99
[ "MIT" ]
1
2021-01-07T11:41:11.000Z
2021-01-07T11:41:11.000Z
twilio-twilio-python-2fb5d37/tests/integration/serverless/v1/service/test_environment.py
RomanPanshin/XClassBack
6bb8bb5458fd991bcb22ed8c315d10cc5cea9d38
[ "BSD-2-Clause" ]
1
2020-08-25T15:27:57.000Z
2020-08-25T15:27:57.000Z
tests/integration/serverless/v1/service/test_environment.py
team-telnyx/twexit-python
69e11c5c2b5681f9bc410795dda0cf8942219e6f
[ "MIT" ]
4
2021-03-25T09:00:08.000Z
2021-08-05T06:54:23.000Z
# coding=utf-8 r""" This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from tests import IntegrationTestCase from tests.holodeck import Request from twilio.base.exceptions import TwilioException from twilio.http.response import Response class EnvironmentTestCase(Integ...
43.3
174
0.610999
from tests import IntegrationTestCase from tests.holodeck import Request from twilio.base.exceptions import TwilioException from twilio.http.response import Response class EnvironmentTestCase(IntegrationTestCase): def test_list_request(self): self.holodeck.mock(Response(500, '')) with self.asse...
true
true
f76634c65aa3ddd4e0ab97661d49108fa2cc9d9c
4,482
py
Python
xarray/core/pdcompat.py
douglatornell/xarray
742ed3984f437982057fd46ecfb0bce214563cb8
[ "Apache-2.0" ]
51
2019-02-01T19:43:37.000Z
2022-03-16T09:07:03.000Z
xarray/core/pdcompat.py
douglatornell/xarray
742ed3984f437982057fd46ecfb0bce214563cb8
[ "Apache-2.0" ]
3
2018-11-21T02:21:19.000Z
2018-12-18T15:34:10.000Z
xarray/core/pdcompat.py
chunweiyuan/xarray
6d93a95d05bdbfc33fff24064f67d29dd891ab58
[ "Apache-2.0" ]
35
2019-02-08T02:00:31.000Z
2022-03-01T23:17:00.000Z
# The remove_unused_levels defined here was copied based on the source code # defined in pandas.core.indexes.muli.py # For reference, here is a copy of the pandas copyright notice: # (c) 2011-2012, Lambda Foundry, Inc. and PyData Development Team # All rights reserved. # Copyright (c) 2008-2011 AQR Capital Managemen...
37.663866
75
0.65328
import numpy as np def remove_unused_levels(self): import pandas.core.algorithms as algos new_levels = [] new_labels = [] changed = False for lev, lab in zip(self.levels, self.labels): uniques = np.where(np.bincount(lab + 1) > 0)[0] - 1 has_na =...
true
true
f76635e75265b1ceca8a2b04afb194c36c93e5da
4,842
py
Python
test/functional/interface_http.py
picscoin/picscoin
65d757c1732a41d7370ec29caf06a9dd2c79b39a
[ "MIT" ]
null
null
null
test/functional/interface_http.py
picscoin/picscoin
65d757c1732a41d7370ec29caf06a9dd2c79b39a
[ "MIT" ]
null
null
null
test/functional/interface_http.py
picscoin/picscoin
65d757c1732a41d7370ec29caf06a9dd2c79b39a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2019 The Picscoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the RPC HTTP basics.""" from test_framework.test_framework import PicscoinTestFramework from tes...
44.422018
115
0.63734
from test_framework.test_framework import PicscoinTestFramework from test_framework.util import assert_equal, str_to_b64str import http.client import urllib.parse class HTTPBasicsTest (PicscoinTestFramework): def set_test_params(self): self.num_nodes = 3 def setup_network(self): self.setup_n...
true
true
f76636f3fb439d43b63a364c38cc8128dcacc654
37,224
py
Python
ax/core/tests/test_experiment.py
kiukchung/Ax
0f50d94056782d304e573c3c1dde567beb44b65a
[ "MIT" ]
1
2021-12-18T10:07:18.000Z
2021-12-18T10:07:18.000Z
ax/core/tests/test_experiment.py
kiukchung/Ax
0f50d94056782d304e573c3c1dde567beb44b65a
[ "MIT" ]
1
2021-08-21T07:49:09.000Z
2021-08-21T07:49:09.000Z
ax/core/tests/test_experiment.py
kiukchung/Ax
0f50d94056782d304e573c3c1dde567beb44b65a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import logging from typing import Type from unittest.mock import patch import pandas as pd from ax.core.arm import Arm...
42.493151
88
0.649635
import logging from typing import Type from unittest.mock import patch import pandas as pd from ax.core.arm import Arm from ax.core.base_trial import TrialStatus from ax.core.data import Data from ax.core.experiment import Experiment from ax.core.map_data import MapData from ax.core.map_metric import MapMetric from a...
true
true
f766399a78efde7c1001fa668d0967713f9338ad
4,213
py
Python
oss_bot/api/API_OSS_Bot.py
OpenSecuritySummit/OSS-Bot
8341df2be0f12c59ca1b0e9c407b650ef2fa44f9
[ "Apache-2.0" ]
1
2019-06-07T08:52:30.000Z
2019-06-07T08:52:30.000Z
oss_bot/api/API_OSS_Bot.py
OpenSecuritySummit/OSS-Bot
8341df2be0f12c59ca1b0e9c407b650ef2fa44f9
[ "Apache-2.0" ]
null
null
null
oss_bot/api/API_OSS_Bot.py
OpenSecuritySummit/OSS-Bot
8341df2be0f12c59ca1b0e9c407b650ef2fa44f9
[ "Apache-2.0" ]
1
2019-12-15T11:00:25.000Z
2019-12-15T11:00:25.000Z
import json import ssl import urllib from osbot_aws.apis.Secrets import Secrets from oss_bot.api.commands.OSS_Bot_Commands import OSS_Bot_Commands class API_OSS_Bot: def __init__(self): self.slack_url = "https://slack.com/api/chat.postMessage" self.bot_name = '@ossbot' self.team_id ...
46.811111
150
0.551151
import json import ssl import urllib from osbot_aws.apis.Secrets import Secrets from oss_bot.api.commands.OSS_Bot_Commands import OSS_Bot_Commands class API_OSS_Bot: def __init__(self): self.slack_url = "https://slack.com/api/chat.postMessage" self.bot_name = '@ossbot' self.team_id ...
true
true
f7663a5aa78d5075c9da8548f0cc21f66c8dd3fb
909
py
Python
pyeti/eti_django/templatetags/html.py
cehdeti/pyeti
a1d4fde6510f1d7c15caf273c868b767bc20a830
[ "MIT" ]
null
null
null
pyeti/eti_django/templatetags/html.py
cehdeti/pyeti
a1d4fde6510f1d7c15caf273c868b767bc20a830
[ "MIT" ]
9
2018-07-09T17:03:07.000Z
2022-03-09T18:34:06.000Z
pyeti/eti_django/templatetags/html.py
cehdeti/pyeti
a1d4fde6510f1d7c15caf273c868b767bc20a830
[ "MIT" ]
null
null
null
from django import template register = template.Library() @register.simple_tag(takes_context=True) def unique_html_id(context, prefix): """ Given a string, return a string that is guaranteed to be unique across all calls to this template tag, suitable for use as an HTML `id` attribute. Note that onl...
32.464286
78
0.685369
from django import template register = template.Library() @register.simple_tag(takes_context=True) def unique_html_id(context, prefix): if 'request' not in context: raise Exception('Need a request') if not hasattr(context['request'], 'html_ids'): context['request'].html_ids = {} if pref...
true
true
f7663b4bdf8fe1451a61d46cdf3d54577a648f37
2,435
py
Python
accenv/lib/python3.4/site-packages/IPython/nbformat/v3/__init__.py
adamshamsudeen/clubdin-dj
eb48c67dab3a4ae7c4032544eb4d64e0b1d7e15a
[ "MIT" ]
null
null
null
accenv/lib/python3.4/site-packages/IPython/nbformat/v3/__init__.py
adamshamsudeen/clubdin-dj
eb48c67dab3a4ae7c4032544eb4d64e0b1d7e15a
[ "MIT" ]
1
2018-04-15T22:59:15.000Z
2018-04-15T22:59:15.000Z
accenv/lib/python3.4/site-packages/IPython/nbformat/v3/__init__.py
adamshamsudeen/clubdin-dj
eb48c67dab3a4ae7c4032544eb4d64e0b1d7e15a
[ "MIT" ]
null
null
null
"""The main API for the v3 notebook format. Authors: * Brian Granger """ #----------------------------------------------------------------------------- # Copyright (C) 2008-2011 The IPython Development Team # # Distributed under the terms of the BSD License. The full license is in # the file COPYING, distribute...
32.466667
78
0.547023
from .nbbase import ( NotebookNode, new_code_cell, new_text_cell, new_notebook, new_output, new_worksheet, new_metadata, new_author, new_heading_cell, nbformat, nbformat_minor ) from .nbjson import reads as reads_json, writes as writes_json from .nbjson import reads as read_json, writes as write_json fr...
true
true
f7663c3aa7ce8030e31fef705a6843a005b903fb
233
py
Python
Backend/ecom/api/order/serializers.py
parthparikh02/Ecommerce-Store
1b1e52b37c0fa60290ab23f357f4a86d63f67504
[ "MIT" ]
null
null
null
Backend/ecom/api/order/serializers.py
parthparikh02/Ecommerce-Store
1b1e52b37c0fa60290ab23f357f4a86d63f67504
[ "MIT" ]
null
null
null
Backend/ecom/api/order/serializers.py
parthparikh02/Ecommerce-Store
1b1e52b37c0fa60290ab23f357f4a86d63f67504
[ "MIT" ]
null
null
null
from rest_framework import serializers from .models import Order class OrderSerializer(serializers.HyperlinkedModelSerializer): class Meta: model = Order fields = ('user') #TODO: aadproduct and quantity
25.888889
62
0.716738
from rest_framework import serializers from .models import Order class OrderSerializer(serializers.HyperlinkedModelSerializer): class Meta: model = Order fields = ('user')
true
true
f7663c3ff2b5870fe7e932354abb67bb693e5f6f
12,915
py
Python
capture-node/raw_file_format_readers.py
samqws-marketing/electronicarts_ava-capture
a04e5f9a7ee817317d0d58ce800eefc6bf4bd150
[ "BSD-3-Clause" ]
49
2017-08-18T15:25:09.000Z
2022-02-20T19:07:00.000Z
capture-node/raw_file_format_readers.py
edanvoye/ava-capture
5d59988b96fb8d7a79574cd2b51fb1950b3909b7
[ "BSD-3-Clause" ]
50
2021-11-07T18:24:34.000Z
2022-03-19T01:16:48.000Z
capture-node/raw_file_format_readers.py
samqws-marketing/electronicarts_ava-capture
a04e5f9a7ee817317d0d58ce800eefc6bf4bd150
[ "BSD-3-Clause" ]
13
2017-12-04T19:33:20.000Z
2021-07-17T02:17:00.000Z
# Copyright (C) 2019 Electronic Arts Inc. All rights reserved. import os import struct import cv2 import numpy as np import lz4.block as lz4block ''' Example Usage: # This script extracts all frames of the recorded file test.ava and outputs them as JPG and TIF images. from raw_file_format_readers import A...
39.375
193
0.64096
import os import struct import cv2 import numpy as np import lz4.block as lz4block def Linear_to_sRGB(image): a = 0.055 x = image / 65535.0 return (np.where(x <= 0.00313066844, 0, (1 + a) * cv2.pow(x, 1 / 2.4) - a) ) * 65535.0 def resize_image(img, width=None, height=None, max_side=None, interpolati...
true
true
f7664119ddaf1916a95e625c6d0222a880339ca7
287
py
Python
tenders_django/tenders_django_app/urls.py
Salomari1987/med-tenders-egypt
31b5061fe28c56d5e9a8bb4b267148848bfeaf5a
[ "MIT" ]
null
null
null
tenders_django/tenders_django_app/urls.py
Salomari1987/med-tenders-egypt
31b5061fe28c56d5e9a8bb4b267148848bfeaf5a
[ "MIT" ]
null
null
null
tenders_django/tenders_django_app/urls.py
Salomari1987/med-tenders-egypt
31b5061fe28c56d5e9a8bb4b267148848bfeaf5a
[ "MIT" ]
null
null
null
from django.conf.urls import url, include from tenders_django_app.views import TendersView from django.views.generic import TemplateView urlpatterns = { url(r'^$', TemplateView.as_view(template_name="index.html")), url(r'^tenders/$', TendersView.as_view(), name="tenders"), }
26.090909
65
0.745645
from django.conf.urls import url, include from tenders_django_app.views import TendersView from django.views.generic import TemplateView urlpatterns = { url(r'^$', TemplateView.as_view(template_name="index.html")), url(r'^tenders/$', TendersView.as_view(), name="tenders"), }
true
true
f766416401b621318baf9f265155c1df53c68c6e
11,526
py
Python
code/run.py
arielsho/Table-Fact-Checking
afbf987fcaa6cc002655d3fa38f95d88e2ec4f75
[ "MIT" ]
295
2019-09-05T01:47:14.000Z
2022-03-31T08:05:14.000Z
code/run.py
arielsho/Table-Fact-Checking
afbf987fcaa6cc002655d3fa38f95d88e2ec4f75
[ "MIT" ]
9
2019-12-05T17:31:25.000Z
2021-04-26T09:10:35.000Z
code/run.py
arielsho/Table-Fact-Checking
afbf987fcaa6cc002655d3fa38f95d88e2ec4f75
[ "MIT" ]
55
2019-09-09T14:29:13.000Z
2022-03-07T12:57:27.000Z
# encoding=utf8 import json import pandas import numpy from beam_search import dynamic_programming from multiprocessing import Pool import multiprocessing import sys import time import argparse import os from APIs import * parser = argparse.ArgumentParser() parser.add_argument("--synthesize", default=False, action="st...
39.337884
120
0.424952
import json import pandas import numpy from beam_search import dynamic_programming from multiprocessing import Pool import multiprocessing import sys import time import argparse import os from APIs import * parser = argparse.ArgumentParser() parser.add_argument("--synthesize", default=False, action="store_true", help=...
true
true
f766416878e4a10c26c20ceceaad2339fab1555f
4,687
py
Python
Recommenders/recommenders_data_validation/data_validation.py
cnvrg/Blueprints
e8574063605a2dd7a4c2f4d2cc18458edb2886be
[ "Apache-2.0" ]
null
null
null
Recommenders/recommenders_data_validation/data_validation.py
cnvrg/Blueprints
e8574063605a2dd7a4c2f4d2cc18458edb2886be
[ "Apache-2.0" ]
null
null
null
Recommenders/recommenders_data_validation/data_validation.py
cnvrg/Blueprints
e8574063605a2dd7a4c2f4d2cc18458edb2886be
[ "Apache-2.0" ]
1
2022-02-21T21:33:38.000Z
2022-02-21T21:33:38.000Z
import argparse import pandas as pd import psutil import time from cnvrg import Experiment tic=time.time() parser = argparse.ArgumentParser(description="""Preprocessor""") parser.add_argument('-f','--filename', action='store', dest='filename', default='/data/movies_rec_sys/ratings_2.csv', required=True, help="""string...
36.905512
173
0.632174
import argparse import pandas as pd import psutil import time from cnvrg import Experiment tic=time.time() parser = argparse.ArgumentParser(description="""Preprocessor""") parser.add_argument('-f','--filename', action='store', dest='filename', default='/data/movies_rec_sys/ratings_2.csv', required=True, help="""string...
true
true
f766430c6b5c83b9502bc84924d9ea0be5c4e2fb
5,608
py
Python
quickstart/aws/casmgr.py
Edwin-Pau/cloud_deployment_scripts
f3fb79b977128a3dd97dad1ea9faf773c001cd21
[ "MIT" ]
10
2020-01-21T18:24:34.000Z
2022-01-22T05:41:45.000Z
quickstart/aws/casmgr.py
Edwin-Pau/cloud_deployment_scripts
f3fb79b977128a3dd97dad1ea9faf773c001cd21
[ "MIT" ]
27
2020-01-21T18:31:11.000Z
2022-03-16T16:31:50.000Z
quickstart/aws/casmgr.py
Edwin-Pau/cloud_deployment_scripts
f3fb79b977128a3dd97dad1ea9faf773c001cd21
[ "MIT" ]
22
2019-10-25T18:06:57.000Z
2022-03-21T20:15:13.000Z
# Copyright (c) 2021 Teradici Corporation # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import requests import retry from retry import retry class CASManager: def __init__(self, auth_token, url='https://cas.teradici.com'): se...
30.813187
91
0.557775
import requests import retry from retry import retry class CASManager: def __init__(self, auth_token, url='https://cas.teradici.com'): self.auth_token = auth_token self.url = url self.header = {'authorization': auth_token} def auth_token_validate(self): resp = requests.post( ...
true
true
f7664312bd2f96275bfa834a518da25504d0c939
190
py
Python
restaurants/admin.py
seelancyril/Django
27a17c464ce5a24bae37832a3f55d9aae8dc9da5
[ "Apache-2.0" ]
null
null
null
restaurants/admin.py
seelancyril/Django
27a17c464ce5a24bae37832a3f55d9aae8dc9da5
[ "Apache-2.0" ]
null
null
null
restaurants/admin.py
seelancyril/Django
27a17c464ce5a24bae37832a3f55d9aae8dc9da5
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from .models import RestaurantLocation, OrderLocation # Register your models here. admin.site.register(RestaurantLocation) admin.site.register(OrderLocation)
38
53
0.852632
from django.contrib import admin from .models import RestaurantLocation, OrderLocation admin.site.register(RestaurantLocation) admin.site.register(OrderLocation)
true
true
f76643f15a7a69a3022ff281a309dd36ad893465
4,221
py
Python
mmdet/apis/inference.py
xinxin342/mmdetection-mini
1fa54e8ce6961cfa301af3eb58483cfc1db83b64
[ "MIT" ]
2
2021-06-16T01:26:54.000Z
2021-07-12T06:33:47.000Z
mmdet/apis/inference.py
CV-IP/mmdetection-mini
dad8367880a4e321b8ac64ee95d712da44d232d9
[ "MIT" ]
1
2020-09-29T23:44:42.000Z
2020-09-29T23:44:42.000Z
mmdet/apis/inference.py
CV-IP/mmdetection-mini
dad8367880a4e321b8ac64ee95d712da44d232d9
[ "MIT" ]
4
2021-02-05T06:08:43.000Z
2021-09-10T09:01:14.000Z
import matplotlib.pyplot as plt from mmdet import cv_core import numpy as np import torch from mmdet.cv_core.parallel import collate from mmdet.cv_core.runner import load_checkpoint from mmdet.datasets.pipelines import Compose from mmdet.models import build_detector from mmdet.datasets import build_dataset def init_...
34.317073
83
0.638948
import matplotlib.pyplot as plt from mmdet import cv_core import numpy as np import torch from mmdet.cv_core.parallel import collate from mmdet.cv_core.runner import load_checkpoint from mmdet.datasets.pipelines import Compose from mmdet.models import build_detector from mmdet.datasets import build_dataset def init_...
true
true
f766456c842f4637e7b8c2aae828fdaf48dad6ad
200,290
py
Python
tensorflow/python/data/ops/dataset_ops.py
orivej/tensorflow
5ed2fc046a9e59d7fcffc1bc7202465805618aca
[ "Apache-2.0" ]
4
2021-06-02T03:21:44.000Z
2021-11-08T09:47:24.000Z
tensorflow/python/data/ops/dataset_ops.py
orivej/tensorflow
5ed2fc046a9e59d7fcffc1bc7202465805618aca
[ "Apache-2.0" ]
null
null
null
tensorflow/python/data/ops/dataset_ops.py
orivej/tensorflow
5ed2fc046a9e59d7fcffc1bc7202465805618aca
[ "Apache-2.0" ]
1
2021-11-15T01:24:10.000Z
2021-11-15T01:24:10.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
40.226953
116
0.684428
from __future__ import absolute_import from __future__ import division from __future__ import print_function import abc import functools import sys import threading import warnings import weakref import numpy as np import six from six.moves import queue as Queue from tensorflow.core.framework import dataset_options...
true
true
f76645d09993db5e98a13e29292a9266d9110c87
3,429
py
Python
evaluateprofs/accounts/views.py
simplyalde/evaluateprofs-dev
1d5e6bdee9094f3fda40419f31d65653a5d551e6
[ "MIT" ]
1
2020-05-16T07:44:15.000Z
2020-05-16T07:44:15.000Z
evaluateprofs/accounts/views.py
simplyalde/evaluateprofs-dev
1d5e6bdee9094f3fda40419f31d65653a5d551e6
[ "MIT" ]
null
null
null
evaluateprofs/accounts/views.py
simplyalde/evaluateprofs-dev
1d5e6bdee9094f3fda40419f31d65653a5d551e6
[ "MIT" ]
null
null
null
import requests from django.http import HttpResponse from django.conf import settings from django.shortcuts import render, redirect from django.contrib.sites.shortcuts import get_current_site from django.contrib.auth import authenticate, get_user_model, login, logout from django.contrib.auth.models import User from dja...
38.52809
92
0.654127
import requests from django.http import HttpResponse from django.conf import settings from django.shortcuts import render, redirect from django.contrib.sites.shortcuts import get_current_site from django.contrib.auth import authenticate, get_user_model, login, logout from django.contrib.auth.models import User from dja...
true
true
f76645d582a0337c1ec730c2f0c3f4033cb88d8e
14,370
py
Python
hierarchical_vae/utils.py
artsobolev/IWHVI
3a8b5631fe5b08587c594bd0aac43f84dc261579
[ "MIT" ]
7
2019-10-18T21:21:15.000Z
2021-03-08T15:27:09.000Z
hierarchical_vae/utils.py
artsobolev/IWHVI
3a8b5631fe5b08587c594bd0aac43f84dc261579
[ "MIT" ]
null
null
null
hierarchical_vae/utils.py
artsobolev/IWHVI
3a8b5631fe5b08587c594bd0aac43f84dc261579
[ "MIT" ]
1
2020-03-15T09:24:27.000Z
2020-03-15T09:24:27.000Z
import numpy as np import scipy as sp import scipy.special from tqdm import tqdm import utils from .model import HierarchicalVAE def calculate_evidence(sess, data, iwhvae, iwae_samples, iwhvi_samples, batch_size, n_repeats, tau_force_prior=False, tqdm_desc=None): losses = utils.batched_run...
44.351852
120
0.612804
import numpy as np import scipy as sp import scipy.special from tqdm import tqdm import utils from .model import HierarchicalVAE def calculate_evidence(sess, data, iwhvae, iwae_samples, iwhvi_samples, batch_size, n_repeats, tau_force_prior=False, tqdm_desc=None): losses = utils.batched_run...
true
true
f76647e76124278d3dd453e271220b9b6b779fe3
1,213
py
Python
tools/nntool/importer/tflite2/handlers/backend/sin.py
00-01/gap_sdk
25444d752b26ccf0b848301c381692d77172852c
[ "Apache-2.0" ]
118
2018-05-22T08:45:59.000Z
2022-03-30T07:00:45.000Z
tools/nntool/importer/tflite2/handlers/backend/sin.py
00-01/gap_sdk
25444d752b26ccf0b848301c381692d77172852c
[ "Apache-2.0" ]
213
2018-07-25T02:37:32.000Z
2022-03-30T18:04:01.000Z
tools/nntool/importer/tflite2/handlers/backend/sin.py
00-01/gap_sdk
25444d752b26ccf0b848301c381692d77172852c
[ "Apache-2.0" ]
76
2018-07-04T08:19:27.000Z
2022-03-24T09:58:05.000Z
# Copyright (C) 2020 GreenWaves Technologies, SAS # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # This progr...
33.694444
74
0.732894
from graph.types.others import SinOpParameters from ..backend_handler import BackendHandler from ..handler import tflite_op from .math_mixin import BasicMathMixin @tflite_op("SIN") class Sin(BasicMathMixin, BackendHandler): @classmethod def _common(cls, node, **kwargs): return super(Sin, cls)._c...
true
true
f76647f41028daaac493771c56913005513958d7
9,213
py
Python
tests/test_bbc_app_multiclient_traverse.py
ks91/bbc1-pub
6b9c33c6c8aec7d410ba9b704eeeb8c3772012d0
[ "Apache-2.0" ]
89
2017-10-31T05:38:30.000Z
2021-11-06T11:53:19.000Z
tests/test_bbc_app_multiclient_traverse.py
ks91/bbc1-pub
6b9c33c6c8aec7d410ba9b704eeeb8c3772012d0
[ "Apache-2.0" ]
74
2017-11-07T13:06:33.000Z
2021-05-06T14:26:19.000Z
tests/test_bbc_app_multiclient_traverse.py
ks91/bbc1-pub
6b9c33c6c8aec7d410ba9b704eeeb8c3772012d0
[ "Apache-2.0" ]
56
2017-11-04T13:54:56.000Z
2021-06-18T18:05:46.000Z
# -*- coding: utf-8 -*- import pytest import time import sys sys.path.extend(["../"]) from bbc1.core import bbclib from bbc1.core.message_key_types import KeyType from testutils import prepare, get_core_client, start_core_thread, make_client, domain_setup_utility LOGLEVEL = 'debug' LOGLEVEL = 'info' core_num = 1 cl...
47.489691
118
0.636383
import pytest import time import sys sys.path.extend(["../"]) from bbc1.core import bbclib from bbc1.core.message_key_types import KeyType from testutils import prepare, get_core_client, start_core_thread, make_client, domain_setup_utility LOGLEVEL = 'debug' LOGLEVEL = 'info' core_num = 1 client_num = 1 cores = Non...
true
true
f7664823659adefbea7c90b79e449ea9afbdf498
7,262
py
Python
prplatform/exercises/tests/test_embedded_views.py
piehei/prplatform
f3248b66019f207bb06a4681a62057e175408b3e
[ "MIT" ]
3
2018-10-07T18:50:01.000Z
2020-07-29T14:43:51.000Z
prplatform/exercises/tests/test_embedded_views.py
piehei/prplatform
f3248b66019f207bb06a4681a62057e175408b3e
[ "MIT" ]
9
2019-08-26T11:55:00.000Z
2020-05-04T13:56:06.000Z
prplatform/exercises/tests/test_embedded_views.py
piehei/prplatform
f3248b66019f207bb06a4681a62057e175408b3e
[ "MIT" ]
null
null
null
from django.core.exceptions import PermissionDenied from django.contrib.auth.models import AnonymousUser from django.contrib.sessions.middleware import SessionMiddleware from django.contrib.messages.middleware import MessageMiddleware from django.test import RequestFactory, TestCase import datetime import pytz from p...
38.221053
91
0.648582
from django.core.exceptions import PermissionDenied from django.contrib.auth.models import AnonymousUser from django.contrib.sessions.middleware import SessionMiddleware from django.contrib.messages.middleware import MessageMiddleware from django.test import RequestFactory, TestCase import datetime import pytz from p...
true
true
f766487b9bff02cfdcfd7664cfca5bb9e95c794a
707
py
Python
run.py
gaetanV/website
78254f1ff6e9e884f905557b93d82cf5f2d14a11
[ "MIT" ]
null
null
null
run.py
gaetanV/website
78254f1ff6e9e884f905557b93d82cf5f2d14a11
[ "MIT" ]
null
null
null
run.py
gaetanV/website
78254f1ff6e9e884f905557b93d82cf5f2d14a11
[ "MIT" ]
null
null
null
import subprocess import shutil import os subprocess.call("gcc ./lib/index.c -o index.go",shell=True) subprocess.call("gcc ./lib/api.c -o api.go",shell=True) dist = './js/' pRoute = dist + 'route.js' pComponent = dist + 'component.js' if not os.path.exists(dist): os.makedirs(dist) if os.path.isfile (pComponent...
27.192308
156
0.712871
import subprocess import shutil import os subprocess.call("gcc ./lib/index.c -o index.go",shell=True) subprocess.call("gcc ./lib/api.c -o api.go",shell=True) dist = './js/' pRoute = dist + 'route.js' pComponent = dist + 'component.js' if not os.path.exists(dist): os.makedirs(dist) if os.path.isfile (pComponent...
true
true
f76648922f5882003dd6a48b10486696ad98e9f7
310
py
Python
url.py
jil8885/django_app_hyuabot
dc7339e01be7b6cab4d90b945036eaedcc5807fb
[ "MIT" ]
6
2018-02-02T01:42:00.000Z
2019-07-20T01:39:06.000Z
url.py
jil8885/django-kakao-i-hanyang
dc7339e01be7b6cab4d90b945036eaedcc5807fb
[ "MIT" ]
null
null
null
url.py
jil8885/django-kakao-i-hanyang
dc7339e01be7b6cab4d90b945036eaedcc5807fb
[ "MIT" ]
3
2018-02-02T17:12:48.000Z
2019-07-20T01:39:08.000Z
from django.urls import path from kakao_i_hanyang.views import * urlpatterns = [ path('shuttle', get_shuttle_departure_info), path('shuttle/stop', get_shuttle_stop_info), path('food', get_food_menu), path('library/seats', get_reading_room_seat_info), path('update/campus', update_campus) ]
31
54
0.741935
from django.urls import path from kakao_i_hanyang.views import * urlpatterns = [ path('shuttle', get_shuttle_departure_info), path('shuttle/stop', get_shuttle_stop_info), path('food', get_food_menu), path('library/seats', get_reading_room_seat_info), path('update/campus', update_campus) ]
true
true
f76648bc6d4c12df1f50f561ea25f518c1ff7187
626
py
Python
gym-duckietown/learning/utils/env.py
ryandicenzo/self-driving-decal
f030e603ff015cf3e7cf454ccf5fc1c556bf8e9b
[ "MIT" ]
null
null
null
gym-duckietown/learning/utils/env.py
ryandicenzo/self-driving-decal
f030e603ff015cf3e7cf454ccf5fc1c556bf8e9b
[ "MIT" ]
null
null
null
gym-duckietown/learning/utils/env.py
ryandicenzo/self-driving-decal
f030e603ff015cf3e7cf454ccf5fc1c556bf8e9b
[ "MIT" ]
1
2019-12-31T04:04:19.000Z
2019-12-31T04:04:19.000Z
import gym import gym_duckietown def launch_env(id=None): env = None if id is None: # Launch the environment from gym_duckietown.simulator import Simulator env = Simulator( seed=123, # random seed map_name="loop_empty", max_steps=500001, # we don't wa...
27.217391
69
0.58147
import gym import gym_duckietown def launch_env(id=None): env = None if id is None: from gym_duckietown.simulator import Simulator env = Simulator( seed=123, map_name="loop_empty", max_steps=500001, domain_rand=0, camera_width=...
true
true
f76649a8d5971e4c2d5bba3e9594ca257710b6d3
2,294
py
Python
robot/Common/Environment.py
LifeIsABoat/AutoTestV1
052526da16fa7982be8c394a5888d1ff9e563c7c
[ "MIT" ]
null
null
null
robot/Common/Environment.py
LifeIsABoat/AutoTestV1
052526da16fa7982be8c394a5888d1ff9e563c7c
[ "MIT" ]
null
null
null
robot/Common/Environment.py
LifeIsABoat/AutoTestV1
052526da16fa7982be8c394a5888d1ff9e563c7c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from Resource import * class Environment(object): """Environment for machine param management Class Environment is an singleton class. set_machine is to Set Machine Info for Machine Layer. set_function is to Set Function Info for Function Layer. set_...
31.861111
76
0.648213
from Resource import * class Environment(object): """Environment for machine param management Class Environment is an singleton class. set_machine is to Set Machine Info for Machine Layer. set_function is to Set Function Info for Function Layer. set_all is to to Set Info for Both Machine & Funct...
false
true
f76649b160b6727f2a1b5e1c64eb340f86c22c6b
3,528
py
Python
backend/settings.py
sougannkyou/AppSimulator
0803d557b0451b049f11e90c258ec11f7074a2ac
[ "MIT" ]
6
2018-10-21T03:41:03.000Z
2021-12-17T11:09:50.000Z
backend/settings.py
sougannkyou/AppSimulator
0803d557b0451b049f11e90c258ec11f7074a2ac
[ "MIT" ]
null
null
null
backend/settings.py
sougannkyou/AppSimulator
0803d557b0451b049f11e90c258ec11f7074a2ac
[ "MIT" ]
4
2020-01-30T14:46:50.000Z
2021-12-04T01:07:46.000Z
# coding=utf-8 """ Django settings for backend project. Generated by 'django-admin startproject' using Django 1.8.17. """ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # SECURITY WARNING: keep the secret key us...
28.918033
71
0.688492
import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = 'sq!f#iw20wk@lsd7p2j9#8hz&uqq8-_358&3=_6@i&$=2pe4ce' # DEBUG = True DEBUG = False ALLOWED_HOSTS = ['127.0.0.1', '*'] # django-celery # Application definition INSTALLED_APPS = ( 'django.contrib.auth', 'django.c...
true
true
f7664a66546059db86c391e50752d4f9071ced54
28,022
py
Python
chris_backend/plugininstances/services/manager.py
Aaishpra/ChRIS_ultron_backEnd
7752955473037917e9d547829b6b1af04eca0278
[ "MIT" ]
null
null
null
chris_backend/plugininstances/services/manager.py
Aaishpra/ChRIS_ultron_backEnd
7752955473037917e9d547829b6b1af04eca0278
[ "MIT" ]
null
null
null
chris_backend/plugininstances/services/manager.py
Aaishpra/ChRIS_ultron_backEnd
7752955473037917e9d547829b6b1af04eca0278
[ "MIT" ]
1
2021-10-11T23:00:55.000Z
2021-10-11T23:00:55.000Z
""" Plugin instance app manager module that provides functionality to run and check the execution status of a plugin instance's app (ChRIS / pfcon interface). NOTE: This module is executed as part of an asynchronous celery worker. For instance, to debug 'check_plugin_instance_app_exec_status' method synchrono...
46.164745
90
0.597102
import logging import os import re import io import time import json import zipfile from pfconclient import client as pfcon from pfconclient.exceptions import PfconRequestException from django.utils import timezone from django.conf import settings from django.db.utils import IntegrityError from core.swiftmanager imp...
true
true
f7664a99eb7bf85b8a0315e36ccad4c88609e94e
788
py
Python
profiles_api/migrations/0002_profilefeeditem.py
Simon230/profiles-rest-api
894b8df24a9ec4edd9d2b0bb66c5f53a20acd8de
[ "MIT" ]
null
null
null
profiles_api/migrations/0002_profilefeeditem.py
Simon230/profiles-rest-api
894b8df24a9ec4edd9d2b0bb66c5f53a20acd8de
[ "MIT" ]
7
2019-12-05T00:29:01.000Z
2022-02-10T08:22:23.000Z
profiles_api/migrations/0002_profilefeeditem.py
Simon230/profiles-rest-api
894b8df24a9ec4edd9d2b0bb66c5f53a20acd8de
[ "MIT" ]
null
null
null
# Generated by Django 2.2 on 2019-10-01 09:08 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('profiles_api', '0001_initial'), ] operations = [ migrations.CreateModel( ...
31.52
126
0.633249
from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('profiles_api', '0001_initial'), ] operations = [ migrations.CreateModel( name='profileFeedItem', f...
true
true
f7664a9ef8fcabac51daf002131f47880ff2219e
2,071
py
Python
libnd4j/include/graph/generated/nd4j/graph/UIAddName.py
eric-erki/deeplearning4j
b9d462f66879e9315767b70190bd2ab31b9a3275
[ "Apache-2.0" ]
null
null
null
libnd4j/include/graph/generated/nd4j/graph/UIAddName.py
eric-erki/deeplearning4j
b9d462f66879e9315767b70190bd2ab31b9a3275
[ "Apache-2.0" ]
null
null
null
libnd4j/include/graph/generated/nd4j/graph/UIAddName.py
eric-erki/deeplearning4j
b9d462f66879e9315767b70190bd2ab31b9a3275
[ "Apache-2.0" ]
null
null
null
# /* ****************************************************************************** # * Copyright (c) 2021 Deeplearning4j Contributors # * # * This program and the accompanying materials are made available under the # * terms of the Apache License, Version 2.0 which is available at # * https://www.apache.org...
37.654545
132
0.640753
import flatbuffers class UIAddName(object): __slots__ = ['_tab'] @classmethod def GetRootAsUIAddName(cls, buf, offset): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) x = UIAddName() x.Init(buf, n + offset) return x def Init(self, buf, pos):...
true
true
f7664b05f176b909548e63b80ac4634776a3c5e9
2,121
py
Python
Tests/nearest_neighbor.py
ProjetEtudeMLFI/TensorFI
961a0205ec90935a238c58112e8119c34a70ba7c
[ "MIT" ]
null
null
null
Tests/nearest_neighbor.py
ProjetEtudeMLFI/TensorFI
961a0205ec90935a238c58112e8119c34a70ba7c
[ "MIT" ]
null
null
null
Tests/nearest_neighbor.py
ProjetEtudeMLFI/TensorFI
961a0205ec90935a238c58112e8119c34a70ba7c
[ "MIT" ]
null
null
null
#!/usr/bin/python ''' A nearest neighbor learning algorithm example using TensorFlow library. This example is using the MNIST database of handwritten digits (http://yann.lecun.com/exdb/mnist/) Author: Aymeric Damien Project: https://github.com/aymericdamien/TensorFlow-Examples/ ''' from __future__ import print_functi...
32.136364
75
0.700141
from __future__ import print_function import numpy as np import tensorflow as tf import TensorFI as ti from tensorflow.examples.tutorials.mnist import input_data mnist = input_data.read_data_sets("/tmp/data/", one_hot=True) Xtr, Ytr = mnist.train.next_batch(5000) Xte, Yte = mnist.test.next_batch(200) xtr = tf.pl...
true
true
f7664b1b50a6ae002aef08b7aea7d1b286f321c7
2,904
py
Python
pyscf/tools/test/test_molden.py
willwheelera/pyscf
1de7f6fb8403bb0769a05eade2c2e7aa4f8a160e
[ "Apache-2.0" ]
null
null
null
pyscf/tools/test/test_molden.py
willwheelera/pyscf
1de7f6fb8403bb0769a05eade2c2e7aa4f8a160e
[ "Apache-2.0" ]
null
null
null
pyscf/tools/test/test_molden.py
willwheelera/pyscf
1de7f6fb8403bb0769a05eade2c2e7aa4f8a160e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2014-2018 The PySCF Developers. 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 # # U...
31.225806
80
0.635675
import unittest import copy import tempfile from pyscf import lib, gto, scf from pyscf.tools import molden def setUpModule(): global mol, mf mol = gto.Mole() mol.atom = ''' H 0.0000000000 0.0000000000 0.0000000000 F 0.0000000000 0.0000000000 0.9000000000 ''' mol.basis ...
true
true
f7664b56dfeaa2e73a36e968c6f0936319a2c61f
2,602
py
Python
forloopfund.py
jmike1211/bitfinex-api-py
60915d24f0425c8b66388ceaaf1c7bf901a01a5d
[ "Apache-2.0" ]
2
2020-04-29T08:30:27.000Z
2020-12-07T10:54:18.000Z
forloopfund.py
jmike1211/bitfinex-api-py
60915d24f0425c8b66388ceaaf1c7bf901a01a5d
[ "Apache-2.0" ]
null
null
null
forloopfund.py
jmike1211/bitfinex-api-py
60915d24f0425c8b66388ceaaf1c7bf901a01a5d
[ "Apache-2.0" ]
null
null
null
import time import os import sys import asyncio import functools from bfxapi import Client from bfxmongo import useMongo from config import Config from calfundingrate import calRate sys.path.append('bfxapi') from models import FundingCreditModel API_KEY = Config.config()["bfxKey"] API_SECRET = Config.config()["bfx...
28.593407
81
0.683705
import time import os import sys import asyncio import functools from bfxapi import Client from bfxmongo import useMongo from config import Config from calfundingrate import calRate sys.path.append('bfxapi') from models import FundingCreditModel API_KEY = Config.config()["bfxKey"] API_SECRET = Config.config()["bfx...
true
true
f7664be93b485997db3cf7989dddd4a461ec1ccc
533
py
Python
examples/tube_status.py
thevalenciandev/tflclient
cbfc06631a5a23c05105684c7a25f7a09b88b4b2
[ "MIT" ]
null
null
null
examples/tube_status.py
thevalenciandev/tflclient
cbfc06631a5a23c05105684c7a25f7a09b88b4b2
[ "MIT" ]
null
null
null
examples/tube_status.py
thevalenciandev/tflclient
cbfc06631a5a23c05105684c7a25f7a09b88b4b2
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from tflclient import tflclient tube_status = tflclient.get_mode_status('tube') print('Tube status:') for line in tube_status: statuses = [st.statusSeverityDescription for st in line.lineStatuses] disruption_details = {'detail': st.reason for st in line.lineStatu...
33.3125
75
0.666041
from tflclient import tflclient tube_status = tflclient.get_mode_status('tube') print('Tube status:') for line in tube_status: statuses = [st.statusSeverityDescription for st in line.lineStatuses] disruption_details = {'detail': st.reason for st in line.lineStatuses if st.statusSeve...
true
true
f7664c0791a129be0acebf5f9dcd35c0e19fdf4c
6,213
py
Python
modules/optimizations/invoke_member.py
OMGhozlan/deobshell
701c8a09f9258442255013605185ed0a7fbac704
[ "MIT" ]
null
null
null
modules/optimizations/invoke_member.py
OMGhozlan/deobshell
701c8a09f9258442255013605185ed0a7fbac704
[ "MIT" ]
null
null
null
modules/optimizations/invoke_member.py
OMGhozlan/deobshell
701c8a09f9258442255013605185ed0a7fbac704
[ "MIT" ]
null
null
null
# coding=utf-8 import os import pathlib from xml.etree.ElementTree import Element from ..ast import create_ast_file, read_ast_file from ..logger import log_debug from ..utils import replace_node, delete_node, create_array_literal_values def opt_invoke_expression(ast): ret = False p = pathlib.Path("tmp.ps1") ...
38.116564
171
0.51859
import os import pathlib from xml.etree.ElementTree import Element from ..ast import create_ast_file, read_ast_file from ..logger import log_debug from ..utils import replace_node, delete_node, create_array_literal_values def opt_invoke_expression(ast): ret = False p = pathlib.Path("tmp.ps1") for node i...
true
true
f7664c41fb409edde21111953b30d37f664dcec1
974
py
Python
service_compute_lamda/LinuxAcademyLab1/lambda_handler.py
anandibhat/awssa02
855fff34e423d408b0449d194220882ae99e8062
[ "MIT" ]
24
2020-01-29T12:12:30.000Z
2022-02-20T18:28:22.000Z
service_compute_lamda/LinuxAcademyLab1/lambda_handler.py
anandibhat/awssa02
855fff34e423d408b0449d194220882ae99e8062
[ "MIT" ]
null
null
null
service_compute_lamda/LinuxAcademyLab1/lambda_handler.py
anandibhat/awssa02
855fff34e423d408b0449d194220882ae99e8062
[ "MIT" ]
10
2020-01-29T16:11:46.000Z
2022-02-10T11:38:48.000Z
import os import tempfile import boto3 from PIL import Image s3 = boto3.client('s3') DEST_BUCKET = os.environ['DEST_BUCKET'] SIZE = 128, 128 def lambda_handler(event, context): for record in event['Records']: source_bucket = record['s3']['bucket']['name'] key = record['s3']['object']['key'] ...
30.4375
74
0.663244
import os import tempfile import boto3 from PIL import Image s3 = boto3.client('s3') DEST_BUCKET = os.environ['DEST_BUCKET'] SIZE = 128, 128 def lambda_handler(event, context): for record in event['Records']: source_bucket = record['s3']['bucket']['name'] key = record['s3']['object']['key'] ...
true
true
f7664c4b4337d335162824c13f025f4ddc04cb74
2,600
py
Python
chzhshch/inner_package/show.py
hpzhen/ChZhShCh
a5af067e342cf734fafb827eab17462c4bd6f74d
[ "Apache-2.0" ]
null
null
null
chzhshch/inner_package/show.py
hpzhen/ChZhShCh
a5af067e342cf734fafb827eab17462c4bd6f74d
[ "Apache-2.0" ]
null
null
null
chzhshch/inner_package/show.py
hpzhen/ChZhShCh
a5af067e342cf734fafb827eab17462c4bd6f74d
[ "Apache-2.0" ]
null
null
null
# -*- coding: UTF-8 -*- import matplotlib.ticker as ticker import matplotlib.pyplot as plt import mpl_finance as mpf # from mpl_finance import quotes_historical_yahoo import numpy as np from pandas import Series, DataFrame # http://blog.csdn.net/xiaodongxiexie/article/details/53123371 class PlotShow(object): def ...
30.588235
119
0.594231
import matplotlib.ticker as ticker import matplotlib.pyplot as plt import mpl_finance as mpf import numpy as np from pandas import Series, DataFrame class PlotShow(object): def __init__(self, date_tickers, title): self.date_tickers = date_tickers self.xaxis_cycle = 30 self.width = 0.3 ...
true
true
f7664d906799c1888db83dda060d727fa933564f
5,580
py
Python
topi/python/topi/x86/pooling.py
jiangzoi/incubator-tvm
144c6f45f7217b9df2f5605e06f0903e470ac11c
[ "Apache-2.0" ]
9
2019-12-17T08:03:54.000Z
2022-01-19T02:34:23.000Z
topi/python/topi/x86/pooling.py
jiangzoi/incubator-tvm
144c6f45f7217b9df2f5605e06f0903e470ac11c
[ "Apache-2.0" ]
2
2020-06-18T21:15:42.000Z
2020-06-24T17:38:37.000Z
topi/python/topi/x86/pooling.py
jiangzoi/incubator-tvm
144c6f45f7217b9df2f5605e06f0903e470ac11c
[ "Apache-2.0" ]
3
2020-10-04T20:30:18.000Z
2022-01-24T18:03:52.000Z
# 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 u...
34.658385
97
0.607168
from tvm import te from .. import tag def _parallel_sch(sch, oshape, do_vectorize=False): def vectorize(fused_axis, num_parallel_axis, vectorize_limit=64): reorder_axis = [fused_axis] for i in range(num_parallel_axis, len(sch.op.axis) - 1): reorder_axis.append(sch.op.axis[i]) kw...
true
true
f7664e66ab41d3e085af1ef55bbe07ce4b00a3cc
354
py
Python
config.py
kelvinrono/News_Api
df58735a67fe2be6dbae76120106e0be7d2ec641
[ "MIT" ]
null
null
null
config.py
kelvinrono/News_Api
df58735a67fe2be6dbae76120106e0be7d2ec641
[ "MIT" ]
null
null
null
config.py
kelvinrono/News_Api
df58735a67fe2be6dbae76120106e0be7d2ec641
[ "MIT" ]
null
null
null
import os class Config: NEWS_API_BASE_URL= 'https://newsapi.org/v2/everything?q={}&apiKey={}' NEWS_API_KEY = os.environ.get('NEWS_API_KEY') SECRET_KEY = os.environ.get('SECRET_KEY') class ProdConfig(Config): pass class DevConfig(Config): DEBUG = True config_options = { 'development': DevConf...
20.823529
73
0.694915
import os class Config: NEWS_API_BASE_URL= 'https://newsapi.org/v2/everything?q={}&apiKey={}' NEWS_API_KEY = os.environ.get('NEWS_API_KEY') SECRET_KEY = os.environ.get('SECRET_KEY') class ProdConfig(Config): pass class DevConfig(Config): DEBUG = True config_options = { 'development': DevConf...
true
true
f7664e9fb161a5917fa5fd55ad2851cfefd9f50a
3,521
py
Python
art.py
sacert/Hex
37180f558b7086ad10c07431ebfece6306db5ecf
[ "MIT" ]
28
2018-02-02T23:23:13.000Z
2022-01-07T21:29:18.000Z
art.py
sygops/Hex
37180f558b7086ad10c07431ebfece6306db5ecf
[ "MIT" ]
null
null
null
art.py
sygops/Hex
37180f558b7086ad10c07431ebfece6306db5ecf
[ "MIT" ]
1
2018-02-03T10:21:26.000Z
2018-02-03T10:21:26.000Z
import binascii import math import turtle from Tkinter import * from PIL import Image # globals FONT_SIZE = 4 FILE_NAME = "input.wav" # Name of file to get hex values from IMAGE_NAME = "input.png" # Name of image file DATA_OFFSET = 32 # Where to start reading data from (mp3 music data starts at 32 by...
30.353448
95
0.635047
import binascii import math import turtle from Tkinter import * from PIL import Image FONT_SIZE = 4 FILE_NAME = "input.wav" IMAGE_NAME = "input.png" DATA_OFFSET = 32 img = Image.open(IMAGE_NAME) image = img.load() turtle.setup(img.size[0],img.size[1]) wn = turtle.Screen() tess = turtle.Turtle() tes...
true
true
f7664f94b540f840a28ddfd8895eef4686eb8f67
1,773
py
Python
3. search_service/mission6/robot/utility.py
yusenjeng/amazon_crawler
ace8a5dd679f25464905c67a242bab0d8dc095a5
[ "MIT" ]
null
null
null
3. search_service/mission6/robot/utility.py
yusenjeng/amazon_crawler
ace8a5dd679f25464905c67a242bab0d8dc095a5
[ "MIT" ]
null
null
null
3. search_service/mission6/robot/utility.py
yusenjeng/amazon_crawler
ace8a5dd679f25464905c67a242bab0d8dc095a5
[ "MIT" ]
null
null
null
import json import nltk from nltk.stem import WordNetLemmatizer from nltk.corpus import words from nltk.corpus import stopwords from nltk.tokenize import word_tokenize def normalizeUrl(url): idx = url.find('url=') url = url[idx+4:] url = url.replace('%3A', ':') url = url.replace('%2F', '/') idx = ...
22.730769
65
0.588268
import json import nltk from nltk.stem import WordNetLemmatizer from nltk.corpus import words from nltk.corpus import stopwords from nltk.tokenize import word_tokenize def normalizeUrl(url): idx = url.find('url=') url = url[idx+4:] url = url.replace('%3A', ':') url = url.replace('%2F', '/') idx = ...
true
true
f7664fb49a6759f7c8bc4ab86bc2d069dd3f1986
534
py
Python
PreprocessData/all_class_files/ItemAvailability.py
wkid-neu/Schema
4854720a15894dd814691a55e03329ecbbb6f558
[ "MIT" ]
3
2021-11-06T12:29:05.000Z
2022-03-22T12:48:55.000Z
PreprocessData/all_class_files/ItemAvailability.py
DylanNEU/Schema
4854720a15894dd814691a55e03329ecbbb6f558
[ "MIT" ]
null
null
null
PreprocessData/all_class_files/ItemAvailability.py
DylanNEU/Schema
4854720a15894dd814691a55e03329ecbbb6f558
[ "MIT" ]
1
2021-11-06T12:29:12.000Z
2021-11-06T12:29:12.000Z
from PreprocessData.all_class_files.Enumeration import Enumeration import global_data class ItemAvailability(Enumeration): def __init__(self, additionalType=None, alternateName=None, description=None, disambiguatingDescription=None, identifier=None, image=None, mainEntityOfPage=None, name=None, potentialActi...
66.75
223
0.816479
from PreprocessData.all_class_files.Enumeration import Enumeration import global_data class ItemAvailability(Enumeration): def __init__(self, additionalType=None, alternateName=None, description=None, disambiguatingDescription=None, identifier=None, image=None, mainEntityOfPage=None, name=None, potentialActi...
true
true
f7665019c82e3ed4046c8a7cf7ee420203f92514
420
py
Python
38.py
RafaelHuang87/Leet-Code-Practice
7754dcee38ffda18a5759113ef06d7becf4fe728
[ "MIT" ]
null
null
null
38.py
RafaelHuang87/Leet-Code-Practice
7754dcee38ffda18a5759113ef06d7becf4fe728
[ "MIT" ]
null
null
null
38.py
RafaelHuang87/Leet-Code-Practice
7754dcee38ffda18a5759113ef06d7becf4fe728
[ "MIT" ]
null
null
null
class Solution: def countAndSay(self, n: int) -> str: s = '1' for _ in range(1, n): nextS = '' countC = 1 for i in range(1, len(s) + 1): if i == len(s) or s[i] != s[i - 1]: nextS += str(countC) + s[i - 1] cou...
30
51
0.342857
class Solution: def countAndSay(self, n: int) -> str: s = '1' for _ in range(1, n): nextS = '' countC = 1 for i in range(1, len(s) + 1): if i == len(s) or s[i] != s[i - 1]: nextS += str(countC) + s[i - 1] cou...
true
true
f7665052d3321a0f1b4c8a88f05c236a3bbc3e27
428
py
Python
dotloop/folder.py
spentaur/dotloop-python
5374ab5f5e16f9b826438a9c4f051a4be53d433b
[ "MIT" ]
null
null
null
dotloop/folder.py
spentaur/dotloop-python
5374ab5f5e16f9b826438a9c4f051a4be53d433b
[ "MIT" ]
null
null
null
dotloop/folder.py
spentaur/dotloop-python
5374ab5f5e16f9b826438a9c4f051a4be53d433b
[ "MIT" ]
1
2021-07-28T14:28:17.000Z
2021-07-28T14:28:17.000Z
from .bases import DotloopObject from .document import Document class Folder(DotloopObject, id_field='folder_id'): @property def document(self): return Document(parent=self) def get(self, **kwargs): return self.fetch('get', params=kwargs) def patch(self, **kwargs): return sel...
23.777778
50
0.658879
from .bases import DotloopObject from .document import Document class Folder(DotloopObject, id_field='folder_id'): @property def document(self): return Document(parent=self) def get(self, **kwargs): return self.fetch('get', params=kwargs) def patch(self, **kwargs): return sel...
true
true
f7665224268d7143d47eea4b00447c47ab9df220
1,094
py
Python
mmdet/datasets/cityscapes_ps.py
MSiam/video_class_agnostic_segmentation
c4614fe675e8a5352012f603c15bc24fb43d690c
[ "Apache-2.0" ]
15
2021-03-30T07:01:52.000Z
2022-02-24T06:35:27.000Z
mmdet/datasets/cityscapes_ps.py
MSiam/video_class_agnostic_segmentation
c4614fe675e8a5352012f603c15bc24fb43d690c
[ "Apache-2.0" ]
1
2021-06-29T11:32:14.000Z
2021-06-29T14:18:32.000Z
mmdet/datasets/cityscapes_ps.py
MSiam/video_class_agnostic_segmentation
c4614fe675e8a5352012f603c15bc24fb43d690c
[ "Apache-2.0" ]
3
2021-05-11T13:48:45.000Z
2021-11-12T01:21:28.000Z
from .cityscapes import CityscapesDataset from .registry import DATASETS import os.path as osp @DATASETS.register_module class CityscapesPanopticDataset(CityscapesDataset): """ Cityscapes/Carla Dataset loading semantic segmentation without Instance support """ def prepare_train_img(self, idx): ...
32.176471
63
0.64351
from .cityscapes import CityscapesDataset from .registry import DATASETS import os.path as osp @DATASETS.register_module class CityscapesPanopticDataset(CityscapesDataset): def prepare_train_img(self, idx): img_info = self.img_infos[idx] ann_info = self.get_ann_info(idx) results = dict(img...
true
true
f7665308a6e3b3cd4d7c29a9b356d3b7175fec29
1,038
py
Python
kubernetes/test/test_v1_subject_access_review_spec.py
Scalr/kubernetes-client-python
07442bdb76f0876ec96c0b0da6f9c4b06d7e5e38
[ "Apache-2.0" ]
3
2019-05-19T05:05:37.000Z
2020-03-20T04:56:20.000Z
kubernetes/test/test_v1_subject_access_review_spec.py
Scalr/kubernetes-client-python
07442bdb76f0876ec96c0b0da6f9c4b06d7e5e38
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1_subject_access_review_spec.py
Scalr/kubernetes-client-python
07442bdb76f0876ec96c0b0da6f9c4b06d7e5e38
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.13.5 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys i...
23.066667
105
0.73025
from __future__ import absolute_import import os import sys import unittest import kubernetes.client from kubernetes.client.rest import ApiException from kubernetes.client.models.v1_subject_access_review_spec import V1SubjectAccessReviewSpec class TestV1SubjectAccessReviewSpec(unittest.TestCase): def setUp(...
true
true
f76654f76e5ffa70cc0f5a00ddbd99e7accdf5bd
19,565
py
Python
tests/tensorflow/hooks/test_mirrored_strategy.py
vandanavk/sagemaker-debugger
5246cda198295aa1dd1656ad32b30c4bb1e2aec4
[ "Apache-2.0" ]
null
null
null
tests/tensorflow/hooks/test_mirrored_strategy.py
vandanavk/sagemaker-debugger
5246cda198295aa1dd1656ad32b30c4bb1e2aec4
[ "Apache-2.0" ]
null
null
null
tests/tensorflow/hooks/test_mirrored_strategy.py
vandanavk/sagemaker-debugger
5246cda198295aa1dd1656ad32b30c4bb1e2aec4
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
39.525253
107
0.661181
from __future__ import absolute_import, division, print_function import numpy as np import pytest import tensorflow as tf from tensorflow.python.client import device_lib from tests.tensorflow.utils import create_trial_fast_refresh import smdebug.tensorflow as smd from smdebug.core.collection import CollectionKeys fr...
true
true
f766556bf5a0ba415a15a336160e11ff3387efb1
1,796
py
Python
venv/lib/python2.7/site-packages/reportlab/__init__.py
Christian-Castro/castro_odoo8
8247fdb20aa39e043b6fa0c4d0af509462ab3e00
[ "Unlicense" ]
3
2021-01-23T15:18:57.000Z
2022-01-24T13:49:08.000Z
venv/lib/python2.7/site-packages/reportlab/__init__.py
Christian-Castro/castro_odoo8
8247fdb20aa39e043b6fa0c4d0af509462ab3e00
[ "Unlicense" ]
null
null
null
venv/lib/python2.7/site-packages/reportlab/__init__.py
Christian-Castro/castro_odoo8
8247fdb20aa39e043b6fa0c4d0af509462ab3e00
[ "Unlicense" ]
1
2021-05-23T09:27:25.000Z
2021-05-23T09:27:25.000Z
#Copyright ReportLab Europe Ltd. 2000-2018 #see license.txt for license details __doc__="""The Reportlab PDF generation library.""" Version = "3.5.59" __version__=Version __date__='20210104' import sys, os __min_python_version__ = (3,6) if sys.version_info[0:2]!=(2, 7) and sys.version_info< __min_python_version__: ...
30.440678
98
0.69265
__doc__="""The Reportlab PDF generation library.""" Version = "3.5.59" __version__=Version __date__='20210104' import sys, os __min_python_version__ = (3,6) if sys.version_info[0:2]!=(2, 7) and sys.version_info< __min_python_version__: raise ImportError("""reportlab requires Python 2.7+ or %s.%s+; other versions ...
true
true
f76655ad9928b491355196d095f989fb9eedf31c
600
py
Python
src/the_tale/the_tale/linguistics/migrations/0030_move_angel_templates.py
Alacrate/the-tale
43b211f3a99e93964e95abc20a8ed649a205ffcf
[ "BSD-3-Clause" ]
85
2017-11-21T12:22:02.000Z
2022-03-27T23:07:17.000Z
src/the_tale/the_tale/linguistics/migrations/0030_move_angel_templates.py
Alacrate/the-tale
43b211f3a99e93964e95abc20a8ed649a205ffcf
[ "BSD-3-Clause" ]
545
2017-11-04T14:15:04.000Z
2022-03-27T14:19:27.000Z
src/the_tale/the_tale/linguistics/migrations/0030_move_angel_templates.py
Alacrate/the-tale
43b211f3a99e93964e95abc20a8ed649a205ffcf
[ "BSD-3-Clause" ]
45
2017-11-11T12:36:30.000Z
2022-02-25T06:10:44.000Z
# Generated by Django 3.0.7 on 2020-06-18 13:56 from django.db import migrations def move(apps, schema_editor): Template = apps.get_model("linguistics", "Template") Template.objects.filter(key=240009).update(key=240008) Template.objects.filter(key=240011).update(key=240010) Template.objects.filter(k...
25
60
0.711667
from django.db import migrations def move(apps, schema_editor): Template = apps.get_model("linguistics", "Template") Template.objects.filter(key=240009).update(key=240008) Template.objects.filter(key=240011).update(key=240010) Template.objects.filter(key=240013).update(key=240012) Template.objec...
true
true
f76655e25518eee816deab4966895c7e6ea8a9a2
1,608
py
Python
aliyun-python-sdk-imm/aliyunsdkimm/request/v20170906/ListProjectsRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-imm/aliyunsdkimm/request/v20170906/ListProjectsRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-imm/aliyunsdkimm/request/v20170906/ListProjectsRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "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 u...
36.545455
74
0.754975
from aliyunsdkcore.request import RpcRequest from aliyunsdkimm.endpoint import endpoint_data class ListProjectsRequest(RpcRequest): def __init__(self): RpcRequest.__init__(self, 'imm', '2017-09-06', 'ListProjects','imm') self.set_method('POST') if hasattr(self, "endpoint_map"): setattr(self, "endpoint_m...
true
true
f76656f5b718607b01e2bc641043ee4d2b466eb4
2,843
py
Python
sdk/python/tests/integration/feature_repos/universal/data_sources/snowflake.py
danilopeixoto/feast
57d134355364654a2275b477b3b82b149f0779ca
[ "Apache-2.0" ]
null
null
null
sdk/python/tests/integration/feature_repos/universal/data_sources/snowflake.py
danilopeixoto/feast
57d134355364654a2275b477b3b82b149f0779ca
[ "Apache-2.0" ]
null
null
null
sdk/python/tests/integration/feature_repos/universal/data_sources/snowflake.py
danilopeixoto/feast
57d134355364654a2275b477b3b82b149f0779ca
[ "Apache-2.0" ]
null
null
null
import os import uuid from typing import Dict, List, Optional import pandas as pd from feast import SnowflakeSource from feast.data_source import DataSource from feast.infra.offline_stores.snowflake import SnowflakeOfflineStoreConfig from feast.infra.offline_stores.snowflake_source import SavedDatasetSnowflakeStorage...
34.253012
84
0.696096
import os import uuid from typing import Dict, List, Optional import pandas as pd from feast import SnowflakeSource from feast.data_source import DataSource from feast.infra.offline_stores.snowflake import SnowflakeOfflineStoreConfig from feast.infra.offline_stores.snowflake_source import SavedDatasetSnowflakeStorage...
true
true
f76656f6757464e3da5ce3cc3f0fd012c1341520
948
py
Python
examples/demo/benchmark_fps.py
rainprob/GibsonEnv
e0d0bc614713c676cb303bf9f11ca6a98713e0e0
[ "MIT" ]
731
2018-02-26T18:35:05.000Z
2022-03-23T04:00:09.000Z
examples/demo/benchmark_fps.py
Shubodh/GibsonEnv
38274874d7c2c2a87efdb6ee529f2b366c5219de
[ "MIT" ]
111
2018-04-19T01:00:22.000Z
2022-03-18T17:43:50.000Z
examples/demo/benchmark_fps.py
Shubodh/GibsonEnv
38274874d7c2c2a87efdb6ee529f2b366c5219de
[ "MIT" ]
153
2018-02-27T04:38:40.000Z
2022-03-28T08:10:39.000Z
from gibson.envs.husky_env import HuskyNavigateEnv from gibson.utils.play import play from gibson.core.render.profiler import Profiler import os config_file = os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', 'configs', 'benchmark.yaml') print(config_file) if __name__ == '__main__': import argparse...
35.111111
141
0.712025
from gibson.envs.husky_env import HuskyNavigateEnv from gibson.utils.play import play from gibson.core.render.profiler import Profiler import os config_file = os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', 'configs', 'benchmark.yaml') print(config_file) if __name__ == '__main__': import argparse...
true
true
f766579f4afb0bd3bd9a0ec8cb1551a291202292
3,136
py
Python
genshi/tests/util.py
cnfilms/genshi
404e525d7669650d18876b737446daed1efd7a28
[ "BSD-3-Clause" ]
1
2021-07-24T14:49:40.000Z
2021-07-24T14:49:40.000Z
genshi/tests/util.py
cnfilms/genshi
404e525d7669650d18876b737446daed1efd7a28
[ "BSD-3-Clause" ]
2
2022-03-09T11:14:07.000Z
2022-03-09T14:07:47.000Z
test/genshi/venv/cpython3.11-d52597b1179a-compat-f6a835d45d46-bm-genshi/lib/python3.11/site-packages/genshi/tests/util.py
sebawild/cpython
874ba1a9c948af33de2ad229df42e03dc516f0a8
[ "0BSD" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2006,2009 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://genshi.edgewall.org/wiki/License. # # This software consist...
32.666667
67
0.641263
import doctest import unittest from genshi import util from genshi.tests.test_utils import doctest_suite from genshi.util import LRUCache class LRUCacheTestCase(unittest.TestCase): def test_setitem(self): cache = LRUCache(2) cache['A'] = 0 self.assertEqual(1, len(cache)) self.as...
true
true
f7665a1aae206884abbb975f9a2c18bd3d13913e
520
py
Python
biopipen/core/proc.py
pwwang/bioprocs
4055a62eed8ef4fba0a5f1be430af72a9e22143d
[ "MIT" ]
4
2018-01-16T08:25:53.000Z
2019-01-03T23:41:31.000Z
biopipen/core/proc.py
pwwang/bioprocs
4055a62eed8ef4fba0a5f1be430af72a9e22143d
[ "MIT" ]
3
2018-05-22T20:11:46.000Z
2019-08-19T17:37:04.000Z
biopipen/core/proc.py
pwwang/bioprocs
4055a62eed8ef4fba0a5f1be430af72a9e22143d
[ "MIT" ]
1
2019-01-14T23:14:24.000Z
2019-01-14T23:14:24.000Z
"""Provides a base class for the processes to subclass""" from liquid.defaults import SEARCH_PATHS from pipen import Proc as PipenProc from .filters import filtermanager from .defaults import BIOPIPEN_DIR, REPORT_DIR class Proc(PipenProc): """Base class for all processes in biopipen to subclass""" template_...
27.368421
62
0.684615
from liquid.defaults import SEARCH_PATHS from pipen import Proc as PipenProc from .filters import filtermanager from .defaults import BIOPIPEN_DIR, REPORT_DIR class Proc(PipenProc): template_opts = { "globals": { "biopipen_dir": str(BIOPIPEN_DIR), }, "filters": filtermanager....
true
true
f7665a330aae5978b03d12a32ee8ac6292bbc825
5,214
py
Python
policy.py
jtylers/libertarian_policy_generator
1b21e5a78ddd8340db45634a8e4fbde2b2fcc44e
[ "MIT" ]
1
2017-11-18T08:44:41.000Z
2017-11-18T08:44:41.000Z
policy.py
jtylers/libertarian_policy_generator
1b21e5a78ddd8340db45634a8e4fbde2b2fcc44e
[ "MIT" ]
null
null
null
policy.py
jtylers/libertarian_policy_generator
1b21e5a78ddd8340db45634a8e4fbde2b2fcc44e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # coding=utf-8 from random import choice subject = ( "five year old children", "progressive liberals", "anyone", "Gary Johnson and Bill Weld", "The Mises Institute", "The CATO institue", "Austin Petersen and the Libertarian Republic", "radical conservatives", ...
24.478873
114
0.59532
from random import choice subject = ( "five year old children", "progressive liberals", "anyone", "Gary Johnson and Bill Weld", "The Mises Institute", "The CATO institue", "Austin Petersen and the Libertarian Republic", "radical conservatives", "ethnic minorities", "convicted f...
true
true
f7665adf1c7355f1f471ce67647f291d17b58f7a
1,549
py
Python
unlockededu/worksheets/models.py
toonarmycaptain/website-1
6d3bb33b2ff3594c677b87f4cb2f0a25e5dce7ec
[ "BSD-3-Clause" ]
1
2019-06-10T04:38:48.000Z
2019-06-10T04:38:48.000Z
unlockededu/worksheets/models.py
toonarmycaptain/website-1
6d3bb33b2ff3594c677b87f4cb2f0a25e5dce7ec
[ "BSD-3-Clause" ]
1
2019-05-21T15:59:48.000Z
2019-05-21T15:59:48.000Z
unlockededu/worksheets/models.py
toonarmycaptain/website-1
6d3bb33b2ff3594c677b87f4cb2f0a25e5dce7ec
[ "BSD-3-Clause" ]
1
2019-05-14T21:01:07.000Z
2019-05-14T21:01:07.000Z
from django.db import models class Subject(models.Model): name = models.CharField(max_length=256) def __str__(self): return self.name class Tag(models.Model): name = models.CharField(max_length=256) subject = models.ForeignKey("Subject", on_delete=models.CASCADE) def __str__(self): ...
26.254237
72
0.641059
from django.db import models class Subject(models.Model): name = models.CharField(max_length=256) def __str__(self): return self.name class Tag(models.Model): name = models.CharField(max_length=256) subject = models.ForeignKey("Subject", on_delete=models.CASCADE) def __str__(self): ...
true
true
f7665b29e40a75f4ca2e5095eef737fd9370e081
1,760
py
Python
bioimageloader/collections/__init__.py
LaboratoryOpticsBiosciences/bioimageloader
635916cfceb154f4c72f176c152b7f8d9047eff2
[ "BSD-3-Clause" ]
null
null
null
bioimageloader/collections/__init__.py
LaboratoryOpticsBiosciences/bioimageloader
635916cfceb154f4c72f176c152b7f8d9047eff2
[ "BSD-3-Clause" ]
null
null
null
bioimageloader/collections/__init__.py
LaboratoryOpticsBiosciences/bioimageloader
635916cfceb154f4c72f176c152b7f8d9047eff2
[ "BSD-3-Clause" ]
null
null
null
"""Collection of public bioimage datasets """ # import should not be sorted by isort # #--- MaskDataset (mask anno) ---# # # full anno # instance from ._dsb2018 import DSB2018 from ._stardist import StarDist from ._compath import ComputationalPathology from ._frunet import FRUNet from ._s_bsst265 import S_BSST26...
22.857143
60
0.7
from ._dsb2018 import DSB2018 from ._stardist import StarDist from ._compath import ComputationalPathology from ._frunet import FRUNet from ._s_bsst265 import S_BSST265 from ._bbbc006 import BBBC006 from ._bbbc020 import BBBC020 from ._bbbc039 import BBBC039 from ._cellpose import Cellpose from ._livecell import LIVEC...
true
true
f7665bda743683a01078ee4bd83084bfbea121ce
1,430
py
Python
shorter/views/main.py
spookey/shorter
11787432c8fe7c9f19a1fc51f415e711aac437f2
[ "MIT" ]
1
2019-10-29T03:41:43.000Z
2019-10-29T03:41:43.000Z
shorter/views/main.py
spookey/shorter
11787432c8fe7c9f19a1fc51f415e711aac437f2
[ "MIT" ]
null
null
null
shorter/views/main.py
spookey/shorter
11787432c8fe7c9f19a1fc51f415e711aac437f2
[ "MIT" ]
null
null
null
from collections import namedtuple from flask import ( Blueprint, abort, current_app, make_response, render_template, request, ) from shorter.forms.short import ShortCreateForm, ShortDisplayForm from shorter.models.short import Short from shorter.start.environment import DELAY_DEF from shorter...
23.064516
65
0.634965
from collections import namedtuple from flask import ( Blueprint, abort, current_app, make_response, render_template, request, ) from shorter.forms.short import ShortCreateForm, ShortDisplayForm from shorter.models.short import Short from shorter.start.environment import DELAY_DEF from shorter...
true
true
f7665be68fccd0fc9ae184d29bf7d0a01f7042f5
5,295
py
Python
ch07/simple_convnet.py
SSLAB-SSU/deep-learning-from-scratch
3609360751d67085e0963ee6d7af6d49380cd965
[ "MIT" ]
null
null
null
ch07/simple_convnet.py
SSLAB-SSU/deep-learning-from-scratch
3609360751d67085e0963ee6d7af6d49380cd965
[ "MIT" ]
null
null
null
ch07/simple_convnet.py
SSLAB-SSU/deep-learning-from-scratch
3609360751d67085e0963ee6d7af6d49380cd965
[ "MIT" ]
null
null
null
# coding: utf-8 import sys, os sys.path.append('/Users/hxxnhxx/Documents/development/deep-learning-from-scratch') # 親ディレクトリのファイルをインポートするための設定 import pickle import numpy as np from collections import OrderedDict from common.layers import * from common.gradient import numerical_gradient class SimpleConvNet: """単純な...
33.09375
111
0.547686
import sys, os sys.path.append('/Users/hxxnhxx/Documents/development/deep-learning-from-scratch') import pickle import numpy as np from collections import OrderedDict from common.layers import * from common.gradient import numerical_gradient class SimpleConvNet: def __init__(self, input_dim=(1, 28, 28), ...
true
true
f7665c57b47f1545eff629a78956ce92a872bfd9
1,963
py
Python
docs/conf.py
skoeb/pysam
5185ff940cbcc9da62fb5071ea30cfdf02518355
[ "BSD-3-Clause" ]
1
2020-09-23T12:13:52.000Z
2020-09-23T12:13:52.000Z
docs/conf.py
skoeb/pysam
5185ff940cbcc9da62fb5071ea30cfdf02518355
[ "BSD-3-Clause" ]
null
null
null
docs/conf.py
skoeb/pysam
5185ff940cbcc9da62fb5071ea30cfdf02518355
[ "BSD-3-Clause" ]
1
2020-07-08T10:13:10.000Z
2020-07-08T10:13:10.000Z
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup -------------------------------------------------------------- # If extensions (or module...
31.66129
79
0.669893
import os import sys import PySAM sys.path.insert(0, "..") master_doc = 'index' project = 'NREL-PySAM' copyright = '2019, NREL' author = 'dguittet' release = PySAM.__version__ extensions = [ 'sphinx.ext.autodoc', 'sphinx.ext.napoleon' ] autodoc_member_order = 'groupwise' templates_path = ['_templates'] exc...
true
true
f7665dd0cdc7dd05b87dc78350b6cd9b98a166a2
3,948
py
Python
scripts/fileutils/filedata.py
mallarke/JSKit
de60ff1dbb37aa5973f85c6f95b99089f8c12571
[ "Apache-2.0" ]
null
null
null
scripts/fileutils/filedata.py
mallarke/JSKit
de60ff1dbb37aa5973f85c6f95b99089f8c12571
[ "Apache-2.0" ]
null
null
null
scripts/fileutils/filedata.py
mallarke/JSKit
de60ff1dbb37aa5973f85c6f95b99089f8c12571
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python from fileutils import * from data import constants from data import Path def convertToObjc(value): return ("true" if value else "false"); class FileData(object): def __init__(self, name): prefix = constants.getFilePrefix() self.name = (name if prefix is None else prefix + n...
28.817518
119
0.558764
from fileutils import * from data import constants from data import Path def convertToObjc(value): return ("true" if value else "false"); class FileData(object): def __init__(self, name): prefix = constants.getFilePrefix() self.name = (name if prefix is None else prefix + name) self....
true
true
f7665f1ef333ab5c3704693d2f0b17b21c0baf34
3,379
py
Python
nova_extension/compute/ibm/sysprep/unattend.py
windskyer/k_nova
63579dbfcfcda5def5b588a6728bfff85ad4564e
[ "Apache-2.0" ]
null
null
null
nova_extension/compute/ibm/sysprep/unattend.py
windskyer/k_nova
63579dbfcfcda5def5b588a6728bfff85ad4564e
[ "Apache-2.0" ]
null
null
null
nova_extension/compute/ibm/sysprep/unattend.py
windskyer/k_nova
63579dbfcfcda5def5b588a6728bfff85ad4564e
[ "Apache-2.0" ]
null
null
null
# ================================================================= # ================================================================= import re from nova.compute.ibm import etree_wrapper as ElementTree from nova import exception from nova.openstack.common import log as logging from nova.openstack.common.gettextuti...
31
79
0.588044
import re from nova.compute.ibm import etree_wrapper as ElementTree from nova import exception from nova.openstack.common import log as logging from nova.openstack.common.gettextutils import _ LOG = logging.getLogger(__name__) class InvalidXml(exception.NovaException): message = _('The unattend XML in the co...
true
true
f7665fc7bd0caaae51315db046034786015c60fe
7,993
py
Python
scripts/kconfig/kconfig.py
NZSmartie/zephyr
b3800dbf398a6b0f24642504157ab8e5694473a8
[ "Apache-2.0" ]
4
2019-07-28T08:13:51.000Z
2020-10-30T06:05:56.000Z
zephyr-zephyr-v1.13.0/scripts/kconfig/kconfig.py
sybreon/tra5
27e65949309d31b6b9070dfea61c4eb619d02831
[ "Apache-2.0" ]
null
null
null
zephyr-zephyr-v1.13.0/scripts/kconfig/kconfig.py
sybreon/tra5
27e65949309d31b6b9070dfea61c4eb619d02831
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Modified from: https://github.com/ulfalizer/Kconfiglib/blob/master/examples/merge_config.py import argparse import os import sys import textwrap from kconfiglib import Kconfig, Symbol, BOOL, STRING, TRISTATE, TRI_TO_STR # Warnings that won't be turned into errors (but that will still be print...
37.881517
93
0.685725
import argparse import os import sys import textwrap from kconfiglib import Kconfig, Symbol, BOOL, STRING, TRISTATE, TRI_TO_STR # identified by a substring of the warning. The warning texts from Kconfiglib # are guaranteed to not change. WARNING_WHITELIST = ( # Warning generated when a symbol with unsatisfied dep...
true
true
f7666011187ee85e7b367d8208dd69bd660b2aa3
5,323
py
Python
tests/test_device.py
vbsoftpl/libdyson
70d890259fe7baaa106f8c3302cd42077697ddd7
[ "Apache-2.0" ]
28
2021-02-11T22:44:01.000Z
2022-03-28T22:29:35.000Z
tests/test_device.py
vbsoftpl/libdyson
70d890259fe7baaa106f8c3302cd42077697ddd7
[ "Apache-2.0" ]
20
2021-03-07T15:18:58.000Z
2022-03-07T13:47:30.000Z
tests/test_device.py
vbsoftpl/libdyson
70d890259fe7baaa106f8c3302cd42077697ddd7
[ "Apache-2.0" ]
25
2021-02-13T14:55:43.000Z
2022-03-29T22:27:55.000Z
"""Test DysonDevice functionalities.""" from unittest.mock import MagicMock, patch import pytest from libdyson.const import MessageType from libdyson.dyson_device import DysonDevice from libdyson.exceptions import ( DysonConnectionRefused, DysonConnectTimeout, DysonInvalidCredential, DysonNotConnected...
28.465241
80
0.710502
from unittest.mock import MagicMock, patch import pytest from libdyson.const import MessageType from libdyson.dyson_device import DysonDevice from libdyson.exceptions import ( DysonConnectionRefused, DysonConnectTimeout, DysonInvalidCredential, DysonNotConnected, ) from . import CREDENTIAL, HOST, SER...
true
true
f766609db059effd3ffbbdf0a9f2dabc7ae08930
4,924
py
Python
hagworm/frame/stress_tests.py
wsb310/hagworm
ce69d267cc8f09b903f26238a6b3b3f7d46e0397
[ "Apache-2.0" ]
15
2019-02-22T01:01:17.000Z
2020-09-07T09:16:09.000Z
hagworm/frame/stress_tests.py
wsb310/hagworm
ce69d267cc8f09b903f26238a6b3b3f7d46e0397
[ "Apache-2.0" ]
7
2019-02-22T10:36:42.000Z
2019-11-15T03:28:56.000Z
hagworm/frame/stress_tests.py
wsb310/hagworm
ce69d267cc8f09b903f26238a6b3b3f7d46e0397
[ "Apache-2.0" ]
7
2019-04-23T03:42:01.000Z
2019-12-12T03:40:41.000Z
# -*- coding: utf-8 -*- import os from terminal_table import Table from hagworm.extend.logging import DEFAULT_LOG_FILE_ROTATOR from hagworm.extend.interface import RunnableInterface from hagworm.extend.asyncio.base import Launcher as _Launcher from hagworm.extend.asyncio.base import Utils, MultiTasks, AsyncCirculato...
25.915789
106
0.571487
import os from terminal_table import Table from hagworm.extend.logging import DEFAULT_LOG_FILE_ROTATOR from hagworm.extend.interface import RunnableInterface from hagworm.extend.asyncio.base import Launcher as _Launcher from hagworm.extend.asyncio.base import Utils, MultiTasks, AsyncCirculatorForSecond from hagworm....
true
true
f766614a5d0f70a2baa0f21fa3794679299c096c
5,379
py
Python
obdlib/obd/pids.py
s-s-boika/obdlib
5b0b35276575a522d20858b6993a9bebf0acc968
[ "MIT" ]
9
2015-07-14T07:15:58.000Z
2021-06-03T01:42:19.000Z
obdlib/obd/pids.py
s-s-boika/obdlib
5b0b35276575a522d20858b6993a9bebf0acc968
[ "MIT" ]
null
null
null
obdlib/obd/pids.py
s-s-boika/obdlib
5b0b35276575a522d20858b6993a9bebf0acc968
[ "MIT" ]
4
2015-07-15T09:05:46.000Z
2022-02-06T04:28:53.000Z
# Information about OBD-II PIDs # http://en.wikipedia.org/wiki/OBD-II_PIDs # PID hex codes PIDS_SUPPORTED_00_20 = "00" MONITOR_STATUS_SINCE_DTC_CLEARED = "01" FREEZE_DTC = "02" VEHICLE_IDENTIFICATION_NUMBER = "02" FUEL_SYSTEM_STATUS = "03" CALCULATED_ENGINE_LOAD = "04" ENGINE_COOLANT_TEMPERATURE = "05" SHORT_TERM_FUEL...
26.11165
99
0.644358
PIDS_SUPPORTED_00_20 = "00" MONITOR_STATUS_SINCE_DTC_CLEARED = "01" FREEZE_DTC = "02" VEHICLE_IDENTIFICATION_NUMBER = "02" FUEL_SYSTEM_STATUS = "03" CALCULATED_ENGINE_LOAD = "04" ENGINE_COOLANT_TEMPERATURE = "05" SHORT_TERM_FUEL_TRIM_BANK_1 = "06" LONG_TERM_FUEL_TRIM_BANK_1 = "07" SHORT_TERM_FUEL_TRIM_BANK_2 = "08" LO...
true
true
f766618df754bd0437a0a3fc49fc36a582606064
1,599
py
Python
Lintcode/G_Practice/Tag_Matrix/1628. Driving problem.py
ctc316/algorithm-python
ac4580d55e05e93e407c6156c9bb801808027d60
[ "MIT" ]
null
null
null
Lintcode/G_Practice/Tag_Matrix/1628. Driving problem.py
ctc316/algorithm-python
ac4580d55e05e93e407c6156c9bb801808027d60
[ "MIT" ]
null
null
null
Lintcode/G_Practice/Tag_Matrix/1628. Driving problem.py
ctc316/algorithm-python
ac4580d55e05e93e407c6156c9bb801808027d60
[ "MIT" ]
null
null
null
class UnionFind: def __init__(self, n): self.n = n self.parent = [i for i in range(n + 2)] def find(self, a): path = [] while self.parent[a] != a: path.append(a) a = self.parent[a] for p in path: self.parent[p] = a ...
26.213115
87
0.413383
class UnionFind: def __init__(self, n): self.n = n self.parent = [i for i in range(n + 2)] def find(self, a): path = [] while self.parent[a] != a: path.append(a) a = self.parent[a] for p in path: self.parent[p] = a ...
true
true
f7666260de77b90e162275ff586223ec6835ea11
3,659
py
Python
var/spack/repos/builtin/packages/hpctoolkit/package.py
nkianggiss/spack
3477d3375142a30f5714bb5966a6d8bb22c33c06
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2018-08-20T06:55:11.000Z
2018-08-20T06:55:11.000Z
var/spack/repos/builtin/packages/hpctoolkit/package.py
nkianggiss/spack
3477d3375142a30f5714bb5966a6d8bb22c33c06
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/hpctoolkit/package.py
nkianggiss/spack
3477d3375142a30f5714bb5966a6d8bb22c33c06
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2020-03-12T19:27:17.000Z
2020-03-12T19:27:17.000Z
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Hpctoolkit(AutotoolsPackage): """HPCToolkit is an integrated suite of tools for measuremen...
38.114583
78
0.619022
from spack import * class Hpctoolkit(AutotoolsPackage): homepage = "http://hpctoolkit.org" git = "https://github.com/HPCToolkit/hpctoolkit.git" version('develop', branch='master') version('2018.11.05', commit='d0c43e39020e67095b1f1d8bb89b75f22b12aee9') # from mismatched header files (...
true
true
f766637d0a1958069a6d6b3bc79101b6b40c1261
4,538
py
Python
crawler-service/crawlers/spiders/entrepreneur.py
vikasp-ds/newsreco
16132f9d945c2d1b8f6374bd363c7f7a8c7ab439
[ "MIT" ]
1
2019-01-04T14:04:23.000Z
2019-01-04T14:04:23.000Z
crawler-service/crawlers/spiders/entrepreneur.py
vikasp-ds/newsreco
16132f9d945c2d1b8f6374bd363c7f7a8c7ab439
[ "MIT" ]
null
null
null
crawler-service/crawlers/spiders/entrepreneur.py
vikasp-ds/newsreco
16132f9d945c2d1b8f6374bd363c7f7a8c7ab439
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import string from hashlib import md5 from io import BytesIO from lxml import etree from datetime import datetime from scrapy.selector import Selector from scrapy.spiders import Rule from scrapy.linkextractors import LinkExtractor from scrapy.contrib.linkextractors.sgml...
31.513889
126
0.623402
import os import string from hashlib import md5 from io import BytesIO from lxml import etree from datetime import datetime from scrapy.selector import Selector from scrapy.spiders import Rule from scrapy.linkextractors import LinkExtractor from scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor...
false
true
f766638a86584650c0e15e6469e10dd16d7e6c52
12,965
py
Python
analyse_images.py
acpadua/pycelle
8ec8c474c04e115635a76d360f5f4c9613b01705
[ "MIT" ]
null
null
null
analyse_images.py
acpadua/pycelle
8ec8c474c04e115635a76d360f5f4c9613b01705
[ "MIT" ]
null
null
null
analyse_images.py
acpadua/pycelle
8ec8c474c04e115635a76d360f5f4c9613b01705
[ "MIT" ]
null
null
null
import numpy as np from math import sqrt from skimage import data from skimage.feature import blob_dog, blob_log, blob_doh from skimage.color import rgb2gray from pandas import DataFrame import pandas as pd import matplotlib.pyplot as plt import os from os import path import glob import cv2 import time ...
35.716253
228
0.659005
import numpy as np from math import sqrt from skimage import data from skimage.feature import blob_dog, blob_log, blob_doh from skimage.color import rgb2gray from pandas import DataFrame import pandas as pd import matplotlib.pyplot as plt import os from os import path import glob import cv2 import time ...
true
true
f766644bee867bd5162f9df0bb265997a865681f
10,257
py
Python
common/Instance.py
zadjii/nebula
50c4ec019c9f7eb15fe105a6c53a8a12880e281c
[ "MIT" ]
2
2020-04-15T11:20:59.000Z
2021-05-12T13:01:36.000Z
common/Instance.py
zadjii/nebula
50c4ec019c9f7eb15fe105a6c53a8a12880e281c
[ "MIT" ]
1
2018-06-05T04:48:56.000Z
2018-06-05T04:48:56.000Z
common/Instance.py
zadjii/nebula
50c4ec019c9f7eb15fe105a6c53a8a12880e281c
[ "MIT" ]
1
2018-08-15T06:45:46.000Z
2018-08-15T06:45:46.000Z
import os import imp import thread import signal from argparse import Namespace import psutil from migrate.versioning import api from common.SimpleDB import SimpleDB from common_util import * import time def get_from_conf(config, key, default): return config.get('root', key) \ if config.has_option('root...
33.963576
138
0.575022
import os import imp import thread import signal from argparse import Namespace import psutil from migrate.versioning import api from common.SimpleDB import SimpleDB from common_util import * import time def get_from_conf(config, key, default): return config.get('root', key) \ if config.has_option('root...
false
true
f7666590cd6294ad6c0eaef6448d42abdc89636c
4,505
py
Python
Get beatmapset ID by MD5 hash.py
PatrickL546/osu-scripts-for-replays
ff334d48a466736e2fbf3eab6dc722105daf7874
[ "BSD-2-Clause" ]
1
2022-03-30T18:19:09.000Z
2022-03-30T18:19:09.000Z
Get beatmapset ID by MD5 hash.py
PatrickL546/osu-scripts-for-replays
ff334d48a466736e2fbf3eab6dc722105daf7874
[ "BSD-2-Clause" ]
null
null
null
Get beatmapset ID by MD5 hash.py
PatrickL546/osu-scripts-for-replays
ff334d48a466736e2fbf3eab6dc722105daf7874
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from genericpath import exists from random import uniform from time import sleep import requests import os import textwrap from datetime import datetime import json def WriteFailed(): failedTimeStamp = '1' dateTime = datetime.now() dateTimeFailed = dateTime.strftime...
31.503497
130
0.535627
from genericpath import exists from random import uniform from time import sleep import requests import os import textwrap from datetime import datetime import json def WriteFailed(): failedTimeStamp = '1' dateTime = datetime.now() dateTimeFailed = dateTime.strftime("%d/%m/%Y %H:%M:%S") ...
true
true
f766678adcbb38de107f7ff94b470f5a6c23eb58
604
py
Python
S1/TP5/ex9.py
HerbeMalveillante/ecole
bebbc73cd678c58c9cd40389ea1cf229a0200308
[ "MIT" ]
null
null
null
S1/TP5/ex9.py
HerbeMalveillante/ecole
bebbc73cd678c58c9cd40389ea1cf229a0200308
[ "MIT" ]
null
null
null
S1/TP5/ex9.py
HerbeMalveillante/ecole
bebbc73cd678c58c9cd40389ea1cf229a0200308
[ "MIT" ]
null
null
null
from random import randint ls = [randint(-5, 5) for i in range(3)] print(ls) if ls[0] > ls[1]: ls[0], ls[1] = ls[1], ls[0] if ls[1] > ls[2]: ls[1], ls[2] = ls[2], ls[1] if ls[0] > ls[1]: ls[0], ls[1] = ls[1], ls[0] print(ls) # le code précédent trie une liste de trois éléments def bubbleSort(lis): f...
20.827586
55
0.543046
from random import randint ls = [randint(-5, 5) for i in range(3)] print(ls) if ls[0] > ls[1]: ls[0], ls[1] = ls[1], ls[0] if ls[1] > ls[2]: ls[1], ls[2] = ls[2], ls[1] if ls[0] > ls[1]: ls[0], ls[1] = ls[1], ls[0] print(ls) def bubbleSort(lis): for i in range(len(lis) - 1): for j in range(...
true
true
f766678f2b3838bdbf87da50c02acc922b0960bf
636
py
Python
config.py
asuka-mio/Real-CUGAN
3775c90309e29a6905b9149e4977feede342ba8c
[ "MIT" ]
39
2022-02-03T15:30:07.000Z
2022-02-16T13:52:01.000Z
config.py
asuka-mio/Real-CUGAN
3775c90309e29a6905b9149e4977feede342ba8c
[ "MIT" ]
null
null
null
config.py
asuka-mio/Real-CUGAN
3775c90309e29a6905b9149e4977feede342ba8c
[ "MIT" ]
10
2022-02-03T13:09:48.000Z
2022-02-16T03:15:15.000Z
#超分倍率 scale=2 #参数路径,可更换 model_path2 = "weights_v3/up2x-latest-denoise3x.pth" model_path3 = "weights_v3/up3x-latest-denoise3x.pth" model_path4 = "weights_v3/up4x-latest-denoise3x.pth" #早期显卡开半精度不会提速,但是开半精度可以省显存。 half=True #tile分为0~4一共5个mode。0在推理时不对图像进行切块,最占内存,mode越提升越省显存,但是可能会降低GPU利用率,降低推理速度 tile=2 #超图像设置 device="cuda...
23.555556
89
0.794025
scale=2 model_path2 = "weights_v3/up2x-latest-denoise3x.pth" model_path3 = "weights_v3/up3x-latest-denoise3x.pth" model_path4 = "weights_v3/up4x-latest-denoise3x.pth" half=True tile=2 device="cuda:0" nt=1 n_gpu=1 p_sleep=(0.005,0.012) decode_sleep=0.002 encode_params=['-crf', '18', '-preset', 'medium']
true
true
f76667a2642f9d3ef5d3481708c0a29ee61713b6
1,638
py
Python
Opentrons/dinosaur.py
maehrlich1/MAE_Gen
cb9e58c1d5cb4a2ef2b44b1de0cf92b5fe46463f
[ "MIT" ]
null
null
null
Opentrons/dinosaur.py
maehrlich1/MAE_Gen
cb9e58c1d5cb4a2ef2b44b1de0cf92b5fe46463f
[ "MIT" ]
null
null
null
Opentrons/dinosaur.py
maehrlich1/MAE_Gen
cb9e58c1d5cb4a2ef2b44b1de0cf92b5fe46463f
[ "MIT" ]
null
null
null
from opentrons import containers, instruments # a 12 row trough for sources trough = containers.load('trough-12row', 'D2') # plate to create dinosaur in plate = containers.load('96-PCR-flat', 'C1') # a tip rack for our pipette p200rack = containers.load('tiprack-200ul', 'B2') # wells to dispense dinosaur body in gr...
31.5
75
0.59768
from opentrons import containers, instruments trough = containers.load('trough-12row', 'D2') plate = containers.load('96-PCR-flat', 'C1') p200rack = containers.load('tiprack-200ul', 'B2') green_wells = [ well.bottom() for well in plate.wells( 'E1', 'D2', 'E2', 'D3', 'E3', 'F3', 'G3', 'H3', 'C4',...
true
true
f766685b80c947c839aa4355cf66cc701f37cdef
2,759
py
Python
ddht/v5/endpoint_tracker.py
vaporydev/ddht
b438a6fced97c584be1bc961603291f1d89b6733
[ "MIT" ]
17
2020-07-25T07:49:07.000Z
2021-11-20T04:19:07.000Z
ddht/v5/endpoint_tracker.py
pipermerriam/ddht
7e0b66ac96591a590e40c7e15d880af01e1f1a36
[ "MIT" ]
146
2020-07-27T22:18:32.000Z
2021-03-04T20:37:36.000Z
ddht/v5/endpoint_tracker.py
pipermerriam/ddht
7e0b66ac96591a590e40c7e15d880af01e1f1a36
[ "MIT" ]
14
2020-07-24T17:31:02.000Z
2022-03-28T17:54:31.000Z
import logging from typing import NamedTuple from async_service import Service from eth_enr import ENRDatabaseAPI, IdentitySchemeRegistryAPI, UnsignedENR from eth_enr.constants import IP_V4_ADDRESS_ENR_KEY, UDP_PORT_ENR_KEY from eth_typing import NodeID from eth_utils import encode_hex from eth_utils.toolz import merg...
34.4875
84
0.664009
import logging from typing import NamedTuple from async_service import Service from eth_enr import ENRDatabaseAPI, IdentitySchemeRegistryAPI, UnsignedENR from eth_enr.constants import IP_V4_ADDRESS_ENR_KEY, UDP_PORT_ENR_KEY from eth_typing import NodeID from eth_utils import encode_hex from eth_utils.toolz import merg...
true
true
f7666892ed236a418727534ffb327ee82bac738e
139
py
Python
generators/datagenerator/__init__.py
honey-sangtani-c5i/retail-demo-store
c76e03b2a1750d9ec16f2dd8c952b8c4c8a53ef8
[ "MIT-0" ]
404
2020-04-10T01:54:50.000Z
2022-03-31T08:22:23.000Z
generators/datagenerator/__init__.py
honey-sangtani-c5i/retail-demo-store
c76e03b2a1750d9ec16f2dd8c952b8c4c8a53ef8
[ "MIT-0" ]
144
2020-04-14T11:53:15.000Z
2022-03-31T07:24:44.000Z
generators/datagenerator/__init__.py
honey-sangtani-c5i/retail-demo-store
c76e03b2a1750d9ec16f2dd8c952b8c4c8a53ef8
[ "MIT-0" ]
301
2020-04-13T16:41:39.000Z
2022-03-29T23:51:16.000Z
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: MIT-0 aws_datagenerator_version = '1.8.0'
27.8
68
0.76259
aws_datagenerator_version = '1.8.0'
true
true
f76668ec76c9119ef8a15021e0295d7ef71c2030
1,406
py
Python
fcutils/maths/coordinates.py
FedeClaudi/fedes_utils
2ef6f037303fc426d5c5b2851d2c99f17efa4002
[ "MIT" ]
4
2020-09-19T23:42:53.000Z
2021-11-14T19:41:33.000Z
fcutils/maths/coordinates.py
FedeClaudi/fedes_utils
2ef6f037303fc426d5c5b2851d2c99f17efa4002
[ "MIT" ]
1
2022-02-21T13:09:43.000Z
2022-02-22T10:50:14.000Z
fcutils/maths/coordinates.py
FedeClaudi/fedes_utils
2ef6f037303fc426d5c5b2851d2c99f17efa4002
[ "MIT" ]
null
null
null
import numpy as np def R(theta): """ Returns the rotation matrix for rotating an object centered around the origin with a given angle Arguments: theta: angle in degrees Returns: R: 2x2 np.ndarray with rotation matrix """ theta = np.radians(theta) ...
21.630769
73
0.519915
import numpy as np def R(theta): theta = np.radians(theta) return np.array( [[np.cos(theta), -np.sin(theta)], [np.sin(theta), np.cos(theta)]] ) def M(axis="x"): if axis == "x": return np.array([[1, 0], [0, -1]]) elif axis == "y": return np.array([[-1, 0], [0, 1]]) eli...
true
true
f7666950459a901a2be75b931b6690fd521c5282
720
py
Python
Udemy/Secao5/aula122/aula122.py
rafaelgama/Curso_Python
908231de9de4a17f5aa829f2671fd88de9261eda
[ "MIT" ]
1
2020-05-07T20:21:15.000Z
2020-05-07T20:21:15.000Z
Udemy/Secao5/aula122/aula122.py
rafaelgama/Curso_Python
908231de9de4a17f5aa829f2671fd88de9261eda
[ "MIT" ]
null
null
null
Udemy/Secao5/aula122/aula122.py
rafaelgama/Curso_Python
908231de9de4a17f5aa829f2671fd88de9261eda
[ "MIT" ]
null
null
null
from datetime import datetime from locale import setlocale, LC_ALL # para trazer a localidade. from calendar import mdays # vai retornar quantos dias tem cada mês. # essa fução seta a localidade padrão do computador, caso o segundo parametro esteja # em branco ou preencha o parametro par definir a localidade. setlocal...
37.894737
84
0.75
from datetime import datetime from locale import setlocale, LC_ALL from calendar import mdays setlocale(LC_ALL, 'pt_br.utf-8') dt = datetime.now() mes_atual = int(dt.strftime('%m')) formatacao1 = dt.strftime('%A,%d de %B de %Y') formatacao2 = dt.strftime('%d/%m/%Y %H:%M:%S') print(formatacao1) print(formatacao2) pri...
true
true
f766698e6c38dc87f4e85b9afee713c6eb26be43
6,032
py
Python
page_parse/status.py
silverriver/PersonalDilaog
1d237f34f3ab44baeba091c510f0e57e7bb7f450
[ "MIT" ]
21
2020-01-02T02:19:57.000Z
2022-03-15T07:43:39.000Z
page_parse/status.py
silverriver/PersonalDilaog
1d237f34f3ab44baeba091c510f0e57e7bb7f450
[ "MIT" ]
7
2020-02-12T03:28:48.000Z
2021-12-13T20:30:26.000Z
page_parse/status.py
silverriver/PersonalDilaog
1d237f34f3ab44baeba091c510f0e57e7bb7f450
[ "MIT" ]
null
null
null
import re import json from bs4 import BeautifulSoup from decorators import parse_decorator from logger import parser @parse_decorator('') def get_userid(html): pattern = re.compile(r'\$CONFIG\[\'oid\'\]=\'(.*)\';') m = pattern.search(html) return m.group(1) if m else '' @parse_decorator('') def get_us...
27.797235
168
0.58372
import re import json from bs4 import BeautifulSoup from decorators import parse_decorator from logger import parser @parse_decorator('') def get_userid(html): pattern = re.compile(r'\$CONFIG\[\'oid\'\]=\'(.*)\';') m = pattern.search(html) return m.group(1) if m else '' @parse_decorator('') def get_us...
true
true
f766699bd8523b8040506349bf5e5183ecd12b48
4,908
py
Python
lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/summary-string-onfail/Test-rdar-9974002.py
tkf/opencilk-project
48265098754b785d1b06cb08d8e22477a003efcd
[ "MIT" ]
2
2019-05-24T14:10:24.000Z
2019-05-24T14:27:38.000Z
packages/Python/lldbsuite/test/functionalities/data-formatter/summary-string-onfail/Test-rdar-9974002.py
DalavanCloud/lldb
e913eaf2468290fb94c767d474d611b41a84dd69
[ "Apache-2.0" ]
10
2018-05-27T23:16:42.000Z
2019-09-30T13:28:45.000Z
packages/Python/lldbsuite/test/functionalities/data-formatter/summary-string-onfail/Test-rdar-9974002.py
DalavanCloud/lldb
e913eaf2468290fb94c767d474d611b41a84dd69
[ "Apache-2.0" ]
3
2019-12-21T06:35:35.000Z
2020-06-07T23:18:58.000Z
""" Test lldb data formatter subsystem. """ from __future__ import print_function import os import time import lldb from lldbsuite.test.lldbtest import * import lldbsuite.test.lldbutil as lldbutil class Radar9974002DataFormatterTestCase(TestBase): # test for rdar://problem/9974002 () mydir = TestBase.comp...
33.162162
102
0.513855
from __future__ import print_function import os import time import lldb from lldbsuite.test.lldbtest import * import lldbsuite.test.lldbutil as lldbutil class Radar9974002DataFormatterTestCase(TestBase): mydir = TestBase.compute_mydir(__file__) def setUp(self): TestBase.setUp(self) ...
true
true
f7666e86f730c07672a8c5e5baa86b7056277875
18,360
py
Python
Dash-app/app.py
algonommy/Analyzing-Apple-Stock-Data-to-Predict-Gain-Loss-leveraging-Machine-Learning-Models
04d5b42d58f64248a45b62c7f7a0835c481c12fb
[ "MIT" ]
1
2022-02-10T11:08:25.000Z
2022-02-10T11:08:25.000Z
Dash-app/app.py
najibullohasror/Analyzing-Apple-Stock-Data-to-Predict-Gain-Loss-leveraging-Machine-Learning-Models
04d5b42d58f64248a45b62c7f7a0835c481c12fb
[ "MIT" ]
null
null
null
Dash-app/app.py
najibullohasror/Analyzing-Apple-Stock-Data-to-Predict-Gain-Loss-leveraging-Machine-Learning-Models
04d5b42d58f64248a45b62c7f7a0835c481c12fb
[ "MIT" ]
1
2022-02-10T11:08:27.000Z
2022-02-10T11:08:27.000Z
import dash import dash_core_components as dcc import dash_html_components as html import pandas as pd import plotly.graph_objs as go from dash.dependencies import Input, Output import datetime as dt import pandas_datareader as web app = dash.Dash() server = app.server start = dt.datetime(2000,1,1) end = dt.datetim...
42.997658
224
0.524619
import dash import dash_core_components as dcc import dash_html_components as html import pandas as pd import plotly.graph_objs as go from dash.dependencies import Input, Output import datetime as dt import pandas_datareader as web app = dash.Dash() server = app.server start = dt.datetime(2000,1,1) end = dt.datetim...
true
true
f7666f2f606175a34b4260c63218ee7dcb8e31eb
128
py
Python
SeetaFace2/python/util.py
aliyun/alibabacloud-AnalyticDB-python-demo-face-recognition
33a10daa96be3d49fffa619022a31b63c731b3b3
[ "Apache-2.0" ]
39
2020-02-13T11:16:09.000Z
2021-11-13T03:14:18.000Z
SeetaFace2/python/util.py
aliyun/alibabacloud-AnalyticDB-python-demo-face-recognition
33a10daa96be3d49fffa619022a31b63c731b3b3
[ "Apache-2.0" ]
22
2020-02-16T13:27:35.000Z
2022-03-12T00:15:19.000Z
SeetaFace2/python/util.py
aliyun/alibabacloud-AnalyticDB-python-demo-face-recognition
33a10daa96be3d49fffa619022a31b63c731b3b3
[ "Apache-2.0" ]
19
2020-02-17T09:22:42.000Z
2022-03-28T03:38:17.000Z
from io import BytesIO import base64 def decode_image_base64(image_base64): return BytesIO(base64.b64decode(image_base64))
21.333333
50
0.820313
from io import BytesIO import base64 def decode_image_base64(image_base64): return BytesIO(base64.b64decode(image_base64))
true
true
f76671ecbf0a7c6ff080efb3053b56bc2ddc59b6
1,518
py
Python
custom_reproduction_impl/main.py
MrWe/NEAT_MCTS
ccdcf811dcf3ff2e598cc4df098c602adb41ba0f
[ "BSD-3-Clause" ]
1
2021-05-14T23:29:48.000Z
2021-05-14T23:29:48.000Z
custom_reproduction_impl/main.py
MrWe/NEAT_MCTS
ccdcf811dcf3ff2e598cc4df098c602adb41ba0f
[ "BSD-3-Clause" ]
null
null
null
custom_reproduction_impl/main.py
MrWe/NEAT_MCTS
ccdcf811dcf3ff2e598cc4df098c602adb41ba0f
[ "BSD-3-Clause" ]
null
null
null
""" 2-input XOR example -- this is most likely the simplest possible example. """ from __future__ import print_function import sys import neat from MctsReproduction import MctsReproduction # 2-input XOR inputs and expected outputs. xor_inputs = [(0.0, 0.0), (0.0, 1.0), (1.0, 0.0), (1.0, 1.0)] xor_outputs = [(0.0,), ...
31.625
73
0.670619
from __future__ import print_function import sys import neat from MctsReproduction import MctsReproduction xor_inputs = [(0.0, 0.0), (0.0, 1.0), (1.0, 0.0), (1.0, 1.0)] xor_outputs = [(0.0,), (1.0,), (1.0,), (0.0,)] def eval_genomes(genomes, config): for genome_id, genome in genomes: genome....
true
true
f766722a5196ec8aab4697888c7c7b8826a731b5
5,154
py
Python
torch_geometric/nn/pool/asap.py
mrmotallebi/pytorch_geometric
5d768659d2a54544219c057ad05172ca55b43119
[ "MIT" ]
3
2021-02-23T02:08:37.000Z
2022-02-16T00:57:02.000Z
torch_geometric/nn/pool/asap.py
mrmotallebi/pytorch_geometric
5d768659d2a54544219c057ad05172ca55b43119
[ "MIT" ]
null
null
null
torch_geometric/nn/pool/asap.py
mrmotallebi/pytorch_geometric
5d768659d2a54544219c057ad05172ca55b43119
[ "MIT" ]
1
2022-03-22T13:52:25.000Z
2022-03-22T13:52:25.000Z
from typing import Union, Optional, Callable import torch import torch.nn.functional as F from torch.nn import Linear from torch_scatter import scatter from torch_sparse import SparseTensor from torch_geometric.nn import LEConv from torch_geometric.utils import softmax from torch_geometric.nn.pool.topk_pool import to...
39.953488
78
0.616997
from typing import Union, Optional, Callable import torch import torch.nn.functional as F from torch.nn import Linear from torch_scatter import scatter from torch_sparse import SparseTensor from torch_geometric.nn import LEConv from torch_geometric.utils import softmax from torch_geometric.nn.pool.topk_pool import to...
true
true
f7667277fcf97c16073007d9c241b768f26d2ad7
1,785
py
Python
signbank/contentpages/migrations/0001_initial.py
ODNZSL/NZSL-signbank
a751995b6d661fcae770cf0404320850514f89da
[ "BSD-3-Clause" ]
null
null
null
signbank/contentpages/migrations/0001_initial.py
ODNZSL/NZSL-signbank
a751995b6d661fcae770cf0404320850514f89da
[ "BSD-3-Clause" ]
null
null
null
signbank/contentpages/migrations/0001_initial.py
ODNZSL/NZSL-signbank
a751995b6d661fcae770cf0404320850514f89da
[ "BSD-3-Clause" ]
null
null
null
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('sites', '0001_initial'), ] operations = [ migrations.CreateModel( name='FlatPage', fields=[ ('id', models.AutoField(verbose_name='ID', ...
41.511628
119
0.517647
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('sites', '0001_initial'), ] operations = [ migrations.CreateModel( name='FlatPage', fields=[ ('id', models.AutoField(verbose_name='ID', ...
true
true
f7667524d81f6ba36addf3cba2d1dfb5224b3bf4
4,930
py
Python
var/spack/repos/builtin/packages/libdwarf/package.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2020-10-15T01:08:42.000Z
2021-10-18T01:28:18.000Z
var/spack/repos/builtin/packages/libdwarf/package.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2019-07-30T10:12:28.000Z
2019-12-17T09:02:27.000Z
var/spack/repos/builtin/packages/libdwarf/package.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
5
2019-07-30T09:42:14.000Z
2021-01-25T05:39:20.000Z
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * import sys import os # Only build certain parts of dwarf because the other ones break. dwarf_dirs = [...
43.628319
98
0.605274
from spack import * import sys import os dwarf_dirs = ['libdwarf', 'dwarfdump2'] class Libdwarf(Package): homepage = "http://www.prevanders.net/dwarf.html" url = "http://www.prevanders.net/libdwarf-20160507.tar.gz" list_url = homepage version('20180129', sha256='8bd91b57064b0c14ade5a009d3a1ce...
true
true
f766753ef44702048134b72b97e1a7bc539b477a
3,254
py
Python
setup.py
zopefoundation/zc.sourcefactory
f581992ba6b7bdf41b5472f1cb3b8a4785bc1fea
[ "ZPL-2.1" ]
1
2021-02-01T06:13:48.000Z
2021-02-01T06:13:48.000Z
setup.py
zopefoundation/zc.sourcefactory
f581992ba6b7bdf41b5472f1cb3b8a4785bc1fea
[ "ZPL-2.1" ]
2
2016-08-02T05:27:12.000Z
2021-02-10T14:54:18.000Z
setup.py
zopefoundation/zc.sourcefactory
f581992ba6b7bdf41b5472f1cb3b8a4785bc1fea
[ "ZPL-2.1" ]
1
2015-04-03T06:52:19.000Z
2015-04-03T06:52:19.000Z
############################################################################## # # Copyright Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS ...
34.617021
78
0.564536
from setuptools import setup, find_packages import os.path def read_file(*args): path = os.path.join(*args) with open(path, 'r') as f: return f.read() + '\n\n' setup( name='zc.sourcefactory', version='1.2.dev0', author='Zope Corporation and Contributors', author_email='zope-dev@zope....
true
true
f7667568e3b1b2968629678e5aa8b63aaefcf664
5,571
py
Python
tests/test_class_oelint_file_upstreamstatus.py
vermaete/oelint-adv
6a2cadf2fd076d6e531d4bb0abcc4ad89d1fdbee
[ "BSD-2-Clause" ]
null
null
null
tests/test_class_oelint_file_upstreamstatus.py
vermaete/oelint-adv
6a2cadf2fd076d6e531d4bb0abcc4ad89d1fdbee
[ "BSD-2-Clause" ]
null
null
null
tests/test_class_oelint_file_upstreamstatus.py
vermaete/oelint-adv
6a2cadf2fd076d6e531d4bb0abcc4ad89d1fdbee
[ "BSD-2-Clause" ]
null
null
null
import os import sys import pytest sys.path.insert(0, os.path.abspath(os.path.dirname(__file__))) from base import TestBaseClass class TestClassOelintFileUpstreamStatus(TestBaseClass): @pytest.mark.parametrize('id', ['oelint.file.upstreamstatus']) @pytest.mark.parametrize('occurrence', [1]) @pytest.ma...
25.094595
68
0.369413
import os import sys import pytest sys.path.insert(0, os.path.abspath(os.path.dirname(__file__))) from base import TestBaseClass class TestClassOelintFileUpstreamStatus(TestBaseClass): @pytest.mark.parametrize('id', ['oelint.file.upstreamstatus']) @pytest.mark.parametrize('occurrence', [1]) @pytest.ma...
true
true
f766758f09b17901240aa2f4a0988b0c7c81eaba
1,394
py
Python
tests/conftest.py
vanadium23/django-tinymce-lite
a75d3a05892679d521e2ceea0e5af2a2d408fab2
[ "MIT" ]
1
2017-03-20T14:03:45.000Z
2017-03-20T14:03:45.000Z
tests/conftest.py
vanadium23/django-tinymce-lite
a75d3a05892679d521e2ceea0e5af2a2d408fab2
[ "MIT" ]
null
null
null
tests/conftest.py
vanadium23/django-tinymce-lite
a75d3a05892679d521e2ceea0e5af2a2d408fab2
[ "MIT" ]
1
2019-09-29T05:09:56.000Z
2019-09-29T05:09:56.000Z
# -*- coding:utf-8 -*- from __future__ import absolute_import, print_function, unicode_literals import os import random import string import pytest from selenium import webdriver from selenium.common.exceptions import WebDriverException browsers = { # 'firefox': webdriver.Firefox, # 'chrome': webdriver.Chrom...
24.034483
101
0.685796
from __future__ import absolute_import, print_function, unicode_literals import os import random import string import pytest from selenium import webdriver from selenium.common.exceptions import WebDriverException browsers = { 'phantomjs': webdriver.PhantomJS, } def random_string(n): return ''.join...
true
true
f7667683129c094b31fa3239910474d1a0d73eb8
2,583
py
Python
sdk/trafficmanager/azure-mgmt-trafficmanager/setup.py
AFengKK/azure-sdk-for-python
46528580e9acbd855a6b82082ff606ade9431866
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/trafficmanager/azure-mgmt-trafficmanager/setup.py
AFengKK/azure-sdk-for-python
46528580e9acbd855a6b82082ff606ade9431866
[ "MIT" ]
null
null
null
sdk/trafficmanager/azure-mgmt-trafficmanager/setup.py
AFengKK/azure-sdk-for-python
46528580e9acbd855a6b82082ff606ade9431866
[ "MIT" ]
null
null
null
#!/usr/bin/env python #------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. #----------------------------------------------------------------...
34.44
91
0.605497
import re import os.path from io import open from setuptools import find_packages, setup PACKAGE_NAME = "azure-mgmt-trafficmanager" PACKAGE_PPRINT_NAME = "Traffic Manager Management" package_folder_path = PACKAGE_NAME.replace('-', '/') namespace_name = PACKAGE_NAME.replace('-', '.') with open(os.path.join(package...
true
true
f76676dce68fca46ca31ca6d2ea94d17596b9131
10,131
py
Python
qa/rpc-tests/listtransactions.py
GlynoD/wallet
7700987b288e14c5a3326328a79e3f5992c21932
[ "MIT" ]
1
2018-07-01T21:15:15.000Z
2018-07-01T21:15:15.000Z
qa/rpc-tests/listtransactions.py
GlynoD/wallet
7700987b288e14c5a3326328a79e3f5992c21932
[ "MIT" ]
null
null
null
qa/rpc-tests/listtransactions.py
GlynoD/wallet
7700987b288e14c5a3326328a79e3f5992c21932
[ "MIT" ]
3
2018-07-02T16:55:42.000Z
2019-09-10T18:30:55.000Z
#!/usr/bin/env python2 # Copyright (c) 2014-2015 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # Exercise the listtransactions API from test_framework.test_framework import BitcoinTestFramework from ...
50.153465
113
0.59846
from test_framework.test_framework import BitcoinTestFramework from test_framework.util import * from test_framework.mininode import CTransaction, COIN from io import BytesIO def txFromHex(hexstring): tx = CTransaction() f = BytesIO(hex_str_to_bytes(hexstring)) tx.deserialize(f) return tx class List...
true
true