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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
db44a6bdcd485ae98f0bcb11e91bddb17022662f | 1,456 | py | Python | contacts/migrations_old/0006_data_status.py | I-TECH-UW/mwachx | e191755c3369208d678fceec68dbb4f5f51c453a | [
"Apache-2.0"
] | 3 | 2015-05-27T14:35:49.000Z | 2016-02-26T21:04:32.000Z | contacts/migrations/0006_data_status.py | tperrier/mwachx | 94616659dc29843e661b2ecc9a2e7f1d4e81b5a4 | [
"Apache-2.0"
] | 375 | 2015-01-31T10:08:34.000Z | 2021-06-10T19:44:21.000Z | contacts/migrations_old/0006_data_status.py | I-TECH-UW/mwachx | e191755c3369208d678fceec68dbb4f5f51c453a | [
"Apache-2.0"
] | 6 | 2016-01-10T19:52:41.000Z | 2020-06-15T22:07:24.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import itertools as it
from django.db import models, migrations
def convert_status(apps, schema_editor):
''' Migrate Visit.skipped and ScheduledPhoneCall.skipped -> status
(pending,missed,deleted,attended)
'''
Visit = apps.get_model(... | 30.333333 | 79 | 0.643544 |
db4545f1a4dfa83103a39912add856795ff6a347 | 813 | py | Python | core/tests/test_base_time_range_controller.py | One-Green/plant-keeper-master | 67101a4cc7070d26fd1685631a710ae9a60fc5e8 | [
"CC0-1.0"
] | 2 | 2022-02-04T17:52:38.000Z | 2022-02-04T17:52:40.000Z | core/tests/test_base_time_range_controller.py | shanisma/plant-keeper | 3ca92ae2d55544a301e1398496a08a45cca6d15b | [
"CC0-1.0"
] | 4 | 2021-06-16T20:01:50.000Z | 2022-03-09T20:17:53.000Z | core/tests/test_base_time_range_controller.py | shanisma/plant-keeper | 3ca92ae2d55544a301e1398496a08a45cca6d15b | [
"CC0-1.0"
] | 1 | 2021-06-27T10:45:36.000Z | 2021-06-27T10:45:36.000Z | import os
import sys
from datetime import time
import unittest
sys.path.append(
os.path.dirname(
os.path.dirname(os.path.join("..", "..", "..", os.path.dirname("__file__")))
)
)
from core.controller import BaseTimeRangeController
if __name__ == "__main__":
unittest.main()
| 26.225806 | 84 | 0.688807 |
db45d8bc1a8d49e33721d418ba06b6f827c48c0b | 4,098 | py | Python | generator_code/mp3_generator.py | jurganson/spingen | f8421a26356d0cd1d94a0692846791eb45fce6f5 | [
"MIT"
] | null | null | null | generator_code/mp3_generator.py | jurganson/spingen | f8421a26356d0cd1d94a0692846791eb45fce6f5 | [
"MIT"
] | null | null | null | generator_code/mp3_generator.py | jurganson/spingen | f8421a26356d0cd1d94a0692846791eb45fce6f5 | [
"MIT"
] | null | null | null | from gtts import gTTS as ttos
from pydub import AudioSegment
import os
| 54.64 | 175 | 0.708394 |
db4793142f42cba39f558b2249770456a14a7e8a | 600 | py | Python | relaax/algorithms/ddpg/parameter_server.py | deeplearninc/relaax | a0cf280486dc74dca3857c85ec0e4c34e88d6b2b | [
"MIT"
] | 71 | 2017-01-25T00:26:20.000Z | 2021-02-17T12:39:20.000Z | relaax/algorithms/ddpg/parameter_server.py | deeplearninc/relaax | a0cf280486dc74dca3857c85ec0e4c34e88d6b2b | [
"MIT"
] | 69 | 2017-01-23T19:29:23.000Z | 2018-08-21T13:26:39.000Z | relaax/algorithms/ddpg/parameter_server.py | deeplearninc/relaax | a0cf280486dc74dca3857c85ec0e4c34e88d6b2b | [
"MIT"
] | 13 | 2017-01-23T21:18:09.000Z | 2019-01-29T23:48:30.000Z | from __future__ import absolute_import
from relaax.server.parameter_server import parameter_server_base
from relaax.server.common import session
from . import ddpg_model
| 27.272727 | 69 | 0.745 |
db49fa274fd584b7dd27d84ca85b94655d65a8a2 | 6,946 | py | Python | scripts/make_VFS.py | nvoron23/brython | b1ce5fa39b5d38c0dde138b4e75723fbb3e574ab | [
"BSD-3-Clause"
] | 1 | 2015-11-06T09:32:34.000Z | 2015-11-06T09:32:34.000Z | scripts/make_VFS.py | nvoron23/brython | b1ce5fa39b5d38c0dde138b4e75723fbb3e574ab | [
"BSD-3-Clause"
] | null | null | null | scripts/make_VFS.py | nvoron23/brython | b1ce5fa39b5d38c0dde138b4e75723fbb3e574ab | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import json
import os
import pyminifier
try:
import io as StringIO
except ImportError:
import cStringIO as StringIO # lint:ok
# Check to see if slimit or some other minification library is installed and
# Set minify equal to slimit's minify function.
try:
import slimit
js_mi... | 36.177083 | 91 | 0.512093 |
db4a6abf2a3e16936115e864f7caf11878e6ba2c | 9,659 | py | Python | main.py | rcox771/spectrum_scanner | 71559d62ca9dc9f66d66b7ada4491de42c6cdd52 | [
"MIT"
] | null | null | null | main.py | rcox771/spectrum_scanner | 71559d62ca9dc9f66d66b7ada4491de42c6cdd52 | [
"MIT"
] | null | null | null | main.py | rcox771/spectrum_scanner | 71559d62ca9dc9f66d66b7ada4491de42c6cdd52 | [
"MIT"
] | null | null | null | from rtlsdr import RtlSdr
from contextlib import closing
from matplotlib import pyplot as plt
import numpy as np
from scipy.signal import spectrogram, windows
from scipy import signal
from skimage.io import imsave, imread
from datetime import datetime
import json
import os
from tqdm import tqdm
import time
from queue i... | 27.997101 | 104 | 0.576871 |
db4a75d192569c27cd0ea38a505083fba87c919d | 67 | py | Python | test/__init__.py | donbowman/rdflib | c1be731c8e6bbe997cc3f25890bbaf685499c517 | [
"BSD-3-Clause"
] | 1,424 | 2015-01-04T13:10:22.000Z | 2022-03-29T15:12:38.000Z | test/__init__.py | donbowman/rdflib | c1be731c8e6bbe997cc3f25890bbaf685499c517 | [
"BSD-3-Clause"
] | 1,148 | 2015-01-01T18:26:18.000Z | 2022-03-31T21:51:53.000Z | test/__init__.py | jjon/rdflib | 4c2ab7b392b353bf3c6088017ec9351ce8ac3db6 | [
"BSD-3-Clause"
] | 459 | 2015-01-03T14:41:34.000Z | 2022-03-14T22:06:47.000Z | #
import os
TEST_DIR = os.path.abspath(os.path.dirname(__file__))
| 13.4 | 53 | 0.746269 |
db4a91969cbd0645d892f196740aa9b468c864c7 | 7,333 | py | Python | examples/mnist1.py | braingineer/pyromancy | 7a7ab1a6835fd63b9153463dd08bb53630f15c62 | [
"MIT"
] | null | null | null | examples/mnist1.py | braingineer/pyromancy | 7a7ab1a6835fd63b9153463dd08bb53630f15c62 | [
"MIT"
] | 1 | 2021-03-25T22:13:53.000Z | 2021-03-25T22:13:53.000Z | examples/mnist1.py | braingineer/pyromancy | 7a7ab1a6835fd63b9153463dd08bb53630f15c62 | [
"MIT"
] | null | null | null | from __future__ import print_function
import argparse
import os
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
from torchvision import datasets, transforms
from tqdm import tqdm
from pyromancy import pyromq
from pyromancy.losses import LossGroup, NegativeLogLik... | 33.949074 | 92 | 0.571799 |
db4b0c2266fee61af6dfa6c16082c9e18c028c39 | 4,345 | py | Python | selfdrive/locationd/calibrationd.py | matthewklinko/openpilot | b0563a59684d0901f99abbb58ac1fbd729ded1f9 | [
"MIT"
] | 3 | 2019-06-29T08:32:58.000Z | 2019-09-06T15:58:03.000Z | selfdrive/locationd/calibrationd.py | matthewklinko/openpilot | b0563a59684d0901f99abbb58ac1fbd729ded1f9 | [
"MIT"
] | 1 | 2019-09-22T06:44:10.000Z | 2019-09-22T06:44:10.000Z | selfdrive/locationd/calibrationd.py | matthewklinko/openpilot | b0563a59684d0901f99abbb58ac1fbd729ded1f9 | [
"MIT"
] | 2 | 2020-03-18T02:56:23.000Z | 2020-05-12T16:22:31.000Z | #!/usr/bin/env python
import os
import copy
import json
import numpy as np
import selfdrive.messaging as messaging
from selfdrive.locationd.calibration_helpers import Calibration
from selfdrive.swaglog import cloudlog
from common.params import Params
from common.transformations.model import model_height
from common.tra... | 35.325203 | 105 | 0.711853 |
db4b58f91ffeef6d5055943e105969fe3018f79e | 24,453 | py | Python | hunter/main.py | datastax-labs/hunter | 3631cc3fa529991297a8b631bbae15b138cce307 | [
"Apache-2.0"
] | 17 | 2021-09-03T07:32:40.000Z | 2022-03-24T21:56:22.000Z | hunter/main.py | datastax-labs/hunter | 3631cc3fa529991297a8b631bbae15b138cce307 | [
"Apache-2.0"
] | 1 | 2021-12-02T14:05:07.000Z | 2021-12-02T14:05:07.000Z | hunter/main.py | datastax-labs/hunter | 3631cc3fa529991297a8b631bbae15b138cce307 | [
"Apache-2.0"
] | 2 | 2022-01-18T18:40:41.000Z | 2022-03-11T15:33:25.000Z | import argparse
import copy
import logging
import sys
from dataclasses import dataclass
from datetime import datetime, timedelta
from slack_sdk import WebClient
from typing import Dict, Optional, List
import pytz
from hunter import config
from hunter.attributes import get_back_links
from hunter.config import ConfigEr... | 38.630332 | 117 | 0.613953 |
db4c9fb7ae81031adc5833740cfc20ab17a83afb | 3,036 | py | Python | docs/python/conf.py | jun-yoon/onnxruntime | 806e24d5c69693533ed4b6fa56b84095efa5df70 | [
"MIT"
] | 2 | 2019-01-29T03:48:42.000Z | 2019-01-29T07:51:31.000Z | docs/python/conf.py | jun-yoon/onnxruntime | 806e24d5c69693533ed4b6fa56b84095efa5df70 | [
"MIT"
] | 2 | 2019-01-09T16:03:17.000Z | 2019-02-13T13:58:28.000Z | docs/python/conf.py | jun-yoon/onnxruntime | 806e24d5c69693533ed4b6fa56b84095efa5df70 | [
"MIT"
] | null | null | null | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
# -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
import os
import sys
import shutil
# Check these extensions were installed.
import sphinx_gallery.gen_gallery
# The package should be insta... | 29.192308 | 118 | 0.635705 |
db4cd73478117d82a5229f15076b8071351fd162 | 586 | py | Python | traffic_sim/__main__.py | ngngardner/toc_project | 15a111a2731b583f82e65c622d16d32af4fe3ae0 | [
"MIT"
] | null | null | null | traffic_sim/__main__.py | ngngardner/toc_project | 15a111a2731b583f82e65c622d16d32af4fe3ae0 | [
"MIT"
] | null | null | null | traffic_sim/__main__.py | ngngardner/toc_project | 15a111a2731b583f82e65c622d16d32af4fe3ae0 | [
"MIT"
] | null | null | null | """Traffic simulator code."""
import sys
from os import path
from traffic_sim.analysis import TrafficExperiment
from traffic_sim.console import console
if not __package__:
_path = path.realpath(path.abspath(__file__))
sys.path.insert(0, path.dirname(path.dirname(_path)))
def main():
"""Run code from CL... | 18.903226 | 57 | 0.643345 |
db4d954b047874012d94933f5000302aa9b31037 | 1,500 | py | Python | TSFpy/debug/sample_fibonacci.py | ooblog/TSF1KEV | f7d4b4ff88f52ba00b46eb53ed98f8ea62ec2f6d | [
"MIT"
] | null | null | null | TSFpy/debug/sample_fibonacci.py | ooblog/TSF1KEV | f7d4b4ff88f52ba00b46eb53ed98f8ea62ec2f6d | [
"MIT"
] | null | null | null | TSFpy/debug/sample_fibonacci.py | ooblog/TSF1KEV | f7d4b4ff88f52ba00b46eb53ed98f8ea62ec2f6d | [
"MIT"
] | null | null | null | #! /usr/bin/env python
# -*- coding: UTF-8 -*-
from __future__ import division,print_function,absolute_import,unicode_literals
import sys
import os
os.chdir(sys.path[0])
sys.path.append('/mnt/sda2/github/TSF1KEV/TSFpy')
from TSF_io import *
#from TSF_Forth import *
from TSF_shuffle import *
from TSF_match import *
fro... | 39.473684 | 315 | 0.675333 |
db4dff7ffc5831999b457d95fed00095a9bee6b8 | 6,545 | py | Python | Tomboy2Evernote.py | rguptan/Tomboy2Evernote | 2bee66537d080c13856811b806613ca6aaef8833 | [
"MIT"
] | null | null | null | Tomboy2Evernote.py | rguptan/Tomboy2Evernote | 2bee66537d080c13856811b806613ca6aaef8833 | [
"MIT"
] | null | null | null | Tomboy2Evernote.py | rguptan/Tomboy2Evernote | 2bee66537d080c13856811b806613ca6aaef8833 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: UTF-8 -*-
import re
import sys, getopt
import glob
import os
if __name__ == "__main__":
main(sys.argv[1:])
| 34.088542 | 119 | 0.60382 |
db4e4eef4ddc738259fac8554c6c1cde5bc457e8 | 1,873 | py | Python | demo.py | williamfzc/pyat | 4e9792d4bfdc119d910eb88cf8a13a0ab7848518 | [
"MIT"
] | 20 | 2018-11-01T03:49:56.000Z | 2020-07-23T12:19:20.000Z | demo.py | williamfzc/pyat | 4e9792d4bfdc119d910eb88cf8a13a0ab7848518 | [
"MIT"
] | 2 | 2018-12-28T05:40:47.000Z | 2019-05-20T02:23:29.000Z | demo.py | williamfzc/pyat | 4e9792d4bfdc119d910eb88cf8a13a0ab7848518 | [
"MIT"
] | 14 | 2018-11-01T09:01:38.000Z | 2021-06-09T07:40:45.000Z | from pyatool import PYAToolkit
# toolkit
# adb
PYAToolkit.bind_cmd(func_name='test_a', command='shell pm list package | grep google')
#
PYAToolkit.bind_func(real_func=test_b)
# log
PYAToolkit.switch_logger(True)
#
d = PYAToolkit('123456F')
assert d.is_connected()
#
# d = PYAToolkit('123456F', mode='remote')
... | 20.811111 | 100 | 0.767218 |
db4f84187c639afbc8e53e791899d9a207e520b3 | 1,791 | py | Python | nnlab/nn/graph.py | nlab-mpg/nnlab | 56aabb53fa7b86601b35c7b8c9e890d50e19d9af | [
"MIT"
] | null | null | null | nnlab/nn/graph.py | nlab-mpg/nnlab | 56aabb53fa7b86601b35c7b8c9e890d50e19d9af | [
"MIT"
] | null | null | null | nnlab/nn/graph.py | nlab-mpg/nnlab | 56aabb53fa7b86601b35c7b8c9e890d50e19d9af | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, division
from six.moves import xrange, zip
import tensorflow as tf
from .tensor import Tensor
| 33.166667 | 90 | 0.641541 |
db5061768015e77516d7fdac7ebe34947ba071f8 | 18,798 | py | Python | local-rotations.py | katiekruzan/masters-thesis | c9b89a0995957b5b50442b86ae8a38388f1fb720 | [
"MIT"
] | null | null | null | local-rotations.py | katiekruzan/masters-thesis | c9b89a0995957b5b50442b86ae8a38388f1fb720 | [
"MIT"
] | null | null | null | local-rotations.py | katiekruzan/masters-thesis | c9b89a0995957b5b50442b86ae8a38388f1fb720 | [
"MIT"
] | null | null | null | """
Here we're going to code for the local rotations. We're doing an object oriented approach
Left and right are in reference to the origin
"""
__version__ = 1.0
__author__ = 'Katie Kruzan'
import string # just to get the alphabet easily iterable
import sys # This just helps us in our printing
from typing import Di... | 36.500971 | 123 | 0.6223 |
db51ec07d8e04f942c3e7a0e0c331ea715cd23c8 | 19,075 | py | Python | PT-FROST/frost.py | EtienneDavid/FROST | 1cea124d69f07e3ac7e3ad074059d29c0849254c | [
"MIT"
] | 2 | 2020-12-21T12:46:06.000Z | 2021-03-02T08:28:15.000Z | PT-FROST/frost.py | yogsin/FROST | 1cea124d69f07e3ac7e3ad074059d29c0849254c | [
"MIT"
] | null | null | null | PT-FROST/frost.py | yogsin/FROST | 1cea124d69f07e3ac7e3ad074059d29c0849254c | [
"MIT"
] | 2 | 2020-12-20T15:04:24.000Z | 2021-11-21T12:29:02.000Z | import random
import argparse
import numpy as np
import pandas as pd
import os
import time
import string
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.utils.data import DataLoader
from tqdm import tqdm
from model import WideResnet
from cifar import get_train_loader, get_val_loader
from ... | 46.074879 | 131 | 0.618244 |
db52db9f4875bf2abe871f56389adc2f255c93ca | 8,456 | py | Python | Logistic Regression/main.py | Frightera/LR-and-NN-for-Cancer-Data | 54f8c9455af529c512efe012d8b3ed3f6b594a57 | [
"MIT"
] | 4 | 2021-03-10T22:18:35.000Z | 2022-03-06T15:37:23.000Z | Logistic Regression/main.py | Frightera/LR-From-Scratch | 54f8c9455af529c512efe012d8b3ed3f6b594a57 | [
"MIT"
] | null | null | null | Logistic Regression/main.py | Frightera/LR-From-Scratch | 54f8c9455af529c512efe012d8b3ed3f6b594a57 | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
import seaborn as sns
import matplotlib.pyplot as plt
data = pd.read_csv("data.csv")
data.info()
"""
Data columns (total 33 columns):
# Column Non-Null Count Dtype
--- ------ -------------- -----
0 id 569 no... | 35.830508 | 113 | 0.674078 |
db5470b1f6ebd8cb49e975c2e7b8774a4d607820 | 2,446 | py | Python | fine-tune/inference_embedding.py | LinHuiqing/nonparaSeq2seqVC_code | d40a0cb9dc11c77b8af56b8510e4ab041f2f2b25 | [
"MIT"
] | 199 | 2019-12-13T03:11:21.000Z | 2022-03-29T15:44:49.000Z | fine-tune/inference_embedding.py | LinHuiqing/nonparaSeq2seqVC_code | d40a0cb9dc11c77b8af56b8510e4ab041f2f2b25 | [
"MIT"
] | 39 | 2019-12-16T20:08:45.000Z | 2022-02-10T00:36:40.000Z | fine-tune/inference_embedding.py | LinHuiqing/nonparaSeq2seqVC_code | d40a0cb9dc11c77b8af56b8510e4ab041f2f2b25 | [
"MIT"
] | 57 | 2019-12-16T23:25:25.000Z | 2022-03-28T18:04:16.000Z | import os
import numpy as np
import torch
import argparse
from hparams import create_hparams
from model import lcm
from train import load_model
from torch.utils.data import DataLoader
from reader import TextMelIDLoader, TextMelIDCollate, id2sp
from inference_utils import plot_data
parser = argparse.ArgumentParser()
p... | 33.054054 | 89 | 0.688062 |
db555bcdcf43aa3bbda4391fd627c19482dc0997 | 68,250 | py | Python | dalme_app/migrations/0001_initial.py | DALME/dalme | 46f9a0011fdb75c5098b552104fc73b1062e16e9 | [
"BSD-3-Clause"
] | 6 | 2019-05-07T01:06:04.000Z | 2021-02-19T20:45:09.000Z | dalme_app/migrations/0001_initial.py | DALME/dalme | 46f9a0011fdb75c5098b552104fc73b1062e16e9 | [
"BSD-3-Clause"
] | 23 | 2018-09-14T18:01:42.000Z | 2021-12-29T17:25:18.000Z | dalme_app/migrations/0001_initial.py | DALME/dalme | 46f9a0011fdb75c5098b552104fc73b1062e16e9 | [
"BSD-3-Clause"
] | 1 | 2020-02-10T16:20:57.000Z | 2020-02-10T16:20:57.000Z | # Generated by Django 3.1.2 on 2020-11-29 13:25
import dalme_app.models._templates
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django_currentuser.middleware
import uuid
import wagtail.search.index
| 72.761194 | 257 | 0.636674 |
db55b37705e1ee35cb592342b49dbe69963ce12a | 105 | py | Python | django_app/DataEntrySystem/apps.py | Hezepeng/Financial-Acquisition-And-Editing-System | 0781101e596a31d90bcfa3d67622472c04c6149f | [
"MIT"
] | null | null | null | django_app/DataEntrySystem/apps.py | Hezepeng/Financial-Acquisition-And-Editing-System | 0781101e596a31d90bcfa3d67622472c04c6149f | [
"MIT"
] | null | null | null | django_app/DataEntrySystem/apps.py | Hezepeng/Financial-Acquisition-And-Editing-System | 0781101e596a31d90bcfa3d67622472c04c6149f | [
"MIT"
] | null | null | null | from django.apps import AppConfig
| 17.5 | 39 | 0.790476 |
db569a6325c560b769cb648e074b4a8fea4a1b00 | 3,954 | py | Python | bombgame/recursive_bt_maze.py | JeFaProductions/bombgame2 | fc2ca7c6606aecd2bec013ed307aa344a0adffc7 | [
"MIT"
] | null | null | null | bombgame/recursive_bt_maze.py | JeFaProductions/bombgame2 | fc2ca7c6606aecd2bec013ed307aa344a0adffc7 | [
"MIT"
] | 2 | 2019-04-04T13:53:11.000Z | 2019-11-28T17:02:00.000Z | bombgame/recursive_bt_maze.py | JeFaProductions/bombgame2 | fc2ca7c6606aecd2bec013ed307aa344a0adffc7 | [
"MIT"
] | null | null | null | # recursive_bt_maze.py
#
# Author: Jens Gansloser
# Created On: 16 Feb 2019
import os
import random
import numpy as np
| 28.861314 | 107 | 0.508346 |
db579a2c18ea2f40634d5108f68e0bca010002d0 | 5,608 | py | Python | KV_Reader.py | Nibuja05/KVConverter | 74f810df4ac82358f405eac9c2f56dce13b69302 | [
"MIT"
] | 2 | 2020-07-06T00:24:27.000Z | 2021-09-20T20:16:36.000Z | KV_Reader.py | Nibuja05/KVConverter | 74f810df4ac82358f405eac9c2f56dce13b69302 | [
"MIT"
] | null | null | null | KV_Reader.py | Nibuja05/KVConverter | 74f810df4ac82358f405eac9c2f56dce13b69302 | [
"MIT"
] | null | null | null |
import re
import math
def read_file(path):
#path = input("Please enter the path of the KV File:")
#path = "C:\\Steam\\steamapps\\common\\dota 2 beta\\game\\dota_addons\\heataria\\scripts\\npc\\abilities\\heataria_blaze_path.txt"
try:
file = open(path, "r")
text = file.read()
except FileNotFoundError:
tex... | 26.704762 | 131 | 0.684736 |
db587b6771666fcfb06093ced1689bf5fcf21ace | 3,476 | py | Python | scripts/updatetestsuiterefimages.py | PaulDoessel/appleseed | 142908e05609cd802b3ab937ff27ef2b73dd3088 | [
"MIT"
] | null | null | null | scripts/updatetestsuiterefimages.py | PaulDoessel/appleseed | 142908e05609cd802b3ab937ff27ef2b73dd3088 | [
"MIT"
] | null | null | null | scripts/updatetestsuiterefimages.py | PaulDoessel/appleseed | 142908e05609cd802b3ab937ff27ef2b73dd3088 | [
"MIT"
] | null | null | null | #!/usr/bin/python
#
# This source file is part of appleseed.
# Visit http://appleseedhq.net/ for additional information and resources.
#
# This software is released under the MIT license.
#
# Copyright (c) 2014-2016 Francois Beaune, The appleseedhq Organization
#
# Permission is hereby granted, free of charge, to any ... | 39.954023 | 99 | 0.592923 |
db58e1a129781006da344d7eb154b8ae346ffb44 | 4,244 | py | Python | raidquaza/poll/polls.py | Breee/raidquaza | 308d643e71eddf6f6dc432c01322a02d604ac70e | [
"MIT"
] | 2 | 2019-03-12T16:44:24.000Z | 2020-04-13T21:06:20.000Z | raidquaza/poll/polls.py | Breee/raidquaza | 308d643e71eddf6f6dc432c01322a02d604ac70e | [
"MIT"
] | 5 | 2019-07-13T00:11:42.000Z | 2021-07-29T11:55:39.000Z | raidquaza/poll/polls.py | Breee/raidquaza | 308d643e71eddf6f6dc432c01322a02d604ac70e | [
"MIT"
] | null | null | null | from typing import List, Any
import time
from discord import Embed, Reaction
from utils import uniquify
# EMOJIS regional_indicator_A to regional_indicator_T
reaction_emojies = ['\U0001F1E6',
'\U0001F1E7',
'\U0001F1E8',
'\U0001F1E9',
'\U00... | 41.203883 | 119 | 0.583176 |
db59947574fede70d491b2341a72a67a1fae3994 | 387 | py | Python | Python/Regex and Parsing/Validating and Parsing Email Addresses.py | pavstar619/HackerRank | 697ee46b6e621ad884a064047461d7707b1413cd | [
"MIT"
] | 61 | 2017-04-27T13:45:12.000Z | 2022-01-27T11:40:15.000Z | Python/Regex and Parsing/Validating and Parsing Email Addresses.py | fahad0193/HackerRank | eb6c95e16688c02921c1df6b6ea613667a251457 | [
"MIT"
] | 1 | 2017-06-24T14:16:06.000Z | 2017-06-24T14:16:28.000Z | Python/Regex and Parsing/Validating and Parsing Email Addresses.py | fahad0193/HackerRank | eb6c95e16688c02921c1df6b6ea613667a251457 | [
"MIT"
] | 78 | 2017-07-05T11:48:20.000Z | 2022-02-08T08:04:22.000Z | import email.utils as em
import re
if __name__ == '__main__':
obj = Main()
| 24.1875 | 87 | 0.4677 |
db5e2687d797299a53905ef091a13e9ae1079979 | 2,814 | py | Python | chatbot/train.py | codingsoo/virtaul_girlfriend | 7343cb95cc8ab345b735fdb07cfac8176cc41f76 | [
"Apache-2.0"
] | 4 | 2017-02-04T04:51:23.000Z | 2017-09-07T08:30:36.000Z | chatbot/train.py | HyungKen/Fake_love | 21397e346c933cbbace59a9bd26c06789ff5c172 | [
"MIT"
] | 11 | 2017-02-03T06:23:27.000Z | 2017-02-04T02:57:35.000Z | chatbot/train.py | HyungKen/Fake_love | 21397e346c933cbbace59a9bd26c06789ff5c172 | [
"MIT"
] | 7 | 2017-02-03T04:16:48.000Z | 2020-03-20T15:23:34.000Z | # -*- coding: utf-8 -*-
import tensorflow as tf
import random
import math
import os
from config import FLAGS
from model import Seq2Seq
from dialog import Dialog
if __name__ == "__main__":
tf.app.run()
| 31.617978 | 84 | 0.638237 |
db626314c3f603e0417951997ccb255cc99fda86 | 2,900 | py | Python | evaluation/dmp_behavior.py | rock-learning/approxik | 877d50d4d045457593a2fafefd267339a11de20f | [
"BSD-3-Clause"
] | 1 | 2020-03-27T01:53:57.000Z | 2020-03-27T01:53:57.000Z | evaluation/dmp_behavior.py | rock-learning/approxik | 877d50d4d045457593a2fafefd267339a11de20f | [
"BSD-3-Clause"
] | null | null | null | evaluation/dmp_behavior.py | rock-learning/approxik | 877d50d4d045457593a2fafefd267339a11de20f | [
"BSD-3-Clause"
] | 1 | 2020-12-18T02:09:21.000Z | 2020-12-18T02:09:21.000Z | # Author: Alexander Fabisch <Alexander.Fabisch@dfki.de>
import numpy as np
from bolero.representation import BlackBoxBehavior
from bolero.representation import DMPBehavior as DMPBehaviorImpl
| 28.712871 | 79 | 0.633103 |
db63fcffdf47984065f99dc88667ff4cd4c8ed3b | 489 | py | Python | logger.py | oxsoftdev/bitstampws-logger | 5597010cad53cd55e949235fbc191f8b1aad344d | [
"MIT"
] | null | null | null | logger.py | oxsoftdev/bitstampws-logger | 5597010cad53cd55e949235fbc191f8b1aad344d | [
"MIT"
] | null | null | null | logger.py | oxsoftdev/bitstampws-logger | 5597010cad53cd55e949235fbc191f8b1aad344d | [
"MIT"
] | null | null | null | import logging.config
import tornado
from bitstampws import Client as Websocket
import lib.configs.logging
from lib.subscribers import SimpleLoggerSubscriber
logging.config.dictConfig(lib.configs.logging.d)
if __name__ == '__main__':
with Websocket() as client:
with SimpleLoggerSubscriber(client):
... | 23.285714 | 56 | 0.678937 |
db643ae984ce9c0d8dd5236851af05c04998a27b | 6,746 | py | Python | engine/tree.py | dougsc/gp | d144dd1f483150b26483077e6e5032f4f21a6d4e | [
"Apache-2.0"
] | null | null | null | engine/tree.py | dougsc/gp | d144dd1f483150b26483077e6e5032f4f21a6d4e | [
"Apache-2.0"
] | null | null | null | engine/tree.py | dougsc/gp | d144dd1f483150b26483077e6e5032f4f21a6d4e | [
"Apache-2.0"
] | null | null | null | import random
from pprint import pformat
from copy import deepcopy
from utils.logger import GP_Logger
from terminal_set import TerminalSet
| 40.154762 | 141 | 0.67225 |
db64a112c82f9adeb1221b9eb9fef389c1ea9873 | 276 | py | Python | src/pyrin/packaging/__init__.py | wilsonGmn/pyrin | 25dbe3ce17e80a43eee7cfc7140b4c268a6948e0 | [
"BSD-3-Clause"
] | null | null | null | src/pyrin/packaging/__init__.py | wilsonGmn/pyrin | 25dbe3ce17e80a43eee7cfc7140b4c268a6948e0 | [
"BSD-3-Clause"
] | null | null | null | src/pyrin/packaging/__init__.py | wilsonGmn/pyrin | 25dbe3ce17e80a43eee7cfc7140b4c268a6948e0 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
packaging package.
"""
from pyrin.packaging.base import Package
| 16.235294 | 42 | 0.655797 |
db64c7127d561a8ba836f248730b0617bfb376eb | 368 | py | Python | chap7/heapq_merge.py | marble-git/python-laoqi | 74c4bb5459113e54ce64443e5da5a9c6a3052d6a | [
"MIT"
] | null | null | null | chap7/heapq_merge.py | marble-git/python-laoqi | 74c4bb5459113e54ce64443e5da5a9c6a3052d6a | [
"MIT"
] | null | null | null | chap7/heapq_merge.py | marble-git/python-laoqi | 74c4bb5459113e54ce64443e5da5a9c6a3052d6a | [
"MIT"
] | null | null | null | #coding:utf-8
'''
filename:heapq_merge.py
chap:7
subject:4-2
conditions:heapq.merge,sorted_list:lst1,lst2
lst3=merged_list(lst1,lst2) is sorted
solution:heapq.merge
'''
import heapq
lst1 = [1,3,5,7,9]
lst2 = [2,4,6,8]
if __name__ == '__main__':
lst3 = heapq.merge(lst1,lst... | 14.72 | 49 | 0.616848 |
db64f80a8ca557a291741dc4fd34c7d58b0c51f0 | 7,181 | py | Python | lib/googlecloudsdk/third_party/apis/serviceuser/v1/serviceuser_v1_client.py | kustodian/google-cloud-sdk | b6bae4137d4b58030adb3dcb1271216dfb19f96d | [
"Apache-2.0"
] | null | null | null | lib/googlecloudsdk/third_party/apis/serviceuser/v1/serviceuser_v1_client.py | kustodian/google-cloud-sdk | b6bae4137d4b58030adb3dcb1271216dfb19f96d | [
"Apache-2.0"
] | 11 | 2020-02-29T02:51:12.000Z | 2022-03-30T23:20:08.000Z | lib/googlecloudsdk/third_party/apis/serviceuser/v1/serviceuser_v1_client.py | kustodian/google-cloud-sdk | b6bae4137d4b58030adb3dcb1271216dfb19f96d | [
"Apache-2.0"
] | 1 | 2020-07-25T18:17:57.000Z | 2020-07-25T18:17:57.000Z | """Generated client library for serviceuser version v1."""
# NOTE: This file is autogenerated and should not be edited by hand.
from apitools.base.py import base_api
from googlecloudsdk.third_party.apis.serviceuser.v1 import serviceuser_v1_messages as messages
| 38.40107 | 179 | 0.709372 |
db654a453fae8398e895160a150ba86dbbcc20b1 | 1,966 | py | Python | bindings/python/examples/feature_example.py | lithathampan/wav2letter | 8abf8431d99da147cc4aefc289ad33626e13de6f | [
"BSD-3-Clause"
] | 1 | 2020-07-27T20:51:32.000Z | 2020-07-27T20:51:32.000Z | bindings/python/examples/feature_example.py | lithathampan/wav2letter | 8abf8431d99da147cc4aefc289ad33626e13de6f | [
"BSD-3-Clause"
] | null | null | null | bindings/python/examples/feature_example.py | lithathampan/wav2letter | 8abf8431d99da147cc4aefc289ad33626e13de6f | [
"BSD-3-Clause"
] | 1 | 2021-09-27T16:18:20.000Z | 2021-09-27T16:18:20.000Z | #!/usr/bin/env python3
# adapted from wav2letter/src/feature/test/MfccTest.cpp
import itertools as it
import os
import sys
from wav2letter.feature import FeatureParams, Mfcc
if __name__ == "__main__":
if len(sys.argv) != 2:
print(f"usage: {sys.argv[0]} feature_test_data_path", file=sys.stderr)
... | 30.71875 | 86 | 0.657172 |
db65bd23cd7117025faa3493e9ff0bcdc4419ed0 | 3,227 | py | Python | app.py | shreyashack/PY_Message_Decryption | 251a82ee26c529ff63668328230c9d494f4c9cfa | [
"MIT"
] | 1 | 2020-11-18T10:01:13.000Z | 2020-11-18T10:01:13.000Z | app.py | shreyashack/PY_Message_Decryption | 251a82ee26c529ff63668328230c9d494f4c9cfa | [
"MIT"
] | null | null | null | app.py | shreyashack/PY_Message_Decryption | 251a82ee26c529ff63668328230c9d494f4c9cfa | [
"MIT"
] | null | null | null | from tkinter import *
import onetimepad
if __name__ == "__main__":
root=Tk()
Message_Decrypt(root)
root.mainloop()
| 34.329787 | 154 | 0.577007 |
db66779a2882ba639d36d1d562ab73945afc92fc | 1,317 | py | Python | examples/rrbot_p2p_low_energy.py | abcamiletto/urdf2optcontrol | 39b3f761a4685cc7d50b48793b6b2906c89b1694 | [
"MIT"
] | null | null | null | examples/rrbot_p2p_low_energy.py | abcamiletto/urdf2optcontrol | 39b3f761a4685cc7d50b48793b6b2906c89b1694 | [
"MIT"
] | null | null | null | examples/rrbot_p2p_low_energy.py | abcamiletto/urdf2optcontrol | 39b3f761a4685cc7d50b48793b6b2906c89b1694 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from urdf2optcontrol import optimizer
from matplotlib import pyplot as plt
import pathlib
# URDF options
urdf_path = pathlib.Path(__file__).parent.joinpath('urdf', 'rrbot.urdf').absolute()
root = "link1"
end = "link3"
in_cond = [0] * 4
my_constraints = [my_constraint1, my_constraint2]
... | 21.241935 | 83 | 0.688686 |
db66ffcc00192c85b05965750638c6febdb95b51 | 15,803 | py | Python | SocketServer/apps/django-db-pool-master/dbpool/db/backends/postgresql_psycopg2/base.py | fqc/SocketSample_Mina_Socket | f5a7bb9bcd6052fe9e2a419c877073b32be4dc3d | [
"MIT"
] | 23 | 2015-01-28T13:31:24.000Z | 2020-03-11T18:11:45.000Z | SocketServer/apps/django-db-pool-master/dbpool/db/backends/postgresql_psycopg2/base.py | fqc/SocketSample_Mina_Socket | f5a7bb9bcd6052fe9e2a419c877073b32be4dc3d | [
"MIT"
] | 1 | 2015-04-30T12:01:00.000Z | 2015-04-30T13:33:38.000Z | SocketServer/apps/django-db-pool-master/dbpool/db/backends/postgresql_psycopg2/base.py | fqc/SocketSample_Mina_Socket | f5a7bb9bcd6052fe9e2a419c877073b32be4dc3d | [
"MIT"
] | 10 | 2015-05-27T12:52:19.000Z | 2021-01-13T13:35:11.000Z | """
Pooled PostgreSQL database backend for Django.
Requires psycopg 2: http://initd.org/projects/psycopg2
"""
from django import get_version as get_django_version
from django.db.backends.postgresql_psycopg2.base import \
DatabaseWrapper as OriginalDatabaseWrapper
from django.db.backends.signals import connection_c... | 44.767705 | 124 | 0.627729 |
db682583f2b418b3755329c159971a743aab45f6 | 589 | py | Python | backend/tests/test_api/test_api_auth.py | abodacs/fastapi-ml-skeleton | fa9a013d06e70cbaff9b9469db32246e41ce7e0f | [
"Apache-2.0"
] | null | null | null | backend/tests/test_api/test_api_auth.py | abodacs/fastapi-ml-skeleton | fa9a013d06e70cbaff9b9469db32246e41ce7e0f | [
"Apache-2.0"
] | 3 | 2020-03-16T22:07:31.000Z | 2021-06-25T15:33:38.000Z | backend/tests/test_api/test_api_auth.py | abodacs/fastapi-ml-skeleton | fa9a013d06e70cbaff9b9469db32246e41ce7e0f | [
"Apache-2.0"
] | null | null | null | # Skeleton
from fastapi_skeleton.core import messages
| 34.647059 | 86 | 0.728353 |
db68dcb7ad2aa62124559726780ed4b83d08a974 | 2,510 | py | Python | docker/cleanup_generators.py | hashnfv/hashnfv-nfvbench | 8da439b932537748d379c7bd3bdf560ef739b203 | [
"Apache-2.0"
] | null | null | null | docker/cleanup_generators.py | hashnfv/hashnfv-nfvbench | 8da439b932537748d379c7bd3bdf560ef739b203 | [
"Apache-2.0"
] | null | null | null | docker/cleanup_generators.py | hashnfv/hashnfv-nfvbench | 8da439b932537748d379c7bd3bdf560ef739b203 | [
"Apache-2.0"
] | 1 | 2019-07-14T14:54:15.000Z | 2019-07-14T14:54:15.000Z | # Copyright 2016 Cisco Systems, Inc. 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 requir... | 31.772152 | 88 | 0.622709 |
db693358ac60e6cb090422f46492eb2fca4b02bf | 2,434 | py | Python | object_detection/box_coders/mean_stddev_box_coder.py | ophirSarusi/TF_Object_Detection | e08ccd18c6f14586e048048a445cf5a10dbc7c4d | [
"MIT"
] | 59 | 2018-09-23T09:34:24.000Z | 2020-03-10T04:31:27.000Z | object_detection/box_coders/mean_stddev_box_coder.py | ophirSarusi/TF_Object_Detection | e08ccd18c6f14586e048048a445cf5a10dbc7c4d | [
"MIT"
] | 46 | 2018-07-10T23:53:15.000Z | 2022-02-06T03:31:47.000Z | object_detection/box_coders/mean_stddev_box_coder.py | ophirSarusi/TF_Object_Detection | e08ccd18c6f14586e048048a445cf5a10dbc7c4d | [
"MIT"
] | 58 | 2018-09-23T10:31:47.000Z | 2021-11-08T11:34:40.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... | 34.28169 | 81 | 0.671323 |
db6a7657f91ac9f80bc299ba273000b77ee1c28c | 490 | py | Python | storage/aug_buffer.py | nsortur/equi_rl | 83bd2ee9dfaab715e51b71ffff90ab990aaed5f8 | [
"MIT"
] | 9 | 2022-02-20T18:18:51.000Z | 2022-03-24T03:04:44.000Z | storage/aug_buffer.py | nsortur/equi_rl | 83bd2ee9dfaab715e51b71ffff90ab990aaed5f8 | [
"MIT"
] | null | null | null | storage/aug_buffer.py | nsortur/equi_rl | 83bd2ee9dfaab715e51b71ffff90ab990aaed5f8 | [
"MIT"
] | 2 | 2022-02-19T05:17:06.000Z | 2022-02-21T20:53:26.000Z | from storage.buffer import QLearningBuffer
from utils.torch_utils import ExpertTransition, augmentTransition
from utils.parameters import buffer_aug_type
| 25.789474 | 71 | 0.72449 |
db6aa256e7b60e45c5a9fbde4a14ff7a63101137 | 3,544 | py | Python | hlrl/torch/agents/wrappers/agent.py | Chainso/HLRL | 584f4ed2fa4d8b311a21dbd862ec9434833dd7cd | [
"MIT"
] | null | null | null | hlrl/torch/agents/wrappers/agent.py | Chainso/HLRL | 584f4ed2fa4d8b311a21dbd862ec9434833dd7cd | [
"MIT"
] | null | null | null | hlrl/torch/agents/wrappers/agent.py | Chainso/HLRL | 584f4ed2fa4d8b311a21dbd862ec9434833dd7cd | [
"MIT"
] | null | null | null | import torch
from typing import Any, Dict, List, OrderedDict, Tuple
from hlrl.core.agents import RLAgent
from hlrl.core.common.wrappers import MethodWrapper
| 27.905512 | 79 | 0.577596 |
db6b5bcc7b8379dc6e51f6670d5ff0c0d562417c | 649 | py | Python | PixivConstant.py | NHOrus/PixivUtil2 | facd6b1a21e4adf5edf1de4d4809e94e834246b6 | [
"BSD-2-Clause"
] | null | null | null | PixivConstant.py | NHOrus/PixivUtil2 | facd6b1a21e4adf5edf1de4d4809e94e834246b6 | [
"BSD-2-Clause"
] | null | null | null | PixivConstant.py | NHOrus/PixivUtil2 | facd6b1a21e4adf5edf1de4d4809e94e834246b6 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
PIXIVUTIL_VERSION = '20191220-beta1'
PIXIVUTIL_LINK = 'https://github.com/Nandaka/PixivUtil2/releases'
PIXIVUTIL_DONATE = 'https://bit.ly/PixivUtilDonation'
# Log Settings
PIXIVUTIL_LOG_FILE = 'pixivutil.log'
PIXIVUTIL_LOG_SIZE = 10485760
PIXIVUTIL_LOG_COUNT = 10
PIXIVUTIL_LOG_FORMAT = "%(asct... | 25.96 | 77 | 0.784284 |
db6b74f1fcb56888f5ba09963ca5bb5ed146122f | 8,906 | py | Python | dynamic_schemas/views.py | Threemusketeerz/DSystems | cd03ad2fa6b55872d57bfd01a4ac781aa5cbed8c | [
"BSD-2-Clause"
] | 1 | 2018-01-23T12:23:48.000Z | 2018-01-23T12:23:48.000Z | dynamic_schemas/views.py | Threemusketeerz/DSystems | cd03ad2fa6b55872d57bfd01a4ac781aa5cbed8c | [
"BSD-2-Clause"
] | 1 | 2018-01-19T08:43:59.000Z | 2018-01-23T12:20:43.000Z | dynamic_schemas/views.py | Threemusketeerz/DSystems | cd03ad2fa6b55872d57bfd01a4ac781aa5cbed8c | [
"BSD-2-Clause"
] | null | null | null | from django.http import Http404
from django.shortcuts import render, redirect, reverse
from django.views.generic import ListView
from django.contrib.auth.decorators import login_required
from django.contrib.auth.mixins import LoginRequiredMixin
from django.contrib.auth.models import User
from rest_framework import st... | 32.50365 | 79 | 0.613631 |
db6d31174807080316cb8c996b05fcc9ce69a5b7 | 40 | py | Python | my_classes/.history/ModulesPackages_PackageNamespaces/example3a/main_20210725220637.py | minefarmer/deep-Dive-1 | b0675b853180c5b5781888266ea63a3793b8d855 | [
"Unlicense"
] | null | null | null | my_classes/.history/ModulesPackages_PackageNamespaces/example3a/main_20210725220637.py | minefarmer/deep-Dive-1 | b0675b853180c5b5781888266ea63a3793b8d855 | [
"Unlicense"
] | null | null | null | my_classes/.history/ModulesPackages_PackageNamespaces/example3a/main_20210725220637.py | minefarmer/deep-Dive-1 | b0675b853180c5b5781888266ea63a3793b8d855 | [
"Unlicense"
] | null | null | null |
import os.path
import types
import sys
| 8 | 14 | 0.8 |
db6ec26c39a9f24fdd4d35e11407f85831432a46 | 24,215 | py | Python | api/views.py | conscience99/lyriko | 0ecc9e4d5ec8e3d746fcb286209a1e7993548a66 | [
"MIT"
] | null | null | null | api/views.py | conscience99/lyriko | 0ecc9e4d5ec8e3d746fcb286209a1e7993548a66 | [
"MIT"
] | null | null | null | api/views.py | conscience99/lyriko | 0ecc9e4d5ec8e3d746fcb286209a1e7993548a66 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from rest_framework import response
from rest_framework.serializers import Serializer
from . import serializers
from rest_framework.response import Response
from rest_framework.views import APIView
from django.views import View
from rest_framework import status
from . models import S... | 38.436508 | 356 | 0.617097 |
db7042284fa2b7f2b0d11816372b28c2a0aa4dd3 | 1,755 | py | Python | __dm__.py | AbhilashDatta/InstagramBot | 21916fcfc621ae3185df8494b12aa35743c165f8 | [
"MIT"
] | 12 | 2021-07-17T09:19:07.000Z | 2022-01-18T18:49:43.000Z | __dm__.py | kumarankm/InstagramBot | db08f0ae12f22b76d31f844a9ff7f037622e534f | [
"MIT"
] | 1 | 2021-08-12T22:04:07.000Z | 2021-08-13T14:14:10.000Z | __dm__.py | kumarankm/InstagramBot | db08f0ae12f22b76d31f844a9ff7f037622e534f | [
"MIT"
] | 8 | 2021-07-17T09:19:19.000Z | 2021-09-13T19:15:04.000Z | from selenium import webdriver
from time import sleep
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
from selenium.webdriver.support.wait import WebDriverWait
def Dm(driver,user,message):
''' This functio... | 56.612903 | 193 | 0.699145 |
db7052a530fb46c3cf9935b4a0d738b78df5d9c6 | 11,060 | py | Python | mashov.py | Yotamefr/BeitBiram | 84bd6abddf6ac865b502e0692561ee48d510ef7c | [
"MIT"
] | 1 | 2020-12-31T07:32:28.000Z | 2020-12-31T07:32:28.000Z | mashov.py | Yotamefr/BeitBiram | 84bd6abddf6ac865b502e0692561ee48d510ef7c | [
"MIT"
] | null | null | null | mashov.py | Yotamefr/BeitBiram | 84bd6abddf6ac865b502e0692561ee48d510ef7c | [
"MIT"
] | null | null | null | import requests
from datetime import datetime
import json
from extras import Day, Lesson
def send(self, url, method="get", params={}, files={}):
"""
Parameters
------------
url -> Represents the url to go to
method -> Represents the method to use. Can be either `get` or ... | 34.88959 | 168 | 0.499458 |
db705bf281d4e51af41d8edd5763fe3fe1cf7124 | 3,936 | py | Python | lab6.py | jschmidtnj/CS115 | fa2374f1ae9c9b63e572850a97af6086112d7a36 | [
"MIT"
] | null | null | null | lab6.py | jschmidtnj/CS115 | fa2374f1ae9c9b63e572850a97af6086112d7a36 | [
"MIT"
] | null | null | null | lab6.py | jschmidtnj/CS115 | fa2374f1ae9c9b63e572850a97af6086112d7a36 | [
"MIT"
] | 1 | 2022-01-03T01:44:39.000Z | 2022-01-03T01:44:39.000Z | '''
Created on 10/11/2017
@author: jschmid3@stevens.edu
Pledge: I pledge my honor that I have abided by the Stevens Honor System -Joshua Schmidt
CS115 - Lab 6
'''
def isOdd(n):
'''Returns whether or not the integer argument is odd.'''
#question 1: base_2 of 42: 101010
if n == 0:
return False
... | 33.641026 | 121 | 0.621697 |
db713485817468ad0752428e7966eefdca79459b | 4,233 | py | Python | clover.py | imyz/25000 | 909b6ceaf326138b0684e6600f347a38fe68f9f0 | [
"MIT"
] | 8 | 2015-08-10T03:43:06.000Z | 2022-01-18T21:23:31.000Z | clover.py | jcrocholl/25000 | 0607a9c2f5f16f0776d88e56460c6479921616cb | [
"MIT"
] | null | null | null | clover.py | jcrocholl/25000 | 0607a9c2f5f16f0776d88e56460c6479921616cb | [
"MIT"
] | 6 | 2015-06-28T20:02:01.000Z | 2018-01-06T17:37:38.000Z | #!/usr/bin/env python
from math import *
import sys
frame_width = 200
frame_height = 75
drill = 1.6 # 1/16 inch radius.
extrusion = 15
motor_screw_grid = 31
motor_cutout_diameter = 22
motor_width = 42.2
motor_offset = 35 # Motor face to extrusion.
motor_side, motor_bend = rotate(0, motor_offset + extrusion, 30)
m... | 25.196429 | 64 | 0.632412 |
db71abd1961c2779351e3978214beab6ac4916f7 | 915 | py | Python | scripts/mnist_inference.py | asiakaczmar/noise2self | 75daaf188c49bff0da22c235540da20f4eca9614 | [
"MIT"
] | null | null | null | scripts/mnist_inference.py | asiakaczmar/noise2self | 75daaf188c49bff0da22c235540da20f4eca9614 | [
"MIT"
] | null | null | null | scripts/mnist_inference.py | asiakaczmar/noise2self | 75daaf188c49bff0da22c235540da20f4eca9614 | [
"MIT"
] | null | null | null | import torch
from torchvision.datasets import MNIST
from torchvision import transforms
from torch.utils.data import DataLoader
from scripts.utils import SyntheticNoiseDataset
from models.babyunet import BabyUnet
CHECKPOINTS_PATH = '../checkpoints/'
mnist_test = MNIST('../inferred_data/MNIST', download=True,
... | 31.551724 | 73 | 0.696175 |
db73a20804b8cf971455500dd1ae60cb3137e6bf | 4,321 | py | Python | src/processing/augmentation.py | sdcubber/kaggle_carvana | 44f6c7f1e80be2caa3c7ad4c7fb69067af45fe8f | [
"MIT"
] | null | null | null | src/processing/augmentation.py | sdcubber/kaggle_carvana | 44f6c7f1e80be2caa3c7ad4c7fb69067af45fe8f | [
"MIT"
] | null | null | null | src/processing/augmentation.py | sdcubber/kaggle_carvana | 44f6c7f1e80be2caa3c7ad4c7fb69067af45fe8f | [
"MIT"
] | null | null | null | # Script for data augmentation functions
import numpy as np
from collections import deque
from PIL import Image
import cv2
from data.config import *
def imread_cv2(image_path):
"""
Read image_path with cv2 format (H, W, C)
if image is '.gif' outputs is a numpy array of {0,1}
"""
image_format = ima... | 36.931624 | 129 | 0.669058 |
db73bf308ebc49eac8469a2ce4652a4342c9902b | 295 | py | Python | substitute_finder/templatetags/substitute_finder_extra.py | tohugaby/pur_beurre_web | c3bdacee50907eea79821e7a8b3fe0f349719d88 | [
"MIT"
] | 1 | 2020-01-05T18:58:51.000Z | 2020-01-05T18:58:51.000Z | substitute_finder/templatetags/substitute_finder_extra.py | tohugaby/pur_beurre_web | c3bdacee50907eea79821e7a8b3fe0f349719d88 | [
"MIT"
] | 3 | 2020-06-05T18:35:47.000Z | 2021-06-10T20:32:44.000Z | substitute_finder/templatetags/substitute_finder_extra.py | tomlemeuch/pur_beurre_web | c3bdacee50907eea79821e7a8b3fe0f349719d88 | [
"MIT"
] | null | null | null | """
substitute_finder app custom templatetags module
"""
from django import template
register = template.Library()
| 17.352941 | 48 | 0.688136 |
db74905cc0d77c3c1aff987d3c4f57d66e26cc16 | 1,905 | py | Python | terrafirma/core/views/env.py | AlexandraAlter/django-terrafirma | afce5946f173aded2b4bfea78cf1b1034ec32272 | [
"MIT"
] | null | null | null | terrafirma/core/views/env.py | AlexandraAlter/django-terrafirma | afce5946f173aded2b4bfea78cf1b1034ec32272 | [
"MIT"
] | null | null | null | terrafirma/core/views/env.py | AlexandraAlter/django-terrafirma | afce5946f173aded2b4bfea78cf1b1034ec32272 | [
"MIT"
] | null | null | null | from django.shortcuts import render, redirect, get_object_or_404
from django.urls import reverse_lazy
from django import views
from django.views import generic as g_views
from django.views.generic import base as b_views, edit as e_views
from .. import forms, models
| 30.238095 | 85 | 0.67979 |
db752d631ccf3257bd962fe18b4682f3220a6fa6 | 178 | py | Python | geoviz/__init__.py | JustinGOSSES/geoviz | 159b0665d9efcffe46061313c15ad09ced840d2d | [
"MIT"
] | 6 | 2018-10-16T16:38:15.000Z | 2018-10-22T13:56:13.000Z | geoviz/__init__.py | JustinGOSSES/geoviz | 159b0665d9efcffe46061313c15ad09ced840d2d | [
"MIT"
] | 5 | 2018-10-14T21:49:00.000Z | 2018-11-12T18:59:48.000Z | geoviz/__init__.py | nathangeology/geoviz | 5643e8880b4ecc241d4f8806743bf0441dd435c1 | [
"MIT"
] | 1 | 2019-05-30T23:36:29.000Z | 2019-05-30T23:36:29.000Z | from load_las_data import LoadLasData
from altair_log_plot import AltAirLogPlot
from load_shapefile_data import LoadShpData
from alitair_well_location_map import WellLocationMap
| 35.6 | 53 | 0.910112 |
db76b4e07eb1879ec4babded5e9e5a77166fce6b | 424 | py | Python | core/data/utils.py | ahmad-PH/auto_lcc | 55a6ac0e92994f4eed9951a27b7aa0d834f9d804 | [
"MIT"
] | 2 | 2022-01-01T22:09:05.000Z | 2022-01-01T23:00:43.000Z | core/data/utils.py | ahmad-PH/auto_lcc | 55a6ac0e92994f4eed9951a27b7aa0d834f9d804 | [
"MIT"
] | null | null | null | core/data/utils.py | ahmad-PH/auto_lcc | 55a6ac0e92994f4eed9951a27b7aa0d834f9d804 | [
"MIT"
] | null | null | null | import pickle
import pandas as pd
from typing import List, Tuple
| 28.266667 | 79 | 0.660377 |
db7701392b667ccf9ad8bc520bcd09b9ef9711c5 | 608 | py | Python | apps/users/adminx.py | hhdMrLion/mxshop-api | 1472ad0d959439ea80c1f8d8bfd3629c15d3017d | [
"Apache-2.0"
] | null | null | null | apps/users/adminx.py | hhdMrLion/mxshop-api | 1472ad0d959439ea80c1f8d8bfd3629c15d3017d | [
"Apache-2.0"
] | null | null | null | apps/users/adminx.py | hhdMrLion/mxshop-api | 1472ad0d959439ea80c1f8d8bfd3629c15d3017d | [
"Apache-2.0"
] | null | null | null | import xadmin
from users.models import VerifyCode
from xadmin import views
xadmin.site.register(VerifyCode, VerifyCodeAdmin)
xadmin.site.register(views.BaseAdminView, BaseSetting)
xadmin.site.register(views.CommAdminView, GlobalSettings)
| 22.518519 | 58 | 0.708882 |
db777f4b56a68caa06eca0c2b86f08c668527cb4 | 2,717 | py | Python | Archive/train_cnn.py | Yeok-c/Urban-Sound-Classification | 98c46eb54266ef7b859d192e9bebe8a5d48e1708 | [
"Apache-2.0"
] | null | null | null | Archive/train_cnn.py | Yeok-c/Urban-Sound-Classification | 98c46eb54266ef7b859d192e9bebe8a5d48e1708 | [
"Apache-2.0"
] | null | null | null | Archive/train_cnn.py | Yeok-c/Urban-Sound-Classification | 98c46eb54266ef7b859d192e9bebe8a5d48e1708 | [
"Apache-2.0"
] | null | null | null | ### Load necessary libraries ###
import numpy as np
from sklearn.model_selection import KFold
from sklearn.metrics import accuracy_score
import tensorflow as tf
from tensorflow import keras
from sklearn.metrics import ConfusionMatrixDisplay
model = get_network()
model.summary()
### Train and evaluate via 10-Folds ... | 40.552239 | 123 | 0.670225 |
db77b07e8a875d39eb972f8b432c0f0db96a2c4f | 6,105 | py | Python | metaflow/plugins/kfp/tests/flows/resources_flow.py | zillow/metaflow | a42dc9eab04695f2b0a429874e607ed67d5a2b45 | [
"Apache-2.0"
] | 7 | 2020-07-24T17:07:58.000Z | 2021-05-19T21:47:12.000Z | metaflow/plugins/kfp/tests/flows/resources_flow.py | zillow/metaflow | a42dc9eab04695f2b0a429874e607ed67d5a2b45 | [
"Apache-2.0"
] | 55 | 2020-07-20T16:56:27.000Z | 2022-03-28T12:51:15.000Z | metaflow/plugins/kfp/tests/flows/resources_flow.py | zillow/metaflow | a42dc9eab04695f2b0a429874e607ed67d5a2b45 | [
"Apache-2.0"
] | 6 | 2020-10-15T18:38:35.000Z | 2021-06-20T03:05:43.000Z | import os
import pprint
import subprocess
import time
from typing import Dict, List
from kubernetes.client import (
V1EnvVar,
V1EnvVarSource,
V1ObjectFieldSelector,
V1ResourceFieldSelector,
)
from metaflow import FlowSpec, step, environment, resources, current
kubernetes_vars = get_env_vars(
{
... | 30.073892 | 71 | 0.591646 |
db79520622b9fcae917edbc819e1d1c2cae17bf8 | 5,951 | py | Python | src/nb_utils/general.py | redfrexx/osm_association_rules | 33975ce25047f9ab3b21e890bc5ed9bab59a0a2f | [
"BSD-3-Clause"
] | null | null | null | src/nb_utils/general.py | redfrexx/osm_association_rules | 33975ce25047f9ab3b21e890bc5ed9bab59a0a2f | [
"BSD-3-Clause"
] | null | null | null | src/nb_utils/general.py | redfrexx/osm_association_rules | 33975ce25047f9ab3b21e890bc5ed9bab59a0a2f | [
"BSD-3-Clause"
] | 2 | 2021-05-10T10:19:13.000Z | 2021-09-15T10:32:10.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Functions used for data handling
"""
__author__ = "Christina Ludwig, GIScience Research Group, Heidelberg University"
__email__ = "christina.ludwig@uni-heidelberg.de"
import os
import yaml
from shapely.geometry import box
import numpy as np
import pandas as pd
import g... | 40.482993 | 363 | 0.668627 |
db7ad2b92a14b73e461a5d252d3a7ab245920c9f | 3,922 | py | Python | keystoneclient/auth/identity/v3/federated.py | darren-wang/ksc | fd096540e8e57b6bd7c923f4cb4ad6616d103cc8 | [
"Apache-1.1"
] | 1 | 2019-09-11T11:56:19.000Z | 2019-09-11T11:56:19.000Z | tools/dockerize/webportal/usr/lib/python2.7/site-packages/keystoneclient/auth/identity/v3/federated.py | foruy/openflow-multiopenstack | 74140b041ac25ed83898ff3998e8dcbed35572bb | [
"Apache-2.0"
] | null | null | null | tools/dockerize/webportal/usr/lib/python2.7/site-packages/keystoneclient/auth/identity/v3/federated.py | foruy/openflow-multiopenstack | 74140b041ac25ed83898ff3998e8dcbed35572bb | [
"Apache-2.0"
] | null | null | null | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | 35.017857 | 77 | 0.63284 |
db7bb396855ddfa537f07ed9527e3bc449422f2a | 274 | py | Python | bin/Python27/Lib/site-packages/tables/utilsExtension.py | lefevre-fraser/openmeta-mms | 08f3115e76498df1f8d70641d71f5c52cab4ce5f | [
"MIT"
] | null | null | null | bin/Python27/Lib/site-packages/tables/utilsExtension.py | lefevre-fraser/openmeta-mms | 08f3115e76498df1f8d70641d71f5c52cab4ce5f | [
"MIT"
] | null | null | null | bin/Python27/Lib/site-packages/tables/utilsExtension.py | lefevre-fraser/openmeta-mms | 08f3115e76498df1f8d70641d71f5c52cab4ce5f | [
"MIT"
] | null | null | null | from warnings import warn
from tables.utilsextension import *
_warnmsg = ("utilsExtension is pending deprecation, import utilsextension instead. "
"You may use the pt2to3 tool to update your source code.")
warn(_warnmsg, DeprecationWarning, stacklevel=2)
| 39.142857 | 85 | 0.751825 |
db7cbd4afe84d62fa37ba5ff4602788af4116b50 | 802 | py | Python | config.py | iDevHank/i18n | ec731b5d6fab330a868ebb9f9e11ff1caef629ef | [
"MIT"
] | null | null | null | config.py | iDevHank/i18n | ec731b5d6fab330a868ebb9f9e11ff1caef629ef | [
"MIT"
] | null | null | null | config.py | iDevHank/i18n | ec731b5d6fab330a868ebb9f9e11ff1caef629ef | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# The format of your own localizable method.
# This is an example of '"string".localized'
SUFFIX = '.localized'
KEY = r'"(?:\\.|[^"\\])*"'
LOCALIZABLE_RE = r'%s%s' % (KEY, SUFFIX)
# Specify the path of localizable files in project.
LOCALIZABLE_FILE_PATH = ''
LOCALIZABLE_FILE_NAMES = ['Localizab... | 33.416667 | 71 | 0.634663 |
db7ce31c6a43ef5813c6d71caa6c1ea9655847e6 | 188 | py | Python | dashboard_analytics/tasks/transaction_processor.py | Astewart1510/pvt-algoranddashboard | 6fb6cf37b483339f24cc86f0a95fb2245be492ca | [
"MIT"
] | null | null | null | dashboard_analytics/tasks/transaction_processor.py | Astewart1510/pvt-algoranddashboard | 6fb6cf37b483339f24cc86f0a95fb2245be492ca | [
"MIT"
] | null | null | null | dashboard_analytics/tasks/transaction_processor.py | Astewart1510/pvt-algoranddashboard | 6fb6cf37b483339f24cc86f0a95fb2245be492ca | [
"MIT"
] | null | null | null | from dashboard_analytics.models import AccountType, InstrumentType, Account, Transaction | 37.6 | 88 | 0.787234 |
db7dbf749958b5f62cb5ff7deb97ed3b8e66afdf | 1,771 | py | Python | MuonGun/resources/scripts/histreduce.py | hschwane/offline_production | e14a6493782f613b8bbe64217559765d5213dc1e | [
"MIT"
] | 1 | 2020-12-24T22:00:01.000Z | 2020-12-24T22:00:01.000Z | MuonGun/resources/scripts/histreduce.py | hschwane/offline_production | e14a6493782f613b8bbe64217559765d5213dc1e | [
"MIT"
] | null | null | null | MuonGun/resources/scripts/histreduce.py | hschwane/offline_production | e14a6493782f613b8bbe64217559765d5213dc1e | [
"MIT"
] | 3 | 2020-07-17T09:20:29.000Z | 2021-03-30T16:44:18.000Z | #!/usr/bin/env python
"""
Add all (potentially gigantic) histograms in a group of files.
"""
import dashi
import tables
import os, sys, operator, shutil
from optparse import OptionParser
parser = OptionParser(usage="%prog [OPTIONS] infiles outfile", description=__doc__)
parser.add_option("--blocksize", dest="blocksi... | 31.070175 | 83 | 0.728967 |
db7e13c9886abafe9915d05b01539badc566a636 | 2,108 | py | Python | procrastinate/exceptions.py | ignaciocabeza/procrastinate | 95ba8c7acdf39aa7a1216c19903802b4f65b65d1 | [
"MIT"
] | null | null | null | procrastinate/exceptions.py | ignaciocabeza/procrastinate | 95ba8c7acdf39aa7a1216c19903802b4f65b65d1 | [
"MIT"
] | null | null | null | procrastinate/exceptions.py | ignaciocabeza/procrastinate | 95ba8c7acdf39aa7a1216c19903802b4f65b65d1 | [
"MIT"
] | null | null | null | import datetime
| 22.913043 | 84 | 0.675047 |
db7edea364132ddeeca859f58229a42b6ea2f0ae | 534 | py | Python | config/settings/local.py | vyshakTs/STORE_MANAGEMENT_SYSTEM | b6b82a02c0b512083c35a8656e191436552569a9 | [
"CC0-1.0"
] | null | null | null | config/settings/local.py | vyshakTs/STORE_MANAGEMENT_SYSTEM | b6b82a02c0b512083c35a8656e191436552569a9 | [
"CC0-1.0"
] | null | null | null | config/settings/local.py | vyshakTs/STORE_MANAGEMENT_SYSTEM | b6b82a02c0b512083c35a8656e191436552569a9 | [
"CC0-1.0"
] | null | null | null | from .base import *
DEBUG = True
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'SMS',
'USER': 'postgres',
'PASSWORD': 'password',
'HOST': 'localhost',
'PORT': '',
}... | 19.777778 | 64 | 0.617978 |
db7efcd3ba8afeab68792a36832e16d7660931cd | 1,097 | py | Python | question3.py | haojunsng/foodpanda-dataeng | b1b9a5c615113a1b8727c9c7dfe7ad3e50059428 | [
"MIT"
] | null | null | null | question3.py | haojunsng/foodpanda-dataeng | b1b9a5c615113a1b8727c9c7dfe7ad3e50059428 | [
"MIT"
] | null | null | null | question3.py | haojunsng/foodpanda-dataeng | b1b9a5c615113a1b8727c9c7dfe7ad3e50059428 | [
"MIT"
] | null | null | null | from functions import get_df, write_df
import geopy
from geopy import distance
"""
The function question3 takes in the latitude and longitude of potential distress locations,
and returns the nearest port with essential provisions such as water, fuel_oil and diesel.
"""
if __name__ == "__main__":
question3("foodpa... | 36.566667 | 143 | 0.71103 |
db808d5da5102b2f6086cfb47bc515cc8e85e1ce | 6,587 | py | Python | plugins/aea-cli-benchmark/aea_cli_benchmark/case_acn_communication/case.py | valory-xyz/agents-aea | 8f38efa96041b0156ed1ae328178e395dbabf2fc | [
"Apache-2.0"
] | null | null | null | plugins/aea-cli-benchmark/aea_cli_benchmark/case_acn_communication/case.py | valory-xyz/agents-aea | 8f38efa96041b0156ed1ae328178e395dbabf2fc | [
"Apache-2.0"
] | null | null | null | plugins/aea-cli-benchmark/aea_cli_benchmark/case_acn_communication/case.py | valory-xyz/agents-aea | 8f38efa96041b0156ed1ae328178e395dbabf2fc | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
#
# Copyright 2022 Valory AG
# Copyright 2018-2021 Fetch.AI Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance... | 30.780374 | 93 | 0.591316 |
db80f4198878eb7bd4645b74c2bea6781e993672 | 4,663 | py | Python | examples/pybullet/vr_kuka_setup.py | q4a/bullet3 | b077f74f5675fb9ca7bafd238f097f87bf6c0367 | [
"Zlib"
] | 12 | 2017-08-24T05:58:53.000Z | 2021-07-15T17:32:26.000Z | examples/pybullet/vr_kuka_setup.py | mofed8461/BulletPhysics-EarthQuakeSimulation | d411684d0293a18039d4180f5bc8dab33d063fce | [
"Zlib"
] | null | null | null | examples/pybullet/vr_kuka_setup.py | mofed8461/BulletPhysics-EarthQuakeSimulation | d411684d0293a18039d4180f5bc8dab33d063fce | [
"Zlib"
] | 2 | 2018-01-13T07:49:58.000Z | 2020-10-21T02:48:25.000Z | import pybullet as p
#p.connect(p.UDP,"192.168.86.100")
p.connect(p.SHARED_MEMORY)
p.resetSimulation()
objects = [p.loadURDF("plane.urdf", 0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,1.000000)]
objects = [p.loadURDF("samurai.urdf", 0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,1.000000)]
objects = [p... | 58.2875 | 121 | 0.749517 |
db83659c6d0ac1aa7ea69a87f18b5fd2867e5ddc | 3,651 | py | Python | genomics_algo/utilities/string_cmp.py | SvoONs/genomics_algo | 3174c1e9e685db12c5849ce5c7e3411f1922a4be | [
"MIT"
] | null | null | null | genomics_algo/utilities/string_cmp.py | SvoONs/genomics_algo | 3174c1e9e685db12c5849ce5c7e3411f1922a4be | [
"MIT"
] | 38 | 2020-11-11T21:26:56.000Z | 2021-03-20T23:25:49.000Z | genomics_algo/utilities/string_cmp.py | SvoONs/genomics_algo | 3174c1e9e685db12c5849ce5c7e3411f1922a4be | [
"MIT"
] | 1 | 2020-11-13T21:38:43.000Z | 2020-11-13T21:38:43.000Z | def longest_common_prefix(s1: str, s2: str) -> str:
"""
Finds the longest common prefix (substring) given two strings
s1: First string to compare
s2: Second string to compare
Returns:
Longest common prefix between s1 and s2
>>> longest_common_prefix("ACTA", "GCCT")
''
>>> long... | 28.97619 | 81 | 0.586962 |
db836b59bf5fd8d655aefd6e4020d61dca742b2c | 11,906 | py | Python | whyqd/parsers/wrangling_parser.py | whythawk/whyqd | 8ee41768d6788318458d41831200594b61777ccc | [
"BSD-3-Clause"
] | 17 | 2020-02-21T14:41:24.000Z | 2022-01-31T20:25:53.000Z | whyqd/parsers/wrangling_parser.py | whythawk/whyqd | 8ee41768d6788318458d41831200594b61777ccc | [
"BSD-3-Clause"
] | null | null | null | whyqd/parsers/wrangling_parser.py | whythawk/whyqd | 8ee41768d6788318458d41831200594b61777ccc | [
"BSD-3-Clause"
] | null | null | null | from __future__ import annotations
from typing import Optional, Dict, List, Union, Type, TYPE_CHECKING
from datetime import date, datetime
import pandas as pd
import numpy as np
import re
import locale
try:
locale.setlocale(locale.LC_ALL, "en_US.UTF-8")
except locale.Error:
# Readthedocs has a problem, but dif... | 38.160256 | 128 | 0.534184 |
db83c7d51feb9c6d2d6569094bc6e9a0eb64b2ce | 432 | py | Python | 0x02-python-import_modules/2-args.py | FatChicken277/holbertonschool-higher_level_programming | 520d6310a5e2a874f8c5f5185d0fb769b6412e7c | [
"CNRI-Python"
] | null | null | null | 0x02-python-import_modules/2-args.py | FatChicken277/holbertonschool-higher_level_programming | 520d6310a5e2a874f8c5f5185d0fb769b6412e7c | [
"CNRI-Python"
] | null | null | null | 0x02-python-import_modules/2-args.py | FatChicken277/holbertonschool-higher_level_programming | 520d6310a5e2a874f8c5f5185d0fb769b6412e7c | [
"CNRI-Python"
] | null | null | null | #!/usr/bin/python3
if __name__ == "__main__":
import sys
args(sys.argv)
| 25.411765 | 52 | 0.518519 |
db847e24bb7a6401d0b23e464a5ea391ad69edb8 | 89 | py | Python | taurex/data/profiles/__init__.py | rychallener/TauREx3_public | eb0eeeeca8f47e5e7d64d8d70b43a3af370b7677 | [
"BSD-3-Clause"
] | 10 | 2019-12-18T09:19:16.000Z | 2021-06-21T11:02:06.000Z | taurex/data/profiles/__init__.py | rychallener/TauREx3_public | eb0eeeeca8f47e5e7d64d8d70b43a3af370b7677 | [
"BSD-3-Clause"
] | 10 | 2020-03-24T18:02:15.000Z | 2021-08-23T20:32:09.000Z | taurex/data/profiles/__init__.py | rychallener/TauREx3_public | eb0eeeeca8f47e5e7d64d8d70b43a3af370b7677 | [
"BSD-3-Clause"
] | 8 | 2020-03-26T14:16:42.000Z | 2021-12-18T22:11:25.000Z | """
These modules contain sub-modules related to defining various profiles in a model
""" | 29.666667 | 81 | 0.775281 |
db8615ff95bbb42756435769fd0cc3b6f45c202c | 503 | py | Python | day-2/part_b.py | yuetsin/AoC | a7c5aea245ee6e77312352907fc4d1ac8eac2d3a | [
"CC0-1.0"
] | null | null | null | day-2/part_b.py | yuetsin/AoC | a7c5aea245ee6e77312352907fc4d1ac8eac2d3a | [
"CC0-1.0"
] | null | null | null | day-2/part_b.py | yuetsin/AoC | a7c5aea245ee6e77312352907fc4d1ac8eac2d3a | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python3
import re
lines = get_input()
count = 0
for line in lines:
lower, upper, char, password = re.split(r'-|: | ', line)
lower, upper = int(lower) - 1, int(upper) - 1
try:
if (password[lower] == char) ^ (password[upper] == char):
count += 1
except:
# do... | 20.12 | 67 | 0.554672 |
db867f235dd317f96cc49c5953d0a91169b52a4a | 3,977 | py | Python | src/tone.py | devanshslnk/HelpOff | bbeddc8bbb9d26bbc85f572d4769fc9fc92d5c4a | [
"MIT"
] | 2 | 2018-10-08T06:01:42.000Z | 2021-06-22T08:35:11.000Z | src/tone.py | devanshslnk/HelpOff | bbeddc8bbb9d26bbc85f572d4769fc9fc92d5c4a | [
"MIT"
] | null | null | null | src/tone.py | devanshslnk/HelpOff | bbeddc8bbb9d26bbc85f572d4769fc9fc92d5c4a | [
"MIT"
] | 3 | 2018-10-09T19:04:14.000Z | 2019-01-22T11:59:28.000Z | from __future__ import print_function
import json
from os.path import join, dirname
from watson_developer_cloud import ToneAnalyzerV3
from watson_developer_cloud.tone_analyzer_v3 import ToneInput
from pprint import pprint
# If service instance provides API key authentication
# service = ToneAnalyzerV3(
# ## url i... | 41.863158 | 755 | 0.681167 |
db8707b6679e39765f15056eb4cf61c517a7c762 | 9,435 | py | Python | hcloud/servers/domain.py | usmannasir/hcloud-python | 2a90551fb1c4d9d8a6aea5d8b6601a7c1360494d | [
"MIT"
] | 1 | 2019-10-23T01:00:08.000Z | 2019-10-23T01:00:08.000Z | hcloud/servers/domain.py | usmannasir/hcloud-python | 2a90551fb1c4d9d8a6aea5d8b6601a7c1360494d | [
"MIT"
] | null | null | null | hcloud/servers/domain.py | usmannasir/hcloud-python | 2a90551fb1c4d9d8a6aea5d8b6601a7c1360494d | [
"MIT"
] | 1 | 2019-06-19T17:53:10.000Z | 2019-06-19T17:53:10.000Z | # -*- coding: utf-8 -*-
from hcloud.core.domain import BaseDomain
from hcloud.helpers.descriptors import ISODateTime
| 30.337621 | 147 | 0.598728 |
db874da91d4a01e76e9bd18e99b073b83ddddd62 | 6,050 | py | Python | AutomationFramework/tests/interfaces/test_if_subif.py | sbarguil/Testing-framework | f3ef69f1c4f0aeafd02e222d846162c711783b15 | [
"Apache-2.0"
] | 1 | 2020-04-23T15:22:16.000Z | 2020-04-23T15:22:16.000Z | AutomationFramework/tests/interfaces/test_if_subif.py | sbarguil/Testing-framework | f3ef69f1c4f0aeafd02e222d846162c711783b15 | [
"Apache-2.0"
] | 44 | 2020-08-13T19:35:41.000Z | 2021-03-01T09:08:00.000Z | AutomationFramework/tests/interfaces/test_if_subif.py | sbarguil/Testing-framework | f3ef69f1c4f0aeafd02e222d846162c711783b15 | [
"Apache-2.0"
] | 6 | 2020-04-23T15:29:38.000Z | 2022-03-03T14:23:38.000Z | import pytest
from AutomationFramework.page_objects.interfaces.interfaces import Interfaces
from AutomationFramework.tests.base_test import BaseTest
| 72.02381 | 120 | 0.615372 |
db8779ff5f2f1e236cb5f3cfe96c63ab0de64f28 | 5,766 | py | Python | keystone/common/sql/migrate_repo/versions/001_add_initial_tables.py | sanket4373/keystone | 7cf7e7497729803f0470167315af9349b88fe0ec | [
"Apache-2.0"
] | null | null | null | keystone/common/sql/migrate_repo/versions/001_add_initial_tables.py | sanket4373/keystone | 7cf7e7497729803f0470167315af9349b88fe0ec | [
"Apache-2.0"
] | null | null | null | keystone/common/sql/migrate_repo/versions/001_add_initial_tables.py | sanket4373/keystone | 7cf7e7497729803f0470167315af9349b88fe0ec | [
"Apache-2.0"
] | null | null | null | # Copyright 2012 OpenStack Foundation
#
# 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... | 36.961538 | 79 | 0.620534 |
db885085ce16df342f9eaff7d4d323eb7dc1a85c | 15,984 | py | Python | boa3_test/examples/ico.py | DanPopa46/neo3-boa | e4ef340744b5bd25ade26f847eac50789b97f3e9 | [
"Apache-2.0"
] | null | null | null | boa3_test/examples/ico.py | DanPopa46/neo3-boa | e4ef340744b5bd25ade26f847eac50789b97f3e9 | [
"Apache-2.0"
] | null | null | null | boa3_test/examples/ico.py | DanPopa46/neo3-boa | e4ef340744b5bd25ade26f847eac50789b97f3e9 | [
"Apache-2.0"
] | null | null | null | from typing import Any, List, Union
from boa3.builtin import NeoMetadata, metadata, public
from boa3.builtin.contract import Nep17TransferEvent
from boa3.builtin.interop.blockchain import get_contract
from boa3.builtin.interop.contract import GAS, NEO, call_contract
from boa3.builtin.interop.runtime import calling_scr... | 33.509434 | 118 | 0.673486 |
db8859ce66203d2b7d494162105376778915c59d | 20,640 | py | Python | emotion_recognition.py | Partaourides/SERN | e6cc0a9a0cc3ac4b9a87e3ccdf5781792f85d718 | [
"MIT"
] | 10 | 2019-05-07T02:20:02.000Z | 2020-10-09T02:20:31.000Z | emotion_recognition.py | Partaourides/SERN | e6cc0a9a0cc3ac4b9a87e3ccdf5781792f85d718 | [
"MIT"
] | 2 | 2020-06-27T13:09:03.000Z | 2021-07-28T04:55:38.000Z | emotion_recognition.py | Partaourides/SERN | e6cc0a9a0cc3ac4b9a87e3ccdf5781792f85d718 | [
"MIT"
] | 1 | 2019-07-18T00:28:13.000Z | 2019-07-18T00:28:13.000Z | import os
# Restrict the script to run on CPU
os.environ ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID"
os.environ["CUDA_VISIBLE_DEVICES"] = ""
# Import Keras Tensoflow Backend
# from keras import backend as K
import tensorflow as tf
# Configure it to use only specific CPU Cores
config = tf.ConfigProto(intra_op_parallelism_thre... | 58.971429 | 128 | 0.463275 |
db889090b0a80e5b1926c1a844e99f3562167374 | 1,779 | py | Python | dashboard/rpc/alias.py | flaree/Toxic-Cogs | e33c3fe3a81c86ef3c89928b0a977fae13b916a9 | [
"MIT"
] | null | null | null | dashboard/rpc/alias.py | flaree/Toxic-Cogs | e33c3fe3a81c86ef3c89928b0a977fae13b916a9 | [
"MIT"
] | null | null | null | dashboard/rpc/alias.py | flaree/Toxic-Cogs | e33c3fe3a81c86ef3c89928b0a977fae13b916a9 | [
"MIT"
] | null | null | null | import discord
from redbot.core.bot import Red
from redbot.core.commands import commands
from redbot.core.utils.chat_formatting import humanize_list
from .utils import permcheck, rpccheck
| 32.345455 | 81 | 0.540191 |
db88f0e02537c3b3ec61c4fbd738d9a4605bd04a | 6,939 | py | Python | train.py | hafezgh/music_classification | 68fa398b7d4455475d07ae17c3b6b94459a96ac7 | [
"MIT"
] | 1 | 2021-07-15T18:47:02.000Z | 2021-07-15T18:47:02.000Z | train.py | hafezgh/music_classification | 68fa398b7d4455475d07ae17c3b6b94459a96ac7 | [
"MIT"
] | null | null | null | train.py | hafezgh/music_classification | 68fa398b7d4455475d07ae17c3b6b94459a96ac7 | [
"MIT"
] | null | null | null | import torch
DEVICE = 'cuda'
import math
import torch.optim as optim
from model import *
import os
import copy, gzip, pickle, time
data_dir = './drive/MyDrive/music_classification/Data'
classes = os.listdir(data_dir+'/images_original')
| 40.343023 | 118 | 0.607292 |
db8a89f5042414f5dbf4f47067a5e2131c5f76b8 | 1,881 | py | Python | dlk/core/schedulers/__init__.py | cstsunfu/dlkit | 69e0efd372fa5c0ae5313124d0ba1ef55b535196 | [
"Apache-2.0"
] | null | null | null | dlk/core/schedulers/__init__.py | cstsunfu/dlkit | 69e0efd372fa5c0ae5313124d0ba1ef55b535196 | [
"Apache-2.0"
] | null | null | null | dlk/core/schedulers/__init__.py | cstsunfu/dlkit | 69e0efd372fa5c0ae5313124d0ba1ef55b535196 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 cstsunfu. 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 law or agr... | 30.836066 | 87 | 0.701223 |
db8c048cea31b2b7400108b7a16a198179252811 | 24,553 | py | Python | projectq/backends/_qracksim/_simulator_test.py | vm6502q/ProjectQ | 1eac4b1f529551dfc1668443eba0c68dee54120b | [
"Apache-2.0"
] | 1 | 2019-08-29T19:04:27.000Z | 2019-08-29T19:04:27.000Z | projectq/backends/_qracksim/_simulator_test.py | vm6502q/ProjectQ | 1eac4b1f529551dfc1668443eba0c68dee54120b | [
"Apache-2.0"
] | 6 | 2019-01-27T17:05:25.000Z | 2020-02-24T00:15:59.000Z | projectq/backends/_qracksim/_simulator_test.py | vm6502q/ProjectQ | 1eac4b1f529551dfc1668443eba0c68dee54120b | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 ProjectQ-Framework (www.projectq.ch)
#
# 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 app... | 33.680384 | 115 | 0.629455 |
db8d61593765031987787c7a317fdb992cec34a2 | 779 | py | Python | app/deps.py | jshwi/jss | b9f29d47c63cd57d0efc1abec37152e97a92049f | [
"MIT"
] | 1 | 2021-11-07T14:50:00.000Z | 2021-11-07T14:50:00.000Z | app/deps.py | jshwi/jss | b9f29d47c63cd57d0efc1abec37152e97a92049f | [
"MIT"
] | 75 | 2021-09-30T03:33:57.000Z | 2022-03-29T08:42:07.000Z | app/deps.py | jshwi/jss | b9f29d47c63cd57d0efc1abec37152e97a92049f | [
"MIT"
] | null | null | null | """
app.deps
========
Register dependencies that are not part of a ``Flask`` extension.
"""
from flask import Flask
from redis import Redis
from rq import Queue
def init_app(app: Flask) -> None:
"""Register application helpers that are not ``Flask-`` extensions.
As these are not ``Flask`` extensions they do... | 29.961538 | 77 | 0.677792 |
db8f2e8178561d3e8ad8161722df05fc9f1febff | 55 | py | Python | uncertainty/util/__init__.py | sangdon/intern2020_cocal | 2f434b76fbf3426c6685fb92c5bbc2d32fcba7ba | [
"Apache-2.0"
] | null | null | null | uncertainty/util/__init__.py | sangdon/intern2020_cocal | 2f434b76fbf3426c6685fb92c5bbc2d32fcba7ba | [
"Apache-2.0"
] | 4 | 2020-09-02T04:20:06.000Z | 2022-02-10T02:13:35.000Z | uncertainty/util/__init__.py | sangdon/intern2020_cocal | 2f434b76fbf3426c6685fb92c5bbc2d32fcba7ba | [
"Apache-2.0"
] | 1 | 2020-08-31T16:17:28.000Z | 2020-08-31T16:17:28.000Z | from util.args import *
from util.logger import Logger
| 18.333333 | 30 | 0.8 |
db8f8bf38af010e37a76dcb939676a34f09f75d2 | 1,693 | py | Python | com_reader.py | plusterm/plusterm | 45e9382accdaae7d51c65cab77e571bc6d264936 | [
"MIT"
] | 2 | 2018-01-10T16:20:45.000Z | 2018-01-16T12:04:13.000Z | com_reader.py | plusterm/plusterm | 45e9382accdaae7d51c65cab77e571bc6d264936 | [
"MIT"
] | 14 | 2018-01-10T12:56:43.000Z | 2018-05-11T16:28:31.000Z | com_reader.py | plusterm/plusterm | 45e9382accdaae7d51c65cab77e571bc6d264936 | [
"MIT"
] | null | null | null | # from wx.lib.pubsub import pub
from pubsub import pub
import serial
import threading
import queue
import time
| 29.701754 | 74 | 0.517425 |
db8ff673815400dfc9c26d89afa7b79ffbf19f2f | 1,032 | py | Python | docker/app/app.py | ganeshkumarsv/datadog-cloudfoundry-buildpack | 7c622dfc7990da83e5dfa4f474878a642fd40fd3 | [
"Apache-2.0"
] | 5 | 2018-04-19T18:33:06.000Z | 2021-05-13T03:19:31.000Z | docker/app/app.py | ganeshkumarsv/datadog-cloudfoundry-buildpack | 7c622dfc7990da83e5dfa4f474878a642fd40fd3 | [
"Apache-2.0"
] | 24 | 2018-05-04T13:42:24.000Z | 2021-12-13T12:18:53.000Z | docker/app/app.py | ganeshkumarsv/datadog-cloudfoundry-buildpack | 7c622dfc7990da83e5dfa4f474878a642fd40fd3 | [
"Apache-2.0"
] | 14 | 2018-05-04T13:29:34.000Z | 2022-02-22T17:41:20.000Z | from flask import Flask
from datadog import statsd
import logging
import os
# This is a small example application
# It uses tracing and dogstatsd on a sample flask application
log = logging.getLogger("app")
app = Flask(__name__)
# The app has two routes, a basic endpoint and an exception endpoint
# This is meant ... | 27.891892 | 83 | 0.670543 |
db9205da95b6b253dd5132561aaf107f9a429836 | 1,135 | py | Python | Data Structure using Python/Linked_List/2linked_list1.py | shubhamsah/OpenEDU | a4c68d05f67e7ce6d2305f4ca1567b8f4e95b835 | [
"MIT"
] | 1 | 2020-05-29T05:19:37.000Z | 2020-05-29T05:19:37.000Z | Data Structure using Python/Linked_List/2linked_list1.py | Mithilesh1609/OpenEDU | 85fa1f29285ab1e079e93f6ede3b0d5196ed9cd9 | [
"MIT"
] | null | null | null | Data Structure using Python/Linked_List/2linked_list1.py | Mithilesh1609/OpenEDU | 85fa1f29285ab1e079e93f6ede3b0d5196ed9cd9 | [
"MIT"
] | 1 | 2020-05-09T07:09:11.000Z | 2020-05-09T07:09:11.000Z | # Lets create a linked list that has the following elements
'''
1. FE
2. SE
3. TE
4. BE
'''
# Creating a Node class to create individual Nodes
number_list= LinkedList()
number_list.add("FE")
number_list.add("SE")
number_list.add("TE")
number_list.add("BE")
| 19.237288 | 61 | 0.572687 |
db92111d1426d48f852fa3b382344c31b99bb952 | 2,446 | py | Python | monai/networks/blocks/selfattention.py | function2-llx/MONAI | 4cddaa830b61b88ec78e089bb5f21e05bb1a78f4 | [
"Apache-2.0"
] | 1 | 2022-03-16T01:18:43.000Z | 2022-03-16T01:18:43.000Z | monai/networks/blocks/selfattention.py | function2-llx/MONAI | 4cddaa830b61b88ec78e089bb5f21e05bb1a78f4 | [
"Apache-2.0"
] | null | null | null | monai/networks/blocks/selfattention.py | function2-llx/MONAI | 4cddaa830b61b88ec78e089bb5f21e05bb1a78f4 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) MONAI Consortium
# 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, so... | 38.825397 | 114 | 0.656582 |
db933a7c4e56e24f7c3bf21ad73b25c489317eb1 | 1,642 | py | Python | api/tests/opentrons/commands/test_protocol_commands.py | mrakitin/opentrons | d9c7ed23d13cdb62bd1bc397dc2871d4bd5b77e9 | [
"Apache-2.0"
] | null | null | null | api/tests/opentrons/commands/test_protocol_commands.py | mrakitin/opentrons | d9c7ed23d13cdb62bd1bc397dc2871d4bd5b77e9 | [
"Apache-2.0"
] | null | null | null | api/tests/opentrons/commands/test_protocol_commands.py | mrakitin/opentrons | d9c7ed23d13cdb62bd1bc397dc2871d4bd5b77e9 | [
"Apache-2.0"
] | null | null | null | import pytest
from opentrons.commands import protocol_commands
def test_delay_with_message():
"""It should allow a message to be appended to the delay text."""
command = protocol_commands.delay(seconds=1, minutes=1, msg="Waiting...")
assert command["payload"]["text"] == (
"Delaying for 1 minutes... | 35.695652 | 77 | 0.596224 |
db9557d7a7cbb9a18b934e17eeb9d696dbc28b20 | 1,467 | py | Python | tests/test_histogram_source.py | ess-dmsc/just-bin-it | 8fcd03337a8a88087f25c510c589d482bdd9e4ad | [
"BSD-2-Clause"
] | null | null | null | tests/test_histogram_source.py | ess-dmsc/just-bin-it | 8fcd03337a8a88087f25c510c589d482bdd9e4ad | [
"BSD-2-Clause"
] | 23 | 2018-12-04T11:50:37.000Z | 2022-03-17T11:30:39.000Z | tests/test_histogram_source.py | ess-dmsc/just-bin-it | 8fcd03337a8a88087f25c510c589d482bdd9e4ad | [
"BSD-2-Clause"
] | 2 | 2019-07-24T11:13:41.000Z | 2020-08-04T18:33:22.000Z | from unittest.mock import patch
import pytest
from just_bin_it.endpoints.sources import HistogramSource
from tests.doubles.consumer import StubConsumer
TEST_MESSAGE = b"this is a byte message"
INVALID_FB = b"this is an invalid fb message"
| 30.5625 | 87 | 0.69666 |
db95ca16068801b73d6de76c353700c64c6cc5f8 | 3,558 | py | Python | lctools/shortcuts.py | novel/lc-tools | 1b9032357e2e87aebd76d87664077caa5747c220 | [
"Apache-2.0"
] | 5 | 2015-03-24T11:04:18.000Z | 2021-07-11T00:06:44.000Z | lctools/shortcuts.py | novel/lc-tools | 1b9032357e2e87aebd76d87664077caa5747c220 | [
"Apache-2.0"
] | null | null | null | lctools/shortcuts.py | novel/lc-tools | 1b9032357e2e87aebd76d87664077caa5747c220 | [
"Apache-2.0"
] | null | null | null | import getopt
import sys
from libcloud.compute.types import NodeState
from lc import get_lc
from printer import Printer
def lister_main(what, resource=None,
extension=False, supports_location=False, **kwargs):
"""Shortcut for main() routine for lister
tools, e.g. lc-SOMETHING-list
@param what: ... | 28.693548 | 88 | 0.606239 |
db97ce46b14abaf409f42c8462a567f6cfb0edfc | 31,396 | py | Python | tests/test_flash_vl.py | andr1976/thermo | 42d10b3702373aacc88167d4046ea9af92abd570 | [
"MIT"
] | 380 | 2016-07-04T09:45:20.000Z | 2022-03-20T18:09:45.000Z | tests/test_flash_vl.py | andr1976/thermo | 42d10b3702373aacc88167d4046ea9af92abd570 | [
"MIT"
] | 104 | 2016-07-10T20:47:12.000Z | 2022-03-22T20:43:39.000Z | tests/test_flash_vl.py | andr1976/thermo | 42d10b3702373aacc88167d4046ea9af92abd570 | [
"MIT"
] | 96 | 2016-07-05T20:54:05.000Z | 2022-02-23T03:06:02.000Z | # -*- coding: utf-8 -*-
'''Chemical Engineering Design Library (ChEDL). Utilities for process modeling.
Copyright (C) 2020, Caleb Bell <Caleb.Andrew.Bell@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal... | 79.483544 | 862 | 0.701968 |
db991c0b9d90667e802fd9ff394fd81d65368331 | 624 | py | Python | ex38.py | YunMeMeThaw/python_exercises | 151d5d3695d578059611ac09c94b3677442197d7 | [
"MIT"
] | null | null | null | ex38.py | YunMeMeThaw/python_exercises | 151d5d3695d578059611ac09c94b3677442197d7 | [
"MIT"
] | null | null | null | ex38.py | YunMeMeThaw/python_exercises | 151d5d3695d578059611ac09c94b3677442197d7 | [
"MIT"
] | null | null | null | ten_things = "Apples Oranges cows Telephone Light Sugar"
print ("Wait there are not 10 things in that list. Let's fix")
stuff = ten_things.split(' ')
more_stuff = {"Day", "Night", "Song", "Firebee",
"Corn", "Banana", "Girl", "Boy"}
while len(stuff) !=10:
next_one = more_stuff.pop()
print("Adding: ", next_one)
... | 27.130435 | 62 | 0.647436 |
db99d0c184b26e85aa45a341b38434f288a19023 | 700 | py | Python | var/spack/repos/builtin/packages/diffmark/package.py | player1537-forks/spack | 822b7632222ec5a91dc7b7cda5fc0e08715bd47c | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 11 | 2015-10-04T02:17:46.000Z | 2018-02-07T18:23:00.000Z | var/spack/repos/builtin/packages/diffmark/package.py | player1537-forks/spack | 822b7632222ec5a91dc7b7cda5fc0e08715bd47c | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 22 | 2017-08-01T22:45:10.000Z | 2022-03-10T07:46:31.000Z | var/spack/repos/builtin/packages/diffmark/package.py | player1537-forks/spack | 822b7632222ec5a91dc7b7cda5fc0e08715bd47c | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 4 | 2016-06-10T17:57:39.000Z | 2018-09-11T04:59:38.000Z | # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
| 30.434783 | 73 | 0.688571 |
db9a10e90482e634cd4e39a1baf5cb649420edce | 10,817 | py | Python | bbp/comps/irikura_gen_srf.py | ZhangHCFJEA/bbp | 33bd999cf8d719c49f9a904872c62f02eb5850d1 | [
"BSD-3-Clause"
] | 28 | 2017-10-31T09:16:30.000Z | 2022-02-28T23:44:29.000Z | bbp/comps/irikura_gen_srf.py | ZhangHCFJEA/bbp | 33bd999cf8d719c49f9a904872c62f02eb5850d1 | [
"BSD-3-Clause"
] | 37 | 2017-05-23T15:15:35.000Z | 2022-02-05T09:13:18.000Z | bbp/comps/irikura_gen_srf.py | ZhangHCFJEA/bbp | 33bd999cf8d719c49f9a904872c62f02eb5850d1 | [
"BSD-3-Clause"
] | 26 | 2017-09-21T17:43:33.000Z | 2021-11-29T06:34:30.000Z | #!/usr/bin/env python
"""
Copyright 2010-2019 University Of Southern California
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... | 41.764479 | 104 | 0.524637 |
db9c6841dad833eb81be4efbbef24d978326ad58 | 11,120 | py | Python | core/tests/test_models.py | EthanMarrs/digit2 | 207569a3b7a61282a2d0bd5f354a837ad81ef55d | [
"BSD-2-Clause"
] | null | null | null | core/tests/test_models.py | EthanMarrs/digit2 | 207569a3b7a61282a2d0bd5f354a837ad81ef55d | [
"BSD-2-Clause"
] | null | null | null | core/tests/test_models.py | EthanMarrs/digit2 | 207569a3b7a61282a2d0bd5f354a837ad81ef55d | [
"BSD-2-Clause"
] | null | null | null | """test_models.py: runs tests on the models for digit."""
import pytest
from core.models import (Grade,
Subject,
Question,
Comment,
Option,
Topic,
Block,
... | 38.082192 | 95 | 0.629496 |