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
417k
max_line_length
int64
1
987k
alphanum_fraction
float64
0
1
content_no_comment
stringlengths
0
1.01M
is_comment_constant_removed
bool
1 class
is_sharp_comment_removed
bool
1 class
f70b2df2d3725fc71df008004b4b4b9536a2e2e3
11,174
py
Python
nssrc/com/citrix/netscaler/nitro/resource/config/lb/lbvserver_authorizationpolicy_binding.py
guardicore/nitro-python
5346a5086134aead80968f15a41ff527adaa0ec1
[ "Apache-2.0" ]
null
null
null
nssrc/com/citrix/netscaler/nitro/resource/config/lb/lbvserver_authorizationpolicy_binding.py
guardicore/nitro-python
5346a5086134aead80968f15a41ff527adaa0ec1
[ "Apache-2.0" ]
null
null
null
nssrc/com/citrix/netscaler/nitro/resource/config/lb/lbvserver_authorizationpolicy_binding.py
guardicore/nitro-python
5346a5086134aead80968f15a41ff527adaa0ec1
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2021 Citrix Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License") # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
30.446866
303
0.727761
from nssrc.com.citrix.netscaler.nitro.resource.base.base_resource import base_resource from nssrc.com.citrix.netscaler.nitro.resource.base.base_resource import base_response from nssrc.com.citrix.netscaler.nitro.service.options import options from nssrc.com.citrix.netscaler.nitro.exception.nitro_excepti...
true
true
f70b2e7d6d785782beab4bceff912f823fd8f608
2,048
py
Python
myvenv/Lib/site-packages/graphene/utils/deprecated.py
Fa67/saleor-shop
76110349162c54c8bfcae61983bb59ba8fb0f778
[ "BSD-3-Clause" ]
1
2020-03-14T11:00:14.000Z
2020-03-14T11:00:14.000Z
graphene/utils/deprecated.py
djedi/graphene
2cc701f444f29fc24b4ecf801e906e0f17954c46
[ "MIT" ]
null
null
null
graphene/utils/deprecated.py
djedi/graphene
2cc701f444f29fc24b4ecf801e906e0f17954c46
[ "MIT" ]
1
2020-07-23T17:53:27.000Z
2020-07-23T17:53:27.000Z
import functools import inspect import warnings string_types = (type(b''), type(u'')) def warn_deprecation(text): warnings.simplefilter('always', DeprecationWarning) warnings.warn( text, category=DeprecationWarning, stacklevel=2 ) warnings.simplefilter('default', DeprecationWa...
25.283951
71
0.552246
import functools import inspect import warnings string_types = (type(b''), type(u'')) def warn_deprecation(text): warnings.simplefilter('always', DeprecationWarning) warnings.warn( text, category=DeprecationWarning, stacklevel=2 ) warnings.simplefilter('default', DeprecationWa...
true
true
f70b30d771a35c7efbe0ded4d37ce49fadffd46f
3,958
py
Python
tensorflow_hub/tools/module_search/search.py
AyazSaiyed/hub
597c5726fd72d17f562bffec25e114115dadcac5
[ "Apache-2.0" ]
null
null
null
tensorflow_hub/tools/module_search/search.py
AyazSaiyed/hub
597c5726fd72d17f562bffec25e114115dadcac5
[ "Apache-2.0" ]
null
null
null
tensorflow_hub/tools/module_search/search.py
AyazSaiyed/hub
597c5726fd72d17f562bffec25e114115dadcac5
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The TensorFlow Hub 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 app...
31.165354
81
0.6905
from __future__ import absolute_import from __future__ import division from __future__ import print_function from absl import app from absl import flags import pandas as pd import numpy as np import tensorflow.compat.v2 as tf from tensorflow_hub.tools.module_search import utils FLAGS = flags.FLAGS f...
true
true
f70b31d56870f47049de83d268a95ddd4d102068
597
py
Python
Cocos2dx-3x/PhotoExample/cocos2d/tools/jenkins-scripts/configs/cocos-2dx-develop-base-repo.py
ezibyte/EziSocial-PhotoExample
12818880696d3f76ffd5b66646bab21fa3619821
[ "Apache-2.0" ]
14
2015-01-29T08:41:15.000Z
2017-09-03T14:29:32.000Z
Cocos2dx-3x/PhotoExample/cocos2d/tools/jenkins-scripts/configs/cocos-2dx-develop-base-repo.py
ezibyte/EziSocial-PhotoExample
12818880696d3f76ffd5b66646bab21fa3619821
[ "Apache-2.0" ]
1
2016-09-20T10:54:53.000Z
2016-09-20T10:54:53.000Z
Cocos2dx-3x/PhotoExample/cocos2d/tools/jenkins-scripts/configs/cocos-2dx-develop-base-repo.py
ezibyte/EziSocial-PhotoExample
12818880696d3f76ffd5b66646bab21fa3619821
[ "Apache-2.0" ]
22
2015-01-05T08:07:50.000Z
2019-03-25T07:52:48.000Z
import os import sys def check_ret(ret): if(ret != 0): os.system('git checkout -B develop remotes/origin/develop') os.system('git clean -xdf -f') sys.exit(1) branchs = ['develop', 'master'] for item in branchs: os.system('git clean -xdf -f') os.system('git checkout -B ' + item + ' remotes/origin/' +...
25.956522
66
0.663317
import os import sys def check_ret(ret): if(ret != 0): os.system('git checkout -B develop remotes/origin/develop') os.system('git clean -xdf -f') sys.exit(1) branchs = ['develop', 'master'] for item in branchs: os.system('git clean -xdf -f') os.system('git checkout -B ' + item + ' remotes/origin/' +...
true
true
f70b3234c9f1d13265bf86914670fa4ef4dbce17
8,382
py
Python
Calculator/calculator.py
wuhaowei/tkinter-projects
b2ce55d1d347316cc7d37d5180847b67c19dd413
[ "MIT" ]
null
null
null
Calculator/calculator.py
wuhaowei/tkinter-projects
b2ce55d1d347316cc7d37d5180847b67c19dd413
[ "MIT" ]
null
null
null
Calculator/calculator.py
wuhaowei/tkinter-projects
b2ce55d1d347316cc7d37d5180847b67c19dd413
[ "MIT" ]
1
2021-02-20T05:29:31.000Z
2021-02-20T05:29:31.000Z
""" Name: Tkinter Exercise - a simple calculator Description: iOS calculator simulator Date: 2/21/2018 Author: Haowei Wu """ import tkinter class Calculator: # Params app_title = "A simple calculator" disp_font = ("Helvetica", 25, "bold") btn_font = ("Helvetica", 20, "bo...
41.91
124
0.547721
import tkinter class Calculator: app_title = "A simple calculator" disp_font = ("Helvetica", 25, "bold") btn_font = ("Helvetica", 20, "bold") def __init__(self, root): self.root = root self.initialize() def initialize(self): self.ans = "0" self.o...
true
true
f70b32e22f1f29ab259a93726874b66aebcfe48d
1,952
py
Python
kmall_player.test.py
monsterkittykitty/kmall
270c9d70de0b0b59dfa56d50db0466e655831e96
[ "CC0-1.0" ]
null
null
null
kmall_player.test.py
monsterkittykitty/kmall
270c9d70de0b0b59dfa56d50db0466e655831e96
[ "CC0-1.0" ]
null
null
null
kmall_player.test.py
monsterkittykitty/kmall
270c9d70de0b0b59dfa56d50db0466e655831e96
[ "CC0-1.0" ]
1
2020-12-02T09:00:06.000Z
2020-12-02T09:00:06.000Z
import unittest import pandas as pd import os from kmall_player import * class KmallPlayerTest(unittest.TestCase): def setUp(self) -> None: file_name = "data/MRZ_LARGE_SIZE.kmall" self.f = open(file_name, "rb") self.file_size = os.fstat(self.f.fileno()).st_size self.player = KmallP...
39.836735
108
0.67418
import unittest import pandas as pd import os from kmall_player import * class KmallPlayerTest(unittest.TestCase): def setUp(self) -> None: file_name = "data/MRZ_LARGE_SIZE.kmall" self.f = open(file_name, "rb") self.file_size = os.fstat(self.f.fileno()).st_size self.player = KmallP...
true
true
f70b34cdd9079c1a5bc04d0c71dc0e1703742f90
161
py
Python
csv_cti/blueprints/fs_api/__init__.py
Osmond1689/csv-cti
84be8241e9ba50f495b23775eb153e4129845474
[ "MIT" ]
null
null
null
csv_cti/blueprints/fs_api/__init__.py
Osmond1689/csv-cti
84be8241e9ba50f495b23775eb153e4129845474
[ "MIT" ]
null
null
null
csv_cti/blueprints/fs_api/__init__.py
Osmond1689/csv-cti
84be8241e9ba50f495b23775eb153e4129845474
[ "MIT" ]
null
null
null
from flask import Blueprint fs_api=Blueprint('fs_api',__name__,template_folder='templates') from .views import configuration,dialplan,directory,vars,update_cdr
32.2
67
0.84472
from flask import Blueprint fs_api=Blueprint('fs_api',__name__,template_folder='templates') from .views import configuration,dialplan,directory,vars,update_cdr
true
true
f70b35370574700e30c9df6e34e34f4182ba4a8c
34,208
py
Python
captum/captum/_utils/gradient.py
tbose20/D-Ref
eda6170a72838b89637df241dd5619e001f3afdb
[ "MIT" ]
2
2022-03-24T13:41:51.000Z
2022-03-29T02:32:56.000Z
captum/captum/_utils/gradient.py
tbose20/D-Ref
eda6170a72838b89637df241dd5619e001f3afdb
[ "MIT" ]
null
null
null
captum/captum/_utils/gradient.py
tbose20/D-Ref
eda6170a72838b89637df241dd5619e001f3afdb
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import threading import typing import warnings from collections import defaultdict from typing import Any, Callable, Dict, List, Optional, Tuple, Union, cast import torch from captum._utils.common import ( _reduce_list, _run_forward, _sort_key_list, _verify_select_neuron, ) from ...
39.730546
148
0.639646
import threading import typing import warnings from collections import defaultdict from typing import Any, Callable, Dict, List, Optional, Tuple, Union, cast import torch from captum._utils.common import ( _reduce_list, _run_forward, _sort_key_list, _verify_select_neuron, ) from captum._utils.typing i...
true
true
f70b35660098dbe1269746ca58b92936f76d8216
609
py
Python
reit_project/reit-data/get-reit.py
SamMonk/data-bot
2311870e993c5c2d1de617d31b3f7a6641da2a9b
[ "MIT" ]
null
null
null
reit_project/reit-data/get-reit.py
SamMonk/data-bot
2311870e993c5c2d1de617d31b3f7a6641da2a9b
[ "MIT" ]
5
2021-03-31T20:06:34.000Z
2022-03-12T00:58:22.000Z
reit_project/reit-data/get-reit.py
SamMonk/data-bot
2311870e993c5c2d1de617d31b3f7a6641da2a9b
[ "MIT" ]
null
null
null
#https://finance.yahoo.com/screener/6039bb71-c189-4b62-ab6d-6dbd659495bb?count=200 import requests from bs4 import BeautifulSoup # import json my_screener = requests.get(f'https://finance.yahoo.com/screener/6039bb71-c189-4b62-ab6d-6dbd659495bb?count=200') #print(my_screener) with open('code/reit-data/reits-screene...
30.45
112
0.740558
import requests from bs4 import BeautifulSoup my_screener = requests.get(f'https://finance.yahoo.com/screener/6039bb71-c189-4b62-ab6d-6dbd659495bb?count=200') with open('code/reit-data/reits-screener.html','r') as ticker_report: ticker_table_string = ticker_report.read() soup = BeautifulSoup(ticker_tabl...
true
true
f70b3646b5d05db86a2415800f42bd74a54fb82f
7,072
py
Python
tests/test_users.py
AndreyAD1/forum
bae8bee6c45ca53b717c661a4dc624fec05aca35
[ "MIT" ]
null
null
null
tests/test_users.py
AndreyAD1/forum
bae8bee6c45ca53b717c661a4dc624fec05aca35
[ "MIT" ]
null
null
null
tests/test_users.py
AndreyAD1/forum
bae8bee6c45ca53b717c661a4dc624fec05aca35
[ "MIT" ]
null
null
null
from collections import defaultdict import logging import random from faker import Faker import requests logger = logging.getLogger(__file__) def test_create_user(): fake = Faker() user_info = { 'username': fake.first_name() + str(random.randint(1, 1000)), 'common_name': fake.name(), ...
31.431111
75
0.610436
from collections import defaultdict import logging import random from faker import Faker import requests logger = logging.getLogger(__file__) def test_create_user(): fake = Faker() user_info = { 'username': fake.first_name() + str(random.randint(1, 1000)), 'common_name': fake.name(), ...
true
true
f70b36ff11e294f9ba8cdf3e7c715b9161f3372a
9,632
py
Python
model_tools/activations/hooks.py
BonnerLab/model-tools
ac90617cd79bb70a308e34a1e834971498329fb0
[ "MIT" ]
null
null
null
model_tools/activations/hooks.py
BonnerLab/model-tools
ac90617cd79bb70a308e34a1e834971498329fb0
[ "MIT" ]
null
null
null
model_tools/activations/hooks.py
BonnerLab/model-tools
ac90617cd79bb70a308e34a1e834971498329fb0
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod import logging import os from typing import Optional, Union, Iterable, Dict import h5py import numpy as np import torch from PIL import Image from tqdm import tqdm from brainio.stimuli import StimulusSet from model_tools.activations import ActivationsModel from model_tools.activati...
43.781818
120
0.653758
from abc import ABC, abstractmethod import logging import os from typing import Optional, Union, Iterable, Dict import h5py import numpy as np import torch from PIL import Image from tqdm import tqdm from brainio.stimuli import StimulusSet from model_tools.activations import ActivationsModel from model_tools.activati...
true
true
f70b387bc0378d9c79b7989c448252e010565e1a
3,287
py
Python
combination_model_prediction.py
hrrsjeong/METEORE
86f7949a0d65ccdabbbb41c44ea0a37fe4eb33c4
[ "MIT" ]
1
2020-07-16T09:59:58.000Z
2020-07-16T09:59:58.000Z
combination_model_prediction.py
comprna/supermix
ba8e517c51dbfd3fea5130f297c480c4626c2ff0
[ "MIT" ]
null
null
null
combination_model_prediction.py
comprna/supermix
ba8e517c51dbfd3fea5130f297c480c4626c2ff0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Jul 9 18:03:39 2020 @author: akanksha """ import pandas as pd import numpy as np import joblib from itertools import combinations import sklearn from functools import reduce import argparse import os parser = argparse.ArgumentParser(description = 'Predict...
42.141026
187
0.684211
import pandas as pd import numpy as np import joblib from itertools import combinations import sklearn from functools import reduce import argparse import os parser = argparse.ArgumentParser(description = 'Prediction from combined models for the reads.') parser.add_argument('--methodsfile','-i', type ...
true
true
f70b38a03ce07d299e033c0ceaa1d15797c754cb
35,573
py
Python
nextdl/extractor/nrk.py
devenu85/nextdl
0b458f556e2e0be80cb94bd9a9b1405ad2e9182d
[ "MIT" ]
1
2021-12-19T13:55:20.000Z
2021-12-19T13:55:20.000Z
nextdl/extractor/nrk.py
devenu85/nextdl
0b458f556e2e0be80cb94bd9a9b1405ad2e9182d
[ "MIT" ]
null
null
null
nextdl/extractor/nrk.py
devenu85/nextdl
0b458f556e2e0be80cb94bd9a9b1405ad2e9182d
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import unicode_literals import itertools import random import re from ..compat import compat_str from ..utils import (ExtractorError, determine_ext, int_or_none, parse_duration, str_or_none, try_get, url_or_none, urljoin) from .common import In...
34.63778
131
0.47865
from __future__ import unicode_literals import itertools import random import re from ..compat import compat_str from ..utils import (ExtractorError, determine_ext, int_or_none, parse_duration, str_or_none, try_get, url_or_none, urljoin) from .common import InfoExtractor c...
true
true
f70b3938b82bcdff4d037cfe9f07cbf0b506cfc7
4,413
py
Python
storm_analysis/diagnostics/sCMOS/configure.py
simone-codeluppi/storm-analysis
fa50fb7d670e9e4d712fa6fafb398963b39e209b
[ "CNRI-Python" ]
null
null
null
storm_analysis/diagnostics/sCMOS/configure.py
simone-codeluppi/storm-analysis
fa50fb7d670e9e4d712fa6fafb398963b39e209b
[ "CNRI-Python" ]
null
null
null
storm_analysis/diagnostics/sCMOS/configure.py
simone-codeluppi/storm-analysis
fa50fb7d670e9e4d712fa6fafb398963b39e209b
[ "CNRI-Python" ]
1
2021-04-19T18:17:06.000Z
2021-04-19T18:17:06.000Z
#!/usr/bin/env python """ Configure folder for sCMOS testing. Hazen 09/17 """ import numpy import os import storm_analysis import storm_analysis.sa_library.parameters as parameters import storm_analysis.simulator.emitters_on_grid as emittersOnGrid import storm_analysis.simulator.emitters_uniform_random as emittersUn...
34.476563
92
0.603898
import numpy import os import storm_analysis import storm_analysis.sa_library.parameters as parameters import storm_analysis.simulator.emitters_on_grid as emittersOnGrid import storm_analysis.simulator.emitters_uniform_random as emittersUniformRandom import storm_analysis.diagnostics.sCMOS.settings as settings de...
true
true
f70b39f8922b10c9be5f4991136c6b870360b0d8
32,982
py
Python
emulator.py
GuillaumeOrlando/Windows_Malware_Emulator
6f49d424266d0126f359e4e4db66b690788f3b6a
[ "Apache-2.0" ]
11
2021-03-16T18:41:29.000Z
2022-01-11T15:39:19.000Z
emulator.py
GuillaumeOrlando/Windows_Malware_Emulator
6f49d424266d0126f359e4e4db66b690788f3b6a
[ "Apache-2.0" ]
null
null
null
emulator.py
GuillaumeOrlando/Windows_Malware_Emulator
6f49d424266d0126f359e4e4db66b690788f3b6a
[ "Apache-2.0" ]
null
null
null
from unicorn import * from unicorn.x86_const import * from capstone import * from importlib import import_module from emulation.syscall import clean_stack import argparse import emulation.syscall as winsyscall import pefile import struct import sys import ast import os #TODO: Deal with SEH structure #TODO: Randomize T...
43.001304
161
0.545479
from unicorn import * from unicorn.x86_const import * from capstone import * from importlib import import_module from emulation.syscall import clean_stack import argparse import emulation.syscall as winsyscall import pefile import struct import sys import ast import os API_refs = 'winapi_9k.csv' regs = ['eax'...
true
true
f70b3a6a57e971fa38748f6fcdeb53521d3f0eda
535
py
Python
db_helpers.py
crisb0/final3011
8110b01edf17a4787d19ac8083ac4542381880b8
[ "MIT" ]
null
null
null
db_helpers.py
crisb0/final3011
8110b01edf17a4787d19ac8083ac4542381880b8
[ "MIT" ]
null
null
null
db_helpers.py
crisb0/final3011
8110b01edf17a4787d19ac8083ac4542381880b8
[ "MIT" ]
1
2018-09-25T03:52:04.000Z
2018-09-25T03:52:04.000Z
import sqlite3 from app import app from flask import g DATABASE = 'db/trackpants.db' def get_db(): db = getattr(g, '_database', None) if db is None: db = g._database = sqlite3.connect(DATABASE) return db @app.teardown_appcontext def close_db(exception): db = getattr(g, '_database', None)...
21.4
52
0.639252
import sqlite3 from app import app from flask import g DATABASE = 'db/trackpants.db' def get_db(): db = getattr(g, '_database', None) if db is None: db = g._database = sqlite3.connect(DATABASE) return db @app.teardown_appcontext def close_db(exception): db = getattr(g, '_database', None)...
true
true
f70b3c27a05fab17b36c2b9e4c733ddb6b814531
2,463
py
Python
example/Python_Plot/Battery example/ee_0120_Y_consist.py
Mic-Tsai/Power-Consumption-Current-Sense-System-V22
7fe8348171efe53a2985a591ef7cf657bacc5fbd
[ "MIT" ]
1
2020-08-19T02:30:42.000Z
2020-08-19T02:30:42.000Z
example/Python_Plot/Battery example/ee_0120_Y_consist.py
Mic-Tsai/Power-Consumption-Current-Sense-System-V22
7fe8348171efe53a2985a591ef7cf657bacc5fbd
[ "MIT" ]
null
null
null
example/Python_Plot/Battery example/ee_0120_Y_consist.py
Mic-Tsai/Power-Consumption-Current-Sense-System-V22
7fe8348171efe53a2985a591ef7cf657bacc5fbd
[ "MIT" ]
null
null
null
import argparse, re, sys, os import pandas as pd import matplotlib.pyplot as plt import numpy as np path = '' flname = sys.argv[1] try: chartType = sys.argv[2] except: chartType = 'ch1_vload' print('chartType:'+chartType) fl = flname.split('/') for i in fl[:-1]: path = path+i+'/' fw = open(flname, 'r') rawdata = ...
21.417391
75
0.624036
import argparse, re, sys, os import pandas as pd import matplotlib.pyplot as plt import numpy as np path = '' flname = sys.argv[1] try: chartType = sys.argv[2] except: chartType = 'ch1_vload' print('chartType:'+chartType) fl = flname.split('/') for i in fl[:-1]: path = path+i+'/' fw = open(flname, 'r') rawdata = ...
true
true
f70b3cd7485a9d19d3382154bde58d1928fe6a52
45,421
py
Python
chainer/link.py
lazykyama/chainer
d4965bbf53af9e1b74b9b8a518f92c751f652a33
[ "MIT" ]
1
2019-09-04T15:15:43.000Z
2019-09-04T15:15:43.000Z
chainer/link.py
dr4mohamed/chainer
6fa28004889b260ae13484f17dc1ac68b25d52bb
[ "MIT" ]
null
null
null
chainer/link.py
dr4mohamed/chainer
6fa28004889b260ae13484f17dc1ac68b25d52bb
[ "MIT" ]
null
null
null
from __future__ import absolute_import import collections import contextlib import copy import typing as tp # NOQA import warnings import numpy import six import chainer from chainer import backend from chainer.backends import cuda from chainer import device_resident from chainer import initializers from chainer imp...
36.365893
119
0.595341
from __future__ import absolute_import import collections import contextlib import copy import typing as tp import warnings import numpy import six import chainer from chainer import backend from chainer.backends import cuda from chainer import device_resident from chainer import initializers from chainer import li...
true
true
f70b3d490480e2c44304416517d3b896c717c71a
5,994
py
Python
application.py
jlind062/flippin_flask
94c092ad49f9f7ab7995073d3382015d598e45f5
[ "MIT" ]
3
2019-06-22T19:00:10.000Z
2019-06-23T18:33:46.000Z
application.py
sourenaKhanzadeh/flippin_flask
94c092ad49f9f7ab7995073d3382015d598e45f5
[ "MIT" ]
1
2021-06-01T23:52:53.000Z
2021-06-01T23:52:53.000Z
application.py
sourenaKhanzadeh/flippin_flask
94c092ad49f9f7ab7995073d3382015d598e45f5
[ "MIT" ]
2
2019-06-22T19:00:19.000Z
2019-06-22T20:33:19.000Z
from flask import Flask, render_template, request, flash, redirect, url_for, session from flask_sqlalchemy import SQLAlchemy from flask_mail import Message, Mail from passlib.hash import sha256_crypt from functools import wraps import requests import time # create the flask app from config file and instantiate db appl...
37.698113
92
0.649983
from flask import Flask, render_template, request, flash, redirect, url_for, session from flask_sqlalchemy import SQLAlchemy from flask_mail import Message, Mail from passlib.hash import sha256_crypt from functools import wraps import requests import time application = Flask(__name__) application.config.from_object('...
true
true
f70b3e78a726fa7daeafb49f4ec49e13ef4467c9
3,463
py
Python
jina/parsers/helloworld.py
ryan-zheng-teki/jina
042175fdb7e3ed8d9dd17233231beb2a8c2004bf
[ "Apache-2.0" ]
null
null
null
jina/parsers/helloworld.py
ryan-zheng-teki/jina
042175fdb7e3ed8d9dd17233231beb2a8c2004bf
[ "Apache-2.0" ]
null
null
null
jina/parsers/helloworld.py
ryan-zheng-teki/jina
042175fdb7e3ed8d9dd17233231beb2a8c2004bf
[ "Apache-2.0" ]
null
null
null
from pkg_resources import resource_filename from .base import set_base_parser from .helper import add_arg_group from ..helper import get_random_identity def set_hw_parser(parser=None): if not parser: parser = set_base_parser() gp = add_arg_group(parser, title='General') gp.add_argument('--workdi...
54.109375
116
0.597748
from pkg_resources import resource_filename from .base import set_base_parser from .helper import add_arg_group from ..helper import get_random_identity def set_hw_parser(parser=None): if not parser: parser = set_base_parser() gp = add_arg_group(parser, title='General') gp.add_argument('--workdi...
true
true
f70b3f7012f084ba3f391beabb56936491ed1b59
3,833
py
Python
install/app_store/tk-houdini-mantranode/v0.3.0/app.py
JoanAzpeitia/lp_sg
e0ee79555e419dd2ae3a5f31e5515b3f40b22a62
[ "MIT" ]
4
2019-01-11T03:41:28.000Z
2019-09-12T06:57:17.000Z
bundle_cache/app_store/tk-houdini-mantranode/v0.3.1/app.py
ColinKennedy/tk-config-default2-respawn
855fb8033daa549b92615792442f19a7f9c4f55c
[ "Linux-OpenIB" ]
null
null
null
bundle_cache/app_store/tk-houdini-mantranode/v0.3.1/app.py
ColinKennedy/tk-config-default2-respawn
855fb8033daa549b92615792442f19a7f9c4f55c
[ "Linux-OpenIB" ]
2
2019-01-10T05:00:18.000Z
2020-02-15T16:32:56.000Z
# Copyright (c) 2015 Shotgun Software Inc. # # CONFIDENTIAL AND PROPRIETARY # # This work is provided "AS IS" and subject to the Shotgun Pipeline Toolkit # Source Code License included in this distribution package. See LICENSE. # By accessing, using, copying or modifying this work you indicate your # agreement to the S...
33.920354
78
0.663449
import sgtk class TkMantraNodeApp(sgtk.platform.Application): def init_app(self): tk_houdini_mantra = self.import_module("tk_houdini_mantranode") self.handler = tk_houdini_mantra.TkMantraNodeHandler(self) def convert_to_regular_mantra_nodes(self): self.log_debug( ...
true
true
f70b419f55fd62b2aff2ff85eee6f57f67a7d0d8
2,647
py
Python
cases/1d/graphCaseValidation.py
andytorrestb/rarefiedPlume
c09234c701c395d16519d8a361eae17540711530
[ "MIT" ]
null
null
null
cases/1d/graphCaseValidation.py
andytorrestb/rarefiedPlume
c09234c701c395d16519d8a361eae17540711530
[ "MIT" ]
null
null
null
cases/1d/graphCaseValidation.py
andytorrestb/rarefiedPlume
c09234c701c395d16519d8a361eae17540711530
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np import os import pandas as pd # Find path for cases curr_dir_path = os.path.dirname(os.path.realpath(__file__)) # print(curr_dir_path) # cases = os.listdir(curr_dir_path + '/Cases') # pop = cases.index('baseCase') # cases.pop(pop) # Label graph with bold characters f...
27.010204
87
0.649792
import matplotlib.pyplot as plt import numpy as np import os import pandas as pd curr_dir_path = os.path.dirname(os.path.realpath(__file__)) font_axis_publish = { 'color': 'black', 'weight': 'bold', 'size': 22, } digi_n = pd.read_csv( curr_dir_path + '/n_nstar_radius.dat', hea...
true
true
f70b420d90436b97dbaad27536f9a5d01d87e845
842
py
Python
github/content/licenserule.py
ShineyDev/github
fbc7a3f66af34350c754e2d8b278ef419d0296b9
[ "Apache-2.0" ]
2
2021-04-24T10:54:12.000Z
2021-07-08T08:26:58.000Z
github/content/licenserule.py
ShineyDev/github
fbc7a3f66af34350c754e2d8b278ef419d0296b9
[ "Apache-2.0" ]
null
null
null
github/content/licenserule.py
ShineyDev/github
fbc7a3f66af34350c754e2d8b278ef419d0296b9
[ "Apache-2.0" ]
4
2019-07-09T23:23:36.000Z
2022-03-30T13:53:15.000Z
from github.interfaces import Type class LicenseRule(Type): """ Represents a license rule. """ __slots__ = () _repr_fields = [ "key", ] _graphql_fields = [ "description", "key", "label", ] @property def description(self): """ ...
15.309091
53
0.509501
from github.interfaces import Type class LicenseRule(Type): __slots__ = () _repr_fields = [ "key", ] _graphql_fields = [ "description", "key", "label", ] @property def description(self): return self._get_field("description") @property d...
true
true
f70b436846b47c3c69212de540878dd80838e8d3
2,621
py
Python
Lib/site-packages/pylint/extensions/check_elif.py
punithmadaiahkumar/try-django
39680a7583122bdd722789f92400edae67c6251d
[ "MIT" ]
2
2022-01-06T23:31:00.000Z
2022-01-06T23:35:49.000Z
Lib/site-packages/pylint/extensions/check_elif.py
punithmadaiahkumar/try-django
39680a7583122bdd722789f92400edae67c6251d
[ "MIT" ]
null
null
null
Lib/site-packages/pylint/extensions/check_elif.py
punithmadaiahkumar/try-django
39680a7583122bdd722789f92400edae67c6251d
[ "MIT" ]
null
null
null
# Copyright (c) 2015 LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr> # Copyright (c) 2016-2020 Claudiu Popa <pcmanticore@gmail.com> # Copyright (c) 2016 Glenn Matthews <glmatthe@cisco.com> # Copyright (c) 2018 Ville Skyttä <ville.skytta@iki.fi> # Copyright (c) 2019-2021 Pierre Sassoulas <pierre.sassoulas@gmail.com> #...
36.402778
87
0.662343
from astroid import nodes from pylint.checkers import BaseTokenChecker from pylint.checkers.utils import check_messages from pylint.interfaces import HIGH, IAstroidChecker, ITokenChecker class ElseifUsedChecker(BaseTokenChecker): __implements__ = (ITokenChecker, IAstroidChecker) name = "else_i...
true
true
f70b4427b05485de045681e5ad5ce916276873c7
5,002
py
Python
pretrain.py
nakashima-kodai/FractalDB_Pretrained_ViT_PyTorch
5d1df4023f05f5a8ff7e8a8810bf95119a0eeb96
[ "MIT" ]
12
2021-05-22T12:13:32.000Z
2022-01-27T03:13:48.000Z
pretrain.py
nakashima-kodai/FractalDB_Pretrained_ViT_PyTorch
5d1df4023f05f5a8ff7e8a8810bf95119a0eeb96
[ "MIT" ]
null
null
null
pretrain.py
nakashima-kodai/FractalDB_Pretrained_ViT_PyTorch
5d1df4023f05f5a8ff7e8a8810bf95119a0eeb96
[ "MIT" ]
null
null
null
import os, sys import math import hydra import torch import timm from hydra.utils import instantiate from timm.loss import LabelSmoothingCrossEntropy, SoftTargetCrossEntropy from timm.utils import NativeScaler import models from data import create_dataloader from utils import MetricLogger, SmoothedValue from utils im...
35.728571
101
0.644542
import os, sys import math import hydra import torch import timm from hydra.utils import instantiate from timm.loss import LabelSmoothingCrossEntropy, SoftTargetCrossEntropy from timm.utils import NativeScaler import models from data import create_dataloader from utils import MetricLogger, SmoothedValue from utils im...
true
true
f70b445e1cc3bd08d98868de9c00c440790bf47c
5,633
py
Python
deep_autoviml/preprocessing/preprocessing_images.py
chekoduadarsh/deep_autoviml
157fbdc2611dc0fbaee5fc4ebebe3e7c1eeb9b52
[ "Apache-2.0" ]
1
2021-12-15T17:11:24.000Z
2021-12-15T17:11:24.000Z
deep_autoviml/preprocessing/preprocessing_images.py
chekoduadarsh/deep_autoviml
157fbdc2611dc0fbaee5fc4ebebe3e7c1eeb9b52
[ "Apache-2.0" ]
null
null
null
deep_autoviml/preprocessing/preprocessing_images.py
chekoduadarsh/deep_autoviml
157fbdc2611dc0fbaee5fc4ebebe3e7c1eeb9b52
[ "Apache-2.0" ]
null
null
null
#Copyright 2021 Google LLC #Licensed under the Apache License, Version 2.0 (the "License"); #you may not use this file except in compliance with the License. #You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # #Unless required by applicable law or agreed to in writing,...
48.145299
126
0.648322
true
true
f70b453634eac4dbf2a64b4b70be55fdf1b7ac80
3,993
py
Python
evaluation/scripts/textflint_utils/utils.py
zpapakipos/dynabench-1
95884b4e29c57263dc1a85909be979c084d5fac3
[ "MIT" ]
15
2021-09-24T00:46:04.000Z
2022-03-16T13:24:56.000Z
evaluation/scripts/textflint_utils/utils.py
zpapakipos/dynabench-1
95884b4e29c57263dc1a85909be979c084d5fac3
[ "MIT" ]
98
2021-09-22T12:33:21.000Z
2022-03-21T22:23:52.000Z
evaluation/scripts/textflint_utils/utils.py
zpapakipos/dynabench-1
95884b4e29c57263dc1a85909be979c084d5fac3
[ "MIT" ]
12
2021-09-25T05:08:18.000Z
2022-02-28T21:02:20.000Z
# 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. # Convert data to textflint format and run transform functions in textflint import glob import json import os from textflint import Engine CO...
32.201613
88
0.60556
import glob import json import os from textflint import Engine CONFIG_PATH = "textflint_utils/configs" TRANSFORM_FIELDS = { "nli": {"context": "premise", "hypothesis": "hypothesis"}, "sentiment": {"statement": "x"}, "hs": {"statement": "x"}, "qa": {"context": "context", "question": "question"}, ...
true
true
f70b468eed83845185b750bee867ad6d6a0b97d5
679
py
Python
smsarch.py
archzets/smsarch
b4fc69890dfb84e4e8636ee65ad68128a62a0da9
[ "BSL-1.0" ]
null
null
null
smsarch.py
archzets/smsarch
b4fc69890dfb84e4e8636ee65ad68128a62a0da9
[ "BSL-1.0" ]
null
null
null
smsarch.py
archzets/smsarch
b4fc69890dfb84e4e8636ee65ad68128a62a0da9
[ "BSL-1.0" ]
null
null
null
import requests import pyfiglet ascii_banner = pyfiglet.figlet_format("SMSARCH") print(ascii_banner) import requests while True: kime = input("kim:") mesaj = input("mesaj:") if " " in kime or mesaj == "": break resp = requests.post('https://textbelt.com/text', { 'phone': '{}'.format(kime...
28.291667
99
0.537555
import requests import pyfiglet ascii_banner = pyfiglet.figlet_format("SMSARCH") print(ascii_banner) import requests while True: kime = input("kim:") mesaj = input("mesaj:") if " " in kime or mesaj == "": break resp = requests.post('https://textbelt.com/text', { 'phone': '{}'.format(kime...
true
true
f70b4712d4642d8fba04922d1c1c7b2949c947b8
27,320
py
Python
src/pipx/main.py
gotmax23/pipx
adb078cb9456c56da5f721da73c22df357a60bda
[ "MIT" ]
1,244
2021-05-27T09:25:58.000Z
2022-03-31T19:03:41.000Z
src/pipx/main.py
gotmax23/pipx
adb078cb9456c56da5f721da73c22df357a60bda
[ "MIT" ]
138
2021-05-27T09:47:41.000Z
2022-03-30T01:04:02.000Z
src/pipx/main.py
gotmax23/pipx
adb078cb9456c56da5f721da73c22df357a60bda
[ "MIT" ]
97
2021-05-28T17:48:09.000Z
2022-03-30T00:31:32.000Z
# PYTHON_ARGCOMPLETE_OK """The command line interface to pipx""" import argparse import logging import logging.config import os import re import shlex import sys import textwrap import time import urllib.parse from pathlib import Path from typing import Any, Callable, Dict, List import argcomplete # type: ignore fr...
34.321608
121
0.636054
import argparse import logging import logging.config import os import re import shlex import sys import textwrap import time import urllib.parse from pathlib import Path from typing import Any, Callable, Dict, List import argcomplete from packaging.requirements import InvalidRequirement, Requirement from packagin...
true
true
f70b47643839b003e1a33b6eff6fc4f5f1de1581
410
py
Python
quadpy/e3r/tools.py
gdmcbain/quadpy
c083d500027d7c1b2187ae06ff2b7fbdd360ccc7
[ "MIT" ]
1
2019-01-02T19:04:42.000Z
2019-01-02T19:04:42.000Z
quadpy/e3r/tools.py
gdmcbain/quadpy
c083d500027d7c1b2187ae06ff2b7fbdd360ccc7
[ "MIT" ]
null
null
null
quadpy/e3r/tools.py
gdmcbain/quadpy
c083d500027d7c1b2187ae06ff2b7fbdd360ccc7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # import numpy from .. import helpers def integrate(f, rule, dot=numpy.dot): flt = numpy.vectorize(float) return dot(f(flt(rule.points).T), flt(rule.weights)) def show(scheme, backend="mpl"): """Displays scheme for E_3^r quadrature. """ helpers.backend_to_function[backen...
20.5
68
0.641463
import numpy from .. import helpers def integrate(f, rule, dot=numpy.dot): flt = numpy.vectorize(float) return dot(f(flt(rule.points).T), flt(rule.weights)) def show(scheme, backend="mpl"): helpers.backend_to_function[backend]( scheme.points, scheme.weights, volume=8 * numpy.pi, edges=[] ...
true
true
f70b478d5085a5ad29d7c5f1433e9a5dcace1aa8
488
py
Python
bark/runtime/scenario/scenario_generation/config_readers/__init__.py
GAIL-4-BARK/bark
1cfda9ba6e9ec5318fbf01af6b67c242081b516e
[ "MIT" ]
null
null
null
bark/runtime/scenario/scenario_generation/config_readers/__init__.py
GAIL-4-BARK/bark
1cfda9ba6e9ec5318fbf01af6b67c242081b516e
[ "MIT" ]
null
null
null
bark/runtime/scenario/scenario_generation/config_readers/__init__.py
GAIL-4-BARK/bark
1cfda9ba6e9ec5318fbf01af6b67c242081b516e
[ "MIT" ]
1
2020-08-12T17:09:05.000Z
2020-08-12T17:09:05.000Z
# Copyright (c) 2020 Julian Bernhard, Klemens Esterle, Patrick Hart and # Tobias Kessler # # This work is licensed under the terms of the MIT license. # For a copy, see <https://opensource.org/licenses/MIT>. from .agent_state_geometry_config_readers import * from .behavior_model_config_readers import * from .controlle...
40.666667
71
0.817623
from .agent_state_geometry_config_readers import * from .behavior_model_config_readers import * from .controlled_agents_config_readers import * from .dynamic_model_config_readers import * from .execution_model_config_readers import * from .goal_definition_config_readers import *
true
true
f70b487dbf13fd67d8c1b8771e80901c74c097de
2,633
py
Python
scripts/clean.py
aman-roy/oppia
0e7066829b59bf6ce4b15c4723fe0398721cfd1a
[ "Apache-2.0" ]
2
2019-12-02T18:56:49.000Z
2020-03-14T17:14:15.000Z
scripts/clean.py
aman-roy/oppia
0e7066829b59bf6ce4b15c4723fe0398721cfd1a
[ "Apache-2.0" ]
2
2019-09-11T23:11:48.000Z
2019-11-29T06:04:52.000Z
scripts/clean.py
aman-roy/oppia
0e7066829b59bf6ce4b15c4723fe0398721cfd1a
[ "Apache-2.0" ]
2
2019-12-02T18:56:56.000Z
2020-03-16T08:03:45.000Z
# Copyright 2019 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
31.345238
79
0.734523
from __future__ import absolute_import from __future__ import unicode_literals import argparse import os import shutil import python_utils CURR_DIR = os.path.abspath(os.getcwd()) OPPIA_TOOLS_DIR = os.path.join(CURR_DIR, '..', 'oppia_tools') _PARSER = argparse.ArgumentParser(description=""" Delete...
true
true
f70b4945227d811eedda76780bd668eab187029e
2,622
py
Python
model_measuring/kamal/core/engine/events.py
Gouzhong1223/Dubhe
8959a51704410dc38b595a0926646b9928451c9a
[ "Apache-2.0" ]
1
2022-01-11T07:14:37.000Z
2022-01-11T07:14:37.000Z
model_measuring/kamal/core/engine/events.py
Gouzhong1223/Dubhe
8959a51704410dc38b595a0926646b9928451c9a
[ "Apache-2.0" ]
1
2022-03-04T07:19:43.000Z
2022-03-04T07:19:43.000Z
model_measuring/kamal/core/engine/events.py
Gouzhong1223/Dubhe
8959a51704410dc38b595a0926646b9928451c9a
[ "Apache-2.0" ]
1
2022-03-20T13:09:14.000Z
2022-03-20T13:09:14.000Z
""" Copyright 2020 Tianshu AI Platform. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law ...
28.5
79
0.637681
from typing import Callable, Optional from enum import Enum class Event(object): def __init__(self, value: str, event_trigger: Optional[Callable]=None ): if event_trigger is None: event_trigger = Event.default_trigger self._trigger = event_trigger self._name_ = self._value_ = ...
true
true
f70b494729d59f0ef0996b3eb8e1b49262383183
773
py
Python
scripts/run_pipeline.py
VIDA-NYU/alphad3m
db40193a448300d87442c451f9da17fa5cb845fd
[ "Apache-2.0" ]
null
null
null
scripts/run_pipeline.py
VIDA-NYU/alphad3m
db40193a448300d87442c451f9da17fa5cb845fd
[ "Apache-2.0" ]
null
null
null
scripts/run_pipeline.py
VIDA-NYU/alphad3m
db40193a448300d87442c451f9da17fa5cb845fd
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import json import os import sys import uuid from alphad3m.automl import AutoML if __name__ == '__main__': if len(sys.argv) != 3: sys.stderr.write('Usage: %s <config> <pipeline_uuid>\n' % sys.argv[0]) sys.exit(1) with open(sys.argv[1]) as config_file: config = ...
28.62963
84
0.615783
import json import os import sys import uuid from alphad3m.automl import AutoML if __name__ == '__main__': if len(sys.argv) != 3: sys.stderr.write('Usage: %s <config> <pipeline_uuid>\n' % sys.argv[0]) sys.exit(1) with open(sys.argv[1]) as config_file: config = json.load(config_file)...
true
true
f70b4ab8b24b3c82f5dfd1e583d98ca16d2fb009
2,358
py
Python
tests/optim_test.py
liutongyu0304/smartnet
6c720165d3222366864163b39f0e2ba7db64253f
[ "BSD-3-Clause" ]
null
null
null
tests/optim_test.py
liutongyu0304/smartnet
6c720165d3222366864163b39f0e2ba7db64253f
[ "BSD-3-Clause" ]
null
null
null
tests/optim_test.py
liutongyu0304/smartnet
6c720165d3222366864163b39f0e2ba7db64253f
[ "BSD-3-Clause" ]
null
null
null
# coding=utf-8 from smartnet.optims import * from smartnet.layers import * import smartnet as sn import unittest class OptimTest(unittest.TestCase): def setUp(self): pass def tearDown(self): pass @classmethod def setUpClass(cls): print("optim test begins.") @classmethod ...
24.309278
64
0.522477
from smartnet.optims import * from smartnet.layers import * import smartnet as sn import unittest class OptimTest(unittest.TestCase): def setUp(self): pass def tearDown(self): pass @classmethod def setUpClass(cls): print("optim test begins.") @classmethod def tearDo...
true
true
f70b4acf7cbf3a28a8bfb59275fed813316b0317
709
py
Python
app/users/migrations/0007_auto_20190803_0831.py
S3Infosoft/mvr-insights
ac73feff03c1592d5efd8e0b82f72dd4dbd3e921
[ "MIT" ]
null
null
null
app/users/migrations/0007_auto_20190803_0831.py
S3Infosoft/mvr-insights
ac73feff03c1592d5efd8e0b82f72dd4dbd3e921
[ "MIT" ]
20
2019-06-17T11:01:25.000Z
2020-05-09T06:13:17.000Z
app/users/migrations/0007_auto_20190803_0831.py
S3Infosoft/mvr-insights
ac73feff03c1592d5efd8e0b82f72dd4dbd3e921
[ "MIT" ]
1
2020-03-03T11:13:57.000Z
2020-03-03T11:13:57.000Z
# Generated by Django 2.2.4 on 2019-08-03 08:31 from django.db import migrations, models import users.models class Migration(migrations.Migration): dependencies = [ ('users', '0006_auto_20190803_0830'), ] operations = [ migrations.AlterField( model_name='customuser', ...
28.36
122
0.634697
from django.db import migrations, models import users.models class Migration(migrations.Migration): dependencies = [ ('users', '0006_auto_20190803_0830'), ] operations = [ migrations.AlterField( model_name='customuser', name='_image', field=models.Im...
true
true
f70b4d49fd7c2428414fde8a0fcb3a392c5d7289
7,023
py
Python
deepsim/deepsim/core/link_state.py
aws-deepracer/deepsim
cad2639f525c2f94ec5c03d8b855cc65b0b8ee55
[ "Apache-2.0" ]
1
2022-03-25T07:20:49.000Z
2022-03-25T07:20:49.000Z
deepsim/deepsim/core/link_state.py
aws-deepracer/deepsim
cad2639f525c2f94ec5c03d8b855cc65b0b8ee55
[ "Apache-2.0" ]
null
null
null
deepsim/deepsim/core/link_state.py
aws-deepracer/deepsim
cad2639f525c2f94ec5c03d8b855cc65b0b8ee55
[ "Apache-2.0" ]
null
null
null
################################################################################# # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # # # # Licensed under the Apache License, Version 2.0 (the "License"). ...
31.922727
109
0.508472
true
true
f70b4e07bb9dc2e5dc2154f42b695e18f69be121
8,395
py
Python
autossrf.py
Th0h0/autossrf
17125339c395ffaef7d6a58ba234fad53d172885
[ "MIT" ]
null
null
null
autossrf.py
Th0h0/autossrf
17125339c395ffaef7d6a58ba234fad53d172885
[ "MIT" ]
null
null
null
autossrf.py
Th0h0/autossrf
17125339c395ffaef7d6a58ba234fad53d172885
[ "MIT" ]
1
2022-03-26T14:21:59.000Z
2022-03-26T14:21:59.000Z
import regex import argparse import requests import time import os import threading import random execPath = os.getcwd() currentPath = os.path.dirname(__file__) os.chdir(currentPath) FUZZ_PLACE_HOLDER = '??????' TIMEOUT_DELAY = 5 LOCK = threading.Lock() parser = argparse.ArgumentParser() parser.add_argument("--file"...
34.690083
379
0.657177
import regex import argparse import requests import time import os import threading import random execPath = os.getcwd() currentPath = os.path.dirname(__file__) os.chdir(currentPath) FUZZ_PLACE_HOLDER = '??????' TIMEOUT_DELAY = 5 LOCK = threading.Lock() parser = argparse.ArgumentParser() parser.add_argument("--file"...
true
true
f70b4fbb627ce25c7b6702ad09dd5c7ee15dad9d
321
py
Python
core/migrations/0004_remove_user_username.py
jamesseth/Universalone
11aa4eef9879970baa49f5602d8ebdf83aee4b6a
[ "MIT" ]
null
null
null
core/migrations/0004_remove_user_username.py
jamesseth/Universalone
11aa4eef9879970baa49f5602d8ebdf83aee4b6a
[ "MIT" ]
null
null
null
core/migrations/0004_remove_user_username.py
jamesseth/Universalone
11aa4eef9879970baa49f5602d8ebdf83aee4b6a
[ "MIT" ]
null
null
null
# Generated by Django 3.1.14 on 2022-03-04 18:39 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('core', '0003_user_username'), ] operations = [ migrations.RemoveField( model_name='user', name='username', ), ]...
17.833333
48
0.582555
from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('core', '0003_user_username'), ] operations = [ migrations.RemoveField( model_name='user', name='username', ), ]
true
true
f70b50ce14fd613d55f97a8be1d77a76ed98e10a
1,998
py
Python
src/import_pracownikow/migrations/0002_importpracownikowrow.py
iplweb/django-bpp
85f183a99d8d5027ae4772efac1e4a9f21675849
[ "BSD-3-Clause" ]
1
2017-04-27T19:50:02.000Z
2017-04-27T19:50:02.000Z
src/import_pracownikow/migrations/0002_importpracownikowrow.py
mpasternak/django-bpp
434338821d5ad1aaee598f6327151aba0af66f5e
[ "BSD-3-Clause" ]
41
2019-11-07T00:07:02.000Z
2022-02-27T22:09:39.000Z
src/import_pracownikow/migrations/0002_importpracownikowrow.py
iplweb/bpp
f027415cc3faf1ca79082bf7bacd4be35b1a6fdf
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 3.0.11 on 2021-02-28 16:39 import django.contrib.postgres.fields.jsonb import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("bpp", "0240_auto_20210228_1739"), ("import_pracownikow", "0001_initial"...
31.21875
87
0.407407
import django.contrib.postgres.fields.jsonb import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("bpp", "0240_auto_20210228_1739"), ("import_pracownikow", "0001_initial"), ] operations = [ migrations....
true
true
f70b522960a3a384eacd9476f9389c6890217ff6
970
py
Python
saleor/expensetypes/models.py
glosoftgroup/tenants
a6b229ad1f6d567b7078f83425a532830b71e1bb
[ "BSD-3-Clause" ]
1
2018-05-03T06:17:02.000Z
2018-05-03T06:17:02.000Z
saleor/expensetypes/models.py
glosoftgroup/tenants
a6b229ad1f6d567b7078f83425a532830b71e1bb
[ "BSD-3-Clause" ]
8
2018-05-07T16:42:35.000Z
2022-02-26T03:31:56.000Z
saleor/expensetypes/models.py
glosoftgroup/tenants
a6b229ad1f6d567b7078f83425a532830b71e1bb
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals from django.db import models from django.utils.translation import pgettext_lazy from django.utils.timezone import now class ExpenseTypes(models.Model): name = models.CharField( pgettext_lazy('ExpenseTypes field', 'name'), unique=True, max_length=128) descriptio...
32.333333
95
0.703093
from __future__ import unicode_literals from django.db import models from django.utils.translation import pgettext_lazy from django.utils.timezone import now class ExpenseTypes(models.Model): name = models.CharField( pgettext_lazy('ExpenseTypes field', 'name'), unique=True, max_length=128) descriptio...
true
true
f70b525457f87d17c8efd833276ea214c1891035
265
py
Python
10 Days of Statistics/Day 5 Poisson Distribution II.py
MonwarAdeeb/HackerRank-Solutions
571327e9688061745000ae81c5fd74ff7a2976d4
[ "MIT" ]
null
null
null
10 Days of Statistics/Day 5 Poisson Distribution II.py
MonwarAdeeb/HackerRank-Solutions
571327e9688061745000ae81c5fd74ff7a2976d4
[ "MIT" ]
null
null
null
10 Days of Statistics/Day 5 Poisson Distribution II.py
MonwarAdeeb/HackerRank-Solutions
571327e9688061745000ae81c5fd74ff7a2976d4
[ "MIT" ]
null
null
null
# Enter your code here. Read input from STDIN. Print output to STDOUT averageX, averageY = [float(num) for num in input().split(" ")] CostX = 160 + 40*(averageX + averageX**2) CostY = 128 + 40*(averageY + averageY**2) print(round(CostX, 3)) print(round(CostY, 3))
33.125
69
0.686792
averageX, averageY = [float(num) for num in input().split(" ")] CostX = 160 + 40*(averageX + averageX**2) CostY = 128 + 40*(averageY + averageY**2) print(round(CostX, 3)) print(round(CostY, 3))
true
true
f70b543d15dfc1d3ae417fb6ae739938fa4eb1f7
455
py
Python
MIPS.py
Stomach-ache/GLaS
253092cce1922711e7d9c9df601f117f3ec56e0c
[ "MIT" ]
null
null
null
MIPS.py
Stomach-ache/GLaS
253092cce1922711e7d9c9df601f117f3ec56e0c
[ "MIT" ]
null
null
null
MIPS.py
Stomach-ache/GLaS
253092cce1922711e7d9c9df601f117f3ec56e0c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import hnswlib import numpy as np def buildIndex(X): dim = X.shape[1] num_elements = X.shape[0] data_labels = np.arange(num_elements) p = hnswlib.Index(space = 'cosine', dim = dim) p.init_index(max_elements = num_elements, ef_construction = 200, M = 16) p.add_items(X, d...
22.75
76
0.643956
import hnswlib import numpy as np def buildIndex(X): dim = X.shape[1] num_elements = X.shape[0] data_labels = np.arange(num_elements) p = hnswlib.Index(space = 'cosine', dim = dim) p.init_index(max_elements = num_elements, ef_construction = 200, M = 16) p.add_items(X, data_labels) p.set_e...
true
true
f70b548ce4f7e4c8370edd4d6309077c0b3aeee4
15,065
py
Python
pyvcloud/vcd/firewall_rule.py
kousgy123/pyvcloud
46cbac266b7db64c32ae2a9b860d2c82f4d00a36
[ "Apache-2.0" ]
null
null
null
pyvcloud/vcd/firewall_rule.py
kousgy123/pyvcloud
46cbac266b7db64c32ae2a9b860d2c82f4d00a36
[ "Apache-2.0" ]
null
null
null
pyvcloud/vcd/firewall_rule.py
kousgy123/pyvcloud
46cbac266b7db64c32ae2a9b860d2c82f4d00a36
[ "Apache-2.0" ]
null
null
null
# VMware vCloud Director Python SDK # Copyright (c) 2014-2019 VMware, Inc. All Rights Reserved. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 ...
44.308824
79
0.62237
from pyvcloud.vcd.client import create_element from pyvcloud.vcd.client import EntityType from pyvcloud.vcd.exceptions import InvalidParameterException from pyvcloud.vcd.gateway import Gateway from pyvcloud.vcd.gateway_services import GatewayServices from pyvcloud.vcd.network_url_constants import FIREWALL_...
true
true
f70b54bcca7c78b8d17ea7a455504224546fdeca
2,474
py
Python
network/db.py
LincZero/BiliTools
334190da7f6407fc85b20ff6d126a3dcd16505ab
[ "Apache-2.0" ]
null
null
null
network/db.py
LincZero/BiliTools
334190da7f6407fc85b20ff6d126a3dcd16505ab
[ "Apache-2.0" ]
null
null
null
network/db.py
LincZero/BiliTools
334190da7f6407fc85b20ff6d126a3dcd16505ab
[ "Apache-2.0" ]
null
null
null
import MySQLdb from biliClass.biliAid import Aid import time def dblink(): # 连接数据库 # demo return MySQLdb.connect( host='localhost', user='root', passwd='password', db='nav', charset='utf8' ) def dbsql(conn, sql): # 执行sql cursor = conn.cursor() cursor...
27.186813
185
0.516168
import MySQLdb from biliClass.biliAid import Aid import time def dblink(): return MySQLdb.connect( host='localhost', user='root', passwd='password', db='nav', charset='utf8' ) def dbsql(conn, sql): cursor = conn.cursor() cursor.execute(sql) re...
true
true
f70b569498b82d470320a1d9546d114427f688b4
695
py
Python
cinderclient/v3/qos_specs.py
deepanshhu/python-cinderclient
2c0f74c708fd09c5ae813255aaa671073f2fe250
[ "Apache-1.1" ]
null
null
null
cinderclient/v3/qos_specs.py
deepanshhu/python-cinderclient
2c0f74c708fd09c5ae813255aaa671073f2fe250
[ "Apache-1.1" ]
null
null
null
cinderclient/v3/qos_specs.py
deepanshhu/python-cinderclient
2c0f74c708fd09c5ae813255aaa671073f2fe250
[ "Apache-1.1" ]
null
null
null
# Copyright (c) 2013 eBay Inc. # Copyright (c) OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
30.217391
69
0.748201
from cinderclient.v2.qos_specs import *
true
true
f70b5953932541c87b991bde53d94cc13d35e857
36
py
Python
tests/__init__.py
quarkslab/ziphyr
f4b6f258b88ed5b4c8c1e0557ddd01e63f225407
[ "Apache-2.0" ]
3
2020-12-13T10:52:50.000Z
2021-11-15T10:45:00.000Z
tests/__init__.py
quarkslab/ziphyr
f4b6f258b88ed5b4c8c1e0557ddd01e63f225407
[ "Apache-2.0" ]
null
null
null
tests/__init__.py
quarkslab/ziphyr
f4b6f258b88ed5b4c8c1e0557ddd01e63f225407
[ "Apache-2.0" ]
1
2021-11-14T02:56:49.000Z
2021-11-14T02:56:49.000Z
"""Unit test package for ziphyr."""
18
35
0.666667
true
true
f70b5a26a5001b76af41aed307f2de5fb84a932a
3,490
py
Python
python_modules/dagster/dagster_tests/conftest.py
johannkm/dagster-okteto
7ad30528a4a92945967d68e59e27727a1e839c2b
[ "Apache-2.0" ]
1
2020-08-10T23:03:37.000Z
2020-08-10T23:03:37.000Z
python_modules/dagster/dagster_tests/conftest.py
johannkm/dagster-okteto
7ad30528a4a92945967d68e59e27727a1e839c2b
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster_tests/conftest.py
johannkm/dagster-okteto
7ad30528a4a92945967d68e59e27727a1e839c2b
[ "Apache-2.0" ]
1
2020-08-20T14:20:31.000Z
2020-08-20T14:20:31.000Z
import os import subprocess import time from contextlib import contextmanager import grpc import pytest from dagster_test.dagster_core_docker_buildkite import ( build_and_tag_test_image, test_project_docker_image, ) from dagster import check from dagster.grpc.client import DagsterGrpcClient from dagster.utils...
30.884956
100
0.67851
import os import subprocess import time from contextlib import contextmanager import grpc import pytest from dagster_test.dagster_core_docker_buildkite import ( build_and_tag_test_image, test_project_docker_image, ) from dagster import check from dagster.grpc.client import DagsterGrpcClient from dagster.utils...
true
true
f70b5aa7ce7c85310bc3393804622e2a327dc477
16,705
py
Python
tests/image/utils_test.py
ayman3000/keras-preprocessing
845c423e01acfe251d4276e52cf2b86e73f1646a
[ "MIT" ]
1,071
2018-05-30T23:04:13.000Z
2022-03-23T08:50:10.000Z
tests/image/utils_test.py
ayman3000/keras-preprocessing
845c423e01acfe251d4276e52cf2b86e73f1646a
[ "MIT" ]
286
2018-05-31T14:17:50.000Z
2022-03-31T10:13:57.000Z
tests/image/utils_test.py
ayman3000/keras-preprocessing
845c423e01acfe251d4276e52cf2b86e73f1646a
[ "MIT" ]
529
2018-05-30T23:21:34.000Z
2022-03-08T19:11:06.000Z
import io import resource from pathlib import Path import numpy as np import PIL import pytest from keras_preprocessing.image import utils def test_validate_filename(tmpdir): valid_extensions = ('png', 'jpg') filename = tmpdir.ensure('test.png') assert utils.validate_filename(str(filename), valid_extens...
41.7625
81
0.685004
import io import resource from pathlib import Path import numpy as np import PIL import pytest from keras_preprocessing.image import utils def test_validate_filename(tmpdir): valid_extensions = ('png', 'jpg') filename = tmpdir.ensure('test.png') assert utils.validate_filename(str(filename), valid_extens...
true
true
f70b5ab5c5fcfa6cb7faa06d88ce4d7ec1a8cd30
1,525
py
Python
tests/stream_test.py
pniedzwiedzinski/pseudo
b27570bd8400b6a51a2958454b31f1ce2e25c4f9
[ "MIT" ]
5
2019-04-02T07:01:34.000Z
2019-11-24T02:08:03.000Z
tests/stream_test.py
pniedzwiedzinski/pseudo
b27570bd8400b6a51a2958454b31f1ce2e25c4f9
[ "MIT" ]
11
2019-03-20T08:29:30.000Z
2019-05-21T11:57:03.000Z
tests/stream_test.py
pniedzwiedzinski/pseudo
b27570bd8400b6a51a2958454b31f1ce2e25c4f9
[ "MIT" ]
1
2019-04-02T15:24:40.000Z
2019-04-02T15:24:40.000Z
"""This module contains unit tests for stream module.""" import pytest import pseudo __author__ = "Patryk Niedźwiedziński" @pytest.fixture def stream(): """Returns stream object""" def _s(i): s = pseudo.stream.Stream(i) return s return _s @pytest.mark.timeout(2) def test_get_current...
18.154762
56
0.591475
import pytest import pseudo __author__ = "Patryk Niedźwiedziński" @pytest.fixture def stream(): def _s(i): s = pseudo.stream.Stream(i) return s return _s @pytest.mark.timeout(2) def test_get_current_line(stream, test): s = stream("a\nb") test(s.get_current_line(), "a") s.li...
true
true
f70b5ae82ddf77d29a0ee10d330906455aea832b
3,360
py
Python
packages/openshift/result.py
mhcurlee/openshift-client-python
f8013715d51afcd51c5ab8dd95ee0e2f9f21bb15
[ "Apache-2.0" ]
41
2019-04-12T21:07:02.000Z
2022-02-21T20:01:18.000Z
packages/openshift/result.py
mhcurlee/openshift-client-python
f8013715d51afcd51c5ab8dd95ee0e2f9f21bb15
[ "Apache-2.0" ]
27
2019-07-11T21:26:27.000Z
2021-11-29T17:28:42.000Z
packages/openshift/result.py
mhcurlee/openshift-client-python
f8013715d51afcd51c5ab8dd95ee0e2f9f21bb15
[ "Apache-2.0" ]
33
2019-04-10T17:37:01.000Z
2022-03-08T01:05:45.000Z
from __future__ import absolute_import import json from .model import OpenShiftPythonException class Result(object): def __init__(self, high_level_operation, tracking_limit=None): self.high_level_operation = high_level_operation self.__actions = [] # if tracking_limit is less than 0 that...
35
117
0.609821
from __future__ import absolute_import import json from .model import OpenShiftPythonException class Result(object): def __init__(self, high_level_operation, tracking_limit=None): self.high_level_operation = high_level_operation self.__actions = [] if tracking_limit is not None ...
true
true
f70b5b13da8974a7a5b30eaef4bc634bbeef2ad0
5,029
py
Python
simbad/mr/sheetbend_refine.py
hlasimpk/SIMPLE
89570f1a29e2871cb1e85cfda36cfa22fbad0877
[ "BSD-3-Clause" ]
2
2017-02-14T15:31:30.000Z
2019-07-20T12:30:59.000Z
simbad/mr/sheetbend_refine.py
hlasimpk/SIMPLE
89570f1a29e2871cb1e85cfda36cfa22fbad0877
[ "BSD-3-Clause" ]
65
2017-02-14T14:19:28.000Z
2021-09-21T09:50:02.000Z
simbad/mr/sheetbend_refine.py
hlasimpk/SIMPLE
89570f1a29e2871cb1e85cfda36cfa22fbad0877
[ "BSD-3-Clause" ]
7
2017-05-09T15:27:08.000Z
2021-06-13T13:32:40.000Z
#!/usr/bin/env ccp4-python """Module to run sheetbend on a model""" __author__ = "Adam Simpkin" __date__ = "05 Aug 2018" __version__ = "1.0" import os from simbad.util import mtz_util from simbad.mr.refmac_refine import Refmac from pyjob import cexec class SheetBend(object): """Class to run sheetbend""" d...
28.737143
149
0.608471
__author__ = "Adam Simpkin" __date__ = "05 Aug 2018" __version__ = "1.0" import os from simbad.util import mtz_util from simbad.mr.refmac_refine import Refmac from pyjob import cexec class SheetBend(object): def __init__(self, hklin, hklout, logfile, pdbin, pdbout, work_dir): self._hklin = None ...
true
true
f70b5bc19f060360f1fc41d6395e3d53e284fb88
8,628
py
Python
sdk/python/pulumi_azure_nextgen/web/web_app_backup_configuration_slot.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/web/web_app_backup_configuration_slot.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/web/web_app_backup_configuration_slot.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from .. import _utilities, _tables from ...
45.650794
779
0.659944
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from .. import _utilities, _tables from . import outputs from ._enums import * from ._inputs import * __all__ = ['WebAppBackupConfigurationSlot'] class WebAppBackupConfigurationSlot(pulumi.CustomResourc...
true
true
f70b5c717242fedb522fc7d4cd4831e8513391c1
67
py
Python
src/python/twitter/common/python/platforms.py
zhouyijiaren/commons
10df6fb63547baa9047782aa7ad4edf354914b10
[ "Apache-2.0" ]
1,143
2015-01-05T04:19:24.000Z
2019-12-11T12:02:23.000Z
src/python/twitter/common/python/platforms.py
zhouyijiaren/commons
10df6fb63547baa9047782aa7ad4edf354914b10
[ "Apache-2.0" ]
144
2015-01-06T05:05:07.000Z
2019-12-12T18:02:37.000Z
src/python/twitter/common/python/platforms.py
zhouyijiaren/commons
10df6fb63547baa9047782aa7ad4edf354914b10
[ "Apache-2.0" ]
426
2015-01-08T08:33:41.000Z
2019-12-09T13:15:40.000Z
from __future__ import absolute_import from pex.platforms import *
22.333333
38
0.850746
from __future__ import absolute_import from pex.platforms import *
true
true
f70b5e01e475801f3975fd465b2281a400b36fda
18,438
py
Python
mmdet3d/datasets/s3dis_dataset.py
chence17/fcaf3d
636aaa0410430deedd7bd4979e8c1bc307424a84
[ "MIT" ]
95
2021-12-01T07:32:48.000Z
2022-03-11T07:12:32.000Z
mmdet3d/datasets/s3dis_dataset.py
chence17/fcaf3d
636aaa0410430deedd7bd4979e8c1bc307424a84
[ "MIT" ]
15
2021-12-03T09:56:17.000Z
2022-03-07T13:01:12.000Z
mmdet3d/datasets/s3dis_dataset.py
chence17/fcaf3d
636aaa0410430deedd7bd4979e8c1bc307424a84
[ "MIT" ]
21
2021-12-02T11:07:55.000Z
2022-03-28T15:25:02.000Z
import numpy as np from os import path as osp from mmdet3d.core import show_result, show_seg_result from mmdet3d.core.bbox import DepthInstance3DBoxes from mmdet.datasets import DATASETS from mmseg.datasets import DATASETS as SEG_DATASETS from .custom_3d import Custom3DDataset from .custom_3d_seg import Custom3DSegDat...
39.822894
83
0.594533
import numpy as np from os import path as osp from mmdet3d.core import show_result, show_seg_result from mmdet3d.core.bbox import DepthInstance3DBoxes from mmdet.datasets import DATASETS from mmseg.datasets import DATASETS as SEG_DATASETS from .custom_3d import Custom3DDataset from .custom_3d_seg import Custom3DSegDat...
true
true
f70b5f2e5d711c4d49dfaaaa08f666f717f97bdc
23,143
py
Python
sympy/core/exprtools.py
goodok/sympy
de84ed2139125a755ea7b6ba91d945d9fbbe5ed9
[ "BSD-3-Clause" ]
2
2015-05-11T12:26:38.000Z
2016-08-19T00:11:03.000Z
sympy/core/exprtools.py
goodok/sympy
de84ed2139125a755ea7b6ba91d945d9fbbe5ed9
[ "BSD-3-Clause" ]
null
null
null
sympy/core/exprtools.py
goodok/sympy
de84ed2139125a755ea7b6ba91d945d9fbbe5ed9
[ "BSD-3-Clause" ]
null
null
null
"""Tools for manipulating of large commutative expressions. """ from sympy.core.add import Add from sympy.core.compatibility import iterable from sympy.core.mul import Mul, _keep_coeff from sympy.core.power import Pow from sympy.core.basic import Basic from sympy.core.expr import Expr from sympy.core.function import e...
31.190027
98
0.535065
from sympy.core.add import Add from sympy.core.compatibility import iterable from sympy.core.mul import Mul, _keep_coeff from sympy.core.power import Pow from sympy.core.basic import Basic from sympy.core.expr import Expr from sympy.core.function import expand_mul from sympy.core.sympify import sympify from sympy.core...
true
true
f70b5f4294a4d2ab507a4a6f16e55b064f90a04c
4,342
py
Python
sawtooth_identity/processor/main.py
STYJ/Sawtooth-Sample-Identity-TP
e1e914215f69a516bf81b98ed5a470134f6bd2aa
[ "Apache-2.0" ]
1
2018-08-14T06:58:46.000Z
2018-08-14T06:58:46.000Z
sawtooth_identity/processor/main.py
STYJ/sawtooth-identity-tp
e1e914215f69a516bf81b98ed5a470134f6bd2aa
[ "Apache-2.0" ]
null
null
null
sawtooth_identity/processor/main.py
STYJ/sawtooth-identity-tp
e1e914215f69a516bf81b98ed5a470134f6bd2aa
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
33.145038
80
0.688392
import sys import os import argparse import pkg_resources path = os.path.dirname(os.path.dirname(os.getcwd())) sys.path.append(path) from sawtooth_sdk.processor.core import TransactionProcessor from sawtooth_sdk.processor.log import init_console_logging from sawtooth_sdk.processor.log import log_confi...
true
true
f70b5fcacbe25a93df7d8bed3dc476118eb19b62
464
py
Python
data/scripts/templates/object/draft_schematic/space/shields/shared_adv_deflector_shields.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/draft_schematic/space/shields/shared_adv_deflector_shields.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/draft_schematic/space/shields/shared_adv_deflector_shields.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Intangible() result.template = "object/draft_schematic/space/shields/shared_adv_deflector_shields.iff" result.att...
27.294118
90
0.734914
true
true
f70b5fe0481a8c9a2817f06ed651a862a7858a27
6,023
py
Python
src/hebphonics/parsers/mechon_mamre_org.py
ohizkiya/hebphonics
60f46f2fbec6704c4598dfccaa4326b1e17b133a
[ "MIT" ]
null
null
null
src/hebphonics/parsers/mechon_mamre_org.py
ohizkiya/hebphonics
60f46f2fbec6704c4598dfccaa4326b1e17b133a
[ "MIT" ]
11
2020-11-20T20:23:00.000Z
2021-01-28T14:23:19.000Z
src/hebphonics/parsers/mechon_mamre_org.py
ohizkiya/hebphonics
60f46f2fbec6704c4598dfccaa4326b1e17b133a
[ "MIT" ]
1
2021-01-01T20:06:01.000Z
2021-01-01T20:06:01.000Z
#!/usr/bin/env python # coding: utf-8 """Download and parse Tanakh from <http://mechon-mamre.org/>. The text is based on the [Aleppo Codex][1]. [1]: https://en.wikipedia.org/wiki/Aleppo_Codex Each book is in a separate HTML file (e.g., `c01.htm`) and contains navigation and textual data. The relevant structure is: ...
30.573604
85
0.546738
from functools import partial from multiprocessing import Queue from pathlib import Path from typing import List import os import re from tqdm import tqdm from . import parse_args, download_unzip, Msg, queuer, spawn_processes, save_database from .. import tokens as T, grammar BOOK_NAMES = { "בראשית": "Genes...
true
true
f70b602fa67e6e8b514ce3156eac1f98c7a45b36
303
py
Python
src/main/resources/docs/tests/R0914.py
h314to/codacy-pylint
9d31567db6188e1b31ce0e1567998f64946502df
[ "Apache-2.0" ]
null
null
null
src/main/resources/docs/tests/R0914.py
h314to/codacy-pylint
9d31567db6188e1b31ce0e1567998f64946502df
[ "Apache-2.0" ]
null
null
null
src/main/resources/docs/tests/R0914.py
h314to/codacy-pylint
9d31567db6188e1b31ce0e1567998f64946502df
[ "Apache-2.0" ]
null
null
null
##Patterns: R0914: { "max-locals": "3" } ##Warn: R0914 def doEverything(thing): a = 3 b = 3 c = 3 d = 3 e = 3 f = 3 g = 3 h = 3 i = 3 j = 3 k = 3 l = 3 m = 3 n = 3 o = 3 p = 3 q = 3 r = 3 s = 3 t = 3
12.625
41
0.30363
c = 3 d = 3 e = 3 f = 3 g = 3 h = 3 i = 3 j = 3 k = 3 l = 3 m = 3 n = 3 o = 3 p = 3 q = 3 r = 3 s = 3 t = 3
true
true
f70b604cbbd058238c84f4a1dabfc8279733f7ac
9,038
py
Python
test.py
oscarcx123/MagicTower-Python
14ccf8e811e90adc3c4bc7b225e23dbb79c2d28e
[ "BSD-3-Clause" ]
36
2019-07-26T09:19:28.000Z
2022-02-20T07:14:50.000Z
test.py
oscarcx123/MagicTower-Python
14ccf8e811e90adc3c4bc7b225e23dbb79c2d28e
[ "BSD-3-Clause" ]
1
2019-02-03T01:51:46.000Z
2019-02-03T01:51:46.000Z
test.py
oscarcx123/MagicTower-Python
14ccf8e811e90adc3c4bc7b225e23dbb79c2d28e
[ "BSD-3-Clause" ]
11
2019-02-02T13:49:26.000Z
2022-03-09T13:25:41.000Z
# 作为新框架测试用 import pygame import os import json import platform import ctypes from sysconf import * pygame.init() # 如果是Windows系统,在游戏中禁用显示缩放 # 注:通常高分屏用户在使用Windows系统时,都会把缩放调到100%以上,否则会瞎眼。 # 例如1920*1080屏幕,Windows推荐的缩放率就是125%。 # 这样会导致游戏窗口被严重放大,造成一部分游戏画面处在任务栏下方。 # 然而,在Linux系统下并没有这问题,所以这里只判定是否为Windows。 if platform.system()...
35.167315
105
0.700929
import pygame import os import json import platform import ctypes from sysconf import * pygame.init() if platform.system() == "Windows": ctypes.windll.user32.SetProcessDPIAware() screen = pygame.display.set_mode([WIDTH, HEIGHT]) pygame.display.set_caption(TOWER_NAME) from lib.utools import * from lib ...
true
true
f70b6058884bd02f5b51d29c0313f747701475ac
11,761
py
Python
docs/tests.py
dineshsonachalam/djangoproject.com
4fff6b48be275f97b060ce05de0e55e453a1b5f9
[ "BSD-3-Clause" ]
null
null
null
docs/tests.py
dineshsonachalam/djangoproject.com
4fff6b48be275f97b060ce05de0e55e453a1b5f9
[ "BSD-3-Clause" ]
null
null
null
docs/tests.py
dineshsonachalam/djangoproject.com
4fff6b48be275f97b060ce05de0e55e453a1b5f9
[ "BSD-3-Clause" ]
null
null
null
import datetime import os from http import HTTPStatus from operator import attrgetter from pathlib import Path from django.conf import settings from django.contrib.sites.models import Site from django.template import Context, Template from django.test import TestCase from django.urls import reverse, set_urlconf from ...
36.299383
116
0.590426
import datetime import os from http import HTTPStatus from operator import attrgetter from pathlib import Path from django.conf import settings from django.contrib.sites.models import Site from django.template import Context, Template from django.test import TestCase from django.urls import reverse, set_urlconf from ...
true
true
f70b61cb8859600b367959872158a264f1e91bc4
1,215
py
Python
data/cal_mean_std.py
PaulTHong/STDA-inf
3d87a7843f879d17a343ba4838caa1f58f1e8e65
[ "MIT" ]
1
2022-02-21T04:44:09.000Z
2022-02-21T04:44:09.000Z
data/cal_mean_std.py
PaulTHong/STDA-inf
3d87a7843f879d17a343ba4838caa1f58f1e8e65
[ "MIT" ]
null
null
null
data/cal_mean_std.py
PaulTHong/STDA-inf
3d87a7843f879d17a343ba4838caa1f58f1e8e65
[ "MIT" ]
null
null
null
import numpy as np import cv2 import os mean = [] std = [] img_list = [] dir_path = './STL10-data/train' class_paths = os.listdir(dir_path) print(class_paths) for cls in class_paths: img_paths = os.listdir(dir_path + os.sep + cls) print(len(img_paths)) for img_path in img_paths: print(img_path) ...
22.924528
64
0.635391
import numpy as np import cv2 import os mean = [] std = [] img_list = [] dir_path = './STL10-data/train' class_paths = os.listdir(dir_path) print(class_paths) for cls in class_paths: img_paths = os.listdir(dir_path + os.sep + cls) print(len(img_paths)) for img_path in img_paths: print(img_path) ...
true
true
f70b63460b6e1920a8ab199d2d897323b063d66c
1,676
py
Python
benchmark/startPyquil1973.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startPyquil1973.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startPyquil1973.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=4 # total number=31 import pyquil from pyquil.api import local_forest_runtime, QVMConnection from pyquil import Program, get_qc from pyquil.gates import * import numpy as np conn = QVMConnection() def make_circuit()-> Program: prog = Program() # circuit begin prog += X(3) # number=1 prog...
24.647059
64
0.569212
import pyquil from pyquil.api import local_forest_runtime, QVMConnection from pyquil import Program, get_qc from pyquil.gates import * import numpy as np conn = QVMConnection() def make_circuit()-> Program: prog = Program() prog += X(3) prog += H(1) prog += H(2) prog += H(3) prog +=...
true
true
f70b6484fd5c367040bd21c68df6b4ceaf51dcfa
42
py
Python
libpysal/io/geotable/__init__.py
Kanahiro/dbf-df-translator
6603ca1ac306203bf8c95e6545685c509324a438
[ "MIT" ]
null
null
null
libpysal/io/geotable/__init__.py
Kanahiro/dbf-df-translator
6603ca1ac306203bf8c95e6545685c509324a438
[ "MIT" ]
null
null
null
libpysal/io/geotable/__init__.py
Kanahiro/dbf-df-translator
6603ca1ac306203bf8c95e6545685c509324a438
[ "MIT" ]
null
null
null
from .file import read_files, write_files
21
41
0.833333
from .file import read_files, write_files
true
true
f70b6582958899d7a3048c74fd9764f38a1ce5a8
7,444
py
Python
neutron_vpnaas/tests.skip/unit/services/vpn/test_vpnaas_driver_plugin.py
citrix-openstack-build/neutron-vpnaas
d1ee6923425eca52f400a2de23d1541f16568c2b
[ "Apache-2.0" ]
null
null
null
neutron_vpnaas/tests.skip/unit/services/vpn/test_vpnaas_driver_plugin.py
citrix-openstack-build/neutron-vpnaas
d1ee6923425eca52f400a2de23d1541f16568c2b
[ "Apache-2.0" ]
null
null
null
neutron_vpnaas/tests.skip/unit/services/vpn/test_vpnaas_driver_plugin.py
citrix-openstack-build/neutron-vpnaas
d1ee6923425eca52f400a2de23d1541f16568c2b
[ "Apache-2.0" ]
null
null
null
# Copyright 2013, Nachi Ueno, NTT I3, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless...
45.950617
79
0.569183
import contextlib import mock from neutron.common import constants from neutron import context from neutron import manager from neutron.plugins.common import constants as p_constants from neutron.tests.unit.db.vpn import test_db_vpnaas from neutron.tests.unit.openvswitch import test_agent_scheduler from...
true
true
f70b65d7b3654b248db969d72b0a41b9332d19db
14,122
py
Python
utils/sp6_bitstream_analyzer.py
rw1nkler/prjxray
aff076b47dcf6d653eb3ce791b41fd6cf4343edd
[ "ISC" ]
583
2017-12-21T11:06:13.000Z
2022-02-20T21:27:33.000Z
utils/sp6_bitstream_analyzer.py
rw1nkler/prjxray
aff076b47dcf6d653eb3ce791b41fd6cf4343edd
[ "ISC" ]
1,212
2017-12-22T15:05:06.000Z
2022-02-19T13:04:59.000Z
utils/sp6_bitstream_analyzer.py
mfkiwl/prjxray-xilinx-7-bitstream-fortmat
5349556bc2c230801d6df0cf11bccb9cfd171639
[ "ISC" ]
134
2017-12-21T10:16:50.000Z
2022-02-16T06:42:04.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright (C) 2017-2020 The Project X-Ray Authors. # # Use of this source code is governed by a ISC-style # license that can be found in the LICENSE file or at # https://opensource.org/licenses/ISC # # SPDX-License-Identifier: ISC ''' Spartan 6 bitstream analyzer tool...
32.539171
78
0.522518
import argparse from io import StringIO conf_regs = { 0: "CRC", 1: "FAR_MAJ", 2: "FAR_MIN", 3: "FDRI", 4: "FDRO", 5: "CMD", 6: "CTL", 7: "MASK", 8: "STAT", 9: "LOUT", 10: "COR1", 11: "COR2", 12: "PWRDN_REG", 13: "FLR", 14: "IDCODE", 15: "CWDT",...
true
true
f70b669356f7538feec576b7756d8e12924a4c88
2,257
py
Python
code-samples/language/v1/python/analyze_entities_request_language_entities_text.py
tswast/gapic-docs-samples
16976b148fb6eb53a8a685d475dcdb713ceb9e60
[ "Apache-2.0" ]
null
null
null
code-samples/language/v1/python/analyze_entities_request_language_entities_text.py
tswast/gapic-docs-samples
16976b148fb6eb53a8a685d475dcdb713ceb9e60
[ "Apache-2.0" ]
null
null
null
code-samples/language/v1/python/analyze_entities_request_language_entities_text.py
tswast/gapic-docs-samples
16976b148fb6eb53a8a685d475dcdb713ceb9e60
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
30.093333
80
0.712893
import sys from google.cloud import language_v1 from google.cloud.language_v1 import enums from google.cloud.language_v1 import enums import six def sample_analyze_entities(text_content): client = language_v1.LanguageServiceClient() if isinstance(text_content, six.binary_...
true
true
f70b671c221dafd94c7b178303d0f5d51c443463
2,771
py
Python
py/_error.py
kantai/passe-pypy-taint-tracking
b60a3663f8fe89892dc182c8497aab97e2e75d69
[ "MIT" ]
2
2016-07-06T23:30:20.000Z
2017-05-30T15:59:31.000Z
py/_error.py
benoitc/pypy
a3e1b12d1d01dc29056b7badc051ffc034297658
[ "MIT" ]
null
null
null
py/_error.py
benoitc/pypy
a3e1b12d1d01dc29056b7badc051ffc034297658
[ "MIT" ]
2
2020-07-09T08:14:22.000Z
2021-01-15T18:01:25.000Z
""" create errno-specific classes for IO or os calls. """ import sys, os, errno class Error(EnvironmentError): def __repr__(self): return "%s.%s %r: %s " %(self.__class__.__module__, self.__class__.__name__, self.__class__.__doc__, ...
31.850575
75
0.517864
import sys, os, errno class Error(EnvironmentError): def __repr__(self): return "%s.%s %r: %s " %(self.__class__.__module__, self.__class__.__name__, self.__class__.__doc__, " ".join(map(str, self.args)), ...
true
true
f70b6764a0549b85ceff5a1d7d0f64159ca92887
4,806
py
Python
opencv/sources/modules/dnn/test/cityscapes_semsegm_test_enet.py
vrushank-agrawal/opencv-x64-cmake
3f9486510d706c8ac579ac82f5d58f667f948124
[ "Apache-2.0" ]
null
null
null
opencv/sources/modules/dnn/test/cityscapes_semsegm_test_enet.py
vrushank-agrawal/opencv-x64-cmake
3f9486510d706c8ac579ac82f5d58f667f948124
[ "Apache-2.0" ]
null
null
null
opencv/sources/modules/dnn/test/cityscapes_semsegm_test_enet.py
vrushank-agrawal/opencv-x64-cmake
3f9486510d706c8ac579ac82f5d58f667f948124
[ "Apache-2.0" ]
null
null
null
import numpy as np import sys import os import fnmatch import argparse try: import cv2 as cv except ImportError: raise ImportError('Can\'t find OpenCV Python module. If you\'ve built it from sources without installation, ' 'configure environment variable PYTHONPATH to "opencv_bu...
34.085106
145
0.615689
import numpy as np import sys import os import fnmatch import argparse try: import cv2 as cv except ImportError: raise ImportError('Can\'t find OpenCV Python module. If you\'ve built it from sources without installation, ' 'configure environment variable PYTHONPATH to "opencv_bu...
true
true
f70b677ef4defae6580fc8ce081c318d2bf035c9
7,857
py
Python
workflow/scripts/hebrew/build_hebrew_tables.py
CambridgeSemiticsLab/translation_traditions_HB
8f2c4d263cc5dc1542184343a384b44bf705770d
[ "MIT" ]
2
2020-11-30T06:34:10.000Z
2021-11-16T14:16:24.000Z
workflow/scripts/hebrew/build_hebrew_tables.py
CambridgeSemiticsLab/Gesenius_data
8f2c4d263cc5dc1542184343a384b44bf705770d
[ "MIT" ]
null
null
null
workflow/scripts/hebrew/build_hebrew_tables.py
CambridgeSemiticsLab/Gesenius_data
8f2c4d263cc5dc1542184343a384b44bf705770d
[ "MIT" ]
null
null
null
import re import sys import csv import json import pickle import collections from pathlib import Path from tf.fabric import Fabric from book_formats import get_book_maps, etcbc2sbl, etcbc2abbr from verb_form import get_verbform, get_cl_verbform from modify_domain import permissive_q from synvar_carc import in_dep_calc ...
34.012987
92
0.616393
import re import sys import csv import json import pickle import collections from pathlib import Path from tf.fabric import Fabric from book_formats import get_book_maps, etcbc2sbl, etcbc2abbr from verb_form import get_verbform, get_cl_verbform from modify_domain import permissive_q from synvar_carc import in_dep_calc ...
true
true
f70b67b26a39bfb74bdcfdb0a3cd91faaca8a144
984
py
Python
PyShooter/enemies/zigzagenemy.py
ildave/PyShooter
ff04fcbcbd144a6959b291fe5242afff6d616eaa
[ "MIT" ]
null
null
null
PyShooter/enemies/zigzagenemy.py
ildave/PyShooter
ff04fcbcbd144a6959b291fe5242afff6d616eaa
[ "MIT" ]
null
null
null
PyShooter/enemies/zigzagenemy.py
ildave/PyShooter
ff04fcbcbd144a6959b291fe5242afff6d616eaa
[ "MIT" ]
null
null
null
import pygame import random import math import enemies.enemy class ZigZagEnemy(enemies.enemy.Enemy): def __init__(self, game): super().__init__(game) self.timer = self.game.getRepeateTimer() self.timer.duration = 3000 self.timer.action = self.changeAngle def changeAngle(self): ...
28.114286
64
0.575203
import pygame import random import math import enemies.enemy class ZigZagEnemy(enemies.enemy.Enemy): def __init__(self, game): super().__init__(game) self.timer = self.game.getRepeateTimer() self.timer.duration = 3000 self.timer.action = self.changeAngle def changeAngle(self): ...
true
true
f70b6a6e97aabeec0b3ae86dcf3cfa2a57216dff
4,559
py
Python
mmhelper/output.py
jmetz/momanalysis
8d71490c99127568b184784890258e9a6ef876ef
[ "MIT" ]
null
null
null
mmhelper/output.py
jmetz/momanalysis
8d71490c99127568b184784890258e9a6ef876ef
[ "MIT" ]
3
2019-07-25T13:43:15.000Z
2019-11-04T12:39:22.000Z
mmhelper/output.py
jmetz/momanalysis
8d71490c99127568b184784890258e9a6ef876ef
[ "MIT" ]
1
2021-03-28T03:00:21.000Z
2021-03-28T03:00:21.000Z
# -*- coding: utf-8 -*- """ Created on Mon Jan 09 09:59:13 2017 @author: as624 """ import csv import os import matplotlib.pyplot as plt import numpy as np def output_detection_figures( image, wells, bacteria, timeindex, output_dir): """ Produces and saves figures showing the output from the detection ...
36.18254
85
0.611976
import csv import os import matplotlib.pyplot as plt import numpy as np def output_detection_figures( image, wells, bacteria, timeindex, output_dir): plt.figure(figsize=(16, 12)) plt.imshow(image, cmap='gray') plt.contour(wells > 0, levels=[0.5], colors=['y']) for lab_bac in range(1,...
true
true
f70b6cc1626bd36f34f787aa2d060e18f5411270
2,294
py
Python
packit_service/service/api/installations.py
FalseG0d/packit-service
03f840cdfbcc129582a2ec2a20f069c85fea0c56
[ "MIT" ]
1
2020-03-28T13:57:08.000Z
2020-03-28T13:57:08.000Z
packit_service/service/api/installations.py
FalseG0d/packit-service
03f840cdfbcc129582a2ec2a20f069c85fea0c56
[ "MIT" ]
null
null
null
packit_service/service/api/installations.py
FalseG0d/packit-service
03f840cdfbcc129582a2ec2a20f069c85fea0c56
[ "MIT" ]
null
null
null
# MIT License # # Copyright (c) 2019 Red Hat, Inc. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge...
39.551724
87
0.745423
from http import HTTPStatus from logging import getLogger try: from flask_restx import Namespace, Resource except ModuleNotFoundError: from flask_restplus import Namespace, Resource from packit_service.service.events import Event from packit_service.service.models import Installation log...
true
true
f70b6e0a29deb0c4886c21ece0571ca190b3699c
33,970
py
Python
src/characterization/cycle_period_length_analysis.py
iurteaga/menstrual_cycle_analysis
799c7cb59d759e0c3929164bccdc5c7ce80324d0
[ "MIT" ]
5
2020-03-05T23:30:26.000Z
2022-02-27T18:16:23.000Z
src/characterization/cycle_period_length_analysis.py
iurteaga/menstrual_cycle_analysis
799c7cb59d759e0c3929164bccdc5c7ce80324d0
[ "MIT" ]
null
null
null
src/characterization/cycle_period_length_analysis.py
iurteaga/menstrual_cycle_analysis
799c7cb59d759e0c3929164bccdc5c7ce80324d0
[ "MIT" ]
2
2021-03-26T19:56:51.000Z
2021-12-22T02:26:14.000Z
#!/usr/bin/python # Imports import sys, os, re, time import argparse import pdb import pickle from itertools import * # Science import numpy as np import scipy.stats as stats import pandas as pd # Plotting import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt from matplotlib import colors from mpl_to...
55.325733
257
0.68222
import sys, os, re, time import argparse import pdb import pickle from itertools import * import numpy as np import scipy.stats as stats import pandas as pd import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt from matplotlib import colors from mpl_toolkits.mplot3d import Axes3D lim3d(10,90) ...
true
true
f70b6edc5aee3ac2d67c6163cc07e8550165c5db
4,030
py
Python
cmpy/disorder.py
dylanljones/cmpy
21adcf4dd9f873ae29d47aeaef4fbcd914bfce2c
[ "MIT" ]
2
2021-11-17T13:39:37.000Z
2021-12-14T09:30:57.000Z
cmpy/disorder.py
dylanljones/cmpy
21adcf4dd9f873ae29d47aeaef4fbcd914bfce2c
[ "MIT" ]
null
null
null
cmpy/disorder.py
dylanljones/cmpy
21adcf4dd9f873ae29d47aeaef4fbcd914bfce2c
[ "MIT" ]
null
null
null
# coding: utf-8 # # This code is part of cmpy. # # Copyright (c) 2022, Dylan Jones """This module contains methods for modeling disorder.""" import numpy as np from typing import Union, Sequence def create_subst_array( size: int, values: Sequence[float], conc: Union[float, Sequence[float]] ) -> np.ndarray: ...
28.181818
88
0.600744
import numpy as np from typing import Union, Sequence def create_subst_array( size: int, values: Sequence[float], conc: Union[float, Sequence[float]] ) -> np.ndarray: if isinstance(conc, float): conc = [conc, 1 - conc] if sum(conc) != 1: raise ValueError("Fractions have to add ...
true
true
f70b708bbdac7d2781674c92fd8e90e059902171
3,501
py
Python
bindings/python/ensmallen/datasets/string/sphingomonashankookensis.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
5
2021-09-10T18:31:58.000Z
2022-03-24T04:28:04.000Z
bindings/python/ensmallen/datasets/string/sphingomonashankookensis.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
18
2021-01-07T16:47:39.000Z
2021-08-12T21:51:32.000Z
bindings/python/ensmallen/datasets/string/sphingomonashankookensis.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
3
2021-01-14T02:20:59.000Z
2021-08-04T19:09:52.000Z
""" This file offers the methods to automatically retrieve the graph Sphingomonas hankookensis. The graph is automatically retrieved from the STRING repository. References --------------------- Please cite the following if you use the data: ```bib @article{szklarczyk2019string, title={STRING v11: protein--prot...
33.342857
223
0.680377
from typing import Dict from ..automatic_graph_retrieval import AutomaticallyRetrievedGraph from ...ensmallen import Graph def SphingomonasHankookensis( directed: bool = False, preprocess: bool = True, load_nodes: bool = True, verbose: int = 2, cache: bool = True, cache_path: str = "graphs/...
true
true
f70b70c4057ddb22121863cfd747a26613e1e6ec
4,612
py
Python
tests/test_coords.py
awesome-archive/minigo
188fb197fdafbe9664a32142373b1cbd1459bc67
[ "Apache-2.0" ]
null
null
null
tests/test_coords.py
awesome-archive/minigo
188fb197fdafbe9664a32142373b1cbd1459bc67
[ "Apache-2.0" ]
null
null
null
tests/test_coords.py
awesome-archive/minigo
188fb197fdafbe9664a32142373b1cbd1459bc67
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
46.12
88
0.670425
import unittest import numpy import coords import go from tests import test_utils class TestCoords(test_utils.MiniGoUnitTest): def test_upperleft(self): self.assertEqual(coords.parse_sgf_coords('aa'), (0, 0)) self.assertEqual(coords.unflatten_coords(0), (0, 0)) self.assertEqu...
true
true
f70b7227b620424d036d27f17a1cc64db679149c
4,193
py
Python
src/plugins/test_plugin_2/__init__.py
ShizhuZhang/ontask_b
acbf05ff9b18dae0a41c67d1e41774e54a890c40
[ "MIT" ]
3
2018-08-24T10:48:40.000Z
2020-05-29T06:33:23.000Z
src/plugins/test_plugin_2/__init__.py
ShizhuZhang/Ontask_b_zh
ca4526871f26e7153b724b1e97b922a0b52f75d6
[ "MIT" ]
null
null
null
src/plugins/test_plugin_2/__init__.py
ShizhuZhang/Ontask_b_zh
ca4526871f26e7153b724b1e97b922a0b52f75d6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals, print_function import pandas as pd # The field class_name contains the name of the class to load to execute the # plugin. class_name = 'OntaskTestPlugin' class OntaskTestPlugin(object): """ Example of a class that implements the OnTask plugin ...
39.933333
80
0.632721
from __future__ import unicode_literals, print_function import pandas as pd class_name = 'OntaskTestPlugin' class OntaskTestPlugin(object): def __init__(self): self.name = 'Test Plungin 2 Name' self.description_txt = 'Test Plugin 2 Description Text' self.input_column_names = ['A1', '...
true
true
f70b72e4d5f4604427e2f7259e15eaf0fc83e22f
3,735
py
Python
strawberry_wagtail/stream_field.py
patrick91/strawberry-wagtail
cfb94cd09be32dc720bda2d366aa8824f7d3ea5c
[ "MIT" ]
22
2022-03-25T08:32:04.000Z
2022-03-31T03:01:49.000Z
strawberry_wagtail/stream_field.py
patrick91/strawberry-wagtail
cfb94cd09be32dc720bda2d366aa8824f7d3ea5c
[ "MIT" ]
6
2022-03-25T03:32:03.000Z
2022-03-25T15:21:20.000Z
strawberry_wagtail/stream_field.py
patrick91/strawberry-wagtail
cfb94cd09be32dc720bda2d366aa8824f7d3ea5c
[ "MIT" ]
null
null
null
import dataclasses from typing import Any, Callable, List, Optional, Type from wagtail.core.blocks.field_block import CharBlock, FieldBlock, RichTextBlock from wagtail.core.blocks.stream_block import StreamBlock from wagtail.core.fields import StreamField from wagtail.images.blocks import ImageChooserBlock import str...
27.463235
84
0.672825
import dataclasses from typing import Any, Callable, List, Optional, Type from wagtail.core.blocks.field_block import CharBlock, FieldBlock, RichTextBlock from wagtail.core.blocks.stream_block import StreamBlock from wagtail.core.fields import StreamField from wagtail.images.blocks import ImageChooserBlock import str...
true
true
f70b734b40b8db78f6f6d0cfd6df74f70c01ab5f
804
py
Python
irs990/manage.py
jsfenfen/irs990_admin
40eae9e04af35f0b047b4e85b0cb41ef294a3eeb
[ "Apache-2.0" ]
null
null
null
irs990/manage.py
jsfenfen/irs990_admin
40eae9e04af35f0b047b4e85b0cb41ef294a3eeb
[ "Apache-2.0" ]
5
2018-04-11T20:46:48.000Z
2020-04-28T11:57:06.000Z
irs990/manage.py
jsfenfen/irs990_admin
40eae9e04af35f0b047b4e85b0cb41ef294a3eeb
[ "Apache-2.0" ]
5
2018-04-10T21:34:01.000Z
2020-09-29T17:47:21.000Z
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "irs990.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure that the ...
34.956522
77
0.641791
import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "irs990.settings") try: from django.core.management import execute_from_command_line except ImportError: try: import django except ImportError: ...
true
true
f70b74bcb3342cafe7f11ffe27d5eb119c2c1352
23,631
py
Python
examples/FasterRCNN/train.py
bzamecnik/tensorpack
e9a3c2b3cd441e5b288607b44f2fe44fbf3ad4bb
[ "Apache-2.0" ]
null
null
null
examples/FasterRCNN/train.py
bzamecnik/tensorpack
e9a3c2b3cd441e5b288607b44f2fe44fbf3ad4bb
[ "Apache-2.0" ]
null
null
null
examples/FasterRCNN/train.py
bzamecnik/tensorpack
e9a3c2b3cd441e5b288607b44f2fe44fbf3ad4bb
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # File: train.py import argparse import itertools import numpy as np import os import shutil import cv2 import six assert six.PY3, "FasterRCNN requires Python 3!" import tensorflow as tf import tqdm import tensorpack.utils.viz as tpviz from tensorpack import * from tensor...
45.183556
116
0.636791
import argparse import itertools import numpy as np import os import shutil import cv2 import six assert six.PY3, "FasterRCNN requires Python 3!" import tensorflow as tf import tqdm import tensorpack.utils.viz as tpviz from tensorpack import * from tensorpack.tfutils import optimizer, collect_env_info from tensorp...
true
true
f70b75434414c84f9bbb1cf2d7b60ad9a8239b4c
3,882
py
Python
sdk/python/pulumi_azure_nextgen/eventgrid/latest/get_domain_topic.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/eventgrid/latest/get_domain_topic.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/eventgrid/latest/get_domain_topic.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __a...
34.660714
188
0.657908
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __all__ = [ 'GetDomainTopicResult', 'AwaitableGetDomainTopicResult', 'get_domain_topic', ] warnings.warn("""The 'latest' version is deprecated. Please migr...
true
true
f70b75ad57c09c88cd88ad107f911048b4df0d20
11,050
bzl
Python
bazel/grpc_build_system.bzl
EnergySRE/grpc
0bf1c34237f8cd8d0b37673b2af17b1c410fcc9e
[ "Apache-2.0" ]
null
null
null
bazel/grpc_build_system.bzl
EnergySRE/grpc
0bf1c34237f8cd8d0b37673b2af17b1c410fcc9e
[ "Apache-2.0" ]
null
null
null
bazel/grpc_build_system.bzl
EnergySRE/grpc
0bf1c34237f8cd8d0b37673b2af17b1c410fcc9e
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 gRPC authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
31.126761
253
0.549864
# the BUILD file for gRPC. It contains the mapping for the template system we # use to generate other platform's build system files. # each change must be ported from one to the other. # load("//bazel:cc_grpc_library.bzl", "cc_grpc_library") load("@upb//bazel:upb_proto_library.bzl", "upb_proto_libr...
true
true
f70b75fafa63025b402d17cbd62623efb90964dc
813
py
Python
test/test_misc.py
lexa/cx_Freeze
f1f35d19e8e7e821733f86b4da7814c40be3bfd9
[ "PSF-2.0" ]
null
null
null
test/test_misc.py
lexa/cx_Freeze
f1f35d19e8e7e821733f86b4da7814c40be3bfd9
[ "PSF-2.0" ]
null
null
null
test/test_misc.py
lexa/cx_Freeze
f1f35d19e8e7e821733f86b4da7814c40be3bfd9
[ "PSF-2.0" ]
1
2019-05-12T13:20:31.000Z
2019-05-12T13:20:31.000Z
import os.path import sys from nose.tools import assert_raises from cx_Freeze.common import ConfigError, process_path_specs rootdir = "C:\\" if sys.platform == "win32" else "/" def test_process_path_specs(): inp = [ os.path.join(rootdir, "foo", "bar"), (os.path.join(rootdir, "foo", "qux"), os.p...
26.225806
74
0.606396
import os.path import sys from nose.tools import assert_raises from cx_Freeze.common import ConfigError, process_path_specs rootdir = "C:\\" if sys.platform == "win32" else "/" def test_process_path_specs(): inp = [ os.path.join(rootdir, "foo", "bar"), (os.path.join(rootdir, "foo", "qux"), os.p...
true
true
f70b77fb0efe1cafb20ffc7d735e9eb9e9f2742d
2,768
py
Python
st_plugins/preview.py
Odyseus/MarkdownEditingFork
13ced60c99042ffca7a91549606c616a7a603c20
[ "MIT" ]
null
null
null
st_plugins/preview.py
Odyseus/MarkdownEditingFork
13ced60c99042ffca7a91549606c616a7a603c20
[ "MIT" ]
null
null
null
st_plugins/preview.py
Odyseus/MarkdownEditingFork
13ced60c99042ffca7a91549606c616a7a603c20
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- import os import webbrowser import sublime import sublime_plugin from . import MDETextCommand from . import plugin_name from . import settings from python_utils.misc_utils import get_system_tempdir from python_utils.mistune_utils import md from python_utils.sublime_text_util...
28.833333
96
0.680275
import os import webbrowser import sublime import sublime_plugin from . import MDETextCommand from . import plugin_name from . import settings from python_utils.misc_utils import get_system_tempdir from python_utils.mistune_utils import md from python_utils.sublime_text_utils.utils import get_file_path from python_...
true
true
f70b7841faae47aa58d61ae0fc8a4215d631a15e
5,270
py
Python
data/scraper.py
hmartelb/meme-search
2042678b3a7252ba00699e7a0618aafdf2059465
[ "MIT" ]
3
2021-06-15T17:29:32.000Z
2021-06-18T20:02:55.000Z
data/scraper.py
hmartelb/meme-search
2042678b3a7252ba00699e7a0618aafdf2059465
[ "MIT" ]
null
null
null
data/scraper.py
hmartelb/meme-search
2042678b3a7252ba00699e7a0618aafdf2059465
[ "MIT" ]
null
null
null
import json import time import os import pandas as pd import requests from bs4 import BeautifulSoup from tqdm import tqdm def process_9gag(args): fetched_memes = [] errors = 0 # for i in tqdm(range(args.)) pass def process_me_dot_me(args): pass def templates_imgflip(args): args.source_url =...
36.09589
158
0.563567
import json import time import os import pandas as pd import requests from bs4 import BeautifulSoup from tqdm import tqdm def process_9gag(args): fetched_memes = [] errors = 0 pass def process_me_dot_me(args): pass def templates_imgflip(args): args.source_url = "https://imgflip.com/memetem...
true
true
f70b78cf3d193ad5a49b7e2c944da33196938d26
39,984
py
Python
stubs.min/System/__init___parts/Array.py
ricardyn/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
1
2021-02-02T13:39:16.000Z
2021-02-02T13:39:16.000Z
stubs.min/System/__init___parts/Array.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
stubs.min/System/__init___parts/Array.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
class Array(object,ICloneable,IList,ICollection,IEnumerable,IStructuralComparable,IStructuralEquatable): """ Provides methods for creating,manipulating,searching,and sorting arrays,thereby serving as the base class for all arrays in the common language runtime. """ @staticmethod def AsReadOnly(array): """ AsRe...
42.993548
617
0.702131
class Array(object,ICloneable,IList,ICollection,IEnumerable,IStructuralComparable,IStructuralEquatable): @staticmethod def AsReadOnly(array): pass @staticmethod def BinarySearch(array,*__args): must be between zero and System.Int32.MaxValue,inclusive. Copy(sourceArray: Array,destinationArray: A...
true
true
f70b78fe961ac969ab87dde5b0b394f97850c561
1,589
py
Python
test/test_worksheet.py
adrianturcato/document-api-python
a9b69fa83210172c9302b57f5f5cd4dfa7e9d1c5
[ "MIT" ]
null
null
null
test/test_worksheet.py
adrianturcato/document-api-python
a9b69fa83210172c9302b57f5f5cd4dfa7e9d1c5
[ "MIT" ]
null
null
null
test/test_worksheet.py
adrianturcato/document-api-python
a9b69fa83210172c9302b57f5f5cd4dfa7e9d1c5
[ "MIT" ]
null
null
null
import os.path import unittest import hashlib from tableaudocumentapi import Workbook TEST_ASSET_DIR = os.path.join( os.path.dirname(__file__), 'assets' ) TEST_TWB_FILE = os.path.join( TEST_ASSET_DIR, 'group_test.twb' ) TEST_TWB_FILE2 = os.path.join( TEST_ASSET_DIR, 'add_user_filter_test.twb...
30.557692
131
0.71995
import os.path import unittest import hashlib from tableaudocumentapi import Workbook TEST_ASSET_DIR = os.path.join( os.path.dirname(__file__), 'assets' ) TEST_TWB_FILE = os.path.join( TEST_ASSET_DIR, 'group_test.twb' ) TEST_TWB_FILE2 = os.path.join( TEST_ASSET_DIR, 'add_user_filter_test.twb...
true
true
f70b7a68b18379e63dccf55607bdb8100c19a3f3
2,639
py
Python
exercicio-4.py
AnielliRosane/lista-ser347
61a8ac8f675dc0ec05f45408c54e9d3a0e515ff4
[ "MIT" ]
null
null
null
exercicio-4.py
AnielliRosane/lista-ser347
61a8ac8f675dc0ec05f45408c54e9d3a0e515ff4
[ "MIT" ]
null
null
null
exercicio-4.py
AnielliRosane/lista-ser347
61a8ac8f675dc0ec05f45408c54e9d3a0e515ff4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Lista de exercicio 06 # Exercicio 4 # importando as bibliotecas import matplotlib as plt import matplotlib.pyplot as plt import numpy as np # informacoes da tabela relativas aos dados masculino e feminino (IBGE) idade = np.array( ["0 a 4 anos", "5 a 9 anos", "10 a 14 anos", "15 a 19 ...
35.662162
120
0.678287
import matplotlib as plt import matplotlib.pyplot as plt import numpy as np idade = np.array( ["0 a 4 anos", "5 a 9 anos", "10 a 14 anos", "15 a 19 anos", "20 a 24 anos", "25 a 29 anos", "30 a 34 anos", "35 a 39 anos", "40 a 44 anos", "45 a 49 anos", "50 a 54 anos", "55 a 59 anos", "60 a 64 ano...
true
true
f70b7a9deb9229cf2e91e60271efe0589b08ae67
295
py
Python
projetos em python/exercicio8.py
gustavo621/projetos-em-python
4797ae7226a2c4a628dd0cd746e7bc3050b72f04
[ "MIT" ]
null
null
null
projetos em python/exercicio8.py
gustavo621/projetos-em-python
4797ae7226a2c4a628dd0cd746e7bc3050b72f04
[ "MIT" ]
null
null
null
projetos em python/exercicio8.py
gustavo621/projetos-em-python
4797ae7226a2c4a628dd0cd746e7bc3050b72f04
[ "MIT" ]
null
null
null
metros = int(input("uma distância em metro: ")) print("A medida de {}m corresponde a".format()) print("{}km".format(metros/1000)) print("{}hm".format(metros/100)) print("{}dam".format(metros/10)) print("{}dm".format(metros*10)) print("{}cm".format(metros*100)) print("{}mm".format(metros*1000))
32.777778
47
0.674576
metros = int(input("uma distância em metro: ")) print("A medida de {}m corresponde a".format()) print("{}km".format(metros/1000)) print("{}hm".format(metros/100)) print("{}dam".format(metros/10)) print("{}dm".format(metros*10)) print("{}cm".format(metros*100)) print("{}mm".format(metros*1000))
true
true
f70b7b226b60ffaa1edf1653d8ef3f8943d4f01f
9,614
py
Python
python_modules/dagster-airflow/dagster_airflow_tests/test_factory.py
rparrapy/dagster
453ebedb326eae48b5f8fa2a4a3811d94629dc6e
[ "Apache-2.0" ]
null
null
null
python_modules/dagster-airflow/dagster_airflow_tests/test_factory.py
rparrapy/dagster
453ebedb326eae48b5f8fa2a4a3811d94629dc6e
[ "Apache-2.0" ]
null
null
null
python_modules/dagster-airflow/dagster_airflow_tests/test_factory.py
rparrapy/dagster
453ebedb326eae48b5f8fa2a4a3811d94629dc6e
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals import os import uuid from airflow.exceptions import AirflowSkipException from dagster_airflow.factory import AIRFLOW_MAX_DAG_NAME_LEN, _rename_for_airflow from dagster_airflow.test_fixtures import ( # pylint: disable=unused-import dagster_airflow_docker_operator_pipeline,...
36.976923
98
0.741939
from __future__ import unicode_literals import os import uuid from airflow.exceptions import AirflowSkipException from dagster_airflow.factory import AIRFLOW_MAX_DAG_NAME_LEN, _rename_for_airflow from dagster_airflow.test_fixtures import ( dagster_airflow_docker_operator_pipeline, dagster_airflow_k8s_operat...
true
true
f70b7c4882be3566aec8efefe1b2fcf666fad2ae
83
py
Python
symbolator/corpus/__init__.py
buildsi/symbolator
4af830082d994d5a6d899189ac8e6dd236332ac9
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2021-11-09T09:14:27.000Z
2021-11-09T17:16:56.000Z
symbolator/corpus/__init__.py
buildsi/symbolator
4af830082d994d5a6d899189ac8e6dd236332ac9
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2021-06-19T17:19:12.000Z
2021-10-31T19:51:50.000Z
symbolator/corpus/__init__.py
buildsi/symbolator
4af830082d994d5a6d899189ac8e6dd236332ac9
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
from .elf import Corpus from .base import CorpusBase, JsonCorpus, JsonCorpusLoader
27.666667
58
0.831325
from .elf import Corpus from .base import CorpusBase, JsonCorpus, JsonCorpusLoader
true
true
f70b7d0d3c8ecc6b25400f485bf3ddd85c3790e5
759
py
Python
Demos/Distancias_ocurrencias.py
TheReverseWasp/TBD_TF-IDF_with_Google_Corpus
92e60148f625cf0be0300b60e3e09b553f96b7df
[ "MIT" ]
null
null
null
Demos/Distancias_ocurrencias.py
TheReverseWasp/TBD_TF-IDF_with_Google_Corpus
92e60148f625cf0be0300b60e3e09b553f96b7df
[ "MIT" ]
null
null
null
Demos/Distancias_ocurrencias.py
TheReverseWasp/TBD_TF-IDF_with_Google_Corpus
92e60148f625cf0be0300b60e3e09b553f96b7df
[ "MIT" ]
null
null
null
import json import re import spacy import enchant import copy as cp sp = spacy.load('en_core_web_sm') def lemmatize_this(str_word): return sp(str_word)[0] def main(): while True: print("Ingrese la Palabra: ") word = input() word = str(lemmatize_this(word)) try: wit...
24.483871
91
0.541502
import json import re import spacy import enchant import copy as cp sp = spacy.load('en_core_web_sm') def lemmatize_this(str_word): return sp(str_word)[0] def main(): while True: print("Ingrese la Palabra: ") word = input() word = str(lemmatize_this(word)) try: wit...
true
true
f70b7fd4259e0ee06d7ecf1c652c7a551b8fef2a
37,041
py
Python
ep8/basic.py
Eli-pixel/py-myopl-code
babfbdec2b9bcb057ccc38424d81efaaf8b719b6
[ "MIT" ]
325
2019-05-16T17:48:57.000Z
2022-03-31T05:57:49.000Z
ep8/basic.py
Eli-pixel/py-myopl-code
babfbdec2b9bcb057ccc38424d81efaaf8b719b6
[ "MIT" ]
18
2020-03-11T22:03:12.000Z
2022-03-07T20:23:09.000Z
ep8/basic.py
Eli-pixel/py-myopl-code
babfbdec2b9bcb057ccc38424d81efaaf8b719b6
[ "MIT" ]
359
2019-05-16T17:49:06.000Z
2022-03-31T09:57:46.000Z
####################################### # IMPORTS ####################################### from strings_with_arrows import * import string ####################################### # CONSTANTS ####################################### DIGITS = '0123456789' LETTERS = string.ascii_letters LETTERS_DIGITS = LETTERS + DIGITS...
26.307528
115
0.682136
ll(self): res = ParseResult() atom = res.register(self.atom()) if res.error: return res if self.current_tok.type == TT_LPAREN: res.register_advancement() self.advance() arg_nodes = [] if self.current_tok.type == TT_RPAREN: res.register_advancement() self.advance() else: arg_nodes.ap...
true
true
f70b80aef77d272ca54798b4da68fcd06046255f
2,174
py
Python
config/project.py
veltzer/pyapikey
4e7ea6d5a74263f76fc344489581f03818eb57c6
[ "MIT" ]
null
null
null
config/project.py
veltzer/pyapikey
4e7ea6d5a74263f76fc344489581f03818eb57c6
[ "MIT" ]
null
null
null
config/project.py
veltzer/pyapikey
4e7ea6d5a74263f76fc344489581f03818eb57c6
[ "MIT" ]
null
null
null
import pyclassifiers.values import config.general import config.helpers project_github_username = "veltzer" project_name = "pyapikey" github_repo_name = project_name project_website = f"https://{project_github_username}.github.io/{project_name}" project_website_source = f"https://github.com/{project_github_username}/...
41.018868
109
0.832107
import pyclassifiers.values import config.general import config.helpers project_github_username = "veltzer" project_name = "pyapikey" github_repo_name = project_name project_website = f"https://{project_github_username}.github.io/{project_name}" project_website_source = f"https://github.com/{project_github_username}/...
true
true
f70b810ec69d135f1133e7a8b3cdbfb8803aca24
3,377
py
Python
tensorflow/contrib/__init__.py
monokrome/tensorflow
2533ada7dd45b84d60677b8735e013d21044651a
[ "Apache-2.0" ]
1
2018-12-08T18:04:55.000Z
2018-12-08T18:04:55.000Z
tensorflow/contrib/__init__.py
monokrome/tensorflow
2533ada7dd45b84d60677b8735e013d21044651a
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/__init__.py
monokrome/tensorflow
2533ada7dd45b84d60677b8735e013d21044651a
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 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...
39.729412
80
0.822624
from __future__ import absolute_import from __future__ import division from __future__ import print_function from tensorflow.contrib import bayesflow from tensorflow.contrib import cloud from tensorflow.contrib import compiler from tensorflow.contrib import copy_graph from tensorflow.contrib import crf...
true
true
f70b81350664ee0818d7513eb9f617928ed6b5e5
26,952
py
Python
third_party/pycolmap/pycolmap/scene_manager.py
dukebw/nerfies
b30fe19edb6435e770b35dc07aab44ae62c96278
[ "Apache-2.0" ]
null
null
null
third_party/pycolmap/pycolmap/scene_manager.py
dukebw/nerfies
b30fe19edb6435e770b35dc07aab44ae62c96278
[ "Apache-2.0" ]
null
null
null
third_party/pycolmap/pycolmap/scene_manager.py
dukebw/nerfies
b30fe19edb6435e770b35dc07aab44ae62c96278
[ "Apache-2.0" ]
null
null
null
# Author: True Price <jtprice at cs.unc.edu> from collections import OrderedDict, defaultdict from io import StringIO from itertools import combinations import os import struct from .camera import Camera from .image import Image import numpy as np from .rotation import Quaternion # ----------------------------------...
38.947977
88
0.532762
from collections import OrderedDict, defaultdict from io import StringIO from itertools import combinations import os import struct from .camera import Camera from .image import Image import numpy as np from .rotation import Quaternion class SceneManager: INVALID_POINT3D = np.uint64(-1) def __init__...
true
true
f70b8176857a7599c2af9d3e6c1fa9b31a2be0ce
1,151
py
Python
theano/sparse/sharedvar.py
MarcCote/Theano
f0d293161a624ccf10c60ee8405a92e7d321151a
[ "BSD-3-Clause" ]
95
2019-05-14T20:55:26.000Z
2022-03-26T13:32:42.000Z
theano/sparse/sharedvar.py
MarcCote/Theano
f0d293161a624ccf10c60ee8405a92e7d321151a
[ "BSD-3-Clause" ]
7
2019-11-25T08:24:47.000Z
2021-09-12T13:29:14.000Z
theano/sparse/sharedvar.py
MarcCote/Theano
f0d293161a624ccf10c60ee8405a92e7d321151a
[ "BSD-3-Clause" ]
30
2016-10-27T21:59:00.000Z
2021-02-20T09:55:14.000Z
from __future__ import absolute_import, print_function, division import copy import scipy.sparse from theano.compile import shared_constructor, SharedVariable from theano.sparse.basic import SparseType, _sparse_py_operators class SparseTensorSharedVariable(_sparse_py_operators, SharedVariable): dtype = property(l...
34.878788
105
0.709818
from __future__ import absolute_import, print_function, division import copy import scipy.sparse from theano.compile import shared_constructor, SharedVariable from theano.sparse.basic import SparseType, _sparse_py_operators class SparseTensorSharedVariable(_sparse_py_operators, SharedVariable): dtype = property(l...
true
true
f70b82a48614719ef93b9151d17a35ed981f6a36
3,177
py
Python
adv/aldred.py
6tennis/dl
69eb7e71da9fabe9e7ec40c461b525b4f967f345
[ "Apache-2.0" ]
null
null
null
adv/aldred.py
6tennis/dl
69eb7e71da9fabe9e7ec40c461b525b4f967f345
[ "Apache-2.0" ]
null
null
null
adv/aldred.py
6tennis/dl
69eb7e71da9fabe9e7ec40c461b525b4f967f345
[ "Apache-2.0" ]
null
null
null
from core.advbase import * from slot.a import * def module(): return Aldred class Aldred(Adv): comment = 'maintain dragondrive' conf = {} conf['slots.a'] = Heralds_of_Hinomoto()+Dear_Diary() conf['slots.poison.a'] = Heralds_of_Hinomoto()+The_Plaguebringer() conf['acl'] = """ `s3, not ...
33.09375
116
0.575071
from core.advbase import * from slot.a import * def module(): return Aldred class Aldred(Adv): comment = 'maintain dragondrive' conf = {} conf['slots.a'] = Heralds_of_Hinomoto()+Dear_Diary() conf['slots.poison.a'] = Heralds_of_Hinomoto()+The_Plaguebringer() conf['acl'] = """ `s3, not ...
true
true