hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
7981f9dbacec562f9a45197dff4523f0f17aa822
1,509
py
Python
modules/implant/gather/enum_users.py
barballs/koadic
66335d5705a9b639a2e750380fbcc4f23df66a0c
[ "Apache-2.0" ]
2,255
2017-07-26T00:57:17.000Z
2021-12-20T06:39:28.000Z
modules/implant/gather/enum_users.py
eaglesquads/koadic
8e0174c7b3e5e14aa295bfd1deee7fc3b85acedb
[ "Apache-2.0" ]
129
2017-07-31T06:56:00.000Z
2021-11-17T04:40:34.000Z
modules/implant/gather/enum_users.py
eaglesquads/koadic
8e0174c7b3e5e14aa295bfd1deee7fc3b85acedb
[ "Apache-2.0" ]
598
2017-07-25T20:57:25.000Z
2021-12-01T06:24:22.000Z
import core.implant class EnumUsersJob(core.job.Job): def create(self): self.users = [] def report(self, handler, data, sanitize = False): user = data.decode() handler.reply(200) if user == "Complete": super(EnumUsersJob, self).report(handler, data, False) ...
28.471698
209
0.599735
7981fa45164ac48aad89f97ed176e43e118091c7
123
py
Python
examples/heartbeat.py
jncraton/robot-inventor-cli
356db4a2d6e294a5a1c3f748e8fc7d9611232211
[ "MIT" ]
1
2022-02-07T11:55:55.000Z
2022-02-07T11:55:55.000Z
examples/heartbeat.py
jncraton/robot-inventor-cli
356db4a2d6e294a5a1c3f748e8fc7d9611232211
[ "MIT" ]
null
null
null
examples/heartbeat.py
jncraton/robot-inventor-cli
356db4a2d6e294a5a1c3f748e8fc7d9611232211
[ "MIT" ]
null
null
null
""" Blink LED """ import hub import time while True: hub.led(1) time.sleep(.3) hub.led(0) time.sleep(.3)
9.461538
18
0.569106
7981fac4e187930449f3ed14cb33bacdfb125a83
5,179
py
Python
pymir3x/Onsets.py
vbreeden/pymir3x
4dedcfcc27a5e32f46897044ca8409c9df340dab
[ "MIT" ]
null
null
null
pymir3x/Onsets.py
vbreeden/pymir3x
4dedcfcc27a5e32f46897044ca8409c9df340dab
[ "MIT" ]
null
null
null
pymir3x/Onsets.py
vbreeden/pymir3x
4dedcfcc27a5e32f46897044ca8409c9df340dab
[ "MIT" ]
null
null
null
""" Compute onset times from time-domain audio data Spectra are computed as necessary Supported methods: - Time-domain: energy - Spectral: flux Ported from https://github.com/jsawruk/pymir: 30 August 2017 """ import numpy from pymir3x import Energy, SpectralFlux def onsets(audio_data, method='energy'): audio_o...
28.146739
78
0.602819
7981fb141da47485cc39e6e58efcaa8867713d7c
7,043
py
Python
src/options/base_options.py
arthurlirui/refsepECCV2020
3a58d5ff2c908f6d30c1c1d9278d4b335fd65f42
[ "BSD-3-Clause" ]
2
2021-04-26T21:04:49.000Z
2021-07-06T07:17:31.000Z
src/options/base_options.py
arthurlirui/Multi-bouncePolarizationState
3a58d5ff2c908f6d30c1c1d9278d4b335fd65f42
[ "BSD-3-Clause" ]
null
null
null
src/options/base_options.py
arthurlirui/Multi-bouncePolarizationState
3a58d5ff2c908f6d30c1c1d9278d4b335fd65f42
[ "BSD-3-Clause" ]
1
2022-03-04T08:45:27.000Z
2022-03-04T08:45:27.000Z
import argparse import os from util import util import torch class BaseOptions(): def __init__(self): self.parser = argparse.ArgumentParser() self.initialized = False def initialize(self): # experiment specifics self.parser.add_argument('--name', type=str, default='label2c...
65.82243
228
0.649865
7981fc35141143a641962f650dabf338a63f4c86
2,801
py
Python
alcazas/config/eod.py
ShahzadNaser/bagos_alcazas
6cad57868da5b9264becb8b2cf5cb8eb86bc2103
[ "MIT" ]
null
null
null
alcazas/config/eod.py
ShahzadNaser/bagos_alcazas
6cad57868da5b9264becb8b2cf5cb8eb86bc2103
[ "MIT" ]
null
null
null
alcazas/config/eod.py
ShahzadNaser/bagos_alcazas
6cad57868da5b9264becb8b2cf5cb8eb86bc2103
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import frappe from frappe import _ def get_data(): return [ { "label": _("EODR"), "icon": "fa fa-cog", "items": [ { "typ...
41.80597
76
0.191717
7981fe07ac45fbdf5e94706a324644a4b9d5ff81
4,941
py
Python
Scripts/create_indexes.py
Ninja91/DnCensus
98f45d63ef739fd0d61428ed1c4581593443c6db
[ "MIT" ]
1
2020-08-19T00:13:45.000Z
2020-08-19T00:13:45.000Z
Scripts/create_indexes.py
Ninja91/DnCensus
98f45d63ef739fd0d61428ed1c4581593443c6db
[ "MIT" ]
1
2015-10-14T02:25:37.000Z
2015-10-14T02:25:37.000Z
Scripts/create_indexes.py
Ninja91/DnCensus
98f45d63ef739fd0d61428ed1c4581593443c6db
[ "MIT" ]
null
null
null
#!/usr/bin/python __author__ = 'Nitin' import marisa_trie as mt import csv import os.path import marshal as Pickle import threading import commons import preprocessing as pp DEBUG_MODE = False TARGET_INDEX_FILE = '_target_index.marisa' NAME_INDEX_FILE = '_name_index.marisa' COMBINED_NAME_INDEX_FILE = ...
33.612245
123
0.651892
7981fe8271b3ade896f851a856710260cd84cae7
140
py
Python
python/testData/inspections/RenameUnresolvedReference.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/inspections/RenameUnresolvedReference.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/inspections/RenameUnresolvedReference.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
def foo(y1): <error descr="Unresolved reference 'y'">y<caret></error> + 1 print <error descr="Unresolved reference 'y'">y</error>
23.333333
64
0.65
7981fea5b7b367dd27b5b82199b2ede6fc529e81
3,889
py
Python
tests/common/test_op/ascend/vector_matmul.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
tests/common/test_op/ascend/vector_matmul.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
tests/common/test_op/ascend/vector_matmul.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
# Copyright 2019-2021 Huawei Technologies Co., Ltd # # 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 agre...
35.678899
105
0.587555
7981ffd3f1ee3aad638bc82b5590ede7bbe7450f
1,937
py
Python
licel_controller/interface.py
dangerbat/licel_controller
efd62e16b807e82438e9910e72755a3fb40af216
[ "MIT" ]
null
null
null
licel_controller/interface.py
dangerbat/licel_controller
efd62e16b807e82438e9910e72755a3fb40af216
[ "MIT" ]
null
null
null
licel_controller/interface.py
dangerbat/licel_controller
efd62e16b807e82438e9910e72755a3fb40af216
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import asyncio from multiprocessing import Pool from licel_controller import settings, tr_commands class Controller(): def __init__(self, *args, **kwargs): self.commands_to_execute = [] def run(self): with Pool(1) as pool: try: results = pool.ma...
26.902778
78
0.586474
7982006fb3cd9e1f0f565b8e371fd060a9e62eb0
2,186
py
Python
schools/util.py
PKU-ComNet/school-fiesta
90003ccc72b2ace350874b64b51d474d12b22d70
[ "Apache-2.0" ]
2
2016-03-14T08:08:20.000Z
2016-03-14T12:49:34.000Z
schools/util.py
PKU-ComNet/school-fiesta
90003ccc72b2ace350874b64b51d474d12b22d70
[ "Apache-2.0" ]
null
null
null
schools/util.py
PKU-ComNet/school-fiesta
90003ccc72b2ace350874b64b51d474d12b22d70
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import requests import numpy as np import re from bs4 import BeautifulSoup from utils import cachelib def get_url(url, cache=False, verbose=False): if verbose: print 'fetching ' + url + ' ...' if cache and cachelib.is_url_file_exist(url): return cachelib.read_url_f...
29.540541
83
0.637694
798200d84d3a54dc4eb8b6c65a09d6ec199c3c01
5,287
py
Python
sacrerouge/tests/fixtures/data/hong2014/setup.py
danieldeutsch/decomposed-rouge
0d723be8e3359f0bdcc9c7940336800895e46dbb
[ "Apache-2.0" ]
81
2020-07-10T15:45:08.000Z
2022-03-30T12:19:11.000Z
sacrerouge/tests/fixtures/data/hong2014/setup.py
danieldeutsch/decomposed-rouge
0d723be8e3359f0bdcc9c7940336800895e46dbb
[ "Apache-2.0" ]
29
2020-08-03T21:50:45.000Z
2022-02-23T14:34:16.000Z
sacrerouge/tests/fixtures/data/hong2014/setup.py
danieldeutsch/decomposed-rouge
0d723be8e3359f0bdcc9c7940336800895e46dbb
[ "Apache-2.0" ]
7
2020-08-14T09:54:08.000Z
2022-03-30T12:19:25.000Z
""" Sets up the data released in Hong et al. (2014) http://www.cis.upenn.edu/~nlp/corpora/sumrepo/sumrepo_duc2004.tar.gz for unittesting. """ import argparse import json import nltk import os from glob import glob from typing import List def load_one_sentence_per_line_glob(glob_string: str) -> List[List[str]]: su...
39.75188
121
0.72631
798201667deb87e1a96522a8e8efe22f9b2cb3a3
804
py
Python
module2-sql-for-analysis/elephant_queries.py
fansha1994/DS-Unit-3-Sprint-2-SQL-and-Databases
9b85c705577557d8ad4b6f3aa6b7dcdc0ea897f9
[ "MIT" ]
null
null
null
module2-sql-for-analysis/elephant_queries.py
fansha1994/DS-Unit-3-Sprint-2-SQL-and-Databases
9b85c705577557d8ad4b6f3aa6b7dcdc0ea897f9
[ "MIT" ]
null
null
null
module2-sql-for-analysis/elephant_queries.py
fansha1994/DS-Unit-3-Sprint-2-SQL-and-Databases
9b85c705577557d8ad4b6f3aa6b7dcdc0ea897f9
[ "MIT" ]
null
null
null
import psycopg2 import os from dotenv import load_dotenv load_dotenv() #> LOADS CONTENTS OF THE .env FILE INTO THE SCRIPTS EVNIRMONT DB_NAME = os.getenv("DB_NAME") DB_USER = os.getenv("DB_USER") DB_PASSWORD = os.getenv("DB_PASSWORD") DB_HOST = os.getenv("DB_HOST") print(DB_NAME, DB_USER, DB_PASSWORD, DB_HOST) ##...
25.935484
95
0.757463
798201ec51dd521b9d4c15c386670906a3e7f92f
842
py
Python
setup.py
TR0NZ0D/TR0NZ0D_Lib
6e96e05ceb7ec8dc4f244d710b45847a550f14d8
[ "MIT" ]
1
2021-06-16T01:26:52.000Z
2021-06-16T01:26:52.000Z
setup.py
TR0NZ0D/TR0NZ0D_Lib
6e96e05ceb7ec8dc4f244d710b45847a550f14d8
[ "MIT" ]
null
null
null
setup.py
TR0NZ0D/TR0NZ0D_Lib
6e96e05ceb7ec8dc4f244d710b45847a550f14d8
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages classifiers = [ 'Development Status :: 5 - Production/Stable', 'Operating System :: Microsoft :: Windows :: Windows 10', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 3' ] requirements = [ 'cryptography' ] setup( name=...
28.066667
86
0.672209
798202371b4bdb23f2c648e92d6004a30676731c
13,698
py
Python
cs411site/views.py
Mig-Foxhound/Find_Friend-Django-Project
473b101b60c8fd36ffde50e40ec5324f7ac12c25
[ "MIT" ]
null
null
null
cs411site/views.py
Mig-Foxhound/Find_Friend-Django-Project
473b101b60c8fd36ffde50e40ec5324f7ac12c25
[ "MIT" ]
null
null
null
cs411site/views.py
Mig-Foxhound/Find_Friend-Django-Project
473b101b60c8fd36ffde50e40ec5324f7ac12c25
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect from django.db import connection from .forms import ProfileForm, LocationForm, SearchLocationForm import populartimes import datetime import math from mycrawl import popCrawl def index(request): # Render the HTML template index.html with the data in the context varia...
41.011976
220
0.575923
798202d966f83de99e019554f78ed4a804f53899
1,271
py
Python
src/pretix/helpers/security.py
pajowu/pretix
d6985123b4528f134ead71ce0a4613c9a309fd2c
[ "ECL-2.0", "Apache-2.0" ]
1
2020-04-25T00:11:00.000Z
2020-04-25T00:11:00.000Z
src/pretix/helpers/security.py
pajowu/pretix
d6985123b4528f134ead71ce0a4613c9a309fd2c
[ "ECL-2.0", "Apache-2.0" ]
7
2019-07-08T10:29:54.000Z
2020-01-08T17:32:07.000Z
src/pretix/helpers/security.py
pajowu/pretix
d6985123b4528f134ead71ce0a4613c9a309fd2c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import hashlib import time from django.conf import settings class SessionInvalid(Exception): pass class SessionReauthRequired(Exception): pass def get_user_agent_hash(request): return hashlib.sha256(request.headers['User-Agent'].encode()).hexdigest() def assert_session_valid(request): if not se...
33.447368
103
0.686861
7982031ce894f7388c40afc90c959db9bce28871
6,718
py
Python
azure-mgmt-rdbms/azure/mgmt/rdbms/mysql/my_sql_management_client.py
ashirey-msft/azure-sdk-for-python
e04778e13306dad2e8fb044970215bad6296afb6
[ "MIT" ]
null
null
null
azure-mgmt-rdbms/azure/mgmt/rdbms/mysql/my_sql_management_client.py
ashirey-msft/azure-sdk-for-python
e04778e13306dad2e8fb044970215bad6296afb6
[ "MIT" ]
null
null
null
azure-mgmt-rdbms/azure/mgmt/rdbms/mysql/my_sql_management_client.py
ashirey-msft/azure-sdk-for-python
e04778e13306dad2e8fb044970215bad6296afb6
[ "MIT" ]
1
2018-08-28T14:36:47.000Z
2018-08-28T14:36:47.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
52.077519
235
0.759601
7982035a7a66edc2b79f8e1d23a9bb314c3bf782
511
py
Python
leetcode/1021_Remove Outermost Parentheses.py
solomonovum/algorithms
53ac0ea143592ea6a61211da0ef45a108d0b3555
[ "MIT" ]
null
null
null
leetcode/1021_Remove Outermost Parentheses.py
solomonovum/algorithms
53ac0ea143592ea6a61211da0ef45a108d0b3555
[ "MIT" ]
null
null
null
leetcode/1021_Remove Outermost Parentheses.py
solomonovum/algorithms
53ac0ea143592ea6a61211da0ef45a108d0b3555
[ "MIT" ]
null
null
null
class Solution: def removeOuterParentheses(self, S: str) -> str: # open or closed? stack = [] ret = [] for index, element in enumerate(S): if element is '(': stack.append((element, index)) else: if len(stack) is 1: ...
30.058824
61
0.452055
798203e95d8a0eb64cddc7a9a7e5f8ad716c1817
2,404
py
Python
backend/modules/doc/migrations/0008_pindoc.py
OrenZhang/iWiki
3c89bf2dbcde1eb75472c1d900e3eba55ec18698
[ "MIT" ]
2
2021-12-18T13:12:47.000Z
2021-12-20T11:35:16.000Z
backend/modules/doc/migrations/0008_pindoc.py
OrenZhang/iWiki
3c89bf2dbcde1eb75472c1d900e3eba55ec18698
[ "MIT" ]
142
2021-12-18T13:21:51.000Z
2022-03-31T12:40:30.000Z
backend/modules/doc/migrations/0008_pindoc.py
OrenZhang/iWiki
3c89bf2dbcde1eb75472c1d900e3eba55ec18698
[ "MIT" ]
2
2021-12-27T15:57:22.000Z
2022-01-26T11:44:32.000Z
# -*- coding: utf-8 -*- """ MIT License Copyright (c) 2021 Oren Zhang 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, mo...
36.424242
82
0.60025
7982055db0924b4778b9c228e0590745b67a3705
1,275
py
Python
python--keycloak-examples/interact_with_keycloak.py
jekhokie/scriptbox
93c03d8ab9b7e7cd9c5c6a65b444392ffe92fd70
[ "MIT" ]
11
2020-03-29T09:12:25.000Z
2022-03-24T01:01:50.000Z
python--keycloak-examples/interact_with_keycloak.py
jekhokie/scriptbox
93c03d8ab9b7e7cd9c5c6a65b444392ffe92fd70
[ "MIT" ]
5
2021-06-02T03:41:51.000Z
2022-02-26T03:48:50.000Z
python--keycloak-examples/interact_with_keycloak.py
jekhokie/scriptbox
93c03d8ab9b7e7cd9c5c6a65b444392ffe92fd70
[ "MIT" ]
8
2019-02-01T13:33:14.000Z
2021-12-14T20:16:03.000Z
#!/usr/bin/env python # # Small example of how to integrate with the Keycloak open source identity # and access management (IAM) software. Most of this code is completely # possible to obtain online, but serves as a decent starting point. # # Assumptions: # - Keycloak software is running/listening on IP 10.11.13.50 a...
29.651163
132
0.767843
798205b3d06c31061f51671a66a5c14e8183179f
10,911
py
Python
src/robot/result/xmlelementhandlers.py
N-Aero/robotframework
e15664f80e830f30209f118117bf361c74ebe7fb
[ "ECL-2.0", "Apache-2.0" ]
1
2021-06-05T21:55:16.000Z
2021-06-05T21:55:16.000Z
src/robot/result/xmlelementhandlers.py
N-Aero/robotframework
e15664f80e830f30209f118117bf361c74ebe7fb
[ "ECL-2.0", "Apache-2.0" ]
24
2021-01-26T07:07:27.000Z
2022-03-03T06:41:53.000Z
src/robot/result/xmlelementhandlers.py
N-Aero/robotframework
e15664f80e830f30209f118117bf361c74ebe7fb
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2008-2015 Nokia Networks # Copyright 2016- Robot Framework 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 ...
30.735211
88
0.6191
798206837a38ef8f4c4c3290cbb0738bac36cbe6
1,324
py
Python
io_base/yaml_io.py
miguelgfierro/pybase
de8e4f11ed5c655e748178e65195c7e70a9c98af
[ "BSD-3-Clause" ]
14
2020-02-07T21:36:39.000Z
2022-03-12T22:37:04.000Z
io_base/yaml_io.py
miguelgfierro/pybase
de8e4f11ed5c655e748178e65195c7e70a9c98af
[ "BSD-3-Clause" ]
19
2019-05-18T23:58:30.000Z
2022-01-09T16:45:35.000Z
io_base/yaml_io.py
miguelgfierro/pybase
de8e4f11ed5c655e748178e65195c7e70a9c98af
[ "BSD-3-Clause" ]
5
2020-10-06T06:10:27.000Z
2021-07-08T12:58:46.000Z
import yaml def save_file(data, filename, block_style=True): """Save a dictionary as a YAML file Args: data (dict): A dictionary. filename (str): Name of the file. block_style (bool): If True, with unnested dictionaries, it saves the data with the block format. If False, ...
28.782609
118
0.568731
798207638ca853107344502dbfca652c8c82b729
12,540
py
Python
setup.py
felix-salfelder/cython
5446ec2921d6247611978cd17c66e215421b20c4
[ "Apache-2.0" ]
2
2021-08-20T02:33:24.000Z
2021-11-17T10:54:00.000Z
setup.py
felix-salfelder/cython
5446ec2921d6247611978cd17c66e215421b20c4
[ "Apache-2.0" ]
null
null
null
setup.py
felix-salfelder/cython
5446ec2921d6247611978cd17c66e215421b20c4
[ "Apache-2.0" ]
null
null
null
try: from setuptools import setup, Extension except ImportError: from distutils.core import setup, Extension from distutils.sysconfig import get_python_lib import os, os.path import sys try: import platform is_cpython = not hasattr(platform, 'python_implementation') or platform.python_implementation() ...
37.657658
119
0.605104
79820782d1307be7ae08d66eded80bed5219d577
3,076
py
Python
perf/transducer.py
andrewguy9/farmfs
1cad69237ace53869b044afcb322773acf9bf447
[ "MIT" ]
5
2015-01-28T19:09:33.000Z
2022-03-01T07:35:02.000Z
perf/transducer.py
andrewguy9/farmfs
1cad69237ace53869b044afcb322773acf9bf447
[ "MIT" ]
22
2015-01-01T19:10:28.000Z
2022-01-18T21:52:39.000Z
perf/transducer.py
andrewguy9/farmfs
1cad69237ace53869b044afcb322773acf9bf447
[ "MIT" ]
1
2021-05-06T03:39:34.000Z
2021-05-06T03:39:34.000Z
from __future__ import print_function import timeit from tabulate import tabulate from farmfs.util import * from farmfs.transduce import transduce, arrayOf from farmfs.transduce import compose as comp from farmfs.transduce import map as transmap def inc_square_comprehension(nums): return [(num+1)*(num+1) for num in ...
31.387755
126
0.703836
798209403b1a913817564dd37cb8cb605e4332d2
795
py
Python
venv/Lib/site-packages/tests/ajaxmiddleware/app/views.py
lsmiley/esstools-adminlte-3
ec3a7334be0ab05e9d336e397d6edb881131b932
[ "MIT" ]
306
2015-01-04T05:33:14.000Z
2022-02-15T20:34:37.000Z
venv/Lib/site-packages/tests/ajaxmiddleware/app/views.py
lsmiley/esstools-adminlte-3
ec3a7334be0ab05e9d336e397d6edb881131b932
[ "MIT" ]
39
2015-01-13T16:29:17.000Z
2021-12-24T14:11:45.000Z
venv/Lib/site-packages/tests/ajaxmiddleware/app/views.py
lsmiley/esstools-adminlte-3
ec3a7334be0ab05e9d336e397d6edb881131b932
[ "MIT" ]
75
2015-01-15T07:11:53.000Z
2022-03-09T12:14:21.000Z
from django.contrib.auth.decorators import login_required from django.views.generic import TemplateView from django.shortcuts import render from django.http import Http404 # We're using `django_ajax.middleware.AJAXMiddleware` in settings # so we don't need to use `@ajax` and `AJAXMixin` decorators def foo_view(reque...
22.714286
65
0.748428
7982095f1784dc235946902eb8a5ac929c56472d
2,755
py
Python
glow/squeeze.py
TheoNguyen611/glowIP
6629b1f62f7d12a57c17194baec7ce85f99753c7
[ "MIT" ]
10
2020-03-08T03:59:52.000Z
2021-11-17T02:55:59.000Z
glow/squeeze.py
TheoNguyen611/glowIP
6629b1f62f7d12a57c17194baec7ce85f99753c7
[ "MIT" ]
3
2019-10-20T04:05:24.000Z
2021-06-04T01:39:53.000Z
glow/squeeze.py
TheoNguyen611/glowIP
6629b1f62f7d12a57c17194baec7ce85f99753c7
[ "MIT" ]
11
2019-08-22T01:31:07.000Z
2022-02-06T15:20:18.000Z
import torch import torch.nn as nn import numpy as np # device if torch.cuda.is_available(): device = "cuda" else: device = "cpu" class Squeeze(nn.Module): def __init__(self, factor, contiguous=False): super(Squeeze, self).__init__() self.factor = factor self.conti...
37.739726
132
0.52559
79820a262abac907300cbca1a82f62cfb6d71d50
1,435
py
Python
pontoon/terminology/models.py
XAMPPRocky/pontoon
8ac8ab8d1b0ddf17dc8dfe463229871abc3c39fa
[ "BSD-3-Clause" ]
1
2020-04-08T00:00:19.000Z
2020-04-08T00:00:19.000Z
pontoon/terminology/models.py
saku97/pontoon
e5fa5b14920c534a15b26adbeaacaa66ca1bc864
[ "BSD-3-Clause" ]
null
null
null
pontoon/terminology/models.py
saku97/pontoon
e5fa5b14920c534a15b26adbeaacaa66ca1bc864
[ "BSD-3-Clause" ]
null
null
null
from django.db import models class Term(models.Model): text = models.CharField(max_length=255) PARTS_OF_SPEECH = ( ("adjective", "Adjective"), ("adverb", "Adverb"), ("noun", "Noun"), ("verb", "Verb"), ) part_of_speech = models.CharField(max_length=50, choices=PARTS_OF_...
29.285714
85
0.664111
79820a59943f3789152b3f3fcc486646aba8ae33
2,960
py
Python
tests/common/sql_test_suite.py
pgoslatara/soda-sql
79dc8ad1c79ac8fe3f75955ecc8424ee0aef95f3
[ "Apache-2.0" ]
787
2021-01-15T15:21:16.000Z
2022-03-25T16:01:57.000Z
tests/common/sql_test_suite.py
pgoslatara/soda-sql
79dc8ad1c79ac8fe3f75955ecc8424ee0aef95f3
[ "Apache-2.0" ]
822
2021-01-15T14:07:09.000Z
2022-03-31T12:46:41.000Z
tests/common/sql_test_suite.py
pgoslatara/soda-sql
79dc8ad1c79ac8fe3f75955ecc8424ee0aef95f3
[ "Apache-2.0" ]
78
2021-01-23T08:37:49.000Z
2022-03-29T14:08:37.000Z
# Copyright 2020 Soda # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software #...
45.538462
117
0.764527
79820a6bcbd49e76c179c42c0fe771afc0a8a483
34
py
Python
src/Bubot_CoAP/__init__.py
businka/Bubot_CoAP
2b28c63ac3de307547712e66066f324bcc748c6d
[ "MIT" ]
null
null
null
src/Bubot_CoAP/__init__.py
businka/Bubot_CoAP
2b28c63ac3de307547712e66066f324bcc748c6d
[ "MIT" ]
null
null
null
src/Bubot_CoAP/__init__.py
businka/Bubot_CoAP
2b28c63ac3de307547712e66066f324bcc748c6d
[ "MIT" ]
null
null
null
__author__ = 'Mikhail Razgovorov'
17
33
0.794118
79820aad158e69a652676515134c5cf386cc5f43
1,032
py
Python
cybox/test/objects/disk_test.py
Mattlk13/python-cybox
ee82c7da40ca4638e3ca8d70766150c0dace1b55
[ "BSD-3-Clause" ]
null
null
null
cybox/test/objects/disk_test.py
Mattlk13/python-cybox
ee82c7da40ca4638e3ca8d70766150c0dace1b55
[ "BSD-3-Clause" ]
null
null
null
cybox/test/objects/disk_test.py
Mattlk13/python-cybox
ee82c7da40ca4638e3ca8d70766150c0dace1b55
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2017, The MITRE Corporation. All rights reserved. # See LICENSE.txt for complete terms. import unittest from cybox.objects.disk_object import Disk from cybox.test.objects import ObjectTestCase class TestDisk(ObjectTestCase, unittest.TestCase): object_type = "DiskObjectType" klass = Disk ...
25.170732
65
0.57655
79820aed2cbdf1fc9268ad84a40b977e5bc45f67
2,832
py
Python
src/prefect/utilities/agent.py
ericholiveira/prefect
9b783c386222bcd2b8014a07ba2d0135830f171d
[ "Apache-2.0" ]
null
null
null
src/prefect/utilities/agent.py
ericholiveira/prefect
9b783c386222bcd2b8014a07ba2d0135830f171d
[ "Apache-2.0" ]
null
null
null
src/prefect/utilities/agent.py
ericholiveira/prefect
9b783c386222bcd2b8014a07ba2d0135830f171d
[ "Apache-2.0" ]
null
null
null
from distutils.version import LooseVersion from prefect.utilities.graphql import GraphQLResult def get_flow_image(flow_run: GraphQLResult) -> str: """ Retrieve the image to use for this flow run deployment. Args: - flow_run (GraphQLResult): A GraphQLResult flow run object Returns: -...
39.333333
93
0.6875
79820b37558f20e5083b07af6003c8903377e62f
3,896
py
Python
foolbox/models/lasagne.py
physsz/foolbox
7b0e60b994468ab5cf065d7ca931853dd2b2b8ed
[ "MIT" ]
1
2019-04-15T08:33:47.000Z
2019-04-15T08:33:47.000Z
foolbox/models/lasagne.py
physsz/foolbox
7b0e60b994468ab5cf065d7ca931853dd2b2b8ed
[ "MIT" ]
null
null
null
foolbox/models/lasagne.py
physsz/foolbox
7b0e60b994468ab5cf065d7ca931853dd2b2b8ed
[ "MIT" ]
1
2021-02-26T10:04:20.000Z
2021-02-26T10:04:20.000Z
from __future__ import absolute_import import numpy as np from .base import DifferentiableModel class LasagneModel(DifferentiableModel): """Creates a :class:`Model` instance from a `Lasagne` network. Parameters ---------- input_layer : `lasagne.layers.Layer` The input to the model. logi...
35.743119
76
0.63886
79820b9f643ce0b90a5bebace3fb145111d4924d
3,162
py
Python
feedreader/migrations/0001_initial.py
SHohentanner/django-feedreader
7a2e5bbfaaaa3f05b5687c609b0211555cfd4b78
[ "BSD-3-Clause" ]
null
null
null
feedreader/migrations/0001_initial.py
SHohentanner/django-feedreader
7a2e5bbfaaaa3f05b5687c609b0211555cfd4b78
[ "BSD-3-Clause" ]
null
null
null
feedreader/migrations/0001_initial.py
SHohentanner/django-feedreader
7a2e5bbfaaaa3f05b5687c609b0211555cfd4b78
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 2.0.3 on 2018-03-16 19:54 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Entry', fields=[ ...
40.025316
128
0.550601
79820c8ea94c1acebd250b034c80a0fe5964f1e6
6,907
py
Python
flow/scenarios/grid/grid_scenario.py
lijunsun/flow
fb3f0d54e06b9e940b7a2ba8772395ee7ea0f17b
[ "MIT" ]
null
null
null
flow/scenarios/grid/grid_scenario.py
lijunsun/flow
fb3f0d54e06b9e940b7a2ba8772395ee7ea0f17b
[ "MIT" ]
null
null
null
flow/scenarios/grid/grid_scenario.py
lijunsun/flow
fb3f0d54e06b9e940b7a2ba8772395ee7ea0f17b
[ "MIT" ]
1
2020-08-24T07:41:49.000Z
2020-08-24T07:41:49.000Z
from flow.scenarios.base_scenario import Scenario from flow.core.params import InitialConfig from flow.core.traffic_lights import TrafficLights ADDITIONAL_NET_PARAMS = { # dictionary of grid array data "grid_array": { # number of horizontal rows of edges "row_num": 3, # number of vertic...
42.374233
79
0.613436
79820cf50c056ab489c1f181ef917f50d04b93b2
636
py
Python
split_image_trainval.py
Ariyl/AerialDetection
dc3384ff42d06e0ba9c9df2e2d053d8df7d1b726
[ "Apache-2.0" ]
null
null
null
split_image_trainval.py
Ariyl/AerialDetection
dc3384ff42d06e0ba9c9df2e2d053d8df7d1b726
[ "Apache-2.0" ]
null
null
null
split_image_trainval.py
Ariyl/AerialDetection
dc3384ff42d06e0ba9c9df2e2d053d8df7d1b726
[ "Apache-2.0" ]
null
null
null
import os import shutil path = '/raid/detection/dota/val/images' remove_path = '/raid/detection/dota/train/images' remove_path2 = '/raid/detection/dota/train/labelTxt-v1.0' # remove_path3 = '/raid/detection/dota/train/labelTxt-v1.5' files = os.listdir(path) for file in files: imagname = file if os.path.exists...
35.333333
61
0.710692
79820e52a06aee27f1d686e1d4d0071edc8e96d5
327
py
Python
python/smqtk/web/_plugins.py
joshanderson-kw/SMQTK
594e7c733fe7f4e514a1a08a7343293a883a41fc
[ "BSD-3-Clause" ]
82
2015-01-07T15:33:29.000Z
2021-08-11T18:34:05.000Z
python/smqtk/web/_plugins.py
joshanderson-kw/SMQTK
594e7c733fe7f4e514a1a08a7343293a883a41fc
[ "BSD-3-Clause" ]
230
2015-04-08T14:36:51.000Z
2022-03-14T17:55:30.000Z
python/smqtk/web/_plugins.py
joshanderson-kw/SMQTK
594e7c733fe7f4e514a1a08a7343293a883a41fc
[ "BSD-3-Clause" ]
65
2015-01-04T15:00:16.000Z
2021-11-19T18:09:11.000Z
from .classifier_service import SmqtkClassifierService # noqa: F401 from .descriptor_service import DescriptorServiceServer # noqa: F401 from .iqr_service import IqrService # noqa: F401 from .nearestneighbor_service import NearestNeighborServiceServer # noqa: F401 from .search_app import IqrSearchDispatcher # noqa...
54.5
79
0.831804
79820fe00d57e3ed7ef79d422db211bcf81c64c3
955
py
Python
src/match_pattern/pattern_matcher/named_element.py
elsid/master
b3624a6fb3a007fff005c0811f05c5802344b46b
[ "MIT" ]
null
null
null
src/match_pattern/pattern_matcher/named_element.py
elsid/master
b3624a6fb3a007fff005c0811f05c5802344b46b
[ "MIT" ]
null
null
null
src/match_pattern/pattern_matcher/named_element.py
elsid/master
b3624a6fb3a007fff005c0811f05c5802344b46b
[ "MIT" ]
null
null
null
# coding: utf-8 from pattern_matcher.element import Element class NamedElement(Element): __next_number = 0 def __init__(self, name): super(NamedElement, self).__init__() if name: self.name = name else: self.name = 'anonymous_%d' % NamedElement.__next_number ...
26.527778
77
0.586387
79820fe1b3c907c0c19f200a79d6091067098b78
2,774
py
Python
partition/partitioner/vp_hxc.py
VHchavez/Partition
526823ac6497ef36b428ad013df789e97546a4c9
[ "BSD-3-Clause" ]
null
null
null
partition/partitioner/vp_hxc.py
VHchavez/Partition
526823ac6497ef36b428ad013df789e97546a4c9
[ "BSD-3-Clause" ]
null
null
null
partition/partitioner/vp_hxc.py
VHchavez/Partition
526823ac6497ef36b428ad013df789e97546a4c9
[ "BSD-3-Clause" ]
null
null
null
""" vp_hxc.py """ import numpy as np import psi4 def vp_hxc(self): """ Calculates hxc component of vp """ # Calculate hxc functional for promolecular density on grid #Hartree Exchange Correlation on DFT GRID _, self.V.vh = self.grid.esp(Da=self.inverter.dt[0], Db=self.inverter.dt[1], vpot=se...
42.030303
135
0.64708
79821054e6f3bcfd51e401bd8174a33df03f50d8
847
py
Python
problems/bst.py
olichen/python
292cdab389c0872680dbac44ec6ed872a0258df7
[ "MIT" ]
null
null
null
problems/bst.py
olichen/python
292cdab389c0872680dbac44ec6ed872a0258df7
[ "MIT" ]
null
null
null
problems/bst.py
olichen/python
292cdab389c0872680dbac44ec6ed872a0258df7
[ "MIT" ]
null
null
null
# makes a BST from an array class Node: def __init__(self, value, left, right): self.value = value self.left = left self.right = right def bst_from_array(array, start, end): if start >= end: return None mid = (start + end) // 2 value = array[mid] left = bst_from_arra...
27.322581
50
0.583235
7982106d6bacbe43436be1ebe6ef5b62924dbbd5
3,070
py
Python
plugins/action/command_which.py
sma-de/ansible-collections-base
d50f685e3fdd00dff40282adc52028b7f2725020
[ "BSD-3-Clause" ]
null
null
null
plugins/action/command_which.py
sma-de/ansible-collections-base
d50f685e3fdd00dff40282adc52028b7f2725020
[ "BSD-3-Clause" ]
null
null
null
plugins/action/command_which.py
sma-de/ansible-collections-base
d50f685e3fdd00dff40282adc52028b7f2725020
[ "BSD-3-Clause" ]
null
null
null
from __future__ import (absolute_import, division, print_function) __metaclass__ = type import textwrap from ansible.module_utils.six import string_types ##from ansible.utils.display import Display from ansible_collections.smabot.base.plugins.module_utils.plugins.action_base import BaseAction ##display = Displa...
28.165138
113
0.576873
798211ec11255c9bb8aff26fa4cfd2ac0cd1d3ce
602
py
Python
URI/Lanche.py
LuccasTraumer/pythonRepositorio
52d4455cea0615c8eba7ab4c6224ce3350bbcf47
[ "MIT" ]
null
null
null
URI/Lanche.py
LuccasTraumer/pythonRepositorio
52d4455cea0615c8eba7ab4c6224ce3350bbcf47
[ "MIT" ]
null
null
null
URI/Lanche.py
LuccasTraumer/pythonRepositorio
52d4455cea0615c8eba7ab4c6224ce3350bbcf47
[ "MIT" ]
null
null
null
''' Cod Produto Preco 1 Cachorro Quente 4.00 2 X-Salada 4.50 3 X-Bacon 5.00 4 Torrada Simples 2.00 5 Refrigerante 1.50 ''' informacoes = input().split(' ') codigo = int(informacoes[0]) qts = int(informacoes[1]) if codigo == 1: print("Total: R$...
25.083333
49
0.528239
798212f957e3ce0b0382924d20dfbaae331a6920
27,440
py
Python
pandas/tests/frame/methods/test_quantile.py
AdrianMastronardi/pandas
67045903306ac4a1cab108177e92df30d99912b4
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
1
2019-11-01T08:44:40.000Z
2019-11-01T08:44:40.000Z
pandas/tests/frame/methods/test_quantile.py
AdrianMastronardi/pandas
67045903306ac4a1cab108177e92df30d99912b4
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/tests/frame/methods/test_quantile.py
AdrianMastronardi/pandas
67045903306ac4a1cab108177e92df30d99912b4
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
import numpy as np import pytest from pandas.compat.numpy import np_percentile_argname import pandas as pd from pandas import ( DataFrame, Index, Series, Timestamp, ) import pandas._testing as tm class TestDataFrameQuantile: @pytest.mark.parametrize( "non_num_col", [ ...
34.129353
88
0.516363
79821413ebeb0dbe109ac2cef261529b8d8079cf
3,422
py
Python
zermelo/client.py
wouter173/zermelo.py
eea103864d631c79337664d7eac53f155094194e
[ "MIT" ]
3
2019-09-08T17:42:38.000Z
2022-03-28T12:38:36.000Z
zermelo/client.py
wouter173/zermelo.py
eea103864d631c79337664d7eac53f155094194e
[ "MIT" ]
2
2020-09-13T15:00:25.000Z
2021-12-29T16:27:40.000Z
zermelo/client.py
wouter173/zermelo.py
eea103864d631c79337664d7eac53f155094194e
[ "MIT" ]
8
2019-10-16T15:16:32.000Z
2022-03-10T07:41:59.000Z
import requests import json class Client(): def __init__(self, school=""): self.session = requests.Session() if school != "": self.endpoint = "https://{}.zportal.nl/api".format(school) else: raise ValueError("School is not defined.") def authenticate(self, cod...
31.109091
82
0.547049
7982149ebb0619f406b308fda27850b725c6f3bc
14,904
py
Python
dryadic/tests/test_mtrees.py
ohsu-comp-bio/dryads
015f6d3186a5146809334e2490c072e675b22891
[ "MIT" ]
null
null
null
dryadic/tests/test_mtrees.py
ohsu-comp-bio/dryads
015f6d3186a5146809334e2490c072e675b22891
[ "MIT" ]
null
null
null
dryadic/tests/test_mtrees.py
ohsu-comp-bio/dryads
015f6d3186a5146809334e2490c072e675b22891
[ "MIT" ]
null
null
null
"""Unit tests for hierarchical storage of mutation cohorts. See Also: :class:`..features.mutations.MuTree`: The class tested herein. Author: Michal Grzadkowski <grzadkow@ohsu.edu> """ from ..features.mutations import MuType, MuTree from .test_mtypes import mtype_generator import os import pandas as pd from it...
38.611399
78
0.517579
798214aed0b2d1559cff8fa743ac6a80e9701d93
1,778
py
Python
util/config.py
su226/IdhagnBot
a5db1b6ab69fdf67fd6e53a63b34c6bc863d6609
[ "MIT" ]
2
2022-02-14T06:37:05.000Z
2022-03-30T12:18:15.000Z
util/config.py
su226/IdhagnBot
a5db1b6ab69fdf67fd6e53a63b34c6bc863d6609
[ "MIT" ]
null
null
null
util/config.py
su226/IdhagnBot
a5db1b6ab69fdf67fd6e53a63b34c6bc863d6609
[ "MIT" ]
null
null
null
from typing import Any, ClassVar, Type, TypeVar from pydantic import BaseModel, Field, PrivateAttr from pydantic.json import pydantic_encoder from loguru import logger import os import yaml __all__ = ["BaseModel", "BaseConfig", "BaseState", "Field", "PrivateAttr"] def encode(data: Any): if data is None or isinstanc...
29.147541
81
0.658605
798215a08a3f2f5061923b9431553c9851d00d02
452
py
Python
reana_job_controller/version.py
dprelipcean/reana-job-controller
cd9e68ecf997de4cc0558edbd31b36b0097f32c3
[ "MIT" ]
1
2019-04-05T14:57:18.000Z
2019-04-05T14:57:18.000Z
reana_job_controller/version.py
dprelipcean/reana-job-controller
cd9e68ecf997de4cc0558edbd31b36b0097f32c3
[ "MIT" ]
null
null
null
reana_job_controller/version.py
dprelipcean/reana-job-controller
cd9e68ecf997de4cc0558edbd31b36b0097f32c3
[ "MIT" ]
1
2019-06-04T22:25:38.000Z
2019-06-04T22:25:38.000Z
# -*- coding: utf-8 -*- # # This file is part of REANA. # Copyright (C) 2017, 2018 CERN. # # REANA is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Version information for REANA-Job-Controller. This file is imported by ``reana_job_c...
25.111111
72
0.727876
798215a7cdce86ac6517b6b7d97adca613c04b80
3,558
py
Python
scripts/style_mixing.py
DeepVoodooFX/pixel2style2pixel
0254c32400d55f7e400ead15b02ad6a992ba1e21
[ "Apache-2.0", "BSD-2-Clause", "MIT" ]
null
null
null
scripts/style_mixing.py
DeepVoodooFX/pixel2style2pixel
0254c32400d55f7e400ead15b02ad6a992ba1e21
[ "Apache-2.0", "BSD-2-Clause", "MIT" ]
null
null
null
scripts/style_mixing.py
DeepVoodooFX/pixel2style2pixel
0254c32400d55f7e400ead15b02ad6a992ba1e21
[ "Apache-2.0", "BSD-2-Clause", "MIT" ]
null
null
null
import os from argparse import Namespace from tqdm import tqdm import numpy as np from PIL import Image import torch from torch.utils.data import DataLoader import sys sys.path.append(".") sys.path.append("..") from configs import data_configs from datasets.inference_dataset import InferenceDataset from utils.common...
35.58
98
0.690838
798215af4ee010f3cec266ba000b9d15b2d358e7
38,497
py
Python
rfcat/rflib/chipcon_usb.py
n644dc/spacewaveTx
7c4df00366c8dc4b05976e4dc09df14b135f27bf
[ "Unlicense" ]
null
null
null
rfcat/rflib/chipcon_usb.py
n644dc/spacewaveTx
7c4df00366c8dc4b05976e4dc09df14b135f27bf
[ "Unlicense" ]
null
null
null
rfcat/rflib/chipcon_usb.py
n644dc/spacewaveTx
7c4df00366c8dc4b05976e4dc09df14b135f27bf
[ "Unlicense" ]
null
null
null
#!/usr/bin/env ipython from __future__ import print_function from __future__ import absolute_import from __future__ import division from builtins import bytes from builtins import str from builtins import hex from builtins import range from builtins import object from past.utils import old_div import os import sys im...
39.322778
207
0.506091
7982168a7ea6758fe0986b70a7cbb05749ce990c
3,305
py
Python
BART/OptValidator.py
zanglab/bart_py2
704e51c9b1e544ed98f308538e5f687b5bcb9dda
[ "BSD-2-Clause" ]
2
2018-03-16T09:26:30.000Z
2018-08-13T15:15:04.000Z
BART/OptValidator.py
zanglab/bart_py2
704e51c9b1e544ed98f308538e5f687b5bcb9dda
[ "BSD-2-Clause" ]
null
null
null
BART/OptValidator.py
zanglab/bart_py2
704e51c9b1e544ed98f308538e5f687b5bcb9dda
[ "BSD-2-Clause" ]
1
2019-03-01T20:47:17.000Z
2019-03-01T20:47:17.000Z
# Time-stamp: <2017-08-10> ''' Copyright (c) 2017, 2018 Chongzhi Zang, Zhenjia Wang <zhenjia@virginia.edu> This code is free software; you can redistribute it and/or modify it under the terms of the BSD License. @status: release candidate @version: $Id$ @author: Chongzhi Zang, Zhenjia Wang @contact: zhenjia@virginia...
36.318681
93
0.607867
79821690bf3b8d928028ce745fd8c8b4ffe43674
19,540
py
Python
testing/minibatch_tests.py
zhenwendai/RGP
be679607d3457a1038a2fe39b36b816ea380ea39
[ "BSD-3-Clause" ]
17
2016-10-24T01:31:30.000Z
2021-07-31T08:12:02.000Z
testing/minibatch_tests.py
zhenwendai/RGP
be679607d3457a1038a2fe39b36b816ea380ea39
[ "BSD-3-Clause" ]
null
null
null
testing/minibatch_tests.py
zhenwendai/RGP
be679607d3457a1038a2fe39b36b816ea380ea39
[ "BSD-3-Clause" ]
11
2017-07-11T09:11:48.000Z
2022-01-25T12:10:48.000Z
#!/usr/bin/env python2 # -*- coding: utf-8 -*- import unittest import numpy as np import GPy import os import copy import autoreg from autoreg.data_streamers import TrivialDataStreamer, RandomPermutationDataStreamer, StdMemoryDataStreamer # base_path = os.path.dirname(__file__) def generate_data( seq_num, seq_leng...
44.91954
188
0.575486
7982174a6176221add9c2b39c7d07b1264328ff2
5,854
py
Python
easy_command_sdk/model/ops_automation/jobs_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
5
2019-07-31T04:11:05.000Z
2021-01-07T03:23:20.000Z
easy_command_sdk/model/ops_automation/jobs_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
null
null
null
easy_command_sdk/model/ops_automation/jobs_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: jobs.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import...
46.460317
681
0.76341
79821a26dc92287ea1a03a613d17ed3bdd9cad96
5,429
py
Python
app/main/views.py
lewis-murgor/pitch
8a250d419db0d69c1f236d533e1db8a7adadb64c
[ "MIT" ]
null
null
null
app/main/views.py
lewis-murgor/pitch
8a250d419db0d69c1f236d533e1db8a7adadb64c
[ "MIT" ]
null
null
null
app/main/views.py
lewis-murgor/pitch
8a250d419db0d69c1f236d533e1db8a7adadb64c
[ "MIT" ]
null
null
null
from flask import render_template,request,redirect,url_for,abort from . import main from flask_login import login_required,current_user from ..models import User,Pitch,Comment,UpVote,DownVote from .forms import CommentForm,UpdateProfile,PitchForm from .. import db,photos import markdown2 @main.route('/') def index():...
29.666667
103
0.672684
79821c8556c1cca8a5a86dcc0483aa0e3d76f21a
2,164
py
Python
app/osm_observer/test/test_user.py
grischard/osm-observer
9e833e98696abc4a2aab942c8899aaf039166fc1
[ "MIT" ]
4
2018-04-24T17:55:08.000Z
2021-02-18T00:52:04.000Z
app/osm_observer/test/test_user.py
grischard/osm-observer
9e833e98696abc4a2aab942c8899aaf039166fc1
[ "MIT" ]
1
2021-02-08T20:30:42.000Z
2021-02-08T20:30:42.000Z
app/osm_observer/test/test_user.py
grischard/osm-observer
9e833e98696abc4a2aab942c8899aaf039166fc1
[ "MIT" ]
2
2019-09-27T23:57:11.000Z
2020-09-19T19:01:37.000Z
from osm_observer.test.base import BaseTestClass from osm_observer import model from flask import url_for from flask_login import current_user from urllib.parse import urlparse class TestUserLogin(BaseTestClass): def test_login_logout(self): with self.app.test_client() as c: r = c.post(url_f...
32.298507
77
0.643253
79821e1ac2601f952dc9e602da0ed1b27a083f12
4,446
py
Python
src/reversi.py
jrfreyes/Reversi
6f3fb63b3667b743091da5b8f55d8f5fb99fdf24
[ "MIT" ]
null
null
null
src/reversi.py
jrfreyes/Reversi
6f3fb63b3667b743091da5b8f55d8f5fb99fdf24
[ "MIT" ]
null
null
null
src/reversi.py
jrfreyes/Reversi
6f3fb63b3667b743091da5b8f55d8f5fb99fdf24
[ "MIT" ]
null
null
null
class MoveError(Exception): pass class Reversi: colors = {'red':1, 'blue':-1} def __init__(self, height: int = 8, width: int = 8) -> None: self._height = height self._width = width self.initialize_board() def initialize_board(self): self._board = [[0]*self._width for ...
31.985612
84
0.526091
79821ebe165b31ddd8b8abcadae5600db94ac5eb
3,349
py
Python
models/strongbaseline/mobilenetv2_x1_cclvs.py
XavierCHEN34/ClickSEG
0c801cfa5f67f066fdaab28ff8f3afde1cb71ace
[ "Apache-2.0" ]
2
2022-03-15T04:44:33.000Z
2022-03-15T06:30:15.000Z
models/strongbaseline/mobilenetv2_x1_cclvs.py
XavierCHEN34/ClickSEG
0c801cfa5f67f066fdaab28ff8f3afde1cb71ace
[ "Apache-2.0" ]
null
null
null
models/strongbaseline/mobilenetv2_x1_cclvs.py
XavierCHEN34/ClickSEG
0c801cfa5f67f066fdaab28ff8f3afde1cb71ace
[ "Apache-2.0" ]
null
null
null
from isegm.utils.exp_imports.default import * MODEL_NAME = 'mobilenetv2_x1_cclvs' from isegm.data.compose import ComposeDataset,ProportionalComposeDataset import torch.nn as nn from isegm.data.aligned_augmentation import AlignedAugmentator from isegm.engine.baseline_trainer import ISTrainer def main(cfg): model, m...
37.211111
132
0.641087
79821efceb6956e308e795038d0ec49154779323
1,227
py
Python
module2-sql-for-analysis/insert_titanic.py
NicoMontoya/DS-Unit-3-Sprint-2-SQL-and-Databases
37ff9373ff75adc31c202473a72cd90bbf888795
[ "MIT" ]
null
null
null
module2-sql-for-analysis/insert_titanic.py
NicoMontoya/DS-Unit-3-Sprint-2-SQL-and-Databases
37ff9373ff75adc31c202473a72cd90bbf888795
[ "MIT" ]
null
null
null
module2-sql-for-analysis/insert_titanic.py
NicoMontoya/DS-Unit-3-Sprint-2-SQL-and-Databases
37ff9373ff75adc31c202473a72cd90bbf888795
[ "MIT" ]
null
null
null
import psycopg2 import sqlite3 ### Connect to ElephantSQL-hosted PostgreSQL pg_conn = psycopg2.connect(dbname='assmldlq', user='assmldlq', password=input('Enter Password: '), host='raja.db.elephantsql.com') ### A "cursor", a structure to iterate over db records to perf...
23.150943
73
0.693562
79821fba9e0dedb8dbcc1bfc78f3bee9281be96c
17,179
py
Python
saleor/settings.py
hasher-hasher/saleor
e5c4bb961d236de96c73056f73271268a66d8325
[ "BSD-3-Clause" ]
1
2019-09-04T15:17:34.000Z
2019-09-04T15:17:34.000Z
saleor/settings.py
hasher-hasher/saleor
e5c4bb961d236de96c73056f73271268a66d8325
[ "BSD-3-Clause" ]
4
2020-03-24T16:08:51.000Z
2021-06-10T20:58:59.000Z
saleor/settings.py
rubengocio/ecommerce
6c9f0b8b6e0cf2916d2efc141eccb4d0ebbc7a79
[ "BSD-3-Clause" ]
1
2021-02-09T08:41:29.000Z
2021-02-09T08:41:29.000Z
import ast import os.path import dj_database_url import dj_email_url import django_cache_url from django.contrib.messages import constants as messages from django.utils.translation import gettext_lazy as _, pgettext_lazy from django_prices.templatetags.prices_i18n import get_currency_fraction from . import __version_...
31.637201
90
0.697188
798220d362e0e9bb17695d5d335a89e688811d82
235
py
Python
rotate_image.py
spencercjh/sync-leetcode-today-problem-python3-example
4957e5eadb697334741df0fc297bec2edaa9e2ab
[ "Apache-2.0" ]
null
null
null
rotate_image.py
spencercjh/sync-leetcode-today-problem-python3-example
4957e5eadb697334741df0fc297bec2edaa9e2ab
[ "Apache-2.0" ]
null
null
null
rotate_image.py
spencercjh/sync-leetcode-today-problem-python3-example
4957e5eadb697334741df0fc297bec2edaa9e2ab
[ "Apache-2.0" ]
null
null
null
class RotateImage: """ https://leetcode-cn.com/problems/rotate-image/ """ def rotate(self, matrix: List[List[int]]) -> None: """ Do not return anything, modify matrix in-place instead. """
21.363636
63
0.561702
79822201d451a7ca2b39b76cf9734360532005d6
1,597
py
Python
modules/user_work.py
ivddorrka/OP_nutriotionproject
20aa3c707fa1141a7425a158e47ef1f12744b1c7
[ "FSFAP" ]
1
2021-04-08T20:34:14.000Z
2021-04-08T20:34:14.000Z
modules/user_work.py
ivddorrka/OP_nutriotionproject
20aa3c707fa1141a7425a158e47ef1f12744b1c7
[ "FSFAP" ]
3
2021-04-03T22:20:36.000Z
2021-05-17T16:32:26.000Z
modules/user_work.py
ivddorrka/OP_nutriotionproject
20aa3c707fa1141a7425a158e47ef1f12744b1c7
[ "FSFAP" ]
null
null
null
"""User class 1""" class PasswordTooShortError(Exception): """To raise when password's too short""" pass class User: """To get info from user""" def __init__(self, login): """Init function""" self.age = None self.height = None self.weight = None self.gender = ...
25.349206
68
0.55479
798222bf385e164005e78e307b5b3a78cfe907dc
1,396
py
Python
code/s1/dc_corr.py
little111cow/2021-D-
db128ae39678581a28b974a6a91a3d8d7d119704
[ "Apache-2.0" ]
1
2021-11-01T07:37:30.000Z
2021-11-01T07:37:30.000Z
code/s1/dc_corr.py
little111cow/2021-D-mathematical_modeling
db128ae39678581a28b974a6a91a3d8d7d119704
[ "Apache-2.0" ]
null
null
null
code/s1/dc_corr.py
little111cow/2021-D-mathematical_modeling
db128ae39678581a28b974a6a91a3d8d7d119704
[ "Apache-2.0" ]
null
null
null
from scipy.io import loadmat, savemat from scipy.spatial.distance import pdist, squareform import numpy as np def distcorr(X, Y): """距离相关系数""" X = np.atleast_1d(X) Y = np.atleast_1d(Y) if np.prod(X.shape) == len(X): X = X[:, None] if np.prod(Y.shape) == len(Y): Y = Y[:, None] X = np.atleast_2d(X) Y = np.a...
28.489796
78
0.646132
7982237d13181e4e38ab3539d26c687468441bff
17,390
py
Python
icp2edd/xml4Erddap.py
BjerknesClimateDataCentre/ICOS-CP2ERDDAP
42909fca2654aaf3f8a9c3894f3910ecf07ae0c5
[ "MIT" ]
null
null
null
icp2edd/xml4Erddap.py
BjerknesClimateDataCentre/ICOS-CP2ERDDAP
42909fca2654aaf3f8a9c3894f3910ecf07ae0c5
[ "MIT" ]
10
2020-12-04T13:44:21.000Z
2021-05-14T08:46:22.000Z
icp2edd/xml4Erddap.py
BjerknesClimateDataCentre/ICOS-CP2ERDDAP
42909fca2654aaf3f8a9c3894f3910ecf07ae0c5
[ "MIT" ]
1
2020-11-30T14:00:05.000Z
2020-11-30T14:00:05.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Xml4Erddap.py # --- import ----------------------------------- # import from standard lib import logging import os import re import subprocess import warnings from pathlib import Path from pprint import pformat # from importlib import resources # import from other lib ...
37.317597
119
0.560265
7982242904d687cd04bc0db93a448a46cd4a892a
4,300
py
Python
kubernetes/client/apis/apis_api.py
Scalr/kubernetes-client-python
07442bdb76f0876ec96c0b0da6f9c4b06d7e5e38
[ "Apache-2.0" ]
3
2019-05-19T05:05:37.000Z
2020-03-20T04:56:20.000Z
kubernetes/client/apis/apis_api.py
Scalr/kubernetes-client-python
07442bdb76f0876ec96c0b0da6f9c4b06d7e5e38
[ "Apache-2.0" ]
null
null
null
kubernetes/client/apis/apis_api.py
Scalr/kubernetes-client-python
07442bdb76f0876ec96c0b0da6f9c4b06d7e5e38
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.13.5 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import sys import os i...
34.4
119
0.569767
798224af7b64eaa12865c59f4ebb539a04f97a0b
2,577
py
Python
generate_version_4a.py
lakhotiaharshit/qcodes_generate_test_db
181cdfc7a447c99d73a7244424fa6f4bb453676d
[ "MIT" ]
null
null
null
generate_version_4a.py
lakhotiaharshit/qcodes_generate_test_db
181cdfc7a447c99d73a7244424fa6f4bb453676d
[ "MIT" ]
null
null
null
generate_version_4a.py
lakhotiaharshit/qcodes_generate_test_db
181cdfc7a447c99d73a7244424fa6f4bb453676d
[ "MIT" ]
1
2020-02-18T16:48:47.000Z
2020-02-18T16:48:47.000Z
""" Generate a version 4a database file for qcodes' test suite to consume. Version 4a accidentally serialised the RunDescriber with an InterDependencies_ object instead of an InterDependencies object """ import os import numpy as np # NB: it's important that we do not import anything from qcodes before we # do the g...
31.814815
78
0.625534
798224f8a33a4c8f3705d63c1dc3afc196f68668
1,099
py
Python
auto3.py
adiurs2002/Zoom-Automation
bafa0bc4ee9767df30e04d890983b4cdf5a8ba01
[ "MIT" ]
1
2021-05-17T20:07:30.000Z
2021-05-17T20:07:30.000Z
auto3.py
adiurs2002/Zoom-Automation
bafa0bc4ee9767df30e04d890983b4cdf5a8ba01
[ "MIT" ]
null
null
null
auto3.py
adiurs2002/Zoom-Automation
bafa0bc4ee9767df30e04d890983b4cdf5a8ba01
[ "MIT" ]
null
null
null
import pyautogui import json import time import sys def initLogin(): try: with open('data.txt') as rfile: data = json.load(rfile) except Exception as e: print('first import classid data from getdata.py') try: cString = 'class'+str(sys.argv[1]) if(data[...
21.134615
73
0.618744
798225010b4f405347b30cc813772142c7acf13b
867
py
Python
sample/Learning/DBChartTest.py
NathanPG/RPICourseTrends
f2ea08d70d321374373287adf355b75f7e4d24da
[ "MIT" ]
null
null
null
sample/Learning/DBChartTest.py
NathanPG/RPICourseTrends
f2ea08d70d321374373287adf355b75f7e4d24da
[ "MIT" ]
null
null
null
sample/Learning/DBChartTest.py
NathanPG/RPICourseTrends
f2ea08d70d321374373287adf355b75f7e4d24da
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: UTF-8 -*- import MySQLdb # Open connection db = MySQLdb.connect("localhost", "x", "x", "TESTDB", charset='utf8' ) # Get cursor cursor = db.cursor() # Drop table cursor.execute("DROP TABLE") # Create table # sql = """CREATE TABLE Courses ( # Timekey CHAR(20) NOT NULL, # ...
18.0625
70
0.557093
7982263432b805c6cd98c9dfebba38430fc040f1
7,577
py
Python
pynq/lib/arduino/arduino_io.py
michalkouril/PYNQ
c72febc2decc83816f40b91a7f60e11fe707c248
[ "BSD-3-Clause" ]
1,537
2016-09-26T22:51:50.000Z
2022-03-31T13:33:54.000Z
pynq/lib/arduino/arduino_io.py
michalkouril/PYNQ
c72febc2decc83816f40b91a7f60e11fe707c248
[ "BSD-3-Clause" ]
414
2016-10-03T21:12:10.000Z
2022-03-21T14:55:02.000Z
pynq/lib/arduino/arduino_io.py
michalkouril/PYNQ
c72febc2decc83816f40b91a7f60e11fe707c248
[ "BSD-3-Clause" ]
826
2016-09-23T22:29:43.000Z
2022-03-29T11:02:09.000Z
# Copyright (c) 2016, Xilinx, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # this list of ...
38.075377
79
0.594431
7982275032deea665f36cc750279a9a70fb1b234
27,538
py
Python
userbot/plugins/admin.py
Srujan12-hi/crackuerbot
d8d1383ef7791edce158ba47a9aba1bcca752d48
[ "MIT" ]
36
2020-08-26T15:58:06.000Z
2022-01-15T13:37:21.000Z
userbot/plugins/admin.py
Srujan12-hi/crackuerbot
d8d1383ef7791edce158ba47a9aba1bcca752d48
[ "MIT" ]
2
2020-08-27T08:17:57.000Z
2020-08-31T16:02:33.000Z
userbot/plugins/admin.py
Srujan12-hi/crackuerbot
d8d1383ef7791edce158ba47a9aba1bcca752d48
[ "MIT" ]
35
2020-06-04T09:33:19.000Z
2022-01-15T14:29:47.000Z
# Copyright (C) 2019 The Raphielscape Company LLC. # # Licensed under the Raphielscape Public License, Version 1.c (the "License"); # you may not use this file except in compliance with the License. """ Userbot module to help you manage a group """ from asyncio import sleep from os import remove from telethon.errors ...
32.512397
114
0.602767
798227d4948b385ac689aa67e26402f6bf1812c7
50
py
Python
app/api/errors.py
danieloselu3/flask_API
5ee5ff6226c7f673f12da2cf3a131819f4042925
[ "MIT" ]
null
null
null
app/api/errors.py
danieloselu3/flask_API
5ee5ff6226c7f673f12da2cf3a131819f4042925
[ "MIT" ]
null
null
null
app/api/errors.py
danieloselu3/flask_API
5ee5ff6226c7f673f12da2cf3a131819f4042925
[ "MIT" ]
null
null
null
# function bad request def bad_request(): pass
16.666667
22
0.72
798227dc0a1f2633d2e12f11a78eccc12253d729
1,349
py
Python
Figures/StructuralLinear/PlotStructuralLinear.py
mktranstrum/ICTSSloppyModels2017
bb4861153f955f583714e60661310a3c2dc7582e
[ "MIT" ]
1
2017-01-15T12:16:47.000Z
2017-01-15T12:16:47.000Z
Figures/StructuralLinear/PlotStructuralLinear.py
mktranstrum/ICTSSloppyModels2017
bb4861153f955f583714e60661310a3c2dc7582e
[ "MIT" ]
null
null
null
Figures/StructuralLinear/PlotStructuralLinear.py
mktranstrum/ICTSSloppyModels2017
bb4861153f955f583714e60661310a3c2dc7582e
[ "MIT" ]
null
null
null
import numpy as np import pylab sqrt = np.sqrt fig_width = 8.0 # inches golden_mean = (sqrt(5)-1.0)/2.0 # Aesthetic ratio fig_height = fig_width*golden_mean # height in inches dpi = 600.0 # Convert inch to pt fig_size = [fig_width,fig_height] params...
24.981481
129
0.613788
7982291c17e8f02b4a16eb175c2c48b6dce3d4b0
1,017
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/virtual_machine_scale_set_sku_paged.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/virtual_machine_scale_set_sku_paged.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/virtual_machine_scale_set_sku_paged.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
1
2019-06-17T22:18:23.000Z
2019-06-17T22:18:23.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
36.321429
159
0.60767
7982293a520ca80bb97c1a5d9324cb8e3fe516ee
3,009
py
Python
tests/test_watchwhatueat.py
chrisbubernak/recipe-scrapers
1617a542f6e728552886aebd29f14e97feeb8f5c
[ "MIT" ]
1
2021-02-07T17:48:09.000Z
2021-02-07T17:48:09.000Z
tests/test_watchwhatueat.py
chrisbubernak/recipe-scrapers
1617a542f6e728552886aebd29f14e97feeb8f5c
[ "MIT" ]
null
null
null
tests/test_watchwhatueat.py
chrisbubernak/recipe-scrapers
1617a542f6e728552886aebd29f14e97feeb8f5c
[ "MIT" ]
null
null
null
from tests import ScraperTest from recipe_scrapers.watchwhatueat import WatchWhatUEat class TestWatchWhatUEatScraper(ScraperTest): scraper_class = WatchWhatUEat def test_host(self): self.assertEqual("watchwhatueat.com", self.harvester_class.host()) def test_canonical_url(self): self.as...
49.327869
1,104
0.652709
79822952509d9dede4dfbf0a1b63818bc9e78bd0
3,233
py
Python
examples/transparency/oit-teapot.py
Frekby/glumpy
7a71151ac208766d9697737cb7978bb9d12aa243
[ "BSD-3-Clause" ]
1,074
2015-01-02T07:52:35.000Z
2022-03-28T08:58:55.000Z
examples/transparency/oit-teapot.py
Frekby/glumpy
7a71151ac208766d9697737cb7978bb9d12aa243
[ "BSD-3-Clause" ]
273
2015-01-02T19:49:30.000Z
2021-12-15T11:02:53.000Z
examples/transparency/oit-teapot.py
Frekby/glumpy
7a71151ac208766d9697737cb7978bb9d12aa243
[ "BSD-3-Clause" ]
206
2015-01-01T10:51:53.000Z
2022-03-07T13:52:13.000Z
# ----------------------------------------------------------------------------- # Copyright (c) 2009-2016 Nicolas P. Rougier. All rights reserved. # Distributed under the (new) BSD License. # ----------------------------------------------------------------------------- import numpy as np from glumpy import app, gl, glo...
27.87069
93
0.669347
7982295d6bb5b9a17e80655fd8da5f4f40597cc7
24,323
py
Python
activitysim/core/pipeline.py
SEMCOG/SEMCOG_ActSim
cc18cce84b2e4b5f380f58c7919953d2cd03ee73
[ "BSD-3-Clause" ]
null
null
null
activitysim/core/pipeline.py
SEMCOG/SEMCOG_ActSim
cc18cce84b2e4b5f380f58c7919953d2cd03ee73
[ "BSD-3-Clause" ]
1
2021-06-30T23:39:37.000Z
2021-06-30T23:39:37.000Z
activitysim/core/pipeline.py
SEMCOG/SEMCOG_ActSim
cc18cce84b2e4b5f380f58c7919953d2cd03ee73
[ "BSD-3-Clause" ]
null
null
null
# ActivitySim # See full license in LICENSE.txt. from builtins import next from builtins import map from builtins import object import os import logging import datetime as dt import pandas as pd from . import orca from . import inject from . import config from . import random from . import tracing from . import mem ...
30.252488
100
0.677589
79822984ffb2b1bf5377c665d27872cd0b007e9a
3,383
py
Python
idb/common/tests/format_tests.py
CoverGo/idb
4e4895140555275db875659dc8501d641e26939e
[ "MIT" ]
null
null
null
idb/common/tests/format_tests.py
CoverGo/idb
4e4895140555275db875659dc8501d641e26939e
[ "MIT" ]
null
null
null
idb/common/tests/format_tests.py
CoverGo/idb
4e4895140555275db875659dc8501d641e26939e
[ "MIT" ]
1
2021-08-20T08:04:16.000Z
2021-08-20T08:04:16.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. from idb.common.format import ( installed_app_info_from_json, installed_test_info_from_json, json_format_installed_app_info, json_format_installed_test_info, json_format_target_info, json_format_test_...
29.938053
86
0.698492
79822a5fee28eff1e381c87cadcdb66a54bfc877
859
py
Python
u24_lymphocyte/download_heatmap/get_tumor_labeled_maps/get_tumor_pos_neg_map.py
ALSM-PhD/quip_classification
7347bfaa5cf11ae2d7a528fbcc43322a12c795d3
[ "BSD-3-Clause" ]
4
2019-06-14T16:50:56.000Z
2021-09-21T12:09:09.000Z
u24_lymphocyte/download_heatmap/get_tumor_labeled_maps/get_tumor_pos_neg_map.py
ALSM-PhD/quip_classification
7347bfaa5cf11ae2d7a528fbcc43322a12c795d3
[ "BSD-3-Clause" ]
2
2019-07-09T07:09:30.000Z
2019-10-02T12:00:18.000Z
u24_lymphocyte/download_heatmap/get_tumor_labeled_maps/get_tumor_pos_neg_map.py
ALSM-PhD/quip_classification
7347bfaa5cf11ae2d7a528fbcc43322a12c795d3
[ "BSD-3-Clause" ]
13
2019-04-17T20:23:29.000Z
2022-02-28T00:32:47.000Z
# inputs: svs_name, username, width, height, mark_file # not tested by 10/7/18 import numpy as np from get_labeled_im_high_res import * from get_tumor_region_extract import * import sys import cv2 svs_name = sys.argv[1] username = sys.argv[2] width = int(sys.argv[3]) height = int(sys.argv[4]) mark_file = sys.argv[5]...
27.709677
105
0.772992
79822b481ac53b91bdcbe2a192326e23fd77e932
1,941
py
Python
haproxy/setup.py
mchelen-gov/integrations-core
81281600b3cc7025a7a32148c59620c9592a564f
[ "BSD-3-Clause" ]
663
2016-08-23T05:23:45.000Z
2022-03-29T00:37:23.000Z
haproxy/setup.py
mchelen-gov/integrations-core
81281600b3cc7025a7a32148c59620c9592a564f
[ "BSD-3-Clause" ]
6,642
2016-06-09T16:29:20.000Z
2022-03-31T22:24:09.000Z
haproxy/setup.py
mchelen-gov/integrations-core
81281600b3cc7025a7a32148c59620c9592a564f
[ "BSD-3-Clause" ]
1,222
2017-01-27T15:51:38.000Z
2022-03-31T18:17:51.000Z
# To use a consistent encoding from codecs import open from os import path from setuptools import setup HERE = path.abspath(path.dirname(__file__)) # Get version info ABOUT = {} with open(path.join(HERE, "datadog_checks", "haproxy", "__about__.py")) as f: exec(f.read(), ABOUT) # Get the long description from th...
30.328125
77
0.668212
79822bf2a0e625a9cd9dedf97c32df7e39ef9bb4
7,562
py
Python
avatar/views.py
brosner/django-avatar
c93065cebad57a8d287224d0a5baf759d3ae5981
[ "BSD-3-Clause" ]
1
2016-05-09T12:29:37.000Z
2016-05-09T12:29:37.000Z
avatar/views.py
jiaaro/django-avatar
66f66889620175f16977b0373c428101819f49f4
[ "BSD-3-Clause" ]
null
null
null
avatar/views.py
jiaaro/django-avatar
66f66889620175f16977b0373c428101819f49f4
[ "BSD-3-Clause" ]
null
null
null
from django.http import HttpResponseRedirect from django.shortcuts import render_to_response from django.template import RequestContext from django.utils.translation import ugettext as _ from django.conf import settings from django.contrib.auth.decorators import login_required from avatar import AVATAR_MAX_AVATARS_PE...
38.979381
86
0.640175
79822c211189634e55cf66641d89d9114de7339f
4,828
py
Python
scripts/prepro_ngrams.py
mazm13/Image-to-Tree.pytorch
1d32e31d489ea6be784dbbe173acc362b82c59dc
[ "MIT" ]
null
null
null
scripts/prepro_ngrams.py
mazm13/Image-to-Tree.pytorch
1d32e31d489ea6be784dbbe173acc362b82c59dc
[ "MIT" ]
null
null
null
scripts/prepro_ngrams.py
mazm13/Image-to-Tree.pytorch
1d32e31d489ea6be784dbbe173acc362b82c59dc
[ "MIT" ]
null
null
null
""" Precompute ngram counts of captions, to accelerate cider computation during training time. """ import os import json import argparse from six.moves import cPickle import misc.utils as utils from collections import defaultdict def precook(s, n=4, out=False): """ Takes a string as input and returns an objec...
37.138462
150
0.631732
79822c699296bc6fe03586a8b8f56dbc4247cdcf
7,490
py
Python
py/testdir_ec2_only/test_GBM_manyfiles_s3n.py
gigliovale/h2o
be350f3f2c2fb6f135cc07c41f83fd0e4f521ac1
[ "Apache-2.0" ]
882
2015-05-22T02:59:21.000Z
2022-02-17T05:02:48.000Z
py/testdir_ec2_only/test_GBM_manyfiles_s3n.py
VonRosenchild/h2o-2
be350f3f2c2fb6f135cc07c41f83fd0e4f521ac1
[ "Apache-2.0" ]
1
2022-02-22T12:15:02.000Z
2022-02-22T12:15:02.000Z
py/testdir_ec2_only/test_GBM_manyfiles_s3n.py
VonRosenchild/h2o-2
be350f3f2c2fb6f135cc07c41f83fd0e4f521ac1
[ "Apache-2.0" ]
392
2015-05-22T17:04:11.000Z
2022-02-22T09:04:39.000Z
import unittest import random, sys, time, re sys.path.extend(['.','..','../..','py']) import h2o_browse as h2b, h2o_gbm import h2o, h2o_cmd, h2o_browse as h2b, h2o_import as h2i, h2o_glm, h2o_util, h2o_rf, h2o_jobs as h2j doPredict = False class Basic(unittest.TestCase): def tearDown(self): h2o.check_sand...
44.319527
128
0.516021
79822c8ca6e09d54616053dc4b67f2cf2aa721d8
3,444
py
Python
autofolio/feature_preprocessing/pca.py
kvdblom/AutoFolio
60a38a485e832b4e9bd2d06cbe7e1aecc994bb32
[ "BSD-2-Clause" ]
24
2017-05-17T15:51:44.000Z
2021-05-14T20:24:44.000Z
autofolio/feature_preprocessing/pca.py
kvdblom/AutoFolio
60a38a485e832b4e9bd2d06cbe7e1aecc994bb32
[ "BSD-2-Clause" ]
10
2017-02-21T13:36:25.000Z
2021-04-10T01:35:35.000Z
autofolio/feature_preprocessing/pca.py
kvdblom/AutoFolio
60a38a485e832b4e9bd2d06cbe7e1aecc994bb32
[ "BSD-2-Clause" ]
12
2016-07-21T08:59:36.000Z
2021-01-28T13:51:16.000Z
import logging import numpy as np import pandas as pd from sklearn.decomposition import PCA from ConfigSpace.hyperparameters import CategoricalHyperparameter, \ UniformFloatHyperparameter, UniformIntegerHyperparameter from ConfigSpace.conditions import EqualsCondition, InCondition from ConfigSpace.configuration_...
29.947826
118
0.600174
79822d811018c9b7bbdb65a886562acd0c580aa9
39,428
py
Python
src/schemathesis/models.py
quaterneon/schemathesis
fa694421942c4a3d0237740ac206fb8b501f28a4
[ "MIT" ]
null
null
null
src/schemathesis/models.py
quaterneon/schemathesis
fa694421942c4a3d0237740ac206fb8b501f28a4
[ "MIT" ]
null
null
null
src/schemathesis/models.py
quaterneon/schemathesis
fa694421942c4a3d0237740ac206fb8b501f28a4
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines import base64 import datetime import http from collections import Counter from contextlib import contextmanager from copy import deepcopy from enum import Enum from itertools import chain from logging import LogRecord from typing import ( TYPE_CHECKING, Any, Callable, Di...
39.115079
120
0.630669
79822e10586d23033efc732bf9a012c586049d34
1,161
py
Python
backend/forms.py
mnpiozhang/DocumentSearch
37e42102b9aa2e42217d3c262053ec225914fff8
[ "MIT" ]
null
null
null
backend/forms.py
mnpiozhang/DocumentSearch
37e42102b9aa2e42217d3c262053ec225914fff8
[ "MIT" ]
null
null
null
backend/forms.py
mnpiozhang/DocumentSearch
37e42102b9aa2e42217d3c262053ec225914fff8
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- from django import forms from models import DocumentInfo from django.contrib.admin import widgets class DocumentForm(forms.models.ModelForm): attachment = forms.FileField(allow_empty_file=False,error_messages={'required': '请上传文档文件'}) def __init__(self, *ar...
44.653846
118
0.556417
79822e71b8391ac1c5dc664de27adeaec913e0b0
21,427
py
Python
luckysearch.py
lnsithol/luckysearch
fb4b28dc76fcfa2279630b1ec85b58dc00df3c6d
[ "BSD-3-Clause" ]
null
null
null
luckysearch.py
lnsithol/luckysearch
fb4b28dc76fcfa2279630b1ec85b58dc00df3c6d
[ "BSD-3-Clause" ]
null
null
null
luckysearch.py
lnsithol/luckysearch
fb4b28dc76fcfa2279630b1ec85b58dc00df3c6d
[ "BSD-3-Clause" ]
null
null
null
""" luckysearch =========== A small search library. Primarily intended to be a learning tool to teach the fundamentals of search. Usage ----- Example:: import luckysearch # Create an instance, pointing it to where the data should be stored. ls = luckysearch.Luckysearch('/tmp/luckysearch') # Inde...
33.323484
151
0.582023
79822f90cc1673b711681c9c2603ec6ca32e84aa
10,119
py
Python
widgets/rename_ihda/rename_ihda_icons_rc.py
seongcheoljeon/IndividualHDA
fc5218f3248c40a6de0a221a4762b6e644acfbf4
[ "MIT" ]
7
2020-08-11T16:30:04.000Z
2022-03-25T08:50:19.000Z
widgets/rename_ihda/rename_ihda_icons_rc.py
seongcheoljeon/IndividualHDA
fc5218f3248c40a6de0a221a4762b6e644acfbf4
[ "MIT" ]
1
2020-06-24T04:50:29.000Z
2020-06-24T17:40:02.000Z
widgets/rename_ihda/rename_ihda_icons_rc.py
seongcheoljeon/IndividualHDA
fc5218f3248c40a6de0a221a4762b6e644acfbf4
[ "MIT" ]
1
2021-09-15T16:28:46.000Z
2021-09-15T16:28:46.000Z
# -*- coding: utf-8 -*- # Resource object code # # Created: Sat Oct 24 19:08:24 2020 # by: The Resource Compiler for PySide2 (Qt v5.6.2) # # WARNING! All changes made in this file will be lost! from PySide2 import QtCore qt_resource_data = "\ \x00\x00\x01.\ \x89\ PNG\x0d\x0a\x1a\x0a\x00\x00\x00\x0dIHDR\x00\ \x0...
40.476
96
0.71509
7982310280c1d5e3e93416a0d6a795703310c08a
2,277
py
Python
data/edge-bundling.py
rougier/spatial-computation
3167beec07cf4e704f3cb8e6cea3ab17c52b3995
[ "BSD-2-Clause", "BSD-3-Clause" ]
16
2017-10-14T17:13:48.000Z
2022-01-11T22:19:45.000Z
data/edge-bundling.py
a4aleem/spatial-computation
393da8a6127d50c4b456d39a4fa6ec2febff311a
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
data/edge-bundling.py
a4aleem/spatial-computation
393da8a6127d50c4b456d39a4fa6ec2febff311a
[ "BSD-2-Clause", "BSD-3-Clause" ]
3
2019-12-31T23:07:29.000Z
2021-03-08T02:05:38.000Z
import numpy as np import matplotlib.pyplot as plt from matplotlib.path import Path import matplotlib.patches as patches def curve(P0,P1): x = .25 y = .15 length = np.sqrt(((P1-P0)**2).sum()) T = (P1-P0)/length O = np.array([-T[1],T[0]]) V = np.zeros((8,2)) C = [Path.MOVETO, Path....
21.280374
81
0.527888
79823134a4974a2b49d19d5139c0313abfe89a06
273
py
Python
zenn_badge/zenn.py
Ganariya/zenn-badge
0419ad9a5783525648e0d0c34c71064c9115958c
[ "MIT" ]
8
2021-01-13T01:44:57.000Z
2021-01-20T10:37:15.000Z
zenn_badge/zenn.py
ganyariya/zenn-badge
0419ad9a5783525648e0d0c34c71064c9115958c
[ "MIT" ]
6
2021-01-13T11:29:26.000Z
2021-01-15T09:35:16.000Z
zenn_badge/zenn.py
Ganariya/zenn-badge
0419ad9a5783525648e0d0c34c71064c9115958c
[ "MIT" ]
null
null
null
import requests from .user import User def scrape_user(username: str) -> User: user_api_url: str = f'https://api.zenn.dev/users/{username}' response = requests.get(user_api_url) json_data = response.json()['user'] user = User(**json_data) return user
24.818182
64
0.688645
79823163d8217692fbafa917787b683dc03b3222
4,227
py
Python
src/web/modules/polygon/models.py
fossabot/SIStema
1427dda2082688a9482c117d0e24ad380fdc26a6
[ "MIT" ]
5
2018-03-08T17:22:27.000Z
2018-03-11T14:20:53.000Z
src/web/modules/polygon/models.py
fossabot/SIStema
1427dda2082688a9482c117d0e24ad380fdc26a6
[ "MIT" ]
263
2018-03-08T18:05:12.000Z
2022-03-11T23:26:20.000Z
src/web/modules/polygon/models.py
fossabot/SIStema
1427dda2082688a9482c117d0e24ad380fdc26a6
[ "MIT" ]
6
2018-03-12T19:48:19.000Z
2022-01-14T04:58:52.000Z
from django.db import models from django.utils.translation import gettext_lazy as _ class Problem(models.Model): """This model contains meta information about Polygon problem""" polygon_id = models.IntegerField( primary_key=True, verbose_name=_('ID'), help_text='ID задачи в полигоне',...
25.463855
80
0.614857
798232836bafe925f37cb3ca542c8f09d6f738d0
12,529
py
Python
nova/api/metadata/handler.py
cloud-zuiwanyuan/nova
0b59a2d9dc22e4fb172810019dba5ece09bb4526
[ "Apache-2.0" ]
null
null
null
nova/api/metadata/handler.py
cloud-zuiwanyuan/nova
0b59a2d9dc22e4fb172810019dba5ece09bb4526
[ "Apache-2.0" ]
1
2016-04-04T18:41:59.000Z
2016-04-04T18:41:59.000Z
nova/api/metadata/handler.py
cloud-zuiwanyuan/nova
0b59a2d9dc22e4fb172810019dba5ece09bb4526
[ "Apache-2.0" ]
2
2015-12-04T23:51:46.000Z
2016-06-07T20:01:59.000Z
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # 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 ...
40.678571
79
0.606832
7982329f88727497c7d6828ab368537c6c43d1fd
20,284
py
Python
routing_transformer/sparse_image_transformer.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-13T21:48:52.000Z
2022-03-13T21:48:52.000Z
routing_transformer/sparse_image_transformer.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
null
null
null
routing_transformer/sparse_image_transformer.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2022 The Google Research 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 applicab...
32.094937
101
0.717314
7982349e77bf6ea3a8ca9784cdcb7be2edb1c5b9
2,990
py
Python
accounts/models.py
NubMaster68/houseSale
171b9f3e331e9a652992365db1223c40944978da
[ "MIT" ]
null
null
null
accounts/models.py
NubMaster68/houseSale
171b9f3e331e9a652992365db1223c40944978da
[ "MIT" ]
null
null
null
accounts/models.py
NubMaster68/houseSale
171b9f3e331e9a652992365db1223c40944978da
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractBaseUser, BaseUserManager class MyAccountManager(BaseUserManager): def create_user(self, email, first_name, surname, age, phone, avatar, password=None): if not email: raise ValueError("Users must hae an email adress!")...
34.767442
89
0.602676
798234ace6b577506155f83b5a4a5acc485d30a1
2,366
py
Python
examples/oucru/oucru-32dx/create_data_fixed.py
bahp/datablend
f0b69a012af6ea7cedc9210d46b3047d8e0bf504
[ "FTL", "RSA-MD", "CECILL-B" ]
null
null
null
examples/oucru/oucru-32dx/create_data_fixed.py
bahp/datablend
f0b69a012af6ea7cedc9210d46b3047d8e0bf504
[ "FTL", "RSA-MD", "CECILL-B" ]
1
2021-05-26T13:09:08.000Z
2021-05-26T13:09:08.000Z
examples/oucru/oucru-32dx/create_data_fixed.py
bahp/datablend
f0b69a012af6ea7cedc9210d46b3047d8e0bf504
[ "FTL", "RSA-MD", "CECILL-B" ]
null
null
null
# Libraries import pathlib import pandas as pd # DataBlend libraries from datablend.utils.logger import load_logger # ------------------------------------------ # Methods # ------------------------------------------ def fix_exam(df_his, df_exam): """This method fixes the EXAM worksheet issue 1: There is no ...
26.288889
66
0.579036
7982350a3e4557921b1ca3f0db7fe3714977feed
38,690
py
Python
chainer/link.py
intel/chainer
47ddf4e8ddfc3e0a56c6fd34a67e4cddd5a9e710
[ "MIT" ]
90
2017-02-23T04:04:47.000Z
2020-04-09T12:06:50.000Z
chainer/link.py
intel/chainer
47ddf4e8ddfc3e0a56c6fd34a67e4cddd5a9e710
[ "MIT" ]
7
2017-07-23T13:38:06.000Z
2018-07-10T07:09:03.000Z
chainer/link.py
intel/chainer
47ddf4e8ddfc3e0a56c6fd34a67e4cddd5a9e710
[ "MIT" ]
32
2017-02-28T07:40:38.000Z
2021-02-17T11:33:09.000Z
import collections import contextlib import copy import warnings import numpy import six import chainer from chainer.backends import cuda from chainer.backends import intel64 from chainer import initializers from chainer import variable def _is_shape(value): if value is None: return True elif isinst...
35.204732
83
0.598682
79823591a09799b0675faf93cd7506a2a1d7e887
2,086
py
Python
ML_experimental/code/logistic_main4.py
DistributedML/TorML
f41a0378f5e46e578c6bd9c8bfd56037d1a228cf
[ "MIT" ]
10
2018-07-02T01:48:58.000Z
2021-09-01T09:27:18.000Z
ML_experimental/code/logistic_main4.py
DistributedML/TorML
f41a0378f5e46e578c6bd9c8bfd56037d1a228cf
[ "MIT" ]
null
null
null
ML_experimental/code/logistic_main4.py
DistributedML/TorML
f41a0378f5e46e578c6bd9c8bfd56037d1a228cf
[ "MIT" ]
3
2017-10-19T21:20:59.000Z
2022-02-23T21:39:01.000Z
from __future__ import division import utils import logistic_model import global_model4 import numpy as np import matplotlib.pyplot as plt collection4 = ["bank", "creditcard", "diabetic", "eye", "logisticData", "magic","occupancy", "pulsars", "skin", "tom", "transfusion", "twitter"] for ds in...
27.090909
125
0.524928
798236880255a70833388a57fca29e11b3f208fe
4,791
py
Python
test/functional/zmq_test.py
wolfoxonly/bwb
aae01441cdc171ff7bbdc161b74b4eeb2f1b5a10
[ "MIT" ]
null
null
null
test/functional/zmq_test.py
wolfoxonly/bwb
aae01441cdc171ff7bbdc161b74b4eeb2f1b5a10
[ "MIT" ]
null
null
null
test/functional/zmq_test.py
wolfoxonly/bwb
aae01441cdc171ff7bbdc161b74b4eeb2f1b5a10
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2017 The Bwbcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the ZMQ notification interface.""" import configparser import os import struct from test_framewor...
37.724409
148
0.633688
798236db923c71979499dc5aed2b2b1d7489bdc3
6,800
py
Python
scripts/evaluate_dataset.py
plroit/qasrl-gs
a37fca4c29091533ee1dda2ac80717ebf2ce607a
[ "MIT" ]
8
2020-05-01T15:28:59.000Z
2021-11-15T20:28:10.000Z
scripts/evaluate_dataset.py
plroit/qasrl-gs
a37fca4c29091533ee1dda2ac80717ebf2ce607a
[ "MIT" ]
1
2021-08-21T05:58:29.000Z
2021-08-21T05:58:29.000Z
scripts/evaluate_dataset.py
plroit/qasrl-gs
a37fca4c29091533ee1dda2ac80717ebf2ce607a
[ "MIT" ]
1
2021-08-13T14:57:23.000Z
2021-08-13T14:57:23.000Z
import os from typing import List, Dict, Generator, Tuple import pandas as pd import numpy as np from argparse import ArgumentParser from tqdm import tqdm from evaluate import evaluate, Metrics, match_arguments from common import Question, Role, QUESTION_FIELDS, Argument from decode_encode_answers import NO_RANGE, d...
43.870968
100
0.693382
798236e8a55c05e618543312fdcd1f7af55a1936
11,737
py
Python
dpmModule/jobs/battlemage.py
Jeongwoo-KGI/maplestory_dpm_calc
c474419146e377a05a724e9975a047649b7effa7
[ "MIT" ]
2
2020-12-18T17:02:21.000Z
2021-02-01T04:16:33.000Z
dpmModule/jobs/battlemage.py
Jeongwoo-KGI/maplestory_dpm_calc
c474419146e377a05a724e9975a047649b7effa7
[ "MIT" ]
null
null
null
dpmModule/jobs/battlemage.py
Jeongwoo-KGI/maplestory_dpm_calc
c474419146e377a05a724e9975a047649b7effa7
[ "MIT" ]
null
null
null
from ..kernel import core from ..character import characterKernel as ck from functools import partial from ..status.ability import Ability_tool from ..execution.rules import RuleSet, ConcurrentRunRule from . import globalSkill from .jobclass import resistance from .jobbranch import magicians from math import ceil from ...
50.809524
239
0.673085
798236f5eace7401993cd59ffae2b8e86adf2760
722
py
Python
data/migrations/0014_auto_20181126_2316.py
ve7cxz/ferrystatus
ac52eaf7d8c562bd67e256ced9f4c8a04b232d8f
[ "MIT" ]
1
2019-02-26T15:27:42.000Z
2019-02-26T15:27:42.000Z
data/migrations/0014_auto_20181126_2316.py
ve7cxz/ferrystatus
ac52eaf7d8c562bd67e256ced9f4c8a04b232d8f
[ "MIT" ]
null
null
null
data/migrations/0014_auto_20181126_2316.py
ve7cxz/ferrystatus
ac52eaf7d8c562bd67e256ced9f4c8a04b232d8f
[ "MIT" ]
null
null
null
# Generated by Django 2.1.3 on 2018-11-26 23:16 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('data', '0013_sailing_late_leaving'), ] operations = [ migrations.RenameField( model_name='route', old_name='sailing_...
24.896552
62
0.572022
79823ab578b706e4c18aaab6a31f8387085b4d47
7,192
py
Python
pyaedt/third_party/ironpython/rpyc/lib/__init__.py
beliaev-maksim/pyaedt
c549de1d0c80f3598afc5475817a332bb6d6df57
[ "MIT" ]
null
null
null
pyaedt/third_party/ironpython/rpyc/lib/__init__.py
beliaev-maksim/pyaedt
c549de1d0c80f3598afc5475817a332bb6d6df57
[ "MIT" ]
null
null
null
pyaedt/third_party/ironpython/rpyc/lib/__init__.py
beliaev-maksim/pyaedt
c549de1d0c80f3598afc5475817a332bb6d6df57
[ "MIT" ]
null
null
null
""" A library of various helpers functions and classes """ import inspect import sys import socket import logging import threading import time import random from rpyc.lib.compat import maxint # noqa: F401 class MissingModule(object): __slots__ = ["__name"] def __init__(self, name): self.__name = nam...
32.840183
115
0.615684
79823bcf80b423e0f92339056a0fe254c5152069
10,378
py
Python
chinese_word_segmentation/FreqDict.py
EuphoriaYan/ICCRE
0f5a969a0ab195161d1995540a7464d14836ed99
[ "MIT" ]
2
2020-07-03T12:22:33.000Z
2020-08-03T12:37:35.000Z
chinese_word_segmentation/FreqDict.py
EuphoriaYan/ICCRE
0f5a969a0ab195161d1995540a7464d14836ed99
[ "MIT" ]
null
null
null
chinese_word_segmentation/FreqDict.py
EuphoriaYan/ICCRE
0f5a969a0ab195161d1995540a7464d14836ed99
[ "MIT" ]
null
null
null
import chinese_word_segmentation.utils as utils from collections import defaultdict from chinese_word_segmentation.config import Config debug = Config.debug_FreqDict class Restaurant: def __init__(self): self.unigram_rstrnt = defaultdict(int) self.bigram_rstrnt = {} self.word_tablecnt = ...
36.671378
118
0.576219
79823cac10f0d0e1e00489200b75f841156f90dc
944
py
Python
openpnm/algorithms/_transient_ionic_conduction.py
lixuekai2001/OpenPNM
9026f0fed427d37f4caf1a79e4a7684490d52cf6
[ "MIT" ]
null
null
null
openpnm/algorithms/_transient_ionic_conduction.py
lixuekai2001/OpenPNM
9026f0fed427d37f4caf1a79e4a7684490d52cf6
[ "MIT" ]
null
null
null
openpnm/algorithms/_transient_ionic_conduction.py
lixuekai2001/OpenPNM
9026f0fed427d37f4caf1a79e4a7684490d52cf6
[ "MIT" ]
null
null
null
from copy import deepcopy from openpnm.algorithms import TransientReactiveTransport, IonicConduction from openpnm.utils import logging, Docorator, SettingsAttr logger = logging.getLogger(__name__) docstr = Docorator() __all__ = ['TransientIonicConduction'] class TransientIonicConductionSettings: quantity = 'pore...
33.714286
80
0.742585
79823cef5a077be129ce83ba6f7c24412f4bcf53
2,489
py
Python
aliyun-python-sdk-rds/aliyunsdkrds/request/v20140815/ModifyDBInstanceAutoUpgradeMinorVersionRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-rds/aliyunsdkrds/request/v20140815/ModifyDBInstanceAutoUpgradeMinorVersionRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
1
2020-05-31T14:51:47.000Z
2020-05-31T14:51:47.000Z
aliyun-python-sdk-rds/aliyunsdkrds/request/v20140815/ModifyDBInstanceAutoUpgradeMinorVersionRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
37.149254
97
0.785054