hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
d9e182705452fe461a2142c0afa4786d47f19c46
2,131
py
Python
dags/treinos_igti/treino03.py
rafaelols/airflow
8e4af5fb576a9568af476c0607819649b724adea
[ "Apache-2.0" ]
null
null
null
dags/treinos_igti/treino03.py
rafaelols/airflow
8e4af5fb576a9568af476c0607819649b724adea
[ "Apache-2.0" ]
null
null
null
dags/treinos_igti/treino03.py
rafaelols/airflow
8e4af5fb576a9568af476c0607819649b724adea
[ "Apache-2.0" ]
null
null
null
from airflow import DAG from airflow.operators.bash_operator import BashOperator from airflow.operators.python_operator import PythonOperator, BranchPythonOperator from datetime import datetime, timedelta import pandas as pd import random # Default args definition default_args = { 'owner': 'Rafael', 'depends_o...
25.987805
147
0.697325
0
0
0
0
0
0
0
0
737
0.345847
d9e359c85a06bdc44937457ee401aaa8bebc7f50
2,560
py
Python
tclCommands/TclCommandListSys.py
DannyPol/flatcam
25a8634d0658e98b7fae31a095f8bef40c1b3067
[ "MIT" ]
1
2022-02-11T06:19:34.000Z
2022-02-11T06:19:34.000Z
tclCommands/TclCommandListSys.py
MRemy2/FlatCam
d4f941335ca8a8d5351aab23b396f99da06a9029
[ "MIT" ]
null
null
null
tclCommands/TclCommandListSys.py
MRemy2/FlatCam
d4f941335ca8a8d5351aab23b396f99da06a9029
[ "MIT" ]
null
null
null
# ########################################################## # FlatCAM: 2D Post-processing for Manufacturing # # File Author: Marius Adrian Stanciu (c) # # Date: 8/17/2019 # # MIT Licence # # #############...
37.647059
120
0.55
2,153
0.841016
0
0
0
0
0
0
1,682
0.657031
d9e3f1d0e6ad9650ceb745dc1536525917eaef63
2,694
py
Python
ogs5py/fileclasses/mcp/core.py
MuellerSeb/ogs5py
752e7bd2298fbd476406d168f6b7d1a85863dccd
[ "MIT" ]
3
2018-05-27T15:39:07.000Z
2018-10-29T17:02:11.000Z
ogs5py/fileclasses/mcp/core.py
MuellerSeb/ogs5py
752e7bd2298fbd476406d168f6b7d1a85863dccd
[ "MIT" ]
1
2018-11-12T11:32:12.000Z
2018-11-12T13:07:48.000Z
ogs5py/fileclasses/mcp/core.py
MuellerSeb/ogs5py
752e7bd2298fbd476406d168f6b7d1a85863dccd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Class for the ogs COMPONENT_PROPERTIES file.""" from ogs5py.fileclasses.base import BlockFile class MCP(BlockFile): """ Class for the ogs COMPONENT_PROPERTIES file. Parameters ---------- task_root : str, optional Path to the destiny model folder. ...
25.415094
78
0.485523
2,564
0.951745
0
0
0
0
0
0
1,980
0.734967
d9e4389915d24f650fdb65abd21f0125dba8ab5c
175,651
py
Python
keystone/tests/unit/test_v3_assignment.py
crowdy/keystone
1e7ecca881a51144d61ae8026e1a77d6669997e2
[ "Apache-2.0" ]
null
null
null
keystone/tests/unit/test_v3_assignment.py
crowdy/keystone
1e7ecca881a51144d61ae8026e1a77d6669997e2
[ "Apache-2.0" ]
4
2021-10-05T12:01:08.000Z
2021-10-10T07:06:33.000Z
keystone/tests/unit/test_v3_assignment.py
crowdy/keystone
1e7ecca881a51144d61ae8026e1a77d6669997e2
[ "Apache-2.0" ]
null
null
null
# 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 # distributed under t...
43.434965
79
0.628166
174,001
0.990606
0
0
4,973
0.028312
0
0
52,826
0.300744
d9e48585d735333916bf5e8b10a68c72e4541093
248,866
py
Python
pysnmp-with-texts/XXX-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/XXX-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/XXX-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module XXX-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/XXX-MIB # Produced by pysmi-0.3.4 at Wed May 1 15:44:42 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)...
141.884835
10,350
0.750826
0
0
0
0
0
0
0
0
55,977
0.224928
d9e551f94d290cc9b470d1fddfc0e91666dab7ba
444
py
Python
setup.py
zhanghang1989/notedown
b0fa1eac88d1cd7fa2261d6c454f82669e6f552b
[ "BSD-2-Clause" ]
null
null
null
setup.py
zhanghang1989/notedown
b0fa1eac88d1cd7fa2261d6c454f82669e6f552b
[ "BSD-2-Clause" ]
null
null
null
setup.py
zhanghang1989/notedown
b0fa1eac88d1cd7fa2261d6c454f82669e6f552b
[ "BSD-2-Clause" ]
null
null
null
from setuptools import setup # create __version__ exec(open('./_version.py').read()) setup( name="notedown", version=__version__, description="Convert markdown to IPython notebook.", author="Aaron O'Leary", author_email='dev@aaren.me', url='http://github.com/aaren/notedown', install_requir...
22.2
56
0.628378
0
0
0
0
0
0
0
0
198
0.445946
d9e5c18f6a37dd4a96dd21f7ddefb31b197848dd
2,853
py
Python
multithreaded_webcrawler.py
the-muses-ltd/Multithreaded-Webcrawler-Cassandra-
eee68faf3c6ecb548edd0e96ce445dcd366fb735
[ "MIT" ]
null
null
null
multithreaded_webcrawler.py
the-muses-ltd/Multithreaded-Webcrawler-Cassandra-
eee68faf3c6ecb548edd0e96ce445dcd366fb735
[ "MIT" ]
null
null
null
multithreaded_webcrawler.py
the-muses-ltd/Multithreaded-Webcrawler-Cassandra-
eee68faf3c6ecb548edd0e96ce445dcd366fb735
[ "MIT" ]
null
null
null
# This is a reusable webcraawler architecture that can be adapted to scrape any webstie. # RESULTS: # Roughly 24 seconds per thousand courses scraped for ThreadPoolExecutor vs 63s for unthreaded script. # This is a very basic implementation of multithreading in order to show the proof of concept, but is a good base to...
42.58209
164
0.667368
0
0
0
0
0
0
0
0
1,311
0.459516
d9e62b20786a73ca86ccde01bde160623cc32657
3,710
py
Python
genyrator/entities/Template.py
jumblesale/genyrator
c4429f689e92e8447b0b944e7d9b434f99cae51d
[ "MIT" ]
1
2020-07-01T16:54:39.000Z
2020-07-01T16:54:39.000Z
genyrator/entities/Template.py
jumblesale/genyrator
c4429f689e92e8447b0b944e7d9b434f99cae51d
[ "MIT" ]
10
2018-11-16T15:04:21.000Z
2021-06-01T22:27:38.000Z
genyrator/entities/Template.py
jumblesale/genyrator
c4429f689e92e8447b0b944e7d9b434f99cae51d
[ "MIT" ]
2
2018-08-08T10:42:35.000Z
2019-07-25T11:56:06.000Z
from typing import List, Optional, NewType, Tuple, NamedTuple, Type import attr from jinja2 import Template as JinjaTemplate, StrictUndefined from genyrator.entities.Entity import Entity from genyrator.path import create_relative_path OutPath = NewType('OutPath', Tuple[List[str], str]) Import = NamedTuple('Import', ...
24.090909
73
0.616712
2,560
0.690027
0
0
2,696
0.726685
0
0
68
0.018329
d9e78859b4482aaef1db18210493138799d91b2f
1,969
py
Python
MIDI Remote Scripts/Push2/mode_collector.py
aarkwright/ableton_devices
fe5df3bbd64ccbc136bba722ba1e131a02969798
[ "MIT" ]
null
null
null
MIDI Remote Scripts/Push2/mode_collector.py
aarkwright/ableton_devices
fe5df3bbd64ccbc136bba722ba1e131a02969798
[ "MIT" ]
null
null
null
MIDI Remote Scripts/Push2/mode_collector.py
aarkwright/ableton_devices
fe5df3bbd64ccbc136bba722ba1e131a02969798
[ "MIT" ]
null
null
null
# uncompyle6 version 3.3.5 # Python bytecode 2.7 (62211) # Decompiled from: Python 3.7.3 (default, Apr 24 2019, 15:29:51) [MSC v.1915 64 bit (AMD64)] # Embedded file name: c:\Jenkins\live\output\win_64_static\Release\python-bundle\MIDI Remote Scripts\Push2\mode_collector.py # Compiled at: 2018-11-30 15:48:11 from __fut...
37.865385
124
0.742509
1,515
0.769426
0
0
832
0.42255
0
0
369
0.187405
d9e7a46d631c672aae25d04f18b75876427b787e
817
py
Python
src/topicModel.py
daidaotong/SingleView
db3249ca5afba97f750495cccbc185de88bf2287
[ "MIT" ]
null
null
null
src/topicModel.py
daidaotong/SingleView
db3249ca5afba97f750495cccbc185de88bf2287
[ "MIT" ]
null
null
null
src/topicModel.py
daidaotong/SingleView
db3249ca5afba97f750495cccbc185de88bf2287
[ "MIT" ]
null
null
null
from gensim import corpora, models, similarities, matutils,utils from gensim.models import KeyedVectors import numpy as np #Word2vec Experiment testString = ['PAST_MEDICAL_HISTORY','PAST_SURGICAL_HISTORY','PHYSICAL_EXAMINATION'] ''' word_vectors = KeyedVectors.load_word2vec_format('~/Downloads/GoogleNews-vectors-negat...
35.521739
111
0.71481
0
0
0
0
0
0
0
0
615
0.752754
d9e8867f9d8fa5dbea3f62a0b298eac5f535d37a
9,499
py
Python
src/bots/test/test_inputs.py
drewbitt/lightnovel-crawler
fa9546ad9dcff49c75296b0b8772f6578689adcc
[ "Apache-2.0" ]
1
2019-03-10T13:02:23.000Z
2019-03-10T13:02:23.000Z
src/bots/test/test_inputs.py
drewbitt/lightnovel-crawler
fa9546ad9dcff49c75296b0b8772f6578689adcc
[ "Apache-2.0" ]
null
null
null
src/bots/test/test_inputs.py
drewbitt/lightnovel-crawler
fa9546ad9dcff49c75296b0b8772f6578689adcc
[ "Apache-2.0" ]
null
null
null
from base64 import decodestring as b64decode allowed_failures = [ 'https://ranobelib.me/', 'https://www.aixdzs.com/', 'https://webnovelindonesia.com/', b64decode("aHR0cHM6Ly9jb21yYWRlbWFvLmNvbS8=".encode()).decode() ] test_user_inputs = { b64decode("aHR0cHM6Ly9jb21yYWRlbWFvLmNvbS8=".encode()).deco...
34.922794
117
0.596694
0
0
0
0
0
0
0
0
7,146
0.75229
d9ea76a8227b5405cef7b2e6991bcba1911971f4
5,819
py
Python
wikisourcesort.py
ostropunk/wikisourcesort
3af2d086df0818a75b3e6c34550e2cc1382911a5
[ "MIT" ]
null
null
null
wikisourcesort.py
ostropunk/wikisourcesort
3af2d086df0818a75b3e6c34550e2cc1382911a5
[ "MIT" ]
null
null
null
wikisourcesort.py
ostropunk/wikisourcesort
3af2d086df0818a75b3e6c34550e2cc1382911a5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[1]: import pandas as pd import re # In[2]: def get_excel_dict(excelfile, key=None, index_col=0, header=0): dataframe = pd.read_excel(excelfile, index_col=index_col, header=header) dictionary = dataframe.to_dict() if key is None: return dictionary ...
23.75102
104
0.598385
0
0
0
0
0
0
0
0
2,007
0.344727
d9ea7ffbac1c307ae6a48a478a94b12a44b81de1
3,325
py
Python
backend/radar/engine/body_objects.py
me-anton/radar-app
cc7d1e876e0ce9b6173b6d7b484d5553e247166e
[ "MIT" ]
null
null
null
backend/radar/engine/body_objects.py
me-anton/radar-app
cc7d1e876e0ce9b6173b6d7b484d5553e247166e
[ "MIT" ]
null
null
null
backend/radar/engine/body_objects.py
me-anton/radar-app
cc7d1e876e0ce9b6173b6d7b484d5553e247166e
[ "MIT" ]
null
null
null
import logging import json from dataclasses import dataclass from redis import Redis from typing import Iterable, Tuple, List, Iterator, Union, Dict from typing_extensions import TypedDict from backend import settings from caching.scripts import RedisScriptsPool from share.metaclasses import Singleton from radar.model...
33.25
76
0.657143
2,719
0.817744
0
0
878
0.26406
0
0
533
0.160301
d9eb0ee449a6b916e969b15c42a07550484f36ad
959
py
Python
djangocms_baseplugins/spacer/cms_plugins.py
benzkji/djangocms-baseplugins
7f041a030ed93dcdec70e4ca777b841846b8f2f2
[ "MIT" ]
2
2019-04-14T01:31:22.000Z
2020-03-05T13:06:57.000Z
djangocms_baseplugins/spacer/cms_plugins.py
benzkji/djangocms-baseplugins
7f041a030ed93dcdec70e4ca777b841846b8f2f2
[ "MIT" ]
32
2017-04-04T09:28:06.000Z
2021-08-18T16:23:02.000Z
djangocms_baseplugins/spacer/cms_plugins.py
bnzk/djangocms-baseplugins
7f041a030ed93dcdec70e4ca777b841846b8f2f2
[ "MIT" ]
null
null
null
# coding: utf-8 from cms.plugin_base import CMSPluginBase from cms.plugin_pool import plugin_pool from django import forms from django.utils.translation import ugettext_lazy as _ from djangocms_baseplugins.baseplugin import defaults from djangocms_baseplugins.baseplugin.cms_plugins import BasePluginMixin from djangocm...
29.96875
100
0.788321
455
0.474453
0
0
0
0
0
0
73
0.076121
d9ec253823566d98d214c4860b8c8d8ac8c80515
2,188
py
Python
python_utilities/plotting/util.py
sdaxen/python_utilities
7b9d6cc21bfc31be83629d2ac02b27e886ebc2bb
[ "MIT" ]
2
2020-04-13T20:17:36.000Z
2020-05-12T01:13:12.000Z
python_utilities/plotting/util.py
sethaxen/python_utilities
7b9d6cc21bfc31be83629d2ac02b27e886ebc2bb
[ "MIT" ]
5
2015-10-20T22:57:51.000Z
2017-09-07T01:10:23.000Z
python_utilities/plotting/util.py
sethaxen/python_utilities
7b9d6cc21bfc31be83629d2ac02b27e886ebc2bb
[ "MIT" ]
3
2015-08-17T17:55:41.000Z
2018-09-19T13:56:42.000Z
"""Utility functions for plotting. Author: Seth Axen E-mail: seth.axen@gmail.com""" from collections import deque import numpy as np def rgb_to_hsv(rgb): """Convert RGB colors to HSV colors.""" r, g, b = tuple(map(float, rgb)) if any([r > 1, g > 1, b > 1]): r /= 255. g /= 255. b ...
24.863636
74
0.472121
0
0
0
0
0
0
0
0
372
0.170018
d9ec2cc7a1a6ba6f4583fe5b1a6bc53ffc63f837
618
py
Python
tests/test_process.py
confluentinc/utils-core
6001b4c61f7d923d273a23dc5a1580e0fa277d2c
[ "MIT" ]
null
null
null
tests/test_process.py
confluentinc/utils-core
6001b4c61f7d923d273a23dc5a1580e0fa277d2c
[ "MIT" ]
null
null
null
tests/test_process.py
confluentinc/utils-core
6001b4c61f7d923d273a23dc5a1580e0fa277d2c
[ "MIT" ]
1
2021-01-14T11:33:35.000Z
2021-01-14T11:33:35.000Z
import pytest from utils.process import run, silent_run, RunError from utils.fs import in_temp_dir def test_run(capsys): with in_temp_dir(): assert run('echo hello > hello.txt; echo world >> hello.txt', shell=True) out = run('ls', return_output=True) assert out == 'hello.txt\n' ...
24.72
81
0.600324
0
0
0
0
0
0
0
0
119
0.192557
d9ec7fb034397cf9a445f613d02c81768a1461eb
3,410
py
Python
bokeh/client/util.py
areaweb/bokeh
9d131e45d626a912e85aee5b2647139c194dc893
[ "BSD-3-Clause" ]
1
2021-01-31T22:13:13.000Z
2021-01-31T22:13:13.000Z
bokeh/client/util.py
adsbxchange/bokeh
47aa8f8420944c47e876c1c36be182d257c14b87
[ "BSD-3-Clause" ]
1
2017-01-12T00:37:38.000Z
2017-01-12T00:37:38.000Z
bokeh/client/util.py
adsbxchange/bokeh
47aa8f8420944c47e876c1c36be182d257c14b87
[ "BSD-3-Clause" ]
null
null
null
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2017, Anaconda, Inc. All rights reserved. # # Powered by the Bokeh Development Team. # # The full license is in the file LICENSE.txt, distributed with this software. #---------------------------------------------------...
31.574074
82
0.389443
0
0
0
0
1,526
0.447507
0
0
2,521
0.739296
d9ed79fef6ca74a4e312f154a876ffa2123179f7
16,276
py
Python
slim/nets/inception_resnet_v2.py
PPTMiao/mtl-ssl
b61449c3f902414304657de6ec217077e441a6b9
[ "Apache-2.0" ]
90
2019-06-12T06:11:39.000Z
2022-03-21T22:28:38.000Z
slim/nets/inception_resnet_v2.py
PPTMiao/mtl-ssl
b61449c3f902414304657de6ec217077e441a6b9
[ "Apache-2.0" ]
3
2020-03-24T17:01:25.000Z
2021-02-02T22:00:11.000Z
slim/nets/inception_resnet_v2.py
PPTMiao/mtl-ssl
b61449c3f902414304657de6ec217077e441a6b9
[ "Apache-2.0" ]
17
2019-06-15T08:49:46.000Z
2022-01-24T06:46:23.000Z
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
45.085873
80
0.616552
0
0
0
0
0
0
0
0
5,496
0.337675
d9ee27c57dbf76a3c2165139cae647ead0e58c46
6,479
py
Python
tests/boilerplate_client/boilerplate_cmd.py
LedgerHQ/ledger-app-neo3
48e1e0dec3e4801fc3ab1b07c4fe4ed86735a642
[ "MIT" ]
null
null
null
tests/boilerplate_client/boilerplate_cmd.py
LedgerHQ/ledger-app-neo3
48e1e0dec3e4801fc3ab1b07c4fe4ed86735a642
[ "MIT" ]
5
2021-09-13T16:41:52.000Z
2022-01-12T16:00:21.000Z
tests/boilerplate_client/boilerplate_cmd.py
isabella232/app-neo3
c48ec5032143fe606d694372c2cfc02082b2ce03
[ "MIT" ]
3
2021-09-01T11:40:09.000Z
2022-03-06T06:45:13.000Z
import struct from typing import Tuple from ledgercomm import Transport from boilerplate_client.boilerplate_cmd_builder import BoilerplateCommandBuilder, InsType from boilerplate_client.button import Button from boilerplate_client.exception import DeviceException from boilerplate_client.transaction import Transaction...
34.462766
131
0.533416
6,122
0.944899
0
0
0
0
0
0
748
0.11545
d9efa4ffda8cacd286187e29ce110d292c7a1e64
946
py
Python
clpy/sparse/util.py
fixstars/clpy
693485f85397cc110fa45803c36c30c24c297df0
[ "BSD-3-Clause" ]
142
2018-06-07T07:43:10.000Z
2021-10-30T21:06:32.000Z
clpy/sparse/util.py
fixstars/clpy
693485f85397cc110fa45803c36c30c24c297df0
[ "BSD-3-Clause" ]
282
2018-06-07T08:35:03.000Z
2021-03-31T03:14:32.000Z
clpy/sparse/util.py
fixstars/clpy
693485f85397cc110fa45803c36c30c24c297df0
[ "BSD-3-Clause" ]
19
2018-06-19T11:07:53.000Z
2021-05-13T20:57:04.000Z
import clpy import clpy.sparse.base _preamble_atomic_add = ''' #if __CUDA_ARCH__ < 600 __device__ double atomicAdd(double* address, double val) { unsigned long long* address_as_ull = (unsigned long long*)address; unsigned long long old = *address_as_ull, assumed; ...
24.25641
76
0.60148
0
0
0
0
0
0
0
0
524
0.553911
d9efc68d74f0ff6411265258b8ee1094b0fa820e
1,316
py
Python
test/test_cartesian.py
hwazni/discopy
812a4c77de4c766591bad74306720b518cdc54fc
[ "BSD-3-Clause" ]
205
2019-12-29T09:45:09.000Z
2022-03-24T09:29:13.000Z
test/test_cartesian.py
hwazni/discopy
812a4c77de4c766591bad74306720b518cdc54fc
[ "BSD-3-Clause" ]
61
2019-12-11T10:46:38.000Z
2022-03-28T17:10:52.000Z
test/test_cartesian.py
hwazni/discopy
812a4c77de4c766591bad74306720b518cdc54fc
[ "BSD-3-Clause" ]
46
2020-04-08T23:33:31.000Z
2022-03-18T21:58:35.000Z
from pytest import raises from discopy.cartesian import * def test_Box_repr(): f = Box('f', 1, 2, lambda x: (x, x)) assert "Box('f', 1, 2" in repr(f) def test_Function_str(): f = Function(2, 1, lambda x, y: x + y) assert 'Function(dom=2, cod=1,' in str(f) def test_Function_call(): f = Swap(2, ...
25.803922
78
0.595745
0
0
0
0
0
0
0
0
42
0.031915
d9f04eac1f39d4c14950ae0caf3dff21f18defd4
84,990
py
Python
source/browseMode.py
neal-hub/nvda-test
4c3a67b2eafa9721c5de3f671d10e60ab2d43865
[ "bzip2-1.0.6" ]
1
2022-02-20T23:10:39.000Z
2022-02-20T23:10:39.000Z
source/browseMode.py
neal-hub/nvda-test
4c3a67b2eafa9721c5de3f671d10e60ab2d43865
[ "bzip2-1.0.6" ]
null
null
null
source/browseMode.py
neal-hub/nvda-test
4c3a67b2eafa9721c5de3f671d10e60ab2d43865
[ "bzip2-1.0.6" ]
null
null
null
# A part of NonVisual Desktop Access (NVDA) # Copyright (C) 2007-2021 NV Access Limited, Babbage B.V., James Teh, Leonard de Ruijter, # Thomas Stivers, Accessolutions, Julien Cochuyt # This file is covered by the GNU General Public License. # See the file COPYING for more details. from typing import Any, Callabl...
44.265625
229
0.740899
65,512
0.77082
2,383
0.028039
3,804
0.044758
0
0
44,423
0.522685
d9f0ba759404ab21f8b93c6f40fde8e030bbf8a1
12,904
py
Python
qiskit_metal/qlibrary/qubits/Transmon_Interdigitated.py
PatrickSJacobs/qiskit-metal
9628369c4b880d1e13199e559f898c5e0b96eecb
[ "Apache-2.0" ]
null
null
null
qiskit_metal/qlibrary/qubits/Transmon_Interdigitated.py
PatrickSJacobs/qiskit-metal
9628369c4b880d1e13199e559f898c5e0b96eecb
[ "Apache-2.0" ]
null
null
null
qiskit_metal/qlibrary/qubits/Transmon_Interdigitated.py
PatrickSJacobs/qiskit-metal
9628369c4b880d1e13199e559f898c5e0b96eecb
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2017, 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any...
45.43662
93
0.577805
12,138
0.940639
0
0
0
0
0
0
5,476
0.424365
d9f1f15178cb9e26d9b4f91695b333a07eaa59d6
74,778
py
Python
sqlova/model/nl2sql/wikisql_models.py
guotong1988/Rule-SQL
e826c0d659c8b35a72b64aa2b50d4d943fdd70f1
[ "Apache-2.0" ]
15
2019-07-25T12:13:31.000Z
2020-10-17T13:42:58.000Z
sqlova/model/nl2sql/wikisql_models.py
guotong1988/Rule-SQL
e826c0d659c8b35a72b64aa2b50d4d943fdd70f1
[ "Apache-2.0" ]
1
2020-01-07T05:49:15.000Z
2020-04-22T01:22:00.000Z
sqlova/model/nl2sql/wikisql_models.py
guotong1988/Rule-SQL
e826c0d659c8b35a72b64aa2b50d4d943fdd70f1
[ "Apache-2.0" ]
3
2019-10-01T09:14:35.000Z
2020-07-18T08:39:48.000Z
# Copyright 2019-present NAVER Corp. # Apache License v2.0 # Wonseok Hwang import os, json from copy import deepcopy from matplotlib.pylab import * import torch import torch.nn as nn import torch.nn.functional as F device = torch.device("cuda" if torch.cuda.is_available() else "cpu") from sqlova.utils.utils impor...
39.419083
161
0.555163
70,692
0.944979
0
0
0
0
0
0
13,762
0.183964
d9f2ed71da13f5b57b61c1c386731f8180c40992
667
py
Python
www/app.py
leeeGreat/xlw_study_python
03d8eb59f6826b4689d6598ede6393ecbb5058fb
[ "MIT" ]
1
2018-03-12T12:29:21.000Z
2018-03-12T12:29:21.000Z
www/app.py
leeeGreat/xlw_study_python
03d8eb59f6826b4689d6598ede6393ecbb5058fb
[ "MIT" ]
null
null
null
www/app.py
leeeGreat/xlw_study_python
03d8eb59f6826b4689d6598ede6393ecbb5058fb
[ "MIT" ]
1
2018-04-13T13:26:50.000Z
2018-04-13T13:26:50.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = 'Michael Liao' ''' async web application. ''' import logging; logging.basicConfig(level=logging.INFO) import asyncio, os, json, time from datetime import datetime from aiohttp import web def index(request): return web.Response(body=b'<h1>Awesome</h1>...
22.233333
73
0.698651
0
0
0
0
0
0
254
0.38081
171
0.256372
d9f306cc03073671d285f885169a3fe6dd743eef
684
py
Python
examples/Testing/flopy3_plotdata.py
ritchie46/flopy
8e7284dcb3aaf5c12293d442248c2c2d9959f835
[ "CC0-1.0", "BSD-3-Clause" ]
1
2021-03-17T09:15:54.000Z
2021-03-17T09:15:54.000Z
examples/Testing/flopy3_plotdata.py
ritchie46/flopy
8e7284dcb3aaf5c12293d442248c2c2d9959f835
[ "CC0-1.0", "BSD-3-Clause" ]
null
null
null
examples/Testing/flopy3_plotdata.py
ritchie46/flopy
8e7284dcb3aaf5c12293d442248c2c2d9959f835
[ "CC0-1.0", "BSD-3-Clause" ]
1
2021-08-05T19:11:27.000Z
2021-08-05T19:11:27.000Z
from __future__ import print_function import os import numpy as np import matplotlib.pyplot as plt import flopy fb = flopy.modflow.Modflow.load('freyberg', version='mf2005', model_ws=os.path.join('..', 'data', 'freyberg'), verbose=True) dis = fb.dis top = fb.dis.top fb.dis.top.plot(grid=True, colorbar=True) fb.d...
20.727273
124
0.71345
0
0
0
0
0
0
0
0
79
0.115497
d9f32d2b9e677d6893c7269bf23bcedaa4e7f68a
363
py
Python
chia/components/sample_transformers/__init__.py
cabrust/chia
3eaf815b261dc8a85d64fd698e0079515ec0dde9
[ "BSD-3-Clause" ]
null
null
null
chia/components/sample_transformers/__init__.py
cabrust/chia
3eaf815b261dc8a85d64fd698e0079515ec0dde9
[ "BSD-3-Clause" ]
2
2021-10-06T13:19:09.000Z
2021-10-20T17:32:36.000Z
chia/components/sample_transformers/__init__.py
cabrust/chia
3eaf815b261dc8a85d64fd698e0079515ec0dde9
[ "BSD-3-Clause" ]
null
null
null
from chia import components from chia.components.sample_transformers import identity from chia.components.sample_transformers.sample_transformer import SampleTransformer class SampleTransformerFactory(components.Factory): name_to_class_mapping = {"identity": identity.IdentitySampleTransformer} __all__ = ["Sampl...
33
84
0.85124
128
0.352617
0
0
0
0
0
0
55
0.151515
d9f3cb72d610ec30e4ecf05d60ba2025dc849112
416
py
Python
3/3.6/add_guest.py
singi2016cn/python-scaffold
274e508d1919da67e599aa73be139800c043bce4
[ "MIT" ]
null
null
null
3/3.6/add_guest.py
singi2016cn/python-scaffold
274e508d1919da67e599aa73be139800c043bce4
[ "MIT" ]
null
null
null
3/3.6/add_guest.py
singi2016cn/python-scaffold
274e508d1919da67e599aa73be139800c043bce4
[ "MIT" ]
null
null
null
# 添加嘉宾 names = [] names.append('singi') names.append('lily') names.append('sam') print('I find a big dining-table,I can invite more friends.') names.insert(0, 'xiaoling') names.insert(2, 'fangsi') names.append('zhangqing') greets = ',would you like to have dinner with me ?' print(names[0]+greets) print(names[1]+gre...
20.8
61
0.711538
0
0
0
0
0
0
0
0
157
0.370283
d9f53b3bd4af7f2d655423b3e5a97d903f5c6dac
2,025
py
Python
apps/pypi/tests/test_slurper.py
cartwheelweb/packaginator
f6ce11da22154bce9cba42e896989bdb0fd5e865
[ "MIT" ]
1
2015-11-08T11:31:09.000Z
2015-11-08T11:31:09.000Z
apps/pypi/tests/test_slurper.py
cartwheelweb/packaginator
f6ce11da22154bce9cba42e896989bdb0fd5e865
[ "MIT" ]
null
null
null
apps/pypi/tests/test_slurper.py
cartwheelweb/packaginator
f6ce11da22154bce9cba42e896989bdb0fd5e865
[ "MIT" ]
null
null
null
from django.template.defaultfilters import slugify from django.test import TestCase from package.models import Package, Version from pypi.slurper import Slurper TEST_PACKAGE_NAME = 'Django' TEST_PACKAGE_VERSION = '1.3' TEST_PACKAGE_REPO_NAME = 'django-uni-form' class SlurpAllTests(TestCase): def tes...
39.705882
89
0.718025
1,760
0.869136
0
0
0
0
0
0
113
0.055802
d9f57949a15383ed2a070813678af904fe2e2df0
1,145
py
Python
azure-mgmt-logic/azure/mgmt/logic/models/recurrence_schedule_occurrence.py
azuresdkci1x/azure-sdk-for-python-1722
e08fa6606543ce0f35b93133dbb78490f8e6bcc9
[ "MIT" ]
1
2017-10-29T15:14:35.000Z
2017-10-29T15:14:35.000Z
azure-mgmt-logic/azure/mgmt/logic/models/recurrence_schedule_occurrence.py
azuresdkci1x/azure-sdk-for-python-1722
e08fa6606543ce0f35b93133dbb78490f8e6bcc9
[ "MIT" ]
null
null
null
azure-mgmt-logic/azure/mgmt/logic/models/recurrence_schedule_occurrence.py
azuresdkci1x/azure-sdk-for-python-1722
e08fa6606543ce0f35b93133dbb78490f8e6bcc9
[ "MIT" ]
null
null
null
# 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 ...
34.69697
76
0.590393
629
0.549345
0
0
0
0
0
0
862
0.752838
d9f6bdae288edaa527af57b654eafa00cfa5047b
11,757
py
Python
pandas/core/apply.py
AakankshaAshok/pandas
6498bc1e8a12003640139db4794bd5cd2462c116
[ "BSD-3-Clause" ]
null
null
null
pandas/core/apply.py
AakankshaAshok/pandas
6498bc1e8a12003640139db4794bd5cd2462c116
[ "BSD-3-Clause" ]
null
null
null
pandas/core/apply.py
AakankshaAshok/pandas
6498bc1e8a12003640139db4794bd5cd2462c116
[ "BSD-3-Clause" ]
null
null
null
import inspect import numpy as np from pandas._libs import reduction as libreduction from pandas.util._decorators import cache_readonly from pandas.core.dtypes.common import ( is_dict_like, is_extension_array_dtype, is_list_like, is_sequence, ) from pandas.core.dtypes.generic import ABCSeries def f...
28.745721
88
0.575572
10,893
0.926512
0
0
972
0.082674
0
0
2,178
0.185251
d9f7ffc0611459c276e6f9ae99c70b7e8ba1a1c3
707
py
Python
tests/test_model/test_recognizer/test_shufflenetv1.py
YinAoXiong/ZCls
8aeea3640f8456937db35d043e37cf2c03ac9017
[ "Apache-2.0" ]
null
null
null
tests/test_model/test_recognizer/test_shufflenetv1.py
YinAoXiong/ZCls
8aeea3640f8456937db35d043e37cf2c03ac9017
[ "Apache-2.0" ]
null
null
null
tests/test_model/test_recognizer/test_shufflenetv1.py
YinAoXiong/ZCls
8aeea3640f8456937db35d043e37cf2c03ac9017
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ @date: 2021/5/16 下午10:22 @file: test_shufflenetv1.py @author: zj @description: """ import torch from zcls.config import cfg from zcls.config.key_word import KEY_OUTPUT from zcls.model.recognizers.build import build_recognizer def test_data(model): data = torch.randn(1, 3, 224, 224)...
19.638889
98
0.711457
0
0
0
0
0
0
0
0
202
0.284107
d9f8dcb19533a96faaad26bde1b0790a5c363c97
142,263
py
Python
autotest/gcore/vsis3.py
jpapadakis/gdal
f07aa15fd65af36b04291303cc6834c87f662814
[ "MIT" ]
18
2021-01-27T00:07:35.000Z
2022-03-25T22:20:13.000Z
autotest/gcore/vsis3.py
jpapadakis/gdal
f07aa15fd65af36b04291303cc6834c87f662814
[ "MIT" ]
1
2015-04-14T00:19:57.000Z
2015-04-14T00:29:29.000Z
autotest/gcore/vsis3.py
jpapadakis/gdal
f07aa15fd65af36b04291303cc6834c87f662814
[ "MIT" ]
1
2021-11-21T02:33:51.000Z
2021-11-21T02:33:51.000Z
#!/usr/bin/env pytest ############################################################################### # $Id$ # # Project: GDAL/OGR Test Suite # Purpose: Test /vsis3 # Author: Even Rouault <even dot rouault at spatialys dot com> # ############################################################################### # Copy...
40.974366
335
0.610749
3,765
0.026465
0
0
0
0
0
0
62,980
0.442701
d9f92ab910680bac296e7b003e06e2747df83ea4
882
py
Python
day06/part1.py
bugra-yilmaz/adventofcode2021
136cb1d4fba42af4eea934a73714c93710c8741e
[ "MIT" ]
null
null
null
day06/part1.py
bugra-yilmaz/adventofcode2021
136cb1d4fba42af4eea934a73714c93710c8741e
[ "MIT" ]
null
null
null
day06/part1.py
bugra-yilmaz/adventofcode2021
136cb1d4fba42af4eea934a73714c93710c8741e
[ "MIT" ]
null
null
null
import os.path from collections import Counter import pytest INPUT_TXT = os.path.join(os.path.dirname(__file__), 'input.txt') def compute(s: str) -> int: lines = s.splitlines() numbers = Counter(int(f) for f in lines[0].split(",")) for d in range(80): numbers2 = Counter({8: numbers[0], 6: numbe...
18.765957
64
0.580499
0
0
0
0
185
0.209751
0
0
64
0.072562
d9f9595b5ef66170be57096ea8261b3da13883ac
132
py
Python
functional_tests.py
gustavomazevedo/tbackup-client
eb2fdf75eff7abf17c9bce12920de793ba760f61
[ "MIT" ]
null
null
null
functional_tests.py
gustavomazevedo/tbackup-client
eb2fdf75eff7abf17c9bce12920de793ba760f61
[ "MIT" ]
null
null
null
functional_tests.py
gustavomazevedo/tbackup-client
eb2fdf75eff7abf17c9bce12920de793ba760f61
[ "MIT" ]
null
null
null
from selenium import webdriver browser = webdriver.Firefox() browser.get('http://localhost:8000') assert 'Django' in browser.title
22
36
0.780303
0
0
0
0
0
0
0
0
31
0.234848
d9f9cd4e7a0b73e79eb71d2bdbfa755d69a9cc9d
597
py
Python
examples/first_char_last_column.py
clarkfitzg/sta141c
129704ba0952a4b80f9b093dcfa49f49f37b052d
[ "MIT" ]
24
2019-01-08T20:10:11.000Z
2021-11-26T12:18:58.000Z
examples/first_char_last_column.py
timilchene/sta141c-winter19
129704ba0952a4b80f9b093dcfa49f49f37b052d
[ "MIT" ]
1
2017-06-25T05:35:24.000Z
2017-06-25T05:35:24.000Z
examples/first_char_last_column.py
timilchene/sta141c-winter19
129704ba0952a4b80f9b093dcfa49f49f37b052d
[ "MIT" ]
22
2019-01-08T20:02:15.000Z
2021-12-16T23:27:56.000Z
#!/usr/bin/env python3 """ For the last column, print only the first character. Usage: $ printf "100,200\n0,\n" | python3 first_char_last_column.py Should print "100,2\n0," """ import csv from sys import stdin, stdout def main(): reader = csv.reader(stdin) writer = csv.writer(stdout) for row in re...
19.258065
64
0.606365
0
0
0
0
0
0
0
0
277
0.463987
d9fb744315858b3e553e097f0866c6de49262adf
1,996
py
Python
env_ci.py
reloadware/stickybeak
8ac52a80849a3098fb6b2f47115970a734a73c14
[ "Apache-2.0" ]
null
null
null
env_ci.py
reloadware/stickybeak
8ac52a80849a3098fb6b2f47115970a734a73c14
[ "Apache-2.0" ]
null
null
null
env_ci.py
reloadware/stickybeak
8ac52a80849a3098fb6b2f47115970a734a73c14
[ "Apache-2.0" ]
1
2022-01-01T15:14:42.000Z
2022-01-01T15:14:42.000Z
from pathlib import Path root = Path(__file__).parent.absolute() import envo envo.add_source_roots([root]) from pathlib import Path from typing import Any, Dict, List, Optional, Tuple from envo import Env, Namespace, env_var, logger, run from env_comm import StickybeakCommEnv as ParentEnv p = Namespace("p") cl...
22.942529
117
0.613727
1,651
0.826326
0
0
1,223
0.612112
0
0
386
0.193193
d9fb745b63e853aa5e221b1f87db67c0723efc2d
394
py
Python
zmq_srv.py
iyedb/boost_asio_zeromq
63110c18540c8303ac29d574f25cba234a00a22d
[ "MIT" ]
4
2015-04-07T06:00:34.000Z
2019-09-10T01:45:41.000Z
zmq_srv.py
iyedb/boost_asio_zeromq
63110c18540c8303ac29d574f25cba234a00a22d
[ "MIT" ]
null
null
null
zmq_srv.py
iyedb/boost_asio_zeromq
63110c18540c8303ac29d574f25cba234a00a22d
[ "MIT" ]
3
2015-06-30T07:37:41.000Z
2019-09-10T01:45:47.000Z
from __future__ import print_function import zmq import time ADDR='tcp://127.0.0.1:11155' ctx = zmq.Context() srv = ctx.socket(zmq.REP) srv.bind(ADDR) #srv.setsockopt(zmq.RCVTIMEO, 3000); while True: try: msg = srv.recv() except Exception as e: print('zmq socket revc timedout:', e) else: print('cl...
17.130435
41
0.659898
0
0
0
0
0
0
0
0
119
0.30203
d9fdf7b2da8d5e9203d4272f61f62e3af6000e66
10,408
py
Python
mypy/server/aststrip.py
mmaryada27/mypy
39103273d705fe45a55c4879779a0d5567f01876
[ "PSF-2.0" ]
null
null
null
mypy/server/aststrip.py
mmaryada27/mypy
39103273d705fe45a55c4879779a0d5567f01876
[ "PSF-2.0" ]
null
null
null
mypy/server/aststrip.py
mmaryada27/mypy
39103273d705fe45a55c4879779a0d5567f01876
[ "PSF-2.0" ]
null
null
null
"""Strip/reset AST in-place to match state after semantic analysis pass 1. Fine-grained incremental mode reruns semantic analysis (passes 2 and 3) and type checking for *existing* AST nodes (targets) when changes are propagated using fine-grained dependencies. AST nodes attributes are often changed during semantic an...
41.13834
95
0.662952
7,281
0.699558
698
0.067064
787
0.075615
0
0
3,859
0.370772
d9fe5aa1f8632d451d56260ea6fb9079bd975a31
475
py
Python
bsp/nrf5x/tools/sdk_dist.py
BreederBai/rt-thread
53ed0314982556dfa9c5db75d4f3e02485d16ab5
[ "Apache-2.0" ]
7,482
2015-01-01T09:23:08.000Z
2022-03-31T19:34:05.000Z
bsp/nrf5x/tools/sdk_dist.py
ArdaFu/rt-thread
eebb2561ec166e0016187c7b7998ada4f8212b3a
[ "Apache-2.0" ]
2,543
2015-01-09T02:01:34.000Z
2022-03-31T23:10:14.000Z
bsp/nrf5x/tools/sdk_dist.py
ArdaFu/rt-thread
eebb2561ec166e0016187c7b7998ada4f8212b3a
[ "Apache-2.0" ]
4,645
2015-01-06T07:05:31.000Z
2022-03-31T18:21:50.000Z
import os import sys import shutil cwd_path = os.getcwd() sys.path.append(os.path.join(os.path.dirname(cwd_path), 'rt-thread', 'tools')) # BSP dist function def dist_do_building(BSP_ROOT, dist_dir): from mkdist import bsp_copy_files import rtconfig library_dir = os.path.join(dist_dir, 'libraries') p...
26.388889
78
0.734737
0
0
0
0
0
0
0
0
88
0.185263
d9fe6882b9e62ad1b9764fdded272caab1b5cf79
9,991
py
Python
lib/spack/spack/multimethod.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2020-09-10T22:50:08.000Z
2021-01-12T22:18:54.000Z
lib/spack/spack/multimethod.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
17
2019-03-21T15:54:00.000Z
2022-03-29T19:34:28.000Z
lib/spack/spack/multimethod.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2018-04-06T09:04:11.000Z
2020-01-24T12:52:12.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) """This module contains utilities for using multi-methods in spack. You can think of multi-methods like overloaded methods...
38.875486
77
0.651887
8,530
0.853768
0
0
218
0.02182
0
0
6,436
0.64418
d9fe73cee8f0ad5d98f81eb365b256cba7970cbe
13,093
gyp
Python
third_party/protobuf/protobuf.gyp
meego-tablet-ux/meego-app-browser
0f4ef17bd4b399c9c990a2f6ca939099495c2b9c
[ "BSD-3-Clause" ]
1
2015-10-12T09:14:22.000Z
2015-10-12T09:14:22.000Z
third_party/protobuf/protobuf.gyp
meego-tablet-ux/meego-app-browser
0f4ef17bd4b399c9c990a2f6ca939099495c2b9c
[ "BSD-3-Clause" ]
null
null
null
third_party/protobuf/protobuf.gyp
meego-tablet-ux/meego-app-browser
0f4ef17bd4b399c9c990a2f6ca939099495c2b9c
[ "BSD-3-Clause" ]
1
2020-11-04T07:22:28.000Z
2020-11-04T07:22:28.000Z
# Copyright (c) 2009 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'conditions': [ ['OS!="win"', { 'variables': { 'config_h_dir': '.', # crafted for gcc/linux. }, }, { # else, ...
41.302839
81
0.621554
0
0
0
0
0
0
0
0
10,235
0.781715
d9ff0e5cd63921d7a1a7f3f682d268671ab38688
834
py
Python
main.py
Yash-s-Code-Camp/Python-Day-4
887c4e172905b2b0dea493a3c9c1f61e403556fc
[ "MIT" ]
null
null
null
main.py
Yash-s-Code-Camp/Python-Day-4
887c4e172905b2b0dea493a3c9c1f61e403556fc
[ "MIT" ]
null
null
null
main.py
Yash-s-Code-Camp/Python-Day-4
887c4e172905b2b0dea493a3c9c1f61e403556fc
[ "MIT" ]
null
null
null
# def mul(a): # return lambda b:b*a # singler = mul(1) # addition = lambda b:b*1 # doubler = mul(2) # addition = lambda b:b*2 # tripler = mul(3) # addition = lambda b:b*3 # print(doubler(7)) # 7*2 = 14 # print(tripler(7)) # 7*3 = 21 # print(singler(7)) # 7*1 = 7 class Student: def __init__(self, fna...
17.020408
47
0.603118
311
0.372902
0
0
0
0
0
0
437
0.523981
8a00049d0a23118a6b45ced9a50bf455984aaa3c
8,974
py
Python
paperstream/create_diary.py
MarcoRosso/paperstream
f8d5485ea337334b036393f9566b74394b5dd234
[ "MIT" ]
null
null
null
paperstream/create_diary.py
MarcoRosso/paperstream
f8d5485ea337334b036393f9566b74394b5dd234
[ "MIT" ]
null
null
null
paperstream/create_diary.py
MarcoRosso/paperstream
f8d5485ea337334b036393f9566b74394b5dd234
[ "MIT" ]
null
null
null
""" Create diaries in A5 and A4 sizes based on PDF templates. Julio Vega """ import datetime import math import sys from io import BytesIO from pathlib import Path from PyPDF2 import PdfFileReader, PdfFileWriter from reportlab.lib.pagesizes import A5, A4 from reportlab.lib.utils import ImageReader from reportlab.pdfb...
33.864151
97
0.613885
398
0.04435
1,008
0.112324
0
0
0
0
2,797
0.311678
8a009f467895ff4a7817d2ca2bfbdacdd183cb58
2,459
py
Python
wextractor/extractors/csv_extractor.py
codeforamerica/w-drive-extractor
1c62bfff6fc21c4cce4a4409b76355ec4e07daae
[ "MIT" ]
3
2015-01-14T06:27:16.000Z
2015-02-26T23:39:39.000Z
wextractor/extractors/csv_extractor.py
codeforamerica/w-drive-extractor
1c62bfff6fc21c4cce4a4409b76355ec4e07daae
[ "MIT" ]
8
2015-01-15T17:50:30.000Z
2015-05-12T17:09:04.000Z
wextractor/extractors/csv_extractor.py
codeforamerica/w-drive-extractor
1c62bfff6fc21c4cce4a4409b76355ec4e07daae
[ "MIT" ]
4
2015-01-14T15:20:49.000Z
2021-04-16T10:45:22.000Z
#!/usr/bin/env python import urllib2 import httplib from urlparse import urlparse import csv from wextractor.extractors.extractor import Extractor class CsvExtractor(Extractor): def __init__(self, target, header=None, dtypes=None, url=None): ''' CsvExtractor initializes with an optional url flag ...
34.152778
118
0.604311
2,308
0.938593
0
0
0
0
0
0
696
0.283042
8a01b2b39f8bda22480b43b79a5034c95f31f8f0
9,010
py
Python
pyscf/geomopt/berny_solver.py
r-peng/pyscf
9a14f9bcc63bc75f5939cb4d00eb47861d8d8989
[ "Apache-2.0" ]
2
2021-06-30T22:33:35.000Z
2021-11-22T18:02:36.000Z
pyscf/geomopt/berny_solver.py
r-peng/pyscf
9a14f9bcc63bc75f5939cb4d00eb47861d8d8989
[ "Apache-2.0" ]
null
null
null
pyscf/geomopt/berny_solver.py
r-peng/pyscf
9a14f9bcc63bc75f5939cb4d00eb47861d8d8989
[ "Apache-2.0" ]
2
2021-09-16T23:37:42.000Z
2021-10-14T23:00:39.000Z
#!/usr/bin/env python # Copyright 2014-2019 The PySCF Developers. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
34.787645
91
0.642619
944
0.104772
0
0
120
0.013319
0
0
3,658
0.405993
8a01ccf4f5933cd1046863655e9835118928c6fc
1,838
py
Python
src/main/python/taf/foundation/api/ui/aut.py
WesleyPeng/uiXautomation
2d2c4d5a774ffda934d5615036a80c449bac930d
[ "Apache-2.0" ]
6
2017-09-19T15:05:47.000Z
2021-07-16T16:07:46.000Z
src/main/python/taf/foundation/api/ui/aut.py
WesleyPeng/uiXautomation
2d2c4d5a774ffda934d5615036a80c449bac930d
[ "Apache-2.0" ]
1
2018-06-02T18:45:51.000Z
2018-06-02T18:45:51.000Z
src/main/python/taf/foundation/api/ui/aut.py
WesleyPeng/uiXautomation
2d2c4d5a774ffda934d5615036a80c449bac930d
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017-2018 {Flair Inc.} WESLEY PENG # # 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...
25.887324
74
0.62568
1,192
0.648531
0
0
131
0.071273
0
0
654
0.355822
8a02d8606a3a24d720ef5682953d80e75a8dcabc
1,758
py
Python
algo/vigenere.py
dkushche/Crypto
75919d6df2084aee1de76c9999ac4e361c4efd48
[ "MIT" ]
3
2020-05-07T22:03:48.000Z
2021-03-11T16:36:56.000Z
algo/vigenere.py
dkushche/Crypto
75919d6df2084aee1de76c9999ac4e361c4efd48
[ "MIT" ]
null
null
null
algo/vigenere.py
dkushche/Crypto
75919d6df2084aee1de76c9999ac4e361c4efd48
[ "MIT" ]
null
null
null
import crypto_tools from itertools import cycle def vigenere_little_doc(): return "encrypt/decrypt using vigenere cypher" def vigenere_full_doc(): return """ Advanced caesar we change dict on each char """ def vigenere_str_to_list(string, vigenere_dict): result = list() for char in string:...
30.310345
78
0.660978
0
0
0
0
496
0.282139
0
0
300
0.170648
8a03248b6fead646cb68e7a6a935435de664969c
14,492
py
Python
anaconda-mode/0.1.13/jedi-0.15.1-py3.7.egg/jedi/evaluate/base_context.py
space-scl/emacs.d
6285c38714023b72a023fe24cbcb5e4fcdcdb949
[ "Apache-2.0" ]
4
2019-07-26T11:32:22.000Z
2019-09-11T05:34:59.000Z
anaconda-mode/0.1.13/jedi-0.15.1-py3.7.egg/jedi/evaluate/base_context.py
space-scl/emacs.d
6285c38714023b72a023fe24cbcb5e4fcdcdb949
[ "Apache-2.0" ]
10
2020-05-11T20:29:28.000Z
2022-01-13T01:41:27.000Z
anaconda-mode/0.1.13/jedi-0.15.1-py3.7.egg/jedi/evaluate/base_context.py
space-scl/emacs.d
6285c38714023b72a023fe24cbcb5e4fcdcdb949
[ "Apache-2.0" ]
2
2019-08-28T14:57:54.000Z
2019-11-26T16:18:30.000Z
""" Contexts are the "values" that Python would return. However Contexts are at the same time also the "contexts" that a user is currently sitting in. A ContextSet is typically used to specify the return of a function or any other static analysis operation. In jedi there are always multiple returns and not just one. "...
33.162471
94
0.637524
11,748
0.810654
395
0.027256
1,081
0.074593
0
0
2,454
0.169335
8a036923cf292987a326de518f02ae1d70e60da4
974
py
Python
kiwi_scp/commands/cmd_cmd.py
yavook/kiwi-scp
ca4263d913cfbdedc8b14334e3cad61c3b95f0a7
[ "MIT" ]
null
null
null
kiwi_scp/commands/cmd_cmd.py
yavook/kiwi-scp
ca4263d913cfbdedc8b14334e3cad61c3b95f0a7
[ "MIT" ]
null
null
null
kiwi_scp/commands/cmd_cmd.py
yavook/kiwi-scp
ca4263d913cfbdedc8b14334e3cad61c3b95f0a7
[ "MIT" ]
null
null
null
from typing import Tuple import click from .cmd import KiwiCommandType, KiwiCommand from .decorators import kiwi_command from ..executable import COMPOSE_EXE from ..instance import Instance from ..project import Project @click.argument( "compose_args", metavar="[ARG]...", nargs=-1, ) @click.argument( ...
26.324324
91
0.708419
400
0.410678
0
0
749
0.768994
0
0
231
0.237166
8a036ee66041ffdf97db3dd3911676a6d37fc888
4,339
py
Python
homework/Testing with Examples (Network)/impl_fail-add_relation-does_not_fail_when_person1_is_non_existent.py
rvprasad/software-testing-course
3803851dcf9f7bbd0f0b89fca6c9c5e3a48f22e0
[ "CC-BY-4.0" ]
11
2018-02-08T05:23:28.000Z
2021-05-24T13:23:56.000Z
homework/Testing with Examples (Network)/impl_fail-add_relation-does_not_fail_when_person1_is_non_existent.py
rvprasad/software-testing-course
3803851dcf9f7bbd0f0b89fca6c9c5e3a48f22e0
[ "CC-BY-4.0" ]
null
null
null
homework/Testing with Examples (Network)/impl_fail-add_relation-does_not_fail_when_person1_is_non_existent.py
rvprasad/software-testing-course
3803851dcf9f7bbd0f0b89fca6c9c5e3a48f22e0
[ "CC-BY-4.0" ]
2
2020-09-15T08:51:22.000Z
2021-01-26T12:07:18.000Z
class MyError(Exception): pass class PropertyContainer(object): def __init__(self): self.props = {} def set_property(self, prop, value): self.props[prop] = value def get_property(self, prop): return self.props.get(prop) def has_property(self, prop...
34.991935
76
0.569717
4,326
0.997004
0
0
0
0
0
0
894
0.206038
8a03ced3330b9102f19e53ae0f85a628054986d1
36
py
Python
tools/__init__.py
BranKein/Flask-template
3d8f43b3c44163e855c727de2a0dfe37d3b788f9
[ "MIT" ]
null
null
null
tools/__init__.py
BranKein/Flask-template
3d8f43b3c44163e855c727de2a0dfe37d3b788f9
[ "MIT" ]
null
null
null
tools/__init__.py
BranKein/Flask-template
3d8f43b3c44163e855c727de2a0dfe37d3b788f9
[ "MIT" ]
null
null
null
from . import ip __all__ = ['ip']
7.2
16
0.583333
0
0
0
0
0
0
0
0
4
0.111111
8a040db174b4e066ad1fcf13a9fc64667e2a81e2
274
py
Python
leetCode/algorithms/easy/count_and_say.py
ferhatelmas/algo
a7149c7a605708bc01a5cd30bf5455644cefd04d
[ "WTFPL" ]
25
2015-01-21T16:39:18.000Z
2021-05-24T07:01:24.000Z
leetCode/algorithms/easy/count_and_say.py
gauravsingh58/algo
397859a53429e7a585e5f6964ad24146c6261326
[ "WTFPL" ]
2
2020-09-30T19:39:36.000Z
2020-10-01T17:15:16.000Z
leetCode/algorithms/easy/count_and_say.py
ferhatelmas/algo
a7149c7a605708bc01a5cd30bf5455644cefd04d
[ "WTFPL" ]
15
2015-01-21T16:39:27.000Z
2020-10-01T17:00:22.000Z
from itertools import groupby class Solution: def countAndSay(self, n): def gen(s): return "".join(str(len(list(g))) + k for k, g in groupby(s)) s, i = "1", 1 while i < n: s = gen(s) i += 1 return s
19.571429
72
0.463504
241
0.879562
0
0
0
0
0
0
5
0.018248
8a045d9a56c4a8715b77c0b2cd2d5ff977fa98ed
609
py
Python
conf/feature_config.py
pupuwudi/nlp_xiaojiang
182ac4522b6012a52de6e1d0db7e6a47cb716e5b
[ "MIT" ]
null
null
null
conf/feature_config.py
pupuwudi/nlp_xiaojiang
182ac4522b6012a52de6e1d0db7e6a47cb716e5b
[ "MIT" ]
null
null
null
conf/feature_config.py
pupuwudi/nlp_xiaojiang
182ac4522b6012a52de6e1d0db7e6a47cb716e5b
[ "MIT" ]
2
2021-01-18T10:07:20.000Z
2022-01-12T10:09:47.000Z
# -*- coding: UTF-8 -*- # !/usr/bin/python # @time :2019/5/10 9:13 # @author :Mo # @function :path of FeatureProject import pathlib import sys import os # base dir projectdir = str(pathlib.Path(os.path.abspath(__file__)).parent.parent) sys.path.append(projectdir) # path of BERT model model_dir...
22.555556
72
0.689655
0
0
0
0
0
0
0
0
328
0.494721
8a047a8d5dd4c7ba8745cc48738110ca5fef1d2f
813
py
Python
tests/test_prep_read.py
taruma/hidrokit
a96c4ba2235d58d2bbc905be44d1b413ed19b3d2
[ "MIT" ]
5
2019-07-15T13:35:52.000Z
2020-04-01T17:34:16.000Z
tests/test_prep_read.py
taruma/hidrokit
a96c4ba2235d58d2bbc905be44d1b413ed19b3d2
[ "MIT" ]
107
2019-01-03T02:12:26.000Z
2020-02-18T00:48:27.000Z
tests/test_prep_read.py
hidrokit/hidrokit
c8b949aa6a81981684a24e5dd1e498ec82cbe0ca
[ "MIT" ]
2
2020-06-17T00:08:32.000Z
2020-08-24T18:55:38.000Z
"""Test for .prep.read module """ from hidrokit.prep import read import numpy as np import pandas as pd A = pd.DataFrame( data=[ [1, 3, 4, np.nan, 2, np.nan], [np.nan, 2, 3, np.nan, 1, 4], [2, np.nan, 1, 3, 4, np.nan] ], columns=['A', 'B', 'C', 'D', 'E', 'F'] ) A_date = A.set_inde...
25.40625
79
0.526445
0
0
0
0
0
0
0
0
149
0.183272
8a047dbb3e81227c03ec206589ca325125601905
1,721
py
Python
app/blueprints/department_blueprint.py
Maxcutex/personal_ecommerce
be09fb20eae1b225523acde06f8e75effcc3676f
[ "MIT" ]
null
null
null
app/blueprints/department_blueprint.py
Maxcutex/personal_ecommerce
be09fb20eae1b225523acde06f8e75effcc3676f
[ "MIT" ]
2
2019-05-21T08:44:29.000Z
2021-04-30T20:46:08.000Z
app/blueprints/department_blueprint.py
Maxcutex/personal_ecommerce
be09fb20eae1b225523acde06f8e75effcc3676f
[ "MIT" ]
null
null
null
from flasgger import swag_from from app.blueprints.base_blueprint import Blueprint, BaseBlueprint, request, Security, Auth from app.controllers.department_controller import DepartmentController url_prefix = '{}/departments'.format(BaseBlueprint.base_url_prefix) department_blueprint = Blueprint('department', __name__,...
41.97561
91
0.820453
0
0
0
0
1,312
0.762347
0
0
476
0.276583
8a04b26d17a373b84c1afb19abef67f291bb970a
9,747
py
Python
src/train_DFCAN.py
ikecoglu/DL-SR
5e4c794f1434cd4a9b2b1aecf3738065b11bede1
[ "MIT" ]
46
2021-01-07T03:38:07.000Z
2022-03-24T19:11:23.000Z
src/train_DFCAN.py
ikecoglu/DL-SR
5e4c794f1434cd4a9b2b1aecf3738065b11bede1
[ "MIT" ]
7
2021-02-06T14:23:18.000Z
2022-02-13T04:08:45.000Z
src/train_DFCAN.py
ikecoglu/DL-SR
5e4c794f1434cd4a9b2b1aecf3738065b11bede1
[ "MIT" ]
16
2021-01-26T16:22:49.000Z
2022-02-26T03:21:08.000Z
import argparse from keras import optimizers import matplotlib.pyplot as plt import numpy as np import datetime from keras.callbacks import TensorBoard import glob import os import tensorflow as tf from models import * from utils.lr_controller import ReduceLROnPlateau from utils.data_loader import data_loader, data_loa...
45.125
109
0.612804
0
0
0
0
0
0
0
0
2,356
0.241715
8a04bef0858eef7458b1e38ddd409346a98cb2cc
2,635
py
Python
catalyst/exchange/live_graph_clock.py
erlendve/catalyst
463575bc23c0abd1287f8ec81c4377baabf2b8b8
[ "Apache-2.0" ]
null
null
null
catalyst/exchange/live_graph_clock.py
erlendve/catalyst
463575bc23c0abd1287f8ec81c4377baabf2b8b8
[ "Apache-2.0" ]
null
null
null
catalyst/exchange/live_graph_clock.py
erlendve/catalyst
463575bc23c0abd1287f8ec81c4377baabf2b8b8
[ "Apache-2.0" ]
null
null
null
import pandas as pd from catalyst.constants import LOG_LEVEL from catalyst.exchange.utils.stats_utils import prepare_stats from catalyst.gens.sim_engine import ( BAR, SESSION_START ) from logbook import Logger log = Logger('LiveGraphClock', level=LOG_LEVEL) class LiveGraphClock(object): """Realtime clock...
35.133333
79
0.666414
2,365
0.897533
990
0.375712
0
0
0
0
1,214
0.460721
8a04ff873e3cd041bc9cad7f7fc7707f7c185cce
6,652
py
Python
invera/api/tests.py
LeoLeiva/todo-challenge
f6f24f53758eb4e425c91516bcab7af8cad66814
[ "MIT" ]
null
null
null
invera/api/tests.py
LeoLeiva/todo-challenge
f6f24f53758eb4e425c91516bcab7af8cad66814
[ "MIT" ]
null
null
null
invera/api/tests.py
LeoLeiva/todo-challenge
f6f24f53758eb4e425c91516bcab7af8cad66814
[ "MIT" ]
1
2021-01-10T20:19:42.000Z
2021-01-10T20:19:42.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals import inspect from task.models import InveraTask from api.utils import send_test_csv_report from django.contrib.auth.models import User from rest_framework.test import APIClient, APITestCase from rest_framework.reverse import reverse from rest_framewor...
37.370787
165
0.634245
6,253
0.940018
0
0
119
0.017889
0
0
2,382
0.358088
8a06be2dde291c66efbc5f80746f557a0f2cecaa
336
py
Python
experiments/seidel-2d/tmp_files/6745.py
LoopTilingBenchmark/benchmark
52a3d2e70216552a498fd91de02a2fa9cb62122c
[ "BSD-2-Clause" ]
null
null
null
experiments/seidel-2d/tmp_files/6745.py
LoopTilingBenchmark/benchmark
52a3d2e70216552a498fd91de02a2fa9cb62122c
[ "BSD-2-Clause" ]
null
null
null
experiments/seidel-2d/tmp_files/6745.py
LoopTilingBenchmark/benchmark
52a3d2e70216552a498fd91de02a2fa9cb62122c
[ "BSD-2-Clause" ]
null
null
null
from chill import * source('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/polybench/polybench-code/stencils/seidel-2d/kernel.c') destination('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/experiments/seidel-2d/tmp_files/6745.c') procedure('kernel_seidel_2d') loop(0) known(' n > 2 ') tile(0,2,16,2)...
30.545455
118
0.764881
0
0
0
0
0
0
0
0
233
0.693452
8a06d974512def3c400fb25769c0185d59195602
1,405
py
Python
baymax/api.py
dmrz/baymax
60cca5ae2e7cb42e093747f91b809e34e6782fcd
[ "MIT" ]
34
2018-02-14T09:37:26.000Z
2021-02-13T10:06:54.000Z
baymax/api.py
Avishekbhattacharjee/baymax
487930c4f3021ff50504d371de09ff31e458c09f
[ "MIT" ]
1
2018-03-03T02:55:38.000Z
2018-03-17T21:57:15.000Z
baymax/api.py
Avishekbhattacharjee/baymax
487930c4f3021ff50504d371de09ff31e458c09f
[ "MIT" ]
7
2018-02-28T07:35:35.000Z
2022-01-26T11:54:40.000Z
import json import aiohttp async def request(url, payload=None, params=None, headers=None): headers = {'content-type': 'application/json', **(headers or {})} data = payload and json.dumps(payload) async with aiohttp.ClientSession() as client: async with client.post( url, data=data...
29.270833
72
0.641993
0
0
0
0
0
0
1,365
0.97153
243
0.172954
8a072b60d911bf4164d6e02341054f5f6f3f27f0
3,479
py
Python
nautobot_device_onboarding/tests/test_netdev_keeper.py
pszulczewski/nautobot-plugin-device-onboarding
9ddec52d7bcc751c4616bd7c1180ed2a1d31ff2c
[ "Apache-2.0" ]
13
2021-03-05T10:47:50.000Z
2022-03-18T19:07:09.000Z
nautobot_device_onboarding/tests/test_netdev_keeper.py
pszulczewski/nautobot-plugin-device-onboarding
9ddec52d7bcc751c4616bd7c1180ed2a1d31ff2c
[ "Apache-2.0" ]
18
2021-03-05T10:29:13.000Z
2022-03-08T13:10:38.000Z
nautobot_device_onboarding/tests/test_netdev_keeper.py
pszulczewski/nautobot-plugin-device-onboarding
9ddec52d7bcc751c4616bd7c1180ed2a1d31ff2c
[ "Apache-2.0" ]
14
2021-03-06T19:33:46.000Z
2022-03-28T16:31:38.000Z
"""Unit tests for nautobot_device_onboarding.netdev_keeper module and its classes. (c) 2020-2021 Network To Code 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/LICE...
44.602564
108
0.728658
2,486
0.714573
0
0
1,436
0.412762
0
0
1,417
0.407301
8a076cdd50a9d69b52cffcb8dbe3df578f17d801
2,577
py
Python
superneurons/tools/img_val/main.py
Phaeton-lang/baselines
472c248047fbb55b5fa0e620758047b7f0a1d041
[ "MIT" ]
null
null
null
superneurons/tools/img_val/main.py
Phaeton-lang/baselines
472c248047fbb55b5fa0e620758047b7f0a1d041
[ "MIT" ]
null
null
null
superneurons/tools/img_val/main.py
Phaeton-lang/baselines
472c248047fbb55b5fa0e620758047b7f0a1d041
[ "MIT" ]
null
null
null
# Created by ay27 at 17/4/9 import os import matplotlib.pyplot as plt import struct import numpy as np def trans(row): return list(map(lambda x: np.uint8(x), row)) def read_image(filename): with open(filename, mode='rb') as file: n = file.read(8) n = struct.unpack("<Q", n)[0] c = fi...
28.01087
84
0.509895
0
0
0
0
0
0
0
0
861
0.334109
8a0988ba1c9ee5db70eabfa7b9b35ad041f9c1f7
2,238
py
Python
pymatgen/analysis/tests/test_piezo.py
exenGT/pymatgen
a8ffb820ab8fc3f60251099e38c8888f45eae618
[ "MIT" ]
1
2021-11-02T21:10:11.000Z
2021-11-02T21:10:11.000Z
pymatgen/analysis/tests/test_piezo.py
exenGT/pymatgen
a8ffb820ab8fc3f60251099e38c8888f45eae618
[ "MIT" ]
5
2018-08-07T23:00:23.000Z
2021-01-05T22:46:23.000Z
pymatgen/analysis/tests/test_piezo.py
exenGT/pymatgen
a8ffb820ab8fc3f60251099e38c8888f45eae618
[ "MIT" ]
6
2019-04-26T18:50:41.000Z
2020-03-29T17:58:34.000Z
# Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ Test for the piezo tensor class """ __author__ = "Shyam Dwaraknath" __version__ = "0.1" __maintainer__ = "Shyam Dwaraknath" __email__ = "shyamd@lbl.gov" __status__ = "Development" __date__ = "4/1/16" import os import un...
31.521127
76
0.594281
1,743
0.77882
0
0
0
0
0
0
226
0.100983
8a0ab3edf5559c9bdaa844115d82ed95f2b065a1
63,787
py
Python
nova/virt/driver.py
larsbutler/nova
fb190f30a911658d8b0c4deaf43cbb8c9e35b672
[ "Apache-2.0" ]
null
null
null
nova/virt/driver.py
larsbutler/nova
fb190f30a911658d8b0c4deaf43cbb8c9e35b672
[ "Apache-2.0" ]
null
null
null
nova/virt/driver.py
larsbutler/nova
fb190f30a911658d8b0c4deaf43cbb8c9e35b672
[ "Apache-2.0" ]
null
null
null
# Copyright 2011 Justin Santa Barbara # 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 requ...
39.205286
79
0.651246
59,183
0.927822
0
0
295
0.004625
0
0
46,855
0.734554
8a0afacd436c5c382b382e786080775c8a2d6bf7
5,581
py
Python
otp/chat/ChatInputNormal.py
P1ayerOne/src
3a4343e29f844fe95da7d51aaee7fb680d02bf72
[ "BSD-3-Clause" ]
null
null
null
otp/chat/ChatInputNormal.py
P1ayerOne/src
3a4343e29f844fe95da7d51aaee7fb680d02bf72
[ "BSD-3-Clause" ]
null
null
null
otp/chat/ChatInputNormal.py
P1ayerOne/src
3a4343e29f844fe95da7d51aaee7fb680d02bf72
[ "BSD-3-Clause" ]
null
null
null
from direct.showbase import DirectObject from otp.otpbase import OTPGlobals import sys from direct.gui.DirectGui import * from pandac.PandaModules import * from otp.otpbase import OTPLocalizer class ChatInputNormal(DirectObject.DirectObject): ExecNamespace = None def __init__(self, chatMgr): self.chat...
34.450617
99
0.583766
5,386
0.96506
0
0
0
0
0
0
305
0.05465
8a0b53a65038120d7c635ea3a3f7ba3752ca109e
14,068
py
Python
train_text_summarizer.py
stevaras2/bert
1efaa300eb91dea85c40de5e1586e8d2c94b89bb
[ "Apache-2.0" ]
1
2019-11-28T10:03:09.000Z
2019-11-28T10:03:09.000Z
train_text_summarizer.py
stevaras2/bert
1efaa300eb91dea85c40de5e1586e8d2c94b89bb
[ "Apache-2.0" ]
null
null
null
train_text_summarizer.py
stevaras2/bert
1efaa300eb91dea85c40de5e1586e8d2c94b89bb
[ "Apache-2.0" ]
null
null
null
import argparse import json import numpy as np import pandas as pd import os from sklearn.linear_model import LogisticRegression from sklearn.model_selection import train_test_split from sklearn.metrics import classification_report,f1_score from keras.models import Sequential from keras.layers import Dense, Dropout fro...
35.705584
151
0.649062
0
0
0
0
0
0
0
0
3,939
0.279997
8a0d48bd45e2a77d4024e66ae20d64213df72227
1,493
py
Python
src/test/python/apache/aurora/executor/test_status_manager.py
zmanji/incubator-aurora
9f594f1de6bbf46c74863dd3fc4d2708b7a974f2
[ "Apache-2.0" ]
null
null
null
src/test/python/apache/aurora/executor/test_status_manager.py
zmanji/incubator-aurora
9f594f1de6bbf46c74863dd3fc4d2708b7a974f2
[ "Apache-2.0" ]
null
null
null
src/test/python/apache/aurora/executor/test_status_manager.py
zmanji/incubator-aurora
9f594f1de6bbf46c74863dd3fc4d2708b7a974f2
[ "Apache-2.0" ]
null
null
null
# # 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 # distributed under ...
29.27451
74
0.750167
699
0.468185
0
0
143
0.09578
0
0
561
0.375754
8a0d98e91f0c9a170743b5f41866a399dbce8684
3,494
py
Python
Supplemental/A5. Collision estimation module/Con_est.py
wangqf1997/Human-injury-based-safety-decision-of-automated-vehicles
b104fdeb3d85e867f6b04c5ae7b5a197e705aeba
[ "CC-BY-4.0" ]
null
null
null
Supplemental/A5. Collision estimation module/Con_est.py
wangqf1997/Human-injury-based-safety-decision-of-automated-vehicles
b104fdeb3d85e867f6b04c5ae7b5a197e705aeba
[ "CC-BY-4.0" ]
null
null
null
Supplemental/A5. Collision estimation module/Con_est.py
wangqf1997/Human-injury-based-safety-decision-of-automated-vehicles
b104fdeb3d85e867f6b04c5ae7b5a197e705aeba
[ "CC-BY-4.0" ]
null
null
null
''' ------------------------------------------------------------------------------------------------- This code accompanies the paper titled "Human injury-based safety decision of automated vehicles" Author: Qingfan Wang, Qing Zhou, Miao Lin, Bingbing Nie Corresponding author: Bingbing Nie (nbb@tsinghua.edu.cn) -------...
43.135802
117
0.556955
0
0
0
0
0
0
0
0
654
0.187178
8a0ead4871ddc6b047237522f5f34d4d48742f52
11,790
py
Python
train/train.py
TontonTremblay/pixel-nerf
349b5f3f173cd76def05b6de8aa52c69a4f0c7fa
[ "BSD-2-Clause" ]
null
null
null
train/train.py
TontonTremblay/pixel-nerf
349b5f3f173cd76def05b6de8aa52c69a4f0c7fa
[ "BSD-2-Clause" ]
null
null
null
train/train.py
TontonTremblay/pixel-nerf
349b5f3f173cd76def05b6de8aa52c69a4f0c7fa
[ "BSD-2-Clause" ]
null
null
null
# Training to a set of multiple objects (e.g. ShapeNet or DTU) # tensorboard logs available in logs/<expname> import sys import os sys.path.insert( 0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "src")) ) import warnings import trainlib from model import make_model, loss from render import NeRF...
33.976945
112
0.566073
9,738
0.825954
0
0
0
0
0
0
1,424
0.12078
8a10a1ae5c36176cfdd1c3ad55656efe8325a99f
20,351
py
Python
napari/_qt/dialogs/qt_plugin_dialog.py
kne42/napari
d61d0be0ef8ea622dd3d6acd270c0529816c11ec
[ "BSD-3-Clause" ]
null
null
null
napari/_qt/dialogs/qt_plugin_dialog.py
kne42/napari
d61d0be0ef8ea622dd3d6acd270c0529816c11ec
[ "BSD-3-Clause" ]
null
null
null
napari/_qt/dialogs/qt_plugin_dialog.py
kne42/napari
d61d0be0ef8ea622dd3d6acd270c0529816c11ec
[ "BSD-3-Clause" ]
null
null
null
import os import sys from pathlib import Path from typing import Sequence from napari_plugin_engine.dist import standard_metadata from napari_plugin_engine.exceptions import PluginError from qtpy.QtCore import QEvent, QProcess, QProcessEnvironment, QSize, Qt, Slot from qtpy.QtGui import QFont, QMovie from qtpy.QtWidge...
37.617375
79
0.640214
18,993
0.933271
0
0
1,838
0.090315
0
0
1,339
0.065795
8a112375ff4d16de8957c825f7c7971fdb15e0cc
1,179
py
Python
hata/discord/webhook/utils.py
WizzyBots/hata
f6991afc0bebf7dad932888a536f4d010f8663c7
[ "0BSD" ]
1
2022-03-02T03:59:57.000Z
2022-03-02T03:59:57.000Z
hata/discord/webhook/utils.py
m0nk3ybraindead/hata
f87ed3d7009eeae31d6ea158772efd33775c7b1c
[ "0BSD" ]
1
2022-02-08T16:54:39.000Z
2022-02-08T16:54:39.000Z
hata/discord/webhook/utils.py
WizzyBots/hata
f6991afc0bebf7dad932888a536f4d010f8663c7
[ "0BSD" ]
null
null
null
__all__ = ('create_partial_webhook_from_id', ) from scarletio import export from ..core import USERS from .preinstanced import WebhookType from .webhook import Webhook @export def create_partial_webhook_from_id(webhook_id, token, *, type_=WebhookType.bot, channel_id=0): """ Creates a partial webhook from t...
27.418605
115
0.653096
0
0
0
0
1,005
0.852417
0
0
648
0.549618
8a1292fe9e365e4f3b12243aeeeb62b3fcd34222
1,067
py
Python
MIT/600.1x - Introduction to Computer Science and Programming Using Python/Unit 4/Problem Set 4/get_word_score.py
henriqueumeda/-Python-study
28e93a377afa4732037a29eb74d4bc7c9e24b62f
[ "MIT" ]
null
null
null
MIT/600.1x - Introduction to Computer Science and Programming Using Python/Unit 4/Problem Set 4/get_word_score.py
henriqueumeda/-Python-study
28e93a377afa4732037a29eb74d4bc7c9e24b62f
[ "MIT" ]
null
null
null
MIT/600.1x - Introduction to Computer Science and Programming Using Python/Unit 4/Problem Set 4/get_word_score.py
henriqueumeda/-Python-study
28e93a377afa4732037a29eb74d4bc7c9e24b62f
[ "MIT" ]
null
null
null
SCRABBLE_LETTER_VALUES = { 'a': 1, 'b': 3, 'c': 3, 'd': 2, 'e': 1, 'f': 4, 'g': 2, 'h': 4, 'i': 1, 'j': 8, 'k': 5, 'l': 1, 'm': 3, 'n': 1, 'o': 1, 'p': 3, 'q': 10, 'r': 1, 's': 1, 't': 1, 'u': 1, 'v': 4, 'w': 4, 'x': 8, 'y': 4, 'z': 10 } def getWordScore(word, n): """ Returns the score for a word. Assu...
35.566667
115
0.585754
0
0
0
0
0
0
0
0
636
0.596064
8a13575cd76b03c2660c0f973dca2598509c1205
34,179
py
Python
sdk/lusid/models/lusid_instrument.py
rizwansaeed/lusid-sdk-python-preview
52d092d6d4099b8526f0318f3fe1ddc0b943da6a
[ "MIT" ]
null
null
null
sdk/lusid/models/lusid_instrument.py
rizwansaeed/lusid-sdk-python-preview
52d092d6d4099b8526f0318f3fe1ddc0b943da6a
[ "MIT" ]
null
null
null
sdk/lusid/models/lusid_instrument.py
rizwansaeed/lusid-sdk-python-preview
52d092d6d4099b8526f0318f3fe1ddc0b943da6a
[ "MIT" ]
null
null
null
# coding: utf-8 """ LUSID API # Introduction This page documents the [LUSID APIs](https://www.lusid.com/api/swagger), which allows authorised clients to query and update their data within the LUSID platform. SDKs to interact with the LUSID APIs are available in the following languages : * [C#](https://gith...
221.941558
28,647
0.692179
5,304
0.155183
0
0
1,735
0.050762
0
0
31,720
0.928055
8a13a931088f76e07468fa49084284d44b5cf0eb
936
py
Python
autolatex-master/exemplos_codigo/certificados/certificados.py
luizgui05/autolatex.
366eb3d88b7e60c119737f958e35cce99e8775e9
[ "MIT" ]
null
null
null
autolatex-master/exemplos_codigo/certificados/certificados.py
luizgui05/autolatex.
366eb3d88b7e60c119737f958e35cce99e8775e9
[ "MIT" ]
null
null
null
autolatex-master/exemplos_codigo/certificados/certificados.py
luizgui05/autolatex.
366eb3d88b7e60c119737f958e35cce99e8775e9
[ "MIT" ]
null
null
null
import os import sys import sqlite3 con = None filename = 'certificado' # Abrir banco de dados para ler nomes. try: con = sqlite3.connect('math.db') cur = con.cursor() cur.execute('select * from math') data = cur.fetchall() except sqlite3.Error, e: print "Error %s:" % e.args[0] sys.exit(...
20.8
85
0.569444
0
0
0
0
0
0
0
0
295
0.315171
8a13fa0bd9273ba0ef6fc5a2231a5c8269835d8e
280
py
Python
nanoepiseg/main_list_chunks.py
snajder-r/nanoepiseg
2fe36a82e5b899330da5db6559eb45fe12cad37c
[ "MIT" ]
null
null
null
nanoepiseg/main_list_chunks.py
snajder-r/nanoepiseg
2fe36a82e5b899330da5db6559eb45fe12cad37c
[ "MIT" ]
null
null
null
nanoepiseg/main_list_chunks.py
snajder-r/nanoepiseg
2fe36a82e5b899330da5db6559eb45fe12cad37c
[ "MIT" ]
null
null
null
from pathlib import Path from meth5.meth5 import MetH5File def main(m5file:Path, chunk_size:int, quiet:bool): with MetH5File(m5file, "r", chunk_size=chunk_size) as f: for chrom in f.get_chromosomes(): print(f"{chrom}: {f[chrom].get_number_of_chunks()}")
31.111111
64
0.696429
0
0
0
0
0
0
0
0
48
0.171429
8a14e512e0f7f79c5bcbfd4af00b8cc29f035958
6,376
py
Python
qscatv2/make_seasonal_images.py
tmilliman/sir_to_netcdf
d4641cdc5a9e92a55c0edb2dc6cd8c0e2da6f1fa
[ "MIT" ]
null
null
null
qscatv2/make_seasonal_images.py
tmilliman/sir_to_netcdf
d4641cdc5a9e92a55c0edb2dc6cd8c0e2da6f1fa
[ "MIT" ]
null
null
null
qscatv2/make_seasonal_images.py
tmilliman/sir_to_netcdf
d4641cdc5a9e92a55c0edb2dc6cd8c0e2da6f1fa
[ "MIT" ]
null
null
null
#!/usr/bin/env python # script to make seasonal means and stddev images of 4-day sig0 # values. import os import sys import glob import numpy as np import sirpy2 as sp2 import argparse from osgeo import gdal DATADIR = "./" NODATA_VALUE = -9999.0 Q2M = { "JAS": list(range(7, 10)), "OND": list(range(10, 13)),...
27.601732
86
0.592848
0
0
0
0
0
0
0
0
1,423
0.223181
8a15ab57e7398ab067062419a83d15fd9bf34d36
434
py
Python
ex062.py
noahbarros/Python-Exercises
fafda898473bc984280e201ed11d8ad76cc8624a
[ "MIT" ]
1
2021-07-13T21:41:00.000Z
2021-07-13T21:41:00.000Z
ex062.py
noahbarros/Python-Exercises
fafda898473bc984280e201ed11d8ad76cc8624a
[ "MIT" ]
null
null
null
ex062.py
noahbarros/Python-Exercises
fafda898473bc984280e201ed11d8ad76cc8624a
[ "MIT" ]
null
null
null
primeiro = int(input('Digite o priemiro termo da PA: ')) razão = int(input('Digite a razão da PA: ')) termo = primeiro cont = 1 total = 0 mais = 10 while mais != 0: total += mais while cont <= total: print(f'{termo} ', end='') termo += razão cont += 1 print('Pausa') mais = int(in...
27.125
66
0.612903
0
0
0
0
0
0
0
0
179
0.407745
8a16b528f332e28d501ffe602ae57113af02e27c
3,720
py
Python
arxml_data_extractor/handler/object_handler.py
Brokdar/ArxmlDataExtractor
2853112cbd4d001418b11ccb99f1db268347dfab
[ "MIT" ]
16
2020-08-16T09:13:35.000Z
2022-03-17T13:39:26.000Z
arxml_data_extractor/handler/object_handler.py
Brokdar/ArxmlDataExtractor
2853112cbd4d001418b11ccb99f1db268347dfab
[ "MIT" ]
null
null
null
arxml_data_extractor/handler/object_handler.py
Brokdar/ArxmlDataExtractor
2853112cbd4d001418b11ccb99f1db268347dfab
[ "MIT" ]
2
2020-10-14T10:54:37.000Z
2021-07-06T01:30:44.000Z
from lxml.etree import Element, QName from typing import Union, List, Any from tqdm import tqdm import logging from arxml_data_extractor.handler import value_handler from arxml_data_extractor.handler.path_handler import PathHandler from arxml_data_extractor.asr.asr_parser import AsrParser from arxml_data_extra...
42.272727
125
0.595968
3,230
0.86828
0
0
0
0
0
0
791
0.212634
8a19876a956cc7df8eee4ce39d6fc5531c4cfc7c
3,401
py
Python
src/api/datamanage/pro/lifecycle/data_trace/data_set_create.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
84
2021-06-30T06:20:23.000Z
2022-03-22T03:05:49.000Z
src/api/datamanage/pro/lifecycle/data_trace/data_set_create.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
7
2021-06-30T06:21:16.000Z
2022-03-29T07:36:13.000Z
src/api/datamanage/pro/lifecycle/data_trace/data_set_create.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
40
2021-06-30T06:21:26.000Z
2022-03-29T12:42:26.000Z
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available. Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. BK-BASE 蓝鲸基础平台 is licensed under the MIT License. License for BK-BASE 蓝鲸基础平台: ---------------------------------------------...
44.168831
118
0.728021
0
0
0
0
0
0
0
0
2,039
0.576151
8a1ac6639a0c1cc52dd72036d5f1b225c44d7b2f
4,363
py
Python
vectors2.py
shivam13verma/judge-embeddings
9b861319a1240529d25c15799952e32dde2e894e
[ "MIT" ]
null
null
null
vectors2.py
shivam13verma/judge-embeddings
9b861319a1240529d25c15799952e32dde2e894e
[ "MIT" ]
null
null
null
vectors2.py
shivam13verma/judge-embeddings
9b861319a1240529d25c15799952e32dde2e894e
[ "MIT" ]
null
null
null
import locale import glob import os import os.path import requests import tarfile import sys import re import gensim from gensim.models.doc2vec import TaggedDocument from collections import namedtuple from gensim.models import Doc2Vec import gensim.models.doc2vec from collections import OrderedDict import multiproces...
31.388489
121
0.651845
0
0
0
0
0
0
0
0
3,628
0.831538
8a1c71c22813d34b18261a3c040c83b4a288d938
1,272
py
Python
caravan_search_engine/test/test_task.py
crest-cassia/caravan
0a8e606e31d2d36a9379bdc00fafe55cf9144da6
[ "MIT" ]
4
2017-12-27T06:04:46.000Z
2018-04-27T04:07:49.000Z
caravan_search_engine/test/test_task.py
crest-cassia/caravan
0a8e606e31d2d36a9379bdc00fafe55cf9144da6
[ "MIT" ]
null
null
null
caravan_search_engine/test/test_task.py
crest-cassia/caravan
0a8e606e31d2d36a9379bdc00fafe55cf9144da6
[ "MIT" ]
null
null
null
import unittest from caravan.task import Task from caravan.tables import Tables class TestRun(unittest.TestCase): def setUp(self): self.t = Tables.get() self.t.clear() def test_task(self): t = Task(1234, "echo hello world") self.assertEqual(t.id(), 1234) self.assertEqu...
30.285714
63
0.589623
1,140
0.896226
0
0
0
0
0
0
73
0.05739
8a1cd65b30b7bbba4f6241ea55e68759c3f56fc4
15,868
py
Python
splash/render_options.py
tashidexiaoL/splashnew
2bbb886bae8fa88c30a4460f41ca940c4b010287
[ "BSD-3-Clause" ]
3,612
2015-01-04T07:22:20.000Z
2022-03-31T07:12:19.000Z
splash/render_options.py
tashidexiaoL/splashnew
2bbb886bae8fa88c30a4460f41ca940c4b010287
[ "BSD-3-Clause" ]
983
2015-01-01T17:54:49.000Z
2022-03-29T05:05:53.000Z
splash/render_options.py
tashidexiaoL/splashnew
2bbb886bae8fa88c30a4460f41ca940c4b010287
[ "BSD-3-Clause" ]
570
2015-01-06T17:48:46.000Z
2022-03-31T12:35:32.000Z
# -*- coding: utf-8 -*- import os import json from splash import defaults from splash.utils import to_bytes, path_join_secure from splash.errors import BadOption class RenderOptions(object): """ Options that control how to render a response. """ _REQUIRED = object() def __init__(self, data, max...
35.578475
91
0.568188
14,839
0.935153
0
0
1,600
0.100832
0
0
3,035
0.191265
8a1d8b11d101fed7641300b2c4ef25ddc8a61c8b
362
py
Python
syntax/func.py
sangumee/Opentutorials-Webn-Python
9f813f8f342ea99ffee6e31f363f175fa023c489
[ "MIT" ]
null
null
null
syntax/func.py
sangumee/Opentutorials-Webn-Python
9f813f8f342ea99ffee6e31f363f175fa023c489
[ "MIT" ]
null
null
null
syntax/func.py
sangumee/Opentutorials-Webn-Python
9f813f8f342ea99ffee6e31f363f175fa023c489
[ "MIT" ]
null
null
null
# code.... a = 1 b = 2 c = 3 s = a+b+c r = s/3 print(r) # code.... ''' def average(): a=1 b=2 c=3 s=a+b+c r=s/3 print(r) average() ''' ''' #input #parameter #argument def average(a,b,c): s=a+b+c r=s/3 print(r) average(10,20,30) ''' def average(a, b, c): s = a+b+c r = s/3 ...
9.05
26
0.466851
0
0
0
0
0
0
0
0
219
0.604972
8a1dc389d59f49c155580d9fe0bb5e5e94a7281e
1,718
py
Python
tools/evolution/codingSnps_filter.py
ramezrawas/galaxy-1
c03748dd49c060a68d07bce56eae33e0ba154414
[ "CC-BY-3.0" ]
1
2019-11-03T11:45:43.000Z
2019-11-03T11:45:43.000Z
tools/evolution/codingSnps_filter.py
ramezrawas/galaxy-1
c03748dd49c060a68d07bce56eae33e0ba154414
[ "CC-BY-3.0" ]
7
2016-12-07T22:19:37.000Z
2019-01-30T15:04:26.000Z
tools/evolution/codingSnps_filter.py
ramezrawas/galaxy-1
c03748dd49c060a68d07bce56eae33e0ba154414
[ "CC-BY-3.0" ]
null
null
null
#!/usr/bin/env python # runs after the job (and after the default post-filter) from galaxy.tools.parameters import DataToolParameter # Older py compatibility try: set() except: from sets import Set as set def validate_input( trans, error_map, param_values, page_param_map ): dbkeys = set() data_param_...
40.904762
117
0.586147
0
0
0
0
0
0
0
0
428
0.249127
8a1e3dc4bc93e35762cbfc644a38e3db21861cda
5,290
py
Python
qa/rpc-tests/listtransactions.py
DeftNerd/bitcoinclassic
afff0155e0dd528145818c43f259743f54966d95
[ "MIT" ]
8
2016-03-31T18:47:31.000Z
2021-09-30T05:42:32.000Z
qa/rpc-tests/listtransactions.py
DeftNerd/bitcoinclassic
afff0155e0dd528145818c43f259743f54966d95
[ "MIT" ]
1
2017-10-06T08:55:30.000Z
2017-10-06T08:55:30.000Z
qa/rpc-tests/listtransactions.py
DeftNerd/bitcoinclassic
afff0155e0dd528145818c43f259743f54966d95
[ "MIT" ]
2
2020-02-03T03:38:10.000Z
2021-09-30T05:42:36.000Z
#!/usr/bin/env python2 # Copyright (c) 2014-2015 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # Exercise the listtransactions API from test_framework.test_framework import BitcoinTestFramework from ...
48.53211
105
0.542722
4,110
0.776938
0
0
0
0
0
0
1,398
0.264272
8a1ef1c625b2d34cef5abbf769654ee6310e0334
25,352
py
Python
salt/modules/mount.py
aletourneau/salt
d7013a2f64eb4b79592220d76274bc5dde609e08
[ "Apache-2.0" ]
null
null
null
salt/modules/mount.py
aletourneau/salt
d7013a2f64eb4b79592220d76274bc5dde609e08
[ "Apache-2.0" ]
null
null
null
salt/modules/mount.py
aletourneau/salt
d7013a2f64eb4b79592220d76274bc5dde609e08
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Salt module to manage unix mounts and the fstab file ''' from __future__ import absolute_import # Import python libs import os import re import logging # Import salt libs import salt.utils from salt._compat import string_types from salt.utils import which as _which from salt.exceptions imp...
30.109264
92
0.473651
0
0
0
0
0
0
0
0
6,552
0.258441
8a1f6ceee24cfa74cb693e71048a38117f2ad54b
907
py
Python
base/admin.py
ExpertOfNone/expert_of_none
9ff4e4279a570712766546122c014c754f753485
[ "MIT" ]
null
null
null
base/admin.py
ExpertOfNone/expert_of_none
9ff4e4279a570712766546122c014c754f753485
[ "MIT" ]
null
null
null
base/admin.py
ExpertOfNone/expert_of_none
9ff4e4279a570712766546122c014c754f753485
[ "MIT" ]
null
null
null
from django.contrib import admin from base.models import Topic, Photo class EONBaseAdmin(admin.ModelAdmin): def get_changeform_initial_data(self, request): initial = super().get_changeform_initial_data(request) if 'add' in request.META['PATH_INFO']: initial['created_by'] = request....
21.093023
96
0.675854
747
0.823594
0
0
0
0
0
0
146
0.16097
8a1ff54283494d2484e0c67f1c0d0ff7dcc46387
1,165
py
Python
met/metadataparser/models/entity_type.py
z1digitalstudio/met
7840e7520bb4c3cb0328d5988468eefe6639f950
[ "BSD-2-Clause" ]
11
2016-06-30T13:20:39.000Z
2021-01-14T20:53:15.000Z
met/metadataparser/models/entity_type.py
z1digitalstudio/met
7840e7520bb4c3cb0328d5988468eefe6639f950
[ "BSD-2-Clause" ]
50
2016-02-03T14:49:06.000Z
2022-02-24T01:35:50.000Z
met/metadataparser/models/entity_type.py
z1digitalstudio/met
7840e7520bb4c3cb0328d5988468eefe6639f950
[ "BSD-2-Clause" ]
9
2016-04-22T19:24:36.000Z
2022-01-11T10:30:54.000Z
################################################################# # MET v2 Metadate Explorer Tool # # This Software is Open Source. See License: https://github.com/TERENA/met/blob/master/LICENSE.md # Copyright (c) 2012, TERENA All rights reserved. # # This Software is based on MET v1 developed for TERENA by Yaco Sistem...
38.833333
97
0.614592
433
0.371674
0
0
0
0
0
0
708
0.607725
8a2004bf04417c6b520430e6ac9ec351a3c37f83
9,312
py
Python
wxpy/bot.py
daimajia/wxpy
2b56fb67b9ccb072538fd778a27a8fef8d9c93e6
[ "MIT" ]
34
2017-03-01T06:32:04.000Z
2021-11-16T12:48:46.000Z
wxpy/bot.py
daimajia/wxpy
2b56fb67b9ccb072538fd778a27a8fef8d9c93e6
[ "MIT" ]
null
null
null
wxpy/bot.py
daimajia/wxpy
2b56fb67b9ccb072538fd778a27a8fef8d9c93e6
[ "MIT" ]
17
2017-03-01T08:41:22.000Z
2021-09-16T06:25:43.000Z
import traceback from pprint import pformat from threading import Thread import itchat import logging from wxpy.chat import Chat from wxpy.chats import Chats from wxpy.friend import Friend from wxpy.group import Group from wxpy.message import MessageConfigs, Messages, Message, MessageConfig from wxpy.mp import MP fro...
27.22807
94
0.560997
10,171
0.94861
1,122
0.104645
3,286
0.306473
0
0
3,921
0.365697
8a2014bc56418a4e4967160efe3f9656c573b77f
1,432
py
Python
glue/__init__.py
HPLegion/glue
1843787ccb4de852dfe103ff58473da13faccf5f
[ "BSD-3-Clause" ]
550
2015-01-08T13:51:06.000Z
2022-03-31T11:54:47.000Z
glue/__init__.py
HPLegion/glue
1843787ccb4de852dfe103ff58473da13faccf5f
[ "BSD-3-Clause" ]
1,362
2015-01-03T19:15:52.000Z
2022-03-30T13:23:11.000Z
glue/__init__.py
HPLegion/glue
1843787ccb4de852dfe103ff58473da13faccf5f
[ "BSD-3-Clause" ]
142
2015-01-08T13:08:00.000Z
2022-03-18T13:25:57.000Z
# Set up configuration variables __all__ = ['custom_viewer', 'qglue', 'test'] import os import sys from pkg_resources import get_distribution, DistributionNotFound try: __version__ = get_distribution('glue-core').version except DistributionNotFound: __version__ = 'undefined' from ._mpl_backend import Matp...
26.036364
78
0.775838
0
0
0
0
0
0
0
0
503
0.351257
8a2036147565ecfe3e374843c7669120715a456c
93
py
Python
run.py
pran01/AlgoVision
40e85f3c55266f43ee103dfa0852a63af306a8d4
[ "MIT" ]
33
2020-10-05T01:04:55.000Z
2021-06-24T01:52:31.000Z
run.py
learning-zones/AlgoVision
9261e00ecb2540d8bb950d47d670bb6b2c69db0f
[ "MIT" ]
14
2020-10-07T03:15:12.000Z
2021-01-15T11:53:29.000Z
run.py
learning-zones/AlgoVision
9261e00ecb2540d8bb950d47d670bb6b2c69db0f
[ "MIT" ]
9
2020-10-05T07:16:45.000Z
2021-03-01T15:44:31.000Z
from algovision import app if(__name__=="__main__"): app.run(debug=True,host='0.0.0.0')
18.6
38
0.688172
0
0
0
0
0
0
0
0
19
0.204301
8a206c0ba5cec93f4c2890bee22ea35305190260
1,477
py
Python
readthedocs/settings/proxito/base.py
rffontenelle/readthedocs.org
a7a9072215551156b9ddc22280cc085944eaa4b0
[ "MIT" ]
null
null
null
readthedocs/settings/proxito/base.py
rffontenelle/readthedocs.org
a7a9072215551156b9ddc22280cc085944eaa4b0
[ "MIT" ]
null
null
null
readthedocs/settings/proxito/base.py
rffontenelle/readthedocs.org
a7a9072215551156b9ddc22280cc085944eaa4b0
[ "MIT" ]
null
null
null
""" Base settings for Proxito Some of these settings will eventually be backported into the main settings file, but currently we have them to be able to run the site with the old middleware for a staged rollout of the proxito code. """ class CommunityProxitoSettingsMixin: ROOT_URLCONF = 'readthedocs.proxito.url...
31.425532
81
0.65606
1,237
0.837508
0
0
893
0.604604
0
0
749
0.507109
8a20872ac762ad5db9d06e05df401ef72a6b24c6
69,998
py
Python
model_selection/tests/test_search.py
jessica-tu/jupyter
917e02bc29e0fa06bd8adb25fe5388ac381ec829
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
model_selection/tests/test_search.py
jessica-tu/jupyter
917e02bc29e0fa06bd8adb25fe5388ac381ec829
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
model_selection/tests/test_search.py
jessica-tu/jupyter
917e02bc29e0fa06bd8adb25fe5388ac381ec829
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
"""Test the search module""" from collections.abc import Iterable, Sized from io import StringIO from itertools import chain, product from functools import partial import pickle import sys from types import GeneratorType import re import numpy as np import scipy.sparse as sp import pytest from sklearn.utils.fixes im...
38.18767
79
0.629904
3,692
0.052744
0
0
11,765
0.168076
0
0
17,052
0.243607
8a20b188a03474ef2ca2b4263906e89597ed6c86
6,029
py
Python
src/economy/migrations/0027_zettlebalance_zettlereceipt.py
bornhack/bornhack-website
40ed0875f5129a4c8ae1887e33e7dedb4981dadc
[ "BSD-3-Clause" ]
7
2017-04-14T15:28:29.000Z
2021-09-10T09:45:38.000Z
src/economy/migrations/0027_zettlebalance_zettlereceipt.py
bornhack/bornhack-website
40ed0875f5129a4c8ae1887e33e7dedb4981dadc
[ "BSD-3-Clause" ]
799
2016-04-28T09:31:50.000Z
2022-03-29T09:05:02.000Z
src/economy/migrations/0027_zettlebalance_zettlereceipt.py
bornhack/bornhack-website
40ed0875f5129a4c8ae1887e33e7dedb4981dadc
[ "BSD-3-Clause" ]
35
2016-04-28T09:23:53.000Z
2021-05-02T12:36:01.000Z
# Generated by Django 3.2.7 on 2021-09-13 03:52 import uuid from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("economy", "0026_alter_clearhaussettlement_options"), ] operations = [ migrations.CreateModel( name="ZettleBalance",...
35.674556
137
0.379499
5,923
0.982418
0
0
0
0
0
0
1,369
0.227069
8a20b1d12635ada6c636b100e165021b86485320
2,854
py
Python
main.py
vkumarma/Complete-Interpreter
5ec15ea84b0e7e735328511cc504efa43638f720
[ "MIT" ]
null
null
null
main.py
vkumarma/Complete-Interpreter
5ec15ea84b0e7e735328511cc504efa43638f720
[ "MIT" ]
null
null
null
main.py
vkumarma/Complete-Interpreter
5ec15ea84b0e7e735328511cc504efa43638f720
[ "MIT" ]
null
null
null
import re import sys class Lexer: def __init__(self, inp_str): self.index = 0 self.s = inp_str def get_char(self): if self.index < len(self.s): var = self.s[self.index] self.index += 1 return var input_file = open(str(sys.argv[1]), 'r') # Open fi...
23.983193
72
0.590049
243
0.085144
0
0
0
0
0
0
377
0.132095
8a20dee928bb3a353769ebc5d7c40156ab5eb131
306
py
Python
deduplicate.py
Ghostofapacket/NewsGrabber-Deduplicate
0b8152af2e1c6c87cf8540970f42084b96a99d9c
[ "Unlicense" ]
null
null
null
deduplicate.py
Ghostofapacket/NewsGrabber-Deduplicate
0b8152af2e1c6c87cf8540970f42084b96a99d9c
[ "Unlicense" ]
null
null
null
deduplicate.py
Ghostofapacket/NewsGrabber-Deduplicate
0b8152af2e1c6c87cf8540970f42084b96a99d9c
[ "Unlicense" ]
null
null
null
import sys sys.path.append('/usr/local/lib/python3.4/site-packages/') from warc_dedup import deduplicate def main(): if len(sys.argv) == 1: raise Exception('Please provide the WARC file as argument.') deduplicate.Warc(*sys.argv[1:]).deduplicate() if __name__ == '__main__': main()
20.4
68
0.679739
0
0
0
0
0
0
0
0
94
0.30719
8a20fc9b93bd3fc7e19c79190d5875b049bc7526
4,136
py
Python
build/lib/FinMesh/usgov/__init__.py
johnjdailey/FinMesh
64048b02bfec1a24de840877b38e82f4fa813d22
[ "MIT" ]
1
2020-08-14T16:09:54.000Z
2020-08-14T16:09:54.000Z
build/lib/FinMesh/usgov/__init__.py
johnjdailey/FinMesh
64048b02bfec1a24de840877b38e82f4fa813d22
[ "MIT" ]
null
null
null
build/lib/FinMesh/usgov/__init__.py
johnjdailey/FinMesh
64048b02bfec1a24de840877b38e82f4fa813d22
[ "MIT" ]
null
null
null
import os import requests import xmltodict import csv import json # # # # # # # # # # # FRED DATA BELOW # # # # # # # # # # # FRED_BASE_URL = 'https://api.stlouisfed.org/fred/' GEOFRED_BASE_URL = 'https://api.stlouisfed.org/geofred/' def append_fred_token(url): token = os.getenv('FRED_TOKEN') return f'{url}&...
44
259
0.676499
0
0
0
0
0
0
0
0
1,869
0.451886
8a22e67655b4062b0aecbc7e8062db32e1383d10
1,268
py
Python
settings.py
Cradac/mattermost-octane-integration
6a3cb4d2e0854cbf190f66467b604e6e4344a907
[ "MIT" ]
null
null
null
settings.py
Cradac/mattermost-octane-integration
6a3cb4d2e0854cbf190f66467b604e6e4344a907
[ "MIT" ]
null
null
null
settings.py
Cradac/mattermost-octane-integration
6a3cb4d2e0854cbf190f66467b604e6e4344a907
[ "MIT" ]
null
null
null
''' This is the Settings File for the Mattermost-Octane Bridge. You can change various variables here to customize and set up the client. ''' '''----------------------Mattermost Webhook Configuration----------------------''' #URL of the webhook from mattermost. To create one go to `Main Menu -> Integrations -> Incom...
34.27027
138
0.706625
0
0
0
0
0
0
0
0
1,123
0.885647
8a23dbe8e2d12d3a5feea4e2c5b3fc204f837e5d
10
py
Python
python/testData/console/indent7.after.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/console/indent7.after.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/console/indent7.after.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
print(1)
10
10
0.6
0
0
0
0
0
0
0
0
0
0