hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
3afcf1619450fb2f8358266e12d53d04f162c5bd
6,262
py
Python
src/m5r_nested_loops_in_graphics.py
fernerme/14_LoopsWithinLoops
da23e6f1ee2e88cc695ff5202094f9ce404dccb4
[ "MIT" ]
null
null
null
src/m5r_nested_loops_in_graphics.py
fernerme/14_LoopsWithinLoops
da23e6f1ee2e88cc695ff5202094f9ce404dccb4
[ "MIT" ]
null
null
null
src/m5r_nested_loops_in_graphics.py
fernerme/14_LoopsWithinLoops
da23e6f1ee2e88cc695ff5202094f9ce404dccb4
[ "MIT" ]
null
null
null
""" This project demonstrates NESTED LOOPS (i.e., loops within loops) in the context of TWO-DIMENSIONAL GRAPHICS. Authors: David Mutchler, Valerie Galluzzi, Mark Hays, Amanda Stouder, their colleagues and Melina Ferner. """ # DONE: 1. PUT YOUR NAME IN THE ABOVE LINE. import rosegraphics as rg def main(): ...
36.406977
77
0.535931
25c8825f6edc8271426c0b35b27260056a947621
3,379
py
Python
homeassistant/components/rfxtrx/device_trigger.py
DoctorU/core
5b218d7e1c4164e32d41473977459cbaf23adf42
[ "Apache-2.0" ]
7
2019-08-15T13:36:58.000Z
2020-03-18T10:46:29.000Z
homeassistant/components/rfxtrx/device_trigger.py
DoctorU/core
5b218d7e1c4164e32d41473977459cbaf23adf42
[ "Apache-2.0" ]
87
2020-07-15T13:43:35.000Z
2022-03-23T07:43:10.000Z
homeassistant/components/rfxtrx/device_trigger.py
winning1120xx/home-assistant
53d4c0ce2d374b5e97bbdc37742656c27adf8eea
[ "Apache-2.0" ]
7
2018-10-04T10:12:45.000Z
2021-12-29T20:55:40.000Z
"""Provides device automations for RFXCOM RFXtrx.""" from __future__ import annotations import voluptuous as vol from homeassistant.components.automation import ( AutomationActionType, AutomationTriggerInfo, ) from homeassistant.components.device_automation import DEVICE_TRIGGER_BASE_SCHEMA from homeassistant...
29.640351
82
0.702279
b290808c6fa5e40545fcb9fb90c86297b422b089
1,412
py
Python
pytorch_lightning/metrics/regression/ssim.py
lyuxingjian/pytorch-lightning
576afd59f3456eb06fb8805ed65a24b41c428a3e
[ "Apache-2.0" ]
1
2021-03-25T22:39:21.000Z
2021-03-25T22:39:21.000Z
pytorch_lightning/metrics/regression/ssim.py
lyuxingjian/pytorch-lightning
576afd59f3456eb06fb8805ed65a24b41c428a3e
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/metrics/regression/ssim.py
lyuxingjian/pytorch-lightning
576afd59f3456eb06fb8805ed65a24b41c428a3e
[ "Apache-2.0" ]
null
null
null
# Copyright The PyTorch Lightning team. # # 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...
33.619048
74
0.674221
d86f161535d08da32811579e68d103a3a76a15e7
1,413
py
Python
PYQT/pyqt_18_menuaction_trigger.py
dogancantorun8/python-application
3ef972e52bb6950108cde36974ceaf5c3cde3667
[ "MIT" ]
null
null
null
PYQT/pyqt_18_menuaction_trigger.py
dogancantorun8/python-application
3ef972e52bb6950108cde36974ceaf5c3cde3667
[ "MIT" ]
null
null
null
PYQT/pyqt_18_menuaction_trigger.py
dogancantorun8/python-application
3ef972e52bb6950108cde36974ceaf5c3cde3667
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Mar 26 18:47:15 2021 @author: dogancan """ #Menu barda her action ile oluşan sinyalimi trigger ile yakalayacağım import sys from PyQt5.QtWidgets import * from PyQt5.Qt import * class MainWindow(QMainWindow): def __init__(self): super().__init__() sel...
26.660377
114
0.679406
6dc9d8f8865f95629c56d480eff719f30eebb16c
665
py
Python
qsiprep/__about__.py
arokem/qsiprep
f0a12fa002ea99cad97f2b5e40c1517d0569e14c
[ "BSD-3-Clause" ]
36
2019-04-07T18:53:15.000Z
2021-04-04T10:35:54.000Z
qsiprep/__about__.py
arokem/qsiprep
f0a12fa002ea99cad97f2b5e40c1517d0569e14c
[ "BSD-3-Clause" ]
178
2019-02-27T16:36:06.000Z
2021-04-06T12:48:38.000Z
qsiprep/__about__.py
arokem/qsiprep
f0a12fa002ea99cad97f2b5e40c1517d0569e14c
[ "BSD-3-Clause" ]
20
2019-04-05T19:17:26.000Z
2021-03-25T14:47:32.000Z
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """ Base module variables """ from ._version import get_versions __version__ = get_versions()['version'] del get_versions __packagename__ = 'qsiprep' __copyright__ = 'Copyright 2019, Brain Behavior Laborat...
35
93
0.709774
fd37883bf984a6fdfcf374fbe97bb966f776787d
5,151
py
Python
airflow/contrib/operators/gcs_operator.py
shrutimantri/airflow
61eaaacd20ab0f743786df895cf8f232b3b2a48c
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
15
2017-04-06T09:01:50.000Z
2021-10-02T13:54:31.000Z
airflow/contrib/operators/gcs_operator.py
shrutimantri/airflow
61eaaacd20ab0f743786df895cf8f232b3b2a48c
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
26
2019-08-05T13:44:11.000Z
2022-03-30T10:06:18.000Z
airflow/contrib/operators/gcs_operator.py
shrutimantri/airflow
61eaaacd20ab0f743786df895cf8f232b3b2a48c
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
21
2017-08-20T03:01:05.000Z
2021-09-07T06:47:51.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 #...
39.022727
86
0.650165
9ba1c1f715455233bd1f6adc0c087a244e74281b
16,061
py
Python
sacred/initialize.py
ssudholt/sacred
6fb05b1ee1b7706b44c3ebd852e1e234841ea2ce
[ "MIT" ]
null
null
null
sacred/initialize.py
ssudholt/sacred
6fb05b1ee1b7706b44c3ebd852e1e234841ea2ce
[ "MIT" ]
null
null
null
sacred/initialize.py
ssudholt/sacred
6fb05b1ee1b7706b44c3ebd852e1e234841ea2ce
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 from __future__ import division, print_function, unicode_literals import os from collections import OrderedDict, defaultdict from copy import copy, deepcopy from sacred.config import (ConfigDict, chain_evaluate_config_scopes, dogmatize, load_config_file,...
37.879717
79
0.63676
332fa38fd11aedc458012100fbd8988c347edf4a
3,786
py
Python
tests/test_forms.py
zgrzebnickij/demo-cookiecutter-flask
3031c447dbaa3e819c1638cae79e83ee5869e292
[ "MIT" ]
null
null
null
tests/test_forms.py
zgrzebnickij/demo-cookiecutter-flask
3031c447dbaa3e819c1638cae79e83ee5869e292
[ "MIT" ]
null
null
null
tests/test_forms.py
zgrzebnickij/demo-cookiecutter-flask
3031c447dbaa3e819c1638cae79e83ee5869e292
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Test forms.""" import json import pytest from my_flask_app.public.forms import LoginForm from my_flask_app.user.forms import RegisterForm from my_flask_app.quiz.forms import QuizForm class TestRegisterForm: """Register form.""" def test_validate_user_already_registered(self, user...
31.032787
86
0.611463
190d4d0a410af4b2b2ebc029c68997a285b61532
55
py
Python
T31-09/program.py
maa76/SSof-Project1920
9b4ad9ac41a648c425fcfcd49cd52ff84e528bde
[ "MIT" ]
2
2019-11-20T19:26:07.000Z
2019-11-22T00:42:23.000Z
T31-09/program.py
maa76/SSof-Project1920
9b4ad9ac41a648c425fcfcd49cd52ff84e528bde
[ "MIT" ]
2
2019-11-28T05:21:24.000Z
2019-11-28T05:21:58.000Z
T31-09/program.py
maa76/SSof-Project1920
9b4ad9ac41a648c425fcfcd49cd52ff84e528bde
[ "MIT" ]
25
2019-11-27T01:40:56.000Z
2019-12-04T23:38:59.000Z
a = b if a: c = 1 else: c = 2 d = function(c)
6.875
15
0.418182
ab78a8113b48fe977d0a57d0a78b72bb21361ab9
424
py
Python
myapp/urls.py
free20064u/flower
fa8dd4b522ede930baf8cd4e533c869ebf9cf009
[ "MIT" ]
null
null
null
myapp/urls.py
free20064u/flower
fa8dd4b522ede930baf8cd4e533c869ebf9cf009
[ "MIT" ]
null
null
null
myapp/urls.py
free20064u/flower
fa8dd4b522ede930baf8cd4e533c869ebf9cf009
[ "MIT" ]
null
null
null
from django.contrib import admin from django.urls import path from . import views urlpatterns = [ path('', views.index, name='index'), path('flower/<slug:slug>/', views.detail, name='detail'), path('tags/<slug:slug>/', views.tags, name='tags'), path('create/', views.create, name='create'), path('e...
26.5
61
0.636792
04ca57b4959f9b6db41df9fa689259c924e50df2
2,281
py
Python
tests/codebase/test_no_request_host.py
timgates42/bokeh
fb8b07b838f4d07d520cfe899779a11bc89f3c77
[ "BSD-3-Clause" ]
1
2015-01-31T14:42:39.000Z
2015-01-31T14:42:39.000Z
tests/codebase/test_no_request_host.py
timgates42/bokeh
fb8b07b838f4d07d520cfe899779a11bc89f3c77
[ "BSD-3-Clause" ]
1
2021-05-08T06:24:26.000Z
2021-05-08T06:24:26.000Z
tests/codebase/test_no_request_host.py
timgates42/bokeh
fb8b07b838f4d07d520cfe899779a11bc89f3c77
[ "BSD-3-Clause" ]
1
2020-01-21T12:03:58.000Z
2020-01-21T12:03:58.000Z
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2017, Anaconda, Inc. All rights reserved. # # Powered by the Bokeh Development Team. # # The full license is in the file LICENSE.txt, distributed with this software. #---------------------------------------------------...
33.057971
92
0.421745
4c85af7e61d2499ea536be0285b6c72459d9f90f
567
py
Python
database/connection.py
apoveda25/graphql-python-server
eb7b911aa1116327120b857beb17da3e30523e74
[ "Apache-2.0" ]
4
2020-06-20T11:54:04.000Z
2021-09-07T11:41:32.000Z
database/connection.py
apoveda25/graphql-python-server
eb7b911aa1116327120b857beb17da3e30523e74
[ "Apache-2.0" ]
null
null
null
database/connection.py
apoveda25/graphql-python-server
eb7b911aa1116327120b857beb17da3e30523e74
[ "Apache-2.0" ]
null
null
null
import os from arango import ArangoClient class Connection: def __init__(self): self.ARANGODB_HOSTS = os.getenv("ARANGODB_HOSTS") self.ARANGODB_DATABASE = os.getenv("ARANGODB_DATABASE") self.ARANGODB_USER = os.getenv("ARANGODB_USER") self.ARANGODB_PASSWORD = os.getenv("ARANGODB_PAS...
31.5
69
0.670194
3fed2e08c81b4b02d93ca25e9ab64fa98fb7e411
602
py
Python
main_loop.py
ivanpeng/craigslist-housing
98a197dd77a7c42a5b2423748f75563e1e6a8fc8
[ "MIT-0" ]
null
null
null
main_loop.py
ivanpeng/craigslist-housing
98a197dd77a7c42a5b2423748f75563e1e6a8fc8
[ "MIT-0" ]
1
2021-06-01T22:55:54.000Z
2021-06-01T22:55:54.000Z
main_loop.py
ivanpeng/craigslist-housing
98a197dd77a7c42a5b2423748f75563e1e6a8fc8
[ "MIT-0" ]
null
null
null
from scraper import do_scrape import settings import time import sys import traceback import random if __name__ == "__main__": while True: print("{}: Starting scrape cycle".format(time.ctime())) try: do_scrape() except KeyboardInterrupt: print("Exiting....") ...
28.666667
76
0.606312
304695852b0b5fd66e48ee196c630d7c80ea5ebd
336
py
Python
backend/sandbox/todos/models/__init__.py
MMotionMan/django-edw
0f686429d29e0f40409a3b2318664973b2844c08
[ "BSD-3-Clause" ]
4
2019-09-18T05:51:12.000Z
2020-10-23T08:50:00.000Z
backend/sandbox/todos/models/__init__.py
Vvvnukova/django-edw
18397c2e6e2d7ddebad4d83ffee16425e7ac4e9f
[ "BSD-3-Clause" ]
10
2020-04-29T11:46:44.000Z
2022-03-11T23:38:27.000Z
backend/sandbox/todos/models/__init__.py
Vvvnukova/django-edw
18397c2e6e2d7ddebad4d83ffee16425e7ac4e9f
[ "BSD-3-Clause" ]
13
2020-04-09T07:49:48.000Z
2022-03-02T07:06:28.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals # import default models from django-edw to materialize them from edw.models.defaults import mapping from edw.models.defaults.customer import Customer from edw.models.defaults.term import Term from edw.models.defaults.data_mart import DataMart from todo...
22.4
59
0.803571
414af702abfff71e4d4570e34cd194d11de8682c
2,564
py
Python
examples/simo/simo.res50.scratch.imagenet.224size.256bs.200e/config.py
poodarchu/SelfSup
29f7d338bef20f927bb0898f2c98da4f14b60ab1
[ "Apache-2.0" ]
42
2020-12-07T07:03:05.000Z
2022-03-23T12:56:13.000Z
examples/simo/simo.res50.scratch.imagenet.224size.256bs.200e/config.py
Megvii-BaseDetection/SelfSup
29f7d338bef20f927bb0898f2c98da4f14b60ab1
[ "Apache-2.0" ]
1
2020-12-07T12:59:16.000Z
2020-12-08T06:25:37.000Z
examples/simo/simo.res50.scratch.imagenet.224size.256bs.200e/config.py
poodarchu/SelfSup
29f7d338bef20f927bb0898f2c98da4f14b60ab1
[ "Apache-2.0" ]
3
2021-04-22T10:56:29.000Z
2021-10-21T08:46:33.000Z
import os.path as osp import torchvision.transforms as transforms from cvpods.configs.base_classification_config import BaseClassificationConfig _config_dict = dict( MODEL=dict( WEIGHTS="", AS_PRETRAIN=True, RESNETS=dict( DEPTH=50, NUM_CLASSES=1000, NORM...
29.813953
89
0.50351
34e7f02af5db91d7d20d50a4bc59431be42e73be
5,837
py
Python
groot_ansible/__init__.py
stonier/groot_ansible
670eb1e3f03dcb68bbf5204abc474b40f1cc44bc
[ "BSD-3-Clause" ]
2
2020-02-12T01:35:48.000Z
2021-04-01T22:44:25.000Z
groot_ansible/__init__.py
stonier/groot_ansible
670eb1e3f03dcb68bbf5204abc474b40f1cc44bc
[ "BSD-3-Clause" ]
7
2017-02-03T03:50:09.000Z
2020-05-04T17:22:16.000Z
groot_ansible/__init__.py
stonier/groot_ansible
670eb1e3f03dcb68bbf5204abc474b40f1cc44bc
[ "BSD-3-Clause" ]
null
null
null
# # License: BSD # https://raw.githubusercontent.com/stonier/groot_ansible/devel/LICENSE # ############################################################################## # Documentation ############################################################################## """ Python wrapped ansible scripts for installing a...
50.756522
134
0.49032
2961ba3e105c7a451f911c19bb7b18567804341e
2,055
py
Python
code/test_fastsimplexordatastore.py
JustinCappos/uppir
2a2fc435d5e21138f7f4543c6b3588d6529f4619
[ "Apache-2.0" ]
null
null
null
code/test_fastsimplexordatastore.py
JustinCappos/uppir
2a2fc435d5e21138f7f4543c6b3588d6529f4619
[ "Apache-2.0" ]
null
null
null
code/test_fastsimplexordatastore.py
JustinCappos/uppir
2a2fc435d5e21138f7f4543c6b3588d6529f4619
[ "Apache-2.0" ]
null
null
null
# this is a bunch of macro tests. If everything passes, there is no output. import fastsimplexordatastore size = 64 letterxordatastore = fastsimplexordatastore.XORDatastore(size, 16) startpos = 0 for char in range(ord("A"), ord("Q")): # put 1K of those chars in... letterxordatastore.set_data(startpos, chr(char...
22.582418
80
0.734793
66e96af05eb71dffdc797a7e43ac1a1a2c74529a
63,814
py
Python
pandas/core/internals/managers.py
rogererens/pandas
6812842d3653e93f9191a59446b1b4b19c77c428
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/core/internals/managers.py
rogererens/pandas
6812842d3653e93f9191a59446b1b4b19c77c428
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/core/internals/managers.py
rogererens/pandas
6812842d3653e93f9191a59446b1b4b19c77c428
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
from collections import defaultdict from functools import partial import itertools import operator import re from typing import Dict, List, Optional, Sequence, Tuple, TypeVar, Union import numpy as np from pandas._libs import Timedelta, Timestamp, internals as libinternals, lib from pandas._typing import ArrayLike, D...
31.513086
88
0.572743
2fa76ec53e525e1b2bbdb7bf1a5c16531a789e89
106,194
py
Python
pytests/powertest.py
GeertBosch/mongo
884d232473dca72e0872f0e540d4c3108c1e0b3d
[ "Apache-2.0" ]
null
null
null
pytests/powertest.py
GeertBosch/mongo
884d232473dca72e0872f0e540d4c3108c1e0b3d
[ "Apache-2.0" ]
null
null
null
pytests/powertest.py
GeertBosch/mongo
884d232473dca72e0872f0e540d4c3108c1e0b3d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """Powercycle test. Tests robustness of mongod to survive multiple powercycle events. Client & server side powercycle test script. This script can be run against any host which is reachable via ssh. Note - the remote hosts should be running bash shell (this script may fail otherwise). There are...
43.010936
113
0.613782
61b09e993c2d7f01b552752e9be78daa17510132
1,825
py
Python
Command Line Interface Version/generatorCore.py
mmble/password_generator
54c9c6b82ca29ad5d5840b3bcf44e638a1581198
[ "Apache-2.0" ]
1
2019-09-25T13:33:22.000Z
2019-09-25T13:33:22.000Z
Command Line Interface Version/generatorCore.py
mmacq/password_generator
54c9c6b82ca29ad5d5840b3bcf44e638a1581198
[ "Apache-2.0" ]
null
null
null
Command Line Interface Version/generatorCore.py
mmacq/password_generator
54c9c6b82ca29ad5d5840b3bcf44e638a1581198
[ "Apache-2.0" ]
null
null
null
import random import string debugmode = False def debug(str): if debugmode: for i in str: print(i) setsOfCharacters = { 3: string.ascii_lowercase, 2: string.digits, 1: string.punctuation, 0: string.ascii_uppercase, } def printWarning(infoString=""): print("[Warning] "+infoString) def generat...
28.968254
87
0.688767
2a75bf3aba95545cee02082e6b02f77d45865b6d
155,320
py
Python
apps/rss_feeds/models.py
sictiru/NewsBlur
3fb3bd1962439d14ea725b34a3d8c7cedc569876
[ "MIT" ]
null
null
null
apps/rss_feeds/models.py
sictiru/NewsBlur
3fb3bd1962439d14ea725b34a3d8c7cedc569876
[ "MIT" ]
null
null
null
apps/rss_feeds/models.py
sictiru/NewsBlur
3fb3bd1962439d14ea725b34a3d8c7cedc569876
[ "MIT" ]
null
null
null
import difflib import requests import datetime import time import random import re import math import mongoengine as mongo import zlib import hashlib import redis import pymongo import HTMLParser import urlparse from collections import defaultdict from operator import itemgetter from bson.objectid import ObjectId from ...
45.375402
302
0.569862
3ba998266f9548b51dffe46f2188ee66b2f350f7
5,626
py
Python
src/gtk-client/client.py
lalaveine/VoiceAssistant
3742de4b305ba0e9bd34f3a9914a20ec64e17397
[ "MIT" ]
null
null
null
src/gtk-client/client.py
lalaveine/VoiceAssistant
3742de4b305ba0e9bd34f3a9914a20ec64e17397
[ "MIT" ]
3
2021-02-08T20:33:39.000Z
2021-06-02T00:00:21.000Z
src/gtk-client/client.py
lalaveine/VoiceAssistant
3742de4b305ba0e9bd34f3a9914a20ec64e17397
[ "MIT" ]
1
2020-04-17T18:40:09.000Z
2020-04-17T18:40:09.000Z
import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk # import model from src.model.datamanager import SupportedApplications # DBus from pydbus import SessionBus import threading class DBusService(object): """ <node> <interface name='org.LinuxAssistantClient'> ...
29.925532
111
0.635087
ae00a3d8222dce0e1279e4f7e14ff28cd42bb78d
4,024
py
Python
graphql_compiler/schema_generation/sqlalchemy/__init__.py
manesioz/graphql-compiler
b23be9c4a8e26f8c82e741625e04f7c9ac2e623b
[ "Apache-2.0" ]
null
null
null
graphql_compiler/schema_generation/sqlalchemy/__init__.py
manesioz/graphql-compiler
b23be9c4a8e26f8c82e741625e04f7c9ac2e623b
[ "Apache-2.0" ]
null
null
null
graphql_compiler/schema_generation/sqlalchemy/__init__.py
manesioz/graphql-compiler
b23be9c4a8e26f8c82e741625e04f7c9ac2e623b
[ "Apache-2.0" ]
null
null
null
# Copyright 2019-present Kensho Technologies, LLC. from ...schema.schema_info import SQLAlchemySchemaInfo from ..graphql_schema import get_graphql_schema_from_schema_graph from .edge_descriptors import get_join_descriptors_from_edge_descriptors from .schema_graph_builder import get_sqlalchemy_schema_graph def get_sql...
60.969697
100
0.69334
ca45cbe6be7d553e55704f730055f27d85a044e6
2,771
py
Python
src/ext/glbinding/codegeneration/scripts/gen_types.py
carl-221b/gen_planete
89cf1096363c8f1e1ee0de3221e3cd5057862391
[ "MIT" ]
null
null
null
src/ext/glbinding/codegeneration/scripts/gen_types.py
carl-221b/gen_planete
89cf1096363c8f1e1ee0de3221e3cd5057862391
[ "MIT" ]
null
null
null
src/ext/glbinding/codegeneration/scripts/gen_types.py
carl-221b/gen_planete
89cf1096363c8f1e1ee0de3221e3cd5057862391
[ "MIT" ]
1
2021-07-01T07:45:44.000Z
2021-07-01T07:45:44.000Z
from binding import * from classes.Type import * REGULAR_TYPE_INTEGRATIONS = { "GLextension" : [ "hashable", "streamable" ], "GLboolean" : [ "streamable" ], "GLenum" : [ "hashable", "streamable", "addable", "comparable" ] } BITFIELD_TYPE_INTEGRATIONS = [ "hashable", "bitfieldStreamable", "bitOpera...
34.6375
113
0.619632
ffb0402c174027e873efa47a34380cb1763f72e2
1,278
py
Python
negociant/trader/app/algoTrading/testRpc.py
XilinJia/Negociant
53a0c0b4f40bd6d3ea1955745360f78dacfc71c1
[ "MIT" ]
null
null
null
negociant/trader/app/algoTrading/testRpc.py
XilinJia/Negociant
53a0c0b4f40bd6d3ea1955745360f78dacfc71c1
[ "MIT" ]
null
null
null
negociant/trader/app/algoTrading/testRpc.py
XilinJia/Negociant
53a0c0b4f40bd6d3ea1955745360f78dacfc71c1
[ "MIT" ]
null
null
null
# encoding: UTF-8 from __future__ import print_function from time import sleep from six.moves import input from negociant.rpc import RpcClient from negociant.trader.vtConstant import OFFSET_OPEN, DIRECTION_LONG ######################################################################## class TestClient(RpcClient): ...
26.081633
75
0.525039
2176898c80a71ef6f0281730220c32c7980d9609
5,725
py
Python
sympy/physics/mechanics/tests/test_jointsmethod.py
nashalex/sympy
aec3e6512be46f0558f5dbcf2b4d723496c91649
[ "BSD-3-Clause" ]
8,323
2015-01-02T15:51:43.000Z
2022-03-31T13:13:19.000Z
sympy/physics/mechanics/tests/test_jointsmethod.py
nashalex/sympy
aec3e6512be46f0558f5dbcf2b4d723496c91649
[ "BSD-3-Clause" ]
15,102
2015-01-01T01:33:17.000Z
2022-03-31T22:53:13.000Z
sympy/physics/mechanics/tests/test_jointsmethod.py
nashalex/sympy
aec3e6512be46f0558f5dbcf2b4d723496c91649
[ "BSD-3-Clause" ]
4,490
2015-01-01T17:48:07.000Z
2022-03-31T17:24:05.000Z
from sympy import symbols, Matrix, cos, sin, expand, trigsimp from sympy.physics.mechanics import (PinJoint, JointsMethod, Body, KanesMethod, PrismaticJoint, LagrangesMethod, inertia) from sympy.physics.vector import dynamicsymbols, ReferenceFrame from sympy.testing.pytest import rai...
40.316901
115
0.566463
cbc969e92385375d3eda007a1721770fc41e30c5
92
py
Python
files/action_plugins/__init__.py
exastro-playbook-collection/setup_paragen
4c6778fe5ca649019f1758c02acff3bf920b4b17
[ "Apache-2.0" ]
null
null
null
files/action_plugins/__init__.py
exastro-playbook-collection/setup_paragen
4c6778fe5ca649019f1758c02acff3bf920b4b17
[ "Apache-2.0" ]
null
null
null
files/action_plugins/__init__.py
exastro-playbook-collection/setup_paragen
4c6778fe5ca649019f1758c02acff3bf920b4b17
[ "Apache-2.0" ]
null
null
null
# -*- coding: UTF-8 -*- # action plugins はansible上にパッケージではないですが # テストのために、パッケージの形でテストができます
18.4
39
0.73913
7cbd361f5e6b82a6ce070264edbe9179ad08ff0b
6,254
py
Python
test/util/bitcoin-util-test.py
zahidaliayub/globaltoken
9fb33c559e995714d0a3f36b16e8e80ceafb5ae3
[ "MIT" ]
null
null
null
test/util/bitcoin-util-test.py
zahidaliayub/globaltoken
9fb33c559e995714d0a3f36b16e8e80ceafb5ae3
[ "MIT" ]
null
null
null
test/util/bitcoin-util-test.py
zahidaliayub/globaltoken
9fb33c559e995714d0a3f36b16e8e80ceafb5ae3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2014 BitPay Inc. # Copyright 2016-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test framework for bitcoin utils. Runs automatically during `make check`. Ca...
36.788235
125
0.629677
e477859829d1b5d0a076e425df7cc6a7898fc127
2,143
py
Python
demo_pipline.py
sokunmin/pytorch-video-pipeline
6252c396eb7f704d3c9b07ff0021b079340bc995
[ "MIT" ]
null
null
null
demo_pipline.py
sokunmin/pytorch-video-pipeline
6252c396eb7f704d3c9b07ff0021b079340bc995
[ "MIT" ]
null
null
null
demo_pipline.py
sokunmin/pytorch-video-pipeline
6252c396eb7f704d3c9b07ff0021b079340bc995
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from pathlib import Path import argparse import logging import json import cv2 import time from watchdog.streams.streams_plugin import StreamPipeline from watchdog.utils.decoder import ConfigDecoder, Profiler def main(): parser = argparse.ArgumentParser(formatter_class=argparse.RawTextHe...
32.469697
103
0.574428
e473d814c59a16314587fb6aefd52a4dee21d028
40,336
py
Python
tests/test_metadata_wrangler.py
NYPL-Simplified/circulation
1ea3eb81d9c8e3121b0fc0e1a40ac42956c29084
[ "Apache-2.0" ]
16
2016-06-27T18:09:37.000Z
2021-12-07T15:20:52.000Z
tests/test_metadata_wrangler.py
NYPL-Simplified/circulation
1ea3eb81d9c8e3121b0fc0e1a40ac42956c29084
[ "Apache-2.0" ]
809
2016-01-25T15:41:05.000Z
2022-03-29T16:12:38.000Z
tests/test_metadata_wrangler.py
NYPL-Simplified/circulation
1ea3eb81d9c8e3121b0fc0e1a40ac42956c29084
[ "Apache-2.0" ]
19
2016-05-06T16:18:50.000Z
2021-05-01T06:33:18.000Z
"""Tests of the Monitors and CoverageProviders associated with the metadata wrangler. """ import datetime import feedparser import pytest from core.config import ( CannotLoadConfiguration, Configuration, temp_config, ) from core.coverage import ( CoverageFailure, ) from core.model import ( Coverag...
39.352195
101
0.661146
eb5d6df3e4dd75914649c2b248a64a65b2bc2d43
84
py
Python
codebase/evaluate_MAE_td.py
Mikeriess/ML4PM_Temp_losses
6b31c33c942c2473f237d5e29153aebc2921be47
[ "MIT" ]
null
null
null
codebase/evaluate_MAE_td.py
Mikeriess/ML4PM_Temp_losses
6b31c33c942c2473f237d5e29153aebc2921be47
[ "MIT" ]
null
null
null
codebase/evaluate_MAE_td.py
Mikeriess/ML4PM_Temp_losses
6b31c33c942c2473f237d5e29153aebc2921be47
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat Jul 24 13:41:39 2021 @author: Mike """
10.5
35
0.559524
1a2cfdfaa89a3aa207f3f0ecd3181b0266f86bb9
7,677
py
Python
raster_processing.py
mweissbacher/xView2_FDNY
50116734606a743946baf4f63a70b49473634ecc
[ "MIT" ]
6
2020-07-21T01:00:43.000Z
2021-12-22T07:30:56.000Z
raster_processing.py
mweissbacher/xView2_FDNY
50116734606a743946baf4f63a70b49473634ecc
[ "MIT" ]
null
null
null
raster_processing.py
mweissbacher/xView2_FDNY
50116734606a743946baf4f63a70b49473634ecc
[ "MIT" ]
1
2020-07-20T21:35:26.000Z
2020-07-20T21:35:26.000Z
from itertools import product import random import string import subprocess import fiona import numpy as np import rasterio import rasterio.merge import rasterio.warp import rasterio.plot from rasterio import windows from rasterio.features import shapes from shapely.geometry import shape from shapely.geometry.polygon i...
29.988281
128
0.621076
160a4b29974d272ee5c28b164c06d23de5eb9fdf
122
py
Python
wsgi.py
Mirror-Score/playstore-app-data
51ca1f0ad769adf07a2bd220a1c73ae36d3a2a78
[ "MIT" ]
null
null
null
wsgi.py
Mirror-Score/playstore-app-data
51ca1f0ad769adf07a2bd220a1c73ae36d3a2a78
[ "MIT" ]
null
null
null
wsgi.py
Mirror-Score/playstore-app-data
51ca1f0ad769adf07a2bd220a1c73ae36d3a2a78
[ "MIT" ]
null
null
null
#!/usr/bin/env python from main import create_app app = create_app() if __name__ == "__main__": app.run(debug=True)
15.25
27
0.696721
7be9f5c5c7f29801152ef7f95d6be33506fdcd78
1,277
py
Python
sharpy-sc2/sharpy/plans/tactics/terran/continue_building.py
ProfessorQu/Sharpy-Bot
a8bf7ebbed113f5bf0f6891c9ca45fac9edfb26e
[ "MIT" ]
48
2019-11-25T20:02:27.000Z
2022-02-28T00:16:21.000Z
sharpy-sc2/sharpy/plans/tactics/terran/continue_building.py
ProfessorQu/Sharpy-Bot
a8bf7ebbed113f5bf0f6891c9ca45fac9edfb26e
[ "MIT" ]
48
2020-03-10T17:08:04.000Z
2022-02-22T08:21:12.000Z
sharpy-sc2/sharpy/plans/tactics/terran/continue_building.py
ProfessorQu/Sharpy-Bot
a8bf7ebbed113f5bf0f6891c9ca45fac9edfb26e
[ "MIT" ]
25
2019-12-01T18:14:54.000Z
2022-03-24T01:14:53.000Z
import sc2 from sharpy.plans.acts import ActBase from sc2 import UnitTypeId, AbilityId from sc2.unit import Unit REACTORS = {UnitTypeId.BARRACKSREACTOR, UnitTypeId.FACTORYREACTOR, UnitTypeId.STARPORTREACTOR, UnitTypeId.REACTOR} TECHLABS = {UnitTypeId.BARRACKSTECHLAB, UnitTypeId.FACTORYTECHLAB, UnitTypeId.STARPORTTECHL...
44.034483
116
0.68285
5d53fe3be68f8dc2ffde3e0bfe584f498dd05366
4,079
py
Python
S3Backup/__init__.py
mgoodfellow/s3-backup
b0079a9fa11722e0961d60a96359b8fe7e50d6a1
[ "MIT" ]
3
2015-06-30T19:55:50.000Z
2016-11-17T23:02:07.000Z
S3Backup/__init__.py
mgoodfellow/s3-backup
b0079a9fa11722e0961d60a96359b8fe7e50d6a1
[ "MIT" ]
1
2015-08-27T19:23:25.000Z
2015-09-07T20:56:52.000Z
S3Backup/__init__.py
mgoodfellow/s3-backup
b0079a9fa11722e0961d60a96359b8fe7e50d6a1
[ "MIT" ]
null
null
null
""" The MIT License (MIT) Copyright (c) 2015 Mike Goodfellow 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, mer...
37.081818
114
0.629076
30b6f9ffa64f3c7b0161914dfb0d2a9486f41104
9,202
py
Python
modin/engines/base/io/file_dispatcher.py
palash247/modin
3f1e275b67a760f09db6944600c4b7f5e601cbde
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
modin/engines/base/io/file_dispatcher.py
palash247/modin
3f1e275b67a760f09db6944600c4b7f5e601cbde
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
modin/engines/base/io/file_dispatcher.py
palash247/modin
3f1e275b67a760f09db6944600c4b7f5e601cbde
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Licensed to Modin Development Team under one or more contributor license agreements. # See the NOTICE file distributed with this work for additional information regarding # copyright ownership. The Modin Development Team licenses this file to you under the # Apache License, Version 2.0 (the "License"); you may not u...
32.747331
95
0.561726
dbe7dc436b36245298011a914f879e22b2cfb56f
633
py
Python
Courses/Python/Django/Digging into Django/4.Users/2.User Authentication/4.8 Registration URL/main/urls.py
kamranhossain/CodeSchoolExercises
5d6cd08fd669a85cfddbd8f061fbce4b7dc6e2f5
[ "MIT" ]
null
null
null
Courses/Python/Django/Digging into Django/4.Users/2.User Authentication/4.8 Registration URL/main/urls.py
kamranhossain/CodeSchoolExercises
5d6cd08fd669a85cfddbd8f061fbce4b7dc6e2f5
[ "MIT" ]
null
null
null
Courses/Python/Django/Digging into Django/4.Users/2.User Authentication/4.8 Registration URL/main/urls.py
kamranhossain/CodeSchoolExercises
5d6cd08fd669a85cfddbd8f061fbce4b7dc6e2f5
[ "MIT" ]
null
null
null
from django.conf.urls import url from django.conf import settings from django.views import static from . import views urlpatterns = [ url(r'^$', views.home, name = 'home'), url(r'^([0-9]+)/$', views.detail, name = 'detail'), url(r'^post_location/$', views.post_location, name = 'post_location'), url(r'^...
30.142857
74
0.619273
fad43869044b6474cdb25191dd0f7c41e7d335ea
13,365
py
Python
pycxsimulator.py
itbergl/PyCX
b5cc24454f37102388eb3181dbded6015e23a45c
[ "BSD-2-Clause-FreeBSD" ]
176
2019-12-18T11:44:28.000Z
2022-03-27T09:09:33.000Z
pycxsimulator.py
itbergl/PyCX
b5cc24454f37102388eb3181dbded6015e23a45c
[ "BSD-2-Clause-FreeBSD" ]
2
2020-03-29T00:51:25.000Z
2020-07-19T11:08:32.000Z
pycxsimulator.py
itbergl/PyCX
b5cc24454f37102388eb3181dbded6015e23a45c
[ "BSD-2-Clause-FreeBSD" ]
56
2019-12-18T19:04:12.000Z
2022-03-22T09:35:33.000Z
## "pycxsimulator.py" ## Dynamic, interactive simulation GUI for PyCX ## ## Project website: ## https://github.com/hsayama/PyCX ## ## Initial development by: ## Chun Wong ## email@chunwong.net ## ## Revisions by: ## Hiroki Sayama ## sayama@binghamton.edu ## ## Copyright 2012 Chun Wong ## Copyright 2012-2019 Hiroki Saya...
43.676471
150
0.609502
b06d64cfac07e3ef798f197aa90d29e9f650f419
384
py
Python
0x06-python-classes/102-main.py
gogomillan/holbertonschool-higher_level_programming
1549ffc4fdc284271684321ff6edd882a314193a
[ "MIT" ]
null
null
null
0x06-python-classes/102-main.py
gogomillan/holbertonschool-higher_level_programming
1549ffc4fdc284271684321ff6edd882a314193a
[ "MIT" ]
null
null
null
0x06-python-classes/102-main.py
gogomillan/holbertonschool-higher_level_programming
1549ffc4fdc284271684321ff6edd882a314193a
[ "MIT" ]
null
null
null
#!/usr/bin/python3 Square = __import__('102-square').Square s_5 = Square(5) s_6 = Square(6) if s_5 < s_6: print("Square 5 < Square 6") if s_5 <= s_6: print("Square 5 <= Square 6") if s_5 == s_6: print("Square 5 == Square 6") if s_5 != s_6: print("Square 5 != Square 6") if s_5 > s_6: print("Square ...
20.210526
40
0.588542
7ced26e6a014b482cbfb42342d6605c24196ad73
484
py
Python
p1.py
Morwar22/BigData
7f97bc50b9566fb3a323e856c677d91fe54fd2ac
[ "Apache-2.0" ]
null
null
null
p1.py
Morwar22/BigData
7f97bc50b9566fb3a323e856c677d91fe54fd2ac
[ "Apache-2.0" ]
null
null
null
p1.py
Morwar22/BigData
7f97bc50b9566fb3a323e856c677d91fe54fd2ac
[ "Apache-2.0" ]
null
null
null
import sys from pyspark import SparkConf, SparkContext import re word = sys.argv[1] conf = SparkConf().setAppName('WordCount') sc = SparkContext(conf=conf) def spliter(line): return re.sub(r'\W+', ' ', line).split() def searcher(line): if word in line: return {line, ''} sc.textF...
17.925926
45
0.628099
05edfe145308bdca1eae849098a222bc20709c49
108
py
Python
config.py
anserion/pyFlaskNotebook
cac9d3615aa264928eb2bed01a3d06657c05e3ee
[ "Apache-2.0" ]
null
null
null
config.py
anserion/pyFlaskNotebook
cac9d3615aa264928eb2bed01a3d06657c05e3ee
[ "Apache-2.0" ]
null
null
null
config.py
anserion/pyFlaskNotebook
cac9d3615aa264928eb2bed01a3d06657c05e3ee
[ "Apache-2.0" ]
null
null
null
CSRF_ENABLED = True SECRET_KEY = '1234567890' flask_port=8080 good_name = 'yandex' good_password = '123456'
18
25
0.777778
12fd0487f71feb342ac5c0fcb7c08ab66dd4f7ed
2,418
py
Python
pytest_testrail_api_client/test_rail.py
Slamnlc/test-rail-client
56ed9fb5d6ad0128458709ebebce6b6b51782a9f
[ "MIT" ]
null
null
null
pytest_testrail_api_client/test_rail.py
Slamnlc/test-rail-client
56ed9fb5d6ad0128458709ebebce6b6b51782a9f
[ "MIT" ]
null
null
null
pytest_testrail_api_client/test_rail.py
Slamnlc/test-rail-client
56ed9fb5d6ad0128458709ebebce6b6b51782a9f
[ "MIT" ]
null
null
null
from pytest_testrail_api_client.api.cases_api import CasesApi from pytest_testrail_api_client.api.congif_api import ConfigsApi from pytest_testrail_api_client.api.milestones_api import MilestonesApi from pytest_testrail_api_client.api.plans_api import PlansApi from pytest_testrail_api_client.api.project_api import Proj...
24.673469
120
0.724152
f0561afc1493802722cefe55909fe00579e94918
1,291
py
Python
examples/cbc_iris.py
ChristophRaab/prototorch_models
75a39f5b03110a56b3d93ee00b3397858f4222a3
[ "MIT" ]
4
2021-05-05T07:27:11.000Z
2021-12-24T08:01:45.000Z
examples/cbc_iris.py
ChristophRaab/prototorch_models
75a39f5b03110a56b3d93ee00b3397858f4222a3
[ "MIT" ]
6
2021-05-06T09:49:37.000Z
2021-11-15T10:43:09.000Z
examples/cbc_iris.py
ChristophRaab/prototorch_models
75a39f5b03110a56b3d93ee00b3397858f4222a3
[ "MIT" ]
5
2021-05-12T14:16:35.000Z
2021-10-20T14:21:42.000Z
"""CBC example using the Iris dataset.""" import argparse import prototorch as pt import pytorch_lightning as pl import torch if __name__ == "__main__": # Command-line arguments parser = argparse.ArgumentParser() parser = pl.Trainer.add_argparse_args(parser) args = parser.parse_args() # Dataset ...
23.907407
74
0.618125
77fe3789578913372badcb0e2b8089644a790749
21,489
py
Python
google/cloud/compute_v1/services/region_target_http_proxies/transports/rest.py
vam-google/python-compute
799f2f55e5e205317862a17ca7ed548ce2ca66e5
[ "Apache-2.0" ]
null
null
null
google/cloud/compute_v1/services/region_target_http_proxies/transports/rest.py
vam-google/python-compute
799f2f55e5e205317862a17ca7ed548ce2ca66e5
[ "Apache-2.0" ]
null
null
null
google/cloud/compute_v1/services/region_target_http_proxies/transports/rest.py
vam-google/python-compute
799f2f55e5e205317862a17ca7ed548ce2ca66e5
[ "Apache-2.0" ]
null
null
null
# -*- 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...
42.636905
133
0.620457
e9a532e1726db68d039d760dd3b54b47eb888e61
3,038
py
Python
tfts/models/unet.py
leilin-research/Time-series-prediction
97ca6a7525e2c6329276b66ece1747124da8ab42
[ "MIT" ]
552
2019-07-23T10:17:49.000Z
2022-03-23T13:37:46.000Z
tfts/models/unet.py
leilin-research/Time-series-prediction
97ca6a7525e2c6329276b66ece1747124da8ab42
[ "MIT" ]
12
2020-05-16T04:22:09.000Z
2022-03-23T13:38:45.000Z
tfts/models/unet.py
leilin-research/Time-series-prediction
97ca6a7525e2c6329276b66ece1747124da8ab42
[ "MIT" ]
122
2019-09-09T11:34:19.000Z
2022-03-16T08:06:24.000Z
# -*- coding: utf-8 -*- # @author: Longxing Tan, tanlongxing888@163.com # @date: 2020-03 # paper: # other implementations: https://www.kaggle.com/super13579/u-net-1d-cnn-with-pytorch # https://www.kaggle.com/kmat2019/u-net-1d-cnn-with-keras import tensorflow as tf from tensorflow.keras.layers im...
34.134831
149
0.608953
aa8ec542359b0a0fe2a05427b160679349e8a35c
1,532
py
Python
cancontroller/caniot/message/message.py
lucasdietrich/caniot-pycontroller
c8ec4a9831dc294086ff194bc09a8d9c23758848
[ "MIT" ]
null
null
null
cancontroller/caniot/message/message.py
lucasdietrich/caniot-pycontroller
c8ec4a9831dc294086ff194bc09a8d9c23758848
[ "MIT" ]
null
null
null
cancontroller/caniot/message/message.py
lucasdietrich/caniot-pycontroller
c8ec4a9831dc294086ff194bc09a8d9c23758848
[ "MIT" ]
null
null
null
from __future__ import annotations import struct from cancontroller.caniot.models import MsgId, DeviceId, BufferType from abc import ABC import can class CaniotMessage(ABC): """ Represent a caniot message """ @property def arbitration_id(self): return int(self.msgid) def __init__...
24.709677
72
0.607702
e0c8c88c58852d7e53775d211e5ad5d165fed193
8,522
py
Python
wagtail/wagtailusers/forms.py
edrex/wagtail
dc1b51a5be1a57f6cb1b90507eea6ab7f2e1affe
[ "BSD-3-Clause" ]
null
null
null
wagtail/wagtailusers/forms.py
edrex/wagtail
dc1b51a5be1a57f6cb1b90507eea6ab7f2e1affe
[ "BSD-3-Clause" ]
null
null
null
wagtail/wagtailusers/forms.py
edrex/wagtail
dc1b51a5be1a57f6cb1b90507eea6ab7f2e1affe
[ "BSD-3-Clause" ]
null
null
null
from django import forms from django.contrib.auth.forms import UserCreationForm as BaseUserCreationForm from django.utils.translation import ugettext_lazy as _ from django.contrib.auth import get_user_model from django.contrib.auth.models import Group, Permission from wagtail.wagtailcore import hooks from wagtail.wagt...
37.377193
107
0.662873
18677e029cd98f78fd12118c7aba978ef52b2fa1
271
py
Python
1337. The K Weakest Rows in a Matrix/main.py
amanchadha/LeetCode
20dddf0616351ad399f0fa03cb6a2b5cbdd25279
[ "MIT" ]
1
2021-07-18T06:18:40.000Z
2021-07-18T06:18:40.000Z
1337. The K Weakest Rows in a Matrix/main.py
amanchadha/LeetCode
20dddf0616351ad399f0fa03cb6a2b5cbdd25279
[ "MIT" ]
null
null
null
1337. The K Weakest Rows in a Matrix/main.py
amanchadha/LeetCode
20dddf0616351ad399f0fa03cb6a2b5cbdd25279
[ "MIT" ]
3
2020-09-27T05:48:30.000Z
2021-08-13T10:07:08.000Z
class Solution: def kWeakestRows(self, mat: List[List[int]], k: int) -> List[int]: res = [] m, n = len(mat), len(mat[0]) for i in range(m): res.append((mat[i].count(1), i)) res.sort() return [e[1] for e in res[:k]]
30.111111
70
0.487085
ccc57715c94127b71f63decd96559d708d35027c
19,469
py
Python
pymeasure/instruments/keithley/keithley6221.py
carez/pymeasure
32423d20ac13ee1ae889764ff46ad83271444b93
[ "MIT" ]
153
2020-11-12T17:01:31.000Z
2022-03-29T09:54:38.000Z
pymeasure/instruments/keithley/keithley6221.py
carez/pymeasure
32423d20ac13ee1ae889764ff46ad83271444b93
[ "MIT" ]
226
2020-11-12T07:36:11.000Z
2022-03-22T08:18:26.000Z
pymeasure/instruments/keithley/keithley6221.py
carez/pymeasure
32423d20ac13ee1ae889764ff46ad83271444b93
[ "MIT" ]
85
2020-11-15T03:41:28.000Z
2022-03-25T07:14:18.000Z
# # This file is part of the PyMeasure package. # # Copyright (c) 2013-2021 PyMeasure Developers # # 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 limit...
38.552475
94
0.625045
26f3ae91c0ed02d50421d99bad1c94ac935b4564
76,211
py
Python
orttraining/orttraining/test/python/orttraining_test_orttrainer_frontend.py
vpisarev/onnxruntime
bab9b80f1f2330d3a115e0abbb4d8278c2be3f44
[ "MIT" ]
null
null
null
orttraining/orttraining/test/python/orttraining_test_orttrainer_frontend.py
vpisarev/onnxruntime
bab9b80f1f2330d3a115e0abbb4d8278c2be3f44
[ "MIT" ]
null
null
null
orttraining/orttraining/test/python/orttraining_test_orttrainer_frontend.py
vpisarev/onnxruntime
bab9b80f1f2330d3a115e0abbb4d8278c2be3f44
[ "MIT" ]
null
null
null
from functools import partial import inspect import math from distutils.version import StrictVersion from numpy.testing import assert_allclose import onnx import os import pytest import tempfile import torch import torch.nn.functional as F from onnxruntime import set_seed from onnxruntime.capi.ort_trainer import IODes...
45.993361
138
0.649473
a55506b69ec3f4c998c3ff47161bed66b5f12003
357
py
Python
scripts/remove_alpha.py
OpenVoiceOS/ovos-intent-plugin-regex
43979c767ebdb1ffc065f76cfed4c4a2f331e805
[ "Apache-2.0" ]
null
null
null
scripts/remove_alpha.py
OpenVoiceOS/ovos-intent-plugin-regex
43979c767ebdb1ffc065f76cfed4c4a2f331e805
[ "Apache-2.0" ]
null
null
null
scripts/remove_alpha.py
OpenVoiceOS/ovos-intent-plugin-regex
43979c767ebdb1ffc065f76cfed4c4a2f331e805
[ "Apache-2.0" ]
null
null
null
import fileinput from os.path import join, dirname version_file = join(dirname(dirname(__file__)), "ovos_intent_plugin_regex", "version.py") alpha_var_name = "VERSION_ALPHA" for line in fileinput.input(version_file, inplace=True): if line.startswith(alpha_var_name): print(f"{alpha_var_name} = 0") el...
25.5
89
0.719888
62cf086f3d2c0bdef38b598f1e7ab8ac2985bd12
1,298
py
Python
maindatabase/urls.py
dragonman164/Database-for-Covid-19-Vaccination-with-API-support
b34c29414967fcdf2d9fb34ed815f5c2752694b6
[ "MIT" ]
1
2020-12-30T16:31:14.000Z
2020-12-30T16:31:14.000Z
maindatabase/urls.py
rishusingh022/Database-for-Covid-19-Vaccination-with-API-support
8d2137f06d10ca620a4fe24ffc34c410b8a78ad6
[ "MIT" ]
null
null
null
maindatabase/urls.py
rishusingh022/Database-for-Covid-19-Vaccination-with-API-support
8d2137f06d10ca620a4fe24ffc34c410b8a78ad6
[ "MIT" ]
2
2020-12-19T19:27:08.000Z
2021-01-02T07:43:39.000Z
"""databaseforvaccination URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='hom...
37.085714
104
0.718798
d53444326b83734e65f82dda14860b6949caea4a
3,228
py
Python
backend/testScripy.py
SWTangKai/Graph2vec
4df0fa9b933eedbf87bde844151b8b1fec79f8c0
[ "MIT" ]
1
2019-02-11T07:21:56.000Z
2019-02-11T07:21:56.000Z
backend/testScripy.py
SWTangKai/Graph2vec
4df0fa9b933eedbf87bde844151b8b1fec79f8c0
[ "MIT" ]
null
null
null
backend/testScripy.py
SWTangKai/Graph2vec
4df0fa9b933eedbf87bde844151b8b1fec79f8c0
[ "MIT" ]
null
null
null
from nelib.graph import Graph from nelib.node2vec import Node2vec from nelib.forceatlas2 import ForceAtlas2 import networkx as nx import matplotlib.pyplot as plt GRAPH_PATH = './data/cora/cora_edgelist.txt' G = Graph() G.read_edgelist(GRAPH_PATH) model1 = Node2vec(G, 10, 10, 2, p=1.0, q=1.0) # model2 = Node2vec(G, 1...
25.619048
98
0.641264
9f56225c11ed3de6fdc88bde3a0fd444f7f98829
1,291
py
Python
python/example_code/acm/list_certificates.py
AkhmadRiswanda/aws-doc-sdk-examples
46dbd6e1002f4d5c056df3eb478c318501782a17
[ "Apache-2.0" ]
null
null
null
python/example_code/acm/list_certificates.py
AkhmadRiswanda/aws-doc-sdk-examples
46dbd6e1002f4d5c056df3eb478c318501782a17
[ "Apache-2.0" ]
null
null
null
python/example_code/acm/list_certificates.py
AkhmadRiswanda/aws-doc-sdk-examples
46dbd6e1002f4d5c056df3eb478c318501782a17
[ "Apache-2.0" ]
null
null
null
# Copyright 2010-2018 Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license"...
34.891892
124
0.747483
aabe70edcb52d64c5942e94abef1cf4d421bbf38
237
py
Python
apps/frontend/routes.py
ilya-goldin/aiohttp-mvtiles
8e1a2c4acba8ee77caf91e191b637b1776bceee6
[ "MIT" ]
null
null
null
apps/frontend/routes.py
ilya-goldin/aiohttp-mvtiles
8e1a2c4acba8ee77caf91e191b637b1776bceee6
[ "MIT" ]
null
null
null
apps/frontend/routes.py
ilya-goldin/aiohttp-mvtiles
8e1a2c4acba8ee77caf91e191b637b1776bceee6
[ "MIT" ]
null
null
null
from .views import Handler def frontend_routes(application): """ Append frontend routes and middleware :param application: :type application: aiohttp.web.Application """ application.router.add_get("/", Handler)
21.545455
46
0.704641
0ba0feb540574a8a383ea960a5015d6e40b19be6
2,398
py
Python
nova/tests/scheduler/test_rpcapi.py
vmthunder/nova
baf05caab705c5778348d9f275dc541747b7c2de
[ "Apache-2.0" ]
2
2016-04-19T08:20:39.000Z
2021-10-03T16:00:37.000Z
nova/tests/scheduler/test_rpcapi.py
vmthunder/nova
baf05caab705c5778348d9f275dc541747b7c2de
[ "Apache-2.0" ]
9
2015-05-20T11:20:17.000Z
2017-07-27T08:21:33.000Z
nova/tests/scheduler/test_rpcapi.py
vmthunder/nova
baf05caab705c5778348d9f275dc541747b7c2de
[ "Apache-2.0" ]
13
2015-05-05T09:34:04.000Z
2017-11-08T02:03:46.000Z
# Copyright 2013 Red Hat, 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 agre...
34.257143
78
0.69141
acac657276ab8951d297529eee32493b186e59e9
8,501
py
Python
desktop/libs/indexer/src/indexer/indexers/sql.py
sandeepreddy3647/hue-1
03981c392ef35ae52052fb94549ec3a7b7074b8d
[ "Apache-2.0" ]
null
null
null
desktop/libs/indexer/src/indexer/indexers/sql.py
sandeepreddy3647/hue-1
03981c392ef35ae52052fb94549ec3a7b7074b8d
[ "Apache-2.0" ]
null
null
null
desktop/libs/indexer/src/indexer/indexers/sql.py
sandeepreddy3647/hue-1
03981c392ef35ae52052fb94549ec3a7b7074b8d
[ "Apache-2.0" ]
null
null
null
# Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file ex...
37.782222
162
0.65804
4568f8779aa9e9969e9e3d6ba2b40799469fbe49
1,414
py
Python
lexical_field_method.py
margauxschmied/TATIA
a0a9fa027c33aeac962d30dca48f358f4f34e114
[ "MIT" ]
2
2022-01-15T17:43:25.000Z
2022-01-15T17:55:33.000Z
lexical_field_method.py
margauxschmied/TATIA
a0a9fa027c33aeac962d30dca48f358f4f34e114
[ "MIT" ]
null
null
null
lexical_field_method.py
margauxschmied/TATIA
a0a9fa027c33aeac962d30dca48f358f4f34e114
[ "MIT" ]
null
null
null
import pandas as pd from tqdm import trange from classifier import clean_text def clean_lexical(df): lexical = df["lexical_field"] # new_df = pd.DataFrame() for i in range(len(df)): splited = lexical[i].split(" ") l = clean_text(" ".join(set(splited))) df["lexical_field"][i] = l ...
21.753846
64
0.628713
1fa01e469e92735696385d18fc8df5e43d6df6f1
1,333
py
Python
octavia/tests/unit/controller/healthmanager/health_drivers/test_update_base.py
sajuptpm/octavia
fde4ebe822072a79bb74497b504ca3f0a6a6518d
[ "Apache-2.0" ]
null
null
null
octavia/tests/unit/controller/healthmanager/health_drivers/test_update_base.py
sajuptpm/octavia
fde4ebe822072a79bb74497b504ca3f0a6a6518d
[ "Apache-2.0" ]
null
null
null
octavia/tests/unit/controller/healthmanager/health_drivers/test_update_base.py
sajuptpm/octavia
fde4ebe822072a79bb74497b504ca3f0a6a6518d
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 GoDaddy # Copyright (c) 2015 Rackspace # # 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...
34.179487
75
0.72093
a5154f38b17d43531fc2cd715a7fd0861a4ece97
885
py
Python
setup.py
Serhiy-Shekhovtsov/clasp
d20024304c8fe5dc285b2b35eab9e7135a1163c3
[ "MIT" ]
110
2021-04-02T11:37:21.000Z
2022-03-28T05:58:21.000Z
setup.py
Serhiy-Shekhovtsov/clasp
d20024304c8fe5dc285b2b35eab9e7135a1163c3
[ "MIT" ]
6
2021-04-06T22:42:08.000Z
2021-08-23T18:13:54.000Z
setup.py
Bovey0809/clasp
a92acd8ed33f9b4cc53ed99501d66e41a3a0d4f6
[ "MIT" ]
18
2021-04-02T13:59:30.000Z
2022-03-08T02:39:27.000Z
from setuptools import setup, find_packages setup( name = 'bioseq-clasp', packages = find_packages(), version = '0.0.1', license='MIT', description = 'CLASP - CLIP for biosequences and their annotation data', author = 'MicPie', author_email = '', url = 'https://github.com/MicPie/clasp', keywords = [ ...
24.583333
74
0.636158
691843a9dee40f33db5df7dbbc03fe0fd0a4087d
61,596
py
Python
tensorflow/python/framework/func_graph.py
Alavandar08/tensorflow
e0d69364ec2ad40ac97b7d41683264080f07c582
[ "Apache-2.0" ]
1
2021-04-28T08:36:49.000Z
2021-04-28T08:36:49.000Z
tensorflow/python/framework/func_graph.py
Alavandar08/tensorflow
e0d69364ec2ad40ac97b7d41683264080f07c582
[ "Apache-2.0" ]
null
null
null
tensorflow/python/framework/func_graph.py
Alavandar08/tensorflow
e0d69364ec2ad40ac97b7d41683264080f07c582
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
42.217958
119
0.685759
f98dd2e8b9d01113d626f6ef200ebc97c991b309
11,435
py
Python
scipy/misc/common.py
jiffyclub/scipy
e346aa55c0416b915148c35cc200a0ed74f85c0a
[ "BSD-3-Clause" ]
1
2020-11-07T04:53:55.000Z
2020-11-07T04:53:55.000Z
scipy/misc/common.py
jiffyclub/scipy
e346aa55c0416b915148c35cc200a0ed74f85c0a
[ "BSD-3-Clause" ]
null
null
null
scipy/misc/common.py
jiffyclub/scipy
e346aa55c0416b915148c35cc200a0ed74f85c0a
[ "BSD-3-Clause" ]
1
2019-08-13T21:23:57.000Z
2019-08-13T21:23:57.000Z
""" Functions which are common and require SciPy Base and Level 1 SciPy (special, linalg) """ from __future__ import division, print_function, absolute_import import numpy from numpy import (exp, log, asarray, arange, newaxis, hstack, product, array, zeros, eye, poly1d, r_, rollaxis, sum, fromstrin...
26.655012
93
0.562221
a49bb07d9f8d9630e4bb14589ed99d907bf87ff7
33,780
py
Python
gempy/library/astrotools.py
DBerke/DRAGONS
cecf9a03970af95126bd17a227bd5214a5d6c64b
[ "BSD-3-Clause" ]
19
2017-10-23T14:52:51.000Z
2022-03-28T04:49:00.000Z
gempy/library/astrotools.py
DBerke/DRAGONS
cecf9a03970af95126bd17a227bd5214a5d6c64b
[ "BSD-3-Clause" ]
194
2017-11-01T17:32:45.000Z
2022-03-31T21:32:59.000Z
gempy/library/astrotools.py
DBerke/DRAGONS
cecf9a03970af95126bd17a227bd5214a5d6c64b
[ "BSD-3-Clause" ]
16
2017-11-01T05:18:04.000Z
2021-12-14T23:08:57.000Z
# Copyright(c) 2006,2016-2020 Association of Universities for Research in Astronomy, Inc. """ The astroTools module contains astronomy specific utility functions """ import os import re import numpy as np from astropy import units as u def array_from_list(list_of_quantities, unit=None): """ Convert a list o...
33.915663
109
0.575281
04d8ea946da97e3a4967e6e616db1683738f0548
8,345
py
Python
tests/test_evoformer.py
yuzhiguo07/openfold
5fb0f074066387b9969578b8bf68f7e046c778af
[ "Apache-2.0" ]
1
2021-12-16T17:02:10.000Z
2021-12-16T17:02:10.000Z
tests/test_evoformer.py
yuzhiguo07/openfold
5fb0f074066387b9969578b8bf68f7e046c778af
[ "Apache-2.0" ]
null
null
null
tests/test_evoformer.py
yuzhiguo07/openfold
5fb0f074066387b9969578b8bf68f7e046c778af
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 AlQuraishi Laboratory # # 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...
30.456204
80
0.587777
f8590b69d1f18947ff62bb19e2b8e6df74a2d161
897
py
Python
app/app.py
ShuaiGao/mini-shop-server
8a72b2d457bba8778e97637027ffa82bfa11e8a9
[ "MIT" ]
null
null
null
app/app.py
ShuaiGao/mini-shop-server
8a72b2d457bba8778e97637027ffa82bfa11e8a9
[ "MIT" ]
1
2019-07-08T12:32:29.000Z
2019-07-08T12:32:29.000Z
app/app.py
ShuaiGao/mini-shop-server
8a72b2d457bba8778e97637027ffa82bfa11e8a9
[ "MIT" ]
null
null
null
# _*_ coding: utf-8 _*_ """ Created by Allen7D on 2018/6/13. """ from datetime import date from flask import Flask as _Flask, _request_ctx_stack from flask.json import JSONEncoder as _JSONEncoder from app.libs.error_code import ServerError __author__ = 'Allen7D' class JSONEncoder(_JSONEncoder): def default(self,...
24.916667
60
0.74136
4ed08162ac82aac7eabfb48be748903d7f1b6ed9
49
py
Python
src/utoolbox/util/decorator/__init__.py
thhsieh00/utoolbox-core
e46704348d60985c205a16f41788d2c185e11fb6
[ "Apache-2.0" ]
3
2020-08-21T02:34:32.000Z
2021-04-06T06:56:46.000Z
src/utoolbox/util/decorator/__init__.py
liuyenting/utoolbox-core
d1430967458204b99780c547eaca60d066490946
[ "Apache-2.0" ]
null
null
null
src/utoolbox/util/decorator/__init__.py
liuyenting/utoolbox-core
d1430967458204b99780c547eaca60d066490946
[ "Apache-2.0" ]
null
null
null
from .benchmark import * from .exceution import *
24.5
24
0.77551
1e7782350e37eb41d0db390bd5364aa153aa5afa
2,321
py
Python
tardis/montecarlo/montecarlo_numba/estimators.py
ArkaprabhaChakraborty/tardis
f52b6de55701c6880ad835ad714e911dcbe9ee96
[ "BSD-3-Clause" ]
176
2015-02-26T07:26:59.000Z
2022-03-16T18:26:22.000Z
tardis/montecarlo/montecarlo_numba/estimators.py
ArkaprabhaChakraborty/tardis
f52b6de55701c6880ad835ad714e911dcbe9ee96
[ "BSD-3-Clause" ]
1,474
2015-02-12T13:02:16.000Z
2022-03-31T09:05:54.000Z
tardis/montecarlo/montecarlo_numba/estimators.py
ArkaprabhaChakraborty/tardis
f52b6de55701c6880ad835ad714e911dcbe9ee96
[ "BSD-3-Clause" ]
434
2015-02-07T17:15:41.000Z
2022-03-23T04:49:38.000Z
from numba import njit from tardis.montecarlo.montecarlo_numba import ( njit_dict_no_parallel, ) from tardis.montecarlo.montecarlo_numba.frame_transformations import ( calc_packet_energy, calc_packet_energy_full_relativity, ) from tardis.montecarlo.montecarlo_numba.numba_config import ( ENABLE_FULL_R...
30.142857
80
0.724257
2d8795b45f27630f941cdabd8467490c38e5ed85
1,514
py
Python
crabageprediction/venv/Lib/site-packages/pandas/tests/indexes/timedeltas/test_join.py
13rianlucero/CrabAgePrediction
92bc7fbe1040f49e820473e33cc3902a5a7177c7
[ "MIT" ]
28,899
2016-10-13T03:32:12.000Z
2022-03-31T21:39:05.000Z
crabageprediction/venv/Lib/site-packages/pandas/tests/indexes/timedeltas/test_join.py
13rianlucero/CrabAgePrediction
92bc7fbe1040f49e820473e33cc3902a5a7177c7
[ "MIT" ]
31,004
2016-10-12T23:22:27.000Z
2022-03-31T23:17:38.000Z
crabageprediction/venv/Lib/site-packages/pandas/tests/indexes/timedeltas/test_join.py
13rianlucero/CrabAgePrediction
92bc7fbe1040f49e820473e33cc3902a5a7177c7
[ "MIT" ]
15,149
2016-10-13T03:21:31.000Z
2022-03-31T18:46:47.000Z
import numpy as np from pandas import ( Index, Timedelta, timedelta_range, ) import pandas._testing as tm class TestJoin: def test_append_join_nondatetimeindex(self): rng = timedelta_range("1 days", periods=10) idx = Index(["a", "b", "c", "d"]) result = rng.append(idx) ...
28.037037
65
0.593791
fc357ca481620bd6b4f20815f5691b4a0d917c56
65
py
Python
Personal tuitorials at Home/Many_Values_to_Multiple_Variables.py
thepros847/python_programiing
d177f79d0d1f21df434bf3f8663ae6469fcf8357
[ "MIT" ]
null
null
null
Personal tuitorials at Home/Many_Values_to_Multiple_Variables.py
thepros847/python_programiing
d177f79d0d1f21df434bf3f8663ae6469fcf8357
[ "MIT" ]
null
null
null
Personal tuitorials at Home/Many_Values_to_Multiple_Variables.py
thepros847/python_programiing
d177f79d0d1f21df434bf3f8663ae6469fcf8357
[ "MIT" ]
null
null
null
x, y, z = "Orange", "Banana", "Cherry" print(x) print(y) print(z)
16.25
38
0.6
b834929b7938f26cf7bd2136ef90ddbaf64d4e03
6,089
py
Python
radiative_equilibriumModel/runModel.py
Mihir-DG/Modelling-Planetary-Climate
4699d55d6ccecc4938f9844dd658e9c40c6d07c2
[ "MIT" ]
1
2021-06-21T04:52:46.000Z
2021-06-21T04:52:46.000Z
radiative_equilibriumModel/runModel.py
Mihir-DG/Modelling-Planetary-Climate
4699d55d6ccecc4938f9844dd658e9c40c6d07c2
[ "MIT" ]
null
null
null
radiative_equilibriumModel/runModel.py
Mihir-DG/Modelling-Planetary-Climate
4699d55d6ccecc4938f9844dd658e9c40c6d07c2
[ "MIT" ]
null
null
null
import climt import sympl from sympl import AdamsBashforth import matplotlib.pyplot as plt import numpy as np import math import metpy.calc as calc from metpy.units import units import datetime import csv #Importing setup functions for profile development. from setupMain import surf_airBdry_tempDiff, radiating_pressure...
40.324503
161
0.767614
4d0a8860b92137fe74a1fa841ebb9c256e434103
3,277
py
Python
src/main/lambda/WeatherDataIngestion.py
JFKenso/fitbit_insights
a65fb75063a6deb057e8827a0e054adc7f35645e
[ "Apache-2.0" ]
null
null
null
src/main/lambda/WeatherDataIngestion.py
JFKenso/fitbit_insights
a65fb75063a6deb057e8827a0e054adc7f35645e
[ "Apache-2.0" ]
null
null
null
src/main/lambda/WeatherDataIngestion.py
JFKenso/fitbit_insights
a65fb75063a6deb057e8827a0e054adc7f35645e
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import base64 import urllib2 import urllib import sys import json import os import boto3 from datetime import date, timedelta from boto3.dynamodb.conditions import Key, Attr from botocore.exceptions import ClientError #Declare these global variables that we'll use for the acces...
30.626168
97
0.657309
a99348a6e51590128f65e33baf7efc9cbf5f1e54
1,759
py
Python
Geolocation/Data/Design2a/design2a_11k_test5/pilot.0000/rp_install/lib/python2.7/site-packages/radical/pilot/agent/lm/func_exec.py
radical-experiments/iceberg_escience
e5c230a23395a71a4adf554730ea3d77f923166c
[ "MIT" ]
1
2019-05-24T02:19:29.000Z
2019-05-24T02:19:29.000Z
Geolocation/Data/Design2a/design2a_11k_test5/pilot.0000/rp_install/lib/python2.7/site-packages/radical/pilot/agent/lm/func_exec.py
radical-experiments/iceberg_escience
e5c230a23395a71a4adf554730ea3d77f923166c
[ "MIT" ]
null
null
null
Geolocation/Data/Design2a/design2a_11k_test5/pilot.0000/rp_install/lib/python2.7/site-packages/radical/pilot/agent/lm/func_exec.py
radical-experiments/iceberg_escience
e5c230a23395a71a4adf554730ea3d77f923166c
[ "MIT" ]
null
null
null
__copyright__ = "Copyright 2016, http://radical.rutgers.edu" __license__ = "MIT" from .base import LaunchMethod # ============================================================================== # class FuncExec(LaunchMethod): # -------------------------------------------------------------------------- #...
26.651515
80
0.429221
0d019fb014d429779bd2c59234d657150bb86fa0
530
py
Python
atcoder/abc/c199.py
tomato-300yen/coding
db6f440a96d8c83f486005c650461a69f27e3926
[ "MIT" ]
null
null
null
atcoder/abc/c199.py
tomato-300yen/coding
db6f440a96d8c83f486005c650461a69f27e3926
[ "MIT" ]
null
null
null
atcoder/abc/c199.py
tomato-300yen/coding
db6f440a96d8c83f486005c650461a69f27e3926
[ "MIT" ]
null
null
null
N = int(input()) NN = 2 * N S = input() Q = int(input()) TAB = [map(int, input().split()) for _ in range(Q)] def trans(a): return (a - N) % NN # init list_ = [i for i in range(NN)] num_flip = 0 for t, a, b in TAB: a, b = a - 1, b - 1 if t == 1: if num_flip % 2 == 1: a = trans(a) ...
17.666667
51
0.477358
4a4f3cf9a97abeaa410c9b1179f11e3184474b7b
240
py
Python
server.py
kleiba/pallyville
34f1ade802b6628d4fd9cbd39e729099517a4102
[ "MIT" ]
null
null
null
server.py
kleiba/pallyville
34f1ade802b6628d4fd9cbd39e729099517a4102
[ "MIT" ]
null
null
null
server.py
kleiba/pallyville
34f1ade802b6628d4fd9cbd39e729099517a4102
[ "MIT" ]
null
null
null
from http.server import * if __name__ == '__main__': host = '' port = 8080 server = HTTPServer((host, port), SimpleHTTPRequestHandler) print("Starting HTTP server on port {}.".format(port)) server.serve_forever()
21.818182
63
0.65
db63051c8be116ef07248201edecc8eca0455e61
157
py
Python
pydarknet2/darknet/exceptions.py
dapperfu/pydarknet2
0457771152d4fbb8cfb512aada62a1c7e50862af
[ "MIT" ]
2
2018-11-13T04:44:29.000Z
2019-08-06T08:25:34.000Z
pydarknet2/darknet/exceptions.py
dapperfu/pydarknet2
0457771152d4fbb8cfb512aada62a1c7e50862af
[ "MIT" ]
null
null
null
pydarknet2/darknet/exceptions.py
dapperfu/pydarknet2
0457771152d4fbb8cfb512aada62a1c7e50862af
[ "MIT" ]
null
null
null
"""Ipsum.""" class CloneException(Exception): """Clone exception.""" pass class BuildException(Exception): """Build exception.""" pass
11.214286
32
0.617834
4e3b9767ea5476ed703c9f785963bb469a3ca910
244
py
Python
utils.py
ondrejba/monte_carlo
6bea9afcfaa813c0eb494ae76f615fc483846396
[ "MIT" ]
14
2018-06-01T12:50:19.000Z
2021-01-05T22:18:26.000Z
utils.py
ondrejba/monte_carlo
6bea9afcfaa813c0eb494ae76f615fc483846396
[ "MIT" ]
null
null
null
utils.py
ondrejba/monte_carlo
6bea9afcfaa813c0eb494ae76f615fc483846396
[ "MIT" ]
5
2019-01-02T09:56:42.000Z
2022-03-11T06:10:22.000Z
def update_mean(value, mean, count): """ Update value of a streaming mean. :param value: New value. :param mean: Mean value. :param count: Number of values averaged. :return: """ return (value - mean) / (count + 1)
24.4
46
0.614754
e25c7326f751048f4e6942166f0e42514f3ef597
20,642
py
Python
zstackwoodpecker/zstackwoodpecker/operations/resource_operations.py
bgerxx/woodpecker
fdc51245945cc9be4d1f028988079213eb99b2ad
[ "Apache-2.0" ]
null
null
null
zstackwoodpecker/zstackwoodpecker/operations/resource_operations.py
bgerxx/woodpecker
fdc51245945cc9be4d1f028988079213eb99b2ad
[ "Apache-2.0" ]
null
null
null
zstackwoodpecker/zstackwoodpecker/operations/resource_operations.py
bgerxx/woodpecker
fdc51245945cc9be4d1f028988079213eb99b2ad
[ "Apache-2.0" ]
null
null
null
''' List resource API @author: Youyk ''' import apibinding.api_actions as api_actions import account_operations import apibinding.inventory as inventory import time import os import sys import traceback #Define default get resource method. default is using searchAPI, it can also be ListAPI. SEARCH_R...
39.020794
120
0.698866
d6d5bfad115c03c01450a6641aa8a5759b13c18e
2,964
py
Python
pwass/dimsensionality_reduction/simplicial_pca.py
mberaha/ProjectedWasserstein
20d19fc49f20124762eb497031cba0918b5eaadb
[ "BSD-3-Clause" ]
1
2021-11-30T09:11:56.000Z
2021-11-30T09:11:56.000Z
pwass/dimsensionality_reduction/simplicial_pca.py
mberaha/ProjectedWasserstein
20d19fc49f20124762eb497031cba0918b5eaadb
[ "BSD-3-Clause" ]
1
2021-05-25T08:49:25.000Z
2021-05-25T08:49:25.000Z
pwass/dimsensionality_reduction/simplicial_pca.py
mberaha/ProjectedWasserstein
20d19fc49f20124762eb497031cba0918b5eaadb
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from scipy.integrate import simps from pwass.dimsensionality_reduction.base_pca import PCA from pwass.spline import SplineBasis class SimplicialPCA(object): def __init__(self, nbasis, k=3, compute_spline=True, spline_basis=None): self.nbasis = nbasis self.k = k self.rem...
32.933333
77
0.602901
380e48809a93b6c2f6dcd9ef7eb066f010f7a407
958
py
Python
Coding Problem 3.3.12.py
opalqnka/CS1301xII
bba9cf34a7f6f0d1e0d90a73b933f3a90bdb825e
[ "MIT" ]
null
null
null
Coding Problem 3.3.12.py
opalqnka/CS1301xII
bba9cf34a7f6f0d1e0d90a73b933f3a90bdb825e
[ "MIT" ]
null
null
null
Coding Problem 3.3.12.py
opalqnka/CS1301xII
bba9cf34a7f6f0d1e0d90a73b933f3a90bdb825e
[ "MIT" ]
1
2020-07-16T06:56:22.000Z
2020-07-16T06:56:22.000Z
mystery_string = "my cat your cat" #You may modify the lines of code above, but don't move them! #When you Submit your code, we'll change these lines to #assign different values to the variables. #Add some code below that will count and print how many #times the character sequence "cat" appears in mystery_string. #Fo...
35.481481
95
0.716075
3199dbe4aad30f7ee646a64f0ef474c76c95aef1
5,995
py
Python
mayatools/geocache/exporter.py
westernx/mayatools
47c91050cb54167268d456e130ffce2d55373381
[ "BSD-3-Clause" ]
47
2015-01-07T17:38:39.000Z
2022-03-22T02:42:39.000Z
mayatools/geocache/exporter.py
westernx/mayatools
47c91050cb54167268d456e130ffce2d55373381
[ "BSD-3-Clause" ]
1
2016-04-25T09:02:57.000Z
2016-04-25T13:55:13.000Z
mayatools/geocache/exporter.py
westernx/mayatools
47c91050cb54167268d456e130ffce2d55373381
[ "BSD-3-Clause" ]
12
2015-07-13T12:32:35.000Z
2020-04-29T02:58:49.000Z
from __future__ import absolute_import import os import re import traceback from maya import cmds, mel from mayatools.playblast import screenshot from sgfs import SGFS from sgfs.commands.utils import parse_spec import metatools.deprecate import qbfutures.maya import sgpublish.commands.utils as publish_cli_utils impo...
33.870056
145
0.641868
e84345f014083de835a70bba7fc77662a2f0bb46
13,960
py
Python
extractors/i3d/i3d.py
KTaskn/MILForVideos
cf8921b3a9b133224bcefe3bc11e6b7f1c61fa82
[ "Apache-2.0" ]
null
null
null
extractors/i3d/i3d.py
KTaskn/MILForVideos
cf8921b3a9b133224bcefe3bc11e6b7f1c61fa82
[ "Apache-2.0" ]
null
null
null
extractors/i3d/i3d.py
KTaskn/MILForVideos
cf8921b3a9b133224bcefe3bc11e6b7f1c61fa82
[ "Apache-2.0" ]
null
null
null
#I3D code adapted from https://github.com/piergiaj/pytorch-i3d import torch import torch.nn as nn import torch.nn.functional as F import numpy as np class MaxPool3dSamePadding(nn.MaxPool3d): def compute_pad(self, dim, s): if s % self.stride[dim] == 0: return max(self.kernel_size[dim] - self....
42.048193
134
0.569914
8dd18ba55baad86b49dfa87f477fe4fbc4dd5190
7,621
py
Python
files/intraday_cron_lambda/index.py
dwp/dataworks-aws-ingest-replica
ed5fb0ebd57334be24244c711ed72b6f9ea2b734
[ "0BSD" ]
null
null
null
files/intraday_cron_lambda/index.py
dwp/dataworks-aws-ingest-replica
ed5fb0ebd57334be24244c711ed72b6f9ea2b734
[ "0BSD" ]
95
2021-03-29T15:02:03.000Z
2022-03-28T12:20:11.000Z
files/intraday_cron_lambda/index.py
dwp/dataworks-aws-ingest-replica
ed5fb0ebd57334be24244c711ed72b6f9ea2b734
[ "0BSD" ]
1
2021-04-10T22:12:58.000Z
2021-04-10T22:12:58.000Z
import json import logging import os import time from uuid import uuid4 import base64 import ast import boto3 from boto3.dynamodb.conditions import Attr _logger = logging.getLogger() _logger.setLevel(logging.INFO) # Lambda environment vars JOB_STATUS_TABLE = os.environ["job_status_table_name"] SLACK_ALERT_ARN = os.en...
34.022321
98
0.638368
5789c4592b7d9e925061612cb4b2ca07d7266e12
759
py
Python
Python files/dijkstra test.py
mattl1598/testing
cd8124773b83a07301c507ffbb9ccaafbfe7a274
[ "Unlicense" ]
null
null
null
Python files/dijkstra test.py
mattl1598/testing
cd8124773b83a07301c507ffbb9ccaafbfe7a274
[ "Unlicense" ]
1
2018-04-15T22:59:15.000Z
2018-04-15T22:59:15.000Z
Python files/dijkstra test.py
mattl1598/Project-Mochachino
cd8124773b83a07301c507ffbb9ccaafbfe7a274
[ "Unlicense" ]
null
null
null
#------------------------------------------------------------------------------- # Name: module1 # Purpose: # # Author: matthewl9 # # Created: 06/03/2018 # Copyright: (c) matthewl9 2018 # Licence: <your licence> #------------------------------------------------------------------------------- impor...
25.3
80
0.523057
76781f193212a3f2577c47e98416a4675e87446a
20,137
py
Python
openprocurement/auctions/lease/tests/base.py
antonkorobko/openprocurement.auctions.lease
56e04f2a6f3593bf2b1dd867fad7d7deec1f425a
[ "Apache-2.0" ]
null
null
null
openprocurement/auctions/lease/tests/base.py
antonkorobko/openprocurement.auctions.lease
56e04f2a6f3593bf2b1dd867fad7d7deec1f425a
[ "Apache-2.0" ]
23
2018-05-18T13:55:58.000Z
2020-01-06T18:52:48.000Z
openprocurement/auctions/lease/tests/base.py
antonkorobko/openprocurement.auctions.lease
56e04f2a6f3593bf2b1dd867fad7d7deec1f425a
[ "Apache-2.0" ]
9
2018-05-15T09:32:12.000Z
2019-04-30T09:54:47.000Z
# -*- coding: utf-8 -*- import os from base64 import b64encode from copy import deepcopy from datetime import datetime, timedelta from urllib import urlencode from uuid import uuid4 from openprocurement.auctions.core.tests.base import ( BaseWebTest as CoreBaseWebTest, BaseAuctionWebTest as CoreBaseAuctionWebTe...
35.390158
146
0.498734
1badc4a5e7f0f5b1236d514d0d9e94d563194731
397
py
Python
djangocrud/djangocrud/asgi.py
roygoswamisuvankar/Djang-Crud
83b488971b1f6e437a3c3e3b8b53c65a5e4e9db8
[ "MIT" ]
2
2021-09-24T05:38:42.000Z
2021-09-24T09:45:32.000Z
djangocrud/asgi.py
a-m4hdi/djangocrud
dce70c3e2a4bcfb5b67c9331628d3fda0fe51687
[ "MIT" ]
null
null
null
djangocrud/asgi.py
a-m4hdi/djangocrud
dce70c3e2a4bcfb5b67c9331628d3fda0fe51687
[ "MIT" ]
null
null
null
""" ASGI config for djangocrud project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SE...
23.352941
78
0.788413
302a49b81f8a6d8ea143b5ea2fffdb21e6180ead
486
py
Python
profiles_api/migrations/0003_profilefeeditem_updated_on.py
prajilmv/profiles-rest-api
96c19ab62f59f8eeb2ca5917ac1f10133c634f7b
[ "MIT" ]
null
null
null
profiles_api/migrations/0003_profilefeeditem_updated_on.py
prajilmv/profiles-rest-api
96c19ab62f59f8eeb2ca5917ac1f10133c634f7b
[ "MIT" ]
6
2020-06-06T01:39:25.000Z
2022-02-10T14:23:41.000Z
profiles_api/migrations/0003_profilefeeditem_updated_on.py
prajilmv/profiles-rest-api
96c19ab62f59f8eeb2ca5917ac1f10133c634f7b
[ "MIT" ]
null
null
null
# Generated by Django 2.2 on 2020-04-26 12:29 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('profiles_api', '0002_profilefeeditem'), ] operations = [ migrations.AddField( model_name='profilefeed...
23.142857
74
0.63786
5605866908e5d7819e21f4724552b3692c098712
7,059
py
Python
homeassistant/components/saj/sensor.py
bluestripe/home-assistant
8791a48328076dd61c1f3e80c10dc54a7c8c9c18
[ "Apache-2.0" ]
2
2019-11-06T17:13:45.000Z
2019-11-06T17:13:51.000Z
homeassistant/components/saj/sensor.py
bluestripe/home-assistant
8791a48328076dd61c1f3e80c10dc54a7c8c9c18
[ "Apache-2.0" ]
2
2021-02-08T20:37:03.000Z
2021-09-08T01:23:59.000Z
homeassistant/components/saj/sensor.py
bluestripe/home-assistant
8791a48328076dd61c1f3e80c10dc54a7c8c9c18
[ "Apache-2.0" ]
null
null
null
"""SAJ solar inverter interface.""" import asyncio from datetime import date import logging import pysaj import voluptuous as vol from homeassistant.components.sensor import PLATFORM_SCHEMA from homeassistant.const import ( CONF_HOST, CONF_PASSWORD, CONF_TYPE, CONF_USERNAME, DEVICE_CLASS_POWER, ...
30.166667
88
0.647825
bcfe191ae4c6eb729a4ffc010b6e0bae62bb544d
330
py
Python
spine_json_lib/data/constants.py
ivan-ah/spine-json-lib
1ea8460127f005d57af56090d2a48e6039437306
[ "MIT" ]
6
2019-12-02T15:25:57.000Z
2021-11-02T04:14:19.000Z
spine_json_lib/data/constants.py
ivan-ah/spine-json-lib
1ea8460127f005d57af56090d2a48e6039437306
[ "MIT" ]
3
2020-03-20T11:09:22.000Z
2022-02-18T10:07:26.000Z
spine_json_lib/data/constants.py
ivan-ah/spine-json-lib
1ea8460127f005d57af56090d2a48e6039437306
[ "MIT" ]
2
2019-12-02T14:56:50.000Z
2020-02-24T07:53:20.000Z
from spine_json_lib.data.spine_version_type import SpineVersion SPINE_3_7_VERSION = SpineVersion("3.7") SPINE_3_8_VERSION = SpineVersion("3.8") SPINE_LATEST_3_7_VERSION = SpineVersion("3.7.93") JSON_SPINE_TEMPLATE = "export_json_config.json" SKEL_SPINE_TEMPLATE = "export_bin_config.json" UI_SPINE_TEMPLATE = "export_...
30
63
0.824242
925a183eb7dd4504a7fc1b83aefede15fbee1b41
1,672
py
Python
slam/remeshing.py
aymanesouani/slam
85ecfa392e60babf87e5a34ef66d439ba62ae243
[ "MIT" ]
6
2019-06-07T16:01:06.000Z
2020-12-04T12:43:54.000Z
slam/remeshing.py
aymanesouani/slam
85ecfa392e60babf87e5a34ef66d439ba62ae243
[ "MIT" ]
25
2020-06-22T20:42:06.000Z
2021-01-01T09:52:22.000Z
slam/remeshing.py
aymanesouani/slam
85ecfa392e60babf87e5a34ef66d439ba62ae243
[ "MIT" ]
17
2019-09-10T13:19:03.000Z
2021-12-14T15:53:49.000Z
def spherical_interpolation_nearest_neigbhor(source_spherical_mesh, target_spherical_mesh, info_to_interpolate): """ nearest neighbor interpolation between two spheres For each vertex of target_spherical_mesh, find t...
39.809524
76
0.687201
bb4a3b93e30e0b72719ed6c6d02436b309b40564
52,531
py
Python
python/ccxt/async_support/kraken.py
xeddmc/ccxt
9ddd88e6bbc4b2162cf45d331995bb86235d2a59
[ "MIT" ]
1
2021-07-07T10:47:28.000Z
2021-07-07T10:47:28.000Z
python/ccxt/async_support/kraken.py
xeddmc/ccxt
9ddd88e6bbc4b2162cf45d331995bb86235d2a59
[ "MIT" ]
1
2020-12-13T04:57:39.000Z
2020-12-13T04:57:39.000Z
python/ccxt/async_support/kraken.py
xeddmc/ccxt
9ddd88e6bbc4b2162cf45d331995bb86235d2a59
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.async_support.base.exchange import Exchange # ----------------------------------------------------------------------------- try...
40.315426
284
0.48282
36a1ffbe9d3dab8e4e9e4dcb2377274907374ceb
1,667
py
Python
ooobuild/lo/logging/logger_pool.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/logging/logger_pool.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/logging/logger_pool.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # Licensed under the Apache License, Version 2.0 (the "License") # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http: // www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
30.87037
143
0.715057
e3e4a992d99a2b83c9725db27066929a025cf7fd
1,071
py
Python
data/make_traindata.py
existentmember7/cycle_gan
bab3b9d4f1e9faf7eaeb05002a1178dc1d8ccd4e
[ "MIT" ]
null
null
null
data/make_traindata.py
existentmember7/cycle_gan
bab3b9d4f1e9faf7eaeb05002a1178dc1d8ccd4e
[ "MIT" ]
null
null
null
data/make_traindata.py
existentmember7/cycle_gan
bab3b9d4f1e9faf7eaeb05002a1178dc1d8ccd4e
[ "MIT" ]
null
null
null
import glob import os import argparse parser = argparse.ArgumentParser(description='Process some parameters.') parser.add_argument('--root', type=str, default='/media/han/新增磁碟區/cy/dataset/',help='root path') args = parser.parse_args() root_dir = args.root # /media/han/新增磁碟區/cy/dataset/ _is = [1,2,3,10,12,13,22,23] _...
32.454545
102
0.647993
6d2e7fb93d1faccbcbf3d3bfe44be73a64048cd6
1,396
py
Python
data_registry/migrations/0007_auto_20210504_0825.py
open-contracting/data-registry
5a73e7f2334c6af5be23070493842b494b3e5357
[ "BSD-3-Clause" ]
null
null
null
data_registry/migrations/0007_auto_20210504_0825.py
open-contracting/data-registry
5a73e7f2334c6af5be23070493842b494b3e5357
[ "BSD-3-Clause" ]
170
2021-02-12T12:52:37.000Z
2022-03-28T14:37:05.000Z
data_registry/migrations/0007_auto_20210504_0825.py
open-contracting/data-registry
5a73e7f2334c6af5be23070493842b494b3e5357
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 3.1.6 on 2021-05-04 08:25 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('data_registry', '0006_auto_20210430_1310'), ] operations = [ migrations.AddField( model_name='task', name='order', ...
31.727273
108
0.582378
002906209afc39943c982cf7af0d27b45fa12efe
269
py
Python
main.py
kuroneko1996/cyberlab
36e72b13efbe891c295143a89514296a3480bfea
[ "MIT" ]
4
2017-08-14T04:23:25.000Z
2019-09-12T06:12:37.000Z
main.py
kuroneko1996/cyberlab
36e72b13efbe891c295143a89514296a3480bfea
[ "MIT" ]
40
2017-08-14T07:23:56.000Z
2019-09-10T03:27:46.000Z
main.py
kuroneko1996/cyberlab
36e72b13efbe891c295143a89514296a3480bfea
[ "MIT" ]
3
2017-08-14T04:51:54.000Z
2022-02-13T08:48:23.000Z
import pygame from settings import * from screens.menu import main_menu def main(): pygame.init() pygame.joystick.init() display = pygame.display.set_mode((SCREEN_WIDTH, SCREEN_HEIGHT)) main_menu(display).run() if __name__ == '__main__': main()
17.933333
68
0.702602
b77d365f83da5123b469d24aaceed6f0e80297c8
2,998
py
Python
game/data/scripts/quests/510_AClansReputation/__init__.py
TheDemonLife/Lineage2Server-Interlude
d23d145db533fd899d4064026e4bc7ee45c6624a
[ "Apache-2.0" ]
10
2019-07-27T13:12:11.000Z
2022-01-15T19:13:26.000Z
game/data/scripts/quests/510_AClansReputation/__init__.py
TheDemonLife/Lineage2Server-Interlude
d23d145db533fd899d4064026e4bc7ee45c6624a
[ "Apache-2.0" ]
1
2021-08-06T12:15:01.000Z
2021-08-09T10:18:47.000Z
game/data/scripts/quests/510_AClansReputation/__init__.py
TheDemonLife/Lineage2Server-Interlude
d23d145db533fd899d4064026e4bc7ee45c6624a
[ "Apache-2.0" ]
2
2020-02-20T23:02:26.000Z
2020-11-22T09:27:51.000Z
import sys from ru.catssoftware.gameserver.model.quest import State from ru.catssoftware.gameserver.model.quest import QuestState from ru.catssoftware.gameserver.model.quest.jython import QuestJython as JQuest from ru.catssoftware.gameserver.network.serverpackets import PledgeShowInfoUpdate from ...
30.591837
151
0.672115
5d99773f934df36538b3a45b73e8f3f27a4e212b
9,172
py
Python
docs/conf.py
abravalheri/pyscaffoldext-pyproject
13cd647de47b90b67b37d8b9269a706fd1664ddb
[ "MIT" ]
null
null
null
docs/conf.py
abravalheri/pyscaffoldext-pyproject
13cd647de47b90b67b37d8b9269a706fd1664ddb
[ "MIT" ]
null
null
null
docs/conf.py
abravalheri/pyscaffoldext-pyproject
13cd647de47b90b67b37d8b9269a706fd1664ddb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # 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 commented out # serve to show the default. import os impo...
33.97037
85
0.705408
5a91dc202b05ee63b6769b0bbeb2d6552c010c5e
1,030
py
Python
gwinc/ifo/CE1/__init__.py
ark0015/pygwinc_clone
65396ee42e851ab7189618cabe1c12081b5d982e
[ "Unlicense" ]
null
null
null
gwinc/ifo/CE1/__init__.py
ark0015/pygwinc_clone
65396ee42e851ab7189618cabe1c12081b5d982e
[ "Unlicense" ]
null
null
null
gwinc/ifo/CE1/__init__.py
ark0015/pygwinc_clone
65396ee42e851ab7189618cabe1c12081b5d982e
[ "Unlicense" ]
1
2021-06-23T04:51:20.000Z
2021-06-23T04:51:20.000Z
from gwinc.ifo.noises import * class Newtonian(nb.Budget): """Newtonian Gravity """ name = 'Newtonian' style = dict( label='Newtonian', color='#15b01a', ) noises = [ NewtonianRayleigh, NewtonianBody, NewtonianInfrasound, ] class Coating(nb.Budget...
14.927536
34
0.529126
af111874f4b207262d1415e4d3f908af74bbcbc4
14,810
py
Python
venv/Lib/site-packages/statsmodels/sandbox/tsa/movstat.py
EkremBayar/bayar
aad1a32044da671d0b4f11908416044753360b39
[ "MIT" ]
6,931
2015-01-01T11:41:55.000Z
2022-03-31T17:03:24.000Z
venv/Lib/site-packages/statsmodels/sandbox/tsa/movstat.py
EkremBayar/bayar
aad1a32044da671d0b4f11908416044753360b39
[ "MIT" ]
6,137
2015-01-01T00:33:45.000Z
2022-03-31T22:53:17.000Z
venv/Lib/site-packages/statsmodels/sandbox/tsa/movstat.py
EkremBayar/bayar
aad1a32044da671d0b4f11908416044753360b39
[ "MIT" ]
2,608
2015-01-02T21:32:31.000Z
2022-03-31T07:38:30.000Z
'''using scipy signal and numpy correlate to calculate some time series statistics original developer notes see also scikits.timeseries (movstat is partially inspired by it) added 2009-08-29 timeseries moving stats are in c, autocorrelation similar to here I thought I saw moving stats somewhere in python, maybe not)...
35.859564
109
0.505874
4ee0c581b41ce500b886866ec490ed4bcd5c623f
844
py
Python
train.py
thomasbrockmeier-ams/Open3D-ML
1e362bbf133537668923905a12a15c540d9b689d
[ "MIT" ]
null
null
null
train.py
thomasbrockmeier-ams/Open3D-ML
1e362bbf133537668923905a12a15c540d9b689d
[ "MIT" ]
null
null
null
train.py
thomasbrockmeier-ams/Open3D-ML
1e362bbf133537668923905a12a15c540d9b689d
[ "MIT" ]
null
null
null
import os import ml3d as _ml3d import ml3d.tf as ml3d def main(): cfg_file = "ml3d/configs/randlanet_amsterdam3d.yml" cfg = _ml3d.utils.Config.load_from_file(cfg_file) model = ml3d.models.RandLANet(**cfg.model) cfg.dataset['dataset_path'] = "datasets/Cyclomedia_pc_verified" dataset = _ml3d.dataset...
30.142857
123
0.674171
6f3d080093e541f5b2154906bbbcc9c352512046
642
py
Python
imdiff/analysis.py
jakubczaplicki/projecteuler
ab58762a65cb303f3e19cc8fc8c3d45831713719
[ "MIT" ]
null
null
null
imdiff/analysis.py
jakubczaplicki/projecteuler
ab58762a65cb303f3e19cc8fc8c3d45831713719
[ "MIT" ]
null
null
null
imdiff/analysis.py
jakubczaplicki/projecteuler
ab58762a65cb303f3e19cc8fc8c3d45831713719
[ "MIT" ]
null
null
null
# # Try to tell the difference between the images # import sys, os import cv2 import numpy def analyse(): inimg = cv2.imread('Lenna.png') outimg = cv2.imread('LennaR.png') bi, gi, ri = cv2.split(inimg) bo, go, ro = cv2.split(outimg) bi = numpy.asarray(bi) bo = numpy.asarray(bo) print bo errR = (ro ...
18.882353
74
0.607477