hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
50479128516908f2391bdec4beb4219f2f56996b
400
py
Python
applications/extensions/init_login.py
wangyuan02605/webcloud
e57a2713125b751ee8bb8da29b789e2044e789aa
[ "MIT" ]
5
2021-12-13T14:52:08.000Z
2022-03-15T08:59:32.000Z
applications/extensions/init_login.py
wangyuan02605/webcloud
e57a2713125b751ee8bb8da29b789e2044e789aa
[ "MIT" ]
null
null
null
applications/extensions/init_login.py
wangyuan02605/webcloud
e57a2713125b751ee8bb8da29b789e2044e789aa
[ "MIT" ]
1
2022-01-21T04:43:58.000Z
2022-01-21T04:43:58.000Z
from flask_login import LoginManager def init_login_manager(app): login_manager = LoginManager() login_manager.init_app(app) login_manager.login_view = 'passport.login' login_manager.login_message = u'请登录以访问此页面' @login_manager.user_loader def load_user(user_id): from applications.mod...
25
47
0.7225
8ff0f97713e75a054505642b9e76c159fb0a2d7c
527
py
Python
youtube_saver/migrations/0005_auto_20200404_2042.py
cr0manty/Fox_Project
a12e936fba79f290c0c9ecce16bc33de18a3a10c
[ "MIT" ]
null
null
null
youtube_saver/migrations/0005_auto_20200404_2042.py
cr0manty/Fox_Project
a12e936fba79f290c0c9ecce16bc33de18a3a10c
[ "MIT" ]
4
2021-04-08T20:58:40.000Z
2021-09-08T01:32:35.000Z
youtube_saver/migrations/0005_auto_20200404_2042.py
cr0manty/Fox_Project
a12e936fba79f290c0c9ecce16bc33de18a3a10c
[ "MIT" ]
null
null
null
# Generated by Django 2.2.10 on 2020-04-04 17:42 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('youtube_saver', '0004_auto_20200402_2329'), ] operations = [ migrations.AlterField( model_name='youtubeformats', na...
27.736842
173
0.618596
662c79aae2e725e44c88fa37d4c622931c8ae778
6,489
py
Python
vmthunder/openstack/common/jsonutils.py
yongquanf/VMThunder
fbaa391611b074827b5b7e55b27a58c0b7942325
[ "Apache-2.0" ]
3
2019-12-29T09:20:10.000Z
2020-01-01T13:12:30.000Z
vmthunder/openstack/common/jsonutils.py
yongquanf/VMThunder
fbaa391611b074827b5b7e55b27a58c0b7942325
[ "Apache-2.0" ]
null
null
null
vmthunder/openstack/common/jsonutils.py
yongquanf/VMThunder
fbaa391611b074827b5b7e55b27a58c0b7942325
[ "Apache-2.0" ]
null
null
null
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # 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 complia...
37.08
80
0.635075
69daac75cf10c5943f248f4b2a02803e864434d4
2,824
py
Python
dev_ws/src/semantic_segmentation/semantic_segmentation/utils.py
jdgalviss/autonomous_mobile_robot
c5713bb134f9fc5b9eba4457c9782feb87e4ba4a
[ "Apache-2.0" ]
48
2020-08-04T22:46:38.000Z
2022-03-30T16:15:10.000Z
dev_ws/src/semantic_segmentation/semantic_segmentation/utils.py
jdgalviss/autonomous_mobile_robot
c5713bb134f9fc5b9eba4457c9782feb87e4ba4a
[ "Apache-2.0" ]
4
2021-02-16T20:21:17.000Z
2022-03-30T23:03:40.000Z
dev_ws/src/semantic_segmentation/semantic_segmentation/utils.py
jdgalviss/autonomous_mobile_robot
c5713bb134f9fc5b9eba4457c9782feb87e4ba4a
[ "Apache-2.0" ]
17
2020-08-06T06:42:02.000Z
2022-03-11T20:45:28.000Z
from collections import OrderedDict import numpy as np import cv2 import math HEIGHT = 480 WIDTH = 480 PIXEL_PER_METER_X = (WIDTH - 2*100)/2.7 #Horizontal distance between src points in the real world ( I assumed 2.7 meters) PIXEL_PER_METER_Y = (HEIGHT - 2*50)/5.4 #Vertical distance between src points in the real world...
38.684932
149
0.677054
6f277afb95f3a2d25574ef5fb23ba34794c6e530
126
py
Python
tests/moderator.py
maccesch/django-moderation
7b2e5675ce9b308904aa58198e2c5d25097b0317
[ "BSD-3-Clause" ]
null
null
null
tests/moderator.py
maccesch/django-moderation
7b2e5675ce9b308904aa58198e2c5d25097b0317
[ "BSD-3-Clause" ]
null
null
null
tests/moderator.py
maccesch/django-moderation
7b2e5675ce9b308904aa58198e2c5d25097b0317
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals from moderation import moderation from .models import Book moderation.register(Book)
21
39
0.857143
fd32c518d7cc14bf2ad0e0f024ff334e6c8d49cd
9,787
py
Python
pandora/matching_cost/census.py
qfardet/Pandora
67c23134844e5468ca529f1c605f540035fe57c3
[ "Apache-2.0" ]
1
2021-12-09T15:14:38.000Z
2021-12-09T15:14:38.000Z
pandora/matching_cost/census.py
qfardet/Pandora
67c23134844e5468ca529f1c605f540035fe57c3
[ "Apache-2.0" ]
null
null
null
pandora/matching_cost/census.py
qfardet/Pandora
67c23134844e5468ca529f1c605f540035fe57c3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf8 # # Copyright (c) 2020 Centre National d'Etudes Spatiales (CNES). # # This file is part of PANDORA # # https://github.com/CNES/Pandora # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may...
38.081712
113
0.576172
b50e412c8337f3a1c10eebb300113e7d30d7c219
250
py
Python
setup.py
arteedecco/all-reviews-reports-merge
474868598d685997ac28577e9e5ffbaf90eb4e8f
[ "MIT" ]
null
null
null
setup.py
arteedecco/all-reviews-reports-merge
474868598d685997ac28577e9e5ffbaf90eb4e8f
[ "MIT" ]
null
null
null
setup.py
arteedecco/all-reviews-reports-merge
474868598d685997ac28577e9e5ffbaf90eb4e8f
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='yourscript', version='0.1', py_modules=['yourscript'], install_requires=[ 'Click', 'openpyxl', ], entry_points=''' [console_scripts] merge=merge:cli ''', )
17.857143
30
0.568
eb9b631e123972808bd0b8a6e1a30a836d213589
4,784
py
Python
BasicExperiments/RunReadingComp.py
djangraw/PsychoPyParadigms
f63072221f9abb7fb1c64457b65dcb3555e3919b
[ "MIT" ]
50
2016-02-27T23:06:57.000Z
2021-12-23T01:22:18.000Z
BasicExperiments/RunReadingComp.py
caofeizhen/PsychoPyParadigms
dd0921d94d21cc04be8f74de684e24f09dbc9e4d
[ "MIT" ]
null
null
null
BasicExperiments/RunReadingComp.py
caofeizhen/PsychoPyParadigms
dd0921d94d21cc04be8f74de684e24f09dbc9e4d
[ "MIT" ]
44
2016-10-03T10:47:06.000Z
2021-12-23T01:22:20.000Z
#!/usr/bin/env python2 # RunReadingComprehension.py # Created 12/11/14 by DJ based on PlaySoundsWithQuestions.py. # Updated 11/9/15 by DJ - cleanup import os, random from psychopy import visual, event, core, sound #declare parameters questionDur_sec = 8 # time between questions randomize_questions = True #nTrials = ...
31.893333
179
0.658654
0bd2320d3715562c68c39c8f355075a460f929e9
2,340
py
Python
djangae/tests/test_jsonfield.py
iwi-games/djangae
a8e5d051723e6bcd9cdb75c40eef45d748899e9f
[ "BSD-3-Clause" ]
null
null
null
djangae/tests/test_jsonfield.py
iwi-games/djangae
a8e5d051723e6bcd9cdb75c40eef45d748899e9f
[ "BSD-3-Clause" ]
null
null
null
djangae/tests/test_jsonfield.py
iwi-games/djangae
a8e5d051723e6bcd9cdb75c40eef45d748899e9f
[ "BSD-3-Clause" ]
null
null
null
""" Test that you can query on json field properties """ from django.db import models from django.db import connection from djangae.fields import JSONField from djangae.test import TestCase from google.appengine.api.datastore import Get, Key class Dog(models.Model): name = models.CharField(max_length=32) ...
27.209302
93
0.588462
e647864a117daaafa039f2331bbdcbb1f77456be
1,589
py
Python
tests/test_model_basicSaVs.py
alexmitchell/terrainbento
b8f6dd7fd9c96d3a40e0d1f8cd41b1dfe8d0b5da
[ "MIT" ]
18
2018-03-06T01:17:12.000Z
2022-02-11T16:10:31.000Z
tests/test_model_basicSaVs.py
alexmitchell/terrainbento
b8f6dd7fd9c96d3a40e0d1f8cd41b1dfe8d0b5da
[ "MIT" ]
105
2018-03-05T23:36:05.000Z
2021-03-22T01:31:06.000Z
tests/test_model_basicSaVs.py
alexmitchell/terrainbento
b8f6dd7fd9c96d3a40e0d1f8cd41b1dfe8d0b5da
[ "MIT" ]
7
2018-03-13T03:46:38.000Z
2021-03-07T01:03:56.000Z
# coding: utf8 # !/usr/env/python import pytest from numpy.testing import assert_array_almost_equal from terrainbento import BasicSaVs, NotCoreNodeBaselevelHandler @pytest.mark.parametrize("m_sp,n_sp", [(1.0 / 3, 2.0 / 3.0), (0.5, 1.0)]) @pytest.mark.parametrize( "depression_finder", [None, "DepressionFinderAnd...
31.78
76
0.675897
0f95c609fd296c6336ab6301bd692ba02233faf6
3,362
py
Python
pssh/pssh.py
han-ish/pssh
53cc64b4a6d9dcedce81bae12bb628c14724b5c5
[ "MIT" ]
null
null
null
pssh/pssh.py
han-ish/pssh
53cc64b4a6d9dcedce81bae12bb628c14724b5c5
[ "MIT" ]
null
null
null
pssh/pssh.py
han-ish/pssh
53cc64b4a6d9dcedce81bae12bb628c14724b5c5
[ "MIT" ]
null
null
null
import pexpect import uuid import logging import os FORMAT = "%(asctime)s - %(levelname)s - %(name)s - %(message)s" path = os.path.dirname(os.path.abspath(__file__)) file_ = os.path.join(path, os.path.basename(__file__)) filename = "{}.log".format(os.path.splitext(file_)[0]) logging.basicConfig(filename=filename, mod...
33.959596
108
0.620167
0548381cbccc9e60837f3540a23b4ff574b688fc
662
py
Python
DQM/TrackingMonitorClient/python/TrackingDQMClientHeavyIons_cfi.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
13
2015-11-30T15:49:45.000Z
2022-02-08T16:11:30.000Z
DQM/TrackingMonitorClient/python/TrackingDQMClientHeavyIons_cfi.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
640
2015-02-11T18:55:47.000Z
2022-03-31T14:12:23.000Z
DQM/TrackingMonitorClient/python/TrackingDQMClientHeavyIons_cfi.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
51
2015-08-11T21:01:40.000Z
2022-03-30T07:31:34.000Z
import FWCore.ParameterSet.Config as cms from DQMServices.Core.DQMEDHarvester import DQMEDHarvester hiTrackingDqmClientHI = DQMEDHarvester("TrackingDQMClientHeavyIons", FolderName = cms.string('Tracking/TrackParameters/GeneralProperties') ...
44.133333
115
0.738671
aa729fc10299456d5a84232cf231ebdd44455410
5,192
py
Python
selfdrive/locationd/kalman/models/car_kf.py
sushiduy/openpilot
cc6358d983479e918d8deac95554c39ed5866e1a
[ "MIT" ]
40
2018-10-06T19:45:01.000Z
2021-03-08T13:43:03.000Z
selfdrive/locationd/kalman/models/car_kf.py
VipinMahajan/openpilot
da1618d425f3a28330c871f3d22d901bc53d5bdd
[ "MIT" ]
4
2018-12-08T19:02:06.000Z
2019-09-01T13:54:26.000Z
selfdrive/locationd/kalman/models/car_kf.py
VipinMahajan/openpilot
da1618d425f3a28330c871f3d22d901bc53d5bdd
[ "MIT" ]
73
2018-12-03T19:34:42.000Z
2020-07-27T05:10:23.000Z
#!/usr/bin/env python3 import math import numpy as np import sympy as sp from selfdrive.locationd.kalman.helpers import ObservationKind from selfdrive.locationd.kalman.helpers.ekf_sym import EKF_sym, gen_code i = 0 def _slice(n): global i s = slice(i, i + n) i += n return s class States(): # Vehicle m...
26.35533
176
0.629045
cf74a3034991060010fdacf9fabf4b77f1da65a9
1,890
py
Python
tests/subcommands/test_subcommands_parser.py
kuwv/python-argufy
e833d5aa3c491671d0043c0c6861a2f632e238b6
[ "Apache-2.0" ]
null
null
null
tests/subcommands/test_subcommands_parser.py
kuwv/python-argufy
e833d5aa3c491671d0043c0c6861a2f632e238b6
[ "Apache-2.0" ]
3
2021-12-05T15:27:58.000Z
2021-12-05T15:27:59.000Z
tests/subcommands/test_subcommands_parser.py
kuwv/python-argufy
e833d5aa3c491671d0043c0c6861a2f632e238b6
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # :copyright: (c) 2020 by Jesse Johnson. # :license: Apache 2.0, see LICENSE for more details. # type: ignore '''Test parser. Attributes ---------- check_attribute: bool Check document attributes ''' from ast import literal_eval import sys import pytest from argufy import __version__, P...
25.540541
73
0.667725
3bec9e8e89a287ac1c362b22e16984c1ff5bceaa
6,718
py
Python
masq/scripts/netstats.py
ramellose/masq
a10984d099fb81d264db2f851e32512f3b46709c
[ "Apache-2.0" ]
null
null
null
masq/scripts/netstats.py
ramellose/masq
a10984d099fb81d264db2f851e32512f3b46709c
[ "Apache-2.0" ]
null
null
null
masq/scripts/netstats.py
ramellose/masq
a10984d099fb81d264db2f851e32512f3b46709c
[ "Apache-2.0" ]
null
null
null
""" This file contains a class for extracting intersections and differences of networks. These are returned as graphml files. """ __author__ = 'Lisa Rottjers' __maintainer__ = 'Lisa Rottjers' __email__ = 'lisa.rottjers@kuleuven.be' __status__ = 'Development' __license__ = 'Apache 2.0' import sys import os import net...
40.715152
100
0.594373
4fe65819e9119d8382be08f99824f0cf3dcbea95
9,924
py
Python
src/economy/factories.py
bornhack/bornhack-website
40ed0875f5129a4c8ae1887e33e7dedb4981dadc
[ "BSD-3-Clause" ]
7
2017-04-14T15:28:29.000Z
2021-09-10T09:45:38.000Z
src/economy/factories.py
bornhack/bornhack-website
40ed0875f5129a4c8ae1887e33e7dedb4981dadc
[ "BSD-3-Clause" ]
799
2016-04-28T09:31:50.000Z
2022-03-29T09:05:02.000Z
src/economy/factories.py
bornhack/bornhack-website
40ed0875f5129a4c8ae1887e33e7dedb4981dadc
[ "BSD-3-Clause" ]
35
2016-04-28T09:23:53.000Z
2021-05-02T12:36:01.000Z
import factory from django.utils import timezone from .models import ( Bank, BankAccount, BankTransaction, ClearhausSettlement, CoinifyBalance, CoinifyInvoice, CoinifyPayout, EpayTransaction, MobilePayTransaction, ZettleBalance, ZettleReceipt, ) class BankFactory(factory.d...
33.755102
88
0.669589
1306b631a412654be0c4312f4ff5baab0eeaf2fe
1,081
py
Python
db_repository/versions/003_migration.py
protosheis/bunkerch
79a84752ec4f62a1a0068e468e4de3b79de35601
[ "Apache-2.0" ]
null
null
null
db_repository/versions/003_migration.py
protosheis/bunkerch
79a84752ec4f62a1a0068e468e4de3b79de35601
[ "Apache-2.0" ]
null
null
null
db_repository/versions/003_migration.py
protosheis/bunkerch
79a84752ec4f62a1a0068e468e4de3b79de35601
[ "Apache-2.0" ]
null
null
null
from sqlalchemy import * from migrate import * from migrate.changeset import schema pre_meta = MetaData() post_meta = MetaData() post_s = Table('post_s', post_meta, Column('id', Integer, primary_key=True, nullable=False), Column('body', String(length=1800)), Column('timestamp', DateTime), Column('trip...
29.216216
68
0.694727
64eb0c8c9853c5b9aefd59f0b48469d826a0fda0
12,131
py
Python
aysa_commands/remote.py
alejandrobernardis/aysa-commands
2a7e94da0081a1c59cdfd44fb1e00f81e9152e85
[ "MIT" ]
1
2019-10-30T16:41:20.000Z
2019-10-30T16:41:20.000Z
aysa_commands/remote.py
alejandrobernardis/aysa-commands
2a7e94da0081a1c59cdfd44fb1e00f81e9152e85
[ "MIT" ]
null
null
null
aysa_commands/remote.py
alejandrobernardis/aysa-commands
2a7e94da0081a1c59cdfd44fb1e00f81e9152e85
[ "MIT" ]
null
null
null
# Author: Alejandro M. Bernardis # Email: alejandro.bernardis at gmail.com # Created: 2019/10/21 # ~ import re from pathlib import Path from functools import lru_cache from fabric import Connection from aysa_commands import Command DEVELOPMENT = 'development' QUALITY = 'quality' rx_item = re.compile(r'^[a-z](?:[\w_])...
34.463068
80
0.535817
aeb1a656e93b3f672f296edee4e83282b932a1a4
16,931
py
Python
Xgam/utils/foregroundfit_.py
aurelio-amerio/Xgam
fb65ed009bb35984eadd0c576aa385ca3702c8ce
[ "MIT" ]
1
2021-06-14T20:27:30.000Z
2021-06-14T20:27:30.000Z
Xgam2/utils/foregroundfit_.py
aurelio-amerio/Xgam
fb65ed009bb35984eadd0c576aa385ca3702c8ce
[ "MIT" ]
null
null
null
Xgam2/utils/foregroundfit_.py
aurelio-amerio/Xgam
fb65ed009bb35984eadd0c576aa385ca3702c8ce
[ "MIT" ]
1
2021-06-14T20:27:55.000Z
2021-06-14T20:27:55.000Z
#!/usr/bin/env python # # # # Autor: Michela Negro, GSFC/CRESST/UMBC . # # ...
38.655251
99
0.595358
115cb26b6ad1002af58f6831c49a750328a63443
5,827
py
Python
sdk/python/pulumi_azure_nextgen/authorization/v20190101/get_policy_definition.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/authorization/v20190101/get_policy_definition.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/authorization/v20190101/get_policy_definition.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __a...
35.10241
165
0.64613
c96a7c514bd7f3ff6a05a4c2c18927eba646ee26
2,061
py
Python
matGenerator.py
evan69/image_crawler
2ce1b2e9767619c99044106943d10611de95608e
[ "MIT" ]
1
2017-07-20T01:26:25.000Z
2017-07-20T01:26:25.000Z
matGenerator.py
evan69/Flickr_multimodal_learning
2ce1b2e9767619c99044106943d10611de95608e
[ "MIT" ]
null
null
null
matGenerator.py
evan69/Flickr_multimodal_learning
2ce1b2e9767619c99044106943d10611de95608e
[ "MIT" ]
null
null
null
# example of transporting python data to .mat file for matlab program # evan69 import numpy as np import scipy.io import sys,os def writeMat(): fin = open(sys.argv[2],'r') all_data = [] lines = fin.readlines() num_of_lines = 0 demen_of_lines = len(lines[0].split(' ')) - 3 print 'demen_of_lines'...
32.714286
110
0.562348
61a63bfee31716fb3b6780515c9e9a2d123cca6c
934
py
Python
unit 5/exc. 5.5.1.py
AviKalPython/self.py
44f8de33797a9ea28bbd1e01006920ba7c818b97
[ "MIT" ]
null
null
null
unit 5/exc. 5.5.1.py
AviKalPython/self.py
44f8de33797a9ea28bbd1e01006920ba7c818b97
[ "MIT" ]
null
null
null
unit 5/exc. 5.5.1.py
AviKalPython/self.py
44f8de33797a9ea28bbd1e01006920ba7c818b97
[ "MIT" ]
null
null
null
# exc. 5.5.1 (Rolling Mission) def is_valid_input(letter_guessed): """ the function will check if the user typed only one letter in english. False if: 1. 2 letters or more/ 2. if the "string" contains a symbol :param boolean: save the answer (T/F) :type boolean: bool ...
30.129032
74
0.59743
1c32514c028b0480632a4b1f7b56d532e08a2464
37,613
py
Python
tests/core/tests/query.py
AGoodId/django-haystack
7e366e39fecf25035490f9512044061c41c72ae4
[ "BSD-3-Clause" ]
null
null
null
tests/core/tests/query.py
AGoodId/django-haystack
7e366e39fecf25035490f9512044061c41c72ae4
[ "BSD-3-Clause" ]
null
null
null
tests/core/tests/query.py
AGoodId/django-haystack
7e366e39fecf25035490f9512044061c41c72ae4
[ "BSD-3-Clause" ]
1
2021-12-20T15:35:48.000Z
2021-12-20T15:35:48.000Z
# -*- coding: utf-8 -*- import datetime from django.conf import settings from django.test import TestCase from haystack import connections, connection_router, reset_search_queries from haystack.backends import SQ, BaseSearchQuery from haystack.exceptions import FacetingError from haystack import indexes from haystack.m...
42.261798
893
0.656236
1dfd9e7a98828ce840094a85fb9c5ce7ee5e6597
1,916
py
Python
L1Trigger/CSCTrackFinder/test/lctPrinter_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
L1Trigger/CSCTrackFinder/test/lctPrinter_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
L1Trigger/CSCTrackFinder/test/lctPrinter_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms process = cms.Process("Demo") process.load("FWCore.MessageService.MessageLogger_cfi") #process.MessageLogger.cerr.threshold = "" #process.MessageLogger.cerr.FwkReport.reportEvery = 1000 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(500) ) process.source...
45.619048
92
0.788622
75d7f82cdd9468d061e9ddbe8eb355a16247ca15
474
py
Python
AlgoExpert/linked_lists/removeKthNodeFromEnd.py
Muzque/Leetcode
d06365792c9ef48e0a290da00ba5e71f212554d5
[ "MIT" ]
1
2021-05-11T09:52:38.000Z
2021-05-11T09:52:38.000Z
AlgoExpert/linked_lists/removeKthNodeFromEnd.py
Muzque/Leetcode
d06365792c9ef48e0a290da00ba5e71f212554d5
[ "MIT" ]
null
null
null
AlgoExpert/linked_lists/removeKthNodeFromEnd.py
Muzque/Leetcode
d06365792c9ef48e0a290da00ba5e71f212554d5
[ "MIT" ]
1
2021-05-05T04:13:17.000Z
2021-05-05T04:13:17.000Z
# This is an input class. Do not edit. class LinkedList: def __init__(self, value): self.value = value self.next = None def removeKthNodeFromEnd(head, k): node = head counter = 0 while head is not None: if counter > k: node = node.next head = head.next ...
22.571429
38
0.565401
9a589c38c21191a0e68548c627628328d5624b40
3,956
py
Python
python/GafferImageTest/FormatPlugTest.py
cwmartin/gaffer
1f8a0f75522105c9d5efefac6d55cb61c1038909
[ "BSD-3-Clause" ]
null
null
null
python/GafferImageTest/FormatPlugTest.py
cwmartin/gaffer
1f8a0f75522105c9d5efefac6d55cb61c1038909
[ "BSD-3-Clause" ]
null
null
null
python/GafferImageTest/FormatPlugTest.py
cwmartin/gaffer
1f8a0f75522105c9d5efefac6d55cb61c1038909
[ "BSD-3-Clause" ]
null
null
null
########################################################################## # # Copyright (c) 2012-2013, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redi...
35.963636
164
0.680738
7eb1f6ce4f541cc8f6775894f1b107fc3e177385
811
py
Python
file_reader/file_readers.py
tybruno/file_reader
5601164a0f2e561e7da69ec0cab8072db7d6e6b0
[ "MIT" ]
null
null
null
file_reader/file_readers.py
tybruno/file_reader
5601164a0f2e561e7da69ec0cab8072db7d6e6b0
[ "MIT" ]
2
2021-08-05T19:13:05.000Z
2021-08-06T18:06:23.000Z
file_reader/file_readers.py
tybruno/file_reader
5601164a0f2e561e7da69ec0cab8072db7d6e6b0
[ "MIT" ]
null
null
null
from abc import ( ABC, abstractmethod, ) from dataclasses import dataclass from pathlib import Path from typing import ( Callable, Iterable, Union, ) class FileReaderError(Exception): ... class AbstractFileReader(ABC): @abstractmethod def __call__(self, file: Union[str, Path]) -> str...
21.342105
62
0.625154
d8cd94a561406e90cfef3ea8d5204c9e89d2db19
4,612
py
Python
utils/three2four_match.py
tervay/the-blue-alliance
e14c15cb04b455f90a2fcfdf4c1cdbf8454e17f8
[ "MIT" ]
266
2015-01-04T00:10:48.000Z
2022-03-28T18:42:05.000Z
utils/three2four_match.py
gregmarra/the-blue-alliance
5bedaf5c80b4623984760d3da3289640639112f9
[ "MIT" ]
2,673
2015-01-01T20:14:33.000Z
2022-03-31T18:17:16.000Z
utils/three2four_match.py
gregmarra/the-blue-alliance
5bedaf5c80b4623984760d3da3289640639112f9
[ "MIT" ]
230
2015-01-04T00:10:48.000Z
2022-03-26T18:12:04.000Z
# three2four_match.py # # Converts a CSV export of TBAv3 SQL Matches into the read CSV format for # TBAv4 on Google App Engine. Sets no_auto_update to true. # # Incoming CSV format: # event.year, event.eventshort, complevel, matchnumber, red1, red2, red3, blue1, blue2, blue3, redscore, bluescore # # python three2four_m...
31.37415
215
0.615134
c07d8157623a8f1187b610e8b4cde2980efec5ed
5,909
py
Python
coop_cms/utils/emails.py
BenjCherpas/coop_cms
3e50990fdff6ce186509fca7f8b8f3b3134005f1
[ "BSD-3-Clause" ]
null
null
null
coop_cms/utils/emails.py
BenjCherpas/coop_cms
3e50990fdff6ce186509fca7f8b8f3b3134005f1
[ "BSD-3-Clause" ]
null
null
null
coop_cms/utils/emails.py
BenjCherpas/coop_cms
3e50990fdff6ce186509fca7f8b8f3b3134005f1
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """utils""" from __future__ import unicode_literals from bs4 import BeautifulSoup from django.conf import settings from django.contrib.sites.models import Site from django.core.mail import get_connection, EmailMultiAlternatives from django.template.loader import get_template from django.utils...
30.776042
102
0.643425
42e94c22420e27cd68d97897dc510eecafef7c17
5,269
py
Python
LogSystem_JE/venv/Lib/site-packages/pygments/lexers/email.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
LogSystem_JE/venv/Lib/site-packages/pygments/lexers/email.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
LogSystem_JE/venv/Lib/site-packages/pygments/lexers/email.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ pygments.lexers.email ~~~~~~~~~~~~~~~~~~~~~ Lexer for the raw E-mail. :copyright: Copyright 2006-2020 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ from pygments.lexer import RegexLexer, DelegatingLexer, bygroups from pygmen...
34.664474
92
0.393813
4081b282d079c7249a336296a4311883e348d349
2,538
py
Python
advex_uar/analysis/compute_ata.py
nraghuraman/advex-uar
b2bd5c2bf3ae07d3d5c65b81e4a6c5e21284fa43
[ "Apache-2.0" ]
75
2019-08-22T04:56:17.000Z
2022-03-28T02:32:55.000Z
advex_uar/analysis/compute_ata.py
nraghuraman/advex-uar
b2bd5c2bf3ae07d3d5c65b81e4a6c5e21284fa43
[ "Apache-2.0" ]
7
2019-10-08T16:27:48.000Z
2022-02-18T01:36:02.000Z
advex_uar/analysis/compute_ata.py
nraghuraman/advex-uar
b2bd5c2bf3ae07d3d5c65b81e4a6c5e21284fa43
[ "Apache-2.0" ]
18
2019-08-22T15:55:22.000Z
2022-02-17T19:32:10.000Z
import json import click def parse_logs(log_file): with open(log_file, 'r') as f: data = json.load(f) if type(data) == list: return data else: return [data] def get_attack(log): return log['attack'], log['epsilon'], log['n_iters'], log['step_size'] def get_attacks(all_logs): ...
30.95122
129
0.628054
46d2513517646e34549342ff4815be4ec0d7c581
18,438
py
Python
death/DNC/adamaxseqtrainer_no_valid.py
Fuchai/mayoehr
ec79d2157bedf4f4f0fc783d86523df8a758e27c
[ "MIT" ]
null
null
null
death/DNC/adamaxseqtrainer_no_valid.py
Fuchai/mayoehr
ec79d2157bedf4f4f0fc783d86523df8a758e27c
[ "MIT" ]
null
null
null
death/DNC/adamaxseqtrainer_no_valid.py
Fuchai/mayoehr
ec79d2157bedf4f4f0fc783d86523df8a758e27c
[ "MIT" ]
null
null
null
import pandas as pd import torch import numpy as np import pdb from pathlib import Path import os from os.path import abspath from death.post.inputgen_planI import InputGenI, pad_collate from death.post.inputgen_planG import InputGenG, pad_collate from death.post.inputgen_planH import InputGenH from death.post.inputgen...
37.628571
134
0.609231
e98dc6fed8b5b136a72a43fbaf3a6133a9855e1d
751
py
Python
django_bootstrap3_multidatepicker/multidate_demo/forms.py
FabianWe/django-bootstrap3-datepicker
2f520ebf69db50a3b7ece13d0b2ab6806425f6a1
[ "Apache-2.0" ]
5
2016-08-16T12:08:02.000Z
2017-08-15T23:34:14.000Z
django_bootstrap3_multidatepicker/multidate_demo/forms.py
FabianWe/django-bootstrap3-datepicker
2f520ebf69db50a3b7ece13d0b2ab6806425f6a1
[ "Apache-2.0" ]
4
2017-05-12T18:29:30.000Z
2021-05-10T17:15:00.000Z
django_bootstrap3_multidatepicker/multidate_demo/forms.py
FabianWe/django-bootstrap3-datepicker
2f520ebf69db50a3b7ece13d0b2ab6806425f6a1
[ "Apache-2.0" ]
3
2016-02-19T06:03:21.000Z
2018-08-08T14:30:58.000Z
# Copyright 2016 Fabian Wenzelmann # 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, ...
35.761905
74
0.781625
8596392efada91280c94e2104269286b22483cff
3,366
py
Python
SL0T0X/forms.py
zhangyi66ch/Slotleet
d93f053a6f81379b75c1de2ae790637d8ea8192e
[ "WTFPL" ]
null
null
null
SL0T0X/forms.py
zhangyi66ch/Slotleet
d93f053a6f81379b75c1de2ae790637d8ea8192e
[ "WTFPL" ]
null
null
null
SL0T0X/forms.py
zhangyi66ch/Slotleet
d93f053a6f81379b75c1de2ae790637d8ea8192e
[ "WTFPL" ]
null
null
null
#!/usr/bin/env python3 """ [#] Author: 0m4rS3c [#] Email: 0m4rS3c[at]Gmail.com [#] Description: SL0T0X, is a modular web penetration testing interface, Made specially for private People... """ from flask_wtf import FlaskForm from flask_wtf.file import FileField, FileAllowed from markupsafe import Markup fr...
38.689655
112
0.605169
3a962ea9a9cf8109673ae80f34f32ff6aad03706
512
py
Python
public_21CMvFAST_MC/Programs/CosmoHammer_21CMMC/likelihood/module/MultivarianteGaussianModule.py
NNSSA/21cmvFAST
8f015427f3609a3051b4fa185bdbe55b379c930f
[ "MIT" ]
5
2019-04-18T11:31:34.000Z
2020-11-15T03:29:14.000Z
public_21CMvFAST_MC/Programs/CosmoHammer_21CMMC/likelihood/module/MultivarianteGaussianModule.py
NNSSA/21cmvFAST
8f015427f3609a3051b4fa185bdbe55b379c930f
[ "MIT" ]
1
2019-12-17T05:27:25.000Z
2019-12-18T19:59:55.000Z
public_21CMvFAST_MC/Programs/CosmoHammer_21CMMC/likelihood/module/MultivarianteGaussianModule.py
NNSSA/21cmvFAST
8f015427f3609a3051b4fa185bdbe55b379c930f
[ "MIT" ]
2
2019-11-14T13:54:46.000Z
2019-12-08T17:16:53.000Z
#!/usr/bin/env python import numpy as np class MultivarianteGaussianModule(object): """ Chain for computing the likelihood of a multivariante gaussian distribution """ def __init__(self, icov, mu): self.icov = icov self.mu = mu def computeLikelihood(self, ctx): x ...
22.26087
79
0.591797
408c49674750899b47ac274a931bf1f81888a8d5
11,763
py
Python
intersight/model/fabric_port_policy_response.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
5
2021-12-16T15:13:32.000Z
2022-03-29T16:09:54.000Z
intersight/model/fabric_port_policy_response.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
4
2022-01-25T19:05:51.000Z
2022-03-29T20:18:37.000Z
intersight/model/fabric_port_policy_response.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
2
2020-07-07T15:01:08.000Z
2022-01-31T04:27:35.000Z
""" Cisco Intersight Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advan...
47.052
1,678
0.637507
1e4cf12830debfdd2860c9bcb59765de4528829e
15,272
py
Python
telethon_examples/interactive_telegram_client.py
jossalgon/Telethon
c36807987aeee0dbe000509449fe41e7d4f6b548
[ "MIT" ]
null
null
null
telethon_examples/interactive_telegram_client.py
jossalgon/Telethon
c36807987aeee0dbe000509449fe41e7d4f6b548
[ "MIT" ]
null
null
null
telethon_examples/interactive_telegram_client.py
jossalgon/Telethon
c36807987aeee0dbe000509449fe41e7d4f6b548
[ "MIT" ]
null
null
null
import os from getpass import getpass from telethon.utils import get_display_name from telethon import ConnectionMode, TelegramClient from telethon.errors import SessionPasswordNeededError from telethon.tl.types import ( PeerChat, UpdateShortChatMessage, UpdateShortMessage ) def sprint(string, *args, **kwargs):...
41.841096
83
0.547734
3be5ee02bef9516b1cfca6650ebcc2c819490fb7
406
py
Python
feedback/reviews/models.py
goulartdev/udemy-django-course
f39ab36aacdf47d19f8c286c317cc54d8358dadc
[ "MIT" ]
null
null
null
feedback/reviews/models.py
goulartdev/udemy-django-course
f39ab36aacdf47d19f8c286c317cc54d8358dadc
[ "MIT" ]
null
null
null
feedback/reviews/models.py
goulartdev/udemy-django-course
f39ab36aacdf47d19f8c286c317cc54d8358dadc
[ "MIT" ]
null
null
null
from django.db import models from django.core.validators import ( MinValueValidator, MaxValueValidator, MinLengthValidator, ) class Review(models.Model): username = models.CharField(max_length=20, validators=[MinLengthValidator(5)]) review_text = models.TextField(max_length=200) rating = model...
27.066667
82
0.741379
97540ad2fb6112536acc03eab81600915a813ad8
587
py
Python
var/spack/repos/builtin/packages/py-transforms3d/package.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2,360
2017-11-06T08:47:01.000Z
2022-03-31T14:45:33.000Z
var/spack/repos/builtin/packages/py-transforms3d/package.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
13,838
2017-11-04T07:49:45.000Z
2022-03-31T23:38:39.000Z
var/spack/repos/builtin/packages/py-transforms3d/package.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1,793
2017-11-04T07:45:50.000Z
2022-03-30T14:31:53.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) from spack import * class PyTransforms3d(PythonPackage): """Functions for 3D coordinate transformations.""" hom...
32.611111
95
0.739353
f9ae8678d0a7268055ee2116a42b96b7ddd38ffe
1,340
py
Python
ai-experiments/othello/agent.py
Henchel-Santillan/open-ai
545bf8468330dce7e705c17e0ac4ce3889f20d5b
[ "MIT" ]
null
null
null
ai-experiments/othello/agent.py
Henchel-Santillan/open-ai
545bf8468330dce7e705c17e0ac4ce3889f20d5b
[ "MIT" ]
null
null
null
ai-experiments/othello/agent.py
Henchel-Santillan/open-ai
545bf8468330dce7e705c17e0ac4ce3889f20d5b
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod class Agent(ABC): def __init__(self, shade, a_name): self.shade = shade self.a_name = a_name @abstractmethod def make_move(self, board): pass class HAgent(Agent): def __init__(self, shade, a_name): super().__in...
23.508772
74
0.485821
d876832f8688cfefe302cfafac5930e5b679fb3e
7,185
py
Python
qcodes/tests/dataset/test_subscribing.py
riju-pal/QCoDeS_riju
816e76809160e9af457f6ef6d4aca1b0dd5eea82
[ "MIT" ]
223
2016-10-29T15:00:24.000Z
2022-03-20T06:53:34.000Z
qcodes/tests/dataset/test_subscribing.py
M1racleShih/Qcodes
c03029a6968e16379155aadc8b083a02e01876a6
[ "MIT" ]
3,406
2016-10-25T10:44:50.000Z
2022-03-31T09:47:35.000Z
qcodes/tests/dataset/test_subscribing.py
nikhartman/Qcodes
042c5e25ab9e40b20c316b4055c4842844834d1e
[ "MIT" ]
263
2016-10-25T11:35:36.000Z
2022-03-31T08:53:20.000Z
# Test some subscription scenarios from typing import List, Tuple, Dict, Union, Any from numbers import Number import pytest from numpy import ndarray import logging import qcodes from qcodes.dataset.descriptions.param_spec import ParamSpecBase from qcodes.dataset.descriptions.dependencies import InterDependencies_ f...
33.574766
86
0.595129
3243181968dfab0928391753feef30f9ec030ec0
1,146
py
Python
pyanalyze/test_analysis_lib.py
nbdaaron/pyanalyze
68a3cb9ee4dd0f2c97e83da5662abf565435b1eb
[ "Apache-2.0" ]
2
2022-01-31T23:14:12.000Z
2022-02-02T19:58:24.000Z
pyanalyze/test_analysis_lib.py
Seanpm2001-Quora/pyanalyze
5c7d1028fc8f8f94d34955627f9cfd284110a84a
[ "Apache-2.0" ]
null
null
null
pyanalyze/test_analysis_lib.py
Seanpm2001-Quora/pyanalyze
5c7d1028fc8f8f94d34955627f9cfd284110a84a
[ "Apache-2.0" ]
null
null
null
import ast from .analysis_lib import get_indentation, get_line_range_for_node def test_get_indentation() -> None: assert 0 == get_indentation("\n") assert 0 == get_indentation("") assert 4 == get_indentation(" pass\n") assert 1 == get_indentation(" hello") CODE = r'''from qcore.asserts import as...
25.466667
83
0.688482
beabbbef8ac1310d8f69160ae36317e1b62b72ae
4,625
py
Python
functions_reports.py
leonov-av/savus
1092ad68605f4a31a0652e796c7148444029d078
[ "MIT" ]
8
2021-10-17T04:31:01.000Z
2022-03-25T07:32:25.000Z
functions_reports.py
leonov-av/savus
1092ad68605f4a31a0652e796c7148444029d078
[ "MIT" ]
null
null
null
functions_reports.py
leonov-av/savus
1092ad68605f4a31a0652e796c7148444029d078
[ "MIT" ]
2
2021-11-14T11:23:48.000Z
2021-11-15T09:59:38.000Z
import json from beautifultable import BeautifulTable def get_vulnerability_report(target, os_data, vulners_linux_audit_data): report_dict = dict() levels = set() necessary_levels = ['Critical', 'High', 'Medium'] bull_to_criticality = dict() for package in vulners_linux_audit_data['data']['packages...
37.601626
127
0.564324
f7d8b9ce0988a1ddd4ce1c5e3ccfb134d02fdefb
12,390
py
Python
b2sdk/v1/bucket.py
KernelErr/b2-sdk-python
5310ebdf29f073895f34ffe58893fc50ebdd8c83
[ "MIT" ]
128
2019-02-02T17:53:23.000Z
2022-03-28T09:28:35.000Z
b2sdk/v1/bucket.py
KernelErr/b2-sdk-python
5310ebdf29f073895f34ffe58893fc50ebdd8c83
[ "MIT" ]
168
2019-02-26T22:14:16.000Z
2022-03-27T06:25:28.000Z
b2sdk/v1/bucket.py
KernelErr/b2-sdk-python
5310ebdf29f073895f34ffe58893fc50ebdd8c83
[ "MIT" ]
52
2019-01-28T16:40:56.000Z
2022-03-14T19:55:05.000Z
###################################################################### # # File: b2sdk/v1/bucket.py # # Copyright 2021 Backblaze Inc. All Rights Reserved. # # License https://www.backblaze.com/using_b2_code.html # ###################################################################### from .download_dest import Abstrac...
43.020833
197
0.665456
4fb989a1c3a442dc3e95ddb5b55a98f4173b4c26
13,446
py
Python
user_survey.py
ScilifelabDataCentre/publication_reporting
d8ce3726970d10f131419fbb7a64096ef935e91b
[ "MIT" ]
null
null
null
user_survey.py
ScilifelabDataCentre/publication_reporting
d8ce3726970d10f131419fbb7a64096ef935e91b
[ "MIT" ]
3
2021-03-13T09:13:39.000Z
2021-03-13T09:13:48.000Z
user_survey.py
ScilifelabDataCentre/publication_reporting
d8ce3726970d10f131419fbb7a64096ef935e91b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- #Author: Adrian Lärkeryd <adrian.larkeryd@scilifelab.uu.se> #Plotting libs import plotly import plotly.graph_objs as go import random def mean(numbers): return float(sum(numbers)) / max(len(numbers), 1) survey_data = dict() all_service = list() all_quality = list() al...
26.364706
153
0.683846
4aeed4f26368005092c6407b800a8c220c1adf78
2,488
py
Python
SUAVE/SUAVE-2.5.0/trunk/SUAVE/Methods/Missions/Segments/Cruise/Common.py
Vinicius-Tanigawa/Undergraduate-Research-Project
e92372f07882484b127d7affe305eeec2238b8a9
[ "MIT" ]
null
null
null
SUAVE/SUAVE-2.5.0/trunk/SUAVE/Methods/Missions/Segments/Cruise/Common.py
Vinicius-Tanigawa/Undergraduate-Research-Project
e92372f07882484b127d7affe305eeec2238b8a9
[ "MIT" ]
null
null
null
SUAVE/SUAVE-2.5.0/trunk/SUAVE/Methods/Missions/Segments/Cruise/Common.py
Vinicius-Tanigawa/Undergraduate-Research-Project
e92372f07882484b127d7affe305eeec2238b8a9
[ "MIT" ]
null
null
null
## @ingroup Methods-Missions-Segments-Cruise # Common.py # # Created: Jul 2014, SUAVE Team # Modified: Jan 2016, E. Botero # Mar 2020, M. Clarke # ---------------------------------------------------------------------- # Imports # ---------------------------------------------------------------------- impo...
28.930233
85
0.465434
37bec479c6d67687f666cee22924ece704836bac
1,107
py
Python
modules/mo_pytorch/mo_extensions/front/pytorch/transpose_ext.py
pelszkow/openvino_contrib
345788490bd9cdf00c6c1282ceb100aa9d559fe9
[ "Apache-2.0" ]
56
2020-11-19T15:04:30.000Z
2022-03-30T20:06:07.000Z
modules/mo_pytorch/mo_extensions/front/pytorch/transpose_ext.py
pelszkow/openvino_contrib
345788490bd9cdf00c6c1282ceb100aa9d559fe9
[ "Apache-2.0" ]
130
2020-11-06T12:35:13.000Z
2022-03-31T11:04:27.000Z
modules/mo_pytorch/mo_extensions/front/pytorch/transpose_ext.py
pelszkow/openvino_contrib
345788490bd9cdf00c6c1282ceb100aa9d559fe9
[ "Apache-2.0" ]
60
2020-11-02T16:40:22.000Z
2022-03-30T20:06:11.000Z
""" Copyright (C) 2018-2020 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to i...
29.918919
73
0.730804
cfed4646f592cd0727e80fa4ad1dff00fc873585
203
py
Python
dace/libraries/blas/__init__.py
targetsm/dace
297b12804a334df8cc6fad5250d5fb0cce20dc6e
[ "BSD-3-Clause" ]
null
null
null
dace/libraries/blas/__init__.py
targetsm/dace
297b12804a334df8cc6fad5250d5fb0cce20dc6e
[ "BSD-3-Clause" ]
null
null
null
dace/libraries/blas/__init__.py
targetsm/dace
297b12804a334df8cc6fad5250d5fb0cce20dc6e
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2019-2020 ETH Zurich and the DaCe authors. All rights reserved. from dace.library import register_library from .nodes import * from .environments import * register_library(__name__, "blas")
29
75
0.79803
60d3e17c76e0076a1140dc70837ec4e56039e5d9
6,905
py
Python
models/layers.py
mseok/stylizing_textimage
be2871020f5a3f90f4d459215ca64a5db5103f5a
[ "MIT" ]
1
2019-12-07T07:01:39.000Z
2019-12-07T07:01:39.000Z
models/layers.py
mseok/stylizing_textimage
be2871020f5a3f90f4d459215ca64a5db5103f5a
[ "MIT" ]
null
null
null
models/layers.py
mseok/stylizing_textimage
be2871020f5a3f90f4d459215ca64a5db5103f5a
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F import copy import argparse class SingleConv(nn.Module): def __init__(self, in_dim, out_dim): super(SingleConv, self).__init__() self.layers = nn.Sequential( nn.Conv2d(in_channels=in_dim, out_chann...
34.525
90
0.521361
c2d546d672b42c07603cc7774396501a49c085fb
577
py
Python
Redes e Internet/client-app.py
andurei/python-studies-and-modules
2f61effa650990fcf92ea4e74f14c2772b834e51
[ "MIT" ]
null
null
null
Redes e Internet/client-app.py
andurei/python-studies-and-modules
2f61effa650990fcf92ea4e74f14c2772b834e51
[ "MIT" ]
null
null
null
Redes e Internet/client-app.py
andurei/python-studies-and-modules
2f61effa650990fcf92ea4e74f14c2772b834e51
[ "MIT" ]
null
null
null
import socket host = socket.gethostname() # Pega o ip do host port = 12345 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # isso aqui está no server e no cliente s.connect((host, port)) # (host, bind) é uma tupla; no server seria s.bind((host, port)) message = [b' Ismael boi'] # mensagem em formato bytes ...
25.086957
93
0.693241
abeafdecbeea74135d433e0e1a59b68200c4b51e
1,536
py
Python
completed_projects/wedgeprod.py
treemcgee42/youtube
68aa6914a01014a18c5f52e0b5a62f8cc8173354
[ "MIT" ]
null
null
null
completed_projects/wedgeprod.py
treemcgee42/youtube
68aa6914a01014a18c5f52e0b5a62f8cc8173354
[ "MIT" ]
null
null
null
completed_projects/wedgeprod.py
treemcgee42/youtube
68aa6914a01014a18c5f52e0b5a62f8cc8173354
[ "MIT" ]
null
null
null
from manimlib.imports import * from NumberCreature.NumberCreature import * class surfaceintegral(ThreeDScene): def construct(self): axes = ThreeDAxes() paraboloid = ParametricSurface( lambda u, v: np.array([ np.cos(v)*u, np.sin(v)*u, -1*u*...
41.513514
111
0.60612
25c6c7ec97b059de77ca8ed4db11d33e713d2b00
1,911
py
Python
python/tagVersion_liangshan.py
houko/FrequentlyShell
a12cb0a96def2662453f66e0224957da126bccac
[ "MIT" ]
5
2017-05-04T08:50:12.000Z
2019-04-23T06:51:08.000Z
python/tagVersion_liangshan.py
houko/FrequentlyShell
a12cb0a96def2662453f66e0224957da126bccac
[ "MIT" ]
1
2017-05-04T09:07:28.000Z
2017-05-04T09:13:13.000Z
python/tagVersion_liangshan.py
houko/FrequentlyShell
a12cb0a96def2662453f66e0224957da126bccac
[ "MIT" ]
1
2019-06-15T03:12:43.000Z
2019-06-15T03:12:43.000Z
#! /usr/bin/python3 # coding=utf-8 """ 把今天最好的表现当作明天最新的起点..~ いま 最高の表現 として 明日最新の始発..~ Today the best performance as tomorrow newest starter! Created by IntelliJ IDEA. author: xiaomo github: https://github.com/syoubaku email: xiaomo@xiamoo.info QQ_NO: 83387856 Date: 17/5/31 14:53 Description: 梁山传奇打版本 Copyrig...
22.22093
102
0.642595
3093844004736a2649e73ce4b800e228a5458bf6
3,731
py
Python
tools/run_test_via_ssh.py
kapkic/native_client
51c8bc8c249d55606232ae011bdfc8b4cab3d794
[ "BSD-3-Clause" ]
1
2021-12-23T00:36:43.000Z
2021-12-23T00:36:43.000Z
tools/run_test_via_ssh.py
kapkic/native_client
51c8bc8c249d55606232ae011bdfc8b4cab3d794
[ "BSD-3-Clause" ]
null
null
null
tools/run_test_via_ssh.py
kapkic/native_client
51c8bc8c249d55606232ae011bdfc8b4cab3d794
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ This script runs a test program on a remote host via SSH. It copies input files to the remote host using rsync. Arguments t...
35.533333
80
0.624765
cf242ac0e9e8a5cdf261232325cf265ba9fb149f
21
py
Python
btd6_memory_info/generated/Facepunch/facepunch.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Facepunch/facepunch.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Facepunch/facepunch.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class Facepunch: pass
21
21
0.857143
118dd0f9fa5267c657a21ae8d0e365b4ad8f0b68
545
py
Python
clientes/migrations/0004_auto_20210107_0751.py
WesGtoX/gestao-clientes
851b1c89e7b86f6d0b60d9b8d9c2bed3b629d8bf
[ "MIT" ]
null
null
null
clientes/migrations/0004_auto_20210107_0751.py
WesGtoX/gestao-clientes
851b1c89e7b86f6d0b60d9b8d9c2bed3b629d8bf
[ "MIT" ]
3
2021-04-07T01:58:51.000Z
2021-04-07T01:59:01.000Z
clientes/migrations/0004_auto_20210107_0751.py
WesGtoX/gestao-clientes
851b1c89e7b86f6d0b60d9b8d9c2bed3b629d8bf
[ "MIT" ]
null
null
null
# Generated by Django 2.2.6 on 2021-01-07 07:51 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('clientes', '0003_auto_20210107_0724'), ] operations = [ migrations.RemoveField( model_name='venda', name='pessoa', )...
20.185185
48
0.53945
f4190638f95e8a3cedfd0fdf8b56d67bcb5a04da
3,000
py
Python
resources/fred/dataset.py
zeroshot-ts/zeroshot-ts
177039565c3729dec0c25e8830c366c069b32ead
[ "Apache-2.0" ]
null
null
null
resources/fred/dataset.py
zeroshot-ts/zeroshot-ts
177039565c3729dec0c25e8830c366c069b32ead
[ "Apache-2.0" ]
null
null
null
resources/fred/dataset.py
zeroshot-ts/zeroshot-ts
177039565c3729dec0c25e8830c366c069b32ead
[ "Apache-2.0" ]
null
null
null
import logging import os import pickle from dataclasses import dataclass from typing import Tuple from tqdm import tqdm from common.settings import RESOURCES_DIR from common.timeseries import Timeseries, TimeseriesBundle, TimeseriesLoader, Year, Month, Day from resources.fred.api import FredAPI @dataclass(frozen=Tr...
37.5
100
0.572333
55a746c6d77bb1661b74b2cf8dedb60adbce034f
340
py
Python
test/test.py
chunribu/tpp-python
ea8e585fcbfdda941c18e320397868919807b49a
[ "BSD-2-Clause" ]
null
null
null
test/test.py
chunribu/tpp-python
ea8e585fcbfdda941c18e320397868919807b49a
[ "BSD-2-Clause" ]
null
null
null
test/test.py
chunribu/tpp-python
ea8e585fcbfdda941c18e320397868919807b49a
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 from .tpp import TR def main(): tr = TR() tr.load_clean('demoData.csv') IDs = tr.data.uniqueID() # multithread the following steps batch = IDs[:] tr.batch_fit_pred(batch) tr.batch_evaluate(batch) tr.batch_plot(batch) # run non-paramatric test all at once ...
20
41
0.65
2d57447a212364cce432dc27547b10d44d7b4dbf
681
py
Python
onnxmltools/convert/keras/operator_converters/Flatten.py
Oewyn/onnxmltools
8dbd844dab77754971f59d4d533e6763ce0b03c2
[ "MIT" ]
1
2018-04-10T02:30:47.000Z
2018-04-10T02:30:47.000Z
onnxmltools/convert/keras/operator_converters/Flatten.py
Oewyn/onnxmltools
8dbd844dab77754971f59d4d533e6763ce0b03c2
[ "MIT" ]
null
null
null
onnxmltools/convert/keras/operator_converters/Flatten.py
Oewyn/onnxmltools
8dbd844dab77754971f59d4d533e6763ce0b03c2
[ "MIT" ]
1
2018-06-27T18:16:20.000Z
2018-06-27T18:16:20.000Z
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- from kera...
37.833333
95
0.606461
7cf9c966eb7a6ceacade3dda376d5a9ac21d23a3
3,323
py
Python
kernel/components/featurecalculation/base/manually_filter.py
rinceyuan/WeFe
8482cb737cb7ba37b2856d184cd42c1bd35a6318
[ "Apache-2.0" ]
39
2021-10-12T01:43:27.000Z
2022-03-28T04:46:35.000Z
kernel/components/featurecalculation/base/manually_filter.py
rinceyuan/WeFe
8482cb737cb7ba37b2856d184cd42c1bd35a6318
[ "Apache-2.0" ]
6
2021-10-14T02:11:47.000Z
2022-03-23T02:41:50.000Z
kernel/components/featurecalculation/base/manually_filter.py
rinceyuan/WeFe
8482cb737cb7ba37b2856d184cd42c1bd35a6318
[ "Apache-2.0" ]
10
2021-10-14T09:36:03.000Z
2022-02-10T11:05:12.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2021 Tianmian Tech. 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/LI...
42.063291
107
0.724345
c6bb72458d5d45030fae6b7d318b400226e624cf
11,851
py
Python
modules/pytket-cirq/pytket/extensions/cirq/cirq_convert.py
dhaycraft/pytket-extensions
6fbfedaf3dc03d6f4a4fb7a45b20a9d7a4f11b91
[ "Apache-2.0" ]
null
null
null
modules/pytket-cirq/pytket/extensions/cirq/cirq_convert.py
dhaycraft/pytket-extensions
6fbfedaf3dc03d6f4a4fb7a45b20a9d7a4f11b91
[ "Apache-2.0" ]
null
null
null
modules/pytket-cirq/pytket/extensions/cirq/cirq_convert.py
dhaycraft/pytket-extensions
6fbfedaf3dc03d6f4a4fb7a45b20a9d7a4f11b91
[ "Apache-2.0" ]
null
null
null
# Copyright 2019-2022 Cambridge Quantum Computing # # 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 a...
36.464615
88
0.608641
966639b831c7c87b2d6167e4bb05f5bdf8b57595
1,736
py
Python
pydomus/pattern.py
strollo/pydomus
2396fd455e8c12aee9136c0de56431a9ca282728
[ "Apache-2.0" ]
null
null
null
pydomus/pattern.py
strollo/pydomus
2396fd455e8c12aee9136c0de56431a9ca282728
[ "Apache-2.0" ]
null
null
null
pydomus/pattern.py
strollo/pydomus
2396fd455e8c12aee9136c0de56431a9ca282728
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Xpath simplified expressions to match tokens through which events are notified to subscribers. """ class Pattern: def __init__(self, path, caseSensitive=False): if path is None or not isinstance(path, str): raise ValueError('Invalid path parameter: null no...
36.166667
114
0.564516
8cd54408b61f12d2764678ace1186e2cceb93be1
911
py
Python
experiment/data/lrec2csv.py
ngxingyu/Domain-Transfer-for-Punctuation-Retrieval
f5aa0ea0946c68aaf7fcf49a5085e6c823766a2f
[ "Apache-2.0" ]
1
2021-05-06T11:51:33.000Z
2021-05-06T11:51:33.000Z
experiment/data/lrec2csv.py
ngxingyu/Domain-Transfer-for-Punctuation-Retrieval
f5aa0ea0946c68aaf7fcf49a5085e6c823766a2f
[ "Apache-2.0" ]
null
null
null
experiment/data/lrec2csv.py
ngxingyu/Domain-Transfer-for-Punctuation-Retrieval
f5aa0ea0946c68aaf7fcf49a5085e6c823766a2f
[ "Apache-2.0" ]
null
null
null
import pandas as pd if __name__ == "__main__": parser = argparse.ArgumentParser(description='Enter dff file location.') parser.add_argument("-i", "--input", dest="filename", required=True, help="input directory", metavar="FILE") parser.add_argument("-o", "--output", dest="output", ...
47.947368
108
0.588364
9be92327dcf550efd1ccc1a5b07703254c35dc55
1,250
py
Python
test/vpp_pppoe_interface.py
mnaser/vpp
8934a04596d1421c35b194949b2027ca1fe71aef
[ "Apache-2.0" ]
3
2019-11-22T13:24:26.000Z
2021-02-22T12:33:10.000Z
test/vpp_pppoe_interface.py
fantastic2085/vpp
c599c6f001bc28e1023fb5e74a27db37b1aae847
[ "Apache-2.0" ]
2
2021-03-20T05:38:00.000Z
2021-06-02T03:49:49.000Z
test/vpp_pppoe_interface.py
fantastic2085/vpp
c599c6f001bc28e1023fb5e74a27db37b1aae847
[ "Apache-2.0" ]
1
2019-03-11T19:28:31.000Z
2019-03-11T19:28:31.000Z
from vpp_interface import VppInterface import socket from vpp_papi import mac_pton class VppPppoeInterface(VppInterface): """ VPP Pppoe interface """ def __init__(self, test, client_ip, client_mac, session_id, decap_vrf_id=0): """ Create VPP PPPoE4 interface """ supe...
31.25
62
0.632
556779484f356c264c70fea601b968e129f58391
23
py
Python
test/fixtures/notebooks/Python/main.py
talkingtab/nodebook
0a1450be0c494e849643e7ad8102dc2681081bb6
[ "ISC" ]
1,547
2018-09-05T09:56:34.000Z
2022-03-31T00:37:25.000Z
test/fixtures/notebooks/Python/main.py
talkingtab/nodebook
0a1450be0c494e849643e7ad8102dc2681081bb6
[ "ISC" ]
48
2018-09-09T18:48:38.000Z
2020-09-06T09:30:07.000Z
test/fixtures/notebooks/Python/main.py
talkingtab/nodebook
0a1450be0c494e849643e7ad8102dc2681081bb6
[ "ISC" ]
82
2018-09-05T14:49:59.000Z
2022-03-18T12:12:05.000Z
print ("Hello, World!")
23
23
0.652174
d66a69049901548e6141cf443a9d366b9c0312f8
27,116
py
Python
sympy/__init__.py
Chanakya-Ekbote/sympy
69a8a4b05ceaec11ee63729b98fc9d1ec7e3583c
[ "BSD-3-Clause" ]
null
null
null
sympy/__init__.py
Chanakya-Ekbote/sympy
69a8a4b05ceaec11ee63729b98fc9d1ec7e3583c
[ "BSD-3-Clause" ]
null
null
null
sympy/__init__.py
Chanakya-Ekbote/sympy
69a8a4b05ceaec11ee63729b98fc9d1ec7e3583c
[ "BSD-3-Clause" ]
1
2020-02-06T17:54:20.000Z
2020-02-06T17:54:20.000Z
""" SymPy is a Python library for symbolic mathematics. It aims to become a full-featured computer algebra system (CAS) while keeping the code as simple as possible in order to be comprehensible and easily extensible. SymPy is written entirely in Python. It depends on mpmath, and other external libraries may be option...
54.340681
90
0.703459
e048ede515531e21f536b0945501b4f516a9d0d0
5,234
py
Python
battery/datasets.py
Wu-Chenyang/SMC-POMDP
953c1abab412627080c63fbf8bb7f661b75e7006
[ "MIT" ]
null
null
null
battery/datasets.py
Wu-Chenyang/SMC-POMDP
953c1abab412627080c63fbf8bb7f661b75e7006
[ "MIT" ]
null
null
null
battery/datasets.py
Wu-Chenyang/SMC-POMDP
953c1abab412627080c63fbf8bb7f661b75e7006
[ "MIT" ]
null
null
null
import numpy as np import torch import torch.nn as nn import pyro.distributions as D import torch.nn.functional as F from typing import NamedTuple import pickle as pkl import torchvision.transforms as transforms import re battery_pattern = re.compile('(\w{7})-(\w{2}-\w{2}-\w{2}-\w{2})\.pkl\Z') class BatteryExample...
42.552846
116
0.582155
5d8957662ba3c95a5ae10efb44c532585560ee67
10,610
py
Python
FlaskRestAPI/restapi.py
Jav331/M.U.S.C.L.E
5cd04f215f382f1e9816f6522a8c2186d85a4cc9
[ "MIT" ]
1
2022-02-23T01:29:13.000Z
2022-02-23T01:29:13.000Z
FlaskRestAPI/restapi.py
Jonathan995806/M.U.S.C.L.E
0875740f16c06999a8641d7c6a2bd83a96dea168
[ "MIT" ]
null
null
null
FlaskRestAPI/restapi.py
Jonathan995806/M.U.S.C.L.E
0875740f16c06999a8641d7c6a2bd83a96dea168
[ "MIT" ]
null
null
null
from flask import Flask, request from flask_restful import Api, Resource, reqparse, abort, fields, marshal_with from flask_sqlalchemy import SQLAlchemy from flask_cors import CORS import json from datetime import datetime app = Flask(__name__) api = Api(app) CORS(app, resources={r"*": {"origins": "*"}}) app.config["SQ...
32.950311
163
0.596324
c1422eb8f2f2d912f92285446a377a8f5e618e14
416
py
Python
qualification/code.py
corbinmcneill/codejam
5156fec100c73eb95969a91fd20bf411aec4b795
[ "Apache-2.0" ]
null
null
null
qualification/code.py
corbinmcneill/codejam
5156fec100c73eb95969a91fd20bf411aec4b795
[ "Apache-2.0" ]
null
null
null
qualification/code.py
corbinmcneill/codejam
5156fec100c73eb95969a91fd20bf411aec4b795
[ "Apache-2.0" ]
null
null
null
# drummer2322 # corbin.mc96@gmail.com # GCJ <year> <round> <problem> # <date> from sys import argv if len(argv) > 1: type_of_case = argv[1]+'_' else: type_of_case = '' lines = [line.strip() for line in open(type_of_case+'input.in')]; output = open(type_of_case+'output.out','w') for t in range(1,int(lines.pop(0))+...
17.333333
65
0.651442
42028cfa9b4f14669ee070ccf0d3c3669b10ecf6
2,894
py
Python
sharkvalidator/writers/xlsx.py
sharksmhi/sharkvalidator
6a3b8f6b345b58616fd93bb63bd08fce72acc831
[ "MIT" ]
null
null
null
sharkvalidator/writers/xlsx.py
sharksmhi/sharkvalidator
6a3b8f6b345b58616fd93bb63bd08fce72acc831
[ "MIT" ]
null
null
null
sharkvalidator/writers/xlsx.py
sharksmhi/sharkvalidator
6a3b8f6b345b58616fd93bb63bd08fce72acc831
[ "MIT" ]
1
2021-09-22T08:37:49.000Z
2021-09-22T08:37:49.000Z
#!/usr/bin/env python3 # Copyright (c) 2020 SMHI, Swedish Meteorological and Hydrological Institute. # License: MIT License (see LICENSE.txt or http://opensource.org/licenses/mit). """ Created on 2021-10-08 11:26 @author: johannes """ import pandas as pd from sharkvalidator.writers.writer import WriterBase from sharkv...
39.108108
94
0.540428
153e295bcb9da039943cc880eff144dd43837094
5,118
py
Python
Chem2D.py
tlkh/atomic-orbitals
13622374f01e649d5b2fd3f05a4406a1ddab9dd0
[ "MIT" ]
1
2020-05-03T02:56:19.000Z
2020-05-03T02:56:19.000Z
Chem2D.py
tlkh/atomic-orbitals
13622374f01e649d5b2fd3f05a4406a1ddab9dd0
[ "MIT" ]
null
null
null
Chem2D.py
tlkh/atomic-orbitals
13622374f01e649d5b2fd3f05a4406a1ddab9dd0
[ "MIT" ]
null
null
null
import numpy as np import scipy.constants as c import math, cmath from sympy import * from math import e import numba from numba import jit import sympy as sp r, x, a, theta = symbols('r x a theta') init_printing(use_unicode=True) @jit(nopython=True, cache=True, parallel=True) def spherical_to_cartesian(r, theta, phi)...
32.392405
132
0.584603
e18340171ce79c19e270b2729ce4eea79b63359b
552
py
Python
setup.py
Steve-D-Eckles/mountain-of-madness-flask-edition
dc14f052592774576d983de99f5106a468d2a77b
[ "MIT" ]
null
null
null
setup.py
Steve-D-Eckles/mountain-of-madness-flask-edition
dc14f052592774576d983de99f5106a468d2a77b
[ "MIT" ]
2
2020-03-29T15:25:39.000Z
2020-03-29T15:27:52.000Z
setup.py
Steve-D-Eckles/mountain-of-madness-flask-edition
dc14f052592774576d983de99f5106a468d2a77b
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as f: long_description = f.read() setuptools.setup( name="madness" version="0.0.1", author="Steve Eckles", author_email="steve.d.eckles@gmail.com", url="https://github.com/Steve-D-Eckles/madness", description="what does madness do?", long_...
24
52
0.681159
77e9af67590a67f46a011a2bee86f204ec5742b9
35,156
py
Python
pandas/conftest.py
lrusnac/pandas
a170e977dc8cc270bdcdee904658f9b6e20c8e86
[ "BSD-3-Clause" ]
1
2020-09-01T12:13:29.000Z
2020-09-01T12:13:29.000Z
pandas/conftest.py
lrusnac/pandas
a170e977dc8cc270bdcdee904658f9b6e20c8e86
[ "BSD-3-Clause" ]
null
null
null
pandas/conftest.py
lrusnac/pandas
a170e977dc8cc270bdcdee904658f9b6e20c8e86
[ "BSD-3-Clause" ]
1
2022-03-08T15:07:11.000Z
2022-03-08T15:07:11.000Z
""" This file is very long and growing, but it was decided to not split it yet, as it's still manageable (2020-03-17, ~1.1k LoC). See gh-31989 Instead of splitting it was decided to define sections here: - Configuration / Settings - Autouse fixtures - Common arguments - Missing values & co. - Classes - Indices - Serie...
25.292086
88
0.599954
470d76d3b7d6bf99fff8975452c0d4869a35fc16
224
py
Python
HGPextreme/examples/oned/oned.py
umbrellagong/HGPextreme
d32c0ffc3e19dd3f5812e886c65000286e3eb905
[ "MIT" ]
null
null
null
HGPextreme/examples/oned/oned.py
umbrellagong/HGPextreme
d32c0ffc3e19dd3f5812e886c65000286e3eb905
[ "MIT" ]
null
null
null
HGPextreme/examples/oned/oned.py
umbrellagong/HGPextreme
d32c0ffc3e19dd3f5812e886c65000286e3eb905
[ "MIT" ]
null
null
null
import numpy as np def S(x): # 1D random function return (f(x) + np.random.normal(0, r(x))).reshape(-1) def f(x): # mean function return (x-5)**2 def r(x): # std function return 0.1 + 0.1 * x ** 2
16
57
0.549107
64a762ebfa848ccaa778720c85680103641f1ab9
228
py
Python
ipython.symlink/profile_default/startup/01_bother.py
peteowlett/dotfiles
90c00cd1c21986e186f39200449595c34d7ee591
[ "MIT" ]
null
null
null
ipython.symlink/profile_default/startup/01_bother.py
peteowlett/dotfiles
90c00cd1c21986e186f39200449595c34d7ee591
[ "MIT" ]
null
null
null
ipython.symlink/profile_default/startup/01_bother.py
peteowlett/dotfiles
90c00cd1c21986e186f39200449595c34d7ee591
[ "MIT" ]
null
null
null
from dotenv import load_dotenv import sys load_dotenv('/Users/pete/coding/bother-brain/.env') sys.path.append('/Users/pete/coding/bother-brain/src') from botherbrain.data_manager import DataManager dm = DataManager('ipython')
25.333333
54
0.798246
6266536aa82616f3446a731ab8a8e059f97857d6
405
gyp
Python
binding.gyp
bnoordhuis/node-unix-dgram
30e4b035d3305fb72ff6172ef32641b3705dc410
[ "0BSD" ]
51
2015-01-28T11:55:53.000Z
2022-02-03T21:18:35.000Z
binding.gyp
bnoordhuis/node-unix-dgram
30e4b035d3305fb72ff6172ef32641b3705dc410
[ "0BSD" ]
38
2015-03-17T09:43:19.000Z
2020-07-16T14:48:49.000Z
binding.gyp
bnoordhuis/node-unix-dgram
30e4b035d3305fb72ff6172ef32641b3705dc410
[ "0BSD" ]
24
2015-02-03T17:59:06.000Z
2022-02-03T21:18:43.000Z
{ 'conditions': [ [ 'OS!="win"', { 'targets': [ { 'target_name': 'unix_dgram', 'sources': [ 'src/unix_dgram.cc' ], 'include_dirs': [ '<!(node -e "require(\'nan\')")' ] } ] } ], [ 'OS=="win"', { 'targets': [ { 'target_nam...
19.285714
45
0.360494
0666e2cb31dd51ad9f4912113cb2507b3e2a3fd1
6,431
py
Python
src/seqmagick/seqmagick/test/integration/test_convert.py
smilefreak/ancient_dna_pipeline
56055d400fe5f67a99c7f053bc0741abf555af6b
[ "MIT" ]
1
2016-07-22T09:21:27.000Z
2016-07-22T09:21:27.000Z
src/seqmagick/seqmagick/test/integration/test_convert.py
theboocock/ancient_dna_pipeline
56055d400fe5f67a99c7f053bc0741abf555af6b
[ "MIT" ]
3
2015-05-22T05:50:52.000Z
2016-01-17T12:43:33.000Z
src/seqmagick/seqmagick/test/integration/test_convert.py
theboocock/ancient_dna_pipeline
56055d400fe5f67a99c7f053bc0741abf555af6b
[ "MIT" ]
null
null
null
from cStringIO import StringIO import os import os.path import logging import random import shlex import shutil import sys import unittest import tempfile from seqmagick.subcommands.common import FileType from seqmagick.scripts import cli d = os.path.dirname(__file__) data_dir = os.path.join(d, "data") def p(*args)...
32.316583
87
0.661328
a931aaa53fe6d4ad596ddacff35dc2fe2d8200dc
966
py
Python
template_matching_demo.py
yunchen-yang/CV_classes
3b3998867ec37491ec3027879862a72a4667af47
[ "MIT" ]
null
null
null
template_matching_demo.py
yunchen-yang/CV_classes
3b3998867ec37491ec3027879862a72a4667af47
[ "MIT" ]
null
null
null
template_matching_demo.py
yunchen-yang/CV_classes
3b3998867ec37491ec3027879862a72a4667af47
[ "MIT" ]
null
null
null
import cv2 from numpy import * import numpy as np import math img_o=np.array([[26, 3, 184, 75, 80, 128, 72, 0, 84],[89, 65, 0, 200, 224, 18, 170, 26, 54],[47, 75, 127, 52, 94, 26, 68, 43, 199],[81, 87, 86, 0, 97, 3, 9, 208, 218],[23, 12, 188, 176, 180, 1, 2, 6, 3],[0, 80, 54, 39, 31, 22, 40, 9, 2],[5, 21, 9, 12, 98, 1...
29.272727
275
0.563147
9a922d9d4485938fe01c57b86a0c6d65504fdbc2
3,961
py
Python
app/routers/project/project.py
qyzhg/pity
163539f39e57f3b72dfebba8dbc7ff1d186e4441
[ "Apache-2.0" ]
null
null
null
app/routers/project/project.py
qyzhg/pity
163539f39e57f3b72dfebba8dbc7ff1d186e4441
[ "Apache-2.0" ]
null
null
null
app/routers/project/project.py
qyzhg/pity
163539f39e57f3b72dfebba8dbc7ff1d186e4441
[ "Apache-2.0" ]
null
null
null
import traceback from fastapi import APIRouter, Depends from app.crud.project.ProjectDao import ProjectDao from app.crud.project.ProjectRoleDao import ProjectRoleDao from app.handler.fatcory import PityResponse from app.models.project_role import ProjectRole from app.routers import Permission from app.router...
38.086538
111
0.664479
ed2cef7368726f1588fa635b37b18e99bf58b484
11,189
py
Python
directord/tests/test_bootstrap.py
sshnaidm/directord
7a0de288db23729c60bf1f4e9936dac97c69ebe6
[ "Apache-2.0" ]
10
2021-11-08T11:29:59.000Z
2022-01-11T16:29:23.000Z
directord/tests/test_bootstrap.py
sshnaidm/directord
7a0de288db23729c60bf1f4e9936dac97c69ebe6
[ "Apache-2.0" ]
21
2021-05-19T22:40:45.000Z
2021-09-30T14:40:12.000Z
directord/tests/test_bootstrap.py
sshnaidm/directord
7a0de288db23729c60bf1f4e9936dac97c69ebe6
[ "Apache-2.0" ]
6
2021-05-04T14:35:24.000Z
2021-08-19T10:46:04.000Z
# Copyright Peznauts <kevin@cloudnull.com>. 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...
35.408228
79
0.52927
1f9084c6c89e42d2eb178925d532eea703b552c9
1,229
py
Python
cogs/utils/player.py
jedymatt/simple-rpg
f6787dbfbf4b5f5794bf2e638f393199243880e9
[ "MIT" ]
1
2020-12-04T18:49:54.000Z
2020-12-04T18:49:54.000Z
cogs/utils/player.py
jedymatt/Simple-RPG
f6787dbfbf4b5f5794bf2e638f393199243880e9
[ "MIT" ]
3
2021-01-10T16:58:32.000Z
2021-02-11T04:23:29.000Z
cogs/utils/player.py
jedymatt/simple-rpg
f6787dbfbf4b5f5794bf2e638f393199243880e9
[ "MIT" ]
null
null
null
from math import floor from models import PlayerItem, Item PLAYER_INITIAL_DATA = { "level": 1, "exp": 0, "money": 500, "attribute": { "max_hp": 50, "strength": 15, "defense": 5, "growth": 1.4 }, "location": "Hometown" } def add_item(player_items: list[PlayerIt...
26.148936
115
0.598047
956e2c2f8604bcb87c38f8b452cb5a2afcdf2210
891
py
Python
setup.py
Marcnuth/keras-attention
8ecee02dd9c071903d47b995d3a32a42c4837c0d
[ "Apache-2.0" ]
1
2020-01-11T06:05:57.000Z
2020-01-11T06:05:57.000Z
setup.py
Marcnuth/keras-attention
8ecee02dd9c071903d47b995d3a32a42c4837c0d
[ "Apache-2.0" ]
null
null
null
setup.py
Marcnuth/keras-attention
8ecee02dd9c071903d47b995d3a32a42c4837c0d
[ "Apache-2.0" ]
null
null
null
import codecs from setuptools import setup, find_packages def read_file(filename, cb): with codecs.open(filename, 'r', 'utf8') as f: return cb(f) setup( name='keras-attention', version='1.0.0', packages=find_packages(), url='https://github.com/Marcnuth/keras-attention', author='Ma...
27
100
0.67789
58b75ecffa4fcc492210aa9d7612b9ed8f4ec07b
1,116
py
Python
q2_gneiss/plugin_setup.py
nbokulich/q2-gneiss
b9ee3efb27f8a050546a231a62a47b3a7a490263
[ "BSD-3-Clause" ]
null
null
null
q2_gneiss/plugin_setup.py
nbokulich/q2-gneiss
b9ee3efb27f8a050546a231a62a47b3a7a490263
[ "BSD-3-Clause" ]
null
null
null
q2_gneiss/plugin_setup.py
nbokulich/q2-gneiss
b9ee3efb27f8a050546a231a62a47b3a7a490263
[ "BSD-3-Clause" ]
null
null
null
# ---------------------------------------------------------------------------- # Copyright (c) 2017-2019, QIIME 2 development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file LICENSE, distributed with this software. # ------------------------------------------------...
36
78
0.650538
334ed22ff21c3e37bc92efe928a9ebb5f14ca3dc
91
py
Python
dungeons/apps.py
zachtib/MagicWithFriends
18db849fe282903051820b718a2d7b434360e332
[ "MIT" ]
null
null
null
dungeons/apps.py
zachtib/MagicWithFriends
18db849fe282903051820b718a2d7b434360e332
[ "MIT" ]
5
2021-02-15T20:52:10.000Z
2021-07-03T18:19:59.000Z
dungeons/apps.py
zachtib/MagicWithFriends
18db849fe282903051820b718a2d7b434360e332
[ "MIT" ]
null
null
null
from django.apps import AppConfig class DungeonsConfig(AppConfig): name = 'dungeons'
15.166667
33
0.758242
b874370c3fb88ee7ceb5e9ffb3e8e3d1edd6ab66
24,039
py
Python
rasa/core/actions/action.py
wtoalabi/rasa
1106845b5628dc1f739a09f75270926b572af918
[ "Apache-2.0" ]
1
2020-07-07T20:32:29.000Z
2020-07-07T20:32:29.000Z
rasa/core/actions/action.py
wtoalabi/rasa
1106845b5628dc1f739a09f75270926b572af918
[ "Apache-2.0" ]
2
2020-04-17T19:46:20.000Z
2020-04-17T20:06:06.000Z
rasa/core/actions/action.py
wtoalabi/rasa
1106845b5628dc1f739a09f75270926b572af918
[ "Apache-2.0" ]
null
null
null
import copy import json import logging import typing from typing import List, Text, Optional, Dict, Any, Generator import aiohttp import rasa.core from rasa.constants import DOCS_BASE_URL from rasa.core import events from rasa.core.constants import ( DEFAULT_REQUEST_TIMEOUT, REQUESTED_SLOT, USER_INTENT_OU...
32.529093
88
0.634011
0d5eddc1561d83c3feb40d8b1249262d84e8aa90
12,629
py
Python
xcube_server/service.py
bcdev/xcube-server
d6fc4bef26ae1f6929904bad0f920b50ea6974f7
[ "MIT" ]
null
null
null
xcube_server/service.py
bcdev/xcube-server
d6fc4bef26ae1f6929904bad0f920b50ea6974f7
[ "MIT" ]
null
null
null
xcube_server/service.py
bcdev/xcube-server
d6fc4bef26ae1f6929904bad0f920b50ea6974f7
[ "MIT" ]
null
null
null
# The MIT License (MIT) # Copyright (c) 2018 by the xcube development team and contributors # # 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...
37.474777
120
0.638689
e28b5d9e7069ff2f83d7433b6256f159a4013eb2
3,584
py
Python
py/gooftool/interval.py
arccode/factory
a1b0fccd68987d8cd9c89710adc3c04b868347ec
[ "BSD-3-Clause" ]
3
2022-01-06T16:52:52.000Z
2022-03-07T11:30:47.000Z
py/gooftool/interval.py
arccode/factory
a1b0fccd68987d8cd9c89710adc3c04b868347ec
[ "BSD-3-Clause" ]
null
null
null
py/gooftool/interval.py
arccode/factory
a1b0fccd68987d8cd9c89710adc3c04b868347ec
[ "BSD-3-Clause" ]
1
2021-10-24T01:47:22.000Z
2021-10-24T01:47:22.000Z
# Copyright 2020 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Helper functions for manupulating intervals.""" import copy # Interval class representing [start, end) intervals. class Interval: def __init__(sel...
30.372881
80
0.686942
061ea7f1c070f5b0ee5bb3f8b73d35f2464ea738
4,471
py
Python
metric/seg/coco_evaluator.py
kangcheol/torchcv
561ef4e662fff1b9b47060bb08842408a205e689
[ "Apache-2.0" ]
106
2020-09-08T11:30:28.000Z
2022-03-23T03:07:09.000Z
metric/seg/coco_evaluator.py
shanhedian2017/torchcv
6414f5acb41c2f35f8e79e477a57eaba65591c66
[ "Apache-2.0" ]
5
2020-09-09T09:45:11.000Z
2022-02-18T03:07:20.000Z
metric/seg/coco_evaluator.py
shanhedian2017/torchcv
6414f5acb41c2f35f8e79e477a57eaba65591c66
[ "Apache-2.0" ]
10
2020-09-09T08:06:36.000Z
2021-11-01T08:27:15.000Z
#!/usr/bin/env python # -*- coding:utf-8 -*- # Author: Donny You(youansheng@gmail.com) import os import json import argparse import numpy as np # Download and install the Python COCO tools from https://github.com/waleedka/coco # That's a fork from the original https://github.com/pdollar/coco with a bug # fix for Pyt...
42.990385
112
0.610602
9c1345523b17aaa2352cf6d08b6916d43015b4cb
74
py
Python
talentlms/__init__.py
ib1984/py-talentlms
6c2ed1b8fa8fae91e2263931f5bd264da13880b6
[ "MIT" ]
null
null
null
talentlms/__init__.py
ib1984/py-talentlms
6c2ed1b8fa8fae91e2263931f5bd264da13880b6
[ "MIT" ]
1
2020-03-13T11:20:40.000Z
2020-03-13T11:20:40.000Z
talentlms/__init__.py
ib1984/py-talentlms
6c2ed1b8fa8fae91e2263931f5bd264da13880b6
[ "MIT" ]
1
2020-06-08T12:53:34.000Z
2020-06-08T12:53:34.000Z
from __future__ import absolute_import from talentlms.talentlms import *
18.5
38
0.851351
8357766f50ff638f13ca56bd79d1b1c64e96f3dd
506
py
Python
configs/dcn/faster_rcnn_x101_32x4d_fpn_dconv_c3-c5_1x_coco.py
evgps/mmdetection_trashcan
aaf4237c2c0d473425cdc7b741d3009177b79751
[ "Apache-2.0" ]
426
2020-10-16T08:09:27.000Z
2022-03-30T03:36:04.000Z
configs/dcn/faster_rcnn_x101_32x4d_fpn_dconv_c3-c5_1x_coco.py
evgps/mmdetection_trashcan
aaf4237c2c0d473425cdc7b741d3009177b79751
[ "Apache-2.0" ]
170
2020-09-08T12:29:06.000Z
2022-03-31T18:28:09.000Z
configs/dcn/faster_rcnn_x101_32x4d_fpn_dconv_c3-c5_1x_coco.py
evgps/mmdetection_trashcan
aaf4237c2c0d473425cdc7b741d3009177b79751
[ "Apache-2.0" ]
61
2021-07-30T07:51:41.000Z
2022-03-30T14:40:02.000Z
_base_ = '../faster_rcnn/faster_rcnn_r50_fpn_1x_coco.py' model = dict( pretrained='open-mmlab://resnext101_32x4d', backbone=dict( type='ResNeXt', depth=101, groups=32, base_width=4, num_stages=4, out_indices=(0, 1, 2, 3), frozen_stages=1, norm_cfg=...
31.625
72
0.610672
ccfbda6cfcf8b84840a78d3bb7558a342fa3bedb
6,273
py
Python
logistic_regression/scripts/cifar10.py
wengcindy/671-final
660b61465178949d825cfd2d976ffdcba1a03ad8
[ "MIT" ]
null
null
null
logistic_regression/scripts/cifar10.py
wengcindy/671-final
660b61465178949d825cfd2d976ffdcba1a03ad8
[ "MIT" ]
null
null
null
logistic_regression/scripts/cifar10.py
wengcindy/671-final
660b61465178949d825cfd2d976ffdcba1a03ad8
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torchvision import torchvision.transforms as transforms import torch.optim as optim import numpy as np import pandas as pd """ Return a list of the test losses at the end of each epoch. """ def train_test_trajectory(model, optimizer, train_loader, test_loader, criterion, epoc...
32.335052
135
0.609756
fac3cd5552a31685a7713149273e662d6fda551d
4,542
py
Python
qiskit/transpiler/_progressbar.py
biryani/qiskit-terra
7e2204c7f046ad324e1726ad320f0323bdd26e87
[ "Apache-2.0" ]
null
null
null
qiskit/transpiler/_progressbar.py
biryani/qiskit-terra
7e2204c7f046ad324e1726ad320f0323bdd26e87
[ "Apache-2.0" ]
null
null
null
qiskit/transpiler/_progressbar.py
biryani/qiskit-terra
7e2204c7f046ad324e1726ad320f0323bdd26e87
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018, IBM. # # This source code is licensed under the Apache License, Version 2.0 found in # the LICENSE.txt file in the root directory of this source tree. # This file is part of QuTiP: Quantum Toolbox in Python. # # Copyright (c) 2011 and later, Paul D. Nation and Robert J. Jo...
34.938462
85
0.631
6a4a49717bc046b6418c9cf32dfba4e142ab158d
232
py
Python
basics/ch8__FUNCTIONS/1_greeter.py
bedoyama/python-crash-course
39101237c478cd9c97f1a47f866408d2754c849f
[ "Apache-2.0" ]
null
null
null
basics/ch8__FUNCTIONS/1_greeter.py
bedoyama/python-crash-course
39101237c478cd9c97f1a47f866408d2754c849f
[ "Apache-2.0" ]
null
null
null
basics/ch8__FUNCTIONS/1_greeter.py
bedoyama/python-crash-course
39101237c478cd9c97f1a47f866408d2754c849f
[ "Apache-2.0" ]
null
null
null
def greet_user(): """Display a simple string.""" print("Hello!") greet_user() def greet_user(username): """Greet a user by its username""" print(f"Howdy {username.title()}!") greet_user("jbedoya") greet_user("charles manson")
19.333333
36
0.693966
ed4daf988a4318a2de0dbdcb4915cc5abf7f4968
5,696
py
Python
tests/test_transformations.py
hroncok/trimesh
85c6af12f8bfdf7d3e6c0b8fa553142a9d4219fe
[ "MIT" ]
1
2020-05-22T13:56:05.000Z
2020-05-22T13:56:05.000Z
tests/test_transformations.py
hroncok/trimesh
85c6af12f8bfdf7d3e6c0b8fa553142a9d4219fe
[ "MIT" ]
null
null
null
tests/test_transformations.py
hroncok/trimesh
85c6af12f8bfdf7d3e6c0b8fa553142a9d4219fe
[ "MIT" ]
null
null
null
try: from . import generic as g except BaseException: import generic as g class TransformTest(g.unittest.TestCase): def test_doctest(self): """ Run doctests on transformations, which checks docstrings for interactive sessions and then verifies they execute correctly. ...
35.6
78
0.562851
aff4b18b8739905341855517cbaaf8e681898090
2,535
py
Python
src/rigor/utils.py
vault-the/rigor
02f5ddb18092a114dc0a23c8fb60975e2b906e85
[ "MIT" ]
null
null
null
src/rigor/utils.py
vault-the/rigor
02f5ddb18092a114dc0a23c8fb60975e2b906e85
[ "MIT" ]
null
null
null
src/rigor/utils.py
vault-the/rigor
02f5ddb18092a114dc0a23c8fb60975e2b906e85
[ "MIT" ]
null
null
null
# https://stackoverflow.com/a/3233356 def nested_update(d, u): import collections for k, v in u.items(): if isinstance(v, collections.Mapping): r = nested_update(d.get(k, {}), v) d[k] = r else: d[k] = u[k] return d def overlap(l1, l2): return set(l1 ...
29.823529
77
0.646154
140d51b60cefef866f8a957a5fdbc6566f2a6772
129
py
Python
tests/test_phys_learning.py
rcmdnk/phys_learning
2ea0b3e133aed1f57ede03c8ab0c43487a2e0266
[ "Apache-2.0" ]
null
null
null
tests/test_phys_learning.py
rcmdnk/phys_learning
2ea0b3e133aed1f57ede03c8ab0c43487a2e0266
[ "Apache-2.0" ]
null
null
null
tests/test_phys_learning.py
rcmdnk/phys_learning
2ea0b3e133aed1f57ede03c8ab0c43487a2e0266
[ "Apache-2.0" ]
null
null
null
import pytest from phys_learning import __version__ @pytest.mark.version def test_version(): assert __version__ == '0.1.0'
16.125
37
0.75969
a192d1bacdbc4e4cb92797cc5f4745b2e446bb27
5,611
py
Python
sycl/test/lit.cfg.py
mgehre-xlx/sycl
2086745509ef4bc298d7bbec402a123dae68f25e
[ "Apache-2.0" ]
61
2019-04-12T18:49:57.000Z
2022-03-19T22:23:16.000Z
sycl/test/lit.cfg.py
mgehre-xlx/sycl
2086745509ef4bc298d7bbec402a123dae68f25e
[ "Apache-2.0" ]
127
2019-04-09T00:55:50.000Z
2022-03-21T15:35:41.000Z
sycl/test/lit.cfg.py
mgehre-xlx/sycl
2086745509ef4bc298d7bbec402a123dae68f25e
[ "Apache-2.0" ]
10
2019-04-02T18:25:40.000Z
2022-02-15T07:11:37.000Z
# -*- Python -*- import os import platform import re import subprocess import tempfile from distutils.spawn import find_executable import lit.formats import lit.util from lit.llvm import llvm_config # Configuration file for the 'lit' test runner. # name: The name of this test suite. config.name = 'SYCL' # testFor...
44.888
208
0.746035
7f707c093ff3729c2049395b227d66c367c4d316
22,116
py
Python
python/tvm/relay/qnn/op/qnn.py
KnowingNothing/tvm
6720d3593d4dac6015418d4b7e9ad875bbf0b0a2
[ "Apache-2.0" ]
4
2020-04-14T12:31:45.000Z
2020-11-02T14:20:59.000Z
python/tvm/relay/qnn/op/qnn.py
KnowingNothing/tvm
6720d3593d4dac6015418d4b7e9ad875bbf0b0a2
[ "Apache-2.0" ]
null
null
null
python/tvm/relay/qnn/op/qnn.py
KnowingNothing/tvm
6720d3593d4dac6015418d4b7e9ad875bbf0b0a2
[ "Apache-2.0" ]
1
2020-11-02T14:21:45.000Z
2020-11-02T14:21:45.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
28.209184
99
0.662914
1da54a7a5a700b85ca98d2aa4c552914af918e93
1,432
py
Python
gdrive_deploy/__main__.py
keni7385/gdrive_deploy
0df0c3c07783bd3559e02097397bc221928fe369
[ "MIT" ]
null
null
null
gdrive_deploy/__main__.py
keni7385/gdrive_deploy
0df0c3c07783bd3559e02097397bc221928fe369
[ "MIT" ]
1
2021-03-16T13:32:24.000Z
2021-03-21T07:10:38.000Z
gdrive_deploy/__main__.py
keni7385/gdrive_deploy
0df0c3c07783bd3559e02097397bc221928fe369
[ "MIT" ]
null
null
null
from __future__ import print_function from gdrive_deploy.utilities import * import sys # If modifying these scopes, delete the file token.json. SCOPES = 'https://www.googleapis.com/auth/drive' def main(): argc = len(sys.argv) print(str(sys.argv)) if 4 <= argc <= 5: target_file = sys.argv[1] ...
34.095238
104
0.631983
a6a59920f2b0b3d82c25a9428a00058e532b3ac9
7,928
py
Python
airflow/contrib/hooks/sftp_hook.py
anoopengineer/airflow
8f3982f8152d225bfbc063daa722e8447f0fa1a2
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
airflow/contrib/hooks/sftp_hook.py
anoopengineer/airflow
8f3982f8152d225bfbc063daa722e8447f0fa1a2
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
airflow/contrib/hooks/sftp_hook.py
anoopengineer/airflow
8f3982f8152d225bfbc063daa722e8447f0fa1a2
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
2
2020-04-24T10:51:17.000Z
2020-05-26T01:50:29.000Z
# -*- coding: utf-8 -*- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the #...
36.534562
87
0.594349
4b488caf2d13e1b4de51a10dc2e7f9309766b403
8,847
py
Python
mycroft/util/lang/format_fr.py
JulianaCP/mycroft-core
2bfcb948b73a86a1625a8490c12bc031c2ff0379
[ "Apache-2.0" ]
1
2019-12-07T18:10:56.000Z
2019-12-07T18:10:56.000Z
mycroft/util/lang/format_fr.py
JulianaCP/mycroft-core
2bfcb948b73a86a1625a8490c12bc031c2ff0379
[ "Apache-2.0" ]
null
null
null
mycroft/util/lang/format_fr.py
JulianaCP/mycroft-core
2bfcb948b73a86a1625a8490c12bc031c2ff0379
[ "Apache-2.0" ]
1
2019-12-09T13:42:51.000Z
2019-12-09T13:42:51.000Z
# -*- coding: utf-8 -*- # # Copyright 2017 Mycroft AI 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 ...
29.101974
78
0.511699