hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
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
251
max_issues_repo_name
stringlengths
4
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
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
21a81c32453ea2e8cd44b51c042ee837402f31c0
11,290
py
Python
build/lib/sshColab/code.py
libinruan/ssh_Colab
3b014c76404137567ada4a67582ff8600e61e7b0
[ "MIT" ]
1
2021-03-21T16:28:16.000Z
2021-03-21T16:28:16.000Z
sshColab/code.py
libinruan/ssh_Colab
3b014c76404137567ada4a67582ff8600e61e7b0
[ "MIT" ]
null
null
null
sshColab/code.py
libinruan/ssh_Colab
3b014c76404137567ada4a67582ff8600e61e7b0
[ "MIT" ]
2
2021-07-08T07:26:52.000Z
2021-10-05T10:23:47.000Z
import subprocess import secrets import getpass import os import requests import urllib.parse import time from google.colab import files, drive, auth from google.cloud import storage import glob
43.590734
279
0.651993
21ab9ff1c815e6c21057d32a64d3dded51ce4eb3
763
py
Python
static/py/discussionNum.py
m1-llie/SCU_hotFollowing
8cc29aadc7ac2e7b9e8a9502ea13971b8cd93abb
[ "BSD-3-Clause" ]
1
2020-12-15T13:06:31.000Z
2020-12-15T13:06:31.000Z
static/py/discussionNum.py
m1-llie/SCU_hotFollowing
8cc29aadc7ac2e7b9e8a9502ea13971b8cd93abb
[ "BSD-3-Clause" ]
null
null
null
static/py/discussionNum.py
m1-llie/SCU_hotFollowing
8cc29aadc7ac2e7b9e8a9502ea13971b8cd93abb
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import pymysql import json if __name__ == "__main__": numList = [] # jsonecharts for day in ["date20200606","date20200607","date20200608","date20200609","date20200610","date20200611","date20200612"]: numList.append(countNum(day)) print(numList) # json.dumps(num...
26.310345
122
0.663172
21abd949743f6366711da7e003fd265439edaff6
1,683
py
Python
python/ray/tests/test_list_actors.py
jianoaix/ray
1701b923bc83905f8961c06a6a173e3eba46a936
[ "Apache-2.0" ]
null
null
null
python/ray/tests/test_list_actors.py
jianoaix/ray
1701b923bc83905f8961c06a6a173e3eba46a936
[ "Apache-2.0" ]
null
null
null
python/ray/tests/test_list_actors.py
jianoaix/ray
1701b923bc83905f8961c06a6a173e3eba46a936
[ "Apache-2.0" ]
null
null
null
import pytest import sys import ray from ray._private.test_utils import wait_for_condition if __name__ == "__main__": import os # Test suite is timing out. Disable on windows for now. if os.environ.get("PARALLEL_CI"): sys.exit(pytest.main(["-n", "auto", "--boxed", "-vs", __file__])) else: ...
26.714286
84
0.66429
21ac52aabd54ed388edac1605b21259e6ba60313
2,620
py
Python
pyjobserver/__main__.py
athewsey/pyjobserver
1251a0f22182c8bc8b55a85ef45adc7c1e2b982e
[ "Apache-2.0" ]
null
null
null
pyjobserver/__main__.py
athewsey/pyjobserver
1251a0f22182c8bc8b55a85ef45adc7c1e2b982e
[ "Apache-2.0" ]
null
null
null
pyjobserver/__main__.py
athewsey/pyjobserver
1251a0f22182c8bc8b55a85ef45adc7c1e2b982e
[ "Apache-2.0" ]
null
null
null
"""Main/example start-up script for the pyjobserver Use this as a guide if importing pyjobserver into another app instead """ # Built-Ins: import asyncio from logging import getLogger, Logger import os from pathlib import Path # External Dependencies: from aiohttp import web import click from dotenv import load_dote...
32.75
119
0.743511
21acbe7b1a842e9cd72e943d539706693b47c59c
16,227
py
Python
ppci/wasm/_instantiate.py
jsdelivrbot/ppci-mirror
67195d628275e2332ceaf44c9e13fc58d0877157
[ "BSD-2-Clause" ]
null
null
null
ppci/wasm/_instantiate.py
jsdelivrbot/ppci-mirror
67195d628275e2332ceaf44c9e13fc58d0877157
[ "BSD-2-Clause" ]
null
null
null
ppci/wasm/_instantiate.py
jsdelivrbot/ppci-mirror
67195d628275e2332ceaf44c9e13fc58d0877157
[ "BSD-2-Clause" ]
null
null
null
""" Provide function to load a wasm module into the current process. Note that for this to work, we require compiled wasm code and a runtime. The wasm runtime contains the following: - Implement function like sqrt, floor, bit rotations etc.. """ import os import abc import shelve import io import struct import logg...
33.596273
86
0.628397
21acea2332e84f0ed16b289cb54ead0afbf1565f
2,823
py
Python
easytrader/utils/stock.py
chforest/easytrader
7825efa90aa6af6a5f181a0736dc8c3e8ed852e5
[ "MIT" ]
6,829
2015-12-07T16:40:17.000Z
2022-03-31T15:27:03.000Z
easytrader/utils/stock.py
chforest/easytrader
7825efa90aa6af6a5f181a0736dc8c3e8ed852e5
[ "MIT" ]
350
2016-01-18T09:13:27.000Z
2022-03-21T06:56:57.000Z
easytrader/utils/stock.py
chforest/easytrader
7825efa90aa6af6a5f181a0736dc8c3e8ed852e5
[ "MIT" ]
2,599
2015-12-08T02:09:04.000Z
2022-03-30T13:33:50.000Z
# coding:utf-8 import datetime import json import random import requests def get_stock_type(stock_code): """ID ['50', '51', '60', '90', '110'] sh ['00', '13', '18', '15', '16', '18', '20', '30', '39', '115'] sz ['5', '6', '9'] sh sz :param stock_code:ID, 'sz', 'sh' :return 'sh' or ...
30.684783
106
0.575275
21ad39e08cd9eb28d218baa876962eb7e1bf5352
13,370
py
Python
IR analysis.py
jankulik/Transition-Line-Detection
26775b7a3b6ab4f7a487c488cc1e97708277a18e
[ "MIT" ]
null
null
null
IR analysis.py
jankulik/Transition-Line-Detection
26775b7a3b6ab4f7a487c488cc1e97708277a18e
[ "MIT" ]
null
null
null
IR analysis.py
jankulik/Transition-Line-Detection
26775b7a3b6ab4f7a487c488cc1e97708277a18e
[ "MIT" ]
null
null
null
import numpy as np import cv2 import os from matplotlib import pyplot as plt #### INPUT #### # folder that contains datapoints folderName = '2dIR' #### SETTINGS #### # settings listed below are suitable for 2D data # intensity of noise filtering; higher values mean more blurring medianKernel = 5 # bl...
43.550489
190
0.659013
21ae2a24ae236e3d5b5a92a327d356b5c7ba6074
90
py
Python
aiida_crystal_dft/__init__.py
tilde-lab/aiida-crystal-dft
971fd13a3f414d6e80cc654dc92a8758f6e0365c
[ "MIT" ]
2
2019-02-05T16:49:08.000Z
2020-01-29T12:27:14.000Z
aiida_crystal_dft/__init__.py
tilde-lab/aiida-crystal-dft
971fd13a3f414d6e80cc654dc92a8758f6e0365c
[ "MIT" ]
36
2020-03-09T19:35:10.000Z
2021-12-07T22:13:31.000Z
aiida_crystal_dft/__init__.py
tilde-lab/aiida-crystal-dft
971fd13a3f414d6e80cc654dc92a8758f6e0365c
[ "MIT" ]
1
2019-11-13T23:12:10.000Z
2019-11-13T23:12:10.000Z
""" aiida_crystal_dft AiiDA plugin for running the CRYSTAL code """ __version__ = "0.8"
11.25
41
0.722222
21af95c3e6f5614235525e918b9f73b1e391d922
42
py
Python
fzzzMaskBackend/users/serializers.py
FZZZMask/backend
4f987e96a5ff42d89cf536c099b944f5f7254764
[ "BSD-3-Clause" ]
null
null
null
fzzzMaskBackend/users/serializers.py
FZZZMask/backend
4f987e96a5ff42d89cf536c099b944f5f7254764
[ "BSD-3-Clause" ]
3
2020-02-11T23:24:39.000Z
2021-06-04T21:45:25.000Z
fzzzMaskBackend/users/serializers.py
FZZZMask/backend
4f987e96a5ff42d89cf536c099b944f5f7254764
[ "BSD-3-Clause" ]
null
null
null
from rest_framework import serializers
8.4
38
0.833333
21b0edc91f5567ee1123bcbb0bfd919c0b28c903
2,938
py
Python
src/python/pants/backend/terraform/target_gen_test.py
bastianwegge/pants
43f0b90d41622bee0ed22249dbaffb3ff4ad2eb2
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/terraform/target_gen_test.py
bastianwegge/pants
43f0b90d41622bee0ed22249dbaffb3ff4ad2eb2
[ "Apache-2.0" ]
14
2020-09-26T02:01:56.000Z
2022-03-30T10:19:28.000Z
src/python/pants/backend/terraform/target_gen_test.py
ryanking/pants
e45b00d2eb467b599966bca262405a5d74d27bdd
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import annotations import pytest from pants.backend.terraform import target_gen from pants.backend.terraform.target_types import ( TerraformModulesGeneratorTarget, ...
34.564706
93
0.660994
21b1eb4686bf40669ec47b042269eff5341c4c0e
377
py
Python
tkinterLearning/graphinKivyExample.py
MertEfeSevim/ECar-ABUTeam
4a37cbddff1609a1e1e8bd55fe6077b384471024
[ "Apache-2.0" ]
null
null
null
tkinterLearning/graphinKivyExample.py
MertEfeSevim/ECar-ABUTeam
4a37cbddff1609a1e1e8bd55fe6077b384471024
[ "Apache-2.0" ]
null
null
null
tkinterLearning/graphinKivyExample.py
MertEfeSevim/ECar-ABUTeam
4a37cbddff1609a1e1e8bd55fe6077b384471024
[ "Apache-2.0" ]
null
null
null
from kivy.garden.matplotlib.backend_kivyagg import FigureCanvasKivyAgg from kivy.app import App from kivy.uix.boxlayout import BoxLayout import matplotlib.pyplot as plt plt.plot([1, 23, 2, 4]) plt.ylabel('some numbers') MyApp().run()
22.176471
70
0.71618
21b22ee8ebf7ebc9c5d48a409810e94e5629e56d
5,240
py
Python
data_genie/get_data.py
noveens/sampling_cf
e135819b1e7310ee58edbbd138f303e5240a2619
[ "MIT" ]
6
2022-01-14T13:38:03.000Z
2022-03-01T17:57:09.000Z
data_genie/get_data.py
noveens/sampling_cf
e135819b1e7310ee58edbbd138f303e5240a2619
[ "MIT" ]
null
null
null
data_genie/get_data.py
noveens/sampling_cf
e135819b1e7310ee58edbbd138f303e5240a2619
[ "MIT" ]
null
null
null
import os import random from tqdm import tqdm from collections import defaultdict from data_genie.data_genie_config import * from data_genie.data_genie_utils import TRAINING_DATA_PATH, CACHED_KENDALL_TAU_PATH, load_obj, save_obj from data_genie.data_genie_utils import count_performance_retained, get_best_results from...
33.589744
103
0.716412
21b3036dd9c7340de7952e841313f8a67214f250
3,934
py
Python
benchmark.py
cmpute/EECS558-Project
d964059901c62773b475c5d4b40f018ee28a0c73
[ "Unlicense" ]
null
null
null
benchmark.py
cmpute/EECS558-Project
d964059901c62773b475c5d4b40f018ee28a0c73
[ "Unlicense" ]
null
null
null
benchmark.py
cmpute/EECS558-Project
d964059901c62773b475c5d4b40f018ee28a0c73
[ "Unlicense" ]
null
null
null
import numpy as np from matplotlib import pyplot as plt from env import DrivingEnv from solvers import GridSolver, SampleGraphSolver graph_with_different_weight()
37.826923
155
0.649466
21b3aa32ee34e39e88f108b17ea530a57eb6e324
1,912
py
Python
pandas_market_calendars/exchange_calendars_mirror.py
matbox/pandas_market_calendars
942ad6de5f3e2700a4f8b2c2d44ccb65fa9fdab5
[ "MIT" ]
null
null
null
pandas_market_calendars/exchange_calendars_mirror.py
matbox/pandas_market_calendars
942ad6de5f3e2700a4f8b2c2d44ccb65fa9fdab5
[ "MIT" ]
null
null
null
pandas_market_calendars/exchange_calendars_mirror.py
matbox/pandas_market_calendars
942ad6de5f3e2700a4f8b2c2d44ccb65fa9fdab5
[ "MIT" ]
null
null
null
""" Imported calendars from the exchange_calendars project GitHub: https://github.com/gerrymanoim/exchange_calendars """ from datetime import time from .market_calendar import MarketCalendar import exchange_calendars calendars = exchange_calendars.calendar_utils._default_calendar_factories # noqa for exchange in...
26.191781
107
0.680962
21b4b857672198b3794c4cd67434ee8e238bf40c
164
py
Python
util/prelude.py
sinsay/ds_define
0ee89edfc3ad1ed37c5b88e13936229baf50a966
[ "Apache-2.0" ]
null
null
null
util/prelude.py
sinsay/ds_define
0ee89edfc3ad1ed37c5b88e13936229baf50a966
[ "Apache-2.0" ]
null
null
null
util/prelude.py
sinsay/ds_define
0ee89edfc3ad1ed37c5b88e13936229baf50a966
[ "Apache-2.0" ]
null
null
null
from .enum import EnumBase def is_builtin_type(obj) -> bool: """ obj """ return isinstance(obj, (int, str, float, bool)) or obj is None
18.222222
66
0.628049
21b5752cb9a0990564c49e3262c213225974ef34
1,647
py
Python
tca_ng/server.py
wichovw/tca-gt
ad862286f153e5cd83db8a44ff0bb6ae7c4925ce
[ "MIT" ]
1
2016-09-09T15:51:38.000Z
2016-09-09T15:51:38.000Z
tca_ng/server.py
wichovw/tca-gt
ad862286f153e5cd83db8a44ff0bb6ae7c4925ce
[ "MIT" ]
null
null
null
tca_ng/server.py
wichovw/tca-gt
ad862286f153e5cd83db8a44ff0bb6ae7c4925ce
[ "MIT" ]
null
null
null
import cherrypy, cherrypy_cors, os import tca_ng.example_maps import tca_ng.models import random PATH = os.path.abspath(os.path.dirname(__file__)) if __name__ == '__main__': serve('localhost', 5555)
27
68
0.56527
21b63b9f54674792f408a6f07e0262da28ca36a1
553
py
Python
todo/api/views.py
devord/todo
312c313589cec179d69bf64ca3e06382dc2df728
[ "MIT" ]
null
null
null
todo/api/views.py
devord/todo
312c313589cec179d69bf64ca3e06382dc2df728
[ "MIT" ]
36
2019-03-22T01:50:24.000Z
2022-02-26T10:28:41.000Z
todo/api/views.py
devord/todo
312c313589cec179d69bf64ca3e06382dc2df728
[ "MIT" ]
null
null
null
from rest_framework import viewsets from api.serializers import LabelSerializer, ItemSerializer from api.models import Label, Item
26.333333
59
0.734177
21b6bc874be363315a5d7728d2f9c90f4bee8e37
802
py
Python
user.py
sylvestus/passwordLocker
2dc949996c60eb02d55ac6d7426e2eb9f0cb9375
[ "Unlicense" ]
null
null
null
user.py
sylvestus/passwordLocker
2dc949996c60eb02d55ac6d7426e2eb9f0cb9375
[ "Unlicense" ]
null
null
null
user.py
sylvestus/passwordLocker
2dc949996c60eb02d55ac6d7426e2eb9f0cb9375
[ "Unlicense" ]
null
null
null
import string import random
19.560976
67
0.583541
21b737190d56432c7d4ca921f5d6f60d7150164a
289
py
Python
batch/batch/public_gcr_images.py
MariusDanner/hail
5ca0305f8243b5888931b1afaa1fbfb617dee097
[ "MIT" ]
null
null
null
batch/batch/public_gcr_images.py
MariusDanner/hail
5ca0305f8243b5888931b1afaa1fbfb617dee097
[ "MIT" ]
null
null
null
batch/batch/public_gcr_images.py
MariusDanner/hail
5ca0305f8243b5888931b1afaa1fbfb617dee097
[ "MIT" ]
null
null
null
from typing import List
36.125
100
0.709343
21ba9fc19364859893264a2f210099d5d934cfe1
24,972
py
Python
django_cradmin/uicontainer/container.py
appressoas/django_cradmin
0f8715afdfe1ad32e46033f442e622aecf6a4dec
[ "BSD-3-Clause" ]
11
2015-07-05T16:57:58.000Z
2020-11-24T16:58:19.000Z
django_cradmin/uicontainer/container.py
appressoas/django_cradmin
0f8715afdfe1ad32e46033f442e622aecf6a4dec
[ "BSD-3-Clause" ]
91
2015-01-08T22:38:13.000Z
2022-02-10T10:25:27.000Z
django_cradmin/uicontainer/container.py
appressoas/django_cradmin
0f8715afdfe1ad32e46033f442e622aecf6a4dec
[ "BSD-3-Clause" ]
3
2016-12-07T12:19:24.000Z
2018-10-03T14:04:18.000Z
from django.conf import settings from django.forms.utils import flatatt from django_cradmin import renderable def get_default_dom_id(self): """ Get the default value for the id attribute of the html element. Defaults to ``False``. """ return False def get_html_e...
37.160714
109
0.639797
21baa6263f7bce8a697dc4c1214c2f9cbd322393
5,982
py
Python
country_settings.py
region-spotteR/conora_chronologies
0ee6cadb61921f95f738425ef99a13ae07f262a7
[ "CC0-1.0" ]
null
null
null
country_settings.py
region-spotteR/conora_chronologies
0ee6cadb61921f95f738425ef99a13ae07f262a7
[ "CC0-1.0" ]
null
null
null
country_settings.py
region-spotteR/conora_chronologies
0ee6cadb61921f95f738425ef99a13ae07f262a7
[ "CC0-1.0" ]
null
null
null
# https://www.data.gouv.fr/fr/datasets/synthese-des-indicateurs-de-suivi-de-lepidemie-covid-19/ # Austria: What the fuck?! The way data is published I would guess this country is a banana republic def get_attributes(country,threshold_list=[10,20,50,100,200,400,600,800,1000],range_for_r=[0.8,0.85,0.9,0.95,1.05,1.1,1.1...
37.860759
150
0.612671
21bc3e83174440b0d25cd071871ba1fe4765dc1b
408
py
Python
src/accounts/migrations/0009_alter_protection_description.py
NikolayTls/CarRental-Fullstack
e535976c25dd77896a355a2d30b5348be90ac040
[ "MIT" ]
null
null
null
src/accounts/migrations/0009_alter_protection_description.py
NikolayTls/CarRental-Fullstack
e535976c25dd77896a355a2d30b5348be90ac040
[ "MIT" ]
null
null
null
src/accounts/migrations/0009_alter_protection_description.py
NikolayTls/CarRental-Fullstack
e535976c25dd77896a355a2d30b5348be90ac040
[ "MIT" ]
null
null
null
# Generated by Django 3.2.5 on 2021-11-09 18:57 from django.db import migrations, models
21.473684
62
0.612745
21bc625c93948c267439f48c065862fcfaf59846
899
py
Python
builder.py
Delivery-Klad/chat_desktop
1702996255d6fa5dbd6c5b480f2a3f4f19cbfdc6
[ "Apache-2.0" ]
null
null
null
builder.py
Delivery-Klad/chat_desktop
1702996255d6fa5dbd6c5b480f2a3f4f19cbfdc6
[ "Apache-2.0" ]
1
2021-12-28T01:51:37.000Z
2021-12-28T01:51:37.000Z
builder.py
Delivery-Klad/chat_desktop
1702996255d6fa5dbd6c5b480f2a3f4f19cbfdc6
[ "Apache-2.0" ]
null
null
null
import sys from cx_Freeze import setup, Executable base = None if sys.platform == "win32": base = "Win32GUI" elif sys.platform == "win64": base = "Win64GUI" excludes = ['PyQt5', 'colorama', 'pandas', 'sqlalchemy', 'numpy', 'notebook', 'Django', 'schedule'] packages = ["idna", "_cffi_backend", "bcrypt", "rsa"...
29
99
0.630701
21bc9eb14d61179cb27becc3805a37469b02b334
2,200
py
Python
flaviabernardes/flaviabernardes/cms/migrations/0014_auto_20160717_1414.py
rogerhil/flaviabernardes
30676c7e4b460f11ef9f09a33936ee3820b129da
[ "Apache-2.0" ]
null
null
null
flaviabernardes/flaviabernardes/cms/migrations/0014_auto_20160717_1414.py
rogerhil/flaviabernardes
30676c7e4b460f11ef9f09a33936ee3820b129da
[ "Apache-2.0" ]
null
null
null
flaviabernardes/flaviabernardes/cms/migrations/0014_auto_20160717_1414.py
rogerhil/flaviabernardes
30676c7e4b460f11ef9f09a33936ee3820b129da
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import image_cropping.fields
36.065574
248
0.616818
21bd217d40255d109408b19a7614470a41a98d8d
5,674
py
Python
backend/inst-selec/tree-match-burs-table/app/match_naive.py
obs145628/cle
4a4a18b2ab5a6fbf26629f6845147541edabd7c9
[ "MIT" ]
null
null
null
backend/inst-selec/tree-match-burs-table/app/match_naive.py
obs145628/cle
4a4a18b2ab5a6fbf26629f6845147541edabd7c9
[ "MIT" ]
null
null
null
backend/inst-selec/tree-match-burs-table/app/match_naive.py
obs145628/cle
4a4a18b2ab5a6fbf26629f6845147541edabd7c9
[ "MIT" ]
null
null
null
''' Tree-Matching implementation Based on BURS (Bottom-Up Rewrite System) Similar to tree-match-burs1 project Inspired from: - Instruction Selection via Tree-Pattern Matching - Enginner a Compiler p610 - An Improvement to Bottom-up Tree Pattern Matching - David R. Chase - Simple and Efficient BURS Table Generation - T...
27.278846
89
0.519739
21bdc2ccc7ab9e40f05cc42e706cde91619db6a2
95,650
py
Python
gym_electric_motor/physical_systems/electric_motors.py
54hanxiucao/gym-electric-motor
911432388b00675e8a93f4a7937fdc575f106f22
[ "MIT" ]
1
2021-03-29T07:47:32.000Z
2021-03-29T07:47:32.000Z
gym_electric_motor/physical_systems/electric_motors.py
54hanxiucao/gym-electric-motor
911432388b00675e8a93f4a7937fdc575f106f22
[ "MIT" ]
null
null
null
gym_electric_motor/physical_systems/electric_motors.py
54hanxiucao/gym-electric-motor
911432388b00675e8a93f4a7937fdc575f106f22
[ "MIT" ]
null
null
null
import numpy as np import math from scipy.stats import truncnorm def electrical_ode(self, state, u_in, omega, *_): """ Calculation of the derivatives of each motor state variable for the given inputs / The motors ODE-System. Args: state(ndarray(float)): The motors st...
45.809387
285
0.464098
21bdf99390c3df665d25199aea9fff225ef4b831
1,004
py
Python
tests/pyrem_tests.py
sgdxbc/PyREM
e162efd5f95d1d335fb96d77cbe047def02c340e
[ "MIT" ]
5
2016-01-20T22:34:41.000Z
2020-12-19T15:24:33.000Z
tests/pyrem_tests.py
sgdxbc/PyREM
e162efd5f95d1d335fb96d77cbe047def02c340e
[ "MIT" ]
12
2015-11-11T23:03:03.000Z
2021-09-28T17:09:53.000Z
tests/pyrem_tests.py
sgdxbc/PyREM
e162efd5f95d1d335fb96d77cbe047def02c340e
[ "MIT" ]
4
2015-12-10T05:14:30.000Z
2021-08-14T02:48:05.000Z
from pyrem.task import Task, TaskStatus def teardown(self): """This method is run once after _each_ test method is executed""" pass def test_status(self): assert self.task._status == TaskStatus.IDLE self.task.start() assert self.task._status == TaskStatus.STARTED ...
23.904762
78
0.625498
21bead059ee3f22ec22b2bb48bbf62356bb305bf
1,302
py
Python
invenio_app_ils/records/resolver/jsonresolver/document_keyword.py
lauren-d/invenio-app-ils
961e88ba144b1371b629dfbc0baaf388e46e667f
[ "MIT" ]
null
null
null
invenio_app_ils/records/resolver/jsonresolver/document_keyword.py
lauren-d/invenio-app-ils
961e88ba144b1371b629dfbc0baaf388e46e667f
[ "MIT" ]
null
null
null
invenio_app_ils/records/resolver/jsonresolver/document_keyword.py
lauren-d/invenio-app-ils
961e88ba144b1371b629dfbc0baaf388e46e667f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2019 CERN. # # invenio-app-ils is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Resolve the Keyword referenced in the Document.""" import jsonresolver from werkzeug.routing import Rule from...
28.933333
78
0.689708
21beae082b613ebc189de03f874795adfa3f6a13
68
py
Python
Other_AIMA_Scripts/planning.py
erensezener/aima-based-irl
fbbe28986cec0b5e58fef0f00338a180ed03759a
[ "MIT" ]
12
2015-06-17T05:15:40.000Z
2021-05-18T15:39:33.000Z
Other_AIMA_Scripts/planning.py
erensezener/aima-based-irl
fbbe28986cec0b5e58fef0f00338a180ed03759a
[ "MIT" ]
1
2020-03-14T08:45:49.000Z
2020-03-14T08:45:49.000Z
Other_AIMA_Scripts/planning.py
erensezener/aima-based-irl
fbbe28986cec0b5e58fef0f00338a180ed03759a
[ "MIT" ]
5
2016-09-10T19:16:56.000Z
2018-10-10T05:09:03.000Z
"""Planning (Chapters 11-12) """ from __future__ import generators
13.6
33
0.735294
21c005abab0af70acf7d0786eb0dee5f66346f8d
15,025
py
Python
Berkeley_pacman_project1/search.py
AndrewSpano/UC_Berkeley_AI_Projects
a695f7be1653e485fdb339f99e6a266a1b044ba4
[ "MIT" ]
1
2020-12-12T16:16:05.000Z
2020-12-12T16:16:05.000Z
Berkeley_pacman_project1/search.py
AndrewSpano/University_AI_Projects
a695f7be1653e485fdb339f99e6a266a1b044ba4
[ "MIT" ]
null
null
null
Berkeley_pacman_project1/search.py
AndrewSpano/University_AI_Projects
a695f7be1653e485fdb339f99e6a266a1b044ba4
[ "MIT" ]
1
2020-10-13T19:37:59.000Z
2020-10-13T19:37:59.000Z
# search.py # --------- # Licensing Information: You are free to use or extend these projects for # educational purposes provided that (1) you do not distribute or publish # solutions, (2) you retain this notice, and (3) you provide clear # attribution to UC Berkeley, including a link to http://ai.berkeley.edu. # # At...
40.066667
123
0.647388
21c10c49fed1208784b8ed8d90ec7a93c4893c97
270
py
Python
src/python/WMCore/WMBS/Oracle/Files/GetLocation.py
hufnagel/WMCore
b150cc725b68fc1cf8e6e0fa07c826226a4421fa
[ "Apache-2.0" ]
21
2015-11-19T16:18:45.000Z
2021-12-02T18:20:39.000Z
src/python/WMCore/WMBS/Oracle/Files/GetLocation.py
hufnagel/WMCore
b150cc725b68fc1cf8e6e0fa07c826226a4421fa
[ "Apache-2.0" ]
5,671
2015-01-06T14:38:52.000Z
2022-03-31T22:11:14.000Z
src/python/WMCore/WMBS/Oracle/Files/GetLocation.py
hufnagel/WMCore
b150cc725b68fc1cf8e6e0fa07c826226a4421fa
[ "Apache-2.0" ]
67
2015-01-21T15:55:38.000Z
2022-02-03T19:53:13.000Z
""" Oracle implementation of GetLocationFile """ from WMCore.WMBS.MySQL.Files.GetLocation import GetLocation \ as GetLocationFileMySQL
18
61
0.725926
21c279ad40c3cb9e53b7dcc853627dea0e3c47fa
5,471
py
Python
python/cohorte/vote/core.py
isandlaTech/cohorte-runtime
686556cdde20beba77ae202de9969be46feed5e2
[ "Apache-2.0" ]
6
2015-04-28T16:51:08.000Z
2017-07-12T11:29:00.000Z
python/cohorte/vote/core.py
isandlaTech/cohorte-runtime
686556cdde20beba77ae202de9969be46feed5e2
[ "Apache-2.0" ]
29
2015-02-24T11:11:26.000Z
2017-08-25T08:30:18.000Z
qualifier/deploy/cohorte-home/repo/cohorte/vote/core.py
isandlaTech/cohorte-devtools
9ba9021369188d2f0ad5c845ef242fd5a7097b57
[ "Apache-2.0" ]
1
2015-08-24T13:23:43.000Z
2015-08-24T13:23:43.000Z
#!/usr/bin/env python # -- Content-Encoding: UTF-8 -- """ Voting system core service :author: Thomas Calmant :license: Apache Software License 2.0 :version: 1.1.0 .. Copyright 2014 isandlaTech Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance ...
31.085227
80
0.549443
21c4e67bcec2a79afa2f1eebd700ab15449d0b2d
4,665
py
Python
aether-odk-module/aether/odk/api/serializers.py
lordmallam/aether
7ceb71d2ef8b09d704d94dfcb243dbbdf8356135
[ "Apache-2.0" ]
null
null
null
aether-odk-module/aether/odk/api/serializers.py
lordmallam/aether
7ceb71d2ef8b09d704d94dfcb243dbbdf8356135
[ "Apache-2.0" ]
null
null
null
aether-odk-module/aether/odk/api/serializers.py
lordmallam/aether
7ceb71d2ef8b09d704d94dfcb243dbbdf8356135
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2018 by eHealth Africa : http://www.eHealthAfrica.org # # See the NOTICE file distributed with this work for additional information # regarding copyright ownership. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with # the License. Y...
33.321429
113
0.674384
21c5953806a590d303da60ce30af9e05c9ffcf7f
1,046
py
Python
client.py
Klark007/Selbstfahrendes-Auto-im-Modell
d7fe81392de2b29b7dbc7c9d929fa0031b89900b
[ "MIT" ]
null
null
null
client.py
Klark007/Selbstfahrendes-Auto-im-Modell
d7fe81392de2b29b7dbc7c9d929fa0031b89900b
[ "MIT" ]
null
null
null
client.py
Klark007/Selbstfahrendes-Auto-im-Modell
d7fe81392de2b29b7dbc7c9d929fa0031b89900b
[ "MIT" ]
null
null
null
import socket from ast import literal_eval import Yetiborg.Drive as Yetiborg HEADERSIZE = 2 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect(("localhost", 12345)) # 192.168.0.11 / localhost / 192.168.0.108 # car always looks up at the beginning car = Yetiborg.Yetiborg((0, 1)) """ fs: finished "...
18.350877
75
0.637667
21c5ac45e757ed2ed07376fd5edc3fa9749f63d7
9,785
py
Python
python/DeepSeaScene/Convert/GLTFModel.py
akb825/DeepSea
fff790d0a472cf2f9f89de653e0b4470ce605d24
[ "Apache-2.0" ]
5
2018-11-17T23:13:22.000Z
2021-09-30T13:37:04.000Z
python/DeepSeaScene/Convert/GLTFModel.py
akb825/DeepSea
fff790d0a472cf2f9f89de653e0b4470ce605d24
[ "Apache-2.0" ]
null
null
null
python/DeepSeaScene/Convert/GLTFModel.py
akb825/DeepSea
fff790d0a472cf2f9f89de653e0b4470ce605d24
[ "Apache-2.0" ]
2
2019-09-23T12:23:35.000Z
2020-04-07T05:31:06.000Z
# Copyright 2020 Aaron Barany # # 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.711679
97
0.66745
21c9e3f18e9ff9713871cd9e59f532296cc7c00f
8,500
py
Python
python/sparktk/models/classification/naive_bayes.py
aayushidwivedi01/spark-tk-old
fcf25f86498ac416cce77de0db4cf0aa503d20ac
[ "ECL-2.0", "Apache-2.0" ]
1
2017-05-17T07:09:59.000Z
2017-05-17T07:09:59.000Z
python/sparktk/models/classification/naive_bayes.py
aayushidwivedi01/spark-tk-old
fcf25f86498ac416cce77de0db4cf0aa503d20ac
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
python/sparktk/models/classification/naive_bayes.py
aayushidwivedi01/spark-tk-old
fcf25f86498ac416cce77de0db4cf0aa503d20ac
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# vim: set encoding=utf-8 # Copyright(c)2016 IntelCorporation # # LicensedundertheApacheLicense,Version2.0(the"License"); # youmaynotusethisfileexceptincompliancewiththeLicense. # YoumayobtainacopyoftheLicenseat # # http://www.apache.org/licenses/LICENSE-2.0 # # Unlessrequiredbyapplicablelaworagreedtoinwriting,s...
36.170213
116
0.609529
21cac0e1969856e708db0ab52d143bf0ce25b967
10,769
py
Python
matplotlib_venn/_venn2.py
TRuikes/matplotlib-venn
64fdba46a61a4a19d2f192c84f02068af08f9e73
[ "MIT" ]
306
2015-01-01T20:48:41.000Z
2022-03-28T03:12:18.000Z
matplotlib_venn/_venn2.py
TRuikes/matplotlib-venn
64fdba46a61a4a19d2f192c84f02068af08f9e73
[ "MIT" ]
55
2015-01-07T14:06:36.000Z
2022-03-07T16:18:48.000Z
matplotlib_venn/_venn2.py
TRuikes/matplotlib-venn
64fdba46a61a4a19d2f192c84f02068af08f9e73
[ "MIT" ]
46
2015-05-08T04:55:24.000Z
2022-02-08T08:38:11.000Z
''' Venn diagram plotting routines. Two-circle venn plotter. Copyright 2012, Konstantin Tretyakov. http://kt.era.ee/ Licensed under MIT license. ''' # Make sure we don't try to do GUI stuff when running tests import sys, os if 'py.test' in os.path.basename(sys.argv[0]): # (XXX: Ugly hack) import matplotlib ma...
41.579151
173
0.642121
21cae347bb461a852e4405ed6113ca1a0a2ae37e
370
py
Python
examples/htmltopdf/lambda_function.py
dgilmanAIDENTIFIED/juniper
81452cb86863340e9f7dd57ccd1cf69881b6e9a9
[ "Apache-2.0" ]
65
2019-02-01T19:49:49.000Z
2022-01-17T10:43:50.000Z
examples/htmltopdf/lambda_function.py
dgilmanAIDENTIFIED/juniper
81452cb86863340e9f7dd57ccd1cf69881b6e9a9
[ "Apache-2.0" ]
28
2019-02-12T18:57:13.000Z
2021-09-21T00:00:50.000Z
examples/htmltopdf/lambda_function.py
dgilmanAIDENTIFIED/juniper
81452cb86863340e9f7dd57ccd1cf69881b6e9a9
[ "Apache-2.0" ]
9
2019-03-02T02:30:50.000Z
2022-01-12T21:34:54.000Z
import pdfkit import boto3 s3 = boto3.client('s3')
20.555556
56
0.578378
21cb54bbd6f23cf907190a946e745efc50dd9bc4
4,997
py
Python
test/espnet2/enh/separator/test_dc_crn_separator.py
roshansh-cmu/espnet
5fa6dcc4e649dc66397c629d0030d09ecef36b80
[ "Apache-2.0" ]
null
null
null
test/espnet2/enh/separator/test_dc_crn_separator.py
roshansh-cmu/espnet
5fa6dcc4e649dc66397c629d0030d09ecef36b80
[ "Apache-2.0" ]
null
null
null
test/espnet2/enh/separator/test_dc_crn_separator.py
roshansh-cmu/espnet
5fa6dcc4e649dc66397c629d0030d09ecef36b80
[ "Apache-2.0" ]
null
null
null
import pytest import torch from packaging.version import parse as V from torch_complex import ComplexTensor from espnet2.enh.layers.complex_utils import is_complex from espnet2.enh.separator.dc_crn_separator import DC_CRNSeparator is_torch_1_9_plus = V(torch.__version__) >= V("1.9.0") def test_dc_crn_separator_in...
30.656442
85
0.655193
21cb6726d5d75e89f98527599cbd57bd6acc970a
75
py
Python
custom_model_runner/datarobot_drum/drum/description.py
cartertroy/datarobot-user-models
d2c2b47e0d46a0ce8d07f1baa8d57155a829d2fc
[ "Apache-2.0" ]
null
null
null
custom_model_runner/datarobot_drum/drum/description.py
cartertroy/datarobot-user-models
d2c2b47e0d46a0ce8d07f1baa8d57155a829d2fc
[ "Apache-2.0" ]
null
null
null
custom_model_runner/datarobot_drum/drum/description.py
cartertroy/datarobot-user-models
d2c2b47e0d46a0ce8d07f1baa8d57155a829d2fc
[ "Apache-2.0" ]
null
null
null
version = "1.1.5rc1" __version__ = version project_name = "datarobot-drum"
18.75
31
0.746667
21cbd02e2c85ee526f62d570e35aa6c6f628b43f
661
py
Python
usaspending_api/download/v2/urls.py
truthiswill/usaspending-api
bd7d915442e2ec94cc830c480ceeffd4479be6c0
[ "CC0-1.0" ]
null
null
null
usaspending_api/download/v2/urls.py
truthiswill/usaspending-api
bd7d915442e2ec94cc830c480ceeffd4479be6c0
[ "CC0-1.0" ]
1
2021-11-15T17:53:27.000Z
2021-11-15T17:53:27.000Z
usaspending_api/download/v2/urls.py
truthiswill/usaspending-api
bd7d915442e2ec94cc830c480ceeffd4479be6c0
[ "CC0-1.0" ]
null
null
null
from django.conf.urls import url from usaspending_api.download.v2 import views urlpatterns = [ url(r'^awards', views.RowLimitedAwardDownloadViewSet.as_view()), url(r'^accounts', views.AccountDownloadViewSet.as_view()), # url(r'^columns', views.DownloadColumnsViewSet.as_view()), url(r'^status', views....
41.3125
80
0.747352
21cbd2f48de433cddb1eeae935153e4c69f319de
208
bzl
Python
bazel_versions.bzl
cgrindel/buildifier-prebuilt
79244e93755af8db1dcbe8d005f024901a7918dc
[ "MIT" ]
8
2021-12-03T19:58:36.000Z
2022-02-03T00:41:59.000Z
bazel_versions.bzl
cgrindel/buildifier-prebuilt
79244e93755af8db1dcbe8d005f024901a7918dc
[ "MIT" ]
13
2022-01-18T22:31:04.000Z
2022-03-21T17:19:49.000Z
bazel_versions.bzl
cgrindel/buildifier-prebuilt
79244e93755af8db1dcbe8d005f024901a7918dc
[ "MIT" ]
2
2022-01-24T20:28:29.000Z
2022-03-20T18:12:46.000Z
""" Common bazel version requirements for tests """ CURRENT_BAZEL_VERSION = "5.0.0" OTHER_BAZEL_VERSIONS = [ "4.2.2", ] SUPPORTED_BAZEL_VERSIONS = [ CURRENT_BAZEL_VERSION, ] + OTHER_BAZEL_VERSIONS
14.857143
43
0.721154
21cc04c7b836d418c1a118414f1038a5933f8f0d
600
py
Python
notebooks/bqml/track_meta.py
roannav/learntools
355a5df6a66562de62254b723da1a9389b9acc49
[ "Apache-2.0" ]
359
2018-03-23T15:57:52.000Z
2022-03-25T21:56:28.000Z
notebooks/bqml/track_meta.py
roannav/learntools
355a5df6a66562de62254b723da1a9389b9acc49
[ "Apache-2.0" ]
84
2018-06-14T00:06:52.000Z
2022-02-08T17:25:54.000Z
notebooks/bqml/track_meta.py
roannav/learntools
355a5df6a66562de62254b723da1a9389b9acc49
[ "Apache-2.0" ]
213
2018-05-02T19:06:31.000Z
2022-03-20T15:40:34.000Z
# See also examples/example_track/track_meta.py for a longer, commented example track = dict( author_username='dansbecker', course_name='Machine Learning', course_url='https://www.kaggle.com/learn/intro-to-machine-learning' ) lessons = [ dict( topic='Your First BiqQuery ML Model', ...
20
79
0.576667
21cf42098efd959d6275b16af7c4990f494ec81b
859
py
Python
inv/migrations/0001_subinterface_managed_object.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
84
2017-10-22T11:01:39.000Z
2022-02-27T03:43:48.000Z
inv/migrations/0001_subinterface_managed_object.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
22
2017-12-11T07:21:56.000Z
2021-09-23T02:53:50.000Z
inv/migrations/0001_subinterface_managed_object.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
23
2017-12-06T06:59:52.000Z
2022-02-24T00:02:25.000Z
# --------------------------------------------------------------------- # Initialize SubInterface.managed_object # --------------------------------------------------------------------- # Copyright (C) 2007-2020 The NOC Project # See LICENSE for details # -----------------------------------------------------------------...
35.791667
84
0.463329
21d04b45422de71cb56cbdb189ae8ae7a0615c7b
14,224
py
Python
utils/etrm_stochastic_grid_search/residual_analysis.py
NMTHydro/Recharge
bbc1a05add92064acffeffb19f04e370b99a7918
[ "Apache-2.0" ]
7
2016-08-30T15:18:11.000Z
2021-08-22T00:28:10.000Z
utils/etrm_stochastic_grid_search/residual_analysis.py
NMTHydro/Recharge
bbc1a05add92064acffeffb19f04e370b99a7918
[ "Apache-2.0" ]
2
2016-06-08T06:41:45.000Z
2016-06-23T20:47:26.000Z
utils/etrm_stochastic_grid_search/residual_analysis.py
NMTHydro/Recharge
bbc1a05add92064acffeffb19f04e370b99a7918
[ "Apache-2.0" ]
1
2018-09-18T10:38:08.000Z
2018-09-18T10:38:08.000Z
# =============================================================================== # Copyright 2019 Jan Hendrickx and Gabriel Parrish # # 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:/...
37.729443
147
0.710911
21d44708b07bab2beabd646a214bd70c0233465b
2,076
py
Python
lib/data_utils/insta_utils_imgs.py
ziniuwan/maed
9e1f1c37eba81da86c8d9c62dc9be41a01abff5b
[ "MIT" ]
145
2021-08-15T13:22:08.000Z
2022-03-29T13:37:19.000Z
lib/data_utils/insta_utils_imgs.py
vkirilenko/maed
9e1f1c37eba81da86c8d9c62dc9be41a01abff5b
[ "MIT" ]
9
2021-09-17T14:58:15.000Z
2022-03-29T07:43:08.000Z
lib/data_utils/insta_utils_imgs.py
vkirilenko/maed
9e1f1c37eba81da86c8d9c62dc9be41a01abff5b
[ "MIT" ]
17
2021-08-15T13:22:10.000Z
2022-01-17T02:34:14.000Z
import os import sys sys.path.append('.') import argparse import numpy as np import os.path as osp from multiprocessing import Process, Pool from glob import glob from tqdm import tqdm import tensorflow as tf from PIL import Image from lib.core.config import INSTA_DIR, INSTA_IMG_DIR if __name__ == '__main__': ...
34.032787
102
0.678227
21d487a575334245b8424e08a0ec1c4d3a7ff96b
672
py
Python
src/person/migrations/0004_actors_moved.py
Little-Pogchamp-Team/kinopoisk_on_django
06e1b5ee14c7e77dd5b69140732461a02bf44566
[ "MIT" ]
10
2021-01-10T09:39:16.000Z
2022-02-05T06:40:47.000Z
src/person/migrations/0004_actors_moved.py
Little-Pogchamp-Team/kinopoisk_on_django
06e1b5ee14c7e77dd5b69140732461a02bf44566
[ "MIT" ]
null
null
null
src/person/migrations/0004_actors_moved.py
Little-Pogchamp-Team/kinopoisk_on_django
06e1b5ee14c7e77dd5b69140732461a02bf44566
[ "MIT" ]
1
2021-01-11T17:04:06.000Z
2021-01-11T17:04:06.000Z
# Generated by Django 3.1.5 on 2021-03-22 17:30 from django.db import migrations, models
26.88
113
0.605655
21d4a525edd40a1d975bbe0a24d86588eb396b49
1,653
py
Python
tests/test_oxide.py
codepainters/edalize
220952c38864735238212ab92405167cbf16c528
[ "BSD-2-Clause" ]
1
2022-03-17T23:30:32.000Z
2022-03-17T23:30:32.000Z
tests/test_oxide.py
codepainters/edalize
220952c38864735238212ab92405167cbf16c528
[ "BSD-2-Clause" ]
null
null
null
tests/test_oxide.py
codepainters/edalize
220952c38864735238212ab92405167cbf16c528
[ "BSD-2-Clause" ]
null
null
null
import os import pytest from edalize_common import make_edalize_test
26.66129
87
0.658197
21d580ac0342437490dbebbfefc2c13b2463ec74
4,265
py
Python
ds5-scripts/aosp_8_1/arm/time.py
rewhy/happer
3b48894e2d91f150f1aee0ce75291b9ca2a29bbe
[ "Apache-2.0" ]
32
2021-04-08T05:39:51.000Z
2022-03-31T03:49:35.000Z
ds5-scripts/aosp_8_1/arm/time.py
rewhy/happer
3b48894e2d91f150f1aee0ce75291b9ca2a29bbe
[ "Apache-2.0" ]
2
2021-04-14T08:31:30.000Z
2021-08-29T19:12:09.000Z
ds5-scripts/aosp_8_1/arm/time.py
rewhy/happer
3b48894e2d91f150f1aee0ce75291b9ca2a29bbe
[ "Apache-2.0" ]
3
2021-06-08T08:52:56.000Z
2021-06-23T17:28:51.000Z
# time.py import gc import os import sys from arm_ds.debugger_v1 import Debugger from arm_ds.debugger_v1 import DebugException import config import memory import mmu # obtain current execution state debugger = Debugger() execution_state = debugger.getCurrentExecutionContext() TIME_INT...
32.557252
126
0.687222
21d74dd97abbafbab41d2b79624c65a5587f6d58
3,134
py
Python
unsupervised_learning/kmeans.py
toorajtaraz/computational_intelligence_mini_projects
79d1782c3b61ee15ac01dcf377bdc369962adb18
[ "MIT" ]
3
2022-02-09T21:35:14.000Z
2022-02-10T15:31:43.000Z
unsupervised_learning/kmeans.py
toorajtaraz/computational_intelligence_mini_projects
79d1782c3b61ee15ac01dcf377bdc369962adb18
[ "MIT" ]
null
null
null
unsupervised_learning/kmeans.py
toorajtaraz/computational_intelligence_mini_projects
79d1782c3b61ee15ac01dcf377bdc369962adb18
[ "MIT" ]
null
null
null
from pathlib import Path import sys path = str(Path(Path(__file__).parent.absolute()).parent.absolute()) sys.path.insert(0, path) from mnist_utils.util import _x, _y_int from sklearn.cluster import MiniBatchKMeans from sklearn.metrics import accuracy_score, adjusted_rand_score import numpy as np from fast_pytorch_kmean...
35.613636
84
0.678685
21d75135a125fe9f66fd6dd283f68fba32f5dd33
6,224
py
Python
cbbc/qapackage/OnlineCLTrainer.py
Robert-xiaoqiang/Model-Capability-Assessment
3cb8673ea66bfeded9d6421e15b288b485ccc53b
[ "Unlicense" ]
null
null
null
cbbc/qapackage/OnlineCLTrainer.py
Robert-xiaoqiang/Model-Capability-Assessment
3cb8673ea66bfeded9d6421e15b288b485ccc53b
[ "Unlicense" ]
null
null
null
cbbc/qapackage/OnlineCLTrainer.py
Robert-xiaoqiang/Model-Capability-Assessment
3cb8673ea66bfeded9d6421e15b288b485ccc53b
[ "Unlicense" ]
null
null
null
import os import json import random random.seed(32767) import shutil import numpy as np np.random.seed(32767) import torch from torch import nn from torch.nn import init from torch.nn import functional as F from torch.optim import Adam, SGD, lr_scheduler import torch.backends.cudnn as cudnn from tensorboardX import Su...
42.340136
125
0.692963
21d75b727cf9afea002e2b219228eabb6225a62d
462
py
Python
fluids/consts.py
BerkeleyAutomation/FLUIDS
728da0d0fec5028ca4506aa9cc8e37a5b072e7a9
[ "MIT" ]
26
2017-12-28T18:15:36.000Z
2022-01-21T13:00:27.000Z
fluids/consts.py
BerkeleyAutomation/FLUIDS
728da0d0fec5028ca4506aa9cc8e37a5b072e7a9
[ "MIT" ]
61
2018-01-30T05:18:42.000Z
2021-05-19T15:00:05.000Z
fluids/consts.py
BerkeleyAutomation/FLUIDS
728da0d0fec5028ca4506aa9cc8e37a5b072e7a9
[ "MIT" ]
14
2017-12-11T04:59:21.000Z
2021-05-19T12:21:31.000Z
STATE_CITY = "fluids_state_city" OBS_QLIDAR = "fluids_obs_qlidar" OBS_GRID = "fluids_obs_grid" OBS_BIRDSEYE = "fluids_obs_birdseye" OBS_NONE = "fluids_obs_none" BACKGROUND_CSP = "fluids_background_csp" BACKGROUND_NULL = "fluids_background_null" REWARD_PATH = "fluids_reward_path" REWARD_NONE = "fluids_rew...
22
42
0.74026
21d800daddf76d02f8c5063d12c46fb52f08fcb4
47
py
Python
src/melbviz/wsgi.py
ned2/footviz
4940882469df76b6af19282cf4fc4f3c81a7b410
[ "MIT" ]
1
2020-02-01T20:35:39.000Z
2020-02-01T20:35:39.000Z
src/melbviz/wsgi.py
ned2/footviz
4940882469df76b6af19282cf4fc4f3c81a7b410
[ "MIT" ]
2
2020-03-31T10:43:57.000Z
2020-07-19T02:56:08.000Z
src/melbviz/wsgi.py
ned2/footviz
4940882469df76b6af19282cf4fc4f3c81a7b410
[ "MIT" ]
null
null
null
from .app import app application = app.server
11.75
24
0.765957
21dbf379b220ade4794e4ad2d117ca0df3cac919
472
py
Python
ozzmeister00/AdventOfCode2021/Scripts/Python/utils/constants.py
techartorg/Advent_of_code_2021
0de46418e86743a2f3dee62c34f35e3007973c77
[ "MIT" ]
null
null
null
ozzmeister00/AdventOfCode2021/Scripts/Python/utils/constants.py
techartorg/Advent_of_code_2021
0de46418e86743a2f3dee62c34f35e3007973c77
[ "MIT" ]
null
null
null
ozzmeister00/AdventOfCode2021/Scripts/Python/utils/constants.py
techartorg/Advent_of_code_2021
0de46418e86743a2f3dee62c34f35e3007973c77
[ "MIT" ]
2
2021-12-12T06:42:02.000Z
2021-12-26T01:41:28.000Z
""" Constants and constant generators """ import os INPUTS_FOLDER_NAME = "inputData" def getInputsFolder(): """ :return str: the absolute path on the file system to the inputData folder, which should be relative to this package """ # figure out where we are utilsFolder = os.path.dirname(os.path...
21.454545
119
0.707627
21dc1958ff8c27f13a30ce7881d7c3c522568e75
4,738
py
Python
bin/ADFRsuite/CCSBpckgs/Volume/Operators/trilinterp.py
AngelRuizMoreno/Jupyter_Dock_devel
6d23bc174d5294d1e9909a0a1f9da0713042339e
[ "MIT" ]
null
null
null
bin/ADFRsuite/CCSBpckgs/Volume/Operators/trilinterp.py
AngelRuizMoreno/Jupyter_Dock_devel
6d23bc174d5294d1e9909a0a1f9da0713042339e
[ "MIT" ]
null
null
null
bin/ADFRsuite/CCSBpckgs/Volume/Operators/trilinterp.py
AngelRuizMoreno/Jupyter_Dock_devel
6d23bc174d5294d1e9909a0a1f9da0713042339e
[ "MIT" ]
1
2021-11-04T21:48:14.000Z
2021-11-04T21:48:14.000Z
################################################################################ ## ## This library is free software; you can redistribute it and/or ## modify it under the terms of the GNU Lesser General Public ## License as published by the Free Software Foundation; either ## version 2.1 of the License, or (at your op...
37.904
105
0.47003
21dd78aa13bdce09f718bbaedda95f0b779a6c8a
11,683
py
Python
telegrampy/ext/commands/help.py
Fyssion/telegram.py
41d94b9386cd1812dfe544a7f86ca4e0787a4dee
[ "MIT" ]
null
null
null
telegrampy/ext/commands/help.py
Fyssion/telegram.py
41d94b9386cd1812dfe544a7f86ca4e0787a4dee
[ "MIT" ]
null
null
null
telegrampy/ext/commands/help.py
Fyssion/telegram.py
41d94b9386cd1812dfe544a7f86ca4e0787a4dee
[ "MIT" ]
null
null
null
""" MIT License Copyright (c) 2020-2021 ilovetocode Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publi...
31.321716
131
0.620303
21dea9e689cc2f2311728c0f3580dc22bc6df8bd
3,011
py
Python
backend/farming/graphql/types/natura2000.py
PwC-FaST/fast-webapp
8c5640c04fcf0b200d5408a8354b4ab2263cd37a
[ "MIT" ]
7
2019-08-30T05:19:27.000Z
2021-12-22T14:56:00.000Z
backend/farming/graphql/types/natura2000.py
PwC-FaST/fast-webapp
8c5640c04fcf0b200d5408a8354b4ab2263cd37a
[ "MIT" ]
10
2020-06-05T19:45:05.000Z
2022-02-17T19:15:37.000Z
backend/farming/graphql/types/natura2000.py
PwC-FaST/fast-webapp
8c5640c04fcf0b200d5408a8354b4ab2263cd37a
[ "MIT" ]
5
2020-03-05T10:23:02.000Z
2020-12-06T10:53:07.000Z
import graphene import os from promise import Promise from datetime import datetime from promise.dataloader import DataLoader import requests from core.graphql.types import CountryType from core.models import Country natura2000_intersections_loader = Natura2000IntersectionLoader()
40.146667
97
0.548655
21df65a1c8478ea8f6b221397a365d1de4254a1f
3,548
py
Python
Lib/test/test_cmath_jy.py
weimingtom/j2mepython-midp
472333ebc6a7f06d92c5ede85c8ed55e4ad66c6d
[ "CNRI-Jython", "PSF-2.0", "Apache-2.0" ]
1
2015-11-07T12:22:17.000Z
2015-11-07T12:22:17.000Z
Lib/test/test_cmath_jy.py
weimingtom/j2mepython-midp
472333ebc6a7f06d92c5ede85c8ed55e4ad66c6d
[ "CNRI-Jython", "PSF-2.0", "Apache-2.0" ]
null
null
null
Lib/test/test_cmath_jy.py
weimingtom/j2mepython-midp
472333ebc6a7f06d92c5ede85c8ed55e4ad66c6d
[ "CNRI-Jython", "PSF-2.0", "Apache-2.0" ]
null
null
null
#! /usr/bin/env python """ Simple test script for cmathmodule.c Roger E. Masse """ import cmath import unittest from test import test_support from test.test_support import verbose p = cmath.pi e = cmath.e if verbose: print 'PI = ', abs(p) print 'E = ', abs(e) if __name__ == "__main__": test_main()
33.158879
78
0.55947
21df81c4df3e4f5c8e3d15ec62909fed82741b3f
6,633
py
Python
python/coffer/coins/impl/_segwittx.py
Steve132/wallet_standard
09c909b24dc17cf6a0a433644d8f1912e886ab1c
[ "MIT" ]
null
null
null
python/coffer/coins/impl/_segwittx.py
Steve132/wallet_standard
09c909b24dc17cf6a0a433644d8f1912e886ab1c
[ "MIT" ]
null
null
null
python/coffer/coins/impl/_segwittx.py
Steve132/wallet_standard
09c909b24dc17cf6a0a433644d8f1912e886ab1c
[ "MIT" ]
null
null
null
from _satoshitx import * import struct #https://bitcoincore.org/en/segwit_wallet_dev/ def segwit_get_prevouthash(stxo): out=bytearray() for inp in stxo.ins: out+=inp.outpoint.serialize() return dblsha256(out) """template <class T> uint256 GetPrevoutHash(const T& txTo) { CHashWriter ss(SER_GETHASH, 0); ...
30.013575
192
0.692748
21e120b1fbe5f797e5a435a8ef7fbefb53f97408
506
py
Python
tests/buffered_recorder_atexit.py
peterdemin/awsme
13a2566171ee0849973fabc6e1d45ba2cc8d496d
[ "MIT" ]
15
2019-01-25T09:45:45.000Z
2020-08-27T08:47:27.000Z
tests/buffered_recorder_atexit.py
peterdemin/awsme
13a2566171ee0849973fabc6e1d45ba2cc8d496d
[ "MIT" ]
62
2019-03-06T16:36:45.000Z
2020-11-19T00:21:00.000Z
tests/buffered_recorder_atexit.py
peterdemin/awsme
13a2566171ee0849973fabc6e1d45ba2cc8d496d
[ "MIT" ]
2
2019-03-05T18:28:55.000Z
2020-07-27T23:27:27.000Z
from __future__ import print_function import datetime from awsme.metric import Metric from awsme.buffered_recorder import BufferedRecorder from typing import List, Dict, Any # noqa recorder = BufferedRecorder(recorder=StdoutRecorder()) recorder.put_metric( Metric( event_time=datetime.datetime.min, ...
22
73
0.72332
21e1875ee0a248959a24b6c0e30c5fce3d5f3121
11,309
py
Python
src/unity/python/turicreate/toolkits/_feature_engineering/_transformer_chain.py
shreyasvj25/turicreate
32e84ca16aef8d04aff3d49ae9984bd49326bffd
[ "BSD-3-Clause" ]
2
2019-02-08T08:45:27.000Z
2020-09-07T05:55:18.000Z
src/unity/python/turicreate/toolkits/_feature_engineering/_transformer_chain.py
shreyasvj25/turicreate
32e84ca16aef8d04aff3d49ae9984bd49326bffd
[ "BSD-3-Clause" ]
3
2022-02-15T04:42:24.000Z
2022-03-12T01:05:15.000Z
src/unity/python/turicreate/toolkits/_feature_engineering/_transformer_chain.py
ZeroInfinite/turicreate
dd210c2563930881abd51fd69cb73007955b33fd
[ "BSD-3-Clause" ]
1
2019-06-01T18:49:28.000Z
2019-06-01T18:49:28.000Z
# -*- coding: utf-8 -*- # Copyright 2017 Apple Inc. All rights reserved. # # Use of this source code is governed by a BSD-3-clause license that can # be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause from __future__ import print_function as _ from __future__ import division as _ from ...
31.240331
97
0.571934
21e32b8735c2ff78ed3df5a83ce3ab8fa9c5647e
729
py
Python
FndngTeam.py
aveepsit/SnackDown19-Qualifier
c6037caca4ba38b9ab98076160118a999c1cc84b
[ "MIT" ]
null
null
null
FndngTeam.py
aveepsit/SnackDown19-Qualifier
c6037caca4ba38b9ab98076160118a999c1cc84b
[ "MIT" ]
null
null
null
FndngTeam.py
aveepsit/SnackDown19-Qualifier
c6037caca4ba38b9ab98076160118a999c1cc84b
[ "MIT" ]
null
null
null
for testcase in range(int(input())): n = int(input()) dict = {} comb = 1 m = (10**9)+7 for x in input().split(): no = int(x) try: dict[no] = dict[no] + 1 except: dict[no] = 1 dict = list(dict.items()) dict.sort(key=lambda x: x[0], reverse=Tru...
22.78125
47
0.429355
21e55d19a6492e7090b8c9255be1b0cd0bb51197
709
py
Python
ccal/read_correlate_copynumber_vs_mrnaseq.py
kberkey/ccal
92aa8372997dccec2908928f71a11b6c8327d7aa
[ "MIT" ]
9
2017-10-09T16:54:58.000Z
2018-12-14T19:49:03.000Z
ccal/read_correlate_copynumber_vs_mrnaseq.py
kberkey/ccal
92aa8372997dccec2908928f71a11b6c8327d7aa
[ "MIT" ]
8
2017-03-11T04:43:04.000Z
2018-12-10T09:47:14.000Z
ccal/read_correlate_copynumber_vs_mrnaseq.py
kberkey/ccal
92aa8372997dccec2908928f71a11b6c8327d7aa
[ "MIT" ]
4
2017-03-10T19:12:28.000Z
2022-01-02T21:11:40.000Z
from tarfile import open as tarfile_open from pandas import read_csv
26.259259
88
0.568406
21e57118b1cdc8c15de5498103799297ecf434fd
2,525
py
Python
get_ships.py
ndujar/vessel-locator
5feff371935e40c2aa22d95c50b9b458ab954dea
[ "MIT" ]
null
null
null
get_ships.py
ndujar/vessel-locator
5feff371935e40c2aa22d95c50b9b458ab954dea
[ "MIT" ]
null
null
null
get_ships.py
ndujar/vessel-locator
5feff371935e40c2aa22d95c50b9b458ab954dea
[ "MIT" ]
null
null
null
#module import import urllib.request from bs4 import BeautifulSoup from datetime import datetime
42.083333
132
0.513267
21e723f45f87fc926e72e1075bacd22832327764
715
py
Python
scripts/convert_0.0_to_0.1.py
codecraftingtools/hildegard
cc658ab4972dfaf67e995c797d0493a5d82a611f
[ "MIT" ]
null
null
null
scripts/convert_0.0_to_0.1.py
codecraftingtools/hildegard
cc658ab4972dfaf67e995c797d0493a5d82a611f
[ "MIT" ]
null
null
null
scripts/convert_0.0_to_0.1.py
codecraftingtools/hildegard
cc658ab4972dfaf67e995c797d0493a5d82a611f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2020 Jeffrey A. Webb import sys f = open(sys.argv[1]) for line in f: s = line.strip() if s.startswith("source:"): id = s.split(":")[-1].strip() indent = ' '*line.index("source") sys.stdout.write(f"{indent}source:\n") sys.stdout.write(f"{i...
29.791667
60
0.548252
21e735d47835a51bb81e229f9598da175bfa76cf
10,093
py
Python
bin/v0eval.py
m-takeuchi/ilislife_wxp
f243431da2852a6e8dc5fd0e1d68bc9220944f96
[ "MIT" ]
null
null
null
bin/v0eval.py
m-takeuchi/ilislife_wxp
f243431da2852a6e8dc5fd0e1d68bc9220944f96
[ "MIT" ]
null
null
null
bin/v0eval.py
m-takeuchi/ilislife_wxp
f243431da2852a6e8dc5fd0e1d68bc9220944f96
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # coding: utf-8 import numpy as np import pandas as pd import matplotlib.pyplot as plt from matplotlib import gridspec import datetime, time from scipy.signal import savgol_filter from scipy.interpolate import interp1d, Akima1DInterpolator, PchipInterpolator from sys import platform import warn...
36.046429
197
0.563064
21e7aa187114df23f75c99353a77c5e6edd5021a
1,067
py
Python
CoTeTo/CoTeTo/import_file.py
EnEff-BIM/EnEffBIM-Framework
6328d39b498dc4065a60b5cc9370b8c2a9a1cddf
[ "MIT" ]
3
2016-05-30T15:12:16.000Z
2022-03-22T08:11:13.000Z
CoTeTo/CoTeTo/import_file.py
EnEff-BIM/EnEffBIM-Framework
6328d39b498dc4065a60b5cc9370b8c2a9a1cddf
[ "MIT" ]
21
2016-06-13T11:33:45.000Z
2017-05-23T09:46:52.000Z
CoTeTo/CoTeTo/import_file.py
EnEff-BIM/EnEffBIM-Framework
6328d39b498dc4065a60b5cc9370b8c2a9a1cddf
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys if sys.version_info >= (3, 3): import importlib elif sys.version_info >= (2, 7): else: raise NotImplementedError('This modules functions are not implemented for python <2.7') if __name__ == '__main__': # test this module with path and module name as arguments # ...
23.711111
91
0.622306
21e807b163ce5ea32bc9f1fcfc02d9c78081538f
3,411
py
Python
sudeste/solicitacao/views.py
danielcamilo13/sudeste
be877c8dec07cfca84ebdc15b275a58aa29af98a
[ "bzip2-1.0.6" ]
1
2019-10-15T19:43:22.000Z
2019-10-15T19:43:22.000Z
sudeste/solicitacao/views.py
danielcamilo13/sudeste
be877c8dec07cfca84ebdc15b275a58aa29af98a
[ "bzip2-1.0.6" ]
6
2020-06-05T23:48:29.000Z
2022-02-10T09:32:01.000Z
sudeste/solicitacao/views.py
danielcamilo13/sudeste
be877c8dec07cfca84ebdc15b275a58aa29af98a
[ "bzip2-1.0.6" ]
null
null
null
from django.shortcuts import render,get_object_or_404 from django.http import HttpResponseRedirect,HttpResponse from cadastro.models import tipocacamba from solicitacao.models import ordemServico from .forms import pedidosForm,opcoesForm,textoForm,statusForm import time from django.utils import timezone from datetime i...
43.730769
113
0.652301
21e82100cdf7b246d3b2ede27f4e43fbcde2d2b1
8,879
py
Python
flows.py
Privacy-Police/Differential-Privacy
c9ac91bf478c00af2ac732bc815ba1ee2fa7e6e5
[ "MIT" ]
null
null
null
flows.py
Privacy-Police/Differential-Privacy
c9ac91bf478c00af2ac732bc815ba1ee2fa7e6e5
[ "MIT" ]
null
null
null
flows.py
Privacy-Police/Differential-Privacy
c9ac91bf478c00af2ac732bc815ba1ee2fa7e6e5
[ "MIT" ]
null
null
null
import math import types import numpy as np import scipy as sp import scipy.linalg import torch import torch.nn as nn import torch.nn.functional as F # The following code is adapted from the following repository # https://github.com/ikostrikov/pytorch-flows/blob/master/flows.py def get_mask(in_features, out_feature...
34.819608
85
0.56887
21e88c91163adb73844077bcc39fe14e4bf1e166
1,477
py
Python
render.py
danieltes/tp_solver
898354aa931c420dc1bf53fdd744885c4c6386d1
[ "BSD-3-Clause" ]
null
null
null
render.py
danieltes/tp_solver
898354aa931c420dc1bf53fdd744885c4c6386d1
[ "BSD-3-Clause" ]
null
null
null
render.py
danieltes/tp_solver
898354aa931c420dc1bf53fdd744885c4c6386d1
[ "BSD-3-Clause" ]
null
null
null
import uuid from PIL import Image import graphviz as gv styles = { 'graph': { 'label': 'Discreta - Representacin de AST', 'fontsize': '16', 'fontcolor': 'white', 'bgcolor': '#333333', }, 'nodes': { 'fontname': 'Helvetica', 'shape': 'hexagon', 'fontc...
21.720588
70
0.531483
21edb5cf4127cb401dec53951ecbfc0d5dad821a
1,557
py
Python
flask/flask_r_interpolaton/app.py
andreipreda/py-r-interpolation
d7be5799b9cf1da95ce728c00eb0ce1c73bf4c02
[ "MIT" ]
null
null
null
flask/flask_r_interpolaton/app.py
andreipreda/py-r-interpolation
d7be5799b9cf1da95ce728c00eb0ce1c73bf4c02
[ "MIT" ]
13
2019-12-26T17:31:05.000Z
2022-02-26T10:36:46.000Z
flask/flask_r_interpolaton/app.py
andreipreda/py-r-interpolation
d7be5799b9cf1da95ce728c00eb0ce1c73bf4c02
[ "MIT" ]
null
null
null
import os from pathlib import Path from flask import Flask, current_app, jsonify, request from flask_cors import CORS from mongoengine import connect, MongoEngineConnectionError import namesgenerator from model import Doc from app_logic import random_df, call_r
25.112903
82
0.587669
21f0be377a2b1d1f473cdf9e342362b4dfa9908f
345
py
Python
config_mypy_django_plugin.py
fj-fj-fj/tech-store
e07214354a51490df53acceec2091812ffd31360
[ "MIT" ]
null
null
null
config_mypy_django_plugin.py
fj-fj-fj/tech-store
e07214354a51490df53acceec2091812ffd31360
[ "MIT" ]
null
null
null
config_mypy_django_plugin.py
fj-fj-fj/tech-store
e07214354a51490df53acceec2091812ffd31360
[ "MIT" ]
null
null
null
import os from configurations.importer import install from mypy.version import __version__ # noqa: F401 from mypy_django_plugin import main
26.538462
68
0.776812
21f0f9312500016def30ca87e22275fe478c9678
9,866
py
Python
Florence/FunctionSpace/JacobiPolynomials/NormalisedJacobi_Deprecated.py
romeric/florence
6af96f2590adb776f74efc6fed96737a4edc4582
[ "MIT" ]
65
2017-08-04T10:21:13.000Z
2022-02-21T21:45:09.000Z
Florence/FunctionSpace/JacobiPolynomials/NormalisedJacobi_Deprecated.py
romeric/florence
6af96f2590adb776f74efc6fed96737a4edc4582
[ "MIT" ]
6
2018-06-03T02:29:20.000Z
2022-01-18T02:30:22.000Z
Florence/FunctionSpace/JacobiPolynomials/NormalisedJacobi_Deprecated.py
romeric/florence
6af96f2590adb776f74efc6fed96737a4edc4582
[ "MIT" ]
10
2018-05-30T09:44:10.000Z
2021-05-18T08:06:51.000Z
import numpy as np from JacobiPolynomials import * import math # 1D - LINE #------------------------------------------------------------------------------------------------------------------# #------------------------------------------------------------------------------------------------------------------# #---------...
32.668874
140
0.420738
21f110499fa4d164d3ecef0734601aa0553b4aba
24,849
py
Python
Homework1.py
nicolac1999/Homework-ADM
3ab9f4afaa7fce4a1ffc38a45dbd3a199dba3737
[ "MIT" ]
null
null
null
Homework1.py
nicolac1999/Homework-ADM
3ab9f4afaa7fce4a1ffc38a45dbd3a199dba3737
[ "MIT" ]
null
null
null
Homework1.py
nicolac1999/Homework-ADM
3ab9f4afaa7fce4a1ffc38a45dbd3a199dba3737
[ "MIT" ]
null
null
null
#Exercises of the Problem 1 (77/91) #Say "Hello, World!" With Python print ("Hello, World!") #Python If-Else import math import os import random import re import sys if __name__ == '__main__': n = int(raw_input().strip()) if n%2==1: print("Weird") else: if n>2 and n<5 : ...
19.026799
156
0.540706
21f17d842da515de7fc906d22c723ce681702761
2,046
py
Python
oms/test/test_order.py
alphamatic/amp
5018137097159415c10eaa659a2e0de8c4e403d4
[ "BSD-3-Clause" ]
5
2021-08-10T23:16:44.000Z
2022-03-17T17:27:00.000Z
oms/test/test_order.py
alphamatic/amp
5018137097159415c10eaa659a2e0de8c4e403d4
[ "BSD-3-Clause" ]
330
2021-06-10T17:28:22.000Z
2022-03-31T00:55:48.000Z
oms/test/test_order.py
alphamatic/amp
5018137097159415c10eaa659a2e0de8c4e403d4
[ "BSD-3-Clause" ]
6
2021-06-10T17:20:32.000Z
2022-03-28T08:08:03.000Z
import logging import helpers.hunit_test as hunitest import oms.order as omorder import oms.order_example as oordexam _LOG = logging.getLogger(__name__)
37.888889
236
0.663245
21f180b857dbd23c3f25d5d18d9b868a2c717d34
1,147
py
Python
mindhome_alpha/erpnext/hr/doctype/leave_type/leave_type.py
Mindhome/field_service
3aea428815147903eb9af1d0c1b4b9fc7faed057
[ "MIT" ]
1
2021-04-29T14:55:29.000Z
2021-04-29T14:55:29.000Z
mindhome_alpha/erpnext/hr/doctype/leave_type/leave_type.py
Mindhome/field_service
3aea428815147903eb9af1d0c1b4b9fc7faed057
[ "MIT" ]
null
null
null
mindhome_alpha/erpnext/hr/doctype/leave_type/leave_type.py
Mindhome/field_service
3aea428815147903eb9af1d0c1b4b9fc7faed057
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import calendar import frappe from datetime import datetime from frappe.utils import today from frappe import _ from frappe.model.document import Docum...
38.233333
174
0.741935
21f35dbbfba3587292969ac6f42df8409ca16d0e
223
py
Python
data/python/pattern_10/code.py
MKAbuMattar/grammind-api
ccf6e9898f50f9e4c7671abecf65029198e2dc72
[ "MIT" ]
3
2021-12-29T13:03:27.000Z
2021-12-31T20:27:17.000Z
data/python/pattern_10/code.py
MKAbuMattar/grammind-api
ccf6e9898f50f9e4c7671abecf65029198e2dc72
[ "MIT" ]
2
2022-01-15T13:08:13.000Z
2022-01-18T19:41:07.000Z
data/python/pattern_10/code.py
MKAbuMattar/grammind-api
ccf6e9898f50f9e4c7671abecf65029198e2dc72
[ "MIT" ]
null
null
null
#MAIN PROGRAM STARTS HERE: num = int(input('Enter the number of rows and columns for the square: ')) for x in range(1, num + 1): for y in range(1, num - 2 + 1): print ('{} {} '.format(x, y), end='') print()
31.857143
73
0.573991
21f37da3a047adbe8267c14542444fce93f2f143
628
py
Python
vocoder.py
tapsoft/autovc
b89183b4f02facbeaee73c2c91ef05615e7985c0
[ "MIT" ]
1
2021-05-18T19:09:05.000Z
2021-05-18T19:09:05.000Z
vocoder.py
tapsoft/autovc
b89183b4f02facbeaee73c2c91ef05615e7985c0
[ "MIT" ]
null
null
null
vocoder.py
tapsoft/autovc
b89183b4f02facbeaee73c2c91ef05615e7985c0
[ "MIT" ]
null
null
null
import os import torch import librosa import pickle import soundfile as sf from synthesis import build_model from synthesis import wavegen spect_vc = pickle.load(open('results.pkl', 'rb')) device = torch.device("cuda") model = build_model().to(device) checkpoint = torch.load("checkpoint_step001000000_ema.pth") model.l...
27.304348
67
0.727707
21f395f0029b2866265b7a849d224eea97a12f20
2,067
py
Python
my_drawing/bouncing_ball.py
YuanMaSa/stancode-projects
d4b8d07650786bdd25fb00c5bada6914cc18b5f4
[ "MIT" ]
null
null
null
my_drawing/bouncing_ball.py
YuanMaSa/stancode-projects
d4b8d07650786bdd25fb00c5bada6914cc18b5f4
[ "MIT" ]
null
null
null
my_drawing/bouncing_ball.py
YuanMaSa/stancode-projects
d4b8d07650786bdd25fb00c5bada6914cc18b5f4
[ "MIT" ]
null
null
null
""" File: bouncing_ball.py Name: Jonathan Ma ------------------------- TODO: """ from campy.graphics.gobjects import GOval from campy.graphics.gwindow import GWindow from campy.gui.events.timer import pause from campy.gui.events.mouse import onmouseclicked VX = 3 DELAY = 10 GRAVITY = 1 SIZE = 20 REDUC...
23.488636
71
0.562651
21f45310f90a55cefdff3888526c635be854305a
373
py
Python
test/py/RunClientServer.py
KirinDave/powerset_thrift
283603cce87e6da4117af1d3c91570e7466846c2
[ "BSL-1.0" ]
1
2016-05-08T06:27:22.000Z
2016-05-08T06:27:22.000Z
test/py/RunClientServer.py
wmorgan/thrift
d9ba3d7a3e25f0f88766c344b2e937422858320b
[ "BSL-1.0" ]
null
null
null
test/py/RunClientServer.py
wmorgan/thrift
d9ba3d7a3e25f0f88766c344b2e937422858320b
[ "BSL-1.0" ]
1
2021-02-09T10:25:34.000Z
2021-02-09T10:25:34.000Z
#!/usr/bin/env python import subprocess import sys import os import signal serverproc = subprocess.Popen([sys.executable, "TestServer.py"]) try: ret = subprocess.call([sys.executable, "TestClient.py"]) if ret != 0: raise Exception("subprocess failed") finally: # fixme: should check that server di...
21.941176
64
0.707775
21f6044c6d47b23589ffcc79568157764ee5680f
20,359
py
Python
scripts/parse_cluster_realign.py
maojanlin/gAIRRsuite
2c7b586624a8ec3f7321da787729bf5435b219d3
[ "MIT" ]
3
2021-05-20T06:05:40.000Z
2022-03-07T03:05:30.000Z
scripts/parse_cluster_realign.py
maojanlin/gAIRRsuite
2c7b586624a8ec3f7321da787729bf5435b219d3
[ "MIT" ]
null
null
null
scripts/parse_cluster_realign.py
maojanlin/gAIRRsuite
2c7b586624a8ec3f7321da787729bf5435b219d3
[ "MIT" ]
1
2022-03-04T02:29:27.000Z
2022-03-04T02:29:27.000Z
import argparse import pickle import os import numpy as np #from parse_contig_realign import mark_edit_region, variant_link_graph, haplotyping_link_graph, output_contig_correction from parse_contig_realign import variant_link_graph, output_contig_correction, parse_CIGAR, parse_MD, trim_dict, find_double_pos, get_farthe...
45.545861
175
0.554055
21f660305f9eb4a0474e78b1bbb3a65006f2c75f
30,257
py
Python
src/huntsman/pocs/observatory.py
Physarah/huntsman-pocs
df013f71f99a7da17d6b44915ebf6f301aba10fc
[ "MIT" ]
null
null
null
src/huntsman/pocs/observatory.py
Physarah/huntsman-pocs
df013f71f99a7da17d6b44915ebf6f301aba10fc
[ "MIT" ]
null
null
null
src/huntsman/pocs/observatory.py
Physarah/huntsman-pocs
df013f71f99a7da17d6b44915ebf6f301aba10fc
[ "MIT" ]
null
null
null
import time from contextlib import suppress, contextmanager from astropy import units as u from panoptes.utils import error from panoptes.utils.utils import get_quantity_value from panoptes.utils.time import current_time, wait_for_events, CountdownTimer from panoptes.pocs.observatory import Observatory from panoptes....
44.300146
100
0.623228
21f6ac953977adb43d4446f137f14e3d19478056
285
py
Python
dist/urls.py
tfmt/netboot
abd690d463dfd14488b0d295512d61ce5c5bc97d
[ "Apache-2.0" ]
null
null
null
dist/urls.py
tfmt/netboot
abd690d463dfd14488b0d295512d61ce5c5bc97d
[ "Apache-2.0" ]
null
null
null
dist/urls.py
tfmt/netboot
abd690d463dfd14488b0d295512d61ce5c5bc97d
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import url from dist import views urlpatterns = [ url(r'^$', views.IndexView.as_view(), name='index'), url(r'^add$', views.AddCategoryView.as_view(), name='add_category'), url(r'^(?P<cat_id>\d+)/$', views.CategoryView.as_view(), name='category'), ]
28.5
78
0.663158
21f7222a7e651ad58c05783910d629bf0a7924e4
3,980
py
Python
src/tensorforce/tensorforce/tests/test_optimizers.py
linus87/drl_shape_optimization
39e6b66bd5b70dfce07e145aafe815071bc1b6fe
[ "MIT" ]
17
2020-12-28T16:25:47.000Z
2022-03-27T18:28:44.000Z
src/tensorforce/tensorforce/tests/test_optimizers.py
linus87/drl_shape_optimization
39e6b66bd5b70dfce07e145aafe815071bc1b6fe
[ "MIT" ]
2
2021-04-18T03:40:02.000Z
2022-01-24T08:40:10.000Z
src/tensorforce/tensorforce/tests/test_optimizers.py
linus87/drl_shape_optimization
39e6b66bd5b70dfce07e145aafe815071bc1b6fe
[ "MIT" ]
8
2020-12-23T05:59:52.000Z
2022-03-28T12:06:35.000Z
# Copyright 2018 Tensorforce Team. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
32.357724
98
0.61407
21f908150b5a25cbfb04d6621c761e9d94cfeb15
1,981
py
Python
main.py
materoy/strobe_light_coms
2d59be7fe1e6f80e531ee2b9375bae0acb249e2d
[ "MIT" ]
null
null
null
main.py
materoy/strobe_light_coms
2d59be7fe1e6f80e531ee2b9375bae0acb249e2d
[ "MIT" ]
null
null
null
main.py
materoy/strobe_light_coms
2d59be7fe1e6f80e531ee2b9375bae0acb249e2d
[ "MIT" ]
null
null
null
import cv2 import numpy import time import iir_filter from scipy import signal import math import matplotlib.pylab as pl # This program detects and measures the frequency of strobe lights if __name__ == '__main__': main()
27.136986
92
0.623423
21f9319e8b6fa0bf2f0d17cbb3ff738368d5fe28
358
py
Python
advanced/react-django/APITestProject/api/migrations/0002_auto_20210110_0406.py
rocabrera/python-learning
578b6f6f64a59039956e2ff8eca9eb486127722f
[ "MIT" ]
3
2021-04-16T01:30:05.000Z
2021-07-22T21:00:45.000Z
advanced/react-django/APITestProject/api/migrations/0002_auto_20210110_0406.py
rocabrera/python-learning
578b6f6f64a59039956e2ff8eca9eb486127722f
[ "MIT" ]
null
null
null
advanced/react-django/APITestProject/api/migrations/0002_auto_20210110_0406.py
rocabrera/python-learning
578b6f6f64a59039956e2ff8eca9eb486127722f
[ "MIT" ]
null
null
null
# Generated by Django 3.1.5 on 2021-01-10 04:06 from django.db import migrations
18.842105
47
0.578212
21f9ac98a22385277ede92007595928086780eae
687
py
Python
easy/array/reverse_integer/reverse_integer.py
deepshig/leetcode-solutions
1e99e0852b8329bf699eb149e7dfe312f82144bc
[ "MIT" ]
null
null
null
easy/array/reverse_integer/reverse_integer.py
deepshig/leetcode-solutions
1e99e0852b8329bf699eb149e7dfe312f82144bc
[ "MIT" ]
null
null
null
easy/array/reverse_integer/reverse_integer.py
deepshig/leetcode-solutions
1e99e0852b8329bf699eb149e7dfe312f82144bc
[ "MIT" ]
null
null
null
import numpy s = Solution() print("Solution 1 : ", s.reverse(123)) print("Solution 2 : ", s.reverse(-123)) print("Solution 3 : ", s.reverse(120))
19.628571
42
0.505095
21f9b7045b329df6f1fc9828f5e918547ef50c4d
917
py
Python
core/dbt/perf_utils.py
dcereijodo/dbt
204fc25c2168710d2549515ffe4846880b89fdec
[ "Apache-2.0" ]
1
2021-04-08T03:33:33.000Z
2021-04-08T03:33:33.000Z
core/dbt/perf_utils.py
azhard/dbt
9cd7cbc9e35e5a7c8c4f17a3d113263f4421ab55
[ "Apache-2.0" ]
1
2021-04-30T21:33:11.000Z
2021-04-30T21:33:11.000Z
core/dbt/perf_utils.py
azhard/dbt
9cd7cbc9e35e5a7c8c4f17a3d113263f4421ab55
[ "Apache-2.0" ]
1
2021-06-04T16:00:44.000Z
2021-06-04T16:00:44.000Z
"""A collection of performance-enhancing functions that have to know just a little bit too much to go anywhere else. """ from dbt.adapters.factory import get_adapter from dbt.parser.manifest import load_manifest from dbt.contracts.graph.manifest import Manifest from dbt.config import RuntimeConfig def get_full_manife...
38.208333
75
0.760087
21fba08b9abc98fedd07afe43100cb26b94bd135
7,576
py
Python
RoadDamageGAN/utils.py
ZhangXG001/RoadDamgeDetection
2880545f595368e8076ede2015335f6537f44b2a
[ "MIT" ]
7
2020-11-04T06:38:18.000Z
2022-03-09T07:13:30.000Z
RoadDamageGAN/utils.py
ZhangXG001/RoadDamgeDetection
2880545f595368e8076ede2015335f6537f44b2a
[ "MIT" ]
1
2020-11-26T07:28:31.000Z
2020-11-26T07:28:31.000Z
RoadDamageGAN/utils.py
ZhangXG001/RoadDamgeDetection
2880545f595368e8076ede2015335f6537f44b2a
[ "MIT" ]
1
2021-03-14T09:00:17.000Z
2021-03-14T09:00:17.000Z
import tensorflow as tf from tensorflow.contrib import slim from scipy import misc import os, random import numpy as np from glob import glob from keras.utils import np_utils try: import xml.etree.cElementTree as ET #xmlc except ImportError: import xml.etree.ElementTree as ET def summary(tensor_collection, su...
38.653061
139
0.619324
21fc6b78c90650153fe0a66ddcecb6e108d72054
367
py
Python
apc/apc/apc_config.py
jmsung/APC
9f0e065aa748a4d041b783b07cd8078715d39625
[ "MIT" ]
null
null
null
apc/apc/apc_config.py
jmsung/APC
9f0e065aa748a4d041b783b07cd8078715d39625
[ "MIT" ]
null
null
null
apc/apc/apc_config.py
jmsung/APC
9f0e065aa748a4d041b783b07cd8078715d39625
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Mar 13 11:30:05 2019 @author: Jongmin Sung """ # config.py import os from pathlib import Path from inspect import currentframe, getframeinfo fname = getframeinfo(currentframe()).filename # current file name current_dir = Path(fname).resolve().parent data_dir = Path(fna...
16.681818
65
0.716621
21fdcfcb45fd6e4c2b13357b9059ca59108a10c0
968
py
Python
recipes/happly/all/conanfile.py
rockandsalt/conan-center-index
d739adcec3e4dd4c250eff559ceb738e420673dd
[ "MIT" ]
562
2019-09-04T12:23:43.000Z
2022-03-29T16:41:43.000Z
recipes/happly/all/conanfile.py
rockandsalt/conan-center-index
d739adcec3e4dd4c250eff559ceb738e420673dd
[ "MIT" ]
9,799
2019-09-04T12:02:11.000Z
2022-03-31T23:55:45.000Z
recipes/happly/all/conanfile.py
rockandsalt/conan-center-index
d739adcec3e4dd4c250eff559ceb738e420673dd
[ "MIT" ]
1,126
2019-09-04T11:57:46.000Z
2022-03-31T16:43:38.000Z
from conans import ConanFile, tools
31.225806
114
0.663223
21fdeb6692cc16bcf769e03462d13ce0331dfbad
48
py
Python
Weather-Data-Collector/API_key.py
Sachinsingh14/Python-Projects
1edba3574b618bc59c68a7647217a7957c604878
[ "Apache-2.0" ]
1
2021-10-18T14:52:42.000Z
2021-10-18T14:52:42.000Z
Weather-Data-Collector/API_key.py
Sachinsingh14/Python-Projects
1edba3574b618bc59c68a7647217a7957c604878
[ "Apache-2.0" ]
1
2021-10-18T15:30:50.000Z
2021-10-18T15:34:24.000Z
Weather-Data-Collector/API_key.py
Sachinsingh14/Python-Projects
1edba3574b618bc59c68a7647217a7957c604878
[ "Apache-2.0" ]
1
2021-10-18T15:20:48.000Z
2021-10-18T15:20:48.000Z
api_key = "1be3b57d0592f2096543bc46ebf302f0"
16
45
0.8125
21fe43d98daef7dd3ebf40de9036c681e2844778
8,798
py
Python
balsam/management/commands/balsam_service.py
hep-cce/hpc-edge-service
57f2b9252d21d478eabe06cbdced5b623f08c75f
[ "BSD-3-Clause" ]
null
null
null
balsam/management/commands/balsam_service.py
hep-cce/hpc-edge-service
57f2b9252d21d478eabe06cbdced5b623f08c75f
[ "BSD-3-Clause" ]
null
null
null
balsam/management/commands/balsam_service.py
hep-cce/hpc-edge-service
57f2b9252d21d478eabe06cbdced5b623f08c75f
[ "BSD-3-Clause" ]
null
null
null
import os,sys,logging,multiprocessing,Queue,traceback logger = logging.getLogger(__name__) from django.core.management.base import BaseCommand, CommandError from django.conf import settings from balsam import models,BalsamJobReceiver,QueueMessage from common import DirCleaner,log_uncaught_exceptions,TransitionJob fro...
50.855491
153
0.587406
21ff67c59d30d6f1412fcfe74d55aa15df4f7837
857
py
Python
FlightPlan_DS.py
dsimmons123/tello-flight-2021
fbf86e1bfcb518395c29516938ee816f0e603984
[ "MIT" ]
null
null
null
FlightPlan_DS.py
dsimmons123/tello-flight-2021
fbf86e1bfcb518395c29516938ee816f0e603984
[ "MIT" ]
null
null
null
FlightPlan_DS.py
dsimmons123/tello-flight-2021
fbf86e1bfcb518395c29516938ee816f0e603984
[ "MIT" ]
1
2021-11-16T22:33:18.000Z
2021-11-16T22:33:18.000Z
from djitellopy import Tello from time import sleep # Initialize and Connect tello = Tello() tello.connect() # Takeoff and move up to 6 feet (183cm) tello.takeoff() tello.move_up(101) # Move forward (east) 5 feet (152cm) tello.move_forward(152) sleep(.5) # rotate 90 degrees CCW tello.rotate_counter_clockwise(90) #...
16.480769
39
0.740957
21ff6ed5659b080f8d47c705b13562c2b1de1ccc
882
py
Python
dd.py
GPrathap/rrt-algorithms
b97af0b57306cdbc0e148f5c086345571d34e823
[ "MIT" ]
null
null
null
dd.py
GPrathap/rrt-algorithms
b97af0b57306cdbc0e148f5c086345571d34e823
[ "MIT" ]
null
null
null
dd.py
GPrathap/rrt-algorithms
b97af0b57306cdbc0e148f5c086345571d34e823
[ "MIT" ]
null
null
null
import cv2 import numpy as np import math # img = cv2.imread('/home/geesara/Pictures/bp8OO.jpg', 0) # img = cv2.threshold(img, 127, 255, cv2.THRESH_BINARY)[1] # ensure binary # ret, labels = cv2.connectedComponents(img) # # print("Number of labels" , len(labels)) # # def imshow_components(labels): # # Map componen...
21.512195
75
0.655329
1d0099bd08d14b67316e62ac1133b0502a7f11ee
369
py
Python
jts/backend/review/migrations/0003_auto_20191011_1025.py
goupaz/babylon
4e638d02705469061e563fec349676d8faa9f648
[ "MIT" ]
1
2019-08-08T09:03:17.000Z
2019-08-08T09:03:17.000Z
backend/review/migrations/0003_auto_20191011_1025.py
goupaz/website
ce1bc8b6c52ee0815a7b98842ec3bde0c20e0add
[ "Apache-2.0" ]
2
2020-10-09T19:16:09.000Z
2020-10-10T20:40:41.000Z
jts/backend/review/migrations/0003_auto_20191011_1025.py
goupaz/babylon-hackathon
4e638d02705469061e563fec349676d8faa9f648
[ "MIT" ]
1
2019-07-21T01:42:21.000Z
2019-07-21T01:42:21.000Z
# Generated by Django 2.2 on 2019-10-11 17:25 from django.db import migrations
19.421053
46
0.593496
1d0414064a76791a07370cb0449ad44c12e6bd53
556
py
Python
src/148.py
cloudzfy/euler
b82efad753ee98375fd40ec4e3989be57828e82c
[ "MIT" ]
12
2016-10-19T09:03:20.000Z
2021-01-10T10:53:23.000Z
src/148.py
cloudzfy/euler
b82efad753ee98375fd40ec4e3989be57828e82c
[ "MIT" ]
null
null
null
src/148.py
cloudzfy/euler
b82efad753ee98375fd40ec4e3989be57828e82c
[ "MIT" ]
6
2018-09-12T03:13:58.000Z
2021-07-07T00:29:43.000Z
# We can easily verify that none of the entries in the first seven # rows of Pascal's triangle are divisible by 7: # 1 # 1 1 # 1 2 1 # 1 3 3 1 # 1 4 6 4 1 # 1 5 10 10 5 1 # 1 6 15 20 15 6 1 # Howeve...
34.75
66
0.546763
1d058aadd2ea53eaf7bc8c3792809f3c95cbd8ca
2,056
py
Python
algorithms_in_python/_12_sorting_and_selection/examples/quick_select.py
junteudjio/algorithms_in_python
90ceced09828aedf845605e5236f48ea92a4419e
[ "MIT" ]
null
null
null
algorithms_in_python/_12_sorting_and_selection/examples/quick_select.py
junteudjio/algorithms_in_python
90ceced09828aedf845605e5236f48ea92a4419e
[ "MIT" ]
null
null
null
algorithms_in_python/_12_sorting_and_selection/examples/quick_select.py
junteudjio/algorithms_in_python
90ceced09828aedf845605e5236f48ea92a4419e
[ "MIT" ]
1
2018-10-15T06:28:45.000Z
2018-10-15T06:28:45.000Z
from random import shuffle __author__ = 'Junior Teudjio' def quick_select(l, k, find_largest=True): """ return the k_th largest/smallest element of list l Parameters ---------- l : list k : int find_largest : Boolean True if return the k_th largest element False if return the k-t...
28.164384
109
0.548638
1d067213814691f84d993aa83db62abacd69db0f
6,895
py
Python
value_based_1.py
frankfangy/gridlab
6251da042c67d3b939e25a9c800c6d61492a5efb
[ "Apache-2.0" ]
null
null
null
value_based_1.py
frankfangy/gridlab
6251da042c67d3b939e25a9c800c6d61492a5efb
[ "Apache-2.0" ]
null
null
null
value_based_1.py
frankfangy/gridlab
6251da042c67d3b939e25a9c800c6d61492a5efb
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' udacity ''' from grid_world import * import sys #from PyQt5.QtCore import QPoint, QRect, QSize, Qt #from PyQt5.QtGui import (QBrush, QPainter, QColor, QPen ) #from PyQt5.QtWidgets import (QApplication, QPushButton, QCheckBox, QGridLayout,QLabel, QWidget, QInputDialog) ...
39.4
138
0.4657
1d07ee21511b5314cfa719c3b45d940106ac6bb8
1,711
py
Python
src/simmate/calculators/vasp/error_handlers/test/test_large_sigma.py
laurenmm/simmate-1
c06b94c46919b01cda50f78221ad14f75c100a14
[ "BSD-3-Clause" ]
9
2021-12-21T02:58:21.000Z
2022-01-25T14:00:06.000Z
src/simmate/calculators/vasp/error_handlers/test/test_large_sigma.py
laurenmm/simmate-1
c06b94c46919b01cda50f78221ad14f75c100a14
[ "BSD-3-Clause" ]
51
2022-01-01T15:59:58.000Z
2022-03-26T21:25:42.000Z
src/simmate/calculators/vasp/error_handlers/test/test_large_sigma.py
laurenmm/simmate-1
c06b94c46919b01cda50f78221ad14f75c100a14
[ "BSD-3-Clause" ]
7
2022-01-01T03:44:32.000Z
2022-03-29T19:59:27.000Z
# -*- coding: utf-8 -*- import os import pytest from simmate.conftest import copy_test_files from simmate.calculators.vasp.inputs import Incar from simmate.calculators.vasp.error_handlers import LargeSigma
31.109091
77
0.71128