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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
55d9f6399b04b0ce86ed81f5a3b8c384235039dd | 02be54b8a9ab6813274ae18feb428d0d1405b0b0 | /products/widgets.py | 85945a02257c7670ba7e55d443f81a90674423f4 | [] | no_license | paulloy/msp4-brazen-mma | 8ee98e2f2b12a4a24b14d30c1456233b02457dcd | 33a430d6c81bb44525469bcee1beaee7c92b3f58 | refs/heads/master | 2023-03-27T13:29:12.825997 | 2021-03-31T03:30:46 | 2021-03-31T03:30:46 | 341,317,874 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | from django.forms.widgets import ClearableFileInput
from django.utils.translation import gettext_lazy as _
class CustomClearableFileInput(ClearableFileInput):
clear_checkbox_label = ('Remove')
initial_text = ('Current Image')
input_text = _('')
template_name = 'products/custom_widget_templates' + \
... | [
"paulloy020896@gmail.com"
] | paulloy020896@gmail.com |
88919fdc89c292d3a1afd47cf1b67122a3121bdf | 4957dd5d3583552f1ebc06f8125c10753383e81c | /protocols/Plate_Cells_Trough/Plate_Cells_Trough_2017-10-25.ot1.py | 70480af1f758312124889a18e41a44ccae577152 | [] | no_license | glebkuznetsov/Protocols | 4072eb4bb1bf18e9324fa3bada953b0655db2f4d | 0e3e9b03f1616c695f9e8e843dc5f9e3a59d1619 | refs/heads/master | 2020-03-27T05:43:11.285730 | 2018-05-23T21:33:58 | 2018-05-23T21:33:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,618 | py | from opentrons import containers, instruments
trough = containers.load('trough-12row', 'A1')
trash = containers.load('trash-box', 'B1')
tiprack = containers.load('tiprack-200ul', 'C1')
plate1 = containers.load('96-deep-well', 'D1')
plate2 = containers.load('96-deep-well', 'E1')
plate3 = containers.load('96-deep-wel... | [
"laura@opentrons.com"
] | laura@opentrons.com |
6346b5baf6d9b590f6b07edcd2f1fef680b4fe6f | 32263e1e50b90ce7049661f85f515ae8b3f11120 | /answer4.py | 1ee21b24c5a4b68915a24f9f4b3a7c5b16233a2a | [] | no_license | harshitahluwalia7895/Thread_and_Processes | 7e926f211c75d5d700be28b29da77fb5e1b48182 | 3e7ad17b7ea2056b124e5bfd082f2ab39ce09552 | refs/heads/master | 2020-03-19T06:44:48.014423 | 2018-06-04T16:18:27 | 2018-06-04T16:18:27 | 136,051,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | from threading import *
import time
import math
class abc(Thread):
def run(self):
m = int(input('Enter the Number to be Factorial:'))
print('The factorial of {} is '.format(m),math.factorial(m))
t=abc()
t.start() | [
"harshit.ahluwalia7895889924@gmail.com"
] | harshit.ahluwalia7895889924@gmail.com |
d510b163bd7b37d3020df5d1bb6e1dca90b0d1ce | a879480e8ecff79be624df9d6f67d49c90448672 | /src/webjob/log_history_manager.py | 9f707cf56282b0a3f5e56c856d3672d1066cd71b | [] | no_license | fortesinformatica/SIGA | 49299696e5de14a1e4fa8e31ef5d8529e2711ded | 2b2473c7880becf4f47ea36925f09660379e5eb8 | refs/heads/master | 2022-07-27T16:56:10.499679 | 2019-06-17T13:22:18 | 2019-06-17T13:22:18 | 192,342,983 | 1 | 1 | null | 2021-03-25T22:41:08 | 2019-06-17T12:30:18 | Python | UTF-8 | Python | false | false | 815 | py | """
LogHistoryManager
=====
Prover
1. Gerenciamento da quantidade de log mantidos no historico
2. Remoção dos log mais antigos
Como usar
Adicione este script como um WebJob Triggered no Azure App Service "siga-api" com a seguinte expressão CRON:
0 0 0 * * *
"""
import os
import sys
sys.path.appen... | [
"ronaldox2@gmail.com"
] | ronaldox2@gmail.com |
29faaabb15279e3864e8a6f022d909da552617c5 | edab5b4487eb5619d717acd64a988930ba069b4a | /src/pool/colors.py | 8304ae2b4540b5142d4580d8f6ef6aa2acb40fe2 | [] | no_license | 18-500-b9/pool-simulator | e7a9313a567834797dfe5e0796796c202bc86650 | e2efd5a9b8d70cebf8cb670fc8a587851a909e14 | refs/heads/master | 2020-04-21T03:04:41.149379 | 2019-03-21T13:55:38 | 2019-03-21T13:55:38 | 169,274,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | """
RGB color values for PyGame
"""
AQUA = (0, 255, 255)
BLACK = (0, 0, 0)
BLUE = (0, 0, 255)
FUCHSIA = (255, 0, 255)
GRAY = (128, 128, 128)
GREEN = (0, 128, 0)
LIME = (0, 255, 0)
MAROON = (128, 0, 0)
NAVY_BLUE = (0, 0, 128)
OLIVE = (128, 128, 0)
PURPLE = (128, 0, 128)
RED = (255, 0, 0)
SILVER = (192, 192, 192)
TEAL =... | [
"samuelkim523@gmail.com"
] | samuelkim523@gmail.com |
ecc82156cf415769d849cd147b8a00a30b5f94b0 | 28cb13c23d37ea87d57eae173d85692df8cf4a87 | /lab9_i_10/backend/todos/migrations/0001_initial.py | a8df615cf957eda7058e18ec8573d20d050894da | [] | no_license | jeremi420/aplikacje-internetowe-21686-185ic | e25ad1912a53242be5e7e7d46d6192bc59de9578 | a08c937fadcbe9986b4bb2c5f0a3a768ee6d7e96 | refs/heads/main | 2023-03-07T10:18:24.601142 | 2021-02-16T23:44:40 | 2021-02-16T23:44:40 | 311,286,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | # Generated by Django 3.1.5 on 2021-01-17 19:46
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Todo',
fields=[
('id', models.AutoField(aut... | [
"jerwier420@gmail.com"
] | jerwier420@gmail.com |
13dd0603c64d79f959ef65d4b02c4e97751e6004 | 19a6255cd379a3bd446f022e408e6cc46f32746b | /venv/Scripts/easy_install-script.py | c8194e216a42d8c1f63e1cc8dc562e7f78aea851 | [] | no_license | Li-Rui-QI/practice | 6a78826d254f618e5b40ef85670d6f00aa3ea7e1 | 3830e4b3f6c328f486c5c2f82f31f9038b0acc55 | refs/heads/master | 2022-11-19T23:56:34.633858 | 2020-07-22T18:02:11 | 2020-07-22T18:02:11 | 279,687,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | #!C:\liruiqi\college3\practice\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '... | [
"li995186428@gmail.com"
] | li995186428@gmail.com |
c8ad214213403b0a248e5896f4ef5208e2cff18b | bb0ba7523f3ea5adf18acb5fe82bdfdc7423c9c9 | /Final_App/basic_calculation.py | c96bae878c1babe3fdb118535ca1a27c3ef8899b | [] | no_license | MairisLV/Final_Project | a899ea363301198088da7b8c90d9cca3c12b03aa | d94c6753650665764e518cd5196404206e90ee18 | refs/heads/main | 2023-04-28T07:21:12.423801 | 2021-05-11T20:09:12 | 2021-05-11T20:09:12 | 366,501,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | class Calculate_Loan():
def __init__(self, loan_amount, term, interest_rate):
self.loan_amount = loan_amount
self.term = term
self.interest_rate = interest_rate
def interest(self):
# S=K(1+i)^n
for period in range(int(self.term)):
total = fl... | [
"mairis.baumanis@gmail.com"
] | mairis.baumanis@gmail.com |
3dc58c5a41c2665912c4b9f79f021b245d79b4cb | c76585f0e1a8cc35018bb11c6c01733fa2226df3 | /predictor-service/settings.py | b65c225a235d823d45160bfc596d9bff87c25056 | [
"MIT",
"Apache-2.0"
] | permissive | akvelon/Bitcoin-Transaction-Optimization | 9e8099b3ae64612bbaf95603e470763b22da9c5e | d5a9eb4322370b81721023daf8dd0eef0d3189a8 | refs/heads/master | 2023-06-08T18:28:03.464518 | 2023-05-29T16:10:41 | 2023-05-29T16:10:41 | 173,724,819 | 8 | 1 | Apache-2.0 | 2022-11-21T22:18:54 | 2019-03-04T10:35:27 | Jupyter Notebook | UTF-8 | Python | false | false | 949 | py | """
Copyright 2019 Akvelon Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, soft... | [
"sergey.kubasov@akvelon.com"
] | sergey.kubasov@akvelon.com |
7d32ccc1b8c31ca35bf202a233e4f3f95ec0f4cc | 23239bbcca2fe6dc2b14688063b7f75abdc0e29d | /QuoteEngine/TextIngestor.py | 46fbd256e017acec8e388625f83aafe6be85321f | [] | no_license | luke-fs/udacity_meme_generator | 1d110aedbfbb203f9a071bc28daa51b576a64fc6 | 30c9cc5c9ea8fa5cb76a78dc66a651e2ef231712 | refs/heads/main | 2023-03-30T04:27:14.174334 | 2021-04-04T14:41:10 | 2021-04-04T14:41:10 | 353,123,922 | 0 | 0 | null | 2021-04-04T14:41:10 | 2021-03-30T19:51:19 | HTML | UTF-8 | Python | false | false | 872 | py |
from typing import List
import subprocess
import os
from .IngestorInterface import IngestorInterface
from .QuoteModel import QuoteModel
class TextIngestor(IngestorInterface):
"""The TXT Ingestor Class, to ingestor TXT quotes
Args:
IngestorInterface: This class inherits from Interface
"""
al... | [
"luke.strauer1@googlemail.com"
] | luke.strauer1@googlemail.com |
293fa724238f069bbc6baeb29ccc88ff5522b35d | 68aa8afaae7429ea8e1760e4483ddc4cde90fe45 | /benchmark/addressbook.proto.py | 7311a99f5cdc479b9b5d120dfae92406b1e32d0e | [
"BSD-2-Clause"
] | permissive | amluto/capnpc-python-cpp | 0329e9eb99f9283a023d0bc9c911fec2696e88a6 | 2fe61781f512d4f7ae0bdc5c0ece8672b24274f5 | refs/heads/master | 2021-01-18T10:01:48.233946 | 2013-08-28T21:46:53 | 2013-08-28T21:46:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,342 | py | from __future__ import print_function
import addressbook_pb2 as addressbook
import os
print = lambda *x: x
def writeAddressBook(fd):
addressBook = addressbook.AddressBook()
alice = addressBook.person.add()
alice.id = 123
alice.name = 'Alice'
alice.email = 'alice@example.com'
alicePhones = [a... | [
"github@jparyani.com"
] | github@jparyani.com |
09c0fefdd010970f39b250148bf0b0160b5f65a1 | a00fdfc743262d3d9253bab1f2e8b10f99f013ee | /Bambu/bambuToNero.py | 88f058034181c1d5bdb4ff97c5bcf43358b2fc8b | [] | no_license | pdoming/NeroProducer | 2a97101002c626d7f23f3c80e1abfaacc5c81968 | 8082361fa0a05c83cc6c6aacb1bdd5de24f65115 | refs/heads/master | 2021-01-15T17:35:58.814592 | 2015-07-25T16:50:39 | 2015-07-25T16:50:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,400 | py | from MitAna.TreeMod.bambu import mithep, analysis
import os
mitdata = os.environ['MIT_DATA']
from MitPhysics.Mods.GoodPVFilterMod import goodPVFilterMod
from MitPhysics.Mods.JetCorrectionMod import jetCorrectionMod
from MitPhysics.Mods.JetIdMod import jetIdMod
from MitPhysics.Mods.MetCorrectionMod import metCorrectio... | [
"yiiyama@mit.edu"
] | yiiyama@mit.edu |
f75b7cea7eec79e082a31dcc921f3ddc5b829510 | 4774250f47b717f78f5be54b152bfc0fd46e49b3 | /Planet Class.py | f476aedd5a763a55a0d0799dcaaaf07717eb9f63 | [] | no_license | LuckySalmon/SolarSystemSimulation | dfb6641aff8127a87260565eed4a1994cf46d494 | 7c3917674ad2d5b70c2d768e7e6a98a2a140a9f7 | refs/heads/master | 2022-08-12T18:23:53.437959 | 2020-05-02T23:21:43 | 2020-05-02T23:21:43 | 260,792,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,133 | py | import random, math
# SBC is the Stefan Boltzmann constant, used in calculating luminosity.
SBC = 5.670367 * (10 ** -8)
# g is the gravitational constant
g=6.674 * (10 ** -11)
# Name can be changed later.
# Velocity will later be changed to only allow stable orbits.
# Habitable will later be changed to depend on the ... | [
"LuckySalmon@users.noreply.github.com"
] | LuckySalmon@users.noreply.github.com |
c383a0ab8b68f0818c9f72c933f6d128dad4b8a6 | 3de707e3e7f3fcbf46700e1bf8d6c394a71410a2 | /augpathlib/remotes.py | bc67fd0ba4611b6910d60347b5944246e289d464 | [
"MIT"
] | permissive | tmsincomb/augpathlib | 984f1c8418e7e8eaa5675a3c209cbd745cdee3e7 | ed9c0edff540741fca866780a3d043a3b7644f08 | refs/heads/master | 2022-11-17T12:03:13.852433 | 2020-06-29T10:10:23 | 2020-06-29T10:10:23 | 276,260,552 | 0 | 0 | MIT | 2020-07-01T02:47:31 | 2020-07-01T02:47:30 | null | UTF-8 | Python | false | false | 33,457 | py | import os
import sys
import atexit
import pathlib
import warnings
import subprocess
from augpathlib import exceptions as exc
from augpathlib.meta import PathMeta
from augpathlib import caches, LocalPath
from augpathlib.utils import _bind_sysid_, StatResult, cypher_command_lookup, log
if os.name != 'nt':
# pexpect o... | [
"tgbugs@gmail.com"
] | tgbugs@gmail.com |
a7d0d5f5718864db29eb82f729063d29482ad9a9 | 812521a7dc172551572b36ee1ecca4bd76e6f8b2 | /tests/test_flask_reverse_proxy_middleware_path_prefix.py | d9a7c1e9df33f5f4002294c8a974b22147f4b0d9 | [
"OGL-UK-3.0"
] | permissive | rachmadaniHaryono/flask-reverse-proxy-fix | 8b1128646431706218fe52007c3282ab6996221a | a6a9b6e91d9e2152a1f34109249905ab609377a5 | refs/heads/master | 2023-01-23T08:18:00.977832 | 2023-01-21T02:33:38 | 2023-01-21T02:33:38 | 239,060,743 | 1 | 3 | null | 2020-02-08T03:04:11 | 2020-02-08T03:04:10 | null | UTF-8 | Python | false | false | 1,797 | py | import unittest
from http import HTTPStatus
from flask_reverse_proxy_fix.middleware import ReverseProxyPrefixFix
from app import create_app_with_middleware, create_app_without_middleware
class FlaskReverseProxyMiddlewarePathPrefixTestCase(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):... | [
"felix@felixfennell.co.uk"
] | felix@felixfennell.co.uk |
ba45777ebf476d635254faf1c942e070055b6fc5 | c463e77c3d76e6b4810e202541d3f3f7f91bcf60 | /build/PCL-ROS-cluster-Segmentation/cmake/sensor_stick-genmsg-context.py | 31a011a3d2b1087f74bbb8bde784bccea1893805 | [] | no_license | MGRNascimento/Tese | 18087ee59dfee96ee000c9f16c646d1750174285 | bf78d417849a74d9c5a520d40dcbebeadf084706 | refs/heads/master | 2020-06-23T13:57:01.699657 | 2019-10-23T21:47:19 | 2019-10-23T21:47:19 | 198,638,709 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 992 | py | # generated from genmsg/cmake/pkg-genmsg.context.in
messages_str = "/home/miguel/catkin_ws/src/PCL-ROS-cluster-Segmentation/msg/DetectedObjectsArray.msg;/home/miguel/catkin_ws/src/PCL-ROS-cluster-Segmentation/msg/DetectedObject.msg;/home/miguel/catkin_ws/src/PCL-ROS-cluster-Segmentation/msg/SegmentedClustersArray.msg"... | [
"relvas.cvg@gmail.com"
] | relvas.cvg@gmail.com |
feab3ebba8930e7e527605d29f696b086b58d027 | 4c3094a869f59be8836993469b28f088fef9fff1 | /Questions/Q_093_RentalCarLocations.py | 35739a04cd88935d0ee54e3e84963fad486f00b2 | [] | no_license | Bharadwaja92/DataInterviewQuestions | d885d40da4d546a164eee37e7250ddb519fc8954 | 5b002f34c3b1440f4347a098f7ce1db84fc80e7f | refs/heads/master | 2022-11-06T08:57:49.283013 | 2020-06-22T09:10:40 | 2020-06-22T09:10:40 | 269,247,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | """""""""
Suppose you're working for a car rental company, looking to model potential location distribution of their
cars at major airports. The company operates in LA, SF, and San Jose.
Customers regularly pickup a car in one of these 3 cities and drop it off in another.
The company is looking to compute how likely... | [
"saibharadwaj.kh@gaiansolutions.com"
] | saibharadwaj.kh@gaiansolutions.com |
e8b3288c3110b8995c15af8e6e5b8b9a674bc56d | 3d4d6dc268e605f81c280d94cdf16d7633313a15 | /app/app.py | 998ea2648ab00a7a7fb927656282f36feeed4e18 | [] | no_license | mcadhoc/Flask-AppBuilder-Skeleton | 6e0e4d78b0aee11c7632442e7f9dfd0a45d371f2 | e840fd3db6e065cf87e7c1333aea26292080f3fc | refs/heads/master | 2020-06-20T07:21:56.102240 | 2019-07-16T19:17:42 | 2019-07-16T19:17:42 | 197,040,763 | 0 | 0 | null | 2019-07-16T19:17:43 | 2019-07-15T17:09:54 | Python | UTF-8 | Python | false | false | 1,493 | py | from flask import Flask, render_template, redirect, url_for,request
from flask import make_response
app = Flask(__name__)
@app.route("/")
def home():
return "hi"
@app.route("/index")
def index():
return render_template('login.html', message='')
url = 'https://www.foxnews.com/politics/aoc-squad-news-conferenc... | [
"yottzumm@gmail.com"
] | yottzumm@gmail.com |
6e61a410a9a7f1971524fc55c3bfdf11aa95a064 | ceba110faf303886894c256739c759842d0f36e7 | /mymoney/core/tests/test_validators.py | b31f4512e412d79bf186b3732ec103b5037e1679 | [
"BSD-3-Clause"
] | permissive | dss2194/mymoney-server | 2ded0eec3a6fe31df0a25161d09002778ec76e47 | 40dc9fdd08b3561287a9153342b25c58de8ad8ce | refs/heads/master | 2022-03-06T13:21:06.482583 | 2018-09-06T12:23:56 | 2018-09-09T10:33:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,294 | py | from django.test import TestCase
from rest_framework import serializers
from ..validators import MinMaxValidator
class MinMaxValidatorTestCase(TestCase):
def test_no_min(self):
validator = MinMaxValidator(field_min='min', field_max='max')
validator(data={'max': 10})
def test_no_max(self):
... | [
"yannick.chabbert@gmail.com"
] | yannick.chabbert@gmail.com |
a1b04624df6910adad210fe98bb6ade2e31d986b | b772048db1d84de6071dcb3978b6f548d2b42ae4 | /tests/test_ner.py | 25161ef7c203bccec745b1000a646113cac4af98 | [
"BSD-2-Clause"
] | permissive | yutanakamura-tky/MedNER-J | 46ca13d87b6c4977b4042915ff2105ab4dc62d88 | a0c68a32553bbbdb9f5ae5fd41584198951bc14c | refs/heads/master | 2023-08-21T23:05:22.645001 | 2021-08-10T02:34:45 | 2021-08-10T02:34:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,623 | py | import unittest
from medner_j import Ner
class TestNer(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.model = Ner.from_pretrained(model_name="BERT", normalizer="dict")
cls.examples = ['それぞれの関節に関節液貯留は見られなかった', 'その後、左半身麻痺、CTにて右前側頭葉の出血を認める。 ']
cls.xmls = ['それぞれの関節に<CN value="か... | [
"suzzz428@gmail.com"
] | suzzz428@gmail.com |
16ac483d71ea83b3969b16eb429e6f84f5674a9f | 34d5a8760dc3cfe71aab7a6f70d61eb319308b1e | /student/affaircourse/migrations/0005_studentcourse_cournum.py | 35a061c3294f36d3577218c73b734652921aa47b | [] | no_license | Lmagicport/Student-affairs | a4c5a9e0d92967b5ebbf926fee98ea786692cc27 | 007f35f0d30e16635e9a386fb95351895f5b092a | refs/heads/main | 2023-02-01T06:25:10.583127 | 2020-12-15T08:33:34 | 2020-12-15T08:33:34 | 307,300,571 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | # Generated by Django 3.1.2 on 2020-11-19 13:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('affaircourse', '0004_studentcourse_ispass'),
]
operations = [
migrations.AddField(
model_name='studentcourse',
name=... | [
"2034913866@qq.com"
] | 2034913866@qq.com |
529c3a6e35142acdd0bfc6805bdf3d08e6bb3cfb | d3ad5201a6479e7522e87598b50600468a1a3c97 | /workers/proxies.py | c20818e6d77437bff982605e2db13d1327de43ea | [] | no_license | ludalex/storechecker.io | ba736e9869018db699d2351adb1683c600d069af | c396d34dc57068058ae88427e36b059f824f43e5 | refs/heads/master | 2021-01-23T22:38:28.426417 | 2014-11-15T13:27:33 | 2014-11-15T13:27:33 | 6,759,656 | 2 | 0 | null | 2014-11-15T13:24:48 | 2012-11-19T12:00:10 | PHP | UTF-8 | Python | false | false | 2,252 | py | from datetime import datetime
import sqlite3
from requests import session, __version__
from requests.exceptions import ConnectionError, ProxyError, Timeout
from bs4 import BeautifulSoup
import re
conn = sqlite3.connect('/var/www/n4checker/db/storechecker.db')
db = conn.cursor()
db.execute("delete from proxies")
conn.... | [
"ludalex@gmail.com"
] | ludalex@gmail.com |
af80ef60a13d2e3be5f9fadcee5100682e0db9d3 | 8fb567f62189d1669439c797e19502dd560e4fb6 | /relief_canvas.py | 2c563e55e99831bf3b00d56fbf734106ef3bc6f7 | [] | no_license | AndiEcker/kivy_playground | 22cabf8f77fb2087d2f8c4f3719a4c3d367d1874 | d86c736c752b08172760d2ea145527df4eb58199 | refs/heads/master | 2021-07-06T23:51:29.284502 | 2021-05-05T22:02:03 | 2021-05-05T22:02:03 | 236,343,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,125 | py | """ relief canvas """
from typing import Any, Callable, Tuple, Union
from kivy.factory import Factory
from kivy.graphics import Color, Line
from kivy.graphics.instructions import InstructionGroup
from kivy.lang import Builder
from kivy.properties import NumericProperty, ObjectProperty
from kivy.uix.label import Label
... | [
"aecker2@gmail.com"
] | aecker2@gmail.com |
ef19beb3ab81659669a7ebc9612b50f9315b39a6 | 429d014690e2e2f7ea49ac7a2e0fa01455a4125e | /katas/scraping/get_honor.py | b6974268c09fa9df7f80fab797afaa1a87d2f6af | [] | no_license | harrietty/python-katas | 4c2b12c7a29d9103b9d3eeffc1aa38f5273ab62f | 07957c3c5a1a35a9f2359f02f43e433fddbb8de6 | refs/heads/master | 2021-05-14T12:20:39.361071 | 2018-01-27T13:42:51 | 2018-01-27T13:42:51 | 116,405,926 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | # Returns the honour for a specific username
import requests
from bs4 import BeautifulSoup
def get_honor(username):
URL = 'https://www.codewars.com/users/{}'.format(username)
r = requests.get(URL)
page = BeautifulSoup(r.text, 'html.parser')
stats_area = page.find_all(attrs={'class': 'stat-row'})[0]
... | [
"harriethryder@gmail.com"
] | harriethryder@gmail.com |
d1cd60b8ac3a89b9dd0b4a456d9c166b93f4ffe5 | 67c5269fa4720cf728d4c1dd572c09d5e4e7a321 | /convert_mcnp71.py | db687aef0e14ec73a1479e0f9dc3959d89a76938 | [] | no_license | SamPUG/data | cff882327f5fe79ce2c2fca70d217173300c4f85 | 457755083bb8e05e58bbc3765f52bf8c756abb9c | refs/heads/master | 2020-12-19T14:57:12.806099 | 2020-03-06T08:30:47 | 2020-03-06T08:30:47 | 235,767,080 | 0 | 0 | null | 2020-02-25T14:43:04 | 2020-01-23T09:58:38 | Python | UTF-8 | Python | false | false | 4,330 | py | #!/usr/bin/env python3
import argparse
from collections import defaultdict
from pathlib import Path
import sys
import openmc.data
# Make sure Python version is sufficient
assert sys.version_info >= (3, 6), "Python 3.6+ is required"
description = """
Convert ENDF/B-VII.1 ACE data from the MCNP6 distribution into an... | [
"paul.k.romano@gmail.com"
] | paul.k.romano@gmail.com |
3e7f64e403c62cb91b90b2d22413862faa747cfd | 0fc78cbe3dcf339faf5302de82db8e81ae4a952a | /task3_snkrs/spiders/neiman_spider.py | ad904a7a1fcc7eef5ca7216a6f973c731e28d06f | [] | no_license | waseesoft/task3_snkrs | 6e9de5a292d28dbe3a0986167da6d2a6f696a182 | 15e14d01135f0f9208e5a6c8aa6c96b9c866c909 | refs/heads/master | 2021-06-24T06:41:59.354166 | 2021-04-01T21:46:22 | 2021-04-01T21:46:22 | 201,049,018 | 0 | 0 | null | 2019-10-24T13:42:33 | 2019-08-07T12:46:46 | Python | UTF-8 | Python | false | false | 8,301 | py | import json
from scrapy.spiders import CrawlSpider, Rule, Request
from scrapy.linkextractors import LinkExtractor
from task3_snkrs.items import NeimanItem
class NeimanSpider(CrawlSpider):
name = 'neimanmarcus'
HTTPS = 'https:'
custom_settings = {
'USER_AGENT': "Mozilla/5.0 (Windows NT 6.1; WOW6... | [
"mrarslan101@gmail.com"
] | mrarslan101@gmail.com |
2dd90c00d550fb8a4a73f533eae06e6108524325 | 11cff97013030eb41bf5afdb08a0c3c640f8c961 | /Tensorflow/roi-pooling/code/neptune_handler.py | f783c2c9ab1f3906b7e8c27cbb5d5a1647b679de | [] | no_license | mellophi/Codes | 86dcc5c45591f97bdaca79f81fc988954841dd5a | 110fe75961354c259e31cb7cb9a9b5fda32b70bc | refs/heads/master | 2022-11-20T19:53:21.498960 | 2018-02-18T04:32:47 | 2018-02-18T04:32:47 | 118,418,556 | 0 | 1 | null | 2022-10-29T00:45:51 | 2018-01-22T06:55:33 | Jupyter Notebook | UTF-8 | Python | false | false | 2,742 | py | from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
from builtins import range
from builtins import object
from deepsense import neptune
import numpy as np
import cv2
from PIL import Image
class NeptuneHandler(object):
def __init__(self, num_channel_names,... | [
"ayon01051998@gmail.com"
] | ayon01051998@gmail.com |
a7bd12e2ee0ac60ddb220bbd563cbe214e9ed450 | 3fa8d270c7d8f6e1fd608cbe7e5ddbf2b39768f3 | /external-calls/httpsGet/src/lambda_function.py | 1a3cecae92804d050293b2f412631fda258ecade | [
"Apache-2.0"
] | permissive | knowlsie/alexa-cookbook | f73980df1bcd8aef630d4924e88b8797444d7280 | 4026ff4ff54194f628736d4c38471546e9b60860 | refs/heads/master | 2021-01-19T22:41:09.817843 | 2017-04-18T13:11:47 | 2017-04-18T13:11:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,541 | py | ## alexa-cookbook sample code
## There are three sections, Text Strings, Skill Code, and Helper Function(s).
## You can copy and paste the entire file contents as the code for a new Lambda function,
## or copy & paste section #3, the helper function, to the bottom of your existing Lambda code.
## 1. Text strings... | [
"mccaul@amazon.com"
] | mccaul@amazon.com |
a8db440dc6845514e7806efca43efbe2f6c0c9bd | c27e6ce3e77dd7ab1f66a2a653893fcc06fc3ad4 | /employee_register/migrations/0003_auto_20200812_1039.py | e503bb2bd350fcfa1ffff6c9f5f295392bfa0056 | [] | no_license | bokerwere/python-django-employee-registration | f162c01c70fda7979c3904277df3cad0f192abc8 | ac6433bfa378b37f7d84c36e0244f42e5b5383da | refs/heads/master | 2022-12-12T06:48:35.922474 | 2020-09-01T12:13:08 | 2020-09-01T12:13:08 | 291,987,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | # Generated by Django 3.0.8 on 2020-08-12 07:39
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('employee_register', '0002_auto_20200808_1309'),
]
operations = [
migrations.RenameField(
model_name='employee',
old_name='mo... | [
"josephboker93@gmail.com"
] | josephboker93@gmail.com |
8fa27adb7b645a2f9b9ee0039cbef6dac5e7a346 | cfb66405a8aa30401c4c9b9cdb5f40edc3cda4a1 | /Layout/MainWindow.py | 6e703100858bf8bd974a878b76b75390e1523897 | [] | no_license | stinger000/CopterHack2020_IR_LED_Desktop_GUI | da42e978ab4eb8ee137ce07a25373c46719e3580 | 88c2ce10e3ba566a210d9e3a9c277770f2d388b6 | refs/heads/master | 2023-03-25T04:56:57.216682 | 2021-03-19T17:44:47 | 2021-03-19T17:44:47 | 300,357,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,750 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'ui\MainWindow.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore... | [
"bigbani1334@gmail.com"
] | bigbani1334@gmail.com |
e6d1540bc6d924824bde87140da6b4be13c83c4f | 1c3f011b5e29ce6aa2f65da8b5055454b2be3eab | /battleship_oo1.py | 9d048819f5c89625f70f7cba2fde3645aa776cbe | [] | no_license | pythonlectures/battleship | b26f86f6207a04bd8921d6547ee6837e4cf4db99 | e35fd6e9fe14f4c612ba5c89be4a9bcae3fdad0d | refs/heads/master | 2020-03-23T21:04:07.132029 | 2018-08-05T08:01:43 | 2018-08-05T08:01:43 | 142,079,474 | 0 | 0 | null | 2018-08-11T18:10:52 | 2018-07-23T23:22:16 | Python | UTF-8 | Python | false | false | 2,740 | py | class Game:
def __init__(self, player1, player2, board):
self.player1 = player1
self.player2 = player2
self.board = board
self.board.ships.extend(player1.ships)
self.board.ships.extend(player2.ships)
self.player_takes_turn = self.player1
self.winner = None
... | [
"marco.verduci@outlook.com"
] | marco.verduci@outlook.com |
022c0ad1b16fcf2c7fcb93d178db8aeacd866d1b | 2e83e004d8a69a773d1e305152edd16e4ea35ed8 | /students/humberto_gonzalez/session04/mailroom.py | d46c459282d38bc0a37ac96b496c40d1524f327a | [] | no_license | UWPCE-PythonCert-ClassRepos/SP_Online_PY210 | 9b170efbab5efedaba8cf541e8fc42c5c8c0934d | 76224d0fb871d0bf0b838f3fccf01022edd70f82 | refs/heads/master | 2021-06-16T20:14:29.754453 | 2021-02-25T23:03:19 | 2021-02-25T23:03:19 | 161,077,720 | 19 | 182 | null | 2021-02-25T23:03:19 | 2018-12-09T20:18:25 | Python | UTF-8 | Python | false | false | 4,004 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Mar 13 17:53:34 2019
@author: humberto gonzalez
"""
import sys
import tempfile
import os
import operator
donor_db = {"Tyrod Taylor": [1000.00, 45.50],
"Jarvis Landry": [150.25],
"Philip Rivers": [650.23, 40.87, 111.32],
... | [
"Humberto.gonzalezj@gmail.com"
] | Humberto.gonzalezj@gmail.com |
7b6403c7efbad9fe1289f6a2236850d7a726f626 | eacff46eda2c6b509449979a16002b96d4645d8e | /Collections-a-installer/community-general-2.4.0/plugins/modules/awall.py | ca3979593c598ecae378543075eff676aa1be9d1 | [
"MIT",
"GPL-3.0-only",
"GPL-3.0-or-later"
] | permissive | d-amien-b/simple-getwordpress | 5e6d4d15d5f87124ab591e46b63fec552998fdc3 | da90d515a0aa837b633d50db4d91d22b031c04a2 | refs/heads/master | 2023-04-08T22:13:37.347545 | 2021-04-06T09:25:51 | 2021-04-06T09:25:51 | 351,698,069 | 0 | 0 | MIT | 2021-03-31T16:16:45 | 2021-03-26T07:30:00 | HTML | UTF-8 | Python | false | false | 15 | py | system/awall.py | [
"test@burdo.fr"
] | test@burdo.fr |
30728e1d5147122974d91d2d0ec16a80eed21091 | 06f05e8a3786349edee85a3feb06b5fe8e881c5a | /assets/misc/ExcelHandler.py | 4be1ee7fac62cd65b664c361400c50354f464b64 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"MIT"
] | permissive | UbiCastTeam/mediasite_client | fcb3b20c8d70d170d2acac562ff8166e4bd8383a | 04f398c0a1dd2ab70272b346065db4e63dfb38fb | refs/heads/master | 2023-07-05T18:23:35.439153 | 2023-06-30T14:53:51 | 2023-06-30T15:10:23 | 329,262,964 | 0 | 0 | MIT | 2021-06-28T16:21:42 | 2021-01-13T09:53:23 | null | UTF-8 | Python | false | false | 867 | py | # Referenced from:
# https://www.safaribooksonline.com/library/view/python-cookbook-2nd/0596007973/ch12s08.html
from xml.sax import ContentHandler, parse
class ExcelHandler(ContentHandler):
def __init__(self):
self.chars = [ ]
self.cells = [ ]
self.rows = [ ]
self.table... | [
"d33bs@users.noreply.github.com"
] | d33bs@users.noreply.github.com |
d7366a977e0afa6e57c3e3e0f85d765de473224f | a00443d297229f1631eb14b2fa5359b37ed6ace7 | /Scripts/pip3.7-script.py | 93e6c18ca6cae0ed63e4add0a85b977ad98f32a9 | [] | no_license | ugoodumegwu/my-first-blog | 9e4f0df4fe971246515e827b362bbfef09f8813f | ce891b3a62efb5c5933bd65db14a25dc186114b4 | refs/heads/master | 2020-06-11T23:28:19.434299 | 2019-06-28T11:32:08 | 2019-06-28T11:32:08 | 194,120,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | #!C:\Users\user\PycharmProjects\anywhere\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.7'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])... | [
"ugoodumegwu@gmail.com"
] | ugoodumegwu@gmail.com |
075b9c4afc1dee1fe7094ba2c41a89815e17e658 | a0e4be557dd32d6a89ea3d86166e23d4c6de3101 | /6.00.1x_scripts/Week 4/Problem Set 4/ps4a_wordgame.py | 70e23ae820dce6c9e9deadde6e4856e28f2501a2 | [
"Giftware"
] | permissive | acpfog/python | 65d8016d115ad5ae62314ed809375b93fb692bf6 | 1ec01bf1c7feeaa420fe08b5936c53b8d0e03879 | refs/heads/master | 2018-12-07T02:43:18.127737 | 2018-09-11T06:34:07 | 2018-09-11T06:34:07 | 32,280,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,505 | py | #
# A Word Game: Part a
#
# This game is a lot like Scrabble or Words With Friends, if you've played those.
# Letters are dealt to players, who then construct one or more words out of their letters.
# Each valid word receives a score, based on the length of the word and the letters in that word.
#
# The rules of the... | [
"acpfog@gmail.com"
] | acpfog@gmail.com |
e7a6a0fe0f7e05f27f6c11b927615a33570870ae | b560c65b2cdaa92333d114d79cf2a191c6da5852 | /client.py | 29faa95073402246f8263fbb591214aa58c647aa | [] | no_license | Ranger11Danger/python-server-client | 3823be1b3cc761c6f75343c0fc3c058742746f9c | b587d961184944853c7ca3636fd173b98964d5f3 | refs/heads/master | 2020-09-23T04:13:03.990788 | 2019-12-02T14:51:49 | 2019-12-02T14:51:49 | 225,398,857 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | #!/usr/bin/python3
import socket
import os
import time
ip = '0.0.0.0'
port = 1337
s = socket.create_connection((ip,port))
while True:
message = input('To server: ')
if '#shell' in message:
os.system("gnome-terminal -e 'bash -c \"ncat -nlvp 8888 --ssl\" '")
time.sleep(3)
s.send(message.enc... | [
"noreply@github.com"
] | noreply@github.com |
3f124ab243ee4915437638872d37c259c7a7ea28 | e3396ba55ba855e146963aeb4733f0ce2725892b | /result/145/ant.py | a5e2a21c04735fe5cf42d467a81de5c361fc8e03 | [] | no_license | masashihamaguchi/contest-2018-GOMOKU | 2ad93794a72370801bbcfd628cf4ed03a87c4313 | e6b2fd0aa1b4095cfd962078ed2ec69068e929c5 | refs/heads/master | 2021-09-23T03:24:59.725681 | 2018-09-20T08:01:13 | 2018-09-20T08:01:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,774 | py | #!/usr/bin/python3
N = 15
# The main routine of AI.
# input: str[N][N] field : state of the field.
# output: int[2] : where to put a stone in this turn.
def Think(field):
CENTER = (int(N / 2), int(N / 2))
best_position = (0, 0)
canMaxStone = 0
for i in range(N):
for j in rang... | [
"sknzw2608@gmail.com"
] | sknzw2608@gmail.com |
07b9a817a5d2523a16a0e03b7548ae96e1853340 | 192b040fb4487d4634c41cdf9c66042853749937 | /colat/utils/stylegan_helper.py | 796ba7ca92e7cfdc1374a0100a6f519676562d52 | [] | no_license | kkodoo/latentclr | f62dbdb50d3a9ad0cd3869618c973d88cf4406fb | f5e88ee90f5c5dc38a42972117acf419dfa39da9 | refs/heads/main | 2023-08-29T10:24:46.831681 | 2021-10-11T19:32:25 | 2021-10-11T19:32:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,962 | py | # Copyright 2020 Erik Härkönen. All rights reserved.
# This file is licensed to you 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... | [
"okyksl@gmail.com"
] | okyksl@gmail.com |
8574e74809fd2344a0ec2897ad43bff7a1dd3a40 | 7f8483b792bd2dfa732a13c26590833f5902f083 | /Aula05/manipulacao_canais.py | a6f1a212109a13ac562163dda03b1d47a9abcc99 | [
"MIT"
] | permissive | thiagopollachini/introducao-opencv | c905c61a65a966d50df2838ba8463a7e0725a765 | c1b63bb2aca008821489f65479c957ce4f925c80 | refs/heads/master | 2021-09-13T23:50:20.365076 | 2018-05-06T03:19:51 | 2018-05-06T03:19:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | #Importando biblioteca do OpenCV
import cv2
#Importando biblioteca para computação científica
import numpy as np
#Lendo imagens
imagem_original = cv2.imread('../images/lena.png',1)
#Separa os canais da imagem
(B, G, R) = cv2.split(imagem_original)
cv2.imshow("Red", R)
cv2.imshow("Green", G)
cv2.imshow("Blue", B)
cv2... | [
"viniciuscampos120@gmail.com"
] | viniciuscampos120@gmail.com |
08455de6972b66d2d49d9e1f4df28605236f0491 | 73c0d0b755182ca5ae182637677aefb3f2f572b6 | /scoring_program/libscores.py | 96829266b92e2701193ec70504993fc5e5b1afea | [] | no_license | Kihansi95/ChallengePredictSales | 1c52b253f86d55188b60119713b7604bec970e75 | 6e3f602b41c736c51115cc74946c6b6a1cf8ea0b | refs/heads/master | 2020-05-01T10:31:13.318397 | 2019-05-05T22:32:55 | 2019-05-05T22:32:55 | 177,422,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,028 | py | # Score library for NUMPY arrays
# ChaLearn AutoML challenge
# For regression:
# solution and prediction are vectors of numerical values of the same dimension
# For classification:
# solution = array(p,n) of 0,1 truth values, samples in lines, classes in columns
# prediction = array(p,n) of numerical scores between ... | [
"ndh3395@gmail.com"
] | ndh3395@gmail.com |
bf85a112cc933c60dd948b96d1bb63260bbb3d38 | 118a63e4b65052430edbc07b5d794d3bad95a75d | /Урок 7/Task7_2.py | 71b53f30b81915ba28649a964cc02c4e4c20c5d5 | [] | no_license | olgaBovyka/BasicLanguagePython | a47bff74b4908dc34d106defc81f5825d75dc88e | 312d32ca4a7f382eac7e25295c44846572c3b9f0 | refs/heads/master | 2022-11-05T22:34:29.302452 | 2020-06-24T20:35:55 | 2020-06-24T20:35:55 | 263,566,938 | 0 | 0 | null | 2020-06-24T20:35:57 | 2020-05-13T08:13:21 | Python | UTF-8 | Python | false | false | 3,141 | py | """
2. Реализовать проект расчета суммарного расхода ткани на производство одежды. Основная сущность (класс) этого
проекта — одежда, которая может иметь определенное название. К типам одежды в этом проекте относятся пальто и костюм.
У этих типов одежды существуют параметры: размер (для пальто) и рост (для костюма). Это... | [
"olga@skat-vending.com"
] | olga@skat-vending.com |
c72ea0fdf63e7cab3cd12fac24e9a96fe75a01e2 | 50402cc4388dfee3a9dbe9e121ef217759ebdba8 | /etc/MOPSO-GP0/ZDT4.py | 1082e5005e8823de068729fbccebe4e6a539378f | [] | no_license | dqyi11/SVNBackup | bd46a69ec55e3a4f981a9bca4c8340944d8d5886 | 9ad38e38453ef8539011cf4d9a9c0a363e668759 | refs/heads/master | 2020-03-26T12:15:01.155873 | 2015-12-10T01:11:36 | 2015-12-10T01:11:36 | 144,883,382 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,609 | py | '''
Created on 2014-1-25
@author: Walter
'''
from SwarmND import *;
import numpy as np;
import sys;
if __name__ == '__main__':
def func1(x):
return x[0];
def func2(x):
sum = 0.0;
for i in range(2, 10):
sum += x[i]**2 - 10 * np.cos(4 * np.pi * x[i]);... | [
"walter@e224401c-0ce2-47f2-81f6-2da1fe30fd39"
] | walter@e224401c-0ce2-47f2-81f6-2da1fe30fd39 |
c04c9fa2bf4ebb0e001ac9c901b729acbfa268d1 | ae537f4732aa31c7238e2287609738da881cb89c | /resources/item.py | 33ecafc1761c929d614cd892a1a08eb8112a8514 | [] | no_license | vincentgoh82/SchoolCode | 568e96126f350bff5d665bb87a0136d805b0c780 | 1904362d2bf1b673d9fcd2b6344aca8d7fa4aaa1 | refs/heads/master | 2021-07-09T21:10:20.905018 | 2017-10-05T10:31:40 | 2017-10-05T10:31:40 | 105,864,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,655 | py | from flask_restful import Resource, reqparse
from flask_jwt import jwt_required
from models.item import ItemModel
class Item(Resource):
parser = reqparse.RequestParser()
parser.add_argument('price',
type=float,
required=True,
help="This field cannot be left blank!"
)
parser.add... | [
"vincentgoh1982@gmail.com"
] | vincentgoh1982@gmail.com |
b48ce47ae18e26b378819f5c9ecf150415fccd5a | 25cf15f81982348cdee729baa5c6c8ca19ab4506 | /Ziza/static/media/settings.py | 48970cf31f12b9a59aebed0ae3dce7f5eb92fa0c | [] | no_license | HarunColic/ZizaRepo | ca962f42cbb3a521e3121174d6bf615187dfb67c | 79cd051b88a39d678abd8aa329fd7cfdca40cb42 | refs/heads/master | 2020-03-26T15:17:32.182469 | 2020-03-03T12:00:46 | 2020-03-03T12:00:46 | 145,034,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,221 | py | u"""
Django settings for Ziza project.
Generated by 'django-admin startproject' using Django 2.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
# Bu... | [
"haruncolic@hotmail.com"
] | haruncolic@hotmail.com |
367dc9761443c981fdda7dc72a838157e0f2e0a8 | 6e87da516ab1af2646c45f6f7c6626081f45f00b | /xarm_moveit_servo/launch/_xarm_moveit_servo.launch.py | ea87c5ea477110a88acab45300c174c6d56bdbb1 | [
"BSD-3-Clause"
] | permissive | 0000duck/xarm_ros2 | 5598f6812b4f2da8b0d38c932282249033e21048 | 57892f0bd79ffdc9936dd3b340ae141c186a370d | refs/heads/master | 2023-08-24T02:49:43.560843 | 2021-10-21T07:40:10 | 2021-10-21T07:40:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,030 | py | #!/usr/bin/env python3
# Software License Agreement (BSD License)
#
# Copyright (c) 2021, UFACTORY, Inc.
# All rights reserved.
#
# Author: Vinman <vinman.wen@ufactory.cc> <vinman.cub@gmail.com>
import os
from ament_index_python import get_package_share_directory
from launch.launch_description_sources import load_pyth... | [
"vinman.cub@gmail.com"
] | vinman.cub@gmail.com |
2d2fd39c2843868ed674ffcd8ec03183ce56c7d3 | 128a4a9f7d96aa159619947bb3f66752d8e79b75 | /train_functions.py | 7f2a12147ace02a13767d900228d4a43ded5d394 | [] | no_license | r0mer0m/DL-Medical-Images | 262fdda89612abc5a119b2dd60d1ded78359eeae | c0f4b2b6727d1680f13fdd4f1c7b950fd1c31251 | refs/heads/master | 2020-05-18T03:09:32.132147 | 2019-11-20T14:01:54 | 2019-11-20T14:01:54 | 184,136,383 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 16,012 | py |
from core import *
from utils import lr_loss_plot, save_model, load_model
# loss_function = F.binary_cross_entropy_with_logits
################################
######## 1st approach #########
################################
def get_optimizer(model, lr:float = .01, wd:float = 0.):
parameters = filter(lambda p:... | [
"mromerocalvo@dons.usfca.edu"
] | mromerocalvo@dons.usfca.edu |
4126a6bc42a32fee4d838aaaaec1268e2fac7a50 | d9efd71bcd858924c32761a24b37c285e3eb8f36 | /caption_generator_api/utils.py | c474a5e7a7cf2a7871fdcad24deb1e58874816f4 | [] | no_license | fg91/Neural-Image-Caption-Generation-Tutorial | 561c1bb33cf8c2827b9c0e5ab8c226512eeaacfc | 3416e64b47de7ac41249295e2de65d380421f4d7 | refs/heads/master | 2020-05-01T07:16:04.590640 | 2019-12-15T12:30:54 | 2019-12-15T12:30:54 | 177,348,369 | 70 | 9 | null | null | null | null | UTF-8 | Python | false | false | 2,802 | py | from scipy.misc import imresize
from scipy.ndimage.filters import gaussian_filter
from matplotlib.patheffects import Stroke, Normal
import numpy as np
import matplotlib.pyplot as plt
from PIL import Image
# the functions fig2data and fig2img are taken from
# http://www.icare.univ-lille1.fr/tutorials/convert_a_matplot... | [
"fabiograetz@googlemail.com"
] | fabiograetz@googlemail.com |
bd28753be51fb382e2fc2bb1f18dd523d88d8db0 | b28ca1c9a669f1a538b17837d25e394a8fd4ad10 | /SimpleAuth/wsgi.py | f7182e8691ce978835f002e1be4f6912795ed46d | [] | no_license | andricDu/SimpleAuth | e01a1c2b95cc9e8485a2e0be4cb8c772a6d5968f | 2de255c1d550314113a9b6529e59a68f09b29dd6 | refs/heads/master | 2021-08-18T12:40:40.865700 | 2020-04-21T14:34:26 | 2020-04-21T14:34:26 | 90,769,179 | 0 | 1 | null | 2021-06-10T18:34:25 | 2017-05-09T16:43:10 | Python | UTF-8 | Python | false | false | 398 | py | """
WSGI config for SimpleAuth project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_S... | [
"dusan.andric@oicr.on.ca"
] | dusan.andric@oicr.on.ca |
b34f8b9f7f3ba7a6eedc23ea2331a5070bc75d4b | e21f51bc47bf7a5e2cf1bc38a745d3685144511a | /Flask/flask_parser.py | b88c750851cd6c041834aebfe7c8f240925f7f22 | [] | no_license | razmanika/DjangoWeb | 3b1a763a9a2bc888e316ddde9010ebfdd4a0a28e | e5a660f7fabe4e1912cdcf72ba938fc355b614c6 | refs/heads/master | 2020-06-14T16:21:06.690176 | 2019-07-03T13:14:24 | 2019-07-03T13:14:24 | 195,054,360 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | import requests
from bs4 import BeautifulSoup
url = requests.get('http://localhost:8080/echo')
soup = BeautifulSoup(url.content, 'html.parser')
url1 = requests.post('http://localhost:8080/echo')
soup1 = BeautifulSoup(url1.content, 'html.parser')
print(soup,soup1) | [
"nikoloz.razmadze.1@btu.edu.ge"
] | nikoloz.razmadze.1@btu.edu.ge |
715807a84591cf453e82f10c07cfed4904e75100 | 42acd95998670c6815d7995eda8f54025086697f | /backend/src/api.py | 6563db1ce0158a18847ab77702d303ba6c8df441 | [] | no_license | ahmostafa91/coffee-shop | 2933a7ec26f006151fea04eeeed4eda9b8d5202e | 2a12e470b6773682f86afe21cb3cb74f75f6b783 | refs/heads/main | 2023-03-17T08:45:02.811929 | 2021-03-06T06:03:21 | 2021-03-06T06:03:21 | 345,019,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,909 | py | import os
from flask import Flask, request, jsonify, abort
from sqlalchemy import exc
import json
from flask_cors import CORS
from .database.models import db_drop_and_create_all, setup_db, Drink
from .auth.auth import AuthError, requires_auth
app = Flask(__name__)
setup_db(app)
CORS(app)
'''
@TODO uncomment the foll... | [
"a.moustafa@penta-b.com"
] | a.moustafa@penta-b.com |
a71d409d7b326fb5a4bd4507fcc6b07b84090dce | 59cdbbd0ed4e68e8b3b2ecf1b0a724ddb13fa5f2 | /config.py | 5354798ce4d7f2805275e21e966410dd0fd26abd | [] | no_license | doyleSM/flask-api-rest-example | a7bb2c4ab43b8092a18e4e0474fdbfb951931c77 | ef8760cfd5ce4a0090dd928b5bee72ab9d6c02ab | refs/heads/master | 2022-07-05T05:50:25.485950 | 2020-05-04T18:07:59 | 2020-05-04T18:07:59 | 254,703,415 | 0 | 0 | null | 2020-05-04T18:08:00 | 2020-04-10T18:10:03 | Python | UTF-8 | Python | false | false | 77 | py | import os
DEBUG = False
SQLALCHEMY_DATABASE_URI = os.environ["DATABASE_URL"]
| [
"gbalk@inf.ufsm.br"
] | gbalk@inf.ufsm.br |
83b3c2d69dac365eecb94e332cdd2162199e5997 | 4e6ebd9c5cbd5cb7458e12bfce7e2ce930ad2315 | /src/datasets/tools/harmonization_mapping.py | 8e954c1bd3416a162521f2ab38fd296936f35e29 | [
"CC0-1.0"
] | permissive | qifang-robotics/lidar-harmonization | a9473a991c896ffd293898c6abfd34b9dd245130 | c99087fe5f807f3343ec07acd048b21aab57bbf7 | refs/heads/master | 2023-06-13T05:32:59.682066 | 2021-07-03T23:52:13 | 2021-07-03T23:52:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,468 | py | import pandas as pd
import numpy as np
from pathlib import Path
from shutil import copyfile
from src.datasets.tools.transforms import GlobalShift
import code
class HarmonizationMapping:
def __init__(self, config):
scans_path = config['dataset']['scans_path']
target_scan_num = config['dataset']['ta... | [
"d.t.jones@outlook.com"
] | d.t.jones@outlook.com |
545089b43d7ea9cf0b0315df7fda1767e7181dff | 628574233007517f0fde0b40317a68f6065f37ca | /Python/DjangoProjects/time_display_assignments/time_display_assignments/urls.py | d5f657802eb41ba481a1031393a28ae661e30133 | [] | no_license | carolynyen/DojoAssignments | 5a5d2df904bc2d650f945d09369a1d0ee5a316bc | a06ee21b968357e7bda77542d6a21b664a53136e | refs/heads/master | 2021-01-11T17:54:13.006990 | 2017-04-21T19:42:46 | 2017-04-21T19:42:46 | 79,866,508 | 0 | 4 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | """time_display_assignments URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name... | [
"whitehawk6888@yahoo.com"
] | whitehawk6888@yahoo.com |
18b80378c40737c228cdd1f7cb7e35ce5933b2bc | abeb6ca5a9723d96c432e318aa8cdbd774804c29 | /last-ansible/tweets_harvester/config.py | 9135f0ee7d15d91934df9edd4439cb14011aa259 | [] | no_license | ylin18/CCC-ass2 | cec056fb9e1b1f9cf020d0ecaf2993fb70748dfd | 9d24f0937a43152e697f6c7bed41181ce9618a29 | refs/heads/master | 2020-08-28T15:35:12.454736 | 2019-06-24T05:13:59 | 2019-06-24T05:13:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,337 | py | app_keys_tokens = [
{'consumer_key' : 'CP20F8yCMC85K26XY07w4XElp',
'consumer_secret' : '4t1r4cdlBPGVzkosnZ2gvBqXbet5MbuJIlkuN0JKYufWIdo4yM',
'access_token' : '1121041186305630208-hG4Jv9cfPOufx3vAgPpBUCODlWsHQH',
'access_token_secret' : 'OJSXpMxZDzY9XUo2gqoqZcLUyGY1C9duopI4032fywDPb'}
,
{'consumer_key' : '2BjmB9QN2UwT7B... | [
"xudongma@ua-unistudent-ten-9-131-202.uniaccess.unimelb.edu.au"
] | xudongma@ua-unistudent-ten-9-131-202.uniaccess.unimelb.edu.au |
fefa4008d3c6a8622e01e84a315130f060863036 | 2a54e8d6ed124c64abb9e075cc5524bb859ba0fa | /.history/2-Python-Basics-part2/6-Logical-operators_20200414002000.py | 7a4ee8fd3c96f8e57b7e41dc522b12fb81613bec | [] | no_license | CaptainStorm21/Python-Foundation | 01b5fbaf7a913506518cf22e0339dd948e65cea1 | a385adeda74f43dd7fb2d99d326b0be23db25024 | refs/heads/master | 2021-05-23T01:29:18.885239 | 2020-04-23T19:18:06 | 2020-04-23T19:18:06 | 253,171,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | # Short Circuting
is_Friend = True
is_User = True
if is_Friend or is_User:
print("both are true")
if is_Friend and is_User:
print("both are true")
age = 15
year = 2019
boy = "Vlad" | [
"tikana4@yahoo.com"
] | tikana4@yahoo.com |
7e15d512ec3c87a9d4dc6de189623ab45646f041 | efb3194a583cd79cc03dc91b9a96dfc0bdd3a344 | /stm32f/json_pkt.py | 8fab02dbeb225a6406222a1a16911d147abec342 | [
"Apache-2.0"
] | permissive | andersy005/capstone | 9227b0c19b4e16ea5e67a529937652408d0a35f2 | b4301ebc7c1447f3ce2ff034add985c1f417f065 | refs/heads/master | 2021-09-13T07:42:52.359116 | 2018-04-26T17:58:05 | 2018-04-26T17:58:05 | 118,843,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,517 | py | # This code should run fine on MicroPython or CPython.
#
# It allows objects which can be represented as JSON objects to be sent
# between two python programs (running on the same or different computers).
import json
from dump_mem import dump_mem
SOH = 0x01
STX = 0x02
ETX = 0x03
EOT = 0x04
# <SOH><LenLow><LenHigh><S... | [
"axbanihirwe@ualr.edu"
] | axbanihirwe@ualr.edu |
820447248ef9ca3978c5079ad021994e1141f098 | 841cc95591bd1d5317310d8d809e2a2c0284be0b | /queries/query2.py | ed085ae4cbbe5c3c0497e79237223bc0b3f10d3b | [] | no_license | annwhoorma/DMD2_assignment1 | 2864e4b7a6380aa557bdd18b08a20f47212ec544 | 6934d842c3b3bbce89ea60469a3390f1922cdcfa | refs/heads/master | 2022-06-02T22:39:43.364294 | 2020-04-29T08:44:52 | 2020-04-29T08:44:52 | 259,871,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,249 | py | from py2neo import Database
from py2neo import Graph, Node
import numpy as np
""" Connection to Neo4j Database """
dvdrental = "bolt://localhost:7687"
db = Database(dvdrental)
graph = Graph(password='13579qwer')
db = graph.begin(autocommit=False)
actors_list = graph.run("match(a:Actor) with a.ID as ids return ids").... | [
"a.boronina@innopolis.university"
] | a.boronina@innopolis.university |
69eeb01074d12cecc75f2289a18fdde829495e7f | 03414057da375391470f28c8fa55bd8dfec751e3 | /app/api_1_0/__init__.py | b14eb42e0236fe410134b2c9de2fae0883b0d457 | [] | no_license | xingyuan1998/school | 6fe817046e052fd47d610ef7a492327f20637ea2 | 1780b9246621beb4aa56e84c6fb4571521482d2d | refs/heads/master | 2021-07-19T01:38:08.824341 | 2017-10-25T14:58:58 | 2017-10-25T14:58:58 | 107,509,754 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | from flask import Blueprint
api = Blueprint('api', __name__, url_prefix='/api')
from . import (
appointment,
auth,
circles,
news,
profess,
roommate,
secondhand,
tasks,
user
)
@api.route('/')
def hello():
return 'dddd'
| [
"xingyuan1998@163.com"
] | xingyuan1998@163.com |
08dfeef07dc2184dd58ed15584e4a9d792be3383 | 3a8c2bd3b8df9054ed0c26f48616209859faa719 | /Challenges/Hackerrank-DynamicArray.py | c63264cadb5c93066503209dd51764b1eaa68ce0 | [] | no_license | AusCommsteam/Algorithm-and-Data-Structures-and-Coding-Challenges | 684f1ca2f9ee3c49d0b17ecb1e80707efe305c82 | 98fb752c574a6ec5961a274e41a44275b56da194 | refs/heads/master | 2023-09-01T23:58:15.514231 | 2021-09-10T12:42:03 | 2021-09-10T12:42:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | #!/bin/python3
import os
import sys
#
# Complete the dynamicArray function below.
#
def dynamicArray(n, queries):
#
# Write your code here.
#
if __name__ == '__main__':
fptr = open(os.environ['OUTPUT_PATH'], 'w')
nq = input().split()
n = int(nq[0])
q = int(nq[1])
queries = []
... | [
"bennyhwangg@gmail.com"
] | bennyhwangg@gmail.com |
feb9eaf05f8f618e83419e8790d01f074d6592b0 | 6f1ae83ae56134f0ecd190e3c0d3d0947a08886f | /query_stanford_parser.py | 6f97a39b2353fd6465ec478efa41209c135d659c | [
"BSD-3-Clause"
] | permissive | yukiyakiZ/questplusplus | 60b2ea03bb32ba6cee99c222630cdae25e53ce8b | e30775f59ef827c318330febb84f8065fbcc3397 | refs/heads/master | 2020-05-07T14:29:21.651749 | 2019-05-05T11:55:04 | 2019-05-05T11:55:04 | 180,595,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,076 | py | # -*- coding:utf8 -*-
# Query Stanford Parser online to obtain the mean dependency distance calculation
import os
import re
import time
from bs4 import BeautifulSoup
import json
import requests
languageSet = ["English", "Chinese"]
url = 'http://nlp.stanford.edu:8080/parser/index.jsp'
def TimeIt(method):
def ... | [
"liangcheng.yu46@gmail.com"
] | liangcheng.yu46@gmail.com |
e6bc5b628771881d5e791a8ae89ab73749fabf68 | 4cb0b3c4acf4e30dda0f814fab8232bf13617422 | /Python/Django/survey_form/apps/surveys/urls.py | 861117e318407c2eea5b49f8496698d1e86e5b31 | [] | no_license | h0oper/DojoAssignments | d60336b3e67021be0e6a43c1f3693193f83b22d9 | 28472e7907a18725d702fc9617f27619fcc4fcfc | refs/heads/master | 2020-05-09T23:38:27.916674 | 2018-10-06T20:46:02 | 2018-10-06T20:46:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index),
url(r'^process$', views.process),
url(r'^result$', views.result),
url(r'^goback$', views.goback)
] | [
"ccasil@ucsc.edu"
] | ccasil@ucsc.edu |
ef3c9320250f5176230f9473e05712b816609be3 | 1a9e6140d633c660360dbc543b4d7bcb7ad1c0d9 | /tests/QueueTest/run.py | 239b7b4710c2ceb58e626c4d8ade1bb87bcd117e | [
"Apache-2.0"
] | permissive | mjj29/apama-epl-containers | aa80c2e3806e196c8444b4ae97ae6e41ca662e82 | d3f4d5f9ebd21481ab90a9386a733d394cd01f2a | refs/heads/master | 2022-11-11T06:43:57.481269 | 2020-06-29T15:05:35 | 2020-06-29T15:05:35 | 275,584,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 548 | py | from pysys.constants import *
from pysys.basetest import BaseTest
from apama.correlator import CorrelatorHelper
import os
class PySysTest(BaseTest):
def execute(self):
corr = CorrelatorHelper(self, name='correlator')
corr.start(logfile='correlator.log')
corr.injectEPL('../../../Queue.mon')
tests = os.listdir(... | [
"github@matthew.ath.cx"
] | github@matthew.ath.cx |
f3c3f92fb93dfc923bdd1d17ba4bdb315bab5d81 | 74cd45191c0f735acc80f13599fe72044da53c56 | /Greedy_Algorithms_Minimum_Spanning_Trees_and_Dynamic_Programming/Assignment2/unionfind.py | 75d3fca9b2c361e9c60bdce4e2136a2f6a1cf367 | [] | no_license | shenghao001/algorithms | 6c41041f5132ce775acc20d0f9d4487cd3e093b6 | 09410e0214be715949057b3edc0a037cb40680c9 | refs/heads/master | 2022-03-01T07:00:56.510327 | 2019-08-31T17:25:43 | 2019-08-31T17:25:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 764 | py | """ Union Find basic structure """
class UnionFind():
def __init__(self, nodes):
self.root = dict(zip(nodes, nodes))
self.subtree = dict(zip(nodes, [[node] for node in nodes]))
def find(self, node):
""" find the root of a node """
return self.root[node]
def union(self, i,... | [
"anmourchen@gmail.com"
] | anmourchen@gmail.com |
91a07b21c96e78c49fbbef9d59d11dcb8579ac4f | 4a77af523c9e319ba44c6ceaf821208f95c97d5c | /random_name.py | f4926d0b278f3403fe852324fc1f85b2655aeb45 | [] | no_license | marteczkah/BAM_coding_resources | 2de2a9585a505094431b047f718f1126fa0bb81d | b5cd143bfcafa8b0374b7a04b90db517b79c048a | refs/heads/main | 2023-07-13T16:02:12.792447 | 2021-08-18T16:02:08 | 2021-08-18T16:02:08 | 387,182,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | from random import randint
names = ['Ariya', 'Chandini', 'Kaitlyn', 'Anjali', 'Josephine', 'Zachias',
'Joel', 'Jayden', 'Larriyah', 'Trevor', 'Kimiwa', 'Suvil', 'Walddy',
'Eladio', 'Drew', 'Sasha', 'Lauren', 'Neesh', 'Raisha', 'Faye']
random_index = randint(0, len(names) - 1)
print(names[random_index])
| [
"48037981+marteczkah@users.noreply.github.com"
] | 48037981+marteczkah@users.noreply.github.com |
a25a9a45abf6afeb485d96f23c00c3d70ff087dc | b8f9d2cafb8958cdb417f05156acb6aadf90f4dd | /MachineLearning/NetworkAnalysis/PageRank.py | 5d5647d240c30f7abe41a25e7aa9ec6bbe87407e | [] | no_license | Anova07/Data-Science | 8d14f78236de0053e2d31cc8cd85b9c70dfa2c8a | 86dd24fb04a199536ae8f3f5f843aae3fc69c086 | refs/heads/master | 2021-12-08T10:35:35.512188 | 2016-03-06T19:08:58 | 2016-03-06T19:08:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,945 | py | import math, random, re
from collections import defaultdict, Counter, deque
from LinearUtils.Vectors import dotProduct, magnitude, scalarMultiply, shape, distance
from LinearUtils.Matrices import getRow, getCol, generateMatrix
from functools import partial
# Code from Data Science from Scratch - github
users = [
... | [
"titu1994@gmail.com"
] | titu1994@gmail.com |
36fdbfe12bf2e030e562d801fd497d4834a91dc5 | 562504cf85d80c5e9a0a851a0a9d4f0db07b2b1f | /kt_web/schedule.py | cdf7b0f269ed256bc03d86b7bd247e8748507aa7 | [
"MIT"
] | permissive | MrKiven/KT-Web | 07cfe3c400b9059cf2cfd833f1caddf7e4ac7443 | 9256a4943ac5bb3c14fbec5faf17ef84ff0feaf4 | refs/heads/master | 2021-01-18T22:00:53.558305 | 2016-09-27T10:32:40 | 2016-09-27T10:32:40 | 51,062,361 | 17 | 6 | null | 2016-09-14T08:19:37 | 2016-02-04T08:28:33 | Python | UTF-8 | Python | false | false | 2,555 | py | # -*- coding: utf-8 -*-
import gevent
import gevent.event
class Schedule(object):
"""Schedule Object"""
def __init__(self, func, stop_event):
self.func = func
self.stop_event = stop_event
self.g = None
@property
def name(self):
return self.func.__name__
def trig... | [
"kiven.mr@gmail.com"
] | kiven.mr@gmail.com |
bd080db414250c7460293da72e2625c463127dcf | 55a4d7ed3ad3bdf89e995eef2705719ecd989f25 | /main/tensorflow_test/hmm_天气_活动理解.py | 1318a13a359255ef5e47ef393f656642d7456de5 | [] | no_license | ichoukou/Bigdata | 31c1169ca742de5ab8c5671d88198338b79ab901 | 537d90ad24eff4742689eeaeabe48c6ffd9fae16 | refs/heads/master | 2020-04-17T04:58:15.532811 | 2018-12-11T08:56:42 | 2018-12-11T08:56:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,842 | py | # coding:utf-8
states = ('Rainy', 'Sunny')
observations = ('walk', 'shop', 'clean')
start_probability = {'Rainy': 0.6, 'Sunny': 0.4}
transition_probability = {
'Rainy': {'Rainy': 0.7, 'Sunny': 0.3},
'Sunny': {'Rainy': 0.4, 'Sunny': 0.6},
}
emission_probability = {
'Rainy': {'walk': 0.1, 'shop': 0.4, 'c... | [
"985819225@qq.com"
] | 985819225@qq.com |
1bc7f18b6e720d8b738fcb1a45352c500021c7e8 | 180c58986bfe06ff04a0d36bd6107aa9d2b27373 | /tools/harness/harness.py | 53c67266194582960bb561df6c2b0b09d77d7bed | [
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-dco-1.1",
"MIT"
] | permissive | mattweingarten/advanced-operating-systems | 086d88ab25a03a32f3ade11ae34edc638428a369 | 603f9fd81e8246521f05a7aeefcbd3ad12f71657 | refs/heads/master | 2023-09-01T10:26:02.100704 | 2021-10-24T11:25:07 | 2021-10-24T11:25:07 | 420,660,000 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,025 | py | #
# Copyright (c) 2009-2011, ETH Zurich.
# All rights reserved.
#
# This file is distributed under the terms in the attached LICENSE file.
# If you do not find this file, copies can be found by writing to:
# ETH Zurich D-INFK, Universitaetstrasse 6, CH-8092 Zurich. Attn: Systems Group.
#
import os
import types
import ... | [
"daniel.schwyn@inf.ethz.ch"
] | daniel.schwyn@inf.ethz.ch |
dd1e606bd18714221455e014139774e53a1e0be2 | 51c099284113773d0d46529443b171d3b871102a | /venv/lib/python3.6/site-packages/twilio/rest/preview/hosted_numbers/__init__.py | 316f6a948e493ba2b10e134f95cb5ec7c11587a8 | [] | no_license | ameerbadri/twilio-taskrouter-realtime-dashboard | a9b1582858ef1bb7bf6e2a1fae47349134cc6072 | 984ca897e53bb04cebba20d909b4c6977a7f306e | refs/heads/master | 2023-02-24T08:05:36.340105 | 2022-09-28T21:10:44 | 2022-09-28T21:10:44 | 101,177,223 | 58 | 45 | null | 2023-02-15T21:33:47 | 2017-08-23T12:25:12 | Python | UTF-8 | Python | false | false | 1,194 | py | # coding=utf-8
"""
This code was generated by
\ / _ _ _| _ _
| (_)\/(_)(_|\/| |(/_ v1.0.0
/ /
"""
from twilio.base.version import Version
from twilio.rest.preview.hosted_numbers.hosted_number_order import HostedNumberOrderList
class HostedNumbers(Version):
def __init__(self, domain):
... | [
"ameerbadri@gmail.com"
] | ameerbadri@gmail.com |
af9e8bb66e0e059bd3abada0e92af12d59469d4d | 6e70b35111371cf082a3a9294f96f946a28128f7 | /nets/densenet.py | 70f28e644f743e844a3bf084f1996aae19f1f260 | [] | no_license | SDMrFeng/quiz-w8-densenet | 46a4dc5c398591d5dc52fa1bd9a478735aec6f63 | 6456a484e57a652cbf9dfbdb393cf545876ebec9 | refs/heads/master | 2020-03-28T15:49:38.090040 | 2018-09-16T07:00:59 | 2018-09-16T07:00:59 | 148,629,888 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,130 | py | """Contains a variant of the densenet model definition."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import tensorflow as tf
slim = tf.contrib.slim
def trunc_normal(stddev): return tf.truncated_normal_initializer(stddev=stddev)
def bn_act_conv_dr... | [
"fengxuezhi@outlook.com"
] | fengxuezhi@outlook.com |
6a3f7a9e2c64be5b0255a25b57bce8436509b3bb | c89579b97327167bdf5322d9eb12e37ed1563189 | /api/__init__.py | 33c708794f8488e56c30b5caea6d30bf0b7164c4 | [] | no_license | Alweezy/movies-read | bff9f4c592f6187b175c64faed62b28980069027 | a5bde0df99ea648e9368ceba22b7ad0290bfa6f8 | refs/heads/master | 2020-05-21T21:50:01.604487 | 2019-05-12T11:58:07 | 2019-05-12T11:58:07 | 186,162,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 78 | py | import os
from flask import Flask
app = Flask(__name__)
from . import movies | [
"alvin@Alvins-MacBook-Pro.local"
] | alvin@Alvins-MacBook-Pro.local |
34e5301e4eb916f43547d87a83b4bf95c03b3885 | 5982e164eb9e4622a2adda8c166ef39af22a09ad | /model_conf.py | 4c142f04ce06fe644cb36bff1be97eeb078b4aaa | [] | no_license | guy-amir/core | 0f82cbef4c4c8ffe5be76118428a8353090f087b | d9f920a16e503e4db4efff53750143a89ee15bdd | refs/heads/master | 2022-11-27T18:32:36.337902 | 2020-07-20T10:49:37 | 2020-07-20T10:49:37 | 266,842,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,646 | py | import torch.nn as nn
import torch.nn.functional as F
import torch
import numpy as np
class cifar_net(nn.Module):
def __init__(self):
super(cifar_net, self).__init__()
self.conv_layer1 = nn.Sequential(
# Conv Layer block 1
nn.Conv2d(in_channels=3, out_channels=32, kernel_siz... | [
"guy.amir.tech@gmail.com"
] | guy.amir.tech@gmail.com |
485514f8b755653e4f00af632730eb4f46e3e4bc | ed65f5edb7abbb4664f619626ea633deeeb9e571 | /E.py | b0f7f9d99454c014cf36ba403fe3dced274d8eb5 | [] | no_license | JorgeAndre12/Intelligent-drowsiness-monitor-for-safer-driving-through-vision. | 2cab29248da799fec98a07affe41d7adcf761961 | 2a1e03bcb9d6243246fc180d9c15adb74f34752d | refs/heads/master | 2020-05-09T20:30:57.442899 | 2019-06-01T18:10:05 | 2019-06-01T18:10:05 | 181,410,160 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,323 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Apr 11 01:48:57 2019
@author: VAI
"""
import smbus
import numpy as np
import urllib.request
import cv2
import pygame
import time
import os
import math
import requests
class MMA7455():
bus = smbus.SMBus(1)
def __init__(self):
self.bus.write_byte_data(0x1D, 0x1... | [
"noreply@github.com"
] | noreply@github.com |
3a88ba0146dd6f13de5b231f22b57f1192ef083e | 85b218e0e4456404e2bc6be6b13e3fec11c5e86b | /appointment/urls.py | 69d25c665e5f1c461bbff5bcdf960904cafe5695 | [] | no_license | Leviona/barbershop-site | 6d6fddb0b0c4c7c011cf676b5ccdb6b5e713bbee | f932fa53a765da219bcff9fbac9904d6863ef1ce | refs/heads/master | 2020-03-17T04:56:53.382824 | 2018-06-30T03:51:02 | 2018-06-30T03:51:02 | 133,295,856 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | from django.urls import path
from . import views
app_name = "appointment"
urlpatterns = [
path('', views.home_page, name="home_page"),
]
| [
"svzef@outlook.com"
] | svzef@outlook.com |
9afc659a83985ca5e7a34f87ceb3a5de075cc25b | 5a3b070f39715f604a8bfc38888b6ee4382e54ac | /TalkTalk-Server/app.py | aa21f179f70f37f987a80665e81a7a672d8cc074 | [] | no_license | aupaprunia/talktalk | 717245ec0378559abf2dba0793822d19613faf57 | 895418aa25ad154449f4036362a77b615092b00b | refs/heads/main | 2023-04-13T03:53:37.361677 | 2021-04-11T19:08:54 | 2021-04-11T19:08:54 | 356,480,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,022 | py | from flask import Flask, request
import pyrebase
import requests
choice_dict = {1:"Sad", 2: "Happy", 3: "Angry", 4: "Excited"}
config = {"apiKey": "AIzaSyBrey3ZZ5X74WrAQuj7HISWLl70PqP8dnA",
"authDomain": "trialproject-55deb.firebaseapp.com",
"databaseURL": "https://trialproject-55deb-default-rtdb.firebaseio.com",... | [
"="
] | = |
c918caa29cf672dc3e1c12dfb518316fb26e5be4 | 9d140aab8f296235f5e23befaef1b4be72a97a2b | /MazeRightDown.py | 3a63d3f9b922c7d15f309b9025b0afd0b535a05e | [] | no_license | shreyal18ss/pyCodes | 38224d6a1a6a14510ccb27100b12f661c6c42bee | 82bd602d84eaaf253637206b7aadd90577abc5ba | refs/heads/master | 2020-07-04T12:54:55.801195 | 2020-06-02T14:54:55 | 2020-06-02T14:54:55 | 202,291,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py |
M=[[1,8,21,7],
[19,17,10,20],
[2,18,23,22],
[14,25,4,13]]
t=M[0][0]
x,y=0,0
w=t
print(t)
while(x<=3):
try:
if(M[x+1][y]<M[x][y+1]):
x+=1
elif(M[x+1][y]>M[x][y+1]):
y+=1
except(IndexError):
if(x<3):
x+=1
else:
break
t=M[x][y]
print(t)
w+=t
print(w)
| [
"noreply@github.com"
] | noreply@github.com |
fb88ca66b76486a545fb6f24294c2de0f3b48ebc | 8dde2278d17fa0aed506f99cc77abc0543bd6607 | /client/bouquets.py | ce5133bf8d96fb0f274c4aebbee9e7b19253fe0a | [
"MIT"
] | permissive | thred/openwebif-client | 0a672ca2894f16d4907671c0f905e591df9ecadc | 0eb7711b47be95935ae69ec4acbec95357592205 | refs/heads/master | 2020-04-03T07:40:38.293985 | 2018-10-30T20:30:48 | 2018-10-30T20:30:48 | 155,109,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | import commands
import utils
def getBRef(name):
json = utils.requestJson("bouquets")
for bouquet in json["bouquets"]:
if bouquet[1] == name:
return bouquet[0]
else:
raise ValueError("Bouquet not found: " + name)
def getDefaultBRef():
json = utils.requestJson("bouquets")
... | [
"thred@users.noreply.github.com"
] | thred@users.noreply.github.com |
e4b8698761a7e70c874c568c855a7858b383725f | 815575ebe1fae77118dae5d9eabb4e749f657e70 | /UserInteface/game_engine/RelativeSprite.py | 3c0f0580b6f64606b181e4c169c71958ac7397a5 | [] | no_license | BlackAndGoldAutonomousRacing/UserInterface | 66171a31e9a722a92fc1cdcd94155dadd40d20c7 | 38535b18b6cb42afe882cc30b4018040ed267768 | refs/heads/main | 2023-09-02T19:01:25.769073 | 2021-11-05T00:01:56 | 2021-11-05T00:01:56 | 416,441,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,659 | py |
'''
===============================================================================
ENGR 133 Fa 2020
Assignment Information
Assignment: Final Project
Author: Alec Pannunzio, afpannun@purdue.edu
Team ID: LC4-5
===============================================================================
'''
fr... | [
"35432488+samiam567@users.noreply.github.com"
] | 35432488+samiam567@users.noreply.github.com |
c7ef812fb6b1c0a1bcbf2e8e463e19da84748944 | 6b265b404d74b09e1b1e3710e8ea872cd50f4263 | /Python/Exercises/TreeChecker/check_tree_2.0.py | 857bec02ba2b491a4a9f7d5ad9e1b2461082a30e | [
"CC-BY-4.0"
] | permissive | gjbex/training-material | cdc189469ae2c7d43784ecdcb4bcca10ecbc21ae | e748466a2af9f3388a8b0ed091aa061dbfc752d6 | refs/heads/master | 2023-08-17T11:02:27.322865 | 2023-04-27T14:42:55 | 2023-04-27T14:42:55 | 18,587,808 | 130 | 60 | CC-BY-4.0 | 2023-08-03T07:07:25 | 2014-04-09T06:35:58 | Jupyter Notebook | UTF-8 | Python | false | false | 1,828 | py | #!/usr/bin/env python
import sys
class BaseError(Exception):
def __init__(self, position):
super().__init__()
self._position = position
@property
def position(self):
return self._position
def __str__(self):
return self.message
class MissingRBError(BaseError):
... | [
"geertjan.bex@uhasselt.be"
] | geertjan.bex@uhasselt.be |
fa96549438a9bdc21019bf9d66d468f439d20122 | 7517ac3ca1a77a23f75bb774a39cfe826c77f687 | /run_carver_on_2018_07_02_using_simple_for_loop.py | d0d2731f001743b2b78a15607075f801acc68db3 | [] | no_license | carshadi/carver | 7f24859a3becaeaf41046912490c54d31f805163 | 6f568e1254d024139769950142e139909c2c1c9d | refs/heads/master | 2022-08-03T06:10:43.880192 | 2019-11-15T22:46:53 | 2019-11-15T22:46:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | #! /usr/bin/env python
import navigator
navigator.main(['-i', '/nrs/mouselight/SAMPLES/2018-07-02',
'-s', '/groups/mousebrainmicro/mousebrainmicro/scripts/gt/2018-07-02/consensus-neurons-with-machine-centerpoints-labelled-as-swcs',
'-o', '/nrs/funke/mouselight-v2/2018-07-02',
... | [
"taylora@janelia.hhmi.org"
] | taylora@janelia.hhmi.org |
a8518cb7746c3200f3217bba2498fb3fe7e3c877 | 878eb4b539d77051dd7330389b90d988d9aef8f3 | /CAPITULO 7/Exercicio R.py | af3ef2eb5c93a5dc7848b95c4831130451504429 | [
"MIT"
] | permissive | LarmIg/Algoritmos-Python | a031badc9f607cbbc109ee4ca8bfe60d5636d867 | f2c9889705cacac007833f6ab9a413b06213f882 | refs/heads/master | 2022-11-25T05:36:26.313469 | 2020-07-25T11:59:36 | 2020-07-25T11:59:36 | 282,436,201 | 0 | 0 | MIT | 2020-07-25T12:08:13 | 2020-07-25T12:08:12 | null | UTF-8 | Python | false | false | 767 | py | # Elaborar um programa que efetue a leitura de dados em duas matrizes (A e B) de uma dimensão do tipo vetor, sendo a matriz A com dez elementos e a matriz B com cinco elementos. Os elementos a serem armazenados nas matrizes devem ser do tipo cadeia. Construir uma matriz C com a capacidade de armazenar um total de 15 el... | [
"noreply@github.com"
] | noreply@github.com |
6f4a8621cbc7c24e77d06254fbc9e3d8cf13db78 | 843ed91ada6131fceee495e3e398d426db182457 | /core/views.py | d42b2c5459c63c5fe8d3d8358de24af2bfad3970 | [] | no_license | meydson/Aula_Django_DIO | 67ae1d889e4927dcb44b25ddbb220b79c518b6a5 | 12d4a646e26fd0dd879255754bba76acc1e608fb | refs/heads/master | 2022-11-07T20:25:57.276238 | 2020-06-30T00:51:25 | 2020-06-30T00:51:25 | 275,959,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | from django.shortcuts import render, HttpResponse
# Create your views here.
def hello(requests, nome):
return HttpResponse('<h1>Hello {}</h1>'.format(nome)) | [
"meydsonbaracho@gmail.com"
] | meydsonbaracho@gmail.com |
de171643d720ac13e8a745fb6fe61a49ef535492 | 431f9d1f7a84ee40520fd88fa6aa4e7b0d235047 | /geometric_controller/src/ss/trajectory_simulation.py | 1b5ab398a461b4320bbd39442869d76e517a8ecc | [] | no_license | indsy123/Quadrotor-Navigation-using-Receding-Horizon-planning | aa0571457292ea2b1eefcd2119332430083c7c42 | 255e573a42660420fa0d3ce6dac252df8d737c8c | refs/heads/master | 2020-07-26T13:14:34.814707 | 2020-03-24T21:38:16 | 2020-03-24T21:38:16 | 208,655,725 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,758 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Created on Tue Oct 3 17:28:19 2017
This initial script generates a dummy trajectory. This should be replaced
eventually with what you want the trajectory to be or your own method to
generate the trajectory.
Basically I made my own message file called "Desired_trajec... | [
"indragt@udel.edu"
] | indragt@udel.edu |
65199f5c83020b074cf08c024357136753dc811f | cbde70bf9eb6ee3d8b26b23a509298f3f199b29b | /tensorflow_binding/transducer_tensorflow/__init__.py | 8b21e359f752eb88a4464c39fd2fdb07a2183fcb | [
"MIT"
] | permissive | pkuVanilla1207/warp-rnnt | 64aeab173fa2dfec13355b564aba6e792df62e80 | 6de0527c5e23021a6a914c0826dff5c5ec8fe3d5 | refs/heads/master | 2023-03-18T07:10:41.867541 | 2021-03-09T20:06:57 | 2021-03-09T20:06:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,757 | py | import imp
import tensorflow as tf
from tensorflow.python.framework import ops
from tensorflow.python.ops.nn_grad import _BroadcastMul
from typing import Optional, AnyStr
lib_file = imp.find_module('kernels', __path__)[1]
_warp_transducer = tf.load_op_library(lib_file)
def transducer_loss(
log_probs, labels,... | [
"lekai.huang@gmail.com"
] | lekai.huang@gmail.com |
235af1bbc670e956e37e472b363d092d53a2e10f | 7927424f1983eecc7c7b2f0ebaf61ad552d2a7e7 | /zigzag.py | 1e4ea4b1030d84d3446c45f2f19960e1f1f9aafc | [] | no_license | 6reg/automate | 295931d3ecf0e69e01921cc45d452fadfd1e6581 | 11e5de461ece3d8d111f3dc13de088788baf19a2 | refs/heads/main | 2023-03-08T18:39:42.991280 | 2021-02-22T20:53:13 | 2021-02-22T20:53:13 | 334,780,031 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | import time, sys
indent = 0 # How many spaces to indent
indentIncreasing = True # Whether the indentation is increasing or not
try:
while True: # The main program loop.
print(' ' * indent, end='')
print('********')
time.sleep(0.1) # Pause for the 1/10 of a second.
if indentIncreas... | [
"mathiasgreg@gmail.com"
] | mathiasgreg@gmail.com |
4ad2bde6bdca921a681ab2a19739f7ec109f0855 | 72f55f2b9899af5cf60789b935a69f2e5ddfc814 | /src/analytics/migrations/0007_auto_20161212_0735.py | 030a645dc7873b36a13eae12fd481f3aeaae826b | [] | no_license | apapatp/svrup-learning-no-rest | cf4ab52de0a060207844a8fb3c58455b7142ff35 | 554d26245a9db2e22f4ed22928f4815b186e486b | refs/heads/master | 2021-01-12T09:32:15.866093 | 2016-12-30T09:47:43 | 2016-12-30T09:47:43 | 76,186,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 559 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import datetime
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('analytics', '0006_auto_20161212_0624'),
]
operations = [
migrations.Al... | [
"tolu@Tolus-MacBook-Pro.local"
] | tolu@Tolus-MacBook-Pro.local |
354649abe3c11f6cdb1d9b5428f93f1147c33e86 | f593d8878681406d5f8a9c76d124f7dc4e056342 | /ml/xcc.py | 8bbf0ef512822b005329f4d6c8754e70446755f9 | [
"Apache-2.0"
] | permissive | paxtonhare/MarkLogic-Sublime | 3a6adc692825b8325bcbaeb68034bb0a1c1c13c1 | 75a9c8e8d1e2f53f2939644b46dff682df0b2703 | refs/heads/master | 2021-08-07T21:56:55.784555 | 2021-01-26T17:20:34 | 2021-01-26T17:20:34 | 16,205,265 | 15 | 5 | null | 2016-05-22T21:05:24 | 2014-01-24T13:30:48 | Python | UTF-8 | Python | false | false | 6,381 | py | import sys
import re
if sys.version_info >= (3,):
import http.client
import urllib.parse
import urllib.request
from urllib.error import HTTPError
else:
import httplib
import urllib
import urllib2
from urllib2 import HTTPError
import socket
from .ml_utils import MlUtils
from .ml_settings import MlSettings
cl... | [
"paxton@greenllama.com"
] | paxton@greenllama.com |
da51eb2e09b9061ead9e3fc0c508dcf164e120ad | 6fb3449a8c38e37a279e01268358dd062445f458 | /mysite/urls.py | 2d49f38d3201317df024e7ec1a900383551ca778 | [] | no_license | mikalail/SportsStats | b756563e6291ffc9d2d7104329dd0a8277048464 | 44c0a4e012273c27143683e4774cf76964145936 | refs/heads/master | 2020-12-24T10:57:25.636835 | 2016-11-08T23:28:53 | 2016-11-08T23:28:53 | 73,224,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 810 | py | """mysite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-bas... | [
"mikalail@yahoo.com"
] | mikalail@yahoo.com |
f661b97983d5da36c5d8f23356b77bb41fdbff71 | dd05972a3bf9d15f332fbff420f10afe1977c0d8 | /competition/base_example/aliceTest.py | 76fec14b823615e7488647e1a92bf8e51c2b7006 | [
"BSD-2-Clause"
] | permissive | StephanieWehner/QI-Competition2018 | b70df8c5bb343c534c2c0bd8fc0e7d6bb6183f25 | cc1139c81e39f66b77c046414bcac8de45807557 | refs/heads/master | 2020-03-23T05:45:09.885955 | 2018-08-08T20:03:29 | 2018-08-08T20:03:29 | 141,164,280 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,108 | py | #
# Copyright (c) 2017, Stephanie Wehner and Axel Dahlberg
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this lis... | [
"axel.dahlberg12@gmail.com"
] | axel.dahlberg12@gmail.com |
290b82503d5a09f87feff4d7c52eaa5bb272622d | 848fad01ed3f55e4c9a47d227f7cbabfe4f4df73 | /utils/oss.py | 86ba32fb2bafa32bb59bdb18e0650710b4b7c800 | [] | no_license | cx2c/ali_sdk | 51934a7b941fdb710b849ee6d61ce0ea9a88474f | 9edb3ff58a71feb5917982d68a57854c10c26e15 | refs/heads/master | 2020-03-21T06:49:26.720386 | 2018-06-22T02:34:32 | 2018-06-22T02:34:32 | 138,244,060 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# __author__ = "w.z"
# Date: 2018/3/21
class Oss(object):
pass | [
"w.z@zhangweideMBPX.lan"
] | w.z@zhangweideMBPX.lan |
35d3072fb03715d46ecb63d4005ca431e4838776 | b42850bc3e36bbd1683070393582617f2b3cd8e6 | /Inheritance/players_and_monsters/muse_elf.py | a9582d2cc187778ca11c8be953479c42fb935ab3 | [] | no_license | marianidchenko/Python_OOP | aecca18be6df3850c0efbf2fa6d25bf3ff53ae96 | 547c12cbdad5b8c16fa55bba6c03b71db181ad2b | refs/heads/main | 2023-07-09T05:42:43.863681 | 2021-08-14T14:55:51 | 2021-08-14T14:55:51 | 381,572,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | from Inheritance.players_and_monsters.elf import Elf
class MuseElf(Elf):
pass
| [
"marianidchenko@gmail.com"
] | marianidchenko@gmail.com |
658b34c8593e518f6e856b6afb5c1d107b89f6bc | 98f1a0bfa5b20a0b81e9e555d76e706c62d949c9 | /examples/pytorch/stgcn_wave/model.py | 2463721f1b38ea34e09db1c8e3b064a7db69e439 | [
"Apache-2.0"
] | permissive | dmlc/dgl | 3a8fbca3a7f0e9adf6e69679ad62948df48dfc42 | bbc8ff6261f2e0d2b5982e992b6fbe545e2a4aa1 | refs/heads/master | 2023-08-31T16:33:21.139163 | 2023-08-31T07:49:22 | 2023-08-31T07:49:22 | 130,375,797 | 12,631 | 3,482 | Apache-2.0 | 2023-09-14T15:48:24 | 2018-04-20T14:49:09 | Python | UTF-8 | Python | false | false | 3,480 | py | import math
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.nn.init as init
from dgl.nn.pytorch import GraphConv
from dgl.nn.pytorch.conv import ChebConv
class TemporalConvLayer(nn.Module):
"""Temporal convolution layer.
arguments
---------
c_in : int
The num... | [
"noreply@github.com"
] | noreply@github.com |
b6e8f2be226188fbb1defabbcc1d134f8fc8e070 | 3570f2e7b8d5666cbd2d29a4c75965a75699a3e2 | /pyodbc/run_test.py | 1b0460f4bd5adc94625a5a8b380978050e9a9c4a | [] | no_license | ilanschnell/recipes | 7876225db2eb08b21d4d1ab426d40f94650192fd | c946b446a002d55ecffff6ce789cf9dcb57a65a6 | refs/heads/master | 2023-08-19T19:40:17.750037 | 2022-01-21T00:27:38 | 2022-01-21T00:27:38 | 119,077,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,181 | py | import sys
from os.path import isfile
print(sys.version)
print(sys.executable)
import pyodbc
print(pyodbc)
if sys.platform == 'darwin':
driver_path = '/Users/ilan/a/envs/py38/lib/libsqlite3odbc.dylib'
elif sys.platform.startswith('linux'):
driver_path = '/home/osboxes/bin/libsqlite3odbc-0.9996.so'
if not isfi... | [
"ilanschnell@gmail.com"
] | ilanschnell@gmail.com |
b11a8a7651e0f8dc115584ee90faf956ed6a1f89 | 997449072baa8e50a143ae1152fd4fa83c8e1068 | /devel/.private/rrtplanner/lib/python2.7/dist-packages/rrtplanner/msg/_rrtResult.py | 7672fe8883172dee48ff70b467d5d95c919942d0 | [] | no_license | idrissahil/catkin_ws | c547a6f7be812cc0bb1a93042026f746d34e7e70 | b5d8b60c882b60bb19b8d4529257ca513b8256e3 | refs/heads/master | 2022-01-24T12:51:28.038620 | 2019-06-02T16:05:45 | 2019-06-02T16:05:45 | 175,048,655 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,030 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from rrtplanner/rrtResult.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import geometry_msgs.msg
import nav_msgs.msg
import std_msgs.msg
class rrtResult(genpy.Message):... | [
"idrissahil3@gmail.com"
] | idrissahil3@gmail.com |
caebf84579717f9af88612898b4b4390d7755b86 | f62be83925849ab2841565ab264dedf1ee74a689 | /S&PTimeTest.py | 3e69a50e2aaa5ea747781acb9fb522f9a524ad58 | [] | no_license | evy555/Stock-day-of-week-return-analysis | 043501581615bfe1979878ad01cada990eb9cb08 | 28cee2a04475db6801a4fe8c8f0a51c9a5f2959b | refs/heads/master | 2020-04-01T20:59:05.613334 | 2016-06-08T22:46:08 | 2016-06-08T22:46:08 | 60,735,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,653 | py | import pandas as pd
import numpy as np
import os
import pandas.io.data
from pandas import Series, DataFrame
from pandas import ExcelWriter
from pandas import read_csv
import matplotlib.pyplot as plt
import datetime
from scipy.stats import ttest_1samp
import matplotlib.pyplot as plt
from random import randint
now... | [
"evansj556@yahoo.com"
] | evansj556@yahoo.com |
2a77ffc8692138609c559a9df4f3206508debd09 | 0c153f489e523afdc33b950a6b9ee21af09e968e | /cpp/run_scripts/run_fom_basis.py | 57249f1dc5a1dc4ca8146c3f4d9c3f9afc8a949f | [] | no_license | Pressio/pressio-sisc-burgers1d | 86f1acb31d40d1aefa83b61bb4e8a7d70621cf1a | 671f45b7abd5dc59d574b6d26cc4a5f23ee90306 | refs/heads/master | 2021-01-26T01:04:20.594259 | 2020-04-26T11:32:00 | 2020-04-26T11:32:00 | 243,249,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,870 | py | #!/usr/bin/env python
import sys, os, time
import subprocess
import numpy as np
import os.path
from argparse import ArgumentParser
import re
import myutils, constants
def main(exeName):
# args for the executable
args = ("./"+exeName, "input.txt")
print("Starting basis runs")
# loop over mesh sizes
for iMe... | [
"fnrizzi@sandia.gov"
] | fnrizzi@sandia.gov |
ebc3ed1ffe0e2caca9b9f1ca118b77aa614a399c | 04a0ff31201c67a0e6a9654369ddd3f712303584 | /module_5/pages/basket_page.py | 9458b62174897720b13b36a5b9c95bcc2af01498 | [] | no_license | titun9/stepik_lessons | 58c73e136a7be2950f7071d637a495e182a1291f | 26515d9edb2a2b8f7a09a598405d5cecb6a94f7d | refs/heads/master | 2023-06-09T07:21:20.696296 | 2021-06-30T14:00:25 | 2021-06-30T14:00:25 | 366,700,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,190 | py | from .base_page import BasePage
from .locators import BasketPageLocators
from .locators import BasePageLocators
class BasketPage(BasePage):
def get_correct_message_empty_basket(self):
language = self.browser.find_element(*BasePageLocators.LANGUAGE_PAGE).get_attribute("lang")
dictionary_message = {... | [
"butkevichas@cheops-edu.ru"
] | butkevichas@cheops-edu.ru |
696193e4863c900c995b49d8854b2fd947ef2ebd | 9dc21ebb553fd116826c7cbae7d8c5eba47423d1 | /cloneGraph.py | 81681ac2a31cf11b69ac78e24d755d692f4aee77 | [] | no_license | KJSui/leetcode-2020 | a475a8b8481231757222c5afaad2856a92572f89 | 37cf89e7fb1351b1deff09271d9bb5852395054e | refs/heads/main | 2023-04-05T19:46:25.647605 | 2021-05-06T20:40:06 | 2021-05-06T20:40:06 | 365,031,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | class Solution:
def __init__(self):
self.copy = {}
def cloneGraph(self, node):
if not node:
return None
newNode = Node(node.val)
neight = []
for i in neight:
if i in self.copy:
neight.append(self.copy[i])
else:
... | [
"jsui@digitalocean.com"
] | jsui@digitalocean.com |
7e1915a371be95b8b39560a1b5d338aaa86da5fe | d0e26d18017b825dd18919b0f87d0c99c15e1247 | /twitterclone/urls.py | f38223bc8a2886dc69db15f43acff166caa1a2ab | [] | no_license | davidstewy/twitterclone | 9e202f852514e72141c39e83f6d47e44f095be28 | 7e4395f9415854ca1edc3b81232f1303badb9543 | refs/heads/master | 2020-04-30T05:55:22.162908 | 2019-03-20T02:54:13 | 2019-03-20T02:54:13 | 176,638,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,083 | py | """twitterclone URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-... | [
"davidstewy@gmail.com"
] | davidstewy@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.