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
7977db62215e9b496e8e044e4617202062144c84
353
py
Python
pkg/__init__.py
bthornton191/drilling
2aae7a815670e79ef4f990843cba25349fc38166
[ "MIT" ]
null
null
null
pkg/__init__.py
bthornton191/drilling
2aae7a815670e79ef4f990843cba25349fc38166
[ "MIT" ]
3
2020-03-24T16:49:49.000Z
2021-02-02T21:57:29.000Z
pkg/__init__.py
bthornton191/drilling
2aae7a815670e79ef4f990843cba25349fc38166
[ "MIT" ]
1
2020-05-05T08:16:26.000Z
2020-05-05T08:16:26.000Z
# --------------------- version = '0.2.7' version_notes = 'minor bug fix' date = 'February 25th, 2020' # --------------------- author = 'Ben Thornton' author_email = 'ben.thornton@mscsoftware.com' name = 'dripy' install_requires = ['thornpy', 'numpy', 'pandas', 'scipy', 'matplotlib', 'lasio'] description = 'Python tool...
35.3
81
0.620397
7977dc176940df63f417547960270b43166904c2
23,383
py
Python
src/Bot.py
nzwl702/BlobReaper
8610d7d6a2b4f5ba00b74ff2f1431684a5ddabf9
[ "MIT" ]
null
null
null
src/Bot.py
nzwl702/BlobReaper
8610d7d6a2b4f5ba00b74ff2f1431684a5ddabf9
[ "MIT" ]
null
null
null
src/Bot.py
nzwl702/BlobReaper
8610d7d6a2b4f5ba00b74ff2f1431684a5ddabf9
[ "MIT" ]
2
2020-03-28T19:48:37.000Z
2020-03-29T19:29:38.000Z
import discord import asyncio from User import User from Items import Items import sys import os from random import seed from random import randint from datetime import datetime from datetime import timedelta # change before pushing TOKEN = '' client = discord.Client() seed() prefix = ';' user_data...
42.207581
127
0.513621
7977dd267a15b950c4df4df2a7363c1a2b9a1716
7,157
py
Python
python_modules/dagster-celery/dagster_celery/cli.py
rparrapy/dagster
453ebedb326eae48b5f8fa2a4a3811d94629dc6e
[ "Apache-2.0" ]
1
2022-02-07T18:07:36.000Z
2022-02-07T18:07:36.000Z
python_modules/dagster-celery/dagster_celery/cli.py
david-alexander-white/dagster
1c341500bb2380e14873b59b7e25503270188bda
[ "Apache-2.0" ]
null
null
null
python_modules/dagster-celery/dagster_celery/cli.py
david-alexander-white/dagster
1c341500bb2380e14873b59b7e25503270188bda
[ "Apache-2.0" ]
null
null
null
import os import subprocess import uuid import click import yaml from celery.utils.nodenames import default_nodename, host_format from dagster import check, seven from dagster.core.instance import DagsterInstance from dagster.core.types.config.evaluator.validate import validate_config from dagster.utils import load_y...
35.256158
99
0.659215
7977de24321a9f374d504b1f8f05000331192eba
15,591
py
Python
Pastpaper-Downloader-GUI/Pastpaper_original.py
YHPeter/Python-Spider
88506040e72f53fc37fca7b4df0676993c489891
[ "MIT" ]
2
2020-03-01T06:59:08.000Z
2020-03-01T06:59:15.000Z
Pastpaper-Downloader-GUI/Pastpaper_original.py
YHPeter/Python-Web-Crawler
88506040e72f53fc37fca7b4df0676993c489891
[ "MIT" ]
null
null
null
Pastpaper-Downloader-GUI/Pastpaper_original.py
YHPeter/Python-Web-Crawler
88506040e72f53fc37fca7b4df0676993c489891
[ "MIT" ]
null
null
null
# -*- utf-8 -*- from PyQt5 import QtCore,QtGui,QtWidgets from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets import * import re,requests,os,sys,queue,time from bs4 import BeautifulSoup from fake_useragent import UserAgent ua = UserAgent() all_header_checkbox = [] class Ui_MainWindow(object): ...
46.401786
169
0.639856
7977de3c535e4504c9b83a7e022d621262805ac9
3,487
py
Python
tensorflow_datasets/conftest.py
jvishnuvardhan/datasets
b8e38187058f1221e67c6291b3f29385ebb35fa2
[ "Apache-2.0" ]
3,380
2018-09-11T05:03:31.000Z
2022-03-31T20:04:57.000Z
tensorflow_datasets/conftest.py
jvishnuvardhan/datasets
b8e38187058f1221e67c6291b3f29385ebb35fa2
[ "Apache-2.0" ]
3,142
2018-09-14T10:09:00.000Z
2022-03-31T18:25:44.000Z
tensorflow_datasets/conftest.py
jvishnuvardhan/datasets
b8e38187058f1221e67c6291b3f29385ebb35fa2
[ "Apache-2.0" ]
1,438
2018-09-16T13:58:22.000Z
2022-03-31T11:19:54.000Z
# coding=utf-8 # Copyright 2021 The TensorFlow Datasets 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 appl...
33.854369
136
0.78004
7977de47f89444ad780dd384748e584f15925a5c
4,097
py
Python
src/numtoword/num2word_IT.py
guildenstern70/pyfab
34d786fec17192591ac3c5f73913a9b04311695a
[ "MIT" ]
null
null
null
src/numtoword/num2word_IT.py
guildenstern70/pyfab
34d786fec17192591ac3c5f73913a9b04311695a
[ "MIT" ]
7
2015-12-18T15:37:07.000Z
2021-06-10T23:35:04.000Z
src/numtoword/num2word_IT.py
guildenstern70/pyfab
34d786fec17192591ac3c5f73913a9b04311695a
[ "MIT" ]
null
null
null
# coding=utf-8 from __future__ import division import num2word_EU class Num2Word_IT(num2word_EU.Num2Word_EU): def set_high_numwords(self, high): mx = 3 + 3*len(high) for word, n in zip(high, range(mx, 3, -3)): self.cards[10**n] = word + "ilioni" def setup(self): sel...
34.428571
83
0.478643
7977de77a970bd710949084f7cc20f11b1729996
1,675
py
Python
salt/modules/nxos.py
springborland/salt
bee85e477d57e9a171884e54fefb9a59d0835ed0
[ "Apache-2.0" ]
1
2021-09-06T00:14:04.000Z
2021-09-06T00:14:04.000Z
salt/modules/nxos.py
springborland/salt
bee85e477d57e9a171884e54fefb9a59d0835ed0
[ "Apache-2.0" ]
2
2021-04-30T21:17:57.000Z
2021-12-13T20:40:23.000Z
salt/modules/nxos.py
springborland/salt
bee85e477d57e9a171884e54fefb9a59d0835ed0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Execution module for Cisco NX OS Switches Proxy minions .. versionadded:: 2016.11.0 For documentation on setting up the nxos proxy minion look in the documentation for :mod:`salt.proxy.nxos <salt.proxy.nxos>`. """ # Import Python libs from __future__ import absolute_import, print_function,...
24.632353
106
0.65791
7977dee946db531ce4aa83b9d2000ece359882df
614
py
Python
scrappers/constants_scrappers.py
paucutrina/FlashWit
091fb8ebb31d49a7fa7d8eed38966cb771477980
[ "Apache-2.0" ]
null
null
null
scrappers/constants_scrappers.py
paucutrina/FlashWit
091fb8ebb31d49a7fa7d8eed38966cb771477980
[ "Apache-2.0" ]
null
null
null
scrappers/constants_scrappers.py
paucutrina/FlashWit
091fb8ebb31d49a7fa7d8eed38966cb771477980
[ "Apache-2.0" ]
null
null
null
from enum import Enum class Constants: TAGS = ['Price', 'Value', 'Daily', 'Weekly', 'Monthly', 'Yearly', 'Date'] WEBSITE = "https://tradingeconomics.com/stocks" FREQUENCY_SCRAPPING_MS = 100 COLUMNS_HISTORICAL_DATA = ["Date", "Close($)", "Volume", "Open($)", "High($)", "Low($)"] class FileNames: ...
20.466667
92
0.623779
7977defa538a8787c24c58457ab5b448b22f8f6c
14,298
py
Python
pysmt/type_checker.py
keram88/pysmt
ecf4ea4c709df8e5f1f768820ac0f6f74803ab42
[ "Apache-2.0" ]
null
null
null
pysmt/type_checker.py
keram88/pysmt
ecf4ea4c709df8e5f1f768820ac0f6f74803ab42
[ "Apache-2.0" ]
null
null
null
pysmt/type_checker.py
keram88/pysmt
ecf4ea4c709df8e5f1f768820ac0f6f74803ab42
[ "Apache-2.0" ]
1
2019-11-13T00:36:59.000Z
2019-11-13T00:36:59.000Z
# # This file is part of pySMT. # # Copyright 2014 Andrea Micheli and Marco Gario # # 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 ...
36.28934
83
0.623794
7977df155b31b918aa8aecf3d57e4f96a33af793
8,287
py
Python
doc/conf.py
ajdavis/yieldpoints
36e577c75bd40469131b22815a946ed0ac437ee1
[ "Apache-2.0" ]
1
2015-01-24T15:32:49.000Z
2015-01-24T15:32:49.000Z
doc/conf.py
ajdavis/yieldpoints
36e577c75bd40469131b22815a946ed0ac437ee1
[ "Apache-2.0" ]
null
null
null
doc/conf.py
ajdavis/yieldpoints
36e577c75bd40469131b22815a946ed0ac437ee1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # YieldPoints documentation build configuration file # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration values have a default; values that are com...
32.120155
145
0.721129
7977df41d14095108edff22b9f9ca153e7092796
12,123
py
Python
yggdrasil/examples/__init__.py
Xyzic/yggdrasil
44369514ffdf01960bfcce418c172dc6dc564051
[ "BSD-3-Clause" ]
null
null
null
yggdrasil/examples/__init__.py
Xyzic/yggdrasil
44369514ffdf01960bfcce418c172dc6dc564051
[ "BSD-3-Clause" ]
null
null
null
yggdrasil/examples/__init__.py
Xyzic/yggdrasil
44369514ffdf01960bfcce418c172dc6dc564051
[ "BSD-3-Clause" ]
null
null
null
"""Tools for accessing examples from python.""" import os import glob import logging from yggdrasil import tools, languages, serialize, constants # TODO: This can be generated from the drivers ext_map = dict(constants.LANG2EXT, executable='', make='.cpp', cmake='.cpp', function='', osr='...
39.747541
85
0.562732
7977e021507d674e0c7bd77bd0b883c83de2777a
2,725
py
Python
resemblance/main/similarity/similarityApplication.py
Sorarinu/ProjectP2016_F
388afadea7e6efa2a43404c66d545482d75b2944
[ "MIT" ]
null
null
null
resemblance/main/similarity/similarityApplication.py
Sorarinu/ProjectP2016_F
388afadea7e6efa2a43404c66d545482d75b2944
[ "MIT" ]
null
null
null
resemblance/main/similarity/similarityApplication.py
Sorarinu/ProjectP2016_F
388afadea7e6efa2a43404c66d545482d75b2944
[ "MIT" ]
null
null
null
#!/root/.pyenv/shims/python import json import os import random import sys import time import threading from functools import wraps from flask import Flask, abort, request, Response from api.search.loadModel import LoadModelFlag from api.create.scraping import Scraping from api.tag.loadModel import LoadModelTag from ...
26.980198
100
0.666789
7977e0a2dca8bf78a17f285bbd3aa58c6a95aad5
2,536
py
Python
instruments/common/example/recommenders/movielens_data.py
All-less/mxnet-speculative-synchronization
f9220e4d8451768eeee3e680bb0b2edf8f91b9f3
[ "MIT" ]
6
2017-12-09T06:36:20.000Z
2019-10-09T07:59:18.000Z
instruments/common/example/recommenders/movielens_data.py
All-less/mxnet-speculative-synchronization
f9220e4d8451768eeee3e680bb0b2edf8f91b9f3
[ "MIT" ]
null
null
null
instruments/common/example/recommenders/movielens_data.py
All-less/mxnet-speculative-synchronization
f9220e4d8451768eeee3e680bb0b2edf8f91b9f3
[ "MIT" ]
2
2019-12-27T12:24:08.000Z
2019-12-27T12:26:32.000Z
"""MovieLens data handling: download, parse, and expose as DataIter """ import logging import os import mxnet as mx def load_mldata_iter(filename, batch_size, delimiter='\t'): """Not particularly fast code to parse the text file and load it into three NDArray's and product an NDArrayIter """ user = []...
33.813333
89
0.615536
7977e36f0b4be9306c9ea8c414a740eecc8bf992
3,074
py
Python
release/scripts/mgear/rigbits/rbf_io.py
tk-aria/mgear4
eac1af6882dd7dc4cec1a4b71854040d376704ce
[ "MIT" ]
72
2020-09-28T20:00:59.000Z
2022-03-25T14:35:14.000Z
release/scripts/mgear/rigbits/rbf_io.py
Mikfr83/mgear4
2fa28080027f1004e8e0139ccf93f7ec2448b1fd
[ "MIT" ]
101
2020-09-28T19:53:53.000Z
2022-03-31T01:44:41.000Z
release/scripts/mgear/rigbits/rbf_io.py
Mikfr83/mgear4
2fa28080027f1004e8e0139ccf93f7ec2448b1fd
[ "MIT" ]
32
2020-10-09T10:49:45.000Z
2022-03-31T08:27:37.000Z
#!/usr/bin/env python """Handles the import and exporting of all supported RBF node types Attributes: RBF_FILE_EXTENSION (str): extention of the serialized json data RBF_MODULES (Dict): nodeType: module api, normalized to fit the rbfManager __author__ = "Rafael Villar" __email__ = "rav@ravrigs.com" """ # pyt...
25.404959
79
0.565062
7977e423599a8f61f9d6d5154363d96ecb2ad25d
283
py
Python
Chapter_1_Introduction/Easy_Problems/kattis_onechicken.py
BrandonTang89/CP4_Code
5114471f439978dd11f6f2cbf6af20ca654593da
[ "MIT" ]
2
2021-12-29T04:12:59.000Z
2022-03-30T09:32:19.000Z
Chapter_1_Introduction/Easy_Problems/kattis_onechicken.py
BrandonTang89/CP4_Code
5114471f439978dd11f6f2cbf6af20ca654593da
[ "MIT" ]
null
null
null
Chapter_1_Introduction/Easy_Problems/kattis_onechicken.py
BrandonTang89/CP4_Code
5114471f439978dd11f6f2cbf6af20ca654593da
[ "MIT" ]
1
2022-03-01T06:12:46.000Z
2022-03-01T06:12:46.000Z
''' Kattis - onechicken Just do. Time: O(1), Space: O(1) ''' a, b = map(int, input().split()) if b > a: print(f"Dr. Chaz will have {b-a} piece{'s' if b-a > 1 else ''} of chicken left over!") else: print(f"Dr. Chaz needs {a-b} more piece{'s' if a-b > 1 else ''} of chicken!")
25.727273
90
0.572438
7977e5e9e971bce3b1ebee6c09b5f64917d710de
13,898
py
Python
enaml/layout/constraint_variable.py
mmckerns/enaml
ebf417b4dce9132bffa038a588ad90436a59d37e
[ "BSD-3-Clause" ]
11
2015-01-04T14:29:23.000Z
2019-12-25T05:38:37.000Z
enaml/layout/constraint_variable.py
mmckerns/enaml
ebf417b4dce9132bffa038a588ad90436a59d37e
[ "BSD-3-Clause" ]
36
2015-02-20T00:56:53.000Z
2020-12-04T10:02:14.000Z
enaml/layout/constraint_variable.py
mmckerns/enaml
ebf417b4dce9132bffa038a588ad90436a59d37e
[ "BSD-3-Clause" ]
3
2015-11-19T15:11:37.000Z
2019-03-11T23:45:02.000Z
#------------------------------------------------------------------------------ # Copyright (c) 2011, Enthought, Inc. # All rights reserved. #------------------------------------------------------------------------------ from collections import defaultdict import operator STRENGTHS = set(['required', 'strong', 'med...
29.696581
79
0.55159
7977e6d473c35fa3a3c57bb44c50f66ca9f4c8c9
7,717
py
Python
sonnet/python/modules/pondering_rnn.py
ishandutta2007/sonnet
417a5bb73e579963728e3f9b40ad583ac014601a
[ "Apache-2.0" ]
345
2017-08-23T13:48:50.000Z
2022-03-17T05:43:34.000Z
sonnet/python/modules/pondering_rnn.py
ishandutta2007/sonnet
417a5bb73e579963728e3f9b40ad583ac014601a
[ "Apache-2.0" ]
8
2017-09-30T15:01:23.000Z
2019-12-18T08:46:08.000Z
sonnet/python/modules/pondering_rnn.py
ishandutta2007/sonnet
417a5bb73e579963728e3f9b40ad583ac014601a
[ "Apache-2.0" ]
224
2017-08-31T01:10:55.000Z
2022-03-09T06:14:12.000Z
# Copyright 2017 The Sonnet 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 l...
38.778894
80
0.686536
7977e72a94f0d33f4ccfd596c3abfa6a9ad86b56
887
py
Python
manga_py/providers/comicpunch_net.py
sonvt1710/manga-py
848a78e93b890af0c92056a1a9fc7f6ce5707cf6
[ "MIT" ]
337
2019-08-27T16:14:50.000Z
2022-03-29T09:58:22.000Z
manga_py/providers/comicpunch_net.py
sonvt1710/manga-py
848a78e93b890af0c92056a1a9fc7f6ce5707cf6
[ "MIT" ]
225
2019-08-25T15:02:01.000Z
2022-03-31T06:36:09.000Z
manga_py/providers/comicpunch_net.py
sonvt1710/manga-py
848a78e93b890af0c92056a1a9fc7f6ce5707cf6
[ "MIT" ]
41
2019-10-04T13:28:02.000Z
2022-03-19T08:18:34.000Z
from manga_py.provider import Provider from .helpers.std import Std from urllib import parse class ComicPunchNet(Provider, Std): def get_chapter_index(self) -> str: return self.re.search(r'[-/]((?:Annual|Issue|Chapter)-\w+)', self.chapter).group(1) def get_content(self): return self.http_get...
29.566667
95
0.673055
7977e767262e6f9ecb03e7c844b18d49ce417aa9
5,618
py
Python
sleekxmpp/xmlstream/matcher/xmlmask.py
calendar42/SleekXMPP--XEP-0080-
d7bd5fd29f26a5d7de872a49ff63a353b8043e49
[ "BSD-3-Clause" ]
1
2019-04-12T12:20:12.000Z
2019-04-12T12:20:12.000Z
jsb/contrib/sleekxmpp/xmlstream/matcher/xmlmask.py
Petraea/jsonbot
04a3a0c586a8a1a3b0e5316d10cda16df9be415b
[ "MIT" ]
null
null
null
jsb/contrib/sleekxmpp/xmlstream/matcher/xmlmask.py
Petraea/jsonbot
04a3a0c586a8a1a3b0e5316d10cda16df9be415b
[ "MIT" ]
1
2020-05-06T18:46:53.000Z
2020-05-06T18:46:53.000Z
""" SleekXMPP: The Sleek XMPP Library Copyright (C) 2010 Nathanael C. Fritz This file is part of SleekXMPP. See the file LICENSE for copying permission. """ import logging from xml.parsers.expat import ExpatError from sleekxmpp.xmlstream.stanzabase import ET from sleekxmpp.xmlstream.matcher.base im...
35.333333
79
0.595408
7977e76a5b1a40f3fa8d5bc91db30f30abf7921a
6,245
py
Python
rdkit/Chem/MolDb/Loader_sa.py
jungb-basf/rdkit
5d0eb77c655b6ba91f0891e7dc51e658aced3d00
[ "BSD-3-Clause" ]
4
2020-12-29T14:52:15.000Z
2021-08-28T08:12:45.000Z
rdkit/Chem/MolDb/Loader_sa.py
jungb-basf/rdkit
5d0eb77c655b6ba91f0891e7dc51e658aced3d00
[ "BSD-3-Clause" ]
9
2016-08-08T13:53:40.000Z
2020-03-08T05:52:07.000Z
rdkit/Chem/MolDb/Loader_sa.py
bp-kelley/rdkit
e0de7c9622ce73894b1e7d9568532f6d5638058a
[ "BSD-3-Clause" ]
4
2020-03-30T04:00:53.000Z
2021-02-25T23:11:52.000Z
# $Id$ # # Copyright (C) 2007-2009 Greg Landrum # @@ All Rights Reserved @@ # This file is part of the RDKit. # The contents are covered by the terms of the BSD license # which is included in the file license.txt, found at the root # of the RDKit source tree. # import sqlalchemy from rdkit import Chem from rdki...
28.646789
95
0.652202
7977e79734a1ab6c568a8c67874eb4d5fbd607db
798
py
Python
setup.py
Jasonlee229723/wechatpayv3
cc70260e5ce463f4a4e5a93077d8c08b4762569a
[ "MIT" ]
null
null
null
setup.py
Jasonlee229723/wechatpayv3
cc70260e5ce463f4a4e5a93077d8c08b4762569a
[ "MIT" ]
null
null
null
setup.py
Jasonlee229723/wechatpayv3
cc70260e5ce463f4a4e5a93077d8c08b4762569a
[ "MIT" ]
null
null
null
from setuptools import setup with open("README.md", "r", encoding="utf8") as f: long_description = f.read() setup( name="wechatpayv3", version="1.2.7", author="minibear", description="微信支付 API v3 Python SDK(python sdk for wechatpay v3)", long_description=long_description, long_description...
30.692308
70
0.652882
7977e7f421f61ab578435fb208f86dcd699771c1
427
py
Python
examples/example04.py
pyrate-build/pyrate-build
8ce9c2dd2b94b50aebfd058e1dd8731cbb192e6d
[ "Apache-2.0" ]
41
2016-01-14T15:28:53.000Z
2022-03-17T12:43:01.000Z
examples/example04.py
pyrate-build/pyrate-build
8ce9c2dd2b94b50aebfd058e1dd8731cbb192e6d
[ "Apache-2.0" ]
5
2016-01-20T09:42:30.000Z
2016-12-22T22:54:27.000Z
examples/example04.py
pyrate-build/pyrate-build
8ce9c2dd2b94b50aebfd058e1dd8731cbb192e6d
[ "Apache-2.0" ]
3
2016-01-20T09:40:28.000Z
2020-10-29T09:33:48.000Z
#!/usr/bin/env pyrate foo_lib_a = shared_library('libExample04a', ['foo.cpp'], compiler_opts = ['-O3', '-fPIC']) ex_a = executable('example04a.bin', ['test.cpp', foo_lib_a]) foo_lib_b = shared_library('libExample04b', ['foo.cpp'], compiler_opts = '-O3') ex_b = executable('example04b.bin', ['test.cpp', foo_lib_b]) ex_...
38.818182
90
0.693208
7977e7ff211e0165d9adb19dd2cb567cc9ad6b11
5,607
py
Python
pgmpy/tests/test_estimators/test_MaximumLikelihoodEstimator.py
xipeng-jin/pgmpy
54c6222d1d5f33efa6699a7de7a7b2d91b1f9160
[ "MIT" ]
null
null
null
pgmpy/tests/test_estimators/test_MaximumLikelihoodEstimator.py
xipeng-jin/pgmpy
54c6222d1d5f33efa6699a7de7a7b2d91b1f9160
[ "MIT" ]
null
null
null
pgmpy/tests/test_estimators/test_MaximumLikelihoodEstimator.py
xipeng-jin/pgmpy
54c6222d1d5f33efa6699a7de7a7b2d91b1f9160
[ "MIT" ]
null
null
null
import unittest import pandas as pd import numpy as np from pgmpy.models import BayesianModel from pgmpy.estimators import MaximumLikelihoodEstimator from pgmpy.factors.discrete import TabularCPD class TestMLE(unittest.TestCase): def setUp(self): self.m1 = BayesianModel([("A", "C"), ("B", "C")]) ...
34.611111
85
0.427323
7977e87034b953d4da09b5e51d3d86d85fa6b08b
2,191
py
Python
src/tests/conftest.py
huaweicloud/huaweicloud-sdk-python-obs
c3447b8a9f22e6abca2be635e550a4e7a5da00f4
[ "ECL-2.0", "Apache-2.0" ]
47
2019-03-12T08:11:39.000Z
2021-12-13T07:21:48.000Z
src/tests/conftest.py
huaweicloud/huaweicloud-sdk-python-obs
c3447b8a9f22e6abca2be635e550a4e7a5da00f4
[ "ECL-2.0", "Apache-2.0" ]
15
2019-06-10T06:47:06.000Z
2022-03-30T21:10:02.000Z
src/tests/conftest.py
huaweicloud/huaweicloud-sdk-python-obs
c3447b8a9f22e6abca2be635e550a4e7a5da00f4
[ "ECL-2.0", "Apache-2.0" ]
32
2019-06-14T08:22:57.000Z
2022-03-29T07:56:21.000Z
# coding:utf-8 import hashlib import json import os import random import sys import pytest sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '../'))) from obs.const import IS_PYTHON2 if IS_PYTHON2: chr = unichr def read_env_info(): with open(os.path.join(os.getcwd(), "test_config.jso...
28.454545
96
0.649019
7977e8845a0777d6e13933288dfab2974bcf253a
3,374
py
Python
tests/unit/cli_test.py
hiradyazdan/nginx-amplify-agent-health-check
7aa0fa2aba082491b1b47c2b6189a9266245f647
[ "MIT" ]
2
2018-05-23T17:34:28.000Z
2018-07-09T21:55:53.000Z
tests/unit/cli_test.py
hiradyazdan/nginx-amplify-agent-health-check
7aa0fa2aba082491b1b47c2b6189a9266245f647
[ "MIT" ]
null
null
null
tests/unit/cli_test.py
hiradyazdan/nginx-amplify-agent-health-check
7aa0fa2aba082491b1b47c2b6189a9266245f647
[ "MIT" ]
null
null
null
import mock import pytest import StringIO import sys from amplifyhealthcheck.cli import init_cli, cli_args from unittest import TestCase xfail = pytest.mark.xfail class ConsoleTestCase(TestCase): # @xfail # @pytest.mark.focus @mock.patch('sys.exit') @mock.patch('atexit.register') @mock.patch('am...
31.830189
112
0.627742
7977e99838cb0569e751cb65edb35a31e1cc05a7
545
py
Python
.history/ClassFiles/OOP/InstanciatingAClass_20210103152003.py
minefarmer/Comprehensive-Python
f97b9b83ec328fc4e4815607e6a65de90bb8de66
[ "Unlicense" ]
null
null
null
.history/ClassFiles/OOP/InstanciatingAClass_20210103152003.py
minefarmer/Comprehensive-Python
f97b9b83ec328fc4e4815607e6a65de90bb8de66
[ "Unlicense" ]
null
null
null
.history/ClassFiles/OOP/InstanciatingAClass_20210103152003.py
minefarmer/Comprehensive-Python
f97b9b83ec328fc4e4815607e6a65de90bb8de66
[ "Unlicense" ]
null
null
null
''' instantiating a class The process of creating a an object from a class. ''' class Instructors: companyName = "Bluelime" # I've defined the class on this line. def __init__(self,course): # __init__ is a built-in function. It is called the initializer self.course = course...
23.695652
95
0.666055
7977eadba949df6f42938f2adec07632a58d3537
4,949
py
Python
code_generation/quantities/nanoAOD.py
KIT-CMS/ToBeNamedPrototype
518cef829df1e1b5ca73e8f56dffff1b6d5d241b
[ "MIT" ]
3
2021-05-07T12:22:39.000Z
2022-02-15T08:33:48.000Z
code_generation/quantities/nanoAOD.py
KIT-CMS/CROWN
c23e6884477e4c29ad31fae2ce9fe499f2177cc1
[ "MIT" ]
53
2021-05-06T11:31:48.000Z
2022-03-30T06:51:48.000Z
code_generation/quantities/nanoAOD.py
KIT-CMS/ToBeNamedPrototype
518cef829df1e1b5ca73e8f56dffff1b6d5d241b
[ "MIT" ]
1
2021-05-01T09:52:46.000Z
2021-05-01T09:52:46.000Z
from code_generation.quantity import NanoAODQuantity run = NanoAODQuantity("run") luminosityBlock = NanoAODQuantity("luminosityBlock") event = NanoAODQuantity("event") Tau_pt = NanoAODQuantity("Tau_pt") Tau_eta = NanoAODQuantity("Tau_eta") Tau_phi = NanoAODQuantity("Tau_phi") Tau_mass = NanoAODQuantity("Tau_mass") Ta...
43.79646
93
0.841382
7977eaf334eb73b8df4fa2bbd37eb7034c1d83f3
16,847
py
Python
redbeat/schedulers.py
bertosantamaria/redbeat
3bd01210353126db6f37388b2b171ba40817457f
[ "Apache-2.0" ]
null
null
null
redbeat/schedulers.py
bertosantamaria/redbeat
3bd01210353126db6f37388b2b171ba40817457f
[ "Apache-2.0" ]
null
null
null
redbeat/schedulers.py
bertosantamaria/redbeat
3bd01210353126db6f37388b2b171ba40817457f
[ "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 # Copyright 2015 Marc Sibson from __future__ import absolute_import import calendar import logging i...
34.522541
99
0.624503
7977eba2d5d24c63ad5c21f7db2935bd95bdcc2e
7,672
py
Python
test/test_build_ext_profile_generate.py
esoma/pgo
7960dac20431dd6358bceb17a70250637d0d7f53
[ "MIT" ]
1
2022-01-29T20:57:45.000Z
2022-01-29T20:57:45.000Z
test/test_build_ext_profile_generate.py
esoma/pgo
7960dac20431dd6358bceb17a70250637d0d7f53
[ "MIT" ]
4
2021-03-18T01:13:15.000Z
2021-08-30T12:16:48.000Z
test/test_build_ext_profile_generate.py
esoma/pgo
7960dac20431dd6358bceb17a70250637d0d7f53
[ "MIT" ]
null
null
null
# pgo import pgo from pgo.setuptools import compiler # pytest import pytest # python import os import sys # setuptools import distutils.errors from setuptools import Distribution @pytest.fixture def distribution(extension, extension2, cython_extension, mypyc_extension): return Distribution({ ...
30.935484
80
0.632299
7977ec345945fc1da7007617dde47a3decebffd9
101,261
py
Python
src/qfit/structure/rotamers.py
ss199514/qfit-3.0
4150c0864f4438092bab68ad2c8aa32df3a563ba
[ "MIT" ]
null
null
null
src/qfit/structure/rotamers.py
ss199514/qfit-3.0
4150c0864f4438092bab68ad2c8aa32df3a563ba
[ "MIT" ]
null
null
null
src/qfit/structure/rotamers.py
ss199514/qfit-3.0
4150c0864f4438092bab68ad2c8aa32df3a563ba
[ "MIT" ]
null
null
null
ROTAMERS = { # Alanine 'ALA': { 'atoms': ['N', 'CA', 'C', 'O', 'CB', ], 'hydrogens': 'H HA HB1 HB2 HB3'.split(), 'bonds': [ ['N', 'CA'], ['CA', 'C'], ['C', 'O'], ['CA', 'CB'], ['N','H'],['CA','HA'],['CB','HB1'],['CB','HB2'], ['CB','HB3'], ], 'nchi': ...
35.806577
130
0.323165
7977eccba02928b7846321e736f1e8f1c664021f
537
py
Python
tests/hash.py
DAyrault/Digit_400_Project
eec19476c98416e855b12087907dc95bea8ea87a
[ "MIT" ]
null
null
null
tests/hash.py
DAyrault/Digit_400_Project
eec19476c98416e855b12087907dc95bea8ea87a
[ "MIT" ]
null
null
null
tests/hash.py
DAyrault/Digit_400_Project
eec19476c98416e855b12087907dc95bea8ea87a
[ "MIT" ]
null
null
null
from passlib.hash import sha256_crypt pass1 = "password1" pass2 = "passowrd2" salt = "password3" saltpass1 = pass1 + salt saltpass2 = pass2 + salt newpass1 = sha256_crypt.encrypt(saltpass1) newpass2 = sha256_crypt.encrypt(saltpass2) print(newpass1) print(newpass2) print(sha256_crypt.verify("password...
17.9
55
0.716946
7977ed1475894b4d9ac01d1289121cc967180a83
808
py
Python
venv/Scripts/rst2odt.py
cezar-godinho/mlops-curso
20f51edb8b293a89696a43f00198f35965fa319e
[ "FTL" ]
null
null
null
venv/Scripts/rst2odt.py
cezar-godinho/mlops-curso
20f51edb8b293a89696a43f00198f35965fa319e
[ "FTL" ]
null
null
null
venv/Scripts/rst2odt.py
cezar-godinho/mlops-curso
20f51edb8b293a89696a43f00198f35965fa319e
[ "FTL" ]
null
null
null
#!D:\Odyssey\flaskProject\mlops-deploy\venv\Scripts\python.exe # $Id: rst2odt.py 5839 2009-01-07 19:09:28Z dkuhlman $ # Author: Dave Kuhlman <dkuhlman@rexx.com> # Copyright: This module has been placed in the public domain. """ A front end to the Docutils Publisher, producing OpenOffice documents. """ import sys try...
26.064516
78
0.756188
7977ed37d351ca2f349ce175dd7e81006d24e1a4
1,636
py
Python
datasets_video.py
chenxuluo/GST-video
47d39fc33ce07c74ba732d02d88d8587af8ebb6c
[ "MIT" ]
46
2019-10-25T15:01:33.000Z
2021-11-23T08:50:04.000Z
datasets_video.py
chenxuluo/GST-video
47d39fc33ce07c74ba732d02d88d8587af8ebb6c
[ "MIT" ]
9
2019-10-23T09:03:29.000Z
2021-11-17T16:44:46.000Z
datasets_video.py
chenxuluo/GST-video
47d39fc33ce07c74ba732d02d88d8587af8ebb6c
[ "MIT" ]
11
2019-10-30T01:05:55.000Z
2021-12-30T14:51:36.000Z
import os import torch import torchvision import torchvision.datasets as datasets def return_somethingv1(ROOT_DATASET): filename_categories = 'somethingv1/category.txt' root_data = ROOT_DATASET + 'somethingv1/20bn-something-something-v1' filename_imglist_train = 'somethingv1/train.txt' filename_imglis...
41.948718
117
0.771394
7977ed5d5e572cd0e9ebc6388aa28ed83635f38c
746
py
Python
Mundo 2/038.py
eliascastrosousa/exerciciospythonmundo2
339100bb32df8fc0ad2b75db41fc89beba64f728
[ "MIT" ]
null
null
null
Mundo 2/038.py
eliascastrosousa/exerciciospythonmundo2
339100bb32df8fc0ad2b75db41fc89beba64f728
[ "MIT" ]
null
null
null
Mundo 2/038.py
eliascastrosousa/exerciciospythonmundo2
339100bb32df8fc0ad2b75db41fc89beba64f728
[ "MIT" ]
null
null
null
# Exercício Python 038: Escreva um programa que leia dois números inteiros e compare-os. mostrando na tela uma mensagem: # - O primeiro valor é maior # - O segundo valor é maior # - Não existe valor maior, os dois são iguais from time import sleep print('Bem vindo ao comparador de numeros! ') sleep(1) n1 = int(input('...
37.3
120
0.705094
7977edaa94d2b59eeb9a24c1a3f3c2cb860ec56a
1,749
py
Python
implementations/python3/setup.py
sebastien-riou/SATL
b95d0e784d2e8e1384381d4d5b8b448d3d1798cf
[ "Apache-2.0" ]
4
2020-05-13T10:13:55.000Z
2021-10-20T04:43:07.000Z
implementations/python3/setup.py
TiempoSecure/SATL
b95d0e784d2e8e1384381d4d5b8b448d3d1798cf
[ "Apache-2.0" ]
4
2020-07-22T16:06:31.000Z
2021-07-25T19:51:41.000Z
implementations/python3/setup.py
TiempoSecure/SATL
b95d0e784d2e8e1384381d4d5b8b448d3d1798cf
[ "Apache-2.0" ]
2
2019-05-12T21:15:00.000Z
2020-09-23T09:05:24.000Z
import setuptools from codecs import open as codec_open from os import close, unlink from os.path import abspath, dirname, join as joinpath from re import split as resplit, search as research META_PATH = joinpath('pysatl', '__init__.py') HERE = abspath(dirname(__file__)) def read(*parts): """ Build an absol...
26.5
77
0.645512
7977ee62dc737a62e1672d9ba0231753dea780e1
2,718
py
Python
tests/contrib/hooks/test_slack_webhook_hook.py
MAliNaqvi/incubator-airflow
63e761614869bd7cb93106f6235c50899ace3013
[ "Apache-2.0" ]
null
null
null
tests/contrib/hooks/test_slack_webhook_hook.py
MAliNaqvi/incubator-airflow
63e761614869bd7cb93106f6235c50899ace3013
[ "Apache-2.0" ]
null
null
null
tests/contrib/hooks/test_slack_webhook_hook.py
MAliNaqvi/incubator-airflow
63e761614869bd7cb93106f6235c50899ace3013
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # 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 ...
30.886364
74
0.635394
7977eed757abf16086844b364a77047ae3996532
3,200
py
Python
specutils/io/IUE.py
bsipocz/specutils
926920e1d70a0df1f7862363ca027eb723a61518
[ "BSD-3-Clause" ]
null
null
null
specutils/io/IUE.py
bsipocz/specutils
926920e1d70a0df1f7862363ca027eb723a61518
[ "BSD-3-Clause" ]
null
null
null
specutils/io/IUE.py
bsipocz/specutils
926920e1d70a0df1f7862363ca027eb723a61518
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from astropy.io import fits from astropy.nddata.nduncertainty import StdDevUncertainty from ..spectrum1d import Spectrum1D class ApertureException(Exception): def __init__(self, apertures): self.apertures = apertures def __str__(self): message = "There is more than o...
34.042553
91
0.62125
7977eefad7534486ed6ffde63cc064a96bd6351e
2,344
py
Python
chapter_1/IntQuest6.py
msSarriman/CrackingTheCodingInterview6thSolutions
c02b21eaca25afd1ec43d0805bcf56f294521397
[ "MIT" ]
null
null
null
chapter_1/IntQuest6.py
msSarriman/CrackingTheCodingInterview6thSolutions
c02b21eaca25afd1ec43d0805bcf56f294521397
[ "MIT" ]
null
null
null
chapter_1/IntQuest6.py
msSarriman/CrackingTheCodingInterview6thSolutions
c02b21eaca25afd1ec43d0805bcf56f294521397
[ "MIT" ]
null
null
null
""" MIT License Copyright (c) 2019 Emmanouil Sarris Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publi...
37.206349
99
0.724403
7977ef120a34cc844f231bcbfcc79c6d6aa97916
1,180
py
Python
examples/rosenbrock_cma-es.py
zhanglei1172/bbobenchmark
841bffdddc1320ac2676e378d20f8b176a7e6cf7
[ "MIT" ]
2
2021-09-06T02:06:22.000Z
2021-12-09T10:46:56.000Z
examples/rosenbrock_cma-es.py
zhanglei1172/bbobenchmark
841bffdddc1320ac2676e378d20f8b176a7e6cf7
[ "MIT" ]
null
null
null
examples/rosenbrock_cma-es.py
zhanglei1172/bbobenchmark
841bffdddc1320ac2676e378d20f8b176a7e6cf7
[ "MIT" ]
null
null
null
import numpy as np # import matplotlib.pyplot as plt from xbbo.search_space.fast_example_problem import build_space_hard, rosenbrock_2d_hard from xbbo.search_algorithm.cma_optimizer import CMAES if __name__ == "__main__": MAX_CALL = 1000 rng = np.random.RandomState(42) # define black box function b...
30.25641
87
0.676271
7977ef1a9c7bf2d5db3671a31b40d847949a5af9
1,884
py
Python
utils/arguments_parse.py
suolyer/PyTorch_BERT_MultiHead_NER
e77656224b781ec9923b2177bfe9eade03c646e0
[ "MIT" ]
17
2021-05-19T01:47:08.000Z
2022-03-19T05:08:08.000Z
utils/arguments_parse.py
suolyer/PyTorch_BERT_MultiHead_NER
e77656224b781ec9923b2177bfe9eade03c646e0
[ "MIT" ]
null
null
null
utils/arguments_parse.py
suolyer/PyTorch_BERT_MultiHead_NER
e77656224b781ec9923b2177bfe9eade03c646e0
[ "MIT" ]
5
2021-06-24T02:17:40.000Z
2022-03-13T11:18:30.000Z
# -*- coding:utf-8 -*- # @Time : 2020/11/3 14:22 # @Author: yangping import argparse parser = argparse.ArgumentParser(description="train") parser.add_argument("--train_path", type=str, default="./data/train.json",help="train file") parser.add_argument("--test_path", type=str, default="./data/test.json",help="test fi...
64.965517
139
0.760085
7977ef1f5b328f6cf833550de98dfa20a831d342
1,984
py
Python
bot/components/crypto.py
fossabot/jdan734-bot
25f6fd35c5b07711490c54c44dacf799a06d2f60
[ "MIT" ]
null
null
null
bot/components/crypto.py
fossabot/jdan734-bot
25f6fd35c5b07711490c54c44dacf799a06d2f60
[ "MIT" ]
null
null
null
bot/components/crypto.py
fossabot/jdan734-bot
25f6fd35c5b07711490c54c44dacf799a06d2f60
[ "MIT" ]
null
null
null
from .token import bot from random import choice import hashlib @bot.message_handler(commands=["sha256"]) def sha256(message): try: if message.reply_to_message.text: bot.reply_to(message, hashlib.sha256(bytearray(message.reply_to_message.text.encode("utf-8"))).hexdigest()) elif message...
33.627119
119
0.641633
7977ef4b94db44be821013a844d5c8f41371b75d
2,739
py
Python
util.py
yizi2002/flaskproject1
1ffe3d7f5822a9790f48f224813361dfed21db69
[ "Apache-2.0" ]
null
null
null
util.py
yizi2002/flaskproject1
1ffe3d7f5822a9790f48f224813361dfed21db69
[ "Apache-2.0" ]
null
null
null
util.py
yizi2002/flaskproject1
1ffe3d7f5822a9790f48f224813361dfed21db69
[ "Apache-2.0" ]
null
null
null
import time import pymysql def get_time(): # 里面会接受一个字符串的格式,假如里面没有传入第二个参数的话就会直接显示当前的时间 time_str = time.strftime("%Y{}%m{}%d{} %X") return time_str.format("年", "月", "日") pass def get_conn(): conn = pymysql.connect(host="127.0.0.1", user="root", ...
27.39
88
0.575027
7977ef6881676898997cc06f1c0b9d03e0f95026
26,285
py
Python
test/python/quantum_info/operators/test_operator.py
TheGupta2012/qiskit-terra
5ea6e9557655b144228c29d7099375f5d2c91120
[ "Apache-2.0" ]
1,599
2018-07-10T10:59:12.000Z
2022-03-31T23:56:25.000Z
test/python/quantum_info/operators/test_operator.py
TheGupta2012/qiskit-terra
5ea6e9557655b144228c29d7099375f5d2c91120
[ "Apache-2.0" ]
5,244
2018-07-10T06:20:13.000Z
2022-03-31T22:18:48.000Z
test/python/quantum_info/operators/test_operator.py
TheGupta2012/qiskit-terra
5ea6e9557655b144228c29d7099375f5d2c91120
[ "Apache-2.0" ]
1,409
2018-07-10T02:16:12.000Z
2022-03-31T09:01:32.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2017, 2019. # # 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 modifications or derivat...
39.172876
99
0.590413
7977efae386d1f3cb668f2d3fb2ab62038288482
585
py
Python
modules/spaghetti/modules/fingerprints/os/linux.py
GDGSNF/PXXTF
b1e081348c1e993c61213f3fd5f960894ce91d01
[ "MIT" ]
16
2020-10-03T22:01:46.000Z
2021-08-18T16:58:56.000Z
modules/spaghetti/modules/fingerprints/os/linux.py
GDGSNF/PXXTF
b1e081348c1e993c61213f3fd5f960894ce91d01
[ "MIT" ]
1
2021-10-18T00:13:27.000Z
2021-10-18T00:13:31.000Z
modules/spaghetti/modules/fingerprints/os/linux.py
yezz123/PXXTF
b1e081348c1e993c61213f3fd5f960894ce91d01
[ "MIT" ]
5
2020-10-16T11:07:45.000Z
2021-05-19T23:49:06.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Spaghetti: Web Application Security Scanner # # @url: https://github.com/m4ll0k/Spaghetti # @author: Momo Outaadi (M4ll0k) # @license: See the file 'doc/LICENSE' import re class Linux(): @staticmethod def Run(os): try: for item in list(os.items()): _ = re...
24.375
150
0.664957
7977f22d19ebed11cdc459ae4ef6674545417166
2,060
py
Python
2_funWithMPI/videoGenerator.py
ethiery/HPCassignments
c2d0eac5808394b5061efafc2d072551e631647d
[ "MIT" ]
null
null
null
2_funWithMPI/videoGenerator.py
ethiery/HPCassignments
c2d0eac5808394b5061efafc2d072551e631647d
[ "MIT" ]
null
null
null
2_funWithMPI/videoGenerator.py
ethiery/HPCassignments
c2d0eac5808394b5061efafc2d072551e631647d
[ "MIT" ]
null
null
null
import sys import os import numpy as np import matplotlib.pyplot as plt import matplotlib.animation as animation def readFile(file): x, y = [], [] with open(file, 'r') as f: f.readline() #skip first line for line in f: values = line.split(' ') x.append(float(values[1])) ...
25.75
113
0.655825
7977f2c2a4bf17d6ad4683e8ba16a1c5cf07b59b
977
py
Python
backend/api/migrations/0002_auto_20170930_1702.py
c-goldschmidt/FLShipMatrix
14a970b94e5f75ab5a4cc0efe2927957107f881a
[ "Unlicense" ]
1
2017-10-11T14:32:24.000Z
2017-10-11T14:32:24.000Z
backend/api/migrations/0002_auto_20170930_1702.py
c-goldschmidt/FLShipMatrix
14a970b94e5f75ab5a4cc0efe2927957107f881a
[ "Unlicense" ]
null
null
null
backend/api/migrations/0002_auto_20170930_1702.py
c-goldschmidt/FLShipMatrix
14a970b94e5f75ab5a4cc0efe2927957107f881a
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-09-30 17:02 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0001_initial'), ] operations = [ migrations.AddField( mo...
27.138889
85
0.57216
7977f3992b248897308c9929865fbf0ec25c00c4
7,201
py
Python
python_toolbox/upload_t2_results.py
laurelkeys/TanksAndTemples
da040f9f2e649e3c98a1aaeb7914df63c2d5b6e6
[ "MIT" ]
22
2019-04-17T11:21:35.000Z
2021-06-06T16:56:36.000Z
python_toolbox/upload_t2_results.py
laurelkeys/TanksAndTemples
da040f9f2e649e3c98a1aaeb7914df63c2d5b6e6
[ "MIT" ]
15
2019-05-22T09:19:50.000Z
2021-06-24T15:52:24.000Z
python_toolbox/upload_t2_results.py
laurelkeys/TanksAndTemples
da040f9f2e649e3c98a1aaeb7914df63c2d5b6e6
[ "MIT" ]
13
2019-04-26T16:50:13.000Z
2021-05-27T11:21:49.000Z
# ---------------------------------------------------------------------------- # - TanksAndTemples Website Toolbox - # - http://www.tanksandtemples.org - # ---------------------------------------------------------------------------- # Th...
33.966981
157
0.696848
7977f4015d637b127ab3a71959f9474595b1b8bd
2,526
py
Python
gam/spearman_distance.py
CentreInnovationLevio/global-attribution-mapping
068ce6071003433ef4a8381ae4dc0f54da4aa06e
[ "Apache-2.0" ]
null
null
null
gam/spearman_distance.py
CentreInnovationLevio/global-attribution-mapping
068ce6071003433ef4a8381ae4dc0f54da4aa06e
[ "Apache-2.0" ]
null
null
null
gam/spearman_distance.py
CentreInnovationLevio/global-attribution-mapping
068ce6071003433ef4a8381ae4dc0f54da4aa06e
[ "Apache-2.0" ]
null
null
null
""" Implementation of Spearman's Rho squared as a pairwise distance metric Base on http://www.plhyu.com/administrator/components/com_jresearch/files/publications/Mixtures_of_weighted_distance-based_models_for_ranking_data_with_applications_in_political_studies.pdf TODO: - add tests """ from sklearn.metrics import pai...
29.034483
181
0.674188
7977f4b53451e7a388894ea68b0cc60bf443f1dc
2,894
py
Python
machine_heart/machine_heart/spiders/jiqizhixin_detail.py
Deep-Heart/Spider
33fd548c025bd52571f52e4b53d8e7cb8570be6f
[ "Apache-2.0" ]
1
2017-04-21T03:44:22.000Z
2017-04-21T03:44:22.000Z
machine_heart/machine_heart/spiders/jiqizhixin_detail.py
Deep-Heart/Spider
33fd548c025bd52571f52e4b53d8e7cb8570be6f
[ "Apache-2.0" ]
null
null
null
machine_heart/machine_heart/spiders/jiqizhixin_detail.py
Deep-Heart/Spider
33fd548c025bd52571f52e4b53d8e7cb8570be6f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from datetime import datetime from scrapy import Selector from base.bloom_redis.spiders import RedisSpider from base.items import BaseDetailItem, ARTICLE_CONTENT, ARTICLE_LINK class JiqizhixinDetailSpider(RedisSpider): name = "jiqizhixin_detail" allowed_domains = ["jiqizhixin.com"] ...
41.342857
119
0.623359
7977f549f08333fc77226a1022222d7a186d92a5
2,106
py
Python
Code/recursion.py
Gary-Makeschool-Projects/cs13
a4fb0254e70ea6241ddddfb43726a02f7d19a2eb
[ "MIT" ]
null
null
null
Code/recursion.py
Gary-Makeschool-Projects/cs13
a4fb0254e70ea6241ddddfb43726a02f7d19a2eb
[ "MIT" ]
null
null
null
Code/recursion.py
Gary-Makeschool-Projects/cs13
a4fb0254e70ea6241ddddfb43726a02f7d19a2eb
[ "MIT" ]
null
null
null
#!python def factorial(n): """factorial(n) returns the product of the integers 1 through n for n >= 0, otherwise raises ValueError for n < 0 or non-integer n""" # check if n is negative or not an integer (invalid input) if not isinstance(n, int) or n < 0: raise ValueError('factorial is undefin...
30.970588
101
0.660969
7977f60ead418fb49dd1b4c1fc9c79155eb07c74
1,201
py
Python
utils.py
jaehwlee/silence-remover
5b45131d2c1979fed04ce2e09c2be4d6924b65e5
[ "Apache-2.0" ]
null
null
null
utils.py
jaehwlee/silence-remover
5b45131d2c1979fed04ce2e09c2be4d6924b65e5
[ "Apache-2.0" ]
null
null
null
utils.py
jaehwlee/silence-remover
5b45131d2c1979fed04ce2e09c2be4d6924b65e5
[ "Apache-2.0" ]
null
null
null
import numpy as np import librosa def remove_silence(audio, top_db=53, frame_length=1024, hop_length=256, skip_idx=0): # Trim leading and trailing silence from an audio signal _, trim_index = librosa.effects.trim(audio, top_db=20) audio = audio[max(trim_index[0], 0):min(trim_index[1], len(audio))] ...
31.605263
84
0.666112
7977f67b1327fe00425e876423b8fb0589e2c8a8
1,385
py
Python
pyroute/modules/ssh.py
eisaaclrubio/pyroute
6387accea5c50272677aa9b61372c94496579e68
[ "MIT" ]
4
2018-02-26T18:43:01.000Z
2018-03-13T19:01:14.000Z
pyroute/modules/ssh.py
eisaaclrubio/pyroute
6387accea5c50272677aa9b61372c94496579e68
[ "MIT" ]
34
2018-02-26T17:49:09.000Z
2018-03-28T16:09:25.000Z
pyroute/modules/ssh.py
eisaaclrubio/pyroute
6387accea5c50272677aa9b61372c94496579e68
[ "MIT" ]
9
2018-02-26T04:13:46.000Z
2018-04-12T01:51:34.000Z
from paramiko import SSHClient, AutoAddPolicy from pyroute.module import Module class SSHModule(Module): def __init__(self, config): self.config_data = super().\ __init__(config=config, defaults=self.defaults) self.module_config = self.config_data['defaults'] self.conn...
35.512821
72
0.638267
7977f8d8a86868a778fb9f0b8d3de655bab9710b
4,898
py
Python
app/user/tests/test_user_api.py
bkuser13/Django_Rest_API
f881559519eec8966148f25499ec04c449e5edbc
[ "MIT" ]
null
null
null
app/user/tests/test_user_api.py
bkuser13/Django_Rest_API
f881559519eec8966148f25499ec04c449e5edbc
[ "MIT" ]
null
null
null
app/user/tests/test_user_api.py
bkuser13/Django_Rest_API
f881559519eec8966148f25499ec04c449e5edbc
[ "MIT" ]
null
null
null
from django.test import TestCase from django.contrib.auth import get_user_model from django.urls import reverse from rest_framework.test import APIClient from rest_framework import status CREATE_USER_URL = reverse('user:create') TOKEN_URL = reverse('user:token') ME_URL = reverse('user:me') def create_user(**params...
31.397436
77
0.660882
7977f8e5ffe757a287b1309b25d736f9fe6de89b
35
py
Python
qa327_test/integration/login/test_login.py
327qabot/chad-CI-python
ca50e2f172a8efc67b63cd3250d2850517c1aeb9
[ "MIT" ]
null
null
null
qa327_test/integration/login/test_login.py
327qabot/chad-CI-python
ca50e2f172a8efc67b63cd3250d2850517c1aeb9
[ "MIT" ]
15
2020-10-15T17:02:08.000Z
2020-12-14T03:16:25.000Z
qa327_test/integration/login/test_login.py
327qabot/chad-CI-python
ca50e2f172a8efc67b63cd3250d2850517c1aeb9
[ "MIT" ]
2
2020-12-11T17:51:36.000Z
2021-10-05T23:07:21.000Z
# All tests for R1 - /login go here
35
35
0.685714
7977fb25af0eee763afdfb303feb8667f1c96be9
5,688
py
Python
google/ads/googleads/v8/googleads-py/google/ads/googleads/v8/resources/types/bidding_seasonality_adjustment.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
7
2021-02-21T10:39:41.000Z
2021-12-07T07:31:28.000Z
google/ads/googleads/v8/googleads-py/google/ads/googleads/v8/resources/types/bidding_seasonality_adjustment.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
6
2021-02-02T23:46:11.000Z
2021-11-15T01:46:02.000Z
google/ads/googleads/v8/googleads-py/google/ads/googleads/v8/resources/types/bidding_seasonality_adjustment.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
4
2021-01-28T23:25:45.000Z
2021-08-30T01:55:16.000Z
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
37.176471
132
0.670183
7977fb452018bd5930107f122c4f3e709357774d
624
py
Python
erpnext_support/setup/setup_wizard/setup_wizard.py
manuthu/test-package
906a2a3ce7878d81a01149a60fb06e07400e6f47
[ "MIT" ]
null
null
null
erpnext_support/setup/setup_wizard/setup_wizard.py
manuthu/test-package
906a2a3ce7878d81a01149a60fb06e07400e6f47
[ "MIT" ]
null
null
null
erpnext_support/setup/setup_wizard/setup_wizard.py
manuthu/test-package
906a2a3ce7878d81a01149a60fb06e07400e6f47
[ "MIT" ]
null
null
null
# Copyright (c) 2019, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe from frappe import _ from erpnext_support.api.server_utils import set_custom_field as server_fields def get_setup_stages(args=None): st...
21.517241
78
0.700321
7977fbc069de257f69da24a65c83f8195cc317cf
1,499
py
Python
st2common/st2common/cmd/generate_api_spec.py
saucetray/st2
8f507d6c8d9483c8371e386fe2b7998596856fd7
[ "Apache-2.0" ]
2
2021-08-04T01:04:06.000Z
2021-08-04T01:04:08.000Z
st2common/st2common/cmd/generate_api_spec.py
saucetray/st2
8f507d6c8d9483c8371e386fe2b7998596856fd7
[ "Apache-2.0" ]
1
2022-03-31T03:53:22.000Z
2022-03-31T03:53:22.000Z
st2common/st2common/cmd/generate_api_spec.py
saucetray/st2
8f507d6c8d9483c8371e386fe2b7998596856fd7
[ "Apache-2.0" ]
1
2019-10-11T14:42:28.000Z
2019-10-11T14:42:28.000Z
# Copyright 2019 Extreme Networks, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
24.983333
76
0.73449
7977fc919d13a4f20bbdd1b9948bfb96c93a5c8d
5,073
py
Python
bvps/bridges.py
pnkraemer/probabilistic-bvp-solver
0124349918106f36ba51d5697dc403c2d238b815
[ "MIT" ]
3
2021-11-26T21:05:40.000Z
2021-11-28T00:29:10.000Z
bvps/bridges.py
pnkraemer/probabilistic-bvp-solver
0124349918106f36ba51d5697dc403c2d238b815
[ "MIT" ]
null
null
null
bvps/bridges.py
pnkraemer/probabilistic-bvp-solver
0124349918106f36ba51d5697dc403c2d238b815
[ "MIT" ]
1
2022-01-23T10:02:36.000Z
2022-01-23T10:02:36.000Z
"""Integrated bridges.""" import numpy as np from probnum import statespace from .ode_measmods import from_boundary_conditions from .problems import SecondOrderBoundaryValueProblem SMALL_VALUE = 0.0 class GaussMarkovBridge(statespace.Integrator, statespace.LTISDE): """ Examples -------- >>> from pr...
30.560241
86
0.610881
7977fcafa9042f8c07d15a72c158c8e0075159be
2,534
py
Python
src/utils/image_utils.py
mayerjRRR/TricycleGAN
6c0ef0a258266599a7eb35d2a1dac437f7068346
[ "MIT" ]
2
2019-09-23T21:28:49.000Z
2019-09-23T21:49:12.000Z
src/utils/image_utils.py
mayerjRRR/TricycleGAN
6c0ef0a258266599a7eb35d2a1dac437f7068346
[ "MIT" ]
null
null
null
src/utils/image_utils.py
mayerjRRR/TricycleGAN
6c0ef0a258266599a7eb35d2a1dac437f7068346
[ "MIT" ]
null
null
null
import numpy as np import cv2 import os video_formats = [".mp4"] image_formats = [".jpg", ".jpeg", ".png"] def is_directory(path): return os.path.isdir(path) def is_video(file_path): file_ending = get_file_format(file_path) return file_ending in video_formats def is_image(file_path): file_ending ...
27.846154
98
0.723362
7977fe32500fc5990b63f5e0b6b20b2dc73255d7
5,336
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.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 may ...
38.948905
133
0.659483
79780002c987d0cc8c49e4875c1ddfc2c3d4c819
236
py
Python
rawinputintegers.py
serhii73/PyTricks
cae22a0960a7bf9a39c7fb3227e283c3b86bd05b
[ "MIT" ]
3,271
2015-03-19T11:27:39.000Z
2022-03-19T03:00:37.000Z
rawinputintegers.py
serhii73/PyTricks
cae22a0960a7bf9a39c7fb3227e283c3b86bd05b
[ "MIT" ]
78
2015-03-19T09:45:09.000Z
2020-12-24T08:47:15.000Z
rawinputintegers.py
serhii73/PyTricks
cae22a0960a7bf9a39c7fb3227e283c3b86bd05b
[ "MIT" ]
531
2015-03-19T11:12:52.000Z
2022-03-23T15:07:07.000Z
#! /usr/bin/env python3 """ Convert raw string integer inputs to integers """ str_input = "1 2 3 4 5 6" print("### Input ###") print(str_input) int_input = map(int, str_input.split()) print("### Output ###") print(list(int_input))
14.75
45
0.644068
7978002e4a82e1432eacde86d074197946460e4d
2,188
py
Python
v2x/__main__.py
litghost/python-symbiflow-v2x
3cc21667a616f2cf5d69d436a8704022bc87bb1c
[ "ISC" ]
8
2019-09-18T00:14:24.000Z
2021-09-03T05:50:20.000Z
v2x/__main__.py
litghost/python-symbiflow-v2x
3cc21667a616f2cf5d69d436a8704022bc87bb1c
[ "ISC" ]
79
2019-09-27T07:53:02.000Z
2021-09-15T06:12:35.000Z
v2x/__main__.py
litghost/python-symbiflow-v2x
3cc21667a616f2cf5d69d436a8704022bc87bb1c
[ "ISC" ]
8
2019-09-27T07:56:52.000Z
2022-02-09T08:43:35.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright (C) 2020 The SymbiFlow Authors. # # Use of this source code is governed by a ISC-style # license that can be found in the LICENSE file or at # https://opensource.org/licenses/ISC # # SPDX-License-Identifier: ISC from . import vlog_to_pbtype from . import vl...
24.043956
77
0.613803
79780090db343a6040d1593ef1de7e670b80d34c
383
py
Python
setup.py
andrewgiuliani/PyDGSRD
25a166c2f80f497cb48bffcfe13736f115d911bd
[ "MIT" ]
null
null
null
setup.py
andrewgiuliani/PyDGSRD
25a166c2f80f497cb48bffcfe13736f115d911bd
[ "MIT" ]
null
null
null
setup.py
andrewgiuliani/PyDGSRD
25a166c2f80f497cb48bffcfe13736f115d911bd
[ "MIT" ]
1
2021-02-20T06:53:51.000Z
2021-02-20T06:53:51.000Z
from setuptools import setup, Extension from setuptools.command.build_ext import build_ext import sys import os import setuptools __version__ = '0.0.1' setup( name='PyDGSRD1D', long_description='', install_requires=['numpy', 'scipy', 'argparse', 'matplotlib', 'pytest'], packages = ["pydgsrd1d"], p...
22.529412
76
0.70235
79780126fd2e593df8fa57a9966cf906d502357a
4,748
py
Python
mf_based_recommendation_trainer.py
Swarupa567/Yelp-data-analysis
234fa29b813a047e8de0725044d2b616200eb446
[ "Apache-2.0" ]
1
2020-06-05T09:21:53.000Z
2020-06-05T09:21:53.000Z
mf_based_recommendation_trainer.py
Swarupa567/Yelp-data-analysis
234fa29b813a047e8de0725044d2b616200eb446
[ "Apache-2.0" ]
null
null
null
mf_based_recommendation_trainer.py
Swarupa567/Yelp-data-analysis
234fa29b813a047e8de0725044d2b616200eb446
[ "Apache-2.0" ]
null
null
null
import os import math from pyspark.sql import Row from yelp_utils import * from pyspark.sql import SparkSession #from pyspark.sql.types import * from pyspark.sql import SQLContext from pyspark import SparkContext, SparkConf from pyspark.mllib.recommendation import ALS class MFBasedRecommendationTrainer: def __in...
38.918033
115
0.639427
797803d8ef235f2f05be263345db415796ed7df3
6,561
py
Python
src/oscar/apps/voucher/abstract_models.py
akiyoko/oscar_sandbox
b384f1c0b5f297fd4b84509a575f6766a48630a5
[ "BSD-3-Clause" ]
68
2016-11-06T05:07:57.000Z
2021-12-17T09:17:38.000Z
src/oscar/apps/voucher/abstract_models.py
akiyoko/oscar_sandbox
b384f1c0b5f297fd4b84509a575f6766a48630a5
[ "BSD-3-Clause" ]
null
null
null
src/oscar/apps/voucher/abstract_models.py
akiyoko/oscar_sandbox
b384f1c0b5f297fd4b84509a575f6766a48630a5
[ "BSD-3-Clause" ]
28
2016-12-04T07:12:50.000Z
2021-02-06T21:13:15.000Z
from decimal import Decimal from django.core import exceptions from django.db import models from django.utils import timezone from django.utils.encoding import python_2_unicode_compatible from django.utils.translation import ugettext_lazy as _ from oscar.core.compat import AUTH_USER_MODEL @python_2_unicode_compatib...
36.45
77
0.618808
797804552cd11e5527d8604355d93053552ab158
4,075
py
Python
app/routes/course.py
vasilis-tsatalis/ehua-studies
4a6ba5855839ed68cd4bbecd1b75019f93895e92
[ "MIT" ]
null
null
null
app/routes/course.py
vasilis-tsatalis/ehua-studies
4a6ba5855839ed68cd4bbecd1b75019f93895e92
[ "MIT" ]
null
null
null
app/routes/course.py
vasilis-tsatalis/ehua-studies
4a6ba5855839ed68cd4bbecd1b75019f93895e92
[ "MIT" ]
null
null
null
from fastapi import Depends, status, Request, HTTPException from fastapi import APIRouter from fastapi.security import HTTPBasic from sqlalchemy.orm import Session from typing import List import os from dotenv import load_dotenv load_dotenv() from ..auth.authentication import authenticate_admin, authenticate_webuser s...
37.731481
134
0.682209
7978058c49bf38ffde72941e72c363bb63aab097
4,900
py
Python
zerver/tests/test_slack_message_conversion.py
TylerPham2000/zulip
2e7aaba0dde5517b4a55cb0bd782f009be45e3ba
[ "Apache-2.0" ]
2
2020-11-12T12:28:46.000Z
2020-11-16T11:17:46.000Z
zerver/tests/test_slack_message_conversion.py
TylerPham2000/zulip
2e7aaba0dde5517b4a55cb0bd782f009be45e3ba
[ "Apache-2.0" ]
1
2021-03-24T12:50:52.000Z
2021-03-24T13:11:42.000Z
zerver/tests/test_slack_message_conversion.py
TylerPham2000/zulip
2e7aaba0dde5517b4a55cb0bd782f009be45e3ba
[ "Apache-2.0" ]
1
2021-07-22T10:14:08.000Z
2021-07-22T10:14:08.000Z
import os from typing import Any, Dict, List, Tuple import orjson from zerver.data_import.slack_message_conversion import ( convert_to_zulip_markdown, get_user_full_name, ) from zerver.lib import mdiff from zerver.lib.test_classes import ZulipTestCase class SlackMessageConversion(ZulipTestCase): def ass...
40.163934
100
0.593265
7978074a9bbfbc7b004ff3501ec01e8b024b0c26
14,040
py
Python
pygments/lexers/julia.py
zaibacu/pygments
8d110f8dc23f9154277625f3b3555f03ba68093d
[ "BSD-2-Clause" ]
null
null
null
pygments/lexers/julia.py
zaibacu/pygments
8d110f8dc23f9154277625f3b3555f03ba68093d
[ "BSD-2-Clause" ]
null
null
null
pygments/lexers/julia.py
zaibacu/pygments
8d110f8dc23f9154277625f3b3555f03ba68093d
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ pygments.lexers.julia ~~~~~~~~~~~~~~~~~~~~~ Lexers for the Julia language. :copyright: Copyright 2006-2020 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import re from pygments.lexer import Lexer, RegexLexer, bygroups, do_insertions, \...
42.035928
100
0.453704
79780789c5c7f5ca112877e6d720a4ff9e66e8d7
37,780
py
Python
src/v5.1/resources/swagger_client/api/interventions_api.py
xmarcosx/edfi-notebook
0564ebdf1d0f45a9d25056e7e61369f0a837534d
[ "Apache-2.0" ]
2
2021-04-27T17:18:17.000Z
2021-04-27T19:14:39.000Z
src/v5.1/resources/swagger_client/api/interventions_api.py
xmarcosx/edfi-notebook
0564ebdf1d0f45a9d25056e7e61369f0a837534d
[ "Apache-2.0" ]
null
null
null
src/v5.1/resources/swagger_client/api/interventions_api.py
xmarcosx/edfi-notebook
0564ebdf1d0f45a9d25056e7e61369f0a837534d
[ "Apache-2.0" ]
1
2022-01-06T09:43:11.000Z
2022-01-06T09:43:11.000Z
# coding: utf-8 """ Ed-Fi Operational Data Store API The Ed-Fi ODS / API enables applications to read and write education data stored in an Ed-Fi ODS through a secure REST interface. *** > *Note: Consumers of ODS / API information should sanitize all data for display and storage. The ODS / API provides reas...
52.32687
493
0.652091
797809e12bdadd31683c07cf855aaa618648da7f
693
py
Python
mltk/cli/tests/test_classify_audio_cli.py
SiliconLabs/mltk
56b19518187e9d1c8a0d275de137fc9058984a1f
[ "Zlib" ]
null
null
null
mltk/cli/tests/test_classify_audio_cli.py
SiliconLabs/mltk
56b19518187e9d1c8a0d275de137fc9058984a1f
[ "Zlib" ]
1
2021-11-19T20:10:09.000Z
2021-11-19T20:10:09.000Z
mltk/cli/tests/test_classify_audio_cli.py
sldriedler/mltk
d82a60359cf875f542a2257f1bc7d8eb4bdaa204
[ "Zlib" ]
null
null
null
import pytest from mltk import MLTK_DIR from mltk.utils.test_helper import run_mltk_command from mltk.utils.commander import query_platform def test_help(): run_mltk_command('classify_audio', '--help') def test_pc_name(): run_mltk_command('classify_audio', 'tflite_micro_speech', '--test') def test_pc_arc...
23.896552
83
0.724387
79780adcaaefbe3e55b7ae0a513da6883641a1f6
35,566
py
Python
monitoring/google/cloud/monitoring_v3/gapic/notification_channel_service_client.py
deryrahman/google-cloud-python
b55058c4b2328fde32f29bfd8ea04708fcc578e0
[ "Apache-2.0" ]
null
null
null
monitoring/google/cloud/monitoring_v3/gapic/notification_channel_service_client.py
deryrahman/google-cloud-python
b55058c4b2328fde32f29bfd8ea04708fcc578e0
[ "Apache-2.0" ]
null
null
null
monitoring/google/cloud/monitoring_v3/gapic/notification_channel_service_client.py
deryrahman/google-cloud-python
b55058c4b2328fde32f29bfd8ea04708fcc578e0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
46.797368
162
0.626104
79780d851492309e6ec502a888630ad0d564b917
1,376
py
Python
src/ndn/security/signer/sha256_digest_signer.py
Kjwon15/python-ndn
4d1c827958bce1caeacc16f72a47ee8c90db1d6e
[ "Apache-2.0" ]
null
null
null
src/ndn/security/signer/sha256_digest_signer.py
Kjwon15/python-ndn
4d1c827958bce1caeacc16f72a47ee8c90db1d6e
[ "Apache-2.0" ]
null
null
null
src/ndn/security/signer/sha256_digest_signer.py
Kjwon15/python-ndn
4d1c827958bce1caeacc16f72a47ee8c90db1d6e
[ "Apache-2.0" ]
null
null
null
# ----------------------------------------------------------------------------- # Copyright (C) 2019-2020 Xinyu Ma # # This file is part of python-ndn. # # 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 Li...
37.189189
93
0.641715
79780de97ed148796e727ff9515e58be44d37d80
2,539
py
Python
certbot-dns-route53/setup.py
RConn12/certbot
34b568f36648dd5c4103c3a444e81b5662e6be81
[ "Apache-2.0" ]
null
null
null
certbot-dns-route53/setup.py
RConn12/certbot
34b568f36648dd5c4103c3a444e81b5662e6be81
[ "Apache-2.0" ]
null
null
null
certbot-dns-route53/setup.py
RConn12/certbot
34b568f36648dd5c4103c3a444e81b5662e6be81
[ "Apache-2.0" ]
null
null
null
from setuptools import setup from setuptools import find_packages from setuptools.command.test import test as TestCommand import sys version = '1.1.0.dev0' # Remember to update local-oldest-requirements.txt when changing the minimum # acme/certbot version. install_requires = [ 'acme>=0.29.0', 'certbot>=0.39.0...
32.551282
84
0.625443
79780e5bf415b3fe44093fb8fd499e63422a1163
677
py
Python
chapter4/services/searcher/normalize_scores_service.py
andreffs18/collective-intelligence
6bea822faa4ac6ae3df8843f8af2420a25d6da0f
[ "MIT" ]
1
2020-07-29T09:10:48.000Z
2020-07-29T09:10:48.000Z
chapter4/services/searcher/normalize_scores_service.py
andreffs18/collective-intelligence
6bea822faa4ac6ae3df8843f8af2420a25d6da0f
[ "MIT" ]
3
2020-03-30T20:12:58.000Z
2022-03-11T23:18:38.000Z
chapter4/services/searcher/normalize_scores_service.py
andreffs18/collective-intelligence
6bea822faa4ac6ae3df8843f8af2420a25d6da0f
[ "MIT" ]
null
null
null
class NormalizeScoresService(object): def __init__(self, scores, small=True): self.scores = scores self.small = small self._vsmall = 0.000001 # to avoid zero division error def call(self): min_score = min(self.scores.values()) max_score = max(self.scores.values()) ...
27.08
63
0.524372
79780eab83a024f0860ee5d84dcbe722b567df33
18,022
py
Python
bindings/python/setup.py
rayofhope-dev/libtorrent
e0f07089f50d8e82294b52c09e3e1a1697b1dd4a
[ "Zlib", "BSD-3-Clause" ]
null
null
null
bindings/python/setup.py
rayofhope-dev/libtorrent
e0f07089f50d8e82294b52c09e3e1a1697b1dd4a
[ "Zlib", "BSD-3-Clause" ]
null
null
null
bindings/python/setup.py
rayofhope-dev/libtorrent
e0f07089f50d8e82294b52c09e3e1a1697b1dd4a
[ "Zlib", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 from distutils import log import distutils.debug import distutils.sysconfig import multiprocessing import distutils.util import os import pathlib import platform import sys import sysconfig import tempfile import subprocess import contextlib import warnings import re import shlex import setupto...
38.508547
88
0.606592
79781004b70d0b6aed4f2bd9d8773cd263015467
3,430
py
Python
tests/system/test_pagination.py
georgiyekkert/python-compute
d128efbb3bf10af9b41e55b20aaa8080b3221e77
[ "Apache-2.0" ]
19
2021-02-10T21:17:20.000Z
2022-02-20T03:16:36.000Z
tests/system/test_pagination.py
georgiyekkert/python-compute
d128efbb3bf10af9b41e55b20aaa8080b3221e77
[ "Apache-2.0" ]
121
2021-01-08T23:46:58.000Z
2022-03-26T04:34:36.000Z
tests/system/test_pagination.py
georgiyekkert/python-compute
d128efbb3bf10af9b41e55b20aaa8080b3221e77
[ "Apache-2.0" ]
20
2021-01-08T23:14:16.000Z
2022-02-25T01:27:20.000Z
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
38.111111
85
0.693586
79781037dd63ffb1b060ea5d1844e95dc149edf6
942
py
Python
tests/ApplicationWidgets.py
MaxOnNet/scopuli-core-web
66a2c31b36d7fc05be36ba5d5b141644459b4aba
[ "Apache-2.0" ]
null
null
null
tests/ApplicationWidgets.py
MaxOnNet/scopuli-core-web
66a2c31b36d7fc05be36ba5d5b141644459b4aba
[ "Apache-2.0" ]
null
null
null
tests/ApplicationWidgets.py
MaxOnNet/scopuli-core-web
66a2c31b36d7fc05be36ba5d5b141644459b4aba
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright [2018] Tatarnikov Viktor [viktor@tatarnikov.org] # # 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/licen...
39.25
74
0.776008
797811845997d6d4a171e75b30e5ec663b2ddd9c
742
py
Python
CONTENT/DS-n-Algos/ALGO/__PYTHON/sun_finder.py
Web-Dev-Collaborative/DS-ALGO-OFFICIAL
6d7195d33c28a0fe22f12231efffb39f4bf05c97
[ "Apache-2.0" ]
11
2021-02-18T04:53:44.000Z
2022-01-16T10:57:39.000Z
CONTENT/DS-n-Algos/ALGO/__PYTHON/sun_finder.py
Web-Dev-Collaborative/DS-ALGO-OFFICIAL
6d7195d33c28a0fe22f12231efffb39f4bf05c97
[ "Apache-2.0" ]
162
2021-03-09T01:52:11.000Z
2022-03-12T01:09:07.000Z
CONTENT/DS-n-Algos/ALGO/__PYTHON/sun_finder.py
Web-Dev-Collaborative/DS-ALGO-OFFICIAL
6d7195d33c28a0fe22f12231efffb39f4bf05c97
[ "Apache-2.0" ]
8
2021-02-18T05:12:34.000Z
2022-03-06T19:02:14.000Z
# def twoSum(arr,n,target): # for i in range(n): # for j in range(1,n): # result=arr[i]+arr[j] # if result==target: # print("["+str(i)+","+str(j)+"]") # arr=[2,7,11,15] # twoSum(arr,len(arr),9) class Solution: # def __init__(self,arr,n,target): ...
24.733333
61
0.440701
797811ffd864f681ce8fc9193c87d56e7ae4555e
179
py
Python
comments/forms.py
zzz123-tech/zhanzhenblog
0faafe4f1977b4d42bc9c5b992ab7f42bf3bfe0d
[ "MIT" ]
null
null
null
comments/forms.py
zzz123-tech/zhanzhenblog
0faafe4f1977b4d42bc9c5b992ab7f42bf3bfe0d
[ "MIT" ]
5
2021-04-08T19:40:57.000Z
2021-09-22T19:40:18.000Z
comments/forms.py
zzz123-tech/zhanzhenblog
0faafe4f1977b4d42bc9c5b992ab7f42bf3bfe0d
[ "MIT" ]
null
null
null
from django import forms from .models import Comment class CommentForm(forms.ModelForm): class Meta(): model = Comment fields = ['name','email','url','text']
22.375
46
0.653631
797815f08ef6277c28031fb272d1ad47d3850ddc
1,554
py
Python
resources/register/tests.py
Yogev911/sms-service
18e5c6ba55d354ea59bc0eceed31a0e01ecb5ebb
[ "MIT" ]
null
null
null
resources/register/tests.py
Yogev911/sms-service
18e5c6ba55d354ea59bc0eceed31a0e01ecb5ebb
[ "MIT" ]
null
null
null
resources/register/tests.py
Yogev911/sms-service
18e5c6ba55d354ea59bc0eceed31a0e01ecb5ebb
[ "MIT" ]
null
null
null
import unittest from unittest.mock import patch from resources.register.service import register, is_phone_valid, register_new_user import json class Request: def __init__(self): self.data = '{}' self.remote_addr = 'Unittest' class TestRegisterMethods(unittest.TestCase): def test_no_data(s...
34.533333
108
0.620978
79781887b711e13ffec4c8639fb6ca7583b0959f
3,010
py
Python
day20/image_enhancement.py
pranasziaukas/advent-of-code-2021
6b4accf781e48846d154a818891e500cee23e88f
[ "MIT" ]
null
null
null
day20/image_enhancement.py
pranasziaukas/advent-of-code-2021
6b4accf781e48846d154a818891e500cee23e88f
[ "MIT" ]
null
null
null
day20/image_enhancement.py
pranasziaukas/advent-of-code-2021
6b4accf781e48846d154a818891e500cee23e88f
[ "MIT" ]
null
null
null
from collections import namedtuple from itertools import product Point = namedtuple("Point", ["x", "y"]) class Image: def __init__(self, light_codes: {int}, pixels: {Point}) -> None: self.light_codes = light_codes self.pixels = pixels self._light_outside = False @property def p...
33.444444
105
0.55515
79781925c2db161bdfc610c8ebf6c79edff6cbd2
1,462
py
Python
scripts/collate_dataset.py
flo-compbio/SingleCellOpenProblems
c4b519252a867745448e5e0a133ba2bdbfd164b6
[ "MIT" ]
null
null
null
scripts/collate_dataset.py
flo-compbio/SingleCellOpenProblems
c4b519252a867745448e5e0a133ba2bdbfd164b6
[ "MIT" ]
null
null
null
scripts/collate_dataset.py
flo-compbio/SingleCellOpenProblems
c4b519252a867745448e5e0a133ba2bdbfd164b6
[ "MIT" ]
null
null
null
import numpy as np import json import os import sys import openproblems def main(task_name, dataset_name, input_dir, output_file): task = eval("openproblems.tasks.{}".format(task_name)) dataset = getattr(task.datasets, dataset_name) result = [] for method in task.METHODS: result_file = os.pa...
30.458333
87
0.603967
79781ab1360efe447360fe9ce3313bbeea2c7e64
747
py
Python
spider_learn/spider_learn01/urllib_learn/urllib06_post.py
Fly365/py-learn
a7c747af70ca2d6dcf244dc89344fbd26b125987
[ "Apache-2.0" ]
null
null
null
spider_learn/spider_learn01/urllib_learn/urllib06_post.py
Fly365/py-learn
a7c747af70ca2d6dcf244dc89344fbd26b125987
[ "Apache-2.0" ]
null
null
null
spider_learn/spider_learn01/urllib_learn/urllib06_post.py
Fly365/py-learn
a7c747af70ca2d6dcf244dc89344fbd26b125987
[ "Apache-2.0" ]
null
null
null
import urllib.request,urllib url = "http://fanyi.youdao.com/translate_o?smartresult=dict&smartresult=rule" headers = {"User-Agent": "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0;"} formdata = { "i":"i love Python", "from":"AUTO", "to":"AUTO", "smartresult":"dict", "client":"fanyi...
29.88
91
0.672021
79781b6beff66a59f03b0627fd65bf8f4056571d
3,315
py
Python
bin/modules/viewing_exporting/suxwigb.py
Lokesh-Kumar-Dudi/sudoSU
26020e0ace735770323166df73f861c2e7dab6cf
[ "Apache-2.0" ]
null
null
null
bin/modules/viewing_exporting/suxwigb.py
Lokesh-Kumar-Dudi/sudoSU
26020e0ace735770323166df73f861c2e7dab6cf
[ "Apache-2.0" ]
null
null
null
bin/modules/viewing_exporting/suxwigb.py
Lokesh-Kumar-Dudi/sudoSU
26020e0ace735770323166df73f861c2e7dab6cf
[ "Apache-2.0" ]
null
null
null
import gi gi.require_version("Gtk","3.0") from gi.repository import Gtk from pathlib import Path import ntpath import os class suxwigb(Gtk.Box): def __init__(self,parent): self.parent = parent self.glade_file=str(Path(__file__).parent/ "suxwigb.glade") self.builder = Gtk.Builder() s...
35.265957
90
0.5819
79781b9cc8f36f37e700fd7ad0887eef3159b0de
1,349
py
Python
test/test_job_statistics_job_node_worker.py
Atomicology/isilon_sdk_python
91039da803ae37ed4abf8d2a3f59c333f3ef1866
[ "MIT" ]
null
null
null
test/test_job_statistics_job_node_worker.py
Atomicology/isilon_sdk_python
91039da803ae37ed4abf8d2a3f59c333f3ef1866
[ "MIT" ]
null
null
null
test/test_job_statistics_job_node_worker.py
Atomicology/isilon_sdk_python
91039da803ae37ed4abf8d2a3f59c333f3ef1866
[ "MIT" ]
null
null
null
# coding: utf-8 """ Copyright 2016 SmartBear Software 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 l...
27.530612
97
0.750185
79781d535eb2b0396dad4d274ea9e174c1b09198
1,515
py
Python
ex48_lexicon_tests.py
AyeAyeNwe/python-exercises
68c4152e3527c04e5c0f2a6c34f66ad54701d715
[ "MIT" ]
null
null
null
ex48_lexicon_tests.py
AyeAyeNwe/python-exercises
68c4152e3527c04e5c0f2a6c34f66ad54701d715
[ "MIT" ]
null
null
null
ex48_lexicon_tests.py
AyeAyeNwe/python-exercises
68c4152e3527c04e5c0f2a6c34f66ad54701d715
[ "MIT" ]
null
null
null
from nose.tools import * from ex48_game import lexicon def test_directions(): assert_equal(lexicon.scan("north"), [('direction', 'north')]) result = lexicon.scan("north south east") assert_equal(result, [('direction', 'north'), ('direction', 'south'), ...
39.868421
65
0.508911
79781d9888c58cf11ee616398c246cfdda8f5a95
5,243
py
Python
aries-cloudagent-python/aries_cloudagent/protocols/issue_credential/v1_0/handlers/tests/test_credential_offer_handler.py
sed-szeged/IndyPerf
68bb48c7c651cae113cf30696110825ff3267ccc
[ "CC0-1.0" ]
null
null
null
aries-cloudagent-python/aries_cloudagent/protocols/issue_credential/v1_0/handlers/tests/test_credential_offer_handler.py
sed-szeged/IndyPerf
68bb48c7c651cae113cf30696110825ff3267ccc
[ "CC0-1.0" ]
null
null
null
aries-cloudagent-python/aries_cloudagent/protocols/issue_credential/v1_0/handlers/tests/test_credential_offer_handler.py
sed-szeged/IndyPerf
68bb48c7c651cae113cf30696110825ff3267ccc
[ "CC0-1.0" ]
1
2022-02-02T17:05:27.000Z
2022-02-02T17:05:27.000Z
from asynctest import mock as async_mock, TestCase as AsyncTestCase from ......messaging.request_context import RequestContext from ......messaging.responder import MockResponder from ......transport.inbound.receipt import MessageReceipt from ...messages.credential_offer import CredentialOffer from .. import credent...
45.198276
84
0.688346
79781dfe223ab897262331b092369069a3f7f17e
836
py
Python
2020/jordi/day3/part1and2.py
bbglab/adventofcode
65b6d8331d10f229b59232882d60024b08d69294
[ "MIT" ]
null
null
null
2020/jordi/day3/part1and2.py
bbglab/adventofcode
65b6d8331d10f229b59232882d60024b08d69294
[ "MIT" ]
null
null
null
2020/jordi/day3/part1and2.py
bbglab/adventofcode
65b6d8331d10f229b59232882d60024b08d69294
[ "MIT" ]
3
2016-12-02T09:20:42.000Z
2021-12-01T13:31:07.000Z
#!/bin/env python3 from functools import reduce def get_position(data, x, y): if y >= len(data) or x <= 0 or y <= 0: raise ValueError("Outside the map") line = data[y] xm = x % len(line) return line[xm] def count_trees(data, slope): trees = 0 x, y = 0, 0 try: while True: ...
21.435897
120
0.516746
79781e1f1ff2d8095b4d7ae345cc0409217b649f
719
py
Python
Aulas/app001/ex15-fahrenheit_ceucius.py
JonasJF360/Curso_Tkinter
7a72187a03ef9f7f9d7f760d2cd1434e0287a266
[ "MIT" ]
null
null
null
Aulas/app001/ex15-fahrenheit_ceucius.py
JonasJF360/Curso_Tkinter
7a72187a03ef9f7f9d7f760d2cd1434e0287a266
[ "MIT" ]
null
null
null
Aulas/app001/ex15-fahrenheit_ceucius.py
JonasJF360/Curso_Tkinter
7a72187a03ef9f7f9d7f760d2cd1434e0287a266
[ "MIT" ]
null
null
null
from tkinter import * # Fahrenheit para ceucius # Funções def converter(): try: f = float(fahrenheit.get()) c = (f-32) * 5/9 resultado.set(str(round(c, 1)) + ' graus Ceucius') except: ValueError resultado.set('Algo está errado') # GUI root = Tk() root.title('') frame1...
19.432432
79
0.674548
79781e3e4f388b600212b55cb7a946367a73c9fd
275
py
Python
giico/quality_control_and_material_testing/doctype/sample_preperation_for_rock_core_test/sample_preperation_for_rock_core_test.py
thispl/giico
14c5631639ab56a586a7962be9871d722c20e205
[ "MIT" ]
null
null
null
giico/quality_control_and_material_testing/doctype/sample_preperation_for_rock_core_test/sample_preperation_for_rock_core_test.py
thispl/giico
14c5631639ab56a586a7962be9871d722c20e205
[ "MIT" ]
null
null
null
giico/quality_control_and_material_testing/doctype/sample_preperation_for_rock_core_test/sample_preperation_for_rock_core_test.py
thispl/giico
14c5631639ab56a586a7962be9871d722c20e205
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2021, VHRS and contributors # For license information, please see license.txt from __future__ import unicode_literals # import frappe from frappe.model.document import Document class SamplepreperationforRockCoretest(Document): pass
25
49
0.789091
79781e5359a6fb8b9721aad26b36f374fc9eb64f
532
py
Python
backend/home/migrations/0001_load_initial_data.py
crowdbotics-apps/dan3103-1-1
c0adeab7e87fe0260ba69f4ac3ee144ee4b313d1
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/home/migrations/0001_load_initial_data.py
crowdbotics-apps/dan3103-1-1
c0adeab7e87fe0260ba69f4ac3ee144ee4b313d1
[ "FTL", "AML", "RSA-MD" ]
28
2021-07-25T14:51:20.000Z
2022-01-16T13:10:18.000Z
backend/home/migrations/0001_load_initial_data.py
crowdbotics-apps/dan3103-1-1
c0adeab7e87fe0260ba69f4ac3ee144ee4b313d1
[ "FTL", "AML", "RSA-MD" ]
null
null
null
from django.db import migrations def create_site(apps, schema_editor): Site = apps.get_model("sites", "Site") custom_domain = "dan3103-1-1.botics.co" site_params = { "name": "dan3103_1", } if custom_domain: site_params["domain"] = custom_domain Site.objects.update_or_create(d...
20.461538
61
0.652256
79781fb9cb062da0769d8bda116427351a3bccb1
1,875
py
Python
alipay/aop/api/domain/AlipayUserElectronicidMerchantbarcodeCreateModel.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayUserElectronicidMerchantbarcodeCreateModel.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayUserElectronicidMerchantbarcodeCreateModel.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import simplejson as json from alipay.aop.api.constant.ParamConstants import * class AlipayUserElectronicidMerchantbarcodeCreateModel(object): def __init__(self): self._expire_time = None self._type = None self._unique_id = None @propert...
26.408451
73
0.584
7978206aaa256afedc479c6abba96d71d6267e7f
1,549
py
Python
esdlvalidator/validation/functions/check_unconnected_port.py
ESDLMapEditorESSIM/ESDLValidator
4573deec9b8206179ff6e61f37b4ba1847b3dbfb
[ "MIT" ]
null
null
null
esdlvalidator/validation/functions/check_unconnected_port.py
ESDLMapEditorESSIM/ESDLValidator
4573deec9b8206179ff6e61f37b4ba1847b3dbfb
[ "MIT" ]
null
null
null
esdlvalidator/validation/functions/check_unconnected_port.py
ESDLMapEditorESSIM/ESDLValidator
4573deec9b8206179ff6e61f37b4ba1847b3dbfb
[ "MIT" ]
1
2021-02-25T09:25:35.000Z
2021-02-25T09:25:35.000Z
import json from esdlvalidator.validation.functions import utils from esdlvalidator.validation.functions.function import FunctionFactory, FunctionCheck, FunctionDefinition, \ ArgDefinition, FunctionType, CheckResult @FunctionFactory.register(FunctionType.CHECK, "unconnected_port") class ContainsNotConnectedTo(Fu...
36.880952
109
0.613299
797820b617739fcaf5f3f38146ae9d264cd2fd17
2,323
py
Python
locations/spiders/jimmy_johns.py
davidchiles/alltheplaces
6f35f6cd652e7462107ead0a77f322caff198653
[ "MIT" ]
null
null
null
locations/spiders/jimmy_johns.py
davidchiles/alltheplaces
6f35f6cd652e7462107ead0a77f322caff198653
[ "MIT" ]
null
null
null
locations/spiders/jimmy_johns.py
davidchiles/alltheplaces
6f35f6cd652e7462107ead0a77f322caff198653
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import scrapy import json from locations.items import GeojsonPointItem STATES = ["AL", "AK", "AZ", "AR", "CA", "CO", "CT", "DC", "DE", "FL", "GA", "HI", "ID", "IL", "IN", "IA", "KS", "KY", "LA", "ME", "MD", "MA", "MI", "MN", "MS", "MO", "MT", "NE", "NV", "NH", "NJ", ...
37.467742
111
0.516573
797820c533139abe3ceb85809b93ac9d21203b90
2,975
py
Python
models/vae_01.py
j1a0m0e4sNTU/Variational-Autoencoder-for-images
f5d4bbd75e09bfcf20fa11b8b895420cc186d2bc
[ "MIT" ]
null
null
null
models/vae_01.py
j1a0m0e4sNTU/Variational-Autoencoder-for-images
f5d4bbd75e09bfcf20fa11b8b895420cc186d2bc
[ "MIT" ]
null
null
null
models/vae_01.py
j1a0m0e4sNTU/Variational-Autoencoder-for-images
f5d4bbd75e09bfcf20fa11b8b895420cc186d2bc
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import numpy as np def Conv2d(in_planes, out_planes, kernel_size = 3): layer = nn.Sequential( nn.Conv2d(in_channels= in_planes, out_channels= out_planes, kernel_size= kernel_size, padding= (kernel_size-1)//2), nn.BatchNorm2d(out_planes), nn.ReLU(inplace= T...
30.670103
124
0.583866
797820e192816971b3e703e07366ec7f8c4bb4e6
195
py
Python
lighttext/string_search/__init__.py
smilelight/lightTEXT
b015d0e3524722fb5a8ee5ea83b7fbbd7408f797
[ "Apache-2.0" ]
12
2020-01-26T09:16:21.000Z
2021-12-06T06:44:37.000Z
lighttext/string_search/__init__.py
smilelight/lightTEXT
b015d0e3524722fb5a8ee5ea83b7fbbd7408f797
[ "Apache-2.0" ]
null
null
null
lighttext/string_search/__init__.py
smilelight/lightTEXT
b015d0e3524722fb5a8ee5ea83b7fbbd7408f797
[ "Apache-2.0" ]
7
2020-04-30T00:37:32.000Z
2021-07-07T06:32:40.000Z
# -*- coding: utf-8 -*- # @Time : 2020/7/2 8:55 # @Author : lightsmile # @Software: PyCharm from .keyword import KeywordProcessor from .ner import NER __all__ = ['KeywordProcessor', 'NER']
19.5
37
0.661538
79782117509a823abe0bd1aea7a0a3664dbbbb35
6,443
py
Python
loop.py
AlmaLuna94/NeuronsAndMotors
ce3d3cf471c10cd9ef7925db7b2aafb067f73a75
[ "MIT" ]
null
null
null
loop.py
AlmaLuna94/NeuronsAndMotors
ce3d3cf471c10cd9ef7925db7b2aafb067f73a75
[ "MIT" ]
null
null
null
loop.py
AlmaLuna94/NeuronsAndMotors
ce3d3cf471c10cd9ef7925db7b2aafb067f73a75
[ "MIT" ]
null
null
null
##A loop that implements a method like the ones in main_file(Needs to be renamed) and testImageNeurons. Then takes those results and sends them to the motors. # Actually sending them to the motors have not been fully implemented yet. But the file in KTH-Neuro-Computing-Systems/Multi-motor does this. So just connecting...
30.975962
171
0.690051
797821cced214331acbd94a850a263484fa21a94
771
py
Python
NetCatKS/Logger/api/interfaces/__init__.py
dimddev/NetCatKS-CP
2d9e72b2422e344569fd4eb154866b98e9707561
[ "BSD-2-Clause" ]
null
null
null
NetCatKS/Logger/api/interfaces/__init__.py
dimddev/NetCatKS-CP
2d9e72b2422e344569fd4eb154866b98e9707561
[ "BSD-2-Clause" ]
null
null
null
NetCatKS/Logger/api/interfaces/__init__.py
dimddev/NetCatKS-CP
2d9e72b2422e344569fd4eb154866b98e9707561
[ "BSD-2-Clause" ]
null
null
null
__author__ = 'dimd' from zope.interface import Interface, Attribute class ILogger(Interface): default = Attribute("default logging module") origin = Attribute("Current module") def info(msg): """ Info logging level :param msg: info message """ def debug(msg): ...
17.930233
49
0.513619
7978220e379da0be2f6d1a67226bac158993031e
39,685
py
Python
physionet-django/user/models.py
partizaans/physionet-build
ed2211c5c6d6584b73d73bf5ce48a554809c448b
[ "BSD-3-Clause" ]
null
null
null
physionet-django/user/models.py
partizaans/physionet-build
ed2211c5c6d6584b73d73bf5ce48a554809c448b
[ "BSD-3-Clause" ]
null
null
null
physionet-django/user/models.py
partizaans/physionet-build
ed2211c5c6d6584b73d73bf5ce48a554809c448b
[ "BSD-3-Clause" ]
null
null
null
import logging import os import pdb import uuid from datetime import timedelta from django.conf import settings from django.contrib import messages # from django.contrib.auth. import user_logged_in from django.contrib.auth import get_user_model, signals from django.contrib.auth.models import AbstractBaseUser, BaseUser...
35.528201
118
0.630389
797822987f9a4b87a999d88bef0852214d198dff
4,508
py
Python
RecoJets/JetProducers/python/ak8PFJets_cfi.py
samarendran23/cmssw
849dd9897db9b894ca83e1b630a3c1eecafd6097
[ "Apache-2.0" ]
2
2020-05-09T16:03:43.000Z
2020-05-09T16:03:50.000Z
RecoJets/JetProducers/python/ak8PFJets_cfi.py
samarendran23/cmssw
849dd9897db9b894ca83e1b630a3c1eecafd6097
[ "Apache-2.0" ]
26
2018-10-30T12:47:58.000Z
2022-03-29T08:39:00.000Z
RecoJets/JetProducers/python/ak8PFJets_cfi.py
p2l1pfp/cmssw
9bda22bf33ecf18dd19a3af2b3a8cbdb1de556a9
[ "Apache-2.0" ]
3
2019-03-09T13:06:43.000Z
2020-07-03T00:47:30.000Z
import FWCore.ParameterSet.Config as cms from RecoJets.JetProducers.SubJetParameters_cfi import SubJetParameters from RecoJets.JetProducers.ak4PFJets_cfi import ak4PFJets ############################################################################## # Standard AK8 Jets################################################...
36.650407
99
0.550355