hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
6d3cd024737891057712136d2e705890110f9afe
4,896
py
Python
tools/generate_pseudo_label.py
Jmq14/FCOS
5b9b7c2757584b323545988838d020f5b2b9f002
[ "BSD-2-Clause" ]
null
null
null
tools/generate_pseudo_label.py
Jmq14/FCOS
5b9b7c2757584b323545988838d020f5b2b9f002
[ "BSD-2-Clause" ]
null
null
null
tools/generate_pseudo_label.py
Jmq14/FCOS
5b9b7c2757584b323545988838d020f5b2b9f002
[ "BSD-2-Clause" ]
1
2020-04-14T07:19:16.000Z
2020-04-14T07:19:16.000Z
import os import numpy as np from pycocotools.coco import COCO import cv2 from tqdm import tqdm import argparse import json import torch from fcos_core.structures.bounding_box import BoxList from fcos_core.structures.boxlist_ops import boxlist_iou def generate_pseudo_label_with_confidence_score(boxes, image_id, sco...
35.478261
201
0.646446
0
0
0
0
0
0
0
0
1,111
0.22692
6d3d502a9e4fab4b8d06fc5ff16a2568aab18edb
1,400
py
Python
tests/unit/test_public_html.py
milescsmith/cookiecutter-wordpress
3bc3178af15e481d3a18df4ff4fcc93f618a6fdc
[ "MIT" ]
null
null
null
tests/unit/test_public_html.py
milescsmith/cookiecutter-wordpress
3bc3178af15e481d3a18df4ff4fcc93f618a6fdc
[ "MIT" ]
null
null
null
tests/unit/test_public_html.py
milescsmith/cookiecutter-wordpress
3bc3178af15e481d3a18df4ff4fcc93f618a6fdc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import pytest class SetupPublicHtml: @pytest.fixture() def context(self): return None @pytest.fixture() def template(self, cookies, context): if context is None: return cookies.bake() else: return cookies.bake(extra_context=cont...
23.728814
66
0.627143
1,346
0.961429
0
0
816
0.582857
0
0
155
0.110714
6d3d92d541909aa34760d1f3e45a73e1d7ed39b8
6,562
py
Python
Learn_matplotlib.py
maufia/MyPyCourse
5818182992f93745bee4904768442e99837e6d61
[ "MIT" ]
null
null
null
Learn_matplotlib.py
maufia/MyPyCourse
5818182992f93745bee4904768442e99837e6d61
[ "MIT" ]
null
null
null
Learn_matplotlib.py
maufia/MyPyCourse
5818182992f93745bee4904768442e99837e6d61
[ "MIT" ]
null
null
null
"""Learn matplotlib""" import os import easygui as eg import csv import matplotlib.pyplot as plt TITLE = """Learn - Matplotlib """ def select_file() -> str: """Use EasyGUI to select a function""" current_directory = os.path.join(os.getcwd(), 'Data') selected_file = eg.fileopenbox(title=f'{TITLE}: Open...
31.247619
86
0.585949
0
0
0
0
613
0.093417
0
0
2,387
0.363761
6d3dde38158663d28e76c909e8c536123b26caa7
4,262
py
Python
isaactest/tests/accordion_behaviour.py
jsharkey13/isaac-selenium-testing
fc57ec57179cf7d9f0bb5ef46d759792b2af3bc8
[ "MIT" ]
null
null
null
isaactest/tests/accordion_behaviour.py
jsharkey13/isaac-selenium-testing
fc57ec57179cf7d9f0bb5ef46d759792b2af3bc8
[ "MIT" ]
1
2016-01-15T11:28:06.000Z
2016-01-25T17:09:18.000Z
isaactest/tests/accordion_behaviour.py
jsharkey13/isaac-selenium-testing
fc57ec57179cf7d9f0bb5ef46d759792b2af3bc8
[ "MIT" ]
1
2019-05-14T16:53:49.000Z
2019-05-14T16:53:49.000Z
import time from ..utils.log import log, INFO, ERROR, PASS from ..utils.i_selenium import assert_tab, image_div from ..utils.i_selenium import wait_for_xpath_element, wait_for_invisible_xpath from ..utils.isaac import open_accordion_section, close_accordion_section, wait_accordion_open, wait_accordion_closed from ..tes...
45.827957
169
0.690286
0
0
0
0
3,741
0.877757
0
0
1,688
0.396058
6d3eb041ca451c14bb7749af771a32d51f111d6d
587
py
Python
yggdrasil/communication/AsciiMapComm.py
astro-friedel/yggdrasil
5ecbfd083240965c20c502b4795b6dc93d94b020
[ "BSD-3-Clause" ]
22
2019-02-05T15:20:07.000Z
2022-02-25T09:00:40.000Z
yggdrasil/communication/AsciiMapComm.py
astro-friedel/yggdrasil
5ecbfd083240965c20c502b4795b6dc93d94b020
[ "BSD-3-Clause" ]
48
2019-02-15T20:41:24.000Z
2022-03-16T20:52:02.000Z
yggdrasil/communication/AsciiMapComm.py
astro-friedel/yggdrasil
5ecbfd083240965c20c502b4795b6dc93d94b020
[ "BSD-3-Clause" ]
16
2019-04-27T03:36:40.000Z
2021-12-02T09:47:06.000Z
from yggdrasil.communication import FileComm class AsciiMapComm(FileComm.FileComm): r"""Class for handling I/O from/to a ASCII map on disk. Args: name (str): The environment variable where file path is stored. **kwargs: Additional keywords arguments are passed to parent class. """ _...
32.611111
75
0.625213
539
0.918228
0
0
0
0
0
0
342
0.582624
6d3f8a189f427be39fe163edc538d242e89521a0
2,970
py
Python
docker/dstat/plugins/dstat_nfsstat4.py
hzy9819/GreenPlum_WooKongDB
9dca9b3bcd15f29b2a0136acc818064222220059
[ "PostgreSQL", "Apache-2.0" ]
34
2021-01-18T14:25:24.000Z
2021-06-05T03:21:10.000Z
docker/dstat/plugins/dstat_nfsstat4.py
hzy9819/GreenPlum_WooKongDB
9dca9b3bcd15f29b2a0136acc818064222220059
[ "PostgreSQL", "Apache-2.0" ]
null
null
null
docker/dstat/plugins/dstat_nfsstat4.py
hzy9819/GreenPlum_WooKongDB
9dca9b3bcd15f29b2a0136acc818064222220059
[ "PostgreSQL", "Apache-2.0" ]
2
2021-04-20T20:11:08.000Z
2021-06-02T02:56:16.000Z
### Author: Adam Michel <elfurbe@furbism.com> ### Based on work by: Dag Wieers <dag@wieers.com> class dstat_plugin(dstat): def __init__(self): self.name = 'nfs4 client' # this vars/nick pair is the ones I considered relevant. Any set of the full list would work. self.vars = ('read', 'write'...
56.037736
162
0.545455
2,852
0.960269
0
0
0
0
0
0
1,847
0.621886
6d4017e7261ae361b154fa97a6f870b3295280f2
1,873
py
Python
astropyp/instruments/decam/pipeline.py
fred3m/astropyp
414c9e6d84da2604c6466b2046827d8b1988edab
[ "BSD-3-Clause" ]
8
2016-04-28T22:19:22.000Z
2022-03-14T04:22:00.000Z
astropyp/instruments/decam/pipeline.py
fred3m/astropyp
414c9e6d84da2604c6466b2046827d8b1988edab
[ "BSD-3-Clause" ]
null
null
null
astropyp/instruments/decam/pipeline.py
fred3m/astropyp
414c9e6d84da2604c6466b2046827d8b1988edab
[ "BSD-3-Clause" ]
null
null
null
import datapyp import warnings import os class DecamPipeError(Exception): pass class Pipeline(datapyp.core.Pipeline): def __init__(self, **kwargs): from datapyp.utils import get_bool # Make sure that the user included a dictionary of paths to initialize the pipeline if 'paths' not in k...
49.289474
102
0.555259
1,829
0.976508
0
0
0
0
0
0
661
0.35291
6d409d33559b4a6519981780018a2f54e1281d04
3,487
py
Python
powerlaw.py
AlexanderDavid/Powerlaw-Highway-Env
e3e3b6277e0a75e4dcbc7988a9cb144137328d22
[ "MIT" ]
null
null
null
powerlaw.py
AlexanderDavid/Powerlaw-Highway-Env
e3e3b6277e0a75e4dcbc7988a9cb144137328d22
[ "MIT" ]
null
null
null
powerlaw.py
AlexanderDavid/Powerlaw-Highway-Env
e3e3b6277e0a75e4dcbc7988a9cb144137328d22
[ "MIT" ]
null
null
null
import gym import highway_env from agent import Agent import pandas as pd import numpy as np env = gym.make("highway-v0") done = False # Notes # Action space between 0 and 4 inclusive # 0 is merge left # 1 is do nothing # 2 is merge right # 3 is speed up # 4 is slow down # ## Obs space is a 5x5 matrix with values be...
28.120968
167
0.53341
0
0
0
0
0
0
0
0
1,244
0.356754
6d41975bab1b82a3f84cbeb994a57f4874792563
849
py
Python
terraform/module/lambda/src/timestream_data_writer.py
Jimon-s/terraform-example-timestream
f24b3d5feb1d497374c52bff64308a296a01d158
[ "MIT" ]
1
2021-09-12T08:54:48.000Z
2021-09-12T08:54:48.000Z
terraform/module/lambda/src/timestream_data_writer.py
Jimon-s/terraform-example-timestream
f24b3d5feb1d497374c52bff64308a296a01d158
[ "MIT" ]
null
null
null
terraform/module/lambda/src/timestream_data_writer.py
Jimon-s/terraform-example-timestream
f24b3d5feb1d497374c52bff64308a296a01d158
[ "MIT" ]
null
null
null
from typing import List class TimeStreamDataWriter: def __init__(self, client) -> None: self.client = client def write_records(self, database_name: str, table_name: str, records: List[dict], common_attributes: List[dict] = None,): if self.client is None: raise Exception('client i...
30.321429
125
0.580683
822
0.968198
0
0
0
0
0
0
19
0.022379
6d43fd7c79d6110719d20a77a2cbf996accb638e
4,015
py
Python
zodiacy/cli.py
greenify/zodiacy
faf46a10b9b70869cb4caca02027921f1418cfcf
[ "MIT" ]
1
2015-10-16T10:24:53.000Z
2015-10-16T10:24:53.000Z
zodiacy/cli.py
greenify/zodiacy
faf46a10b9b70869cb4caca02027921f1418cfcf
[ "MIT" ]
null
null
null
zodiacy/cli.py
greenify/zodiacy
faf46a10b9b70869cb4caca02027921f1418cfcf
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # encoding: utf-8 import argparse import sqlite3 from os import path from .wrapper import wrap_calls, wrap_corpus import signal signal.signal(signal.SIGPIPE, signal.SIG_DFL) """generate_horoscope.py: Generates horoscopes based provided corpuses""" __author__ = "Project Zodiacy" __copyright__ =...
46.149425
104
0.644583
0
0
0
0
0
0
0
0
1,687
0.420174
6d444a4f6aefa8f1cb4400d8d79d72be67e0ac06
765
py
Python
prosrs/utility/constants.py
compdyn/ProSRS
d9f8f1992af9ebd8570795ed231ee59cb6901e8b
[ "NCSA" ]
2
2019-03-03T22:32:18.000Z
2019-03-04T14:51:01.000Z
prosrs/utility/constants.py
compdyn/ProSRS
d9f8f1992af9ebd8570795ed231ee59cb6901e8b
[ "NCSA" ]
null
null
null
prosrs/utility/constants.py
compdyn/ProSRS
d9f8f1992af9ebd8570795ed231ee59cb6901e8b
[ "NCSA" ]
null
null
null
""" Copyright (C) 2016-2019 Chenchao Shou Licensed under Illinois Open Source License (see the file LICENSE). For more information about the license, see http://otm.illinois.edu/disclose-protect/illinois-open-source-license. Define constants. """ # file templates STATE_NPZ_FILE_TEMP = 'optimizer_state_%s.npz' # file ...
58.846154
134
0.798693
0
0
0
0
0
0
0
0
658
0.860131
6d4642e8f398da24a0527a67fb597113262e14dc
732
py
Python
ioloop-futures/future_done_callback.py
psuresh39/async-design-patterns
f514edaf2b11ecf34b5b8dc2f237b869aa4ff1b9
[ "Apache-2.0" ]
3
2021-02-25T22:20:07.000Z
2021-07-02T09:43:07.000Z
ioloop-futures/future_done_callback.py
psuresh39/async-design-patterns
f514edaf2b11ecf34b5b8dc2f237b869aa4ff1b9
[ "Apache-2.0" ]
null
null
null
ioloop-futures/future_done_callback.py
psuresh39/async-design-patterns
f514edaf2b11ecf34b5b8dc2f237b869aa4ff1b9
[ "Apache-2.0" ]
2
2021-01-27T08:44:31.000Z
2021-05-31T16:36:34.000Z
__author__ = 'psuresh' import asyncio @asyncio.coroutine def slow_operation(future): print("inside task") yield from asyncio.sleep(1) print("task done") future.set_result('Future is done!') def got_result(future): print("inside callback") print(future.result()) loop.stop() loop = async...
18.3
45
0.695355
0
0
148
0.202186
167
0.228142
0
0
269
0.367486
6d4a0bcb9c1a2d9b83eb8672bd2a88bd3b493c65
6,555
py
Python
resources.py
cozhiv/tokenauthentication
c6fec21134d55177b99b23dfe21a89d23eda8394
[ "MIT" ]
null
null
null
resources.py
cozhiv/tokenauthentication
c6fec21134d55177b99b23dfe21a89d23eda8394
[ "MIT" ]
null
null
null
resources.py
cozhiv/tokenauthentication
c6fec21134d55177b99b23dfe21a89d23eda8394
[ "MIT" ]
null
null
null
from flask_restful import Resource, reqparse from models import UserModel, RevokedTokenModel, PortfolioModel from flask_jwt_extended import (create_access_token, create_refresh_token, jwt_required, jwt_refresh_token_required, get_jwt_identity, get_raw_jwt, get_jwt_claims) import json from flask import request parser = ...
35.625
163
0.633562
6,167
0.940809
0
0
3,596
0.548589
0
0
1,296
0.197712
6d4a1b0bb0e6cd8b58de78b8042c2fe98a20bb35
1,164
py
Python
src/data/get_raw_data.py
oscarv17/titanic-disaster-project
b3663c6e02ca2796dd982e0b6fe624968a935963
[ "MIT" ]
null
null
null
src/data/get_raw_data.py
oscarv17/titanic-disaster-project
b3663c6e02ca2796dd982e0b6fe624968a935963
[ "MIT" ]
null
null
null
src/data/get_raw_data.py
oscarv17/titanic-disaster-project
b3663c6e02ca2796dd982e0b6fe624968a935963
[ "MIT" ]
null
null
null
import os import kaggle from dotenv import find_dotenv, load_dotenv import logging # setting credentials os.system('set KAGGLE_USERNAME =' + os.environ.get('kaggle_username')) os.system('set KAGGLE_KEY =' + os.environ.get('kaggle_key')) # function to extract the data def extractData(path): os.syste...
29.846154
87
0.671821
0
0
0
0
0
0
0
0
433
0.371993
6d4b25fdee1ba1da4de6a0ee18903a26769fc38d
4,031
py
Python
4. Data Pipelines with Airflow/dags/sparkify_dend_dag.py
moni2096/Data-Engineering-Nanodegree---Udacity
6202a535ebc5ff95921ce56d37f8116e3e961a3b
[ "MIT" ]
4
2021-07-02T06:17:53.000Z
2022-01-31T19:54:20.000Z
4. Data Pipelines with Airflow/dags/sparkify_dend_dag.py
moni2096/Data-Engineering-Nanodegree-Udacity
6202a535ebc5ff95921ce56d37f8116e3e961a3b
[ "MIT" ]
null
null
null
4. Data Pipelines with Airflow/dags/sparkify_dend_dag.py
moni2096/Data-Engineering-Nanodegree-Udacity
6202a535ebc5ff95921ce56d37f8116e3e961a3b
[ "MIT" ]
null
null
null
from datetime import datetime, timedelta import os from airflow import DAG from airflow.operators.dummy_operator import DummyOperator from airflow.operators import (StageToRedshiftOperator, LoadFactOperator, LoadDimensionOperator, DataQualityOperator) from helpers import SqlQueries def...
30.537879
110
0.73034
0
0
0
0
0
0
0
0
1,188
0.294716
6d4b7c11dabe41f806cbc11a1847f9f742c15d13
1,436
py
Python
jupyterlab/tests/test_build_api.py
orpheus92/jupyter-beta
3ca2665cf28cefb66bd096bb0ce32ec32ba6dfe5
[ "BSD-3-Clause" ]
null
null
null
jupyterlab/tests/test_build_api.py
orpheus92/jupyter-beta
3ca2665cf28cefb66bd096bb0ce32ec32ba6dfe5
[ "BSD-3-Clause" ]
null
null
null
jupyterlab/tests/test_build_api.py
orpheus92/jupyter-beta
3ca2665cf28cefb66bd096bb0ce32ec32ba6dfe5
[ "BSD-3-Clause" ]
null
null
null
"""Test the kernels service API.""" import threading import time from jupyterlab.tests.utils import LabTestBase, APITester from notebook.tests.launchnotebook import assert_http_error class BuildAPITester(APITester): """Wrapper for build REST API requests""" url = 'lab/api/build' def getStatus(self): ...
25.192982
65
0.614206
1,246
0.867688
0
0
0
0
0
0
244
0.169916
6d4c98d5013f159132ac60e600d786ee3cdc259c
25
py
Python
dataloader/__init__.py
nikhil1024/PSMNet
ca5bf6753e84bf448895db42d498a137ed722594
[ "MIT" ]
null
null
null
dataloader/__init__.py
nikhil1024/PSMNet
ca5bf6753e84bf448895db42d498a137ed722594
[ "MIT" ]
null
null
null
dataloader/__init__.py
nikhil1024/PSMNet
ca5bf6753e84bf448895db42d498a137ed722594
[ "MIT" ]
null
null
null
from dataloader import *
12.5
24
0.8
0
0
0
0
0
0
0
0
0
0
6d4cf8e51d0fbaf6857ed11d10bfb09f5a4b1db4
3,151
py
Python
Mnist_conv.py
yashchandak/TensorFlow-fun
d2ec9c6eb52c5d92f417c62f99bc3e9385d43f0d
[ "MIT" ]
null
null
null
Mnist_conv.py
yashchandak/TensorFlow-fun
d2ec9c6eb52c5d92f417c62f99bc3e9385d43f0d
[ "MIT" ]
null
null
null
Mnist_conv.py
yashchandak/TensorFlow-fun
d2ec9c6eb52c5d92f417c62f99bc3e9385d43f0d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Jun 6 15:11:12 2016 @author: yash """ import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data mnist = input_data.read_data_sets('MNIST_data', one_hot = True) sess = tf.InteractiveSession() """ Convolutional Neural Net """ def weight_variable(...
31.828283
89
0.698508
0
0
0
0
0
0
0
0
641
0.203427
6d4d970056f0da094729a71930abf5b79b29e3c3
158
py
Python
51-simple-program-4.py
GunarakulanGunaretnam/python-basic-fundamentals
c62bf939fbaef8895d28f85af9ef6ced70801f96
[ "Apache-2.0" ]
null
null
null
51-simple-program-4.py
GunarakulanGunaretnam/python-basic-fundamentals
c62bf939fbaef8895d28f85af9ef6ced70801f96
[ "Apache-2.0" ]
null
null
null
51-simple-program-4.py
GunarakulanGunaretnam/python-basic-fundamentals
c62bf939fbaef8895d28f85af9ef6ced70801f96
[ "Apache-2.0" ]
null
null
null
while True: user_input = input("Enter something: ") f = open("data.txt", "at") f.write(user_input+"\n") if(user_input == "[STOP]"): f.close() break
15.8
40
0.607595
0
0
0
0
0
0
0
0
45
0.28481
6d4de2f63adc59698f65d7e1665d7fdff8be3785
5,036
py
Python
models.py
AnselCmy/MetaR
47897ef0268b2c6c00e211be26a983d201e54565
[ "Apache-2.0" ]
84
2019-09-17T03:21:30.000Z
2022-03-18T12:28:59.000Z
models.py
zjukg/MetaR
47897ef0268b2c6c00e211be26a983d201e54565
[ "Apache-2.0" ]
4
2019-09-16T06:30:04.000Z
2022-01-02T12:26:03.000Z
models.py
zjukg/MetaR
47897ef0268b2c6c00e211be26a983d201e54565
[ "Apache-2.0" ]
10
2019-09-24T01:23:18.000Z
2021-08-09T03:00:00.000Z
from embedding import * from collections import OrderedDict import torch class RelationMetaLearner(nn.Module): def __init__(self, few, embed_size=100, num_hidden1=500, num_hidden2=200, out_size=100, dropout_p=0.5): super(RelationMetaLearner, self).__init__() self.embed_size = embed_size se...
39.653543
112
0.578832
4,953
0.983519
0
0
0
0
0
0
471
0.093527
6d4ff338a5048d79569541e65f7625f4beff0e41
395
py
Python
Olympiad Solutions/URI/1181.py
Ashwanigupta9125/code-DS-ALGO
49f6cf7d0c682da669db23619aef3f80697b352b
[ "MIT" ]
36
2019-12-27T08:23:08.000Z
2022-01-24T20:35:47.000Z
Olympiad Solutions/URI/1181.py
Ashwanigupta9125/code-DS-ALGO
49f6cf7d0c682da669db23619aef3f80697b352b
[ "MIT" ]
10
2019-11-13T02:55:18.000Z
2021-10-13T23:28:09.000Z
Olympiad Solutions/URI/1181.py
Ashwanigupta9125/code-DS-ALGO
49f6cf7d0c682da669db23619aef3f80697b352b
[ "MIT" ]
53
2020-08-15T11:08:40.000Z
2021-10-09T15:51:38.000Z
# Ivan Carvalho # Solution to https://www.urionlinejudge.com.br/judge/problems/view/1181 #!/usr/bin/env python2.7 linha = int(raw_input()) array = [[0 for j in xrange(12)] for k in xrange(12)] operacao = raw_input() for p in xrange(12): for k in xrange(12): array[p][k]=float(raw_input()) if operacao == "S": print "...
28.214286
72
0.663291
0
0
0
0
0
0
0
0
126
0.318987
6d50afec427856861c969ad355d8c5fa162ca5ff
276
py
Python
packages/PIPS/validation/Benchmarks/Hyantes.sub/remove_reduction.py
DVSR1966/par4all
86b33ca9da736e832b568c5637a2381f360f1996
[ "MIT" ]
51
2015-01-31T01:51:39.000Z
2022-02-18T02:01:50.000Z
packages/PIPS/validation/Benchmarks/Hyantes.sub/remove_reduction.py
DVSR1966/par4all
86b33ca9da736e832b568c5637a2381f360f1996
[ "MIT" ]
7
2017-05-29T09:29:00.000Z
2019-03-11T16:01:39.000Z
packages/PIPS/validation/Benchmarks/Hyantes.sub/remove_reduction.py
DVSR1966/par4all
86b33ca9da736e832b568c5637a2381f360f1996
[ "MIT" ]
12
2015-03-26T08:05:38.000Z
2022-02-18T02:01:51.000Z
from __future__ import with_statement from pyps import workspace with workspace("hyantes.c", "options.c") as w: w.props.constant_path_effects=False f=w["hyantes!do_run_AMORTIZED_DISK"] for l in f.all_loops: l.reduction_variable_expansion() f.display()
30.666667
46
0.73913
0
0
0
0
0
0
0
0
53
0.192029
6d5363097e402538bc42aa0b70cfd1c02f3ca6fb
2,526
py
Python
tests/apps/courses/test_models_subject.py
sampaccoud/richie
3d222aedab0636a84011dced568c5dcd48fc5b15
[ "MIT" ]
null
null
null
tests/apps/courses/test_models_subject.py
sampaccoud/richie
3d222aedab0636a84011dced568c5dcd48fc5b15
[ "MIT" ]
null
null
null
tests/apps/courses/test_models_subject.py
sampaccoud/richie
3d222aedab0636a84011dced568c5dcd48fc5b15
[ "MIT" ]
null
null
null
""" Unit tests for the Subject model """ from django.test import TestCase from cms.api import create_page from richie.apps.courses.factories import CourseFactory, SubjectFactory from richie.apps.courses.models import Subject class SubjectTestCase(TestCase): """ Unit test suite to validate the behavior of th...
38.272727
95
0.684481
2,296
0.908947
0
0
0
0
0
0
1,016
0.402217
6d53e547415669e075a1146807e89c0b079587f0
2,935
py
Python
Scripts/main.py
MainDuelo/Python-Tkinter-and-SQLite
7f69780ce9c1c8ebe807197448030aed94c3a082
[ "MIT" ]
null
null
null
Scripts/main.py
MainDuelo/Python-Tkinter-and-SQLite
7f69780ce9c1c8ebe807197448030aed94c3a082
[ "MIT" ]
null
null
null
Scripts/main.py
MainDuelo/Python-Tkinter-and-SQLite
7f69780ce9c1c8ebe807197448030aed94c3a082
[ "MIT" ]
null
null
null
from Scripts.bank.bankController import BankController from tkinter import ttk, Tk, Button, Label, END from tkinter.scrolledtext import ScrolledText from Scripts.support.textManipulation import TextManipulation MAROON = "#800000" WHITE = "#FFFFFF" VALUES = "values" class Main: def __init__(self): BankCon...
40.763889
183
0.696763
2,653
0.903918
0
0
0
0
0
0
212
0.072232
6d55e3cd7ef5d22859ae8f2c2273a0f46b67eba4
1,651
py
Python
python-verilog/examples_py3/faulted_sqrt/learn_sql/create_table.py
vhnatyk/vlsistuff
0981097bd19a0c482728dcc5048a3615ac9a9a90
[ "MIT" ]
26
2018-03-17T18:14:22.000Z
2022-03-14T07:23:13.000Z
python-verilog/examples_py3/faulted_sqrt/learn_sql/create_table.py
psumesh/vlsistuff
1fe64b093d0581d99c7d826b74c31b8655fa0b31
[ "MIT" ]
1
2019-10-16T10:31:11.000Z
2019-10-17T04:14:53.000Z
python-verilog/examples_py3/faulted_sqrt/learn_sql/create_table.py
psumesh/vlsistuff
1fe64b093d0581d99c7d826b74c31b8655fa0b31
[ "MIT" ]
7
2018-07-16T07:51:25.000Z
2022-02-15T14:22:54.000Z
#! /usr/bin/env python3 import os,sys,string import sqlite3 from sqlite3 import Error def create_connection(path): connection = None try: connection = sqlite3.connect(path) print("Connection to SQLite DB successful") except Error as e: print(f"The error '{e}' occurred") ret...
22.930556
158
0.615385
0
0
0
0
0
0
0
0
500
0.302847
6d568baa19ca1079cc5a15acbd9559b0d736935c
1,836
py
Python
cq_editor/icons.py
possibilities/CQ-editor
dc950180b365ae39840f6787c8f5a061492734ed
[ "Apache-2.0" ]
351
2018-06-08T14:36:35.000Z
2022-03-29T22:03:04.000Z
cq_editor/icons.py
possibilities/CQ-editor
dc950180b365ae39840f6787c8f5a061492734ed
[ "Apache-2.0" ]
315
2018-06-08T14:35:08.000Z
2022-03-31T15:45:27.000Z
cq_editor/icons.py
possibilities/CQ-editor
dc950180b365ae39840f6787c8f5a061492734ed
[ "Apache-2.0" ]
71
2018-06-19T02:00:24.000Z
2022-03-25T08:55:02.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri May 25 14:47:10 2018 @author: adam """ from PyQt5.QtGui import QIcon from . import icons_res _icons = { 'app' : QIcon(":/images/icons/cadquery_logo_dark.svg") } import qtawesome as qta _icons_specs = { 'new' : (('fa.file-o',),{}), '...
31.118644
158
0.421024
0
0
0
0
0
0
0
0
750
0.408497
6d57153945b51f7d7faf6071ea0fd9dbff460656
2,377
py
Python
domain/meta/schedule.py
trcox/py-core-domain
ca490809b247aef08e7de8981432f31b4f9d31a1
[ "Apache-2.0" ]
null
null
null
domain/meta/schedule.py
trcox/py-core-domain
ca490809b247aef08e7de8981432f31b4f9d31a1
[ "Apache-2.0" ]
null
null
null
domain/meta/schedule.py
trcox/py-core-domain
ca490809b247aef08e7de8981432f31b4f9d31a1
[ "Apache-2.0" ]
null
null
null
# ******************************************************************************* # Copyright 2017 Dell 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/L...
44.849057
99
0.634834
1,494
0.628523
0
0
0
0
0
0
1,567
0.659234
6d57330f5890530f320cf62fd898070beece7685
1,316
py
Python
pyheaders/cpp/enum.py
Roynecro97/pyheaders
0e1e90aef3e18d611ec289b25213e2aa2cc0ab45
[ "MIT" ]
2
2020-05-19T20:19:37.000Z
2021-04-06T18:59:06.000Z
pyheaders/cpp/enum.py
Roynecro97/pyheaders
0e1e90aef3e18d611ec289b25213e2aa2cc0ab45
[ "MIT" ]
6
2020-05-17T14:25:25.000Z
2020-07-13T11:45:21.000Z
pyheaders/cpp/enum.py
Roynecro97/pyheaders
0e1e90aef3e18d611ec289b25213e2aa2cc0ab45
[ "MIT" ]
null
null
null
''' Represents a C++ enum. ''' from collections import OrderedDict from typing import Any, Optional, Text, Union class Enum(OrderedDict): ''' Represents a C++ enum. ''' def __init__(self, name, items=None): super().__init__(items or []) self.name = name def __getitem__(self, name...
26.857143
130
0.578267
1,200
0.911854
0
0
0
0
0
0
168
0.12766
6d5780d158839c24f720b62513828f2502747533
493
py
Python
Exercicios/ex100.py
mauriciozago/CursoPython3
cbcff9ebfd4d5f5e3a32a369dac8521c6758bfe5
[ "MIT" ]
null
null
null
Exercicios/ex100.py
mauriciozago/CursoPython3
cbcff9ebfd4d5f5e3a32a369dac8521c6758bfe5
[ "MIT" ]
null
null
null
Exercicios/ex100.py
mauriciozago/CursoPython3
cbcff9ebfd4d5f5e3a32a369dac8521c6758bfe5
[ "MIT" ]
null
null
null
from random import randint from time import sleep def sorteia(lista): print('Sorteando 5 valores da lista:', end=' ') for num in range(0, 5): lista.append(randint(1, 10)) sleep(0.5) print(lista[num], end=' ') print('PRONTO!') def somaPar(lista): soma = 0 for valor in list...
19.72
63
0.596349
0
0
0
0
0
0
0
0
98
0.198783
6d5878f65e5314a4e23460be695252643785c2ed
4,728
py
Python
python/fate_client/flow_client/flow_cli/utils/cli_args.py
kakasu/FATE
cfc61ef268154e08a9e7125c047c318c5e5eb42a
[ "Apache-2.0" ]
2
2020-11-21T11:25:08.000Z
2020-11-21T11:25:11.000Z
python/fate_client/flow_client/flow_cli/utils/cli_args.py
TroubleMaker1994/FATE
23ad848bcc7ae7f304a376d3f46f4af26872c8a2
[ "Apache-2.0" ]
null
null
null
python/fate_client/flow_client/flow_cli/utils/cli_args.py
TroubleMaker1994/FATE
23ad848bcc7ae7f304a376d3f46f4af26872c8a2
[ "Apache-2.0" ]
1
2021-02-03T08:23:42.000Z
2021-02-03T08:23:42.000Z
# # Copyright 2019 The FATE 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 appli...
51.956044
124
0.572758
0
0
0
0
0
0
0
0
1,978
0.418359
6d595897f47c1cc37b47f1c81df0318c37ce2e88
5,210
py
Python
lightning_transformers/task/nlp/masked_language_modeling/data.py
maksym-taranukhin/lightning-transformers
aa7202657973b5b65c3c36eb745621043859ebc4
[ "Apache-2.0" ]
null
null
null
lightning_transformers/task/nlp/masked_language_modeling/data.py
maksym-taranukhin/lightning-transformers
aa7202657973b5b65c3c36eb745621043859ebc4
[ "Apache-2.0" ]
null
null
null
lightning_transformers/task/nlp/masked_language_modeling/data.py
maksym-taranukhin/lightning-transformers
aa7202657973b5b65c3c36eb745621043859ebc4
[ "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...
41.68
119
0.668906
4,237
0.813244
0
0
2,313
0.443954
0
0
1,555
0.298464
6d5b404b1dc5e6d856457623444459cb2d318391
297
py
Python
lc/1461_CheckIfAStringContainsAllBinaryCodesOfSizeK.py
xiangshiyin/coding-challenge
a75a644b96dec1b6c7146b952ca4333263f0a461
[ "Apache-2.0" ]
null
null
null
lc/1461_CheckIfAStringContainsAllBinaryCodesOfSizeK.py
xiangshiyin/coding-challenge
a75a644b96dec1b6c7146b952ca4333263f0a461
[ "Apache-2.0" ]
null
null
null
lc/1461_CheckIfAStringContainsAllBinaryCodesOfSizeK.py
xiangshiyin/coding-challenge
a75a644b96dec1b6c7146b952ca4333263f0a461
[ "Apache-2.0" ]
null
null
null
class Solution: def hasAllCodes(self, s: str, k: int) -> bool: seen = set() i = 0 n = len(s) while i <= n-k: if s[i:i+k] not in seen: seen.add(s[i:i+k]) i += 1 return len(seen)==2 ** k
21.214286
50
0.363636
287
0.96633
0
0
0
0
0
0
0
0
6d5bd3fb4d8e9779c1930d9978e30ba7ba6d66cc
1,737
py
Python
chipy_org/apps/main/views.py
land-of-apps/chipy.org
be433d0cb3453a1550f344c02d6164b6bf4d9e63
[ "MIT" ]
88
2015-01-01T21:12:18.000Z
2022-03-01T13:36:59.000Z
chipy_org/apps/main/views.py
land-of-apps/chipy.org
be433d0cb3453a1550f344c02d6164b6bf4d9e63
[ "MIT" ]
296
2015-01-02T15:55:19.000Z
2022-03-20T20:11:47.000Z
chipy_org/apps/main/views.py
land-of-apps/chipy.org
be433d0cb3453a1550f344c02d6164b6bf4d9e63
[ "MIT" ]
83
2015-01-25T02:34:24.000Z
2021-11-08T20:28:36.000Z
import datetime import sys import traceback from django.contrib import messages from django.contrib.auth.views import LogoutView from django.http import HttpResponse, HttpResponseServerError from django.template import loader from django.views.generic import TemplateView from chipy_org.apps.meetings.models import Mee...
28.016129
98
0.672999
797
0.458837
0
0
0
0
0
0
153
0.088083
6d5c27efea898ab26417bfa0e4161873555a02b3
1,718
py
Python
web_market/catalog/models.py
AK-1121/small_market_with_django
95a3b395e272b3c84400cd3d2ef92affe76dc328
[ "MIT" ]
null
null
null
web_market/catalog/models.py
AK-1121/small_market_with_django
95a3b395e272b3c84400cd3d2ef92affe76dc328
[ "MIT" ]
null
null
null
web_market/catalog/models.py
AK-1121/small_market_with_django
95a3b395e272b3c84400cd3d2ef92affe76dc328
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class ProductType(models.Model): name = models.CharField(max_length=50, unique=True) raiting = models.FloatField() description = models.TextField(default='') class SubProductType(models.Model): name = models.CharField(max_length=50, unique=True...
31.236364
72
0.720023
1,645
0.957509
0
0
0
0
0
0
87
0.05064
6d5cfd7abf19372973186603f8a82d3a006b104a
336
py
Python
src/app/voltdb/voltdb_src/tools/tcpprobe.py
OpenMPDK/SMDK
8f19d32d999731242cb1ab116a4cb445d9993b15
[ "BSD-3-Clause" ]
44
2022-03-16T08:32:31.000Z
2022-03-31T16:02:35.000Z
src/app/voltdb/voltdb_src/tools/tcpprobe.py
H2O0Lee/SMDK
eff49bc17a55a83ea968112feb2e2f2ea18c4ff5
[ "BSD-3-Clause" ]
1
2022-03-29T02:30:28.000Z
2022-03-30T03:40:46.000Z
src/app/voltdb/voltdb_src/tools/tcpprobe.py
H2O0Lee/SMDK
eff49bc17a55a83ea968112feb2e2f2ea18c4ff5
[ "BSD-3-Clause" ]
18
2022-03-19T04:41:04.000Z
2022-03-31T03:32:12.000Z
#!/usr/bin/env python from __future__ import with_statement from sys import argv from socket import socket from contextlib import closing def main(args): host, port = args[1:] with closing(socket()) as s: try: s.connect((host,int(port))) except: return 1 if __name__ == '__main__': exit(main(argv)) # v...
18.666667
37
0.699405
0
0
0
0
0
0
0
0
49
0.145833
6d5ee2879ab66f8685eefe4e79bc72d5182956c0
8,313
py
Python
pythonFiles/arcgis_Script.py
huangysh/ASCA_Cluster
3f7ff5df514cbe48730ba0634abe7f9726d3b98e
[ "MIT" ]
null
null
null
pythonFiles/arcgis_Script.py
huangysh/ASCA_Cluster
3f7ff5df514cbe48730ba0634abe7f9726d3b98e
[ "MIT" ]
null
null
null
pythonFiles/arcgis_Script.py
huangysh/ASCA_Cluster
3f7ff5df514cbe48730ba0634abe7f9726d3b98e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # ********************************************************************************************************************** # MIT License # Copyright (c) 2020 School of Environmental Science and Engineering, Shanghai Jiao Tong University # Permission is hereby granted, free of charge, to any per...
41.358209
120
0.634428
0
0
0
0
0
0
0
0
4,070
0.479444
6d5f3bebf3edb62a00a49fe6236b8ebde098e6fa
19,903
py
Python
examples/example_topop_tb_v4_analysis_roi.py
qiancao/BoneBox
0d10dac7c93f16f0643bebc62c63be2f4bd099f6
[ "BSD-3-Clause" ]
1
2022-03-11T20:49:19.000Z
2022-03-11T20:49:19.000Z
examples/example_topop_tb_v4_analysis_roi.py
qiancao/BoneBox
0d10dac7c93f16f0643bebc62c63be2f4bd099f6
[ "BSD-3-Clause" ]
null
null
null
examples/example_topop_tb_v4_analysis_roi.py
qiancao/BoneBox
0d10dac7c93f16f0643bebc62c63be2f4bd099f6
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Aug 20 21:29:32 2021 @author: qcao Analysis code for example_topop_tb_v3.py Parses and cleans load-driven phantoms. Computes Radiomic signatures. Compares with BvTv. Compare with ROIs """ # FEA and BoneBox Imports import os import sys sys.path.appe...
33.848639
127
0.631061
0
0
0
0
0
0
0
0
9,061
0.455258
6d61966b535b9419b168bfc49be236b95f338598
1,711
py
Python
getKeypoints.py
franzqueissner/mimic-detection
9dc49cf57baaa7da8bb1d8eee0efe00b57384fca
[ "MIT" ]
null
null
null
getKeypoints.py
franzqueissner/mimic-detection
9dc49cf57baaa7da8bb1d8eee0efe00b57384fca
[ "MIT" ]
null
null
null
getKeypoints.py
franzqueissner/mimic-detection
9dc49cf57baaa7da8bb1d8eee0efe00b57384fca
[ "MIT" ]
null
null
null
import os import threading import json from classes import Keypoint def wait_for_frames(): while not os.path.isdir('keypoints/run0'): print("waiting for frame dir, pls start openpose") print("dir detected!") while len(os.listdir("keypoints/run0")) == 0: print("dir empty, waiting for frames"...
29
104
0.675044
0
0
0
0
0
0
0
0
440
0.25716
6d61df73bcd30bdd6c6b9c5e709c560281476999
1,820
py
Python
django/venues/migrations/0001_initial.py
jdrager/mnl-api
be5ce52ed154ec103f9f911da6753d7f2a0fe736
[ "MIT" ]
1
2018-02-02T18:49:27.000Z
2018-02-02T18:49:27.000Z
django/venues/migrations/0001_initial.py
monday-night-lights/mnl-api
be5ce52ed154ec103f9f911da6753d7f2a0fe736
[ "MIT" ]
26
2018-02-01T14:39:40.000Z
2021-10-13T14:11:29.000Z
django/venues/migrations/0001_initial.py
jdrager/mnl-api
be5ce52ed154ec103f9f911da6753d7f2a0fe736
[ "MIT" ]
7
2018-02-01T13:33:00.000Z
2019-03-21T01:39:13.000Z
# Generated by Django 2.1.4 on 2019-01-04 01:10 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Venue', fields=[ ...
39.565217
188
0.569231
1,694
0.930769
0
0
0
0
0
0
279
0.153297
6d635b80fde3903f9b7a6383d92859ddc318ba94
484
py
Python
test/__init__.py
davidmaignan/test
a2c746bf60ccf96b1d753202fba6725b57527aec
[ "Apache-2.0" ]
null
null
null
test/__init__.py
davidmaignan/test
a2c746bf60ccf96b1d753202fba6725b57527aec
[ "Apache-2.0" ]
null
null
null
test/__init__.py
davidmaignan/test
a2c746bf60ccf96b1d753202fba6725b57527aec
[ "Apache-2.0" ]
null
null
null
# import qgis libs so that ve set the correct sip api version import qgis # pylint: disable=W0611 # NOQA import unittest from test.test_init import TestInit from test.test_resources import TestResourceTest def suite_configuration(): suite = unittest.TestSuite() suite.addTest(TestInit('test_read_init')) ...
28.470588
67
0.766529
0
0
0
0
0
0
0
0
133
0.274793
6d635c6db89e149bfd386a8f61c701f4329339cc
6,311
py
Python
locations/spiders/dickeys_barbecue_pit.py
davidchiles/alltheplaces
6f35f6cd652e7462107ead0a77f322caff198653
[ "MIT" ]
297
2017-12-07T01:29:14.000Z
2022-03-29T06:58:01.000Z
locations/spiders/dickeys_barbecue_pit.py
davidchiles/alltheplaces
6f35f6cd652e7462107ead0a77f322caff198653
[ "MIT" ]
2,770
2017-11-28T04:20:21.000Z
2022-03-31T11:29:16.000Z
locations/spiders/dickeys_barbecue_pit.py
davidchiles/alltheplaces
6f35f6cd652e7462107ead0a77f322caff198653
[ "MIT" ]
111
2017-11-27T21:40:02.000Z
2022-01-22T01:21:52.000Z
import scrapy import re from urllib.parse import urlparse from locations.hours import OpeningHours from locations.items import GeojsonPointItem ALL_DAYS = ['Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa', 'Su'] class DickeysBarbecuePitSpider(scrapy.Spider): name = "dickeys_barbecue_pit" item_attributes = { '...
41.519737
121
0.534464
6,097
0.966091
2,545
0.403264
0
0
0
0
2,065
0.327206
6d648804452d20f1849971ab4c6c5df716e95168
25,970
py
Python
spotifython/session.py
Guptacos/spotifython
9d42e903f29667906abd959b45b642a9645c60d1
[ "MIT" ]
null
null
null
spotifython/session.py
Guptacos/spotifython
9d42e903f29667906abd959b45b642a9645c60d1
[ "MIT" ]
61
2020-04-25T20:17:05.000Z
2020-09-20T20:41:24.000Z
spotifython/session.py
Guptacos/spotifython
9d42e903f29667906abd959b45b642a9645c60d1
[ "MIT" ]
null
null
null
""" Session class. """ # Standard library imports import math # Local imports import spotifython.constants as const from spotifython.endpoints import Endpoints import spotifython.utils as utils class Session: """ Represents an interactive Spotify session, tied to a Spotify API token. Use methods here to dea...
35.575342
86
0.578783
25,544
0.983596
0
0
0
0
0
0
13,556
0.521987
6d659aab0b30c16249cae3380b770eb52697e6c0
2,993
py
Python
paper/plotPreliminary.py
SebastianGer/biases-in-word-embeddings
001499003caf213acf62dffbe29a54259a60e3e4
[ "MIT" ]
null
null
null
paper/plotPreliminary.py
SebastianGer/biases-in-word-embeddings
001499003caf213acf62dffbe29a54259a60e3e4
[ "MIT" ]
null
null
null
paper/plotPreliminary.py
SebastianGer/biases-in-word-embeddings
001499003caf213acf62dffbe29a54259a60e3e4
[ "MIT" ]
null
null
null
# Plots results of preliminary experiments to determine parameter settings for all other experiments import pandas as pd import matplotlib matplotlib.use('pgf') import matplotlib.pyplot as plt df = pd.read_csv("data/preliminaryWord2vecComplete_clean.csv") df3 = df.query('(skipgram == 1) & (contextwindow == 3)') df5...
39.381579
100
0.700969
0
0
0
0
0
0
0
0
1,505
0.50284
ed8cc5798db544fbe8ee797bd37f85e2f59ad788
8,156
py
Python
facePose.py
cyndi088/head-pose-estimation-face-landmark
f4ef5b977800cc8c0c54dae8b86d21f616ecb38b
[ "MIT" ]
null
null
null
facePose.py
cyndi088/head-pose-estimation-face-landmark
f4ef5b977800cc8c0c54dae8b86d21f616ecb38b
[ "MIT" ]
null
null
null
facePose.py
cyndi088/head-pose-estimation-face-landmark
f4ef5b977800cc8c0c54dae8b86d21f616ecb38b
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # pylint: disable=C0103 # pylint: disable=E1101 import os import numpy as np import cv2 import caffe def retifyxxyy(img, xxyy): """ let xxyy within image size img: image xxyy: left, right, top, bottom return modified xxyy """ img_height, img_width...
29.128571
161
0.608877
5,169
0.633767
0
0
0
0
0
0
1,928
0.23639
ed9190d07952044973458f3da01194e2467b9134
763
py
Python
setup_extensions.py
pygeo/pycmbs
0df863e1575ffad21c1ea9790bcbd3a7982d99c6
[ "MIT" ]
9
2015-04-01T04:22:25.000Z
2018-08-31T03:51:34.000Z
setup_extensions.py
pygeo/pycmbs
0df863e1575ffad21c1ea9790bcbd3a7982d99c6
[ "MIT" ]
14
2015-01-27T20:33:10.000Z
2016-06-02T07:23:25.000Z
setup_extensions.py
pygeo/pycmbs
0df863e1575ffad21c1ea9790bcbd3a7982d99c6
[ "MIT" ]
8
2015-02-07T20:46:42.000Z
2019-10-25T00:36:32.000Z
# -*- coding: utf-8 -*- """ This file is part of pyCMBS. (c) 2012- Alexander Loew For COPYING and LICENSE details, please refer to the LICENSE file """ """ module to compile the required python extensions This is for development purposes only! Later on it might be integrated into the standard setup.py """ # http://d...
25.433333
65
0.743119
0
0
0
0
0
0
0
0
577
0.756225
ed9319b4c643894e862dc180400d3e4c6e873027
68
py
Python
src/models/__init__.py
renyi-ai/drfrankenstein
b9064cdea67698f70af07849bc5decaafccac9f3
[ "MIT" ]
4
2021-12-08T14:27:19.000Z
2022-01-05T20:19:03.000Z
src/models/__init__.py
renyi-ai/drfrankenstein
b9064cdea67698f70af07849bc5decaafccac9f3
[ "MIT" ]
null
null
null
src/models/__init__.py
renyi-ai/drfrankenstein
b9064cdea67698f70af07849bc5decaafccac9f3
[ "MIT" ]
null
null
null
from src.models.classifiers import * from src.models.frank import *
22.666667
36
0.794118
0
0
0
0
0
0
0
0
0
0
ed9343bfb5b3ee8263500da7447ed1563a0c1cf8
10,469
py
Python
tutorials/05-dcr/plot_fwd_2_dcr2d.py
ElliotCheung/simpeg
ce5bde154179ca63798a62a12787a7ec3535472c
[ "MIT" ]
1
2022-02-18T16:31:27.000Z
2022-02-18T16:31:27.000Z
tutorials/05-dcr/plot_fwd_2_dcr2d.py
ElliotCheung/simpeg
ce5bde154179ca63798a62a12787a7ec3535472c
[ "MIT" ]
null
null
null
tutorials/05-dcr/plot_fwd_2_dcr2d.py
ElliotCheung/simpeg
ce5bde154179ca63798a62a12787a7ec3535472c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ DC Resistivity Forward Simulation in 2.5D ========================================= Here we use the module *SimPEG.electromagnetics.static.resistivity* to predict DC resistivity data and plot using a pseudosection. In this tutorial, we focus on the following: - How to define the survey...
31.250746
88
0.66845
0
0
0
0
0
0
0
0
5,032
0.480657
ed936cafecf6046c66b2300745cd962b854537e7
23,944
py
Python
Feature_Selection.py
ksegaba/ML-Pipeline
cd3914563ccd2e2eb863a55e7fe774108280ed47
[ "MIT" ]
12
2019-09-30T21:17:40.000Z
2022-02-11T00:22:52.000Z
Feature_Selection.py
DanyelleJhang/ML-Pipeline
78073fd1004f831c4efdd05e0f1eb78c8bae4fcb
[ "MIT" ]
6
2021-08-03T14:29:16.000Z
2021-11-17T22:39:13.000Z
Feature_Selection.py
DanyelleJhang/ML-Pipeline
78073fd1004f831c4efdd05e0f1eb78c8bae4fcb
[ "MIT" ]
17
2017-05-22T21:03:42.000Z
2022-03-01T15:06:29.000Z
""" PURPOSE: Run feature selection mettestd available from sci-kit learn on a given dataframe Must set path to Miniconda in HPC: export PATH=/mnt/testme/azodichr/miniconda3/bin:$PATH INPUT: -df Feature file for ML. If class/Y values are in a separate file use -df for features and -df2 for class/Y -alg ...
36.169184
144
0.636527
0
0
0
0
0
0
0
0
10,688
0.446375
ed95341fd58164725063ce6ee238cb6800234854
6,815
py
Python
analyses/seasonality_paper_st/comparisons/specific.py
akuhnregnier/wildfire-analysis
a04deada145cec864051d2fb15aec1a53a0246b9
[ "MIT" ]
null
null
null
analyses/seasonality_paper_st/comparisons/specific.py
akuhnregnier/wildfire-analysis
a04deada145cec864051d2fb15aec1a53a0246b9
[ "MIT" ]
null
null
null
analyses/seasonality_paper_st/comparisons/specific.py
akuhnregnier/wildfire-analysis
a04deada145cec864051d2fb15aec1a53a0246b9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import sys import warnings from pathlib import Path PROJECT_DIR = Path(__file__).resolve().parent if sys.path[0] != str(PROJECT_DIR.parent): sys.path.insert(0, str(PROJECT_DIR.parent)) warnings.filterwarnings( "ignore", category=FutureWarning, module="sklearn.utils.deprecation" ) from ...
29.375
96
0.612619
0
0
0
0
266
0.039032
0
0
936
0.137344
ed96aca008acbd291e61b7b834d23df210a0de3f
722
py
Python
scripts/bbann_script/rewrite.py
PwzXxm/BBAnn
2dafce027599b3cdf84070248467294dca2a1042
[ "MIT" ]
11
2021-11-01T06:49:30.000Z
2022-02-25T08:09:21.000Z
scripts/bbann_script/rewrite.py
PwzXxm/BBAnn
2dafce027599b3cdf84070248467294dca2a1042
[ "MIT" ]
null
null
null
scripts/bbann_script/rewrite.py
PwzXxm/BBAnn
2dafce027599b3cdf84070248467294dca2a1042
[ "MIT" ]
5
2021-11-04T02:18:41.000Z
2022-03-17T04:13:07.000Z
#!/usr/bin/python3 import sys column_num=eval(sys.argv[1]) print("ARGUMENT column_num: ", column_num) file_name = "tana_res.txt" records = {} with open(file_name) as f: while True: line = f.readline() # Line 1: log file name if not line: break print(line.strip()) key = f.readline().strip() # Line 2: the k...
22.5625
71
0.65097
0
0
0
0
0
0
0
0
164
0.227147
ed96b143353b2e72a3e901bf774af07ab594b2aa
2,743
py
Python
kloppy/tests/test_datafactory.py
ThomasSeidl/kloppy
ca59bb2aa3b54b08a50d35e2ed2dd3c2f56cdded
[ "BSD-3-Clause" ]
176
2020-04-24T09:12:05.000Z
2022-03-27T07:03:44.000Z
kloppy/tests/test_datafactory.py
ThomasSeidl/kloppy
ca59bb2aa3b54b08a50d35e2ed2dd3c2f56cdded
[ "BSD-3-Clause" ]
95
2020-04-24T18:37:36.000Z
2022-03-23T21:59:10.000Z
kloppy/tests/test_datafactory.py
ThomasSeidl/kloppy
ca59bb2aa3b54b08a50d35e2ed2dd3c2f56cdded
[ "BSD-3-Clause" ]
39
2020-05-08T21:45:26.000Z
2022-03-19T09:29:41.000Z
import os from kloppy import DatafactorySerializer from kloppy.domain import ( AttackingDirection, Ground, Orientation, Period, Point, Provider, SetPieceType, ) from kloppy.domain.models.common import DatasetType class TestDatafactory: def test_correct_deserialization(self): b...
33.864198
79
0.638717
2,498
0.910682
0
0
0
0
0
0
202
0.073642
ed96c2f783024bd964e139219b7d2d0bf6f1f219
2,308
py
Python
models/BiLSTM_MHATT.py
shiqiuwang/shiqiuwang-N2NCause
a6cdb702b000b62b29ccdbd74bfbb666420124f1
[ "MIT" ]
null
null
null
models/BiLSTM_MHATT.py
shiqiuwang/shiqiuwang-N2NCause
a6cdb702b000b62b29ccdbd74bfbb666420124f1
[ "MIT" ]
null
null
null
models/BiLSTM_MHATT.py
shiqiuwang/shiqiuwang-N2NCause
a6cdb702b000b62b29ccdbd74bfbb666420124f1
[ "MIT" ]
null
null
null
import tensorflow as tf from layers.attention import stacked_multihead_attention from layers.recurrent import rnn_layer from layers.similarity import manhattan_similarity from models.base_model import BaseSiameseNet class LSTMATTBasedSiameseNet(BaseSiameseNet): def __init__( self, ma...
30.368421
81
0.596187
2,088
0.904679
0
0
0
0
0
0
170
0.073657
ed974b0d6e70499730b205caa7425ce10c83731b
2,237
py
Python
sciquence/sequences/sliding_window.py
krzjoa/sciquence
6a5f758c757200fffeb0fdc9206462f1f89e2444
[ "MIT" ]
8
2017-10-23T17:59:35.000Z
2021-05-10T03:01:30.000Z
sciquence/sequences/sliding_window.py
krzjoa/sciquence
6a5f758c757200fffeb0fdc9206462f1f89e2444
[ "MIT" ]
2
2019-08-25T19:24:12.000Z
2019-09-05T12:16:10.000Z
sciquence/sequences/sliding_window.py
krzjoa/sciquence
6a5f758c757200fffeb0fdc9206462f1f89e2444
[ "MIT" ]
2
2018-02-28T09:47:53.000Z
2019-08-25T19:24:16.000Z
# Krzysztof Joachimiak 2017 # sciquence: Time series & sequences in Python # # Sliding window # Author: Krzysztof Joachimiak # # License: MIT from sklearn.base import BaseEstimator, TransformerMixin from sklearn.preprocessing import Imputer class SlidingWindow(BaseEstimator, TransformerMixin): # TODO: check ref...
21.509615
69
0.588735
1,989
0.889137
0
0
0
0
0
0
1,620
0.724184
ed992d81dea8a5144be3f93a447f968a5f7b383d
2,923
py
Python
ddesigner/conditional.py
Ball-Man/python-ddesigner
2e1522e28389fe6e2d7b40f8877732563d3dd368
[ "MIT" ]
1
2021-08-17T10:40:48.000Z
2021-08-17T10:40:48.000Z
ddesigner/conditional.py
Ball-Man/python-ddesigner
2e1522e28389fe6e2d7b40f8877732563d3dd368
[ "MIT" ]
null
null
null
ddesigner/conditional.py
Ball-Man/python-ddesigner
2e1522e28389fe6e2d7b40f8877732563d3dd368
[ "MIT" ]
null
null
null
"""Module containing the logic for an arithmetic parser. Lark is used as a parser generator. """ from typing import Mapping import operator import lark # Default syntax for arithmetic expressions ARITHM_EXPRESSIONS_SYNTAX = """ ?start: or ?or: and | or "||" and -> or_ | or "or" and -> or_ ?and: comparison ...
23.384
70
0.609648
1,137
0.388984
0
0
1,163
0.397879
0
0
1,685
0.576463
ed999549258bd692481abf7879dce3a39b46c915
5,996
py
Python
src/opendr/perception/object_detection_3d/voxel_object_detection_3d/second_detector/pytorch/builder/lr_scheduler_builder.py
makistsantekidis/opendr
07dee3b59d3487b9c5a93d6946317178a02c9890
[ "Apache-2.0" ]
217
2020-04-10T16:39:36.000Z
2022-03-30T15:39:04.000Z
src/opendr/perception/object_detection_3d/voxel_object_detection_3d/second_detector/pytorch/builder/lr_scheduler_builder.py
makistsantekidis/opendr
07dee3b59d3487b9c5a93d6946317178a02c9890
[ "Apache-2.0" ]
79
2021-06-23T10:40:10.000Z
2021-12-16T07:59:42.000Z
src/opendr/perception/object_detection_3d/voxel_object_detection_3d/second_detector/pytorch/builder/lr_scheduler_builder.py
makistsantekidis/opendr
07dee3b59d3487b9c5a93d6946317178a02c9890
[ "Apache-2.0" ]
29
2021-12-16T09:26:13.000Z
2022-03-29T15:19:18.000Z
# Copyright 2017 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...
35.690476
84
0.698299
0
0
0
0
0
0
0
0
1,832
0.305537
ed9a8d66960ed413540be7e9fc0394c6fc149910
1,656
py
Python
samples/wmi/wmi_request.py
R3dFruitRollUp/PythonForWindows
b253bc5873e7d97087ed22f2753b51fc6880ec18
[ "BSD-3-Clause" ]
1
2018-11-15T11:15:56.000Z
2018-11-15T11:15:56.000Z
samples/wmi/wmi_request.py
killvxk/PythonForWindows
b253bc5873e7d97087ed22f2753b51fc6880ec18
[ "BSD-3-Clause" ]
null
null
null
samples/wmi/wmi_request.py
killvxk/PythonForWindows
b253bc5873e7d97087ed22f2753b51fc6880ec18
[ "BSD-3-Clause" ]
1
2018-12-01T19:11:49.000Z
2018-12-01T19:11:49.000Z
import sys import os.path import pprint sys.path.append(os.path.abspath(__file__ + "\..\..")) import windows print("WMI requester is {0}".format(windows.system.wmi)) print("Selecting * from 'Win32_Process'") result = windows.system.wmi.select("Win32_Process") print("They are <{0}> processes".format(len(result))) pri...
36.8
98
0.660628
0
0
0
0
0
0
0
0
792
0.478261
ed9b02518328f3649735b397457fcd707b2a240e
92
py
Python
POP1/worksheets/two/ex15/code.py
silvafj/BBK-MSCCS-2017-18
d97b0f8e7434d19a1a4006989c32c4c1deb93842
[ "MIT" ]
1
2021-12-29T19:38:56.000Z
2021-12-29T19:38:56.000Z
POP1/worksheets/two/ex15/code.py
silvafj/BBK-MSCCS-2017-18
d97b0f8e7434d19a1a4006989c32c4c1deb93842
[ "MIT" ]
null
null
null
POP1/worksheets/two/ex15/code.py
silvafj/BBK-MSCCS-2017-18
d97b0f8e7434d19a1a4006989c32c4c1deb93842
[ "MIT" ]
2
2021-04-08T22:58:03.000Z
2021-04-09T01:16:51.000Z
l = [int(e) for e in input().split()] for n in l: if l.count(n) == 1: print(n)
15.333333
37
0.478261
0
0
0
0
0
0
0
0
0
0
ed9cb27df1647e3b076c465c218bb03a9d9b60ef
20,065
py
Python
source.py
Shailendram1990/COVID19_mobility
70dc3d05313b233229ea5f8d1c4c1b0dffe44e33
[ "MIT" ]
1
2020-07-21T16:11:51.000Z
2020-07-21T16:11:51.000Z
source.py
Shailendram1990/COVID19_mobility
70dc3d05313b233229ea5f8d1c4c1b0dffe44e33
[ "MIT" ]
null
null
null
source.py
Shailendram1990/COVID19_mobility
70dc3d05313b233229ea5f8d1c4c1b0dffe44e33
[ "MIT" ]
null
null
null
""" This script loads Google and Apple Mobility reports, builds cleaned reports in different formats and builds merged files from both sources. Original data: - Google Community Mobility reports: https://www.google.com/covid19/mobility/ - Apple Mobility Trends reports: https://www.apple.com/covid19/mobili...
42.782516
140
0.579018
0
0
0
0
0
0
0
0
8,230
0.410167
ed9e27a1dfc15a74b30acc3524b9b0e30df90f89
4,975
py
Python
racing_data/performance_list.py
predictive-punter/racing_data
0d1b0ad0fe7591ce859d528af719349c0c7534d3
[ "MIT" ]
15
2017-04-08T05:22:49.000Z
2021-04-20T17:33:22.000Z
racing_data/performance_list.py
phillc73/racing_data
0d1b0ad0fe7591ce859d528af719349c0c7534d3
[ "MIT" ]
54
2016-07-21T10:35:45.000Z
2016-07-30T23:06:50.000Z
racing_data/performance_list.py
phillc73/racing_data
0d1b0ad0fe7591ce859d528af719349c0c7534d3
[ "MIT" ]
7
2016-12-15T06:02:54.000Z
2020-04-20T15:32:55.000Z
class PerformanceList(list): """A performance list provides statistical analysis functionality for a list of performances""" @property def earnings(self): """Return the total prize money for the performances in this list""" prize_monies = [performance['prize_money'] for performance in self...
34.79021
156
0.665126
4,974
0.999799
0
0
4,125
0.829146
0
0
1,712
0.344121
ed9eb4ccb84e2b5861f5d2fd5428fb0fde542ab3
343
py
Python
Leetcode/72. Edit Distance/solution2.py
asanoviskhak/Outtalent
c500e8ad498f76d57eb87a9776a04af7bdda913d
[ "MIT" ]
51
2020-07-12T21:27:47.000Z
2022-02-11T19:25:36.000Z
Leetcode/72. Edit Distance/solution2.py
CrazySquirrel/Outtalent
8a10b23335d8e9f080e5c39715b38bcc2916ff00
[ "MIT" ]
null
null
null
Leetcode/72. Edit Distance/solution2.py
CrazySquirrel/Outtalent
8a10b23335d8e9f080e5c39715b38bcc2916ff00
[ "MIT" ]
32
2020-07-27T13:54:24.000Z
2021-12-25T18:12:50.000Z
class Solution: def minDistance(self, word1: str, word2: str) -> int: @lru_cache(None) def dp(i, j): if i < 0 or j < 0: return max(i, j) + 1 return dp(i - 1, j - 1) if word1[i] == word2[j] else min(dp(i - 1, j), dp(i - 1, j - 1), dp(i, j - 1)) + 1 return dp(len(word1...
38.111111
118
0.483965
342
0.997085
0
0
209
0.609329
0
0
0
0
eda08d58045fdf93c52e02e54d88ae92b393de36
2,130
py
Python
cogs/lyrics.py
minihut/leafy-bot
b9c12b18f8a6ba8409ced5fe352421623bbffcee
[ "MIT" ]
12
2021-01-19T05:47:03.000Z
2022-01-14T12:51:33.000Z
cogs/lyrics.py
minihut/leafy-bot
b9c12b18f8a6ba8409ced5fe352421623bbffcee
[ "MIT" ]
1
2021-02-22T12:08:10.000Z
2021-02-22T12:08:10.000Z
cogs/lyrics.py
minihut/leafy-bot
b9c12b18f8a6ba8409ced5fe352421623bbffcee
[ "MIT" ]
12
2021-01-17T07:31:34.000Z
2021-05-17T14:01:07.000Z
import discord import requests from discord.ext import commands from discord.ext.commands import BucketType, cooldown class Lyrics(commands.Cog): def __init__(self, client): self.client = client @commands.Cog.listener() async def on_ready(self): print("Lyrics cog loaded successfully") ...
31.323529
88
0.528638
1,953
0.916901
0
0
1,853
0.869953
1,698
0.797183
388
0.18216
eda1be23822efe6556205accc545c9d894a8431d
2,761
py
Python
model_train.py
Sanatramesh/PCamNet
7238a87584ffec26336ae2034ec5723d8a035dca
[ "BSD-3-Clause" ]
null
null
null
model_train.py
Sanatramesh/PCamNet
7238a87584ffec26336ae2034ec5723d8a035dca
[ "BSD-3-Clause" ]
null
null
null
model_train.py
Sanatramesh/PCamNet
7238a87584ffec26336ae2034ec5723d8a035dca
[ "BSD-3-Clause" ]
null
null
null
import time import pickle import numpy as np from copy import deepcopy class ModelTraining: def __init__(self, model, data_loader, batch_size = 10, epochs = 20, model_ckpt_file = 'model/PCamNet'): self.model = model self.data_loader = data_loader # List of tuple: (left_cam, right_cam, disp_map) fi...
37.821918
108
0.561391
2,688
0.97356
0
0
0
0
0
0
495
0.179283
eda283b01e0b59cd7f31f32beaffd18135370de1
695
py
Python
generatemusic/generate_waveforms.py
WiktorSa/Music-Generation-with-LSTM-and-.wav-files
37b713b5e6193788a7710cc0fac4134efb74fa62
[ "MIT" ]
1
2022-03-09T20:13:57.000Z
2022-03-09T20:13:57.000Z
generatemusic/generate_waveforms.py
WiktorSa/Music-Generation-with-LSTM-and-.wav-files
37b713b5e6193788a7710cc0fac4134efb74fa62
[ "MIT" ]
1
2021-10-01T16:20:06.000Z
2021-10-01T17:25:30.000Z
generatemusic/generate_waveforms.py
WiktorSa/Music-Generation-with-LSTM-and-.wav-files
37b713b5e6193788a7710cc0fac4134efb74fa62
[ "MIT" ]
null
null
null
import numpy as np from scipy.fft import ifft def generate_waveforms(data: np.ndarray) -> np.ndarray: """ Generate waveforms from frequency domains :param data: frequency domains (where first n/2 examples consist of real values and the rest consists of imaginary values) :return: numpy array conta...
26.730769
105
0.722302
0
0
0
0
0
0
0
0
248
0.356835
eda47ef3a198b2afd2d1ca2fa747773c857b5cf8
3,745
py
Python
aiohttp_pydantic/oas/docstring_parser.py
HerrMuellerluedenscheid/aiohttp-pydantic
87b4487cc46213a3248807825e2e3e71413fa543
[ "MIT" ]
42
2020-11-18T16:14:45.000Z
2022-03-21T09:18:48.000Z
aiohttp_pydantic/oas/docstring_parser.py
HerrMuellerluedenscheid/aiohttp-pydantic
87b4487cc46213a3248807825e2e3e71413fa543
[ "MIT" ]
26
2020-11-15T08:27:09.000Z
2022-03-04T15:26:20.000Z
aiohttp_pydantic/oas/docstring_parser.py
HerrMuellerluedenscheid/aiohttp-pydantic
87b4487cc46213a3248807825e2e3e71413fa543
[ "MIT" ]
11
2020-11-24T22:13:35.000Z
2021-10-02T19:56:26.000Z
""" Utility to extract extra OAS description from docstring. """ import re import textwrap from typing import Dict, List class LinesIterator: def __init__(self, lines: str): self._lines = lines.splitlines() self._i = -1 def next_line(self) -> str: if self._i == len(self._lines) - 1: ...
27.335766
87
0.558344
551
0.14713
959
0.256075
0
0
0
0
762
0.203471
eda6101f4f3ce0ae4b05b44676ba1870709c8953
802
py
Python
ExerciciosPYTHON/PythonCeV/073.py
Samuel-Melo890/Python-Desafios
2abc7734d6a6c1f5ab67421f792d6889d93bac94
[ "MIT" ]
null
null
null
ExerciciosPYTHON/PythonCeV/073.py
Samuel-Melo890/Python-Desafios
2abc7734d6a6c1f5ab67421f792d6889d93bac94
[ "MIT" ]
2
2022-03-18T16:06:07.000Z
2022-03-18T16:55:29.000Z
ExerciciosPYTHON/PythonCeV/073.py
Samuel-Melo890/Python-Desafios
2abc7734d6a6c1f5ab67421f792d6889d93bac94
[ "MIT" ]
null
null
null
print('='*8,'Tuplas com Times de Futebol','='*8) cf = ('Palmeiras', 'Santos', 'Vasco da Gama', 'Grêmio', 'Flamengo', 'Corinthians', 'Internacional', 'Cruzeiro', 'São Paulo', 'Atlético Mineiro', 'Botafogo', 'Fluminense', 'Coritiba', 'Bahia', 'Goiás', 'Guarani', 'Sport', 'Portuguesa', 'Atlético Paranaense', 'Vitória') pr...
53.466667
268
0.660848
0
0
0
0
0
0
0
0
629
0.771779
eda7e04ad9c248cbb73643c80f0b53fa4f66d240
527
py
Python
setup.py
dcrowe/sdk-python
f8f069725a7beda67cb25f94425972913b08373e
[ "Apache-2.0" ]
null
null
null
setup.py
dcrowe/sdk-python
f8f069725a7beda67cb25f94425972913b08373e
[ "Apache-2.0" ]
null
null
null
setup.py
dcrowe/sdk-python
f8f069725a7beda67cb25f94425972913b08373e
[ "Apache-2.0" ]
null
null
null
from setuptools import setup setup( name='visual_regression_tracker', version='4.0.0', description='Open source, self hosted solution for visual testing ' 'and managing results of visual testing.', long_description=open('README.md').read(), long_description_content_type='text/markdo...
31
71
0.685009
0
0
0
0
0
0
0
0
277
0.525617
eda7fe44739cb06874629ff7fa3f82ea841088f1
423
py
Python
World 1/Exercise 31.py
NikiReis/Python--Exercises
2f50a3cd6900cec024edcf1a812d1cd86afcdea1
[ "MIT" ]
null
null
null
World 1/Exercise 31.py
NikiReis/Python--Exercises
2f50a3cd6900cec024edcf1a812d1cd86afcdea1
[ "MIT" ]
null
null
null
World 1/Exercise 31.py
NikiReis/Python--Exercises
2f50a3cd6900cec024edcf1a812d1cd86afcdea1
[ "MIT" ]
null
null
null
print("-"*14) print("Km's Calculation") print("-"*14) kms = int(input("How many kilometers did you drive ? ")) if kms<=200: price = kms*0.50 print("Price to be paied out equivalent\nto quantity of the kilometers that you have driven: R$ {}".format(price)) else: price = kms*0.45 print("Price...
35.25
119
0.661939
0
0
0
0
0
0
0
0
249
0.588652
eda80428d8aaafe609a0be6935df873454da8b92
10,224
py
Python
tests/test_objects.py
kipyin/phanpy
f66fb1b181aeec6183bb03bd748e6ed535496a54
[ "MIT" ]
null
null
null
tests/test_objects.py
kipyin/phanpy
f66fb1b181aeec6183bb03bd748e6ed535496a54
[ "MIT" ]
null
null
null
tests/test_objects.py
kipyin/phanpy
f66fb1b181aeec6183bb03bd748e6ed535496a54
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import pytest import os, sys file_path = os.path.dirname(os.path.abspath(__file__)) root_path = file_path.replace('/phanpy/tests', '') sys.path.append(root_path) if root_path not in sys.path else None import numpy as np from phanpy.core.objects import Status, Item, Move...
33.742574
83
0.624902
9,558
0.934859
238
0.023279
306
0.02993
0
0
876
0.085681
eda9ec61c9c268e74679c06d29ce37757b47bb1d
5,743
py
Python
Modules/Dependency/Metadata_Interpreter.py
dobedobedo/Parrot_Sequoia_Image_Handler
e8d44d88006cf1f4e597aac1523c6f4458534e5b
[ "MIT" ]
6
2018-06-27T10:13:29.000Z
2020-05-11T03:00:10.000Z
Modules/Dependency/Metadata_Interpreter.py
dobedobedo/Parrot_Sequoia_Image_Handler
e8d44d88006cf1f4e597aac1523c6f4458534e5b
[ "MIT" ]
null
null
null
Modules/Dependency/Metadata_Interpreter.py
dobedobedo/Parrot_Sequoia_Image_Handler
e8d44d88006cf1f4e597aac1523c6f4458534e5b
[ "MIT" ]
3
2017-09-25T12:46:38.000Z
2021-06-15T15:57:50.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Jun 23 16:08:19 2017 @author: uqytu1 """ import math import numpy as np import urllib.request import json import base64 import struct import datetime import pytz def GetLonLat(Metadata): Position = Metadata['GPSPosition'].split(',') Latitude = ...
34.596386
97
0.632596
0
0
0
0
0
0
0
0
957
0.166638
edabc77fd3da28138cd10a06ef81ba6b153764ea
453
py
Python
lectures/5_Image_Analysis/combine_color_image.py
jagar2/Summer_2020_MAT-395-495_Scientific-Data-Analysis-and-Computing
e4b831460bddd34e7ad1d8888327c8d85b80e35e
[ "BSD-3-Clause" ]
1
2021-11-10T15:34:37.000Z
2021-11-10T15:34:37.000Z
lectures/5_Image_Analysis/combine_color_image.py
jagar2/Summer_2020_MAT-395-495_Scientific-Data-Analysis-and-Computing
e4b831460bddd34e7ad1d8888327c8d85b80e35e
[ "BSD-3-Clause" ]
null
null
null
lectures/5_Image_Analysis/combine_color_image.py
jagar2/Summer_2020_MAT-395-495_Scientific-Data-Analysis-and-Computing
e4b831460bddd34e7ad1d8888327c8d85b80e35e
[ "BSD-3-Clause" ]
3
2020-08-06T15:11:50.000Z
2022-01-05T20:21:09.000Z
from skimage import draw red = np.zeros((300, 300)) green = np.zeros((300, 300)) blue = np.zeros((300, 300)) r, c = draw.circle(100, 100, 100) red[r, c] = 1 r, c = draw.circle(100, 200, 100) green[r, c] = 1 r, c = draw.circle(200, 150, 100) blue[r, c] = 1 f, axes = plt.subplots(1, 3) for (ax, channel) in zip(axes...
19.695652
51
0.600442
0
0
0
0
0
0
0
0
11
0.024283
edb02ecbb069aa18674ef4e8555933c211f6074c
1,398
py
Python
chapters/chapter_3/NN_yelp/main.py
Penguin-Run/PyTorchBook
a310246ffed33d53a70cd7f2fd971f1626dcbebf
[ "Apache-2.0" ]
null
null
null
chapters/chapter_3/NN_yelp/main.py
Penguin-Run/PyTorchBook
a310246ffed33d53a70cd7f2fd971f1626dcbebf
[ "Apache-2.0" ]
null
null
null
chapters/chapter_3/NN_yelp/main.py
Penguin-Run/PyTorchBook
a310246ffed33d53a70cd7f2fd971f1626dcbebf
[ "Apache-2.0" ]
null
null
null
from .training.ReviewClassifier import ReviewClassifier from .data_managing.Dataset import ReviewDataset from .training.hyperparameters import args from .testing import compute_loss_acc as loss_acc from .testing import predict_rating as predict from .testing import analizing as analyze if __name__ == '__main__': ...
41.117647
100
0.724607
0
0
0
0
0
0
0
0
275
0.194484
edb0ab27e8375216bb7fe46df1fbcdeb336314c4
6,573
py
Python
setup.py
hpleva/ai4materials
5b5548f4fbfd4751cd1f9d57cedaa1e1d7ca04b2
[ "Apache-2.0" ]
null
null
null
setup.py
hpleva/ai4materials
5b5548f4fbfd4751cd1f9d57cedaa1e1d7ca04b2
[ "Apache-2.0" ]
null
null
null
setup.py
hpleva/ai4materials
5b5548f4fbfd4751cd1f9d57cedaa1e1d7ca04b2
[ "Apache-2.0" ]
null
null
null
from setuptools import setup, find_packages, Extension # To use a consistent encoding from codecs import open # Other stuff import sys, os, fileinput import versioneer here = os.path.dirname(os.path.realpath(__file__)) def main(): # Start package setup # Get the long description from the README file wit...
42.681818
126
0.597596
0
0
0
0
0
0
0
0
4,731
0.719763
edb1c338921c46604a227fc5ad3a3537657d82d7
1,074
py
Python
zeekofile/_controllers/blog/permapage.py
cdarlint/zeekofile
e5c999f0adfa1837c255b856eb030fb6838b0ea1
[ "MIT" ]
1
2022-02-20T08:02:00.000Z
2022-02-20T08:02:00.000Z
zeekofile/_controllers/blog/permapage.py
cdarlint/zeekofile
e5c999f0adfa1837c255b856eb030fb6838b0ea1
[ "MIT" ]
1
2021-07-23T19:45:58.000Z
2021-07-23T19:45:58.000Z
zeekofile/_controllers/blog/permapage.py
cdarlint/zeekofile
e5c999f0adfa1837c255b856eb030fb6838b0ea1
[ "MIT" ]
null
null
null
from zeekofile.cache import zf import re blog = zf.config.controllers.blog def run(): write_permapages() def write_permapages(): "Write blog posts to their permalink locations" site_re = re.compile(zf.config.site.url, re.IGNORECASE) num_posts = len(blog.posts) for i, post in enumerate(blog.pos...
28.263158
83
0.587523
0
0
0
0
0
0
0
0
281
0.261639
edb1f4bb4d10e992c753da4af6fcdd517e93ba5c
132
py
Python
fundamentos-de-programacao/lista-15-05-19/Q1-RaizQuadrada.py
kbcvcbk/cesar-school
b857ac651175bd08551303a7e82d16c4a9f621d8
[ "MIT" ]
2
2020-05-14T00:29:38.000Z
2022-03-08T23:28:02.000Z
fundamentos-de-programacao/lista-15-05-19/Q1-RaizQuadrada.py
kbcvcbk/cesar-school
b857ac651175bd08551303a7e82d16c4a9f621d8
[ "MIT" ]
1
2022-03-02T11:26:37.000Z
2022-03-02T11:26:37.000Z
fundamentos-de-programacao/lista-15-05-19/Q1-RaizQuadrada.py
kbcvcbk/cesar-school
b857ac651175bd08551303a7e82d16c4a9f621d8
[ "MIT" ]
2
2020-11-03T09:36:27.000Z
2022-03-08T23:28:14.000Z
n = float(input("Digite o número: ")) b=2 dif=3.14 while dif >= 0.0001: p=(b+(n/b))/2 print("p é",p) b=p pq = p*p dif=abs(n-pq)
14.666667
37
0.55303
0
0
0
0
0
0
0
0
26
0.19403
edb20a4ffd43e59eea413125e997615b1fde62fd
2,045
py
Python
app.py
ZAD4YTV/extract-wifi-passwords-from-windows
89c8bec9861876e82fb5262540f53434b3f5fe1f
[ "MIT" ]
2
2020-12-22T06:05:06.000Z
2020-12-22T06:05:09.000Z
app.py
ZAD4YTV/extract-wifi-passwords-from-windows
89c8bec9861876e82fb5262540f53434b3f5fe1f
[ "MIT" ]
null
null
null
app.py
ZAD4YTV/extract-wifi-passwords-from-windows
89c8bec9861876e82fb5262540f53434b3f5fe1f
[ "MIT" ]
null
null
null
# Requirements import subprocess # Console print initial print('######################################################################') print('') print('######## ## ## ######## ### ######## ## ## ##') print('## ## ## ## ## ## ## ## ## ## ## ## ##') print('## ...
41.734694
166
0.446944
0
0
0
0
0
0
0
0
1,441
0.704645
edb23193c334891acc883361c3d8e788e913535e
633
py
Python
src/main/resources/opennlp.models/download_models.py
sully90/dp-search-service
efc6a94dad1c5b3fc898da9ced1606aa345c7ecd
[ "MIT" ]
null
null
null
src/main/resources/opennlp.models/download_models.py
sully90/dp-search-service
efc6a94dad1c5b3fc898da9ced1606aa345c7ecd
[ "MIT" ]
null
null
null
src/main/resources/opennlp.models/download_models.py
sully90/dp-search-service
efc6a94dad1c5b3fc898da9ced1606aa345c7ecd
[ "MIT" ]
null
null
null
#!/usr/bin/python import os def download_model(model_name): ''' Downloads a given model binary ''' print "Downloading ", model_name cmd = "wget http://opennlp.sourceforge.net/models-1.5/%s" % model_name os.system(cmd) if __name__ == "__main__": model_names = ["en-ner-dates.bin", "en-ner-l...
30.142857
102
0.630332
0
0
0
0
0
0
0
0
314
0.496051
edb2a9429239ad3822ac8af03b000d236f86beda
31,643
py
Python
python/nsc/nsc_instcal_sexdaophot.py
dnidever/noaosourcecatalog
bdd22e53da3ebb6e6c79d8cbe9e375562b09cfeb
[ "MIT" ]
4
2017-05-23T20:57:33.000Z
2018-01-30T22:51:42.000Z
python/nsc/nsc_instcal_sexdaophot.py
dnidever/noaosourcecatalog
bdd22e53da3ebb6e6c79d8cbe9e375562b09cfeb
[ "MIT" ]
null
null
null
python/nsc/nsc_instcal_sexdaophot.py
dnidever/noaosourcecatalog
bdd22e53da3ebb6e6c79d8cbe9e375562b09cfeb
[ "MIT" ]
1
2021-07-15T03:06:22.000Z
2021-07-15T03:06:22.000Z
#!/usr/bin/env python # # NSC_INSTCAL_SEXDAOPHOT.PY -- Run SExtractor and DAOPHOT on an exposure # from __future__ import print_function __authors__ = 'David Nidever <dnidever@noao.edu>' __version__ = '20180819' # yyyymmdd import os import sys import numpy as np import warnings from astropy.io import fits from astr...
38.078219
152
0.591821
28,667
0.905951
0
0
7,058
0.223051
0
0
8,702
0.275006
edb611f60f037176678c93c92c782533ab009fd9
165
py
Python
analysis/const.py
AgenttiX/pap328-project
0bb2b9dc3a63bcae5d6ae47aa48edb655763157e
[ "MIT" ]
null
null
null
analysis/const.py
AgenttiX/pap328-project
0bb2b9dc3a63bcae5d6ae47aa48edb655763157e
[ "MIT" ]
null
null
null
analysis/const.py
AgenttiX/pap328-project
0bb2b9dc3a63bcae5d6ae47aa48edb655763157e
[ "MIT" ]
null
null
null
import math # Constants ELEMENTARY_CHARGE = 1.602176634e-19 # Coulombs # Conversions ATM_TO_PA = 101325 MBAR_TO_PA = 100 STD_TO_FWHM = 2*math.sqrt(2*math.log(2))
16.5
47
0.757576
0
0
0
0
0
0
0
0
34
0.206061
edb648c98f0f42744495f4d789c1cca05e6c4704
486
py
Python
dhnx/helpers.py
rbv83/DHNx
e236d720c7ec3c0f400648b96141454557d35476
[ "MIT" ]
14
2020-06-25T14:03:21.000Z
2021-11-25T12:53:08.000Z
dhnx/helpers.py
rbv83/DHNx
e236d720c7ec3c0f400648b96141454557d35476
[ "MIT" ]
51
2020-02-19T14:42:38.000Z
2022-03-23T08:30:31.000Z
dhnx/helpers.py
oemof-heat/district_heating_simulation
edb5c9be17f74d7f200c1eb6a17000a26633bdc3
[ "MIT" ]
3
2020-10-23T15:54:11.000Z
2022-02-28T12:53:09.000Z
import addict class Dict(addict.Dict): def __init__(self, *args, **kwargs): super().__init__(self, *args, **kwargs) def __repr__(self): overview = ['* ' + str(key) for key, value in self.items()] return '\n'.join(overview) def sum_ignore_none(*items): not_none = [value for value...
21.130435
67
0.62963
241
0.495885
0
0
0
0
0
0
8
0.016461
edb79f71230ac5a199560bfdb6dae152e1a5031d
1,007
py
Python
angr-doc/examples/defcon2017quals_crackme2000/enlightenment/classify.py
Ruide/angr-dev
964dc80c758e25c698c2cbcc454ef5954c5fa0a0
[ "BSD-2-Clause" ]
null
null
null
angr-doc/examples/defcon2017quals_crackme2000/enlightenment/classify.py
Ruide/angr-dev
964dc80c758e25c698c2cbcc454ef5954c5fa0a0
[ "BSD-2-Clause" ]
null
null
null
angr-doc/examples/defcon2017quals_crackme2000/enlightenment/classify.py
Ruide/angr-dev
964dc80c758e25c698c2cbcc454ef5954c5fa0a0
[ "BSD-2-Clause" ]
null
null
null
import subprocess from glob import glob import re from collections import defaultdict import shutil import os import hashlib files = glob('enlightenment_dist/*') libraries = defaultdict(list) ldds = {} for f in files: try: ldd_out = subprocess.check_output(['ldd', f]) except subprocess.CalledProcessEr...
24.560976
203
0.60576
0
0
0
0
0
0
0
0
247
0.245283
edb8c9e216e31864005a5218bc360deec4e30ce5
270
py
Python
update-readme.py
jutge-org/j3-logos
f47dfc84e8a2a9f987fdb22c432b6a52893fe294
[ "Apache-2.0" ]
1
2020-12-29T12:19:23.000Z
2020-12-29T12:19:23.000Z
update-readme.py
jutge-org/j3-logos
f47dfc84e8a2a9f987fdb22c432b6a52893fe294
[ "Apache-2.0" ]
null
null
null
update-readme.py
jutge-org/j3-logos
f47dfc84e8a2a9f987fdb22c432b6a52893fe294
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import glob text = ''' # Logos for Jutge.org ''' for png in sorted(glob.glob('*.png')): text += '''- %s\n\n <a href='%s'><img src='%s' height='200'></a>\n\n''' % (png, png, png) with open('README.md', 'w') as file: file.write(text)
16.875
94
0.548148
0
0
0
0
0
0
0
0
137
0.507407
edb9060cb2e91122e01e0d89597323dc92dbbaa6
14,950
py
Python
adpkd_segmentation/datasets/datasets.py
kurtteichman/adpkd-segmentation-pytorch
20faedfd77aaa26cadfbe636092db3da0f257940
[ "MIT" ]
5
2021-07-09T16:10:56.000Z
2022-03-23T10:22:16.000Z
adpkd_segmentation/datasets/datasets.py
kurtteichman/adpkd-segmentation-pytorch
20faedfd77aaa26cadfbe636092db3da0f257940
[ "MIT" ]
3
2021-06-23T02:47:42.000Z
2022-02-04T22:43:27.000Z
adpkd_segmentation/datasets/datasets.py
aksg87/adpkd-segmentation-pytorch
9a22e06ab905bca456c978f3b40ea427499ccf7d
[ "MIT" ]
2
2021-06-05T22:19:29.000Z
2022-03-13T20:50:13.000Z
import json import numpy as np import torch from pathlib import Path import pandas as pd import pydicom from ast import literal_eval from adpkd_segmentation.data.data_utils import ( get_labeled, get_y_Path, int16_to_uint8, make_dcmdicts, path_2dcm_int16, path_2label, TKV_update, ) from adp...
30.572597
79
0.596321
14,454
0.966823
0
0
0
0
0
0
1,782
0.119197
edb92c5fd296cb3e07169dc79510c1f1c49d8cee
2,286
py
Python
sktime/utils/validation.py
TonyBagnall/sktime
837a77026be3e53511c3d6139ddad14a39351bf5
[ "BSD-3-Clause" ]
2
2019-08-19T13:59:21.000Z
2020-03-02T20:32:31.000Z
sktime/utils/validation.py
TonyBagnall/boss_fork
837a77026be3e53511c3d6139ddad14a39351bf5
[ "BSD-3-Clause" ]
null
null
null
sktime/utils/validation.py
TonyBagnall/boss_fork
837a77026be3e53511c3d6139ddad14a39351bf5
[ "BSD-3-Clause" ]
2
2019-08-24T12:06:15.000Z
2020-01-09T07:32:40.000Z
import numpy as np def check_ts_X_y(X, y): """Placeholder function for input validation. """ # TODO: add proper checks (e.g. check if input stuff is pandas full of objects) # currently it checks neither the data nor the datatype # return check_X_y(X, y, dtype=None, ensure_2d=False) return X, y ...
38.1
112
0.645232
0
0
0
0
0
0
0
0
1,484
0.649169
edb94af127b7b6cb84e9109091abb7f212cbe179
947
py
Python
main.py
Arcxdd/Kali-Docker
a59bfdc24dde3e8105762c6e44bd5a6115afd44d
[ "Unlicense" ]
null
null
null
main.py
Arcxdd/Kali-Docker
a59bfdc24dde3e8105762c6e44bd5a6115afd44d
[ "Unlicense" ]
null
null
null
main.py
Arcxdd/Kali-Docker
a59bfdc24dde3e8105762c6e44bd5a6115afd44d
[ "Unlicense" ]
null
null
null
import os import sys from halo import Halo spinner = Halo(text='Please wait...', spinner='dots') def main(): """Main program""" portsToExpose = str(input('Ports to expose [Default: 22 for SSH]: ')) print("Installing...\n") spinner.start() os.system("docker pull kalilinux/kali-ro...
22.547619
107
0.549102
0
0
0
0
0
0
0
0
376
0.397043
edb94d210e20eefd62f4198317637767af846a19
324
py
Python
mysite/migrations/0003_remove_blog_image.py
roku104/mysite
774c55751ac6f29c1fb07c4da72a5894c5cbaf19
[ "MIT" ]
1
2018-11-21T02:14:32.000Z
2018-11-21T02:14:32.000Z
mysite/migrations/0003_remove_blog_image.py
roku104/mysite
774c55751ac6f29c1fb07c4da72a5894c5cbaf19
[ "MIT" ]
null
null
null
mysite/migrations/0003_remove_blog_image.py
roku104/mysite
774c55751ac6f29c1fb07c4da72a5894c5cbaf19
[ "MIT" ]
null
null
null
# Generated by Django 2.1.1 on 2018-09-26 15:25 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('mysite', '0002_auto_20180912_1246'), ] operations = [ migrations.RemoveField( model_name='blog', name='image', ), ...
18
47
0.58642
239
0.737654
0
0
0
0
0
0
93
0.287037
edb9a342dd84b94be341c6a7b6d981951da4877d
1,098
py
Python
.vscode/compilers/pycompile.py
croghostrider/Loxone-Recovery
cb47a6fd8a685e5995f11e61f3a6e0126fb19828
[ "MIT" ]
1
2022-03-20T22:27:45.000Z
2022-03-20T22:27:45.000Z
.vscode/compilers/pycompile.py
croghostrider/Loxone-Recovery
cb47a6fd8a685e5995f11e61f3a6e0126fb19828
[ "MIT" ]
null
null
null
.vscode/compilers/pycompile.py
croghostrider/Loxone-Recovery
cb47a6fd8a685e5995f11e61f3a6e0126fb19828
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import shutil import subprocess import sys # ARGS fileDirname = sys.argv[1] fileBasename = sys.argv[2] workspaceFolder = sys.argv[3] # TRANSFORMATION relativeFileDirname = fileDirname[len(workspaceFolder)+1:] fileBasenameNoExtension = "".join(fileBasename.rsplit(".py", 1)) distpath =...
23.361702
71
0.652095
0
0
0
0
0
0
0
0
189
0.172131
edba4dad99f149168f42524be29efbe1763f78a1
1,430
py
Python
white-head-mountain/pcdn/mainpcdn.py
jiangwenfan/pythonScripts
c9004944f162af575e111522f98d4de4f59885e6
[ "Apache-2.0" ]
null
null
null
white-head-mountain/pcdn/mainpcdn.py
jiangwenfan/pythonScripts
c9004944f162af575e111522f98d4de4f59885e6
[ "Apache-2.0" ]
null
null
null
white-head-mountain/pcdn/mainpcdn.py
jiangwenfan/pythonScripts
c9004944f162af575e111522f98d4de4f59885e6
[ "Apache-2.0" ]
null
null
null
from hostNameHandle import hostNameHandle from gethostList import get_ips from getwechat import getProxyInfo from gethostNameIp import getIps from getFrequency import getFrequency from getDownloadAccount import getInfo from sendMessage import sendMessage hostName=input("主机名:") type = str(input("1 \"频繁掉线\" or ...
25.087719
53
0.723776
0
0
0
0
0
0
0
0
483
0.310411
edbce3d11b39d90338cc61b5efce850628014657
2,041
py
Python
automol/reac/_instab.py
snelliott/automol
d1f7d51c1bbe06ba7569ea7c75304618cebee198
[ "Apache-2.0" ]
2
2021-03-01T14:23:25.000Z
2021-11-28T19:17:08.000Z
automol/reac/_instab.py
snelliott/automol
d1f7d51c1bbe06ba7569ea7c75304618cebee198
[ "Apache-2.0" ]
1
2021-02-12T21:02:22.000Z
2021-02-12T21:35:33.000Z
automol/reac/_instab.py
snelliott/automol
d1f7d51c1bbe06ba7569ea7c75304618cebee198
[ "Apache-2.0" ]
6
2020-12-12T18:41:13.000Z
2021-11-11T20:12:14.000Z
""" Build unstable products """ from phydat import instab_fgrps import automol.graph from automol.reac._util import rxn_objs_from_zmatrix import automol.geom import automol.inchi import automol.zmat from automol.graph import radical_dissociation_prods from automol.graph import radical_group_dct def instability_prod...
30.462687
79
0.654581
0
0
0
0
0
0
0
0
491
0.240568
edbd959971b7596053c1f7e7cd04ec63a9bfa159
74,910
py
Python
tests/examples/minlplib/portfol_classical050_1.py
ouyang-w-19/decogo
52546480e49776251d4d27856e18a46f40c824a1
[ "MIT" ]
2
2021-07-03T13:19:10.000Z
2022-02-06T10:48:13.000Z
tests/examples/minlplib/portfol_classical050_1.py
ouyang-w-19/decogo
52546480e49776251d4d27856e18a46f40c824a1
[ "MIT" ]
1
2021-07-04T14:52:14.000Z
2021-07-15T10:17:11.000Z
tests/examples/minlplib/portfol_classical050_1.py
ouyang-w-19/decogo
52546480e49776251d4d27856e18a46f40c824a1
[ "MIT" ]
null
null
null
# MINLP written by GAMS Convert at 04/21/18 13:53:48 # # Equation counts # Total E G L N X C B # 104 52 0 52 0 0 0 0 # # Variable counts # x b i s1s s2s sc ...
82.409241
120
0.547764
0
0
0
0
0
0
0
0
699
0.009331
edbecb45eddc848fe9a6250e6a9425c696aee623
32
py
Python
vgc/DinosaursVsAirplanes/__main__.py
reedessick/video-game-camp
09a324279c5ea9de87080f122fe27e1ef83d5373
[ "MIT" ]
null
null
null
vgc/DinosaursVsAirplanes/__main__.py
reedessick/video-game-camp
09a324279c5ea9de87080f122fe27e1ef83d5373
[ "MIT" ]
null
null
null
vgc/DinosaursVsAirplanes/__main__.py
reedessick/video-game-camp
09a324279c5ea9de87080f122fe27e1ef83d5373
[ "MIT" ]
null
null
null
from . import game game.main()
8
18
0.6875
0
0
0
0
0
0
0
0
0
0
edbecc8726126a9bb26d9234cf7d31303aa4e928
6,012
py
Python
tests/test_select.py
vail130/norm
01a16d6c73c2c6fff92430ca2ca745b295de9a3a
[ "MIT" ]
null
null
null
tests/test_select.py
vail130/norm
01a16d6c73c2c6fff92430ca2ca745b295de9a3a
[ "MIT" ]
1
2016-02-10T00:43:15.000Z
2016-02-10T01:14:37.000Z
tests/test_select.py
vail130/norm
01a16d6c73c2c6fff92430ca2ca745b295de9a3a
[ "MIT" ]
1
2021-03-12T23:21:02.000Z
2021-03-12T23:21:02.000Z
from __future__ import absolute_import, unicode_literals import unittest from mason import Param, ANY, SELECT, COUNT, SUM, AND, OR, Table, NUMERIC, DATE, COALESCE, CASE class TheSelectClass(unittest.TestCase): def test_returns_string_for_select_query(self): purchases = Table('purchases') users =...
39.552632
116
0.585329
5,838
0.971058
0
0
0
0
0
0
1,752
0.291417
edbf18d39a72d2ddd9cc6e7041f08d4b4cebe521
302
py
Python
DesignPatterns/05_iterator/1_no_iterator/department_collection.py
eduardormonteiro/PythonPersonalLibrary
561733bb8305c4e25a08f99c28b60ec77251ad67
[ "MIT" ]
null
null
null
DesignPatterns/05_iterator/1_no_iterator/department_collection.py
eduardormonteiro/PythonPersonalLibrary
561733bb8305c4e25a08f99c28b60ec77251ad67
[ "MIT" ]
null
null
null
DesignPatterns/05_iterator/1_no_iterator/department_collection.py
eduardormonteiro/PythonPersonalLibrary
561733bb8305c4e25a08f99c28b60ec77251ad67
[ "MIT" ]
null
null
null
class Departments(object): _departments = [] def add_department(self, department): self._departments.append(department) def get_department(self, i): return self._departments[i] @property def departments_range(self): return (0, len(self._departments) - 1)
23.230769
46
0.665563
301
0.996689
0
0
89
0.294702
0
0
0
0
edc2a9f255a5bcdbe6de9a345b01330bea716cf9
37,250
py
Python
gridwxcomp/calc_bias_ratios.py
DRI-WSWUP/grid-et-bias
91998b5827a8069563394b797b253e33c546765f
[ "Apache-2.0" ]
13
2019-04-02T20:21:34.000Z
2022-01-26T22:45:04.000Z
gridwxcomp/calc_bias_ratios.py
DRI-WSWUP/grid-et-bias
91998b5827a8069563394b797b253e33c546765f
[ "Apache-2.0" ]
20
2019-02-27T22:40:13.000Z
2021-05-28T03:06:48.000Z
gridwxcomp/calc_bias_ratios.py
DRI-WSWUP/gridwxcomp
91998b5827a8069563394b797b253e33c546765f
[ "Apache-2.0" ]
6
2019-04-02T17:28:31.000Z
2022-01-29T14:07:25.000Z
# -*- coding: utf-8 -*- """ Calculate monthly bias ratios of variables from climate station to overlapping gridMET (or other gridded dataset) cells. Input file for this module must first be created by running :mod:`gridwxcomp.prep_input` followed by :mod:`gridwxcomp.download_gridmet_opendap`. Attributes: GRID...
46.330846
96
0.61694
0
0
0
0
0
0
0
0
20,675
0.555034
edc2c76812ee6c9585f9c137bdb157a3d16545e9
5,073
py
Python
fhirclient/models/attachment.py
mdx-dev/client-py
f6c16c9bd386c5b05d69753b89c6519d568814ac
[ "Apache-2.0" ]
null
null
null
fhirclient/models/attachment.py
mdx-dev/client-py
f6c16c9bd386c5b05d69753b89c6519d568814ac
[ "Apache-2.0" ]
null
null
null
fhirclient/models/attachment.py
mdx-dev/client-py
f6c16c9bd386c5b05d69753b89c6519d568814ac
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 4.0.0-a53ec6ee1b (http://hl7.org/fhir/StructureDefinition/Attachment) on 2019-01-22. # 2019, SMART Health IT. from . import element class Attachment(element.Element): """ C o n t e n t i n a f ...
12.464373
107
0.275774
4,746
0.935541
0
0
0
0
0
0
3,858
0.760497
edc4f04d08129c6528ed7f0c20d812230e0c3895
1,843
py
Python
wiiload/upload.py
fossabot/async-wiiload
a511ffe5646c2bd101a9e0ae064f6b3d35497fd3
[ "Apache-2.0" ]
null
null
null
wiiload/upload.py
fossabot/async-wiiload
a511ffe5646c2bd101a9e0ae064f6b3d35497fd3
[ "Apache-2.0" ]
1
2020-11-18T18:38:49.000Z
2020-11-18T18:38:49.000Z
wiiload/upload.py
fossabot/async-wiiload
a511ffe5646c2bd101a9e0ae064f6b3d35497fd3
[ "Apache-2.0" ]
1
2020-11-18T18:38:03.000Z
2020-11-18T18:38:03.000Z
import asyncio import os import struct import zlib from os import PathLike from typing import List WIILOAD_VERSION_MAJOR = 0 WIILOAD_VERSION_MINOR = 5 async def upload_bytes(dol: bytes, argv: List[str], host: str, port: int = 4299): """ Uploads a file it to a Wii. :param dol: The bytes of a file to uploa...
31.237288
91
0.669018
0
0
0
0
0
0
1,685
0.91427
791
0.429192
edc6534f0db68594afcf99358c2a9b3928d7a532
1,010
py
Python
81.py
brianfl/project-euler
9f83a3c2da04fd0801a4a575081add665edccd5f
[ "MIT" ]
null
null
null
81.py
brianfl/project-euler
9f83a3c2da04fd0801a4a575081add665edccd5f
[ "MIT" ]
null
null
null
81.py
brianfl/project-euler
9f83a3c2da04fd0801a4a575081add665edccd5f
[ "MIT" ]
null
null
null
with open('matrix.txt', 'r') as m: n = m.read().split('\n') matrix = [i.split(',') for i in n] del matrix[-1] for index1, value1 in enumerate(matrix): for index2, value2 in enumerate(value1): matrix[index1][index2] = int(value2) row_pos = len(matrix)-1 ind_pos = len(matrix[row_pos])-1 while r...
24.047619
71
0.582178
0
0
0
0
0
0
0
0
184
0.182178
edc7c2097af55e9aaf7fe9d4a5593d76f55f2e37
899
py
Python
WDCData/StockPankouDay.py
wangdecheng/QAStrategy
d970242ea61cff2f1a6f69545dc7f65e8efd1672
[ "MIT" ]
null
null
null
WDCData/StockPankouDay.py
wangdecheng/QAStrategy
d970242ea61cff2f1a6f69545dc7f65e8efd1672
[ "MIT" ]
null
null
null
WDCData/StockPankouDay.py
wangdecheng/QAStrategy
d970242ea61cff2f1a6f69545dc7f65e8efd1672
[ "MIT" ]
null
null
null
import pandas as pd from QUANTAXIS.QAUtil import ( DATABASE ) _table = DATABASE.stock_pankou_day date = '2021-11-30' # 选最后一天,因为是批量插入,有值就证明存在 def exists(code, field='turn'): data = _table.find_one({'code':code,'date':date}) if data is None: return False if data.get(field) is None: retu...
24.972222
70
0.648498
0
0
0
0
0
0
0
0
218
0.231668
edc8f195103066572e1257568eab242e02e23b02
1,472
py
Python
findance/entity/migrations/0001_initial.py
mccartnm/findance
5d8b980cbe3f0b3dbe5798a75f58b5749088331f
[ "MIT" ]
null
null
null
findance/entity/migrations/0001_initial.py
mccartnm/findance
5d8b980cbe3f0b3dbe5798a75f58b5749088331f
[ "MIT" ]
null
null
null
findance/entity/migrations/0001_initial.py
mccartnm/findance
5d8b980cbe3f0b3dbe5798a75f58b5749088331f
[ "MIT" ]
null
null
null
# Generated by Django 2.2 on 2019-04-26 15:52 from django.db import migrations, models import django.db.models.deletion import findance.abstract class Migration(migrations.Migration): initial = True dependencies = [ ('assets', '0001_initial'), ] operations = [ migrations.CreateMode...
35.047619
158
0.559103
1,323
0.898777
0
0
0
0
0
0
295
0.200408
edc957ed816ee1c41b0420f5364024791ce07016
576
py
Python
Registradora/Caixa registradora.py
gabrielsoaresg/Projetos-Python
7f05a000c30a03fb9fbdb0f493e0a996ef7258f1
[ "MIT" ]
null
null
null
Registradora/Caixa registradora.py
gabrielsoaresg/Projetos-Python
7f05a000c30a03fb9fbdb0f493e0a996ef7258f1
[ "MIT" ]
null
null
null
Registradora/Caixa registradora.py
gabrielsoaresg/Projetos-Python
7f05a000c30a03fb9fbdb0f493e0a996ef7258f1
[ "MIT" ]
null
null
null
print("\033[1m=-=" * 15) print("\033[1;32mLojas Tabajara\033[m". center(51)) print("=-=\033[m" * 15) cont = 1 somaP = 0 while True: p = float(input(f"Produto {cont}: R$ ")) cont += 1 somaP += p if p == 0: break print(f"\033[1;32mTotal: R${somaP:.2f}\033[m") pagamento = float(input("\033[1mDinhei...
27.428571
58
0.597222
0
0
0
0
0
0
0
0
239
0.413495
edcad0e725dcaee58a1b72be7bb3b88e8f32af90
3,196
py
Python
webserver.py
Ductapemaster/raspi_datalogger
7c5b54a6a7617fef816aa1410069fb755f167d13
[ "MIT" ]
null
null
null
webserver.py
Ductapemaster/raspi_datalogger
7c5b54a6a7617fef816aa1410069fb755f167d13
[ "MIT" ]
null
null
null
webserver.py
Ductapemaster/raspi_datalogger
7c5b54a6a7617fef816aa1410069fb755f167d13
[ "MIT" ]
null
null
null
from flask import Flask, render_template, request from flask_bootstrap import Bootstrap import json from datetime import datetime from influxdb import InfluxDBClient import secrets import settings influx_client = InfluxDBClient(secrets.influx_database_server, secrets.influx_database_port...
31.333333
122
0.431164
0
0
0
0
2,562
0.801627
0
0
625
0.195557