blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d0a923dec0fec38393928941971b90da9ef7cb1f | 175680446cb34878bd40945d2fd00373de3d6f6a | /Epshop/store/views/cart.py | 8b093e7492cb2b4e681f2677ce04e6223c794a8c | [] | no_license | surendrayadav450/django_tech | 7a575786d73efd2cec838d99c85af1f938fa1d1a | 505daf10718b33bdd4ee802331b502ec3cf98ea2 | refs/heads/main | 2023-02-11T05:17:17.981444 | 2021-01-10T11:48:47 | 2021-01-10T11:48:47 | 328,364,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 522 | py | from django.shortcuts import render,HttpResponse,redirect
from store.models.product import Product
from store.models.category import Category
from store.models.customer import Customer
from django.contrib.auth.hashers import make_password,check_password
from django.views import View
class Cart(View):
def get(self... | [
"surendra.yadav08041@gmail.com"
] | surendra.yadav08041@gmail.com |
24b712d184463e90e95bd7379626f69514794c3d | 41ae3c38bdbac0b7800ccbb1b538e48c3564f816 | /dpipe/medim/__init__.py | ff303969d378f2ff9553ecca553c986e27c72a9e | [] | no_license | stenpiren/deep_pipe | fd83293d0b61c21c9985ace719fc6f6270f2ea63 | f3fbe5a18a4e29d03c520b1c764210346357275a | refs/heads/master | 2020-03-23T07:11:06.773557 | 2018-05-07T22:16:20 | 2018-05-07T22:16:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | from . import preprocessing as prep
from . import bounding_box as bb
from . import utils
from . import metrics
from . import patch
from . import divide
from . import shape_utils
from . import features
from .utils import load_image
| [
"egor.krivov@frtk.ru"
] | egor.krivov@frtk.ru |
41687a077daeb570da838055ba19562ab93fb935 | bd2d74a99bc89cc9b35b5f83a3a3f0edbdee1832 | /Realtime_Sound_FFT_iFFT_code/Realtime_fft-ifft_try_codes_past_file/Realtime_fft-ifft_output_try_2.py | c04ef5e678b1c0d4ce9312dbd4105f6b5c1a6d5a | [] | no_license | Jiung-Kim/Python_UltrasonicEqualizer_Project | 5c2102aca8b8eaf4bda4d538cfaec36324bfd1e0 | ce52f40deb68a2c892ba465484965a68186368c2 | refs/heads/main | 2023-06-26T05:24:03.691189 | 2021-07-30T04:53:22 | 2021-07-30T04:53:22 | 327,318,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,398 | py | ##https://stackoverflow.com/questions/31674416/python-realtime-audio-streaming-with-pyaudio-or-something-else
##Python: realtime audio streaming with PyAudio (or something else)?
'''
14
11
Currently I'm using NumPy to generate the WAV file from a NumPy array. I wonder if it's possible to play the NumPy array in rea... | [
"70424250+Jiung-Kim@users.noreply.github.com"
] | 70424250+Jiung-Kim@users.noreply.github.com |
48389e0a975740cc11b7eda6c26c882c0589d00b | 1f80e0fa969e836f0507018a61ce0bb56e33a4e7 | /app/api/__init__.py | 953475edae3e81f3054fffe00208d81fa52faa4e | [] | no_license | nguyentienlong/wolverine | 52894fee1738bd264d52672108907997b5768074 | 94d240a2a6dc3c3a5ec2487c7ef7a6e8fe475d1e | refs/heads/master | 2020-04-13T00:59:40.502274 | 2018-12-23T05:58:25 | 2018-12-23T05:58:25 | 162,860,770 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33 | py | from .common import BaseResource
| [
"long@ahamove.com"
] | long@ahamove.com |
55c90344c15d291f3944d5301b73b6802bc87b8a | 321e58ab3e6b2385bb3549aaaefd56a58c2a51e7 | /python/tests/install_test.py | 3b7fc9c2bb45e11fe69b5f78ed4954a33be2b93f | [] | no_license | alexmadon/atpic_photosharing | 7829118d032344bd9a67818cd50e2c27a228d028 | 9fdddeb78548dadf946b1951aea0d0632e979156 | refs/heads/master | 2020-06-02T15:00:29.282979 | 2017-06-12T17:09:52 | 2017-06-12T17:09:52 | 94,095,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,053 | py | import unittest
import os
import sys
import atpic.installerat
class installer_test(unittest.TestCase):
"""Test the installer test functions"""
def testFind(self):
file="fixture/matcher.txt"
nb=atpic.installerat.check_file_match_re("GOOD",file)
print nb
class install_test(unittest.TestC... | [
"alex.madon@gmail.com"
] | alex.madon@gmail.com |
b9c93ae201cc86436082fd6d8678abb156fb792f | 72e6a7117c195ec1469f9e66af6839f7e3678d18 | /interfaces/cython/cantera/test/test_thermo.py | 2ab1bf72463be348fc4560e03aaea79f62711b2f | [] | no_license | athlonshi/cantera | 4d5ac1a8fea7587e8327cc24f27a504a0d1f373a | 81feaa0eb29aa0f9a109b3b186306e656ddde469 | refs/heads/master | 2021-01-17T22:06:05.094807 | 2013-04-29T18:05:35 | 2013-04-29T18:05:35 | 9,855,001 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,377 | py | import unittest
import numpy as np
import cantera as ct
from . import utilities
class TestThermoPhase(utilities.CanteraTest):
def setUp(self):
self.phase = ct.Solution('h2o2.xml')
def test_species(self):
self.assertEqual(self.phase.n_species, 9)
for i,name in enumerate(self.phase.spec... | [
"yarmond@gmail.com"
] | yarmond@gmail.com |
17b184a5e69adb92944504a529602ef34d7624dd | db165f201fead1843f633b47f50946a1b276406d | /edad_personas.py | 2024a5e00107b3c5e9686dce31b363167d258da7 | [] | no_license | leonardlop/consultorio-on-line | e7fb35eca3495295f2f62affde162dce1f420939 | fd100701cca31b6bd78d8ce365165586388ba54e | refs/heads/main | 2023-08-22T07:23:26.944933 | 2021-09-19T16:50:00 | 2021-09-19T16:50:00 | 407,692,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 861 | py | # ejemplo uso de condicionales if,else ,elif
#if - si else -si ,no elif - si no ,si
# operadores de comparacion < ,> = , >= ,<=,==, !=
#entradas
# edad = input ( "por favor digite su edad: ")
# edad = int(edad)
edad = int(input ( "por favor digite su edad: "))
#transformacion
if edad >= 18:
# si la salid... | [
"kendalito8029@gmail.com"
] | kendalito8029@gmail.com |
299ace9b77a2c3ea9a857b15589a252400462383 | f714af56eecdf61a9399aa145f9f45aa2664dbaf | /storeback/handlers/user.py | a142a1c856f1b88215770ccd60fb59a6226687df | [
"MIT"
] | permissive | loonyT/StoreBack | 8d4c3aa4b51cd1e123988c17112cc78e40d8b8f6 | 7046a77695d92aac90987dffd363f6e7c8468bc2 | refs/heads/master | 2022-03-28T18:49:03.217647 | 2019-12-16T22:17:50 | 2019-12-16T22:40:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,012 | py | from flask import Blueprint, request, jsonify
from storeback.models import db
from storeback.models.users import User
from storeback.models.inventories import Inventory
from storeback.utils import utils
user_api = Blueprint('user_api', __name__)
@user_api.route('/api/user', methods=['GET'])
def get_all_users():
p... | [
"rguan72@gmail.com"
] | rguan72@gmail.com |
c542a0bed5e3b1c424bf845aa53e5dbcc91cd92d | c71dcdbc1c93179c19445df9e498895f403a7581 | /migrations/versions/496a282aaef7_.py | f2111fb3727a2b81640fbb5c257e2d81bd3a7a7b | [] | no_license | nehalbandal/blog_post | 55832c6f55a2d30a985a91a292708fa0c88eef1d | 9bc8eed711bf231d86300af353134d36d83d1331 | refs/heads/main | 2023-02-04T15:31:13.630693 | 2020-12-16T17:36:19 | 2020-12-16T17:36:19 | 322,053,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,303 | py | """empty message
Revision ID: 496a282aaef7
Revises: 5fb48a255eaa
Create Date: 2020-08-18 01:43:30.791160
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '496a282aaef7'
down_revision = '5fb48a255eaa'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"noreply@github.com"
] | noreply@github.com |
f6572af699d775c9cf41a53dc09b155404a9fef5 | ebe6488bfc6a78569a618132ff559ebf39182cec | /ML/machineLearningInAction/LogisticRegression/Test.py | a0767dc0c6b0d3822fbac2a5f8f1ea462f619842 | [] | no_license | wanglei850429/MachineLearningInAction | 384dea33fb6faabb3df849fa4e6cc588080cd089 | 24a84ef1bffc40abdf1516d729689b61df3a4a61 | refs/heads/master | 2020-04-05T00:39:22.173633 | 2018-11-12T15:52:05 | 2018-11-12T15:52:05 | 156,405,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | import numpy as np
a = np.ones(3)
b = np.array([3,4,5])
print(np.ones(3) + np.ones(3)) | [
"shiori5555@163.com"
] | shiori5555@163.com |
5bea67fecac81764fcab5a37a94c232bc764944b | 08b3b736d5c8b1acd4932c50a26c0eac55973295 | /self_management/account/tests/test_forms.py | f9d4e2b627dde00aab3cf5f2e05679a174a4928c | [] | no_license | Yj-Satoshi/self_management | 376827d3c91f4f67ca2facb4c1d937ceef3d3cc4 | 6bae95aa1a9b5f1228a2e28683b6c00127ad80a7 | refs/heads/main | 2023-02-26T20:03:42.805754 | 2021-02-08T06:37:50 | 2021-02-08T06:37:50 | 309,346,589 | 0 | 0 | null | 2021-01-23T05:48:39 | 2020-11-02T11:15:21 | JavaScript | UTF-8 | Python | false | false | 1,378 | py | from django.test import TestCase
from .. forms import SignUpForm
class UserFormTests(TestCase):
def test_user_fail_blank_username(self):
with self.assertRaises(TypeError):
SignUpForm(
username='',
email='sample1@sample.com',
password='testpass43... | [
"65821688+Yj-Satoshi@users.noreply.github.com"
] | 65821688+Yj-Satoshi@users.noreply.github.com |
042cc6ded54cf03977b0575f17c2833dabb57de8 | 26fe7f9a18d55739c304fb31ec675356010eb03f | /test.py | dfc326be7fdafa24aeae675c268094f34be54ab2 | [] | no_license | srijannnd/Nash-Ventures-Hiring_Task | 7c78a17ddcba4ad4684d359ad6b7ee39b8b6b4d8 | e188de661f5b2207430c3e04edc3c5f784467345 | refs/heads/master | 2021-04-26T06:41:46.814397 | 2018-02-24T12:50:08 | 2018-02-24T12:50:08 | 121,376,102 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 915 | py | import json
from ast import literal_eval
data = json.load(open('data.json'))
def change_quantity(data, value):
for k in data.keys():
if 'quantity' in str(data[k]):
dict2 = data[k]
if type(dict2) == list and 'quantity' in str(dict2):
for i in range(len(dict2)):
... | [
"srijannnd@gmail.com"
] | srijannnd@gmail.com |
5b96b3ddcc2765aafbb02d61bec76bd8d23d15cd | 33e2187c1815b1e1209743f5a4870401d2097d71 | /CTCI/Tree & Graph/q.4.11.py | dfa56f17cc8b2af6fcc49e074a6ab6f8e7d13531 | [] | no_license | sachinjose/Coding-Prep | 8801e969a3608b5e69dc667cba7f3afaf7273e88 | 95f6bc85e7c38034e358af47ef4c228937cd4629 | refs/heads/master | 2022-12-26T22:49:48.510197 | 2020-09-22T07:05:55 | 2020-09-22T07:05:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,381 | py | import random
class Node:
def __init__(self,item):
self.item = item
self.left = None
self.right = None
self.size = 1
def get_size(self):
return self.size
def get_item(self):
return self.item
def getRandomNode(self):
if(self.left):
leftSize = self.left.get_size();
else:
leftSize = 0
inde... | [
"sachinjose16@gmail.com"
] | sachinjose16@gmail.com |
cb1a4d1c5abd2fc753c45a70862dc6b91c65dbf1 | 0347a83dc95d4b31bb30087dc755e07dd37f17eb | /datasets/leukemia.py | e25415ad517f9a8e008b31d01942c717a4ec777e | [] | no_license | benchopt/benchmark_nnls | 66e76ad3afc75e8e3a320b56f61b08f4cc6d4f94 | 55ce04667c4e41baacd9344c266a87f8bdc56f91 | refs/heads/main | 2023-07-07T11:48:25.884016 | 2023-06-05T06:09:07 | 2023-06-05T06:09:07 | 293,862,696 | 6 | 5 | null | 2023-06-28T11:49:12 | 2020-09-08T16:11:24 | Python | UTF-8 | Python | false | false | 735 | py | from benchopt import BaseDataset
from benchopt import safe_import_context
with safe_import_context() as import_ctx:
from sklearn.datasets import fetch_openml
from sklearn.preprocessing import LabelBinarizer
class Dataset(BaseDataset):
name = "leukemia"
install_cmd = 'conda'
requirements = ['s... | [
"noreply@github.com"
] | noreply@github.com |
68aff95954ec666bc5e491d8c8b7b1bf16fe84f2 | 11b021d60c251620280e5a589208060696cff9b7 | /tornado/test/web_test.py | 494fad6d6106510768b6946872ee7c888e4ed28c | [] | no_license | pofarrell777/curtains | ae15689f3e005b17c68468123dba488d24831047 | 1c68cda9e48ba079d764f11c66938c79e17d2e71 | refs/heads/master | 2021-01-16T22:01:12.128159 | 2011-11-14T19:27:11 | 2011-11-14T19:27:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,255 | py | from tornado.escape import json_decode, utf8, to_unicode, recursive_unicode, native_str
from tornado.iostream import IOStream
from tornado.template import DictLoader
from tornado.testing import LogTrapTestCase, AsyncHTTPTestCase
from tornado.util import b, bytes_type, ObjectDict
from tornado.web import RequestHandler, ... | [
"mathphreak@gmail.com"
] | mathphreak@gmail.com |
2042d53a3baf9ba2741f002f7ad7afb048e2668d | da66d17fe6463305f8133eae7ab3dd8de5a10861 | /cakechat/dialog_model/inference/service_tokens.py | e03a386ab511897c8d99c31ffa601d4258519d6b | [
"MIT",
"Apache-2.0"
] | permissive | meta-boy/mapleChan | 8951209ed468b2d59b845f8cc8843b1121dc74d3 | d06174aeea6f4b52c745d88d1254ebd6f7cc1db5 | refs/heads/master | 2023-07-31T14:51:53.028560 | 2020-03-20T18:37:43 | 2020-03-20T18:37:43 | 242,465,824 | 1 | 1 | MIT | 2023-07-23T06:32:12 | 2020-02-23T06:04:05 | Python | UTF-8 | Python | false | false | 1,461 | py | from cakechat.config import NON_PENALIZABLE_TOKENS
from cakechat.utils.offense_detector.config import OFFENSIVE_PHRASES_PATH
from cakechat.utils.offense_detector import OffenseDetector
from cakechat.utils.text_processing import SPECIAL_TOKENS
_offense_detector = OffenseDetector(OFFENSIVE_PHRASES_PATH)
class ServiceT... | [
"anurag4884@gmail.com"
] | anurag4884@gmail.com |
32bb0e1b2375a673d97c5de320db5d2d3deb19f4 | f31cd684751a3e0ed5f3a902200d1a0e88874392 | /contacts/migrations/0001_initial.py | 22ba3dc877f27f7137f0d92f8ad2496035188547 | [] | no_license | djangothon/Poker | 917682014463fde1e794382a8c39326da28db13f | 71364a617c66c314f404c77ff6e46aba644c1297 | refs/heads/master | 2016-09-06T18:29:43.703582 | 2015-08-23T09:13:00 | 2015-08-23T09:13:00 | 41,211,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 840 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='contacts',
fields=[
... | [
"tfv.engg1@yahoo.com"
] | tfv.engg1@yahoo.com |
9968ad2e2ed5937a6fbedff9a120aa173ec0e67a | fcec6c7b0f4d29e58c258b429b148c929d10652a | /isix/network/ssh.py | a01a88e7fe9d7e10d44bb3c402bed639ad369726 | [] | no_license | teto/xp_couplage | 833eb977e8032c14255f07639c8050423fbbd6ac | 5c2ce3a62cf08264e49cbbc8dea903eedeea2da2 | refs/heads/master | 2021-01-10T21:54:05.341721 | 2014-01-08T14:51:26 | 2014-01-08T14:51:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39 | py | # TODO should add keys to remote server | [
"mattator@gmail.com"
] | mattator@gmail.com |
a2f016dd3ef2355762c0a6c51d8fe8638c533582 | 49d383fbda1dace5307303a0985e9331e42f310e | /ciTool/Potluck_cloudera/src/potluck/env.py | 90a2564dacb2518a092fd79929272e2edc8a3272 | [] | no_license | tarun-batra-guavus/qa | 44248e6068b545354fc27ab754344b53fee65b3e | 62c48b10e977c20b33e6f95e4aacf90d3dacd5e2 | refs/heads/master | 2021-01-01T15:23:35.112534 | 2017-07-18T15:01:11 | 2017-07-18T15:01:11 | 97,610,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,829 | py | """
.. moduleauthor:: Sandeep Nanda <mail: sandeep.nanda@guavus.com> <skype: snanda85>
This module houses the environment variables for test script execution.
Example::
from potluck import env
print(env.argv.image)
"""
#: Session is used to share data across multiple scripts.
#: `env.session` is a dict tha... | [
"tarun.batra@tarun-batra.local"
] | tarun.batra@tarun-batra.local |
9cc40664902384286bd894cb58a537542e7f153a | ca23b411c8a046e98f64b81f6cba9e47783d2584 | /conqur/main.py | 1f5fd9a7d6582fbe8aaef86058a1dea4f096a678 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | pdybczak/google-research | 1fb370a6aa4820a42a5d417a1915687a00613f9c | 0714e9a5a3934d922c0b9dd017943a8e511eb5bc | refs/heads/master | 2023-03-05T23:16:11.246574 | 2021-01-04T11:30:28 | 2021-01-04T11:30:28 | 326,629,357 | 1 | 0 | Apache-2.0 | 2021-02-01T12:39:09 | 2021-01-04T09:17:36 | Jupyter Notebook | UTF-8 | Python | false | false | 37,968 | py | # coding=utf-8
# Copyright 2020 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
613dca9eb4e956ec7782bf756d3131edacaa1d59 | 14dc3e4bb892b22525d36b68017d86a88542b1fb | /hello.py | 6f92792fac16ffd979c332ff4f3a6d4c236b37f7 | [] | no_license | mike4741/python | ab69b0355c551d883b954396495d887631ba3169 | cb12cc7a49b78097502b3348ac6698015fa5680c | refs/heads/master | 2022-10-17T09:29:04.193539 | 2020-06-16T23:58:15 | 2020-06-16T23:58:15 | 272,824,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | py |
x= "my name is {} and i am {} years old "
###x = "mike"
#print ("M" not in x) ###p
print( x.format('mike',38))
x = 12
y = 123
z =x+y
print (z)
# comment about thne Code thi is a single comment
"""to make
a number of comment in more than one line of code
"""
print (z+5)
| [
"me.mege47@gmail.com"
] | me.mege47@gmail.com |
547dd1a913ad2cf00d2d1ffdd009da6dfc90a73c | 4688055eb4001d3f660df9cfc9954aae809202b8 | /V601/a2rechnung.py | e4c5c1b655984f1db116ba3fe72d6cad8cfb2481 | [] | no_license | kalluux/Praktikum | 1ed496ede0a5cb6b908129d3adc3787f792f0450 | 716f5f3bc46f7da7bd1da9fb71ea91fddb2eab1a | refs/heads/master | 2020-04-05T16:24:15.948344 | 2019-11-24T02:07:52 | 2019-11-24T02:07:52 | 157,010,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 700 | py | import matplotlib; matplotlib.use('agg')
import matplotlib.pyplot as plt
import numpy as np
from scipy.optimize import curve_fit
from uncertainties import ufloat
import math
x,y = np.genfromtxt('a2.txt', unpack=True)
m = y/x
print(m)
ua = x * 2/49
print (ua)
u = np.array([0,2.57,3.94,4.35,4.55,4.75,5... | [
"kalina.toben@tu-dortmund.de"
] | kalina.toben@tu-dortmund.de |
5f1e0e6d24c5a586c317b78d5016e1c7e9ac0045 | 57eae02a373405769d7753f75efff2ac4fb452dd | /memory_cache_primitives.py | 974277e0e038b593f5be8b810888d432759f0f7d | [
"BSD-2-Clause"
] | permissive | jfarrimo/jmemcached | c9fed76bb2f667af180826437ea5e8895444c711 | 3592c5be7bac80d2c41a14ad6d158ce96bbe8de3 | refs/heads/master | 2016-09-16T14:10:58.442565 | 2011-09-29T16:11:24 | 2011-09-29T16:11:24 | 2,476,240 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,122 | py | """
All the basic things to implement memory cache.
==========================================================================================
Copyright 2011 James Yates Farrimond. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are
permitted provided that the fo... | [
"jay@farrimond.com"
] | jay@farrimond.com |
64da196a1ff51a7f639af6768c92e9d434c8b1ac | be6947cfc863f3e8497c74634be2f8e8a4ed618e | /word_game.py | 34a6d4325bb5d6f57404c19a80fb2373d9b25482 | [
"Giftware"
] | permissive | mariaclaramenezes2001/Games | 3eddd47ca102b38111320f7af63f455674c88f6f | 22f66f4e9316965dcd1ec018ef80d006406853fd | refs/heads/main | 2023-07-15T16:53:39.343393 | 2021-08-26T23:16:07 | 2021-08-26T23:16:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,250 | py |
import math
import random
import string
VOWELS = 'aeiou'
CONSONANTS = 'bcdfghjklmnpqrstvwxyz'
HAND_SIZE = 7
SCRABBLE_LETTER_VALUES = {
'a': 1, 'b': 3, 'c': 3, 'd': 2, 'e': 1, 'f': 4, 'g': 2, 'h': 4, 'i': 1, 'j': 8, 'k': 5, 'l': 1, 'm': 3, 'n': 1, 'o': 1, 'p': 3, 'q': 10, 'r': 1, 's': 1, 't': 1, 'u': 1,... | [
"noreply@github.com"
] | noreply@github.com |
262f11e00dd7c2c3ccfcd301e19fa856b891a9b4 | 8722c99270a242d1cd8ef597ec4258a347b42340 | /packages/sdk/testcases/functional_tests/test_prepaid_payment_multithread.py | 3c56d132141131db9a7b42d4563534d02fbf596a | [
"MIT"
] | permissive | prashantramangupta/snet-cli | e0c2a74bec5d995fa1dc48fe638615dc1383ddfa | ae10e599b9cdae45a7c5f5840b865984ca1c4d4b | refs/heads/master | 2022-08-29T16:58:09.709623 | 2022-08-09T08:47:00 | 2022-08-09T08:47:00 | 175,163,609 | 2 | 0 | MIT | 2019-07-01T12:22:10 | 2019-03-12T08:08:35 | Python | UTF-8 | Python | false | false | 1,907 | py | from snet import sdk
import examples_service_pb2
import examples_service_pb2_grpc
import threading
def service_call(service_client, token, channel, a, b):
service_client.set_concurrency_token_and_channel(token, channel)
request = examples_service_pb2.Numbers(a=a, b=b)
result = service_client.service.mul(... | [
"ichbinvivek@gmail.com"
] | ichbinvivek@gmail.com |
b5f263e4f42c0638b0aa495d52b757d9d82e3c61 | 16027d2d9e09c47a0fd50a71e68df4dc2dd4b4c9 | /problems/minimum_depth_of_binary_tree/solution.py | c9ed0b02f58c7a08fb22480b0eeefe1ddb4a636b | [
"MIT"
] | permissive | ProfKache/LeetCodeProblems_Repository | 344149c80754a17d5088a5ef75a1b49904885136 | ed9831141fdd6ca432acb25318ef5afdb3a7fd3a | refs/heads/master | 2022-12-25T11:14:29.047042 | 2020-10-05T09:38:39 | 2020-10-05T09:38:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def minDepth(self, root: TreeNode) -> int:
if not root:
return 0
if not root.left or not root.right:
... | [
"viktoria@jechsmayr.at"
] | viktoria@jechsmayr.at |
00ddbcc05c4a03fbdd32e7c772d20239284a4566 | 8ea2fbc237e00060a16b355a9b94ad25ebd5ba62 | /Aula06TiposNumero.py | d933347d9683fc3515e58f0aed3bf9063bcfe9cf | [] | no_license | ollyvergithub/WeatherAppPython | d5920c3d7f769727e790bfa8e2d2315a8ca14b85 | c88c73fce7ef9d0498c82c9495459996be5d7269 | refs/heads/master | 2022-10-06T11:39:50.565071 | 2020-06-12T13:52:29 | 2020-06-12T13:52:29 | 271,807,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | import math
# Números inteiros(int) e decimais(float)
numero1 = 5
numero2 = 5.5
print("Os tipos das variaveis são: ", type(numero1), ' e ', type(numero2))
print("Usando a biblioteca importada match | Raiz quadrada ", math.sqrt(9))
print("Usando a biblioteca importada match | Fatorial ", math.factorial(5))
num1 = in... | [
"ollyverottoboni@gmail.com"
] | ollyverottoboni@gmail.com |
9aeca252f4c60d8d2f4c5ce7c51c58af75fc47e2 | 862f36830c8f5a5b61afd823f10452b95d3b1110 | /venster/ole.py | a9396d4738336833e2da24e701bfeb65aa223b16 | [
"MIT"
] | permissive | xornand/venster | 8205f81b9a6027e28bc921ae9db878adf47bed33 | a80e2bbffc06ad9a0e69a2d396c267285411f2a9 | refs/heads/master | 2021-01-24T20:53:51.579965 | 2010-03-09T17:08:43 | 2010-03-09T17:08:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,169 | py | ## Copyright (c) 2003 Henk Punt
## Permission is hereby granted, free of charge, to any person obtaining
## a copy of this software and associated documentation files (the
## "Software"), to deal in the Software without restriction, including
## without limitation the rights to use, copy, modify, merge, publish,
#... | [
"henkpunt@gmail.com"
] | henkpunt@gmail.com |
638dcf67165a6d1c7ae87faeb9699bd2bd0bcf2f | 9234c6412c95f10f27b7c813727ee3845b906b1a | /modsByItem.py | 371de9ee5cbdaedae8cb08da365d489d2cdc74d4 | [] | no_license | Schidstorm/warframe-droptable-parser | 0e1491aa567cb903ea7f3694e3980c6002de124c | e966a3581202b663ab59fdb53f3474c80db2f4d0 | refs/heads/master | 2020-04-03T17:10:55.853171 | 2019-03-11T07:56:42 | 2019-03-11T07:56:42 | 155,434,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,063 | py | from pyquery import PyQuery as pq
from lxml import etree
import urllib
import re
import httpLoader
def load(url):
d = pq(httpLoader.load(url))
miscTable = d('#modByDrop + table')
return parseModLocationsTable(miscTable)
def parseModLocationsTable(pyq):
modDrops = []
currentMod =... | [
"dominik@schidlowski.eu"
] | dominik@schidlowski.eu |
e858333a7383108ec9c81c47574fd172806b939f | 9fb1de37705c9268ae39cc099226064eef5ebd44 | /content/migrations/0001_initial.py | e07438d3389cab7b0a8a130dac0c066d3a950c69 | [] | no_license | petrovskydv/ips_bot | 892a777408b0d40baf7aefc7d1bf514c70e9aa20 | ea10dd3739699eea837af5c6348281234d43d305 | refs/heads/master | 2023-07-07T03:16:34.219718 | 2021-07-29T13:27:33 | 2021-07-29T13:27:33 | 383,452,136 | 0 | 0 | null | 2021-07-23T11:48:23 | 2021-07-06T11:57:04 | Python | UTF-8 | Python | false | false | 1,038 | py | # Generated by Django 3.2.4 on 2021-06-21 11:03
from django.db import migrations, models
import phonenumber_field.modelfields
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Customer',
fields=[
... | [
"superhotfire447@yandex.ru"
] | superhotfire447@yandex.ru |
f745947e1927844b7e7277500c8d67f15fd74708 | 526238e8f8fe90e08db230d59877054bda8fd2c2 | /src/back_end/python/main.py | 6b2bb22391542af5fbd34b94441da431830ff70b | [] | no_license | pl-pr-pm/authenticate-url | 5b71a247dd16b379634a0fd372bd2251b5d1e77f | 057bd6409616a3c0b9855211b56759ffac8ac47b | refs/heads/master | 2023-07-24T10:28:08.381446 | 2021-09-08T02:22:28 | 2021-09-08T02:22:28 | 243,932,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,295 | py | from flask import Flask, request
from pathlib import Path
from util import create_tmp_file, config_pase, send_notification_slack, generate_random_num, generate_return_url,generate_download_signed_url_v4,send_notification_mail
app = Flask(__name__)
@app.route('/request-authentification-url' , methods=['POST'])
def sen... | [
"pl.pr.pm.12@gmail.com"
] | pl.pr.pm.12@gmail.com |
ace0561a6a2d11fda11f937ac8ca982e88c1ba88 | 23fe04866703e9aab2289d851f6aa163df452dde | /Python/Structure/job_queue.py | 5594f5ee03ee16c585e3e29f918a3ded71e51327 | [] | no_license | KevinZhoutianyi/Algorithm_Toolbox | 30b856c8d1b855f0e8b085760ee2ab855e36fef8 | 11b42b474d3d14f5a548448e27c5d6a511b0b27e | refs/heads/master | 2020-03-30T16:52:00.983493 | 2018-12-15T11:03:11 | 2018-12-15T11:03:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,337 | py | # python3
class Node:
def __init__(self,i):
self.nextFreeTime = 0
self.index = i
class JobQueue:
def read_data(self):
self.num_workers, m = map(int, input().split())
self.jobs = list(map(int, input().split()))
assert m == len(self.jobs)
def write_response(self):
... | [
"kevinzhou2@live.cn"
] | kevinzhou2@live.cn |
809aa117a31705aaab41406d7f9181bc8ec8be62 | 770e2a7a4e22f4096484e0009b38ec713e6c9ace | /gamelib/basket.py | d1cd923f4c97e48dd9282947712f87ca7837f72a | [
"LicenseRef-scancode-public-domain"
] | permissive | petraszd/pyweek-11 | 60c52e265c729012cceb6804a3a89ef53e3fd3fb | e06bfebfbe5d851dddefff1346deb39b7535883c | refs/heads/master | 2023-08-21T14:24:20.109493 | 2021-10-03T19:40:51 | 2021-10-03T19:40:51 | 413,179,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,630 | py | from pymunk.vec2d import Vec2d
from util import center_sprite
from pyglet.sprite import Sprite
from pyglet.image import load
from options import BASKET_IMG_SRC, \
BASKET_TOP_LEN, \
BASKET_BOTOOM_LEN, \
BASKET_HEIGHT, \
BASKET_DELTA
from seg... | [
"petraszd@gmail.com"
] | petraszd@gmail.com |
a21a04abd20b8636190756bb271443fb016c80b6 | b43d4346182d64667bf19aa98e2211cf5e79d8b0 | /travel_app.py | 1f3530da2b28e10a6bc8ce2e8aa04e6a058e1dc3 | [] | no_license | mahmoud-abdulhadi/Travel-Finder | 94d05308e317095fdeb842221e18a238a20113e7 | 127720feb6f7ae4adce152413923c90bd36429a7 | refs/heads/master | 2020-03-26T07:11:15.384970 | 2018-08-13T22:37:05 | 2018-08-13T22:37:05 | 144,640,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,418 | py | from tkinter import *
from tkinter import ttk
import TravelAdvisor
from Graph import Graph
from tkinter import messagebox
countries = [airport.country for airport in TravelAdvisor.get_airports()]
def get_cities(country):
cities = [airport.city for airport in TravelAdvisor.get_airports() if (airport.country =... | [
"mahmoud.abdulhadi1993@gmail.com"
] | mahmoud.abdulhadi1993@gmail.com |
39acc6cd0faed396fa69168c9a7a9bee0ef9810d | 4eef7e5925c69a8f0380de725b0971acada30dd6 | /p3/lesson6_preparing_dataset.py | 40860bf78fff81d17573c1090af0f07964586f7a | [] | no_license | ying-w/udacity-data-analyst-nanodegree | a2a4a2641e047394663cc04d12b66522d6a05b05 | 9c3335a9ec2c1f139dd7d66998c939ab0dc418e0 | refs/heads/master | 2021-08-31T17:22:00.725061 | 2017-12-22T05:46:23 | 2017-12-22T05:46:23 | 114,613,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,581 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import xml.etree.cElementTree as ET
import pprint
import re
import codecs
import json
"""
Your task is to wrangle the data and transform the shape of the data
into the model we mentioned earlier. The output should be a list of dictionaries
that look like this:
... | [
"ying-w@users.noreply.github.com"
] | ying-w@users.noreply.github.com |
86687d4964c3921db05a00981c6612e675e7c296 | 62bc11c306a041e9a6320102d7d1a152b80b26b6 | /node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/build/config.gypi | b00971292f09b1813c37ed2d08be3fe3dfbd4e67 | [
"MIT"
] | permissive | loumontano/sassconf-maps | 77212cdf772b47f6cbfe6963e544cab8a5ef98ec | 15462d0a93374e237ab086c3f93ae493f1c1538e | refs/heads/master | 2021-01-10T07:37:52.570422 | 2015-11-13T19:45:36 | 2015-11-13T19:45:36 | 46,143,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,770 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"host_arch": "x64",
"icu_data_file": "icudt55l.dat",
"icu_da... | [
"montano.lourdes@gmail.com"
] | montano.lourdes@gmail.com |
9968af30dce7c0407d13903a13a6ead74c475074 | f30ede06d61bce245921e02722db7f725bcef998 | /LeetCode/topological_sort.py | e9d140fe41e07301470940fa40f42a374fec6ade | [] | no_license | Rahul140799/Placement-Kit | 99b2fcfeecf15273ec285aa3faf34c3ea88694da | 43b8508d7a491d4701e3138fa88dd49d14849021 | refs/heads/master | 2023-07-20T19:42:40.743295 | 2021-09-06T18:04:56 | 2021-09-06T18:04:56 | 239,575,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 848 | py | from collections import defaultdict
class Solution:
def findOrder(self, numCourses: int, prerequisites: List[List[int]]) -> List[int]:
dict_list = defaultdict(list)
degree = [0] * numCourses
res = []
for course,needed in prerequisites:
dict_list[needed].append(co... | [
"rahul.venkatesh730@gmail.com"
] | rahul.venkatesh730@gmail.com |
70723069941ee9c24b335e46ba46ebf8f0a58715 | de61df62564b918c0b6eb3e5d838361c7e01c28c | /src/server/server.py | 4ce06b190592913a71d26a06128983dc6ccd3bbf | [
"Apache-2.0"
] | permissive | Spe3do/benchmark | ae4c7b5064bb6286c309c2b9d50d5b3d73466720 | 9c0ae00267bebd5a45c4dec110fe4c72e67d28b2 | refs/heads/master | 2020-05-18T17:52:57.530595 | 2014-01-10T14:31:37 | 2014-01-10T14:31:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,399 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Author: Tamas Marton
import argparse # argparse make it easy to write user-friendy cli interface
from time import sleep
import os
import re
# Import own modules
import comm_server
import model
# Controller
# This is the main controlling class. Responsibilities:
# ... | [
"Speedo@Speedos-MacBook.local"
] | Speedo@Speedos-MacBook.local |
3b6de3ae7faba0ea8ec99b3a5c83cc7559073782 | 42c63d5f9c724c99ba93f77bdead51891fcf8623 | /dist-packages/cinderclient/client.py | e456cfe6d996977df4a4652f1ffbeee7c578d2df | [] | no_license | liyongle/openstack-mitaka | 115ae819d42ed9bf0922a8c0ab584fa99a3daf92 | 5ccd31c6c3b9aa68b9db1bdafcf1b029e8e37b33 | refs/heads/master | 2021-07-13T04:57:53.488114 | 2019-03-07T13:26:25 | 2019-03-07T13:26:25 | 174,311,782 | 0 | 1 | null | 2020-07-24T01:44:47 | 2019-03-07T09:18:55 | Python | UTF-8 | Python | false | false | 23,537 | py | # Copyright (c) 2011 OpenStack Foundation
# Copyright 2010 Jacob Kaplan-Moss
# Copyright 2011 Piston Cloud Computing, 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... | [
"yongle.li@gmail.com"
] | yongle.li@gmail.com |
07327b79211c8371bf80277fe22ab884c360d5ec | 242733887bf50ffc91b2e305dfbea268fdfebae0 | /pysql/sqliteegpl.py | 1019d32115d1fdd8c8c88a012df5168f009234de | [] | no_license | aryabiju37/Python-mini-Proects | c2e4f59bf309b3d7e7696dfe92fb6ff63790114a | a84e03702665cf2e06a16637cfe24a6697163894 | refs/heads/master | 2023-07-25T18:56:54.649800 | 2021-08-27T06:49:32 | 2021-08-27T06:49:32 | 400,420,845 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,023 | py | import sqlite3
def create_table():
conn = sqlite3.connect("lite.db")
cur = conn.cursor()
cur.execute("CREATE TABLE IF NOT exists store(item TEXT,quantity INTEGER,price REAL)")
conn.commit()
conn.close()
def insert_table(item,qty,price):
conn = sqlite3.connect("lite.db")
cur = conn.cursor()... | [
"aryambiu@gmail.com"
] | aryambiu@gmail.com |
002bb1b75ea4f2cb9cbd23eb6c756caae4e8549e | ccb20aae3d6905022423af2e3852e153597c5298 | /treasure_hunt/users/migrations/0001_initial.py | 0e2cd0f7559e36710b3600e856ce1307396ad3d5 | [] | no_license | RISHIOMKAR/Treasure-Hunt | 382f5a46e6ac418d746aade39a6d80521e6cc6a4 | 9f5d356991d5da1adb091d4d6415a16f4a011d4f | refs/heads/master | 2022-11-28T15:30:11.753568 | 2020-08-10T14:05:32 | 2020-08-10T14:05:32 | 286,455,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-10-16 18:42
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.... | [
"53428556+RISHIOMKAR@users.noreply.github.com"
] | 53428556+RISHIOMKAR@users.noreply.github.com |
d897f29077149a87ccf67096a630b862b41f41aa | fa03896dc66a96d0db797602291c0cfea7166eca | /EX_02_03/assigment(2.3)-rateperhour.py | bfa4a07dd270d9323036ba18bc3f7849cae8b1f8 | [] | no_license | ryadav4/Python-codes- | 884a8214c6f34d905f4809317018ba7d2ed3e991 | 6652a1f5d985abd94633caf63306f4412f8eb716 | refs/heads/master | 2020-03-30T07:06:04.051455 | 2018-09-30T01:01:50 | 2018-09-30T01:01:50 | 150,915,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | hrs = input("enter hours :")
rate = input("enter rate per hour:")
Pay = float(hrs)*float(rate)
print("Pay:",Pay)
| [
"noreply@github.com"
] | noreply@github.com |
147f7f6581e4618aaf8f758afdec5589fae0bfe6 | 3f10f4a423908650af2c7cbc11b6a23d99d5294e | /Sokoban/Object.py | f65c252dd24ad7fd4ca156306dfcace3c08a4d49 | [] | no_license | KuntaKing/Sokoban | d2d9d90ca7b1e493a76a7f2bd5fa20e13377aaf1 | 51eefbabfea05008852993255ad5a534701a332c | refs/heads/master | 2020-04-10T18:52:43.982853 | 2018-12-10T18:07:05 | 2018-12-10T18:07:05 | 161,215,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,471 | py | from PyQt5.QtWidgets import QLabel
from PyQt5.QtCore import Qt
class Object(QLabel):
positionOffsetX = 0
positionOffsetY = 0
size = 32
qWidget = None
def __init__(self, x , y , pixmap):
super().__init__(Object.qWidget)
self.setPixmap(pixmap)
self.setPixmap(pixmap.scaled(Obj... | [
"36731857+Section80@users.noreply.github.com"
] | 36731857+Section80@users.noreply.github.com |
d80f18a0e15bc1bb0365a79e0f24fc733a7cfcac | 50be3fdf93fd76709f17854d6e1325908e7076a6 | /session08/iterator_1.py | 59db666511acd9c12e090a85cc33a0feaca7d8db | [] | no_license | gatita/python-stuff | 74b9f2b9be1339fb309a6fb594ac466a6e73e561 | 234d582e659f014baf4dcd2d94dede7d965d2e4a | refs/heads/master | 2021-01-23T16:30:16.535704 | 2015-06-19T04:26:06 | 2015-06-19T04:26:06 | 32,341,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,333 | py | #!/usr/bin/env python
"""
Simple iterator examples
"""
class IterateMe_1(object):
"""
About as simple an iterator as you can get:
returns the sequence of numbers from zero to 4
( like xrange(4) )
"""
def __init__(self, stop=5):
self.current = -1
self.stop = stop
def __ite... | [
"hatamyarg@gmail.com"
] | hatamyarg@gmail.com |
c70e3d7b2bb1a183a218f7d5257624412453091d | db260dee92dea15250ca0253e44ba710b29c57be | /moresense/spendings/migrations/0001_initial.py | e47078ac6e615b76b4451b4460d7975095e6b156 | [] | no_license | dogonwheels/moresense | a02383b06c0c5a80aa5470705442ac7ae2eaf629 | ecd6bc8ece4809a14f911c3dfaaba6464c43e4d7 | refs/heads/master | 2016-09-06T13:46:05.853760 | 2012-07-29T12:19:05 | 2012-07-29T12:19:05 | 3,088,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,093 | py | # encoding: utf-8
from south.db import db
from south.v2 import SchemaMigration
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Household'
db.create_table('spendings_household', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
... | [
"domcrayford@gmail.com"
] | domcrayford@gmail.com |
650053d433d5b41a6cfc5017ba2e16beb610f225 | 12a4a44ef9026bc956bfcdcdb7e3738aa5223665 | /catkin_ws/src/glog_catkin/build/catkin_generated/generate_cached_setup.py | 4be9ed74324092b42375751628d69eb1d20ee629 | [] | no_license | kkilove/road_detecting | 95084ead0a2d272330213ba22e0e52c1c779c9b1 | 6070e52f5461967825d8f14ae24a527368d446fc | refs/heads/master | 2021-05-27T09:38:04.187226 | 2018-09-18T07:30:30 | 2018-09-18T07:30:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,326 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/indigo/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.p... | [
"sysuzyc"
] | sysuzyc |
bd3a60c9a59e870a98df2e513a0d6d3c8601ac60 | d4a9c3c057fcd2a3867c7269741ce1fc5f369438 | /copilot/api/entities/base.py | 06ccf58d702608d80c0a8d98a4844890a441dcb7 | [
"MIT"
] | permissive | febsn/djangocms-copilot | af0ea835ba40a013ef36d2b10e65679777d3d436 | e4b268ad522d972333b037ef8a1c317cc537da9e | refs/heads/master | 2021-01-10T12:13:42.359819 | 2018-03-26T13:17:31 | 2018-03-26T13:17:31 | 50,450,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | # -*- coding: utf-8 -*-
from copilot.conf import settings
class BaseEntity(object):
"""
Base API entity.
"""
def __init__(self, client):
super(BaseEntity, self).__init__()
self._client = client
| [
"fl@makonis.net"
] | fl@makonis.net |
f2dd272edec040df73505dc0acc8158a613da80b | 90201c3debb9c6b8847899356f8ab02977089183 | /sistema_transporte/app_transporte/migrations/0031_remove_servicios_cve_servicio.py | dab3764f9804f738af8d8542ddcc1585c6007aef | [] | no_license | Articfire/transporte-ddssc | 90bdca1d3dbb93646aae06711653379040ce50e8 | 2a8ca39a8c5bb38932af83ba1ae9996327824242 | refs/heads/master | 2022-12-13T01:15:04.276293 | 2021-12-12T22:41:11 | 2021-12-12T22:41:11 | 248,825,047 | 2 | 0 | null | 2022-12-08T03:53:23 | 2020-03-20T18:24:39 | Python | UTF-8 | Python | false | false | 361 | py | # Generated by Django 3.0.4 on 2020-06-15 09:09
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('app_transporte', '0030_auto_20200614_1956'),
]
operations = [
migrations.RemoveField(
model_name='servicios',
... | [
"martindrumer21@gmail.com"
] | martindrumer21@gmail.com |
0a06a1af1bd774cd4ea1106f94f1566e382efbe9 | 0fe37e11df976c55fe5bbe492879b7cd8a95b7c5 | /27_public_test/03_spider_test.py | bad3562d5d72ee0956bc52b9c32569d4ae326cfe | [] | no_license | 1286211699/mmc_code | 9bb7761107604b445dea4fe5acf9d503fbc28dfa | ee97879632dfd7d24c604f7db52c82fa29109daa | refs/heads/master | 2022-12-08T23:19:06.382825 | 2020-05-08T13:59:46 | 2020-05-08T13:59:46 | 177,100,815 | 2 | 0 | null | 2022-12-08T01:42:47 | 2019-03-22T08:25:37 | HTML | UTF-8 | Python | false | false | 4,597 | py | # -*- coding: utf-8 -*-
# @Time : 2018/12/27 14:49
# @Author : for
# @File : 03_spider_test.py
# @Software: PyCharm
# from urllib import request
#
# import requests,time
# url = 'https://image.baidu.com/search/acjson?tn=resultjson_com&ipn=rj&ct=201326592&is=&fp=result&queryWord=%E5%94%AF%E7%BE%8E&cl=2&lm=-1&... | [
"1286211699@qq.com"
] | 1286211699@qq.com |
ddbff29936e4a6f01c9350027bf25f40a4bb5fe5 | 2c83f018f11e486f6c6e8cf1bb4b6914b173697e | /influx_queries.py | 2cbbb710c2ee665ce47a3b6fcb87d7dab2807a82 | [] | no_license | gamero/congestion | 4bd75770a8a034930456eeee580e028d23926146 | 76d57a2baa545c2e68358e6fc364e1093d2b4846 | refs/heads/master | 2021-01-01T16:02:42.395559 | 2017-09-26T09:52:53 | 2017-09-26T09:52:53 | 97,762,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,732 | py | #usage python plux_crawler.py >>log_alexa1k.txt 2>&1
import subprocess
from multiprocessing import Pool
import os
import signal
import time
websites_file = '/project/comcast-ping/plots-agamerog/'
influx_command = "python gather_loss_and_rtt.py "
as_files = "/project/comcast-ping/plots-agamerog/monitor/peersproviders.... | [
"agamerog@eng.ucsd.edu"
] | agamerog@eng.ucsd.edu |
25695e8a5755d1a3e9eded60fb8a9af730b00bae | c6b87215d632400f0075758cbaddc320bc3e136e | /md-JSONparser.py | 1eb7e1136f46c4c0fabb7c8d29dd6a2d93e71774 | [] | no_license | LennyHirsch/MD-to-JSON-parser | eb20d4f89b0aa49666945c422fe05ef1607f47cc | 02a6a5e557339800e09c01f2d200898e8a19b4d8 | refs/heads/master | 2021-01-19T01:34:42.584874 | 2016-08-12T09:12:09 | 2016-08-12T09:12:09 | 65,387,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,547 | py | import os
import re
import json
title = os.path.basename(os.path.normpath(os.getcwd()))
description = open('overview.md', 'r').read()
difficulty = open('DIFFICULTY', 'r').read()[:-3]
worksheet = open('worksheet.md', 'r').read()
# GET HEADINGS
headings = []
worksheetInLines = open('worksheet.md', 'r').readlines()
for... | [
"noreply@github.com"
] | noreply@github.com |
eb4d5e90755e06d00d3e92a87933d59ed9ca2026 | c52a70b444fa13f912c715e595bb68a5794462ae | /tracker.py | cab8958d8921f7ad8b9c34999b64549dd8cac53c | [] | no_license | gthomsen/coupled-models-demo | f699098b90d308a1e11e8b6f6015ab9a2612913d | 05d9d6844e42f65f6507d174d494545c610c320d | refs/heads/master | 2021-07-19T16:55:18.841317 | 2017-10-21T02:39:10 | 2017-10-22T18:03:10 | 107,745,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,508 | py | #/usr/bin/env python
from __future__ import print_function
from mpi4py import MPI
import MPIUtility
import numpy as np
import sys
import time
# toy model of a particle tracker that can be run coupled to a solver. detects
# how it is invoked and sets up the appropriate communicators needed. if it is
# run on it's o... | [
"gthomsen@gmail.com"
] | gthomsen@gmail.com |
60c9a1554ec6a514ee2d377e0f436211713d08d6 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_drawls.py | dcb613684441c7614a936842e41bce32f8ab5fe1 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py |
#calss header
class _DRAWLS():
def __init__(self,):
self.name = "DRAWLS"
self.definitions = drawl
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['drawl']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
189ef2dd7442e80884affc1a8e79988b38badfde | 0ae37f39058d231380f9479fc5eccb4df348bba3 | /MobileNetV2/mobilenetv2.py | 13899bcd01a212f82d936df1026fb7993043fb2e | [
"MIT"
] | permissive | AndryRafam/Airbus_Wind_Turbines | f59444d78e4de0af2d2e5ad61a11d1c86e1b23e1 | 9613db97e9a390c4ae614ab7b354a2b53d22d357 | refs/heads/main | 2023-08-10T20:14:48.575202 | 2021-09-29T06:28:03 | 2021-09-29T06:28:03 | 399,441,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,117 | py | import tensorflow as tf
import numpy as np
import random
import matplotlib.pyplot as plt
from zipfile import ZipFile
random.seed(1337)
np.random.seed(1337)
tf.random.set_seed(1337)
with ZipFile("archive.zip","r") as zip:
zip.extractall()
BATCH_SIZE = 32
IMG_SIZE = (160,160)
train_ds = tf.keras.preprocessing.image... | [
"noreply@github.com"
] | noreply@github.com |
24c198237b82e20343d94e08825c53eaf03ddce9 | 93ad28897161a30027a2ac1d10c7235f6d66b2f8 | /docker_registry_client_async/dockerregistryclientasync.py | 85883c3bcadcae48594408ef5eba121d90761132 | [
"Apache-2.0"
] | permissive | GitHK/docker-registry-client-async | 0ce117374eb094c3705510d72c081d24c316bada | 384b1b7f7abcda55258028d930b45054ab03f6c4 | refs/heads/main | 2023-05-11T10:50:55.432955 | 2021-03-16T18:57:25 | 2021-03-16T18:57:25 | 371,687,021 | 0 | 0 | Apache-2.0 | 2021-05-28T12:03:12 | 2021-05-28T12:03:11 | null | UTF-8 | Python | false | false | 53,738 | py | #!/usr/bin/env python
# pylint: disable=too-many-lines,too-many-public-methods
"""Asynchronous Docker Registry Client."""
import json
import logging
import os
import re
from http import HTTPStatus
from pathlib import Path
from ssl import create_default_context, SSLContext
from typing import Any, Dict, List, Union
f... | [
"crashvb@gmail.com"
] | crashvb@gmail.com |
f50de1a7c07a9f645e476f0bf340fd88f2992e7e | b7c2e4fcf1e5c232a7d71cc47bebcc82a0669acb | /python/test_yatzy.py | 71c9ad020f3739f3ad7d8d433d344290bb9d8b0d | [] | no_license | AliciiaTugores/Yatzy | e237417e82b6a32d360c05b4356a439d0566a2a0 | fb54a7e2393ab6368db5a8e9a1d73318b512089d | refs/heads/main | 2023-02-04T07:18:56.518036 | 2020-12-26T22:27:42 | 2020-12-26T22:27:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,833 | py | from yatzy import Yatzy
# These unit tests can be run using the py.test framework
# available from http://pytest.org/
def test_chance_scores_sum_of_all_dice():
expected = 15
actual = Yatzy.chance(2,3,4,5,1)
assert expected == actual
assert 16 == Yatzy.chance(3,3,4,5,1)
def test_yat... | [
"atugoresb@cifpfbmoll.eu"
] | atugoresb@cifpfbmoll.eu |
52ec173b0e67423eecc3c03384a64a07fd990fd1 | 07453efdd1a9d4bacca8490bc9464ee077b806e9 | /easyfm/easyfm/settings.py | 61728cc485d6ad048eb3712221c4e41a7e2585c7 | [] | no_license | fox000002/ezfm | a3f61d17f75ec67844e7507e19ed7790647e403b | f78cff87e155fc1eb3aeb26510ab730e45ba167b | refs/heads/master | 2021-01-15T18:58:25.604194 | 2013-11-03T09:12:55 | 2013-11-03T09:12:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | # Scrapy settings for easyfm project
#
# For simplicity, this file contains only the most important settings by
# default. All the other settings are documented here:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
#
BOT_NAME = 'easyfm'
SPIDER_MODULES = ['easyfm.spiders']
NEWSPIDER_MODULE = 'easyfm.spide... | [
"fox000002@gmail.com"
] | fox000002@gmail.com |
773d01a2897f8f91937bc77d88665cbb4ad4db0f | c7e3578393933488fad3f6a60a9828e3400c6b66 | /hmdbSpecific/classify_data_hmdb.py | 0651ddcaade48341eda7b1dac0d7e72660386b5a | [] | no_license | aarslan/actionRecognition_old | 22d028639f4c93ae79ed42bad14e93a9abf507be | bd82b0a5293a7da0c0760c96149a8b943a80ee62 | refs/heads/master | 2021-01-16T20:25:06.328819 | 2013-08-11T20:48:23 | 2013-08-11T20:48:23 | 11,349,375 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,681 | py | #!/usr/bin/env python
"""string"""
import h5py
import hmax
from hmax.classification import kernel
#from shogun import Kernel, Classifier, Features
from hmax.tools.utils import start_progressbar, update_progressbar, end_progressbar
import scipy as sp
import numpy as np
from scipy import io
import tables as ta
from skle... | [
"ali_arslan@brown.edu"
] | ali_arslan@brown.edu |
56d260adaa75fae91191e38eb4fad95e16060b69 | 4b6efbf3a3636dc64ea4fb5dc2d131c206cdf39d | /graphs_constructor/ConstructGraphs.py | 5d6394bd42ab5e08acc413f20d31adadeab66670 | [] | no_license | RenatKhayrullin/Diploma | 46b64cb75df3d31928b86aa5788094f0683e36ce | c21770440f757c373185ae305af4e03053039713 | refs/heads/master | 2020-03-18T21:42:32.628169 | 2018-06-21T14:21:37 | 2018-06-21T14:21:37 | 135,297,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,522 | py | # coding=utf-8
import io
import sys
import csv
import logging
import warnings
import time
from collections import Counter
from operator import itemgetter
from sklearn.neighbors import kneighbors_graph
from sklearn.preprocessing import normalize
from math import log, exp
import numpy as np
from scipy.sparse import coo_m... | [
"rena-2006@yandex.ru"
] | rena-2006@yandex.ru |
0d4765498f8059d547f1a6fb231724bfe9845092 | ab83d3073cb36ddb68409381394e5bb7e813b362 | /setup.py | ef40cd50f437393099dff4cc6590a0b2ab801e64 | [] | no_license | clementeqp/Python_Clemen | f3955faf79de002b4105882dc0f70b8ec9989310 | 0518f0db02a6f4c5588ee43fa9126ba05384680c | refs/heads/master | 2023-08-04T18:42:54.081956 | 2021-09-18T17:11:49 | 2021-09-18T17:11:49 | 381,003,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | from setuptools import setup
setup(
name="calculosmatematicos",
version="1.0",
description="Realiza calculos matematicos, suma resta multi divi",
author="Clemen",
author_email="clemen@gmail.com",
url="www.google.es",
packages=["Modulos","Modulos.calculoAvanzado"]
) | [
"clementeqp@hotmail.com"
] | clementeqp@hotmail.com |
c15a642edc8751a0e14ce08a7552f9c5546f9f58 | 259f78f7733ab8cff9deecd82d6746e3ae9abe72 | /Archive/ChimeraKiller_v.0.7.1.py | 053ece8be7c81b813a9155833505d6b42c751ae8 | [] | no_license | masonaj157/ChimeraKiller | 25663250a9c9f6fc54eada36a4b41688bf5561c6 | 06b784f381df745b0f6bcd22aade50799c4869d8 | refs/heads/master | 2023-07-24T08:41:34.811240 | 2023-07-05T19:09:22 | 2023-07-05T19:09:22 | 253,365,944 | 2 | 3 | null | 2021-07-14T19:56:39 | 2020-04-06T01:13:38 | Python | UTF-8 | Python | false | false | 14,802 | py | #!/usr/bin/env python
# ChimeraSorter was made as a followup to ChimeraChecker. It uses several filters to identify and sort filters into good and bad. If you have questions about this script, send a postcard with your information and question addressed to My Ass, You're Screwed Blvd., Imalone, WI 54848
# Additional ... | [
"noreply@github.com"
] | noreply@github.com |
932f40a2ac2cf6ca18a53b146155c760e4b5ccca | bb066f339221a2e32d68189d8214a930d740fd48 | /assignment6.py | 0d15843a9c8f91a50d68f9739ca67f9ea089cc7f | [] | no_license | s120rishu/assignments | 19050eaf68cf8e6cd92368e67c47bf29d8a1b541 | 81a4d8d5bd14801794a8f1a18fdffc6aa76ef4af | refs/heads/master | 2020-03-19T10:26:24.067185 | 2018-07-15T11:20:38 | 2018-07-15T11:20:38 | 136,370,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 744 | py | #Q1
'''list1=[]
for a in range(0,10):
x=int(input("enter no"))
list1.append(x)
print(list1)
#Q2
a=["asdfdgdsgbet"]
i=0
i=i+1
for i in a:
print(i)
#Q3
l1=[]
sq=[]
for a in range(0,10):
a= int(input("enter no"))
l1.append(a)
print(l1)
for a in l1:
d=a*a
sq.append(d)
pri... | [
"noreply@github.com"
] | noreply@github.com |
b946f294c116559e5e4871efbdc21c4e371d160e | 35ec374bb915ef382bcc707daf62d35e2f2ada7d | /src/downloader.py | 2f77214bc598402426ae436a0878e888dc0a11c5 | [] | no_license | sschnug/by_assignment | a5b4d972f3e8c6f06b61490a3099592d74d800c0 | 5b0aa6e00ff0961f881162ebe7a03c42912ad040 | refs/heads/master | 2020-03-10T23:22:09.916793 | 2018-04-15T19:01:15 | 2018-04-15T19:01:15 | 129,639,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,768 | py | """
This module does the actual downloading & file-saving.
"""
from os.path import join
from urllib.request import urlretrieve
from src.exceptions import DownloaderDownloadError
class Downloader():
"""This class is responsible for actual network-activity / downloading and
saving.
This class "retrieve... | [
"sascha.schnug@gmail.com"
] | sascha.schnug@gmail.com |
74e1bad2a8b2eb8d71096ccd3f662b18014eed48 | 211c1705116821c1b1f4a0f26ecbd593babd67a4 | /books/migrations/0001_initial.py | 0c2abeaff0d2dce339911e50bff8767505de861b | [] | no_license | Hosseinht/graphql-django | 050c5f3272a0e2facb440efde501276d33539ea3 | 4dd4f114416f46dda4ed4cd11c0d05a7e16a975e | refs/heads/master | 2023-08-01T00:16:38.212740 | 2021-09-24T07:39:25 | 2021-09-24T07:39:25 | 409,875,808 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | # Generated by Django 3.2.7 on 2021-09-24 06:32
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Books',
fields=[
('id', models.BigAutoField... | [
"sailantht@gmail.com"
] | sailantht@gmail.com |
e402f7415864f1e25dab0fb3075576751ea865b9 | 9a391fdd281e92427c299e061335987b3a0d0ce5 | /scripts/download_attachments.py | 2a71d0d63c6ed24d1c56c436a11b240821721298 | [] | no_license | felixebert/offeneskoeln | 8b63d5c5e669f0b65e56d935d73f82a0c14390fb | 587b7e5564a31522ea28034886b78221eb509ace | refs/heads/master | 2021-01-16T20:44:12.206718 | 2013-01-08T14:49:39 | 2013-01-08T14:49:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,776 | py | #!/usr/bin/env python
# encoding: utf-8
"""
Lädt Anhänge eines bestimmten Datumsbereichs herunter
Copyright (c) 2012 Marian Steinbach
Hiermit wird unentgeltlich jeder Person, die eine Kopie der Software und
der zugehörigen Dokumentationen (die "Software") erhält, die Erlaubnis
erteilt, sie uneingeschränkt zu benutze... | [
"marian@sendung.de"
] | marian@sendung.de |
1329f4512a6724689326c17e68fcce419f93fb1d | 70b37bf5c1e163ccd7080eceb3bf5495ce76490a | /minimum-difficulty-of-a-job-schedule/minimum-difficulty-of-a-job-schedule.py | b5f3a650d3f7683083ede9cce40c869bfe2e5655 | [] | no_license | guptasugandha/Leetcode_Solutions | 856a5df067d3a683a5715252cf8cddcd920652ea | 5691c9e39759a136f554e1bb6e6927e857601d84 | refs/heads/main | 2023-05-06T06:20:18.950980 | 2021-05-30T02:26:00 | 2021-05-30T02:26:00 | 354,453,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 776 | py | class Solution:
def minDifficulty(self, jobDifficulty: List[int], d: int) -> int:
memo = {}
numjobs = len(jobDifficulty)
if numjobs < d:
return -1
def dp(day: int, cut: int) -> int:
if ((day,cut) in memo):
return memo[(day, cu... | [
"44794688+guptasugandha@users.noreply.github.com"
] | 44794688+guptasugandha@users.noreply.github.com |
fbf1454beedca305346d7c0e5afb98109591fcec | cf595c74441a0605e23f0e438fd200d3c352b96b | /collect/api/api.py | b667783855b3d835e15a826ef0621b319d337107 | [] | no_license | ssj5638/analysis_fb2 | 0853b5aa27cda38e6adc4a3d3b7e49fe2afbb759 | 5e3ebacf4631d5f08ecd8fa01791e18206680f5f | refs/heads/master | 2020-03-20T21:50:45.358348 | 2018-06-29T18:43:20 | 2018-06-29T18:43:20 | 137,763,925 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,847 | py | # facebook api wrapper functions
from urllib.parse import urlencode
from .web_request import json_request # 함수 import
# BASE_URL_FB_API = 'https://graph.facebook.com/v3.0' # python에는 상수 없음 대문자로 표시
# ACCESS_TOKEN = "EAACEdEose0cBAO8ZCte5X0iMoE7127sa6IwcZCCV8P3tNolp2s6nnJTyJHiFndbJsquw9sZAZAp7dWSASwxBSE7X5nGXpxqJ87dC... | [
"ssj5638@gmail.com"
] | ssj5638@gmail.com |
e7d257f28c8a5e19fde922bd33e15debacf70564 | 6f297bf38311b7dec3881acbbcd13a4708eb5020 | /products/views.py | 2fd2057a5426ccd2166a7f9d9271c36b77bc7a16 | [] | no_license | richavit/vitcpanda | aee851f86dca2ff65769817a91fb46d83272b951 | 0987557c06cd1f56a63f1570b018d59eeb548413 | refs/heads/master | 2021-01-10T05:10:31.683636 | 2016-04-08T07:31:14 | 2016-04-08T07:31:14 | 55,491,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,102 | py | from django.shortcuts import render
from .models import Product
from django.views.generic.detail import DetailView
from django.views.generic.list import ListView
#from .forms import EventForm
from django.contrib.auth.decorators import login_required
from django.shortcuts import render_to_response
from django.template i... | [
"richayadav95@gmail.com"
] | richayadav95@gmail.com |
7174dacdc84b4da1c7036ed509ffdd9820d05787 | a2ab6c23253badb3be54b19ba061e1aeaac6a8cd | /obj_detection/tf_api/object_detection/builders/image_resizer_builder.py | 13c029cd24114d4fa78c0e21a52e4ff45500ac24 | [] | no_license | vivek09pathak/ImageDetection_RealTime | 0720fb4a6f35a81591f401a04ae44aa3bbea013f | d9e376b41a1216aecaacc9626cee59d45001695c | refs/heads/master | 2022-12-26T22:04:18.328476 | 2020-09-30T10:20:15 | 2020-09-30T10:20:15 | 152,729,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,693 | py | # 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... | [
"anupamb266@gmail.com"
] | anupamb266@gmail.com |
96bcd805d1c68dc42d802fc0a83558f67bacf85e | e5d79d1131a105d3055033e044d2c347ee086cd9 | /playerdata.py | 7e830a57a5c0f8da8483c776d4248d7b87a2eeae | [] | no_license | drakexp/fantasysports_public | 1a45b9b4a9bd5f6c17fbaddad7005edddd7153ca | 025f6ddbc3d2ca4d0a0199b74cf8ab592302ebc6 | refs/heads/master | 2021-01-20T04:08:16.183225 | 2017-04-27T21:28:47 | 2017-04-27T21:28:47 | 89,618,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,827 | py | from nba_py import team, player
202738
player.PlayerGameLogs(202738, league_id='00', season='2016-17', season_type='Playoffs')
def gameLog(id):
i=0
player_now = player.PlayerGameLogs(202738, league_id='00', season='2016-17', season_type='Playoffs')
if(player_now):
player_now = player_now.info()
... | [
"drakexp@gmail.com"
] | drakexp@gmail.com |
5a4d13317f4b72112f488988ccf1aec7d04865b9 | e89837f01f81a8b63015a31a45507fca95b75335 | /inference/export.py | 433d65683b0a9f46e56b8a50241a67205beba67a | [] | no_license | PaulZhangIsing/etagger | 4af56fa30ae7e77411be77750d679c66b0ab3848 | 306b76e51124623ff434e45b0f5e3d2915eaa5d6 | refs/heads/master | 2020-04-24T01:03:51.168249 | 2019-02-20T02:06:35 | 2019-02-20T02:06:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,583 | py | from __future__ import print_function
import sys
import time
import argparse
import tensorflow as tf
# for LSTMBlockFusedCell(), https://github.com/tensorflow/tensorflow/issues/23369
tf.contrib.rnn
def export(args):
session_conf = tf.ConfigProto(allow_soft_placement=True, log_device_placement=False)
sess = tf.... | [
"hazzling@gmail.com"
] | hazzling@gmail.com |
ed5092d242b693037e586d42590b631250451102 | 2e7fceab878ce040b916fd224654fb53b9670466 | /nsrl_REST/api/handlers.py | 1c8d4fd53b048bb5299aa8a8945e80f28ba0342d | [] | no_license | PSJoshi/nsrl | d27a2dd5ea102b63149ca63f6960be87d04840aa | 34cb01e38dd1230530d239adb50b71e64d11bf72 | refs/heads/master | 2020-05-22T13:55:30.328702 | 2015-02-10T00:18:41 | 2015-02-10T00:18:41 | 29,810,958 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 5,593 | py | from django.db.models import Q
from django.core.exceptions import ObjectDoesNotExist
from piston.handler import AnonymousBaseHandler, BaseHandler
from nsrl_api.models import *
class Manufacturer_Handler(BaseHandler):
allowed_methods = ('GET',)
model = Manufacturer
def read(self,request):
try:
#print "%s"%requ... | [
"joshi.pradyumna@gmail.com"
] | joshi.pradyumna@gmail.com |
e3d23e19fb56278fe483550fa5c9206258d1866b | 609085edf06f3091ecd639007480fb7cba15126f | /napari/components/experimental/monitor/_monitor.py | 7f924f33ab276f4524af867b366a2f4a12ffd949 | [
"BSD-3-Clause"
] | permissive | jojoelfe/napari | c7432daa6672045e95a58946c90ed0a5c779ef2d | c871c319247b79d4c5cc9270c0fec04740aed9d0 | refs/heads/master | 2023-05-12T17:08:48.145360 | 2022-12-21T16:25:43 | 2022-12-21T16:25:43 | 241,278,044 | 0 | 0 | BSD-3-Clause | 2023-05-01T02:58:28 | 2020-02-18T05:11:42 | Python | UTF-8 | Python | false | false | 6,774 | py | """Monitor class.
The Monitor class wraps the MonitorServer and MonitorApi. One reason
for having a wrapper class is that so the rest of napari does not
need to import any multiprocessing code unless actually using
the monitor.
"""
import errno
import json
import logging
import os
import sys
from pathlib import Path
f... | [
"noreply@github.com"
] | noreply@github.com |
687187213549b71bc0cd6916c485c4f8a2944a33 | 7db318feb196d5d27dd74a51a8dfc7fd75480d0e | /movie website mini-project/fresh_tomatoes.py | f4aead89b3f5647079272e03d14e43d5f9126a17 | [] | no_license | DenStanislavskyi/UdacityIntroToProgrammingNanodegree | f5ac3a18521fcbf9a1006626d276746f664b6975 | 92d1debd210783e39e377a4e84883bc4cd0bad6c | refs/heads/master | 2022-12-13T21:09:12.946312 | 2020-08-26T21:19:18 | 2020-08-26T21:19:18 | 274,647,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,679 | py | import webbrowser
import os
import re
# Styles and scripting for the page
main_page_head = '''
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Star Wars!</title>
<!-- Bootstrap 3 -->
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.1.0/css/b... | [
"noreply@github.com"
] | noreply@github.com |
00d73fc855f563d69f9529e02177901bbf755bdb | 6841787dc208198535c90ee76d035d8837f8b973 | /alipay/aop/api/response/AlipayCommerceEcEmployeeInviteQueryResponse.py | f2d86a19b1c5ee78a6a56be338006b74a17a9d00 | [
"Apache-2.0"
] | permissive | demlution/alipay-sdk-python-all | e56ea12651717476f940212c281b6c2199dd3fa6 | c3cb81aa5980913e7cd51edcf754a804495a9a30 | refs/heads/master | 2022-10-09T02:08:28.789764 | 2022-09-20T04:32:03 | 2022-09-20T04:32:03 | 263,779,638 | 0 | 1 | null | 2020-05-14T00:58:51 | 2020-05-14T00:58:51 | null | UTF-8 | Python | false | false | 1,047 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class AlipayCommerceEcEmployeeInviteQueryResponse(AlipayResponse):
def __init__(self):
super(AlipayCommerceEcEmployeeInviteQueryResponse, self).__init__()
self._enterprise_... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
8f871d60aa72a886eecd6f0a15611ea93e6143f3 | 54ff84552de9ed787b92d3b850e63e7bf78111bc | /root_finder.py | 34f169dd3d7e72f54ce788956d416820141d875f | [] | no_license | archmagethanos/rutabaga | 4abefa116d2c7139d945902a4997d661221a2767 | 3d3333a84987f3d1477d3363bcc7ceeada1754d5 | refs/heads/master | 2023-08-03T06:36:04.215749 | 2021-03-25T23:15:20 | 2021-03-25T23:15:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,869 | py | """
Given a csv file, RootFinder finds the roots of polynomials.
It's designed to operate in a transient state, loading discovered roots into a csv file in batches to as to avoid overloading memory.
"""
import mpmath
import pandas as pd
import numpy as np
from tqdm import tqdm, trange
from csv import writer
class RootF... | [
"kincaid@riddle.press"
] | kincaid@riddle.press |
8eb1fd3e1dacc649b6273bb92b77345cfe9359db | aaed0c643bb8c3259dd90b9785475790c9c7f8f0 | /TextClassificationTransfer.py | 48640bd1aa790b66d6a1f695e86272a2eda39b46 | [] | no_license | Smoss/TensorflowTutorials | 9bba0f3c4eb17a9acc7830f537be1318ecd90156 | e57e81239054e55c356bb344be255f788da45f27 | refs/heads/master | 2022-11-30T09:24:43.202059 | 2020-08-12T23:02:42 | 2020-08-12T23:02:42 | 287,131,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,395 | py | import numpy as py
import tensorflow as tf
import tensorflow_hub as hub
import tensorflow_datasets as tfds
print("Version: ", tf.__version__)
print("Eager mode: ", tf.executing_eagerly())
print("Hub version: ", hub.__version__)
print("GPU is", "available" if tf.config.experimental.list_physical_devices("GPU") else "N... | [
"smoss117@gmail.com"
] | smoss117@gmail.com |
6b70b180e472f1569659c84247252d5811af68f6 | e5790e7cd8ec8a22f15ff7faabf48ce840608413 | /python/django/webappWithTests/Tests/functional_tests/test_functional.py | dff448ad8f3f29c94432c78e5853ec5a88366f0e | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | Nardax/devops-project-samples | 93181b05859dd4faa45d6ee83a61e371960350d3 | fad7c75dfe1b883543009e22fcb3f3f69a4b23e4 | refs/heads/master | 2020-03-31T14:48:35.305888 | 2018-10-23T21:36:52 | 2018-10-23T21:36:52 | 152,310,179 | 1 | 0 | MIT | 2018-10-23T21:36:53 | 2018-10-09T19:36:17 | JavaScript | UTF-8 | Python | false | false | 1,526 | py | import pytest
from selenium import webdriver
import unittest
import os
import sys
import pytest
class FunctionalTests(unittest.TestCase):
def setUp(self):
options = webdriver.ChromeOptions()
options.add_argument('--no-sandbox')
self.driver = webdriver.Chrome(os.path.join(os.environ["ChromeWebDriver"], 'chromed... | [
"vineet.mimrot@gmail.com"
] | vineet.mimrot@gmail.com |
3119d07849b9e658dc83d86c03fb505680ba5dba | e0ce9cf5098dba2b4986ba1ab8bc436e2c621e68 | /banco de dados mongo/POO/aula1/pessoas.py | 6f2da304fcecf1626933519d7ddd76cacd5d4f8b | [] | no_license | solonmoraes/CodigosPythonTurmaDSI | 56598f63d191ac99997507bceaa05211d11e1514 | 1b0dd0fbfd8154969c94e84dd7747fb9a46e3e9d | refs/heads/master | 2023-03-22T04:08:01.498426 | 2021-03-04T19:32:25 | 2021-03-04T19:32:25 | 335,018,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | class Pessoa:
# atributo
nome = "José"
idade = 45
altura = 1.65
# método
def falar(self, texto):
print("texto ")
def calculaAno(self,idade):
anoAtual = date.today().year
print(f"Voce nasceu no ano de {anoAtual - idade}"
)
#Criando um objeto
alguem = Pessoa... | [
"solonmoraes2017@gmail.com"
] | solonmoraes2017@gmail.com |
d27da60b5e9cc47c60e07853e600640b30d803ff | 1f73cade573eaded02f16f443a7f1fec53d97fa5 | /MUNDO 1/ex004.py | 763b9af6559c5cffb9af2d071e7146c68d3f2a73 | [] | no_license | vinicius-gadanha/python-courses-cev | cd9684071497d957fbd614555c5fcee2f48a8e17 | e9a5d03468e8524d3f450450bf90a7972109bb8b | refs/heads/master | 2023-07-26T10:56:08.345127 | 2021-09-06T19:08:01 | 2021-09-06T19:08:01 | 403,730,019 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | n = input('\033[1;34mDigite Algo:')
a = n.isnumeric()
b = n.isalpha()
c = n.isspace()
d = n.isalnum()
e = n.isupper()
f = n.islower()
g = n.istitle()
print('\033[0;31mO tipo primitivo é {}.'.format(type(n)))
print('\033[0;32mÉ numérico?{}'.format(a))
print('\033[0;33mÉ alfabético?{}'.format(b))
print('\033[0... | [
"viniciusgadanha@hotmail.com"
] | viniciusgadanha@hotmail.com |
538989a80f640c3f12ed6e45164c8904ffe793cf | 46d8f5265cf28b463bc5a591e7ace305d5e18258 | /djackets/order/views.py | 2639dfa0c920ebe03695c276fd87cbf0c8f881da | [] | no_license | CESAR-JARAMILLO/Django-Vue-Eccomerce | 730b5f35f9d676ebe009f252b556fcacadd368d4 | 1719329b75c6c9953083f35c844a0bbbae48c2f1 | refs/heads/main | 2023-06-16T10:41:56.410410 | 2021-07-13T21:06:45 | 2021-07-13T21:06:45 | 383,596,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,868 | py |
import stripe
from django.conf import settings
from django.contrib.auth.models import User
from django.http import Http404
from django.shortcuts import render
from rest_framework import status, authentication, permissions
from rest_framework.decorators import api_view, authentication_classes, permission_classes
from... | [
"csarjaramillo89@yahoo.com"
] | csarjaramillo89@yahoo.com |
76b42d6872ca25842005a988c4fe67b5b08b8503 | 60da7fdf21fb7aec05de5e18bc7130f010d839f9 | /gatherable.py | b2f6e1513ec0bd30323604e1199ebf3450825502 | [] | no_license | a-holliday/TheIsland | 162db0fa4d365d4fa7ef4832f68b0b3682ad8627 | 6644340e1155fb630a994b069da8183e612a0394 | refs/heads/master | 2020-06-08T17:46:59.468678 | 2019-06-22T20:29:55 | 2019-06-22T20:29:55 | 193,275,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,442 | py | from datetime import datetime
import asyncio
import random
import json
import os
import discord
from discord.ext import commands
os.chdir(r'C:\Users\acaci\PycharmProjects\discordbots\venv\Include')
class Gatherable:
island_limit = 5
island_count = 0
def __init__(self, client):
self.client = client... | [
"acaciaholliday@gmail.com"
] | acaciaholliday@gmail.com |
fd288d691f6f8e0f7b0a6e6f9d681a368bdb054b | da0dc9f4e2af4b4cba4e7c8d196351922cf3463f | /yongheegram/images/migrations/0003_auto_20190222_2342.py | 6db63349152d69ee0895baafacdfe58f38a34e24 | [
"MIT"
] | permissive | devyonghee/yongheegram | aab086637dd071297e2f6bd7ea4941f17003273d | eb2d4b459e28a900f087a9039a3a2fdd77e7748d | refs/heads/master | 2022-03-03T20:19:16.398009 | 2019-03-20T14:12:24 | 2019-03-20T14:12:24 | 202,910,982 | 0 | 0 | MIT | 2022-02-26T16:45:51 | 2019-08-17T17:16:37 | JavaScript | UTF-8 | Python | false | false | 738 | py | # Generated by Django 2.0.10 on 2019-02-22 14:42
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('images', '0002_auto_20190220_2303'),
]
operations = [
migrations.AlterField(
model_name='comme... | [
"shiw122333@gmail.com"
] | shiw122333@gmail.com |
0be66c2b91cad4703d5e8e6f81d3168c137cb198 | ee4b41d8026570515d03639c349e63d345053d2c | /Main.py | 324594e646fded34f67e3d6245c8cfc02a8ab65e | [] | no_license | AliGriv/Crazyflie_test | 0abd6b52ee1a2121e201cc07c1322bdcc2e80552 | f95e6e34bff4d7321fb4cb7058d51cdcf0d2d20f | refs/heads/main | 2023-06-17T15:35:50.578411 | 2021-07-12T04:25:10 | 2021-07-12T04:25:10 | 344,325,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,006 | py | from NatNetClient import NatNetClient
from PB_Control import PB_Control
from Trajectory_Planner import Trajectory_Planner
from Sensor import Sensor
from EStop import EStop
from threading import Event
from Logger import Logger
import time
from threading ... | [
"ali.gerivani@gmail.com"
] | ali.gerivani@gmail.com |
2093367623e4c92285216d7e0e866c0220960351 | ac77a219b6e37dd88eacbb923792ef0f43c68114 | /flask-api/flask_basic_app.py | d52072fcdc6555bf52ba8cbd10422265edd9b9fc | [] | no_license | shrinidhi99/basic-rest-api-in-flask | 6e6db7af9c9458e88638a066872cf8adf5e1f648 | a8389599a31a5be55b36eea5a66c8de7f51cf1e4 | refs/heads/master | 2020-11-27T01:24:16.070031 | 2019-12-20T16:29:03 | 2019-12-20T16:29:03 | 229,255,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | from flask import Flask, jsonify, request
app = Flask(__name__)
@app.route('/', methods=['GET', 'POST'])
def index():
if (request.method == 'POST'):
some_json = request.get_json()
return jsonify({'you sent': some_json}), 201
else:
return jsonify({"about": "Hello World!"})
@app.rout... | [
"shrinidhi99.varna@gmail.com"
] | shrinidhi99.varna@gmail.com |
68c876c92ec9eaaa970c0583aee91360dfc943ff | d93e873190eb6a7a336ecce01a8ff3ff04e97a7b | /ch12_forms/application/pypi_org/app.py | f838ff39928311efdfc0fdfd4c2825f63291a0a1 | [
"MIT"
] | permissive | vromanuk/data-driven-web-app | b420f23ca9ca0a503f48ebee8723bf53dece36cc | ff9aac603477c3646f3c09f7d949dd1e7cf85f44 | refs/heads/master | 2020-12-15T10:01:48.876502 | 2020-03-22T20:19:49 | 2020-03-22T20:19:49 | 235,068,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 953 | py | import os
import sys
import flask
from application.pypi_org.data import db_session as db_session
folder = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
sys.path.insert(0, folder)
app = flask.Flask(__name__)
def main():
register_blueprints()
setup_db()
app.run(debug=True)
def setup_db... | [
"vromaniuk@deloitte.com"
] | vromaniuk@deloitte.com |
ce67be9dc40f4429b6b55b5b5fee106ca1f7504e | 22e232d6d2c85ba771230d9fe9b50094b13fa629 | /TestCases.py | 311e805adc3d150ef7119753ae8e636b2270b923 | [] | no_license | Erik19852404/WebTests | 90853791c6c385662a0a6d72814e55b5a8e5a28a | 67a2394d2dba4c4ac5c85a60540682f40ecfe1bc | refs/heads/main | 2023-01-08T05:17:57.571251 | 2020-11-12T11:41:38 | 2020-11-12T11:41:38 | 309,887,922 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,231 | py | import os
import sys
import time
import logging
import unittest
from datetime import datetime
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions a... | [
"yorick_1985@mail.ru"
] | yorick_1985@mail.ru |
894c5179b1167b01c8697600f7f4b2e1e6bab2ba | 5b73a894dadbde17220448408b0c57b56741b42c | /main.py | 599d174b293b14984cbf485fa46319a40cf2bf78 | [] | no_license | Cfhansen/stephenson-pywb62 | b0fa51e6ceb0d3dc6b457664514b12fde8cb439f | 0a12c9b70f7481e9e26b72fd1afabefcb661080b | refs/heads/main | 2023-03-16T23:39:35.466210 | 2021-03-12T19:05:46 | 2021-03-12T19:05:46 | 347,170,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | ###Solution to problem 62 in ben stephenson's "the python workbook"
prices = [4.95, 9.95, 14.95, 19.95, 24.95]
for p in prices:
print(f'${p} - ${.6 * p:.2f} = ${p - .6 * p:.2f}')
| [
"noreply@github.com"
] | noreply@github.com |
4d9e756475c728760d5f3953a9c76d382e72b4cb | 07cd9a1e1db28b14934e91922821fba78fb58479 | /Client/src/test_operate.py | 261d05c4faf2a39d28ff710769aabf97802a195e | [
"MIT"
] | permissive | WaterHyacinthInNANHU/Arknights-Operator-System | 7458bcab24206348634dc6d846abb4bc605416ce | e4419285daef9f6af63693a3fd32a115351c0b6b | refs/heads/main | 2023-05-06T20:56:41.167846 | 2021-05-30T16:17:30 | 2021-05-30T16:17:30 | 328,116,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | py | from arknights.operator import Operator
from util.logger import CmdLogger
op = Operator(CmdLogger('test'))
op.launch_and_connect_emulator()
for _ in range(100):
op.operate()
op.navigate_to_main_panel()
try:
op.receive_rewards()
except Exception as e:
print(e)
op.close_emulator()
| [
"yan.ming.xuan99@gmail.com"
] | yan.ming.xuan99@gmail.com |
0cbc1facbd06e26b6bb163a0add0ca8ae030a6fa | 0d8ce8f494880c885bd48ac3a28ee9697c15aff4 | /frontend/models.py | 800c97d8456eaf532dbce38d285bb008d911dff0 | [] | no_license | chensandiego/carrental-django | e0f474a4d8d72940b3db1dc17a540e66222c376a | 30b594ca238545a59ee00e28aae3705e6638c93e | refs/heads/master | 2021-01-20T20:39:04.420338 | 2016-08-05T05:36:13 | 2016-08-05T05:36:13 | 64,991,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 876 | py | from __future__ import unicode_literals
from django.core.urlresolvers import reverse
from django.db import models
class Car(models.Model):
name = models.CharField(max_length=100)
image = models.ImageField(upload_to='car_images')
description = models.TextField()
daily_rent = models.IntegerField()
... | [
"chensandiego@gmail.com"
] | chensandiego@gmail.com |
fef13ff9d1090609b64b3e39fab679af73805c2f | 240ff4c82e5f3738b33699d69fe4d81abfdd7d1a | /data_structures/dictionaries_and_arrays/1_print_array/solution/.model_solution/solution.py | 95640a8f35cda5eba612bd079e5c8e1a0606076e | [] | no_license | FiodorGrecu/Exercises | f816549a3153d25ce2e7906789bfd0fac17d8d4a | 21121a0ca385883953b2f5a9886add40efa21e6f | refs/heads/master | 2023-04-18T15:11:04.023546 | 2021-04-22T00:39:41 | 2021-04-22T00:39:41 | 283,240,812 | 0 | 0 | null | 2020-08-20T18:43:57 | 2020-07-28T14:42:49 | Python | UTF-8 | Python | false | false | 65 | py | def print_array(array_1):
for i in array_1:
print(i)
| [
"avelikevitch@gmail.com"
] | avelikevitch@gmail.com |
eeb0978770cd2ca6b445a7b2b68242591ba60f51 | c8f41dd889bdfe42ae0cc8633d38ccb646a28a2c | /api/bilibili/api/v2.py | 5ab92d5841aa09fd4bdab08da7e60407efd19423 | [
"Apache-2.0"
] | permissive | kitUIN/HibiAPI | bb3af9bde9ad4cc8dd50878ef3e0a3851699aa3c | b371ced95e6f0ac79409628adfd025c49deaa7b3 | refs/heads/main | 2023-03-10T13:52:51.046670 | 2021-02-25T11:37:31 | 2021-02-25T11:37:31 | 342,257,920 | 1 | 0 | Apache-2.0 | 2021-02-25T13:44:22 | 2021-02-25T13:44:22 | null | UTF-8 | Python | false | false | 5,476 | py | from enum import Enum
from functools import wraps
from typing import Callable, Coroutine, Optional, TypeVar, Union
from utils.exceptions import ClientSideException
from utils.net import AsyncHTTPClient
from utils.routing import BaseEndpoint
from .base import (
BaseBilibiliEndpoint,
CommentSortType,
Commen... | [
"admin@yami.im"
] | admin@yami.im |
efc26041aaf43816d5e79baded88074897871192 | 07be2e391ee59fba571996684c0c6e46fa362325 | /tests/test_threading.py | aa320fe5988a825436ed59cec338806d2a17fcee | [] | no_license | CSE599-dlsys-final-project/DependencyEngine | b7e65ae3738c7aba0a08b139b414049f50fc01fb | 24f0770fde70b1836ed703587f188849c27fd4bf | refs/heads/master | 2020-03-16T19:55:21.292398 | 2018-05-31T16:19:49 | 2018-05-31T16:19:49 | 132,937,857 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,261 | py | from __future__ import print_function
import numpy as np
import tvm
from dlsys import autodiff, tvm_op, dependency_engine
tgt_host="llvm"
tgt="llvm"
dtype = "float32"
ctx = tvm.context(tgt, 0)
def test_matrix_elementwise_add_threaded():
print("******")
print("Testing threaded elemwise add")
### preparin... | [
"blarry.personal@gmail.com"
] | blarry.personal@gmail.com |
2b7c36e282bfd55a8c95827892df1199c8414f9b | 964d451825e61dc2467db878b154027ae0428487 | /backend/artist_content/apps.py | 06b95e6529a3710277f5facc8f9b696b23c541f4 | [] | no_license | jainammm/Tropikat-advitiya | 83088e60cb9dcaf6c27e7e8b6153ccb5abb8897c | b022e5ef2fb51575fbee2a37cb5635a44c09f134 | refs/heads/master | 2022-12-18T16:43:49.829331 | 2019-04-11T16:29:45 | 2019-04-11T16:29:45 | 180,829,438 | 0 | 0 | null | 2022-12-08T04:58:21 | 2019-04-11T16:10:16 | Dart | UTF-8 | Python | false | false | 107 | py | from django.apps import AppConfig
class ArtistContentConfig(AppConfig):
name = 'artist_content'
| [
"jainam.iitrpr@gmail.com"
] | jainam.iitrpr@gmail.com |
1a5cf920d5d71bbfedc201884bf3c1038b37d48d | 7e98a45067ae6aaccdd1c292f0bacb52c1d21878 | /lib/config.py | b8373d277dec53b8cdd132f5b10b60ee3e5a9b70 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | LusoDev/sentinel | e9d9c8c38fae344bfb8a26dc838edc1f68d4bc35 | 7c760904f70c1acfd852b931ac8aeefa4ce74804 | refs/heads/master | 2021-04-09T14:21:38.236645 | 2018-06-19T03:12:09 | 2018-06-19T03:12:09 | 125,662,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,344 | py | """
Set up defaults and read sentinel.conf
"""
import sys
import os
from dash_config import DashConfig
default_sentinel_config = os.path.normpath(
os.path.join(os.path.dirname(__file__), '../sentinel.conf')
)
sentinel_config_file = os.environ.get('SENTINEL_CONFIG', default_sentinel_config)
sentinel_cfg = DashC... | [
"team@lusoco.in"
] | team@lusoco.in |
d102bde68a08f6859fd68f2ad42dbbf5fd23db4f | a3dd33cd55e3ca7620c244bd4ca8bcbd6b87319b | /tidle.py | 51e799cbbb8f5dda935e21301817c6a3d34046e5 | [] | no_license | pkoenig10/tidle | c6dab589a7630a26be9baadb28c09f29c2bdb35e | cb1feeda85c57e2857f15a920ff447cf86f0a572 | refs/heads/master | 2020-12-24T14:56:28.101306 | 2019-08-11T02:51:57 | 2019-08-11T02:51:57 | 13,732,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 71,966 | py | # -*- coding: utf-8 -*-
# Patrick Kooenig
# TIDLE: TI-BASIC Editor
from Tkinter import *
from tkFileDialog import *
from tkFont import *
from tkColorChooser import *
import tkMessageBox
from collections import *
import string
import os
import datetime
import webbrowser
from math import *
from fraction... | [
"pkoenig10@gmail.com"
] | pkoenig10@gmail.com |
a63b5f56d46d28618515820a9c7e9d185e53d0e7 | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/B/buttub/basic_twitter_scraper_338.py | 831396458ed083ee5c81b59e0ebd3a27d47a6645 | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,288 | py | ###################################################################################
# Twitter scraper - designed to be forked and used for more interesting things
###################################################################################
import scraperwiki
import simplejson
import urllib2
# Change QUERY to y... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
72654c7b6f5e62a8da8be9286737364274bfcc30 | 78a6576a48956ed6cfa0313e47fb734eec24eb15 | /NeuralNets.py | bae0aa7b69fb4e0c0539d6cc9cd02d043fbf1367 | [] | no_license | petersnias/TextClassification | 37302af54db8fe87196a8194bbf53679518c5b21 | fa13cc4cf6de3bd458cd45f73b12ca1a74c23e9b | refs/heads/main | 2023-02-15T03:52:28.690478 | 2021-01-04T18:06:53 | 2021-01-04T18:06:53 | 326,780,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,621 | py | #!/usr/bin/python
import os
import numpy as np
import pandas as pd
import random
from sklearn import model_selection, preprocessing, linear_model, naive_bayes, metrics, svm
from sklearn.feature_extraction.text import TfidfVectorizer, CountVectorizer
from sklearn import decomposition, ensemble
import pandas, xgboost... | [
"petersnias@gmail.com"
] | petersnias@gmail.com |
fdf6a03063cf072a159e6c921d303d350ab9a597 | 8a965c2a21d738468fc621915d39b39d1972fac0 | /testserver.py | 7307b5b80ecf648d3cd423398170a66f07f9ec90 | [] | no_license | Ashmaitelly/seproject2chatapp | 38cc6dd918783f6d1d11aad0a91b8427c9316a3d | 88af7d958d093802bae976f17f08f7fa7002420c | refs/heads/master | 2023-01-22T23:45:08.774654 | 2020-12-06T17:47:29 | 2020-12-06T17:47:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 557 | py | from SimpleWebSocketServer import SimpleWebSocketServer, WebSocket
print('Server running...')
clients = []
class SimpleChat(WebSocket):
def handleMessage(self):
for client in clients:
if client != self:
client.sendMessage(self.data)
def handleConnected(self):
pr... | [
"email"
] | email |
59869d431513f7d2c742a61fc0dd9536bf55fd9a | 711756b796d68035dc6a39060515200d1d37a274 | /output_exocyst/optimized_32226.py | 532482a9fda8771fc83bc1c47534ac1ac7d2a0ab | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,508 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.