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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fb8482304ccdd802e4bafa88b1cf9ccc15fecb76 | 76c31e0a8e23bd3641f7d2270124c532fbb85e6e | /Problems/1108.Defanging_an_IP_Address.py | be041ce2239c4499ed8e6d10018c28fcfbeb321d | [] | no_license | Kenfernandezjr/Leetcode | f916cc88157352f62ca55b688f15bb46c0779c79 | efedbaa299c6d57514f91d4f047c645e228ff4ad | refs/heads/master | 2023-08-19T10:58:55.410748 | 2021-10-01T21:17:28 | 2021-10-01T21:17:28 | 288,283,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | class Solution:
def defangIPaddr(self, address: str) -> str:
# completed this 3 different ways
# First
changeList = list(address)
for i in range(len(changeList)):
if changeList[i] is ".":
changeList[i] = "[.]"
return("".join(changeList))
... | [
"kenfernandezjr@github.com"
] | kenfernandezjr@github.com |
5f2966ec1f36c07526da05e9373204e613eb4e7c | bb8c3267f410e920ef234fd346357a12f5814156 | /import-components-container-tools-c9s-3.0.py | a2b3bff48cfa900d7196cd2819d1fc9f9c9f4b0e | [] | no_license | mmathesius/stream-module-testing | a4f1d9b7b7ccfc8e2daeb6794380ea07efa9743f | 8e5c5aa1d35313d8d87657783458a01866d71922 | refs/heads/main | 2023-06-06T00:10:12.179381 | 2021-06-15T16:45:03 | 2021-06-15T16:45:03 | 365,357,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,054 | py | #!/usr/bin/python3
# Usage: import-components.py namespace/component#ref [ ... ]
resync_cache_only = False
dry_run = None
# set if using an alternate destination namespace, None to use standard namespace
alt_ns = "temp"
import argparse
import git
import logging
import os
import pyrpkg
import random
import regex
imp... | [
"mmathesi@redhat.com"
] | mmathesi@redhat.com |
33d009eea8b27f5d5ce8f5bd571e075cd8fbe8ec | 3f762b26d57b0969969f458143653c25367367a0 | /blueberry/tests/connectivity/bluetooth_connection_test.py | 767af38da620e81cfdf0ae8dc2f32fae28bd1784 | [
"Apache-2.0"
] | permissive | wao/android_system_bt | 6c9f6f1a47294cb338d280e7a96234947fe485de | 4bbd11f366c720f010ab60020a0a6a8eea64c850 | refs/heads/master | 2023-08-17T05:03:42.132485 | 2021-08-19T19:24:58 | 2021-09-16T06:07:46 | 407,167,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,177 | py | """Tests for Bluetooth connection with Android device and a Bluetooth device."""
import time
from mobly import test_runner
from blueberry.utils import blueberry_base_test
# Connection state change sleep time in seconds.
CONNECTION_STATE_CHANGE_SLEEP_SEC = 5
class BluetoothConnectionTest(blueberry_base_test.Blueber... | [
"jizhengchu@google.com"
] | jizhengchu@google.com |
5f1a9598ca6ede14f8e919dfc37e6770ef5e5f5b | 28576c22f2eeecfc67a0919254258737598f77a2 | /python/hamcalc/stdio/trig.py | 23c39d4e3f0288ef63689cb39a2d27efc55a30bd | [] | no_license | slott56/HamCalc-2.1 | 5e3b40b302c13569806fe2f18734e639b17a988e | 382724dfcad867ed8c4134a93a6bbc1c83dc306b | refs/heads/master | 2020-04-25T21:55:51.298097 | 2013-07-16T13:24:33 | 2013-07-16T13:24:33 | 9,798,987 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,949 | py | """Trigonometric functions
"""
import hamcalc.math.trig as trig
from hamcalc.stdio import *
import math
import runpy
def functions( angle ):
a0, a1, a2, a3 = (angle, math.pi-angle, math.pi+angle, 2*math.pi-angle)
print( "TRIGONOMETRIC FUNCTIONS".center(80) )
print()
print(" ANGLES:" )
print(" ... | [
"slott56@gmail.com"
] | slott56@gmail.com |
08daa46e4e5fe6003d67697fdc33c22dab11bdcd | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Flask/Book_evaluator/venv/Lib/site-packages/passlib/crypto/scrypt/__init__.py | 9fe2b4a0fa1ded521a65f67133294c7ff18329ed | [] | no_license | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:e7834ebeec8f7f56f60e8475fe5ba818941616523db21b7e6649ac46e5bcf229
size 6854
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
83a1c88e7526001016e921efbf9661fccf5fea16 | b0ce657c3445ca572ab4cb04be400ddfdf5621b6 | /Code/.ipynb_checkpoints/Problem1-checkpoint.py | f21e4a7b3bebd4a5cc44858786d3bb7340c8c15b | [] | no_license | h-gokul/LaneDetection | 8b2811419c3c772ffae76cd18ae1d8e5379ecc05 | 96627f6f4a13bef93a306f310e613213820c683d | refs/heads/master | 2023-05-07T13:38:15.577836 | 2021-05-21T03:51:45 | 2021-05-21T03:51:45 | 369,406,726 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,098 | py | import cv2
from misc.utils import *
import numpy as np
import os
import matplotlib.pyplot as plt
import argparse
def vidRead(path = '../Data/Project2_Dataset1/Night Drive - 2689.mp4'):
imgs = []
cap = cv2.VideoCapture(path)
while(True):
ret, frame = cap.read()
if ret:
# frame = ... | [
"hgokul69@gmail.com"
] | hgokul69@gmail.com |
3e474975db04026ec4ff253fb4e9cae7cebcd831 | a9ce8afcd7f46865e8f164b054df6557a52f9d74 | /create_csv_files/create_primary_energy_minus_one.py | ded0771e5d3101e83ff22d8246ccf2be584d31a8 | [] | no_license | fatemetardasti96/variation_scenario | dc004766c517d72f986f58485df027d5d9cbf1e3 | 49b26cfde7d958e5499edc81d1016fdea462b879 | refs/heads/master | 2023-07-05T19:34:28.605476 | 2021-08-25T09:23:39 | 2021-08-25T09:23:39 | 393,187,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 587 | py | from write_to_csv import seperator_to_csv
def primary_energy_minus_one_detail_block(cwd):
csv_list = []
csv_list.append(["#comment","unlimited -1 primary ressource"])
base_type = "DVP_const"
base = 1E15
date = "2016-01-01_00:00"
csv_list.append(["base", "#type", base_type, "#data", date, base])... | [
"fateme.tardasti@rwth-aachen.de"
] | fateme.tardasti@rwth-aachen.de |
669058b04ef29cc7831d55492242fc55d1df1197 | 464b867648ffa7afb444d9754cf4d1ffbf25d2bf | /Experimental_QtUI_Scripts/006_Tab_View/TabView_main.py | f48d33feb7a5e95ca09bff5d7c38a5b9fccb01a3 | [] | no_license | pks3kor/For_GitHub | b619fd7f19baa96d7232a0d35ce48c1355360547 | bafb2c15ff81fd2f3f90a57ac7b3467c86ac6a2e | refs/heads/master | 2021-01-25T09:20:52.146374 | 2018-06-10T14:44:04 | 2018-06-10T14:44:04 | 93,822,114 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | """
Author : Pankaj soni
"""
from PySide import QtCore, QtGui
import sys
from Tab_View import Ui_Form
# Initialize main GUI and use its resources
app = QtGui.QApplication(sys.argv)
Form = QtGui.QWidget()
ui = Ui_Form()
ui.setupUi(Form)
#############################
# Write your own function here and bind them with ... | [
"pks3kor@gmail.com"
] | pks3kor@gmail.com |
02b1265e60e889ce02aff9853a966b296c3a3785 | 70cb4b240ce366c1b889ab6d5cf2f09e5fce6b3f | /webapp/src/app.py | ad5b53b154363d75ff23e0d1b96077a11b03d57b | [] | no_license | djwhatle/stock-cluster-apb | f6ed7e8cfe9a1ed69f08e2ad6fadbf89a042185c | 76ad7bcc26b3d3416b0df6269d8d4825844d8b01 | refs/heads/master | 2021-07-24T11:35:23.104123 | 2017-11-01T06:07:03 | 2017-11-01T06:07:03 | 107,734,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,224 | py | from bottle import route, request, run, get, static_file, template, view, debug
import os, boto3, string, random
aws_vars = {
'sqs': {
'access_key': os.environ.get('SQS_AWS_ACCESS_KEY'),
'secret_key': os.environ.get('SQS_AWS_SECRET_KEY'),
'queue_arn': os.environ.get('SQS_QUEUE_ARN'),
... | [
"derekwhatley@gmail.com"
] | derekwhatley@gmail.com |
4243789910b4eafd8accc3ebfb9dcf544bb61fdc | 11e8e0b0abe952aff4cbe71e354700f759438468 | /run.py | 1e5bdd99a0b2b0ece9e92c3de2fa84368792613c | [] | no_license | jaovito/flask-auth | 8f71292ac5b918605d26dc88d6ccee25a851800b | a86971ab2a386e84376b0160ae04132d2141b4a9 | refs/heads/main | 2023-06-29T07:31:40.111304 | 2021-08-01T01:42:28 | 2021-08-01T01:42:28 | 391,495,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | from app import app
if __name__ == '__main__':
app.run(port=3333) | [
"junior.vitorio.dias@gmail.com"
] | junior.vitorio.dias@gmail.com |
213ec361cd162f8a0733d4d4d34eb2d36e119bac | 36739fb573c1a99d9301f2140680d0d7cc4a3833 | /assignment1/assignment1/.env/lib/python2.7/sre_compile.py | 656519efbb26d009764be380d1110adc91408134 | [] | no_license | jingshuangliu22/cs224n | 21db34c91846ea0dea095e2032b2016cc11a7f84 | 1951a4b7a25c142c860d456f3f7a3afa32171a51 | refs/heads/master | 2020-12-30T11:28:20.855167 | 2017-05-17T12:25:02 | 2017-05-17T12:25:02 | 91,565,500 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 55 | py | /Users/jingshuang/anaconda/lib/python2.7/sre_compile.py | [
"6044475200@qq.com"
] | 6044475200@qq.com |
54fbbd3895749f2d1352a00e42ae0caa3ce23495 | ff4b8ded01d77bea6ede5d2312a16c050987629f | /gym_chrome_dino/game/dino_game.py | 646b3218a8cd95b710e59ede2bdb821c92138e1c | [
"MIT"
] | permissive | HoaiDuyLe/rl-dino-run | eedf9fa0dc2a56de518b7d9fc970d6b2fa1b969c | 89083f3ef8fc7211c3145eb949776a155bb675a1 | refs/heads/master | 2022-04-02T19:39:26.672916 | 2020-02-15T13:24:28 | 2020-02-15T13:24:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,239 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2018 Elvis Yu-Jing Lin <elvisyjlin@gmail.com>
# Licensed under the MIT License - https://opensource.org/licenses/MIT
import os
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.keys import ... | [
"yzheng51@sheffield.ac.uk"
] | yzheng51@sheffield.ac.uk |
544ca9209f8eaffd8963bc47a621318a1f43b4ec | 556e1797e9e013a675b058cfd97af513d94de15a | /initial_tables/schema.py | 9ccb2315dd9bc2a36b0010fc77e5d0005aab6223 | [] | no_license | EizoAssik/DB-ExCr | 08adfaaba3b707064097e07050930c1257b31238 | 86e9d472065d0920e4985c10d28069f180d8fff9 | refs/heads/master | 2018-12-28T07:40:35.915772 | 2014-06-12T09:03:16 | 2014-06-12T09:03:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,817 | py | """
CREATED AT 4/24/14 11:10 AM AS A PART OF Project DBSC
"""
from ply import yacc, lex
tokens = ('NAME', 'REF', 'PRI', 'LP', 'RP', 'LSP', 'RSP', 'LCP', 'RCP', 'COMMA')
t_NAME = r"[A-Za-z0-9_]+"
t_REF = r"\*"
t_PRI = r"\+"
t_LP = r'\('
t_RP = r'\)'
t_LSP = r'\['
t_RSP = r"\]"
t_LCP = r'\{'
t_RCP = r'\}'
t_COMMA = r',... | [
"eizoassik@gmail.com"
] | eizoassik@gmail.com |
6d23701514aa04997b08269566d74de35d31863a | 86024673fba8f9f46f4a43fe38e1c1cace121997 | /vjezba-15.py | 914f5cd09cece516289fbfe9945ba0bd7b0020b8 | [] | no_license | LaraDuretic/PZW | 5d292eb7fa3ca26748dcf035752cd13fae925738 | 2863068cbcb59fd84711459f1d31d69dcc7b6584 | refs/heads/main | 2023-09-03T10:07:45.915753 | 2021-11-17T10:40:01 | 2021-11-17T10:40:01 | 411,620,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | # To do aplikacija
lista_zadataka = []
print("Dobrodošli u To do aplikaciju. Za izlaz odaberite x")
while True:
zadatak = input ("Unesi novi zadatak: ")
if zadatak.lower() != "x":
lista_zadataka.append(zadatak)
else:
break
print("Lista zadataka")
for x in lista_zadataka... | [
"noreply@github.com"
] | noreply@github.com |
2bc93fa19cb05690f43b36a680d47a50c3e69ae8 | 4cc7f348b7ef6e9d5abcf98d10c360864f2d2800 | /sko/PSO.py | da24e59a8068801d58146ccf614e4c2329adcb36 | [
"Python-2.0",
"MIT"
] | permissive | zkcz/scikit-opt | 6886ba5fd66c0e79b5bc4f101f47d556fef1612b | bc884b6408af4c91fa406391e75f570a25496c4b | refs/heads/master | 2020-10-01T13:21:30.549707 | 2019-12-11T05:50:51 | 2019-12-11T05:50:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,897 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Time : 2019/8/20
# @Author : github.com/guofei9987
import numpy as np
from sko.tools import func_transformer
from .base import SkoBase
class PSO(SkoBase):
"""
Do PSO (Particle swarm optimization) algorithm.
This algorithm was adapted from the earlier... | [
"guofei9987@foxmail.com"
] | guofei9987@foxmail.com |
54794aabde093af896a26d62f7eb36fab7a37823 | c0c2719820ded6d7793fc9910c6d76116f48aa25 | /tango_with_django_project/rango/migrations/0005_category_slug.py | eb8c559ae28f8a1f28190a050b55d992f23e60a7 | [] | no_license | leo123qw/ASD2 | 5cb02a7c65bfe5d1ace935c83ecb0ee7be444e2d | a8938187cf9a2af17c47757bf201e7aed8628352 | refs/heads/master | 2021-01-13T16:21:05.968626 | 2017-02-07T17:35:13 | 2017-02-07T17:35:13 | 79,949,756 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-01-26 18:51
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('rango', '0004_auto_20170126_1705'),
]
operations = [
migrations.AddField(
... | [
"2229755z@student.gla.ac.uk"
] | 2229755z@student.gla.ac.uk |
31cb4886a450673f2d8b2cf2eb0e7434adbabdfe | b140bb49ab8c092cf52d0f8fbefe2da6aad77c48 | /exceptions.py | b832e156d68ff9705a1efbaf1bf59b7327ef772f | [] | no_license | freefalI/translator | e2d3c24e608fe8aa8fdfabbec8a341853bc939c9 | 5a12930c4b6a3d7d3488b48bc4410cf3370eafe6 | refs/heads/master | 2020-04-16T21:14:17.796776 | 2019-02-24T19:49:00 | 2019-02-24T19:49:00 | 165,917,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py |
class TranslatorException(Exception):
def __init__(self, message=None, line=None):
msg = "RAISED ON LINE {},\n".format(line) if line else ""
msg += "MESSAGE: {}".format(message) if message else "There is no message"
super().__init__(msg)
class LexicException(TranslatorException):
pass... | [
"freefalI@users.noreply.github.com"
] | freefalI@users.noreply.github.com |
7d8ec831d0e7abcce415e5b9743f82e08eaa5960 | b78ed085d7f4860893715d27d26df2c1a7c760e3 | /练习/Dec2Bin.py | e1a85e591d998f58ddaf05ffeca12b23518dcc2b | [] | no_license | maxzjs/python_learning | e5c1a1916c8dbeb05c30b967bd36c33f0b4119e9 | 90c9c1cfaae2e7855ae350e5e36c1264a5b69006 | refs/heads/master | 2023-04-15T07:31:07.852946 | 2023-04-12T02:47:07 | 2023-04-12T02:47:07 | 150,445,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | # 十进制转二进制
#dec = input('输入十进制数:')
import os,time
def Dec2Bin(dec):
result = ''
if dec:
result = Dec2Bin(dec // 2)
return result + str(dec % 2)
else:
return result
print(Dec2Bin(32))
os.system("pause") | [
"626703431@qq.com"
] | 626703431@qq.com |
81808d6ccec7cb6c07f735067c807d038bbe08a9 | c031f254141897f861501782bb53e10901cc6379 | /백준/banghyungjin_1339.py | 1be1d46d440ba50133994f44f5a0951974318c8f | [] | no_license | Banghyungjin/coding_test | 0673d23f819791ab7a2052f787f007b828d7fb62 | 0ada8528f3c35017e77a54701fa001835dadeaef | refs/heads/master | 2023-07-13T17:11:10.456195 | 2021-08-20T13:29:06 | 2021-08-20T13:29:06 | 182,887,687 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,884 | py | import sys
num_of_letters = int(sys.stdin.readline().split()[0]) # 단어의 개수
letters = {} # 알파벳과 그 알파벳이 나온 숫자 딕셔너리
answer = 0 # 정답
for ... | [
"37135305+Banghyungjin@users.noreply.github.com"
] | 37135305+Banghyungjin@users.noreply.github.com |
036e1f00cafaa98cabbe1f94fd404050425f7bd6 | 7ed2f04f9d92587f97a226ee7e4381e3664dbc8d | /The Ultimate Project.py | 70bb73cc23fdae54ca8b13992648fb932f6cf9e9 | [] | no_license | Jubayer-Hossain-Abir-404/Problem-Solving-Using-Python-and-Numerical-Methods | 3e11d717f27a02ccb8af56ffe45b0211a7358cf1 | 2c23f477cee1e9dbb4b3f9c5b89d208caf69f7a8 | refs/heads/main | 2023-06-06T20:37:54.513575 | 2021-07-17T17:10:11 | 2021-07-17T17:10:11 | 386,996,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,303 | py | import math
def g(x):
return (-0.88318*pow(10,-2))/(-0.50598*pow(10,-10)*pow(x,2)+0.38292*pow(10,-7)*x+0.74363*pow(10,-4))
def iteration(xi):
n=0
while(n<5):
xi_plus=g(xi)
n+=1
xi_minus=xi
xi=xi_plus
return xi
def calculate(n,T,alpha,delD):
sum_Ti=0.0
sum_Ti_sq... | [
"41603187+Jubayer-Hossain-Abir-404@users.noreply.github.com"
] | 41603187+Jubayer-Hossain-Abir-404@users.noreply.github.com |
118477199ec7566e310b67d75ad1cdeeca56855c | 3e59724306fac40aee85a69df70af05baf6c120b | /pywr_models/models/stanislaus/_parameters/Donnells_Reservoir_Storage_Value.py | d15e6651ec3525a39edc20006e96790c3d1460d1 | [] | no_license | mlmaskey/sierra-pywr | 9e632ecf85aeb0345a1489c866625ecd62693613 | 80bf954cb26011aee4a84dc82b001e8d260ae525 | refs/heads/master | 2023-01-31T21:49:05.663574 | 2020-12-12T02:55:24 | 2020-12-12T02:55:24 | 318,676,217 | 0 | 0 | null | 2020-12-05T01:32:05 | 2020-12-05T01:32:04 | null | UTF-8 | Python | false | false | 911 | py | from parameters import WaterLPParameter
from math import exp
class Donnells_Reservoir_Storage_Value(WaterLPParameter):
def _value(self, timestep, scenario_index):
base_cost = -60
if self.model.mode == 'planning':
return base_cost
elev = self.model.nodes[self.res_name].get_leve... | [
"herr.rhein@gmail.com"
] | herr.rhein@gmail.com |
68a1ff303501253341e14cb21abc7e096179a871 | 13f0b9a6ca148fe40cdbd73398b12d2f8c0e8571 | /scripts/flashing/firmware_utils.py | ad76c9ed80e473c9999f6922cf5c2a1c610f36a4 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | simonlingoogle/connectedhomeip | 84670f016ae68b80f636738a2647dc8dc2cea287 | 47e8b60c0a903b385accde9f49635187646dd577 | refs/heads/master | 2023-01-11T08:29:44.455068 | 2020-09-25T03:40:35 | 2020-09-25T03:40:35 | 298,519,978 | 0 | 0 | Apache-2.0 | 2020-09-25T08:54:56 | 2020-09-25T08:54:55 | null | UTF-8 | Python | false | false | 9,845 | py | #!/usr/bin/env python3
# Copyright (c) 2020 Project CHIP 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... | [
"noreply@github.com"
] | noreply@github.com |
d04dfe1509c30e44084d28e7679e5a6f432e69e7 | 980a0761e4cc0f28112e21fbd685945f486a8033 | /MC_reconstruction/digi_raw/mc_lbl/crabConfig.py | eea543e2279dcd9d4c984797ba55564ceb3c99dc | [] | no_license | jniedzie/LightByLight2018 | f5d8369a286ea8cc308e28a53ef8ac17a19e59d4 | 281b2b35488c4c67cba9526204c0b1143b5c7735 | refs/heads/master | 2023-09-01T04:01:00.933114 | 2023-08-15T08:34:08 | 2023-08-15T08:34:08 | 152,394,057 | 1 | 13 | null | 2023-03-28T06:40:01 | 2018-10-10T09:03:06 | Python | UTF-8 | Python | false | false | 1,049 | py | from CRABClient.UserUtilities import config, getUsernameFromSiteDB
config = config()
#config.section_('General')
config.General.requestName = 'digi_raw_lbl'
config.General.workArea = 'crab_projects'
config.General.transferOutputs = True
config.General.transferLogs = True
#config.section_('JobType')
config.JobType.plu... | [
"jeremi.niedziela@cern.ch"
] | jeremi.niedziela@cern.ch |
ec3a563f26ecd67ae8ca764601e6d0337155a7de | f2b7a1cf286ffbd2fbeb3366dfc1f50548ada1fc | /lavre_gain/util/plotter.py | 8650b028155e11205170d397ea508a1c6fd03e59 | [] | no_license | dmorais/AI | 277cf4d6c10a5a1c34f445e45686607e9b92b129 | a3a4f4b80b8406ab7ff82420df0120480d3d9fcd | refs/heads/master | 2020-12-30T16:01:29.738844 | 2017-09-11T13:56:58 | 2017-09-11T13:56:58 | 91,193,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,899 | py | import matplotlib.pyplot as plt
from matplotlib import style
def plot_raw(x_label, raw, corrected, size):
style.use('seaborn-darkgrid2')
x = list(range(size - 1))
fig = plt.figure()
ax1 = plt.subplot2grid((8, 1), (0, 0),
rowspan=3, colspan=1)
plt.title(r"Rentabilidade d... | [
"dmorais@ccs.usherbrooke.ca"
] | dmorais@ccs.usherbrooke.ca |
0ce9848fd48d69c34d629a9dd386f1705127fa21 | ab0172a250897f8f053fef98560ddcb0a9207213 | /utils.py | bc42a9ca2d0f638ee5fc97f436f6f9e1c26bf971 | [] | no_license | bigfishtwo/scale_layer | 127c7a28a502b4b104d9980196ebdaf12a15877a | e7ef26c922359882869585d5323b068b20c3cc4f | refs/heads/main | 2023-06-27T19:05:16.069265 | 2021-08-01T10:48:49 | 2021-08-01T10:48:49 | 391,007,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,359 | py | import torch
import torch.nn as nn
import torch.optim as optim
import numpy as np
import pandas as pd
import torchvision
from torchvision import datasets, models, transforms
from torch.utils.data import Dataset, DataLoader
import torch.nn.functional as F
import matplotlib.pyplot as plt
import matplotlib as mp... | [
"noreply@github.com"
] | noreply@github.com |
98acdbd0cb4d39fcd02dec2ee1444546fad112b3 | a79a807697d54baa63e80a35a0037cd00ab45e28 | /Python-Stack/Django/DjangoIntro/Counter/assignment_three/counter/urls.py | 836969244c63649d19bb9d193a652fbd4474b74a | [] | no_license | YasmeenMuhtaseb/Assignments | 153eb2a3bf9815ffd1f23d272beed7271339e981 | ccec0c28bc173989a9288956cceedda84f577810 | refs/heads/master | 2023-03-21T17:19:46.796728 | 2021-03-10T20:08:24 | 2021-03-10T20:08:24 | 330,404,190 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.index),
path('destroy_session',views.destroy),
path('increment',views.increment),
path('incrementByInserted',views.incrementByInserted)
] | [
"y.muhtaseb95@gmail.com"
] | y.muhtaseb95@gmail.com |
c2f34abffbd6b332cda3d124b36df870c5f80437 | fd74ba74d33469098218c582a0a639cf49ab1950 | /csv_reader.py | e6b86df4c4a53dab7e9ff55b5adf54291f799966 | [] | no_license | tedljw/bert_chinese_classify | 71a7b71622dbc8163f73dfb58bc05fad8eb096cf | 557f273cf716c0530ef60a533c5ba30ef23c8fa4 | refs/heads/master | 2020-05-22T07:33:27.583594 | 2019-05-21T08:01:38 | 2019-05-21T08:01:38 | 186,267,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 876 | py | import pandas
import random
import json
random.seed(233)
def save_data(path, data_list):
json_list = []
for stc, label in data_list:
sample = {}
sample['question'] = stc
sample['label'] = label
json_list.append(json.dumps(sample))
json_list = '\n'.join(json_list)
with ... | [
"ljwhero@163.com"
] | ljwhero@163.com |
ba0fba26f9ca4e4466527155c41fa14dfdc80358 | 1aca8e3a2ce8196c677be60d5f782a795defe13a | /problemaC.py | ffa9d2e66c7f36710d0786031ca4e08f583a2f59 | [] | no_license | AtilioA/TProg1 | af2182eae3cd83160c8ab167fd8e855ec9cc7232 | f0771e7bb76d9d22e29d2bfd76ef113694f87ed8 | refs/heads/master | 2020-05-31T16:42:42.072575 | 2019-06-29T16:02:07 | 2019-06-29T16:02:07 | 190,387,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,264 | py | # Módulo com funções para solucionar o problema C
# Autores: Atílio Antônio Dadalto e Ícaro Madalena do Nascimento
# Disciplina: Programação I, ministrada por Jordana Sarmenghi Salamon em 2019/1
from problemaA import distancia_total
from problemaB import caminhos_percorridos, ids_robos
from roboAux import tupla2
# ==... | [
"atiliodadalto@hotmail.com"
] | atiliodadalto@hotmail.com |
73f72b765974115b3bd6a2e5fc4171242eb45a4e | 907f1fe8d0403d535fdbd05e020abd6e01f6b03d | /code_sacro/pre_train.py | e1e2f420b03c3d88a2915b6d169dbfeae41f9a7c | [] | no_license | mikami520/Sacrocolpopexy-workflow-analysis | 95641741b08e28f79ff4da5ac290559084bccc13 | 49a88702ccac0e8b97030dab7afb3f539951fbe5 | refs/heads/master | 2023-05-09T03:56:28.119126 | 2021-06-04T02:02:21 | 2021-06-04T02:02:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,800 | py | #! /usr/bin/env python
from model import Conv3_pre
from utils.UCF101 import UCF101
import numpy as np
import pickle
import time
import psutil
import os
import scipy.io as scio
import torch
import torchvision
import torchvision.transforms as transforms
import torch.nn as nn
import torch.autograd as au... | [
"zyt948715472@icloud.com"
] | zyt948715472@icloud.com |
8934d26a9954c241c559584809ce7bfe4daa42b8 | 3e4556b982455bc5b44c7f823ed3199c654f4f6f | /delicious_hometown/migrations/0023_choice_market.py | 12efdd1bf7e9389789bca1e4dc837815ce25cfbe | [] | no_license | changwoo360/MyProjects | 42f7661571e1a548f276075c2e258e79abc78f6d | 92f3174d2fd03a86dfd3614872d7dddf90d34d35 | refs/heads/master | 2020-03-31T05:01:28.887379 | 2018-11-20T14:02:45 | 2018-11-20T14:02:45 | 151,929,977 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 733 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2018-10-12 08:26
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('delicious_hometown', '0022_auto_20181012_1135')... | [
"noreply@github.com"
] | noreply@github.com |
eb06707c02b708b16b20562078f0ccd02b5cca34 | 76dab6591cb9c7ee566b76a0adc7b0b0c4086592 | /main/tests/test_models.py | 7185a7137b6e46e6c02f4727e6bb80c1f7e2792a | [] | no_license | gray-adeyi/booktime | 87962321e380cfa779b24f2bd6fa8c434687d084 | fb54bc35739b28b5a71a5cf0c1067f38140559ba | refs/heads/main | 2023-04-05T02:44:01.992984 | 2021-05-03T01:37:01 | 2021-05-03T01:37:25 | 363,434,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,490 | py | from decimal import Decimal
from django.test import TestCase
from main import models
class TestModel(TestCase):
def test_active_manager_works(self):
models.Product.objects.create(
name="The cathedral and the bazaar",
price=Decimal("10.00"))
models.Product.objects.create(
... | [
"adeyigbenga005@gmail.com"
] | adeyigbenga005@gmail.com |
a3fc82185c9fb7f8be05a7dfcc5642cbb1451ae1 | 5ccf17b4708c7ef12ae17d8f089eeea57e1717f6 | /mazeGenerator/mazeGenerator.pyde | f8955658619403bff81f4e40fb622a3cd0883fdb | [] | no_license | perewodchik/processing | d71b3057fae584b94ae499e8c5bc443936e3ec22 | 6caf07c259ae4775cc6b151b92f315fa1ad4f294 | refs/heads/master | 2020-05-15T16:32:33.694728 | 2019-04-23T20:29:29 | 2019-04-23T20:29:29 | 182,391,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,416 | pyde | from random import *
backgroundColor = "#B0E19B"
startColor = "#37BA004"
endColor = "#2B8F00"
wayColor = "#41DB00"
wallColor = "#CB0024"
windowWidth = 900
windowHeight = 900
mazeSize = 10
""":
This is a maze generator using DSU with a possible solution
There is also BFS for finding path from start... | [
"noreply@github.com"
] | noreply@github.com |
c0e32ca735b155f4c09cec0c9f7385ae2d3dcce8 | c9c4f05df86ee81fad560ca6321974b6ab414132 | /python3/solutions/skocimis.py | f95a23b1ee54101da3e6a1c32ca86a1987515fbe | [] | no_license | ionelh/kattis | 520ce63d887127ed1c9a5e57c7473e4688bb9f76 | 9f335c352b152081fb0ca128532a7c2038db6fe4 | refs/heads/master | 2021-01-23T21:49:46.517516 | 2017-08-07T17:29:28 | 2017-08-07T17:29:28 | 83,111,740 | 6 | 4 | null | 2018-04-26T10:42:10 | 2017-02-25T06:31:26 | JavaScript | UTF-8 | Python | false | false | 475 | py | # Problem: https://open.kattis.com/problems/skocimis
########## GENERATE TEST CASES LOCALLY ##########
dummy_input = [
# '2 3 5',
'3 5 9'
]
def input():
if len(dummy_input) != 0:
return dummy_input.pop(0)
raise EOFError()
################## CODE #####################
kangaroos = [int(elt) for elt in in... | [
"ionel.hindorean@gmail.com"
] | ionel.hindorean@gmail.com |
8a840e7b2d610e51b72c8e3d920adace9b441c9e | 6b4c76462ebb3491447e8eca9d83b00087b41c23 | /oflibpytorch/utils.py | ba2cba2b2a9112d904e613170de02327fbb432fb | [
"MIT"
] | permissive | snehashis1997/oflibpytorch | 19586626b0be1752ef2588bb50e0a7354316ed48 | 5c1e28ad0cf00b25a7dd040c50b92407cbefe8ff | refs/heads/main | 2023-06-14T10:28:43.437528 | 2021-07-09T17:27:18 | 2021-07-09T17:27:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,847 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright: 2021, Claudio S. Ravasio
# License: MIT (https://opensource.org/licenses/MIT)
# Author: Claudio S. Ravasio, PhD student at University College London (UCL), research assistant at King's College
# London (KCL), supervised by:
# Dr Christos Bergeles, PI of the... | [
"CSRavasio@users.noreply.github.com"
] | CSRavasio@users.noreply.github.com |
3ec23889b0b41f273a08c57ccb91e806f23972c4 | a49ebe04a533f5359592c7222b2212b49002f066 | /merge/test/test_01.py | 2cd07044698cb655e9188b3bdb7b264c8a6ecead | [] | no_license | prem1982/airassessmentreporting | ffb23e87e120ade54dee971b215186d12968fd43 | 0c5a3714de0e157b14f92cb3a2bd5611d2dc6e97 | refs/heads/master | 2020-03-28T14:49:34.876496 | 2018-09-12T18:50:13 | 2018-09-12T18:50:13 | 148,526,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,561 | py | import unittest
import os.path
from airassessmentreporting.merge import *
from airassessmentreporting.airutility import yesno
from abstractmergetestcase import AbstractMergeTestCase
from airassessmentreporting.testutility import ( integer_compare,
mixed_compare, to_str, compare_tables )
def truncat... | [
"prem1pre@gmail.com"
] | prem1pre@gmail.com |
f715bb4188f7502c3b3cfec70e313d25dcebe13e | 37abefa640c3074a26c7c884d5cbfb3d0bc90c6d | /Customer/migrations/0001_initial.py | 2d12173f5b9b51e2daa3287d0991164ea965497c | [] | no_license | dishbail/PostureApp | 439f8cc6463e8f7f60479f51b437d4293485909f | 93194bc199588b051fe66a51269f56eb135c5a78 | refs/heads/main | 2023-04-15T00:59:46.037618 | 2021-04-23T22:24:17 | 2021-04-23T22:24:17 | 335,673,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,520 | py | # Generated by Django 3.0.7 on 2021-02-17 17:05
import datetime
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
from django.utils.timezone import utc
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappabl... | [
"rebeccagolm32@gmail.com"
] | rebeccagolm32@gmail.com |
a9b0a4dd2f123ad3af0d2e9e35f3602686baf7b5 | 4dca81f7e7c3ae60397c40fde44faec71b720b17 | /chapter5_convolutional_neural_networks/5.3_channels.py | cf3500c5e2172f6cb784686dd1e9ce8c5234d7c2 | [
"MIT"
] | permissive | Rosetta-Leong/pytorch_learning | 5b46411c417f5d14604ca7fe6105564b8864573e | 86cf2252dd210a5fc613a65dbb773bdf1e2b734f | refs/heads/main | 2023-07-05T23:44:54.430716 | 2021-08-11T09:26:47 | 2021-08-11T09:26:47 | 384,839,559 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,584 | py | # -*-coding:utf-8-*-
# @File : 2021/8/4 下午4:26
# @Author : Rosetta0
# @File : 5.3_channels.py
import torch
from d2l import torch as d2l
#多通道输入互相关运算
def corr2d_multi_in(X, K):
return sum(d2l.corr2d(x, k) for x, k in zip(X, K))
#使用 zip() 函数“压缩”多个序列时,它会分别取各序列中第 1 个元素、第 2 个元素、... 第 n 个元素,各自组成新的元组
... | [
"lxsnu11678911@gmail.com"
] | lxsnu11678911@gmail.com |
37e3105b16c43a36e130e2227fd973d23acab791 | fcc2e8ea496e3bbc4e14e0dd8c97d785b08f0905 | /extract-swf-from-ppt.py | 15ca657b201450b4f5242e71fcebc0cd6900ca23 | [
"Apache-2.0"
] | permissive | PeterUpfold/extract-swf-from-ppt | 0eda19266f01a713176c076c63827861c986577f | bbb47cad6d6b365e39841adbc09a40183ad2ec09 | refs/heads/master | 2022-02-28T21:51:50.985305 | 2019-10-31T15:51:47 | 2019-10-31T15:51:47 | 208,244,221 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,304 | py | #!/usr/bin/env python3
#
# Extract SWF from PPT
#
# Use LibreOffice's unoconv to convert PowerPoint 97-2003 format files into PPTX, extract Flash files (*.swf)
# from inside the presentation and dump these to a folder.
# Copyright 2019 Test Valley School.
#
# Licensed under the Apache License, Version 2.0 (the "Licens... | [
"upfoldp@testvalley.hants.sch.uk"
] | upfoldp@testvalley.hants.sch.uk |
655afc59bdf886491d282fd26968e9a37ec13aee | bb46e44301da95b8ed1b2b3af6caf8ef6f0e91f2 | /scripts/LeistungsdatenScraper.py | 220547f258d3d684357c11f13892fb1ebaf13336 | [] | no_license | vgoel30/European-Soccer-Diversity | ccca31a2233e19cd304d5c3d7cb80413d01aa359 | a62364e3876cecf074a8aee2ea8976bf7a9c5576 | refs/heads/master | 2021-03-24T13:20:22.569083 | 2018-06-10T10:48:31 | 2018-06-10T10:48:31 | 117,543,936 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,499 | py | from bs4 import BeautifulSoup
from pprint import pprint
import requests
import json
headers = {'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36'}
main_url = "https://www.transfermarkt.com/"
'''
https://www.transfermarkt.com/paris-saint-germain/le... | [
"varun.goel@stonybrook.edu"
] | varun.goel@stonybrook.edu |
342d9ea7626bfa91902ea78fa41d7879ef2d8cd6 | e90577849e71431c8c0b580c16ad2d9c7d1e03ba | /recurrsion.py | 1b834613096bb995060901862805207b37cdeece | [] | no_license | ArtemonCoder/hangman | bfa74cc2a55c1120be7d5f174386e18b781ac51a | 48deae7d33a1958363726368ade306a496b377d3 | refs/heads/master | 2020-03-24T03:56:58.177534 | 2018-07-29T10:55:21 | 2018-07-29T10:55:21 | 142,438,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | def bottles_of_beer(bob):
""" Печатает текст песенки про 99 бутылок пива.
:param bob: Должно быть целым числом.
"""
if bob < 1:
print("""Нет бутылок пива на стене. Нет бутылок
пива.""")
return
tmp = bob
bob -= 1
print("""{} бутылок пива на стене. {} бутылок ... | [
"artkuryshev@yandex.ru"
] | artkuryshev@yandex.ru |
2cc1ad9577f5e70e29c22b33730e0ab7a2a2afb9 | d1cd25f84f7b7ba631cdf66578a907fdf85abd62 | /blog/migrations/0001_initial.py | 86461cf25a6a527875065c659258381032977f86 | [] | no_license | honghuynhit/gadjango | 7818b34044a4b30d07468b9c5b5e96ba25cd4ea5 | b5ccbdbbe26098391e498b6857007046cc8c22c4 | refs/heads/master | 2023-08-25T20:34:00.399111 | 2020-06-27T11:55:58 | 2020-06-27T11:55:58 | 275,237,875 | 0 | 0 | null | 2021-09-22T19:19:39 | 2020-06-26T20:03:57 | Python | UTF-8 | Python | false | false | 986 | py | # Generated by Django 3.0.7 on 2020-06-26 19:48
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"honghuynhit@gmail.com"
] | honghuynhit@gmail.com |
e188b05ee0eefdc3df896a57bbe3cadf04e3dd5e | b9bce55f33bd7b028f192230fe7f0fa43e47849b | /DeprecatedFiles/ALTERNATE_9.0.py | a83f130febbb0c93179da5bf9e9774cc7af1409d | [] | no_license | bpayami/FinalProject17 | e3c67768c27783fd1f0f13cfa0e6e8c2af9a8c1a | ee3d889794f1691f96ee8575de441e4456f9a496 | refs/heads/master | 2021-09-06T03:54:48.599560 | 2018-02-02T07:42:58 | 2018-02-02T07:42:58 | 116,167,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47,014 | py | #TO-DO LIST
#GAME CONTENT
#change nowakowski cookbook name
#GAME ENDING
#figure out ending message
#GRADING
#finish adding comments
#MISC.
#slow type of 'processing'
#bug test!
#http://copy.r74n.com/ascii-art
#http://www.chris.com/ascii/
import ... | [
"bpayami@ucvts.tec.nj.us"
] | bpayami@ucvts.tec.nj.us |
39c564c01ad80cc148d2600ecf6c163390b54e21 | e84f63e7c8a105c6da6e98802762646d4c34d139 | /manage.py | 7d53e8e2bb6b9ad87e3156332179657a59f32270 | [] | no_license | ganeshkuikel/barber_project | dfed8591d94730427fd483500f2da4b73382c170 | 589ea1aaa1f0a653f35ca155095ba1e71d74fff9 | refs/heads/master | 2020-07-05T19:03:28.894825 | 2019-08-17T04:26:09 | 2019-08-17T04:26:09 | 202,739,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 631 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'smbarbershp.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Im... | [
"ganeshkuikel66@gmail.com"
] | ganeshkuikel66@gmail.com |
32507acd78f501ec54d3ee9e35911dfe8ca480b6 | 03dfcd4bd41ff9ba76e67895e96a9794ad003a31 | /sandbox/internet/web-scraping/myparser.py | 82a2e133b52c265a643c1d4c02ec7e0966db8a05 | [] | no_license | gittygitgit/python-sandbox | 71ca68fcc90745931737f7aeb61306ac3417ce60 | 3b3e0eaf4edad13aabe51eb3258ebe9e6b951c67 | refs/heads/master | 2021-01-19T02:41:17.047711 | 2018-11-22T18:07:15 | 2018-11-22T18:07:15 | 39,742,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,720 | py | #!/usr/bin/python
import HTMLParser
class MyParse(HTMLParser.HTMLParser):
def __init__(self):
#super() does not work for this class
HTMLParser.HTMLParser.__init__(self)
self.tag_stack = []
self.attr_stack = []
def handle_endtag(self, tag):
#take the tag off the stack i... | [
"grudkowm@Michaels-Air-2.fios-router.home"
] | grudkowm@Michaels-Air-2.fios-router.home |
a33a45c3bb847c2488e53b3f8ce4ab04c98892ea | d8f0f334cdf334688c0006c4a8f67f32ab950b77 | /lab03/cdavies/primes.py | 89619bdeb6e466ddd8ee9a202c51dec83e0438e6 | [] | no_license | acheney/python-labs | e892198c1dcb2a3df525616e3c0af2a8680551be | eabacfef432f436cf6af6a8235aa7d28fd966c61 | refs/heads/master | 2021-01-18T09:08:03.650541 | 2013-01-27T22:17:38 | 2013-01-27T22:17:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 868 | py | # primes.py
# Makes a list of primes and finds any twin primes among them.
#
# Connor Davies
# 1/10/13
def main():
n = eval(input("Please enter a number greater than 1:"))
prev=2 #the first prime
total=0 #total number of twins
print("The first", n, "primes are: ", end="")
print(2, end="... | [
"connordavies11@gmail.com"
] | connordavies11@gmail.com |
cf60eb518d39c69bceb479291a1a42f71beca59e | 214d0bfb30dc17b12d786804d07085542fa1eef2 | /getOTToLStats.py | fea77671c5ab3f9547d0c1d98bd27163808ae8b5 | [] | no_license | Katzlab/OTToL-Scripts | 76a1922ca845dec35cc0fd57fabc0785d0839419 | b30ec4356627206808677006342be15b20a450c4 | refs/heads/master | 2018-12-28T07:56:20.855159 | 2012-09-10T13:36:52 | 2012-09-10T13:36:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 885 | py | ###############################################
#This script reads in the OTToL file and outputs the # of species, genera and 'above genera'
###############################################
print "This script reads in the OTToL file and outputs the # of species, genera and 'above genera'"
def getStats(file):
spcount ... | [
"jgrant@smith.edu"
] | jgrant@smith.edu |
eb8cfcd9d3cfa4307c32ac076282793074731f1e | 4b594a54a58d85da48d0c123403edec41adf474b | /EvaluationOfModelPicks.py | d0f54cd2ff3a5cb1331ae6c790868b3f090c18bc | [] | no_license | EWiliams0590/StockPredictor | 66b0f168aa3d60bdf341c114cf715e4d6f6f337a | 2cf6844d87664974301ee943df581efff2fc5681 | refs/heads/main | 2023-06-10T22:37:58.790406 | 2021-06-28T17:46:55 | 2021-06-28T17:46:55 | 346,145,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,124 | py | ### For determining how well the stock picks did for the week
import pandas as pd
from datetime import date, timedelta
import yfinance as yf
def add_SP_increase(date):
"""
Parameters
----------
date : The date to evaluate data from.
Returns
-------
Writes SP_increase colum... | [
"noreply@github.com"
] | noreply@github.com |
c623f87b22b649226f52dc2e56f8651ae57fca85 | 484da6ff9bda06183c3d3bbda70c6d11e1ad6b67 | /.history/main_20191007162714.py | 3c0a5d2227f2184e32bd46b4e6485a71ab54093b | [] | no_license | Shynar88/TSP | 009a88bbddb29214921de4d0cf1761dea61b7b75 | 889751ab7d6a91469e86c6583f3c91b85857edd9 | refs/heads/master | 2020-08-06T22:40:49.217474 | 2020-01-14T13:41:44 | 2020-01-14T13:41:44 | 213,185,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,330 | py | import argparse
import math
import random
import operator
class City():
def __init__(self, index, x_coord, y_coord):
self.index = index
self.x_coord = x_coord
self.y_coord = y_coord
def __repr__(self):
return "[" + str(self.x_coord) + ", " + str(self.y_coord) + "]"
def get... | [
"shynar@mindslab.ai"
] | shynar@mindslab.ai |
5f0cdf0d2784b52685ced9bb53eddefc839f98bf | b89ae940c8982baa3067fb15279c9c1c40b8f2e7 | /2020-04-23 Residual Block and ROI pooling Pytorch/1_Residual Block/wrong1.py | e815b3ca1748e5bb4300b8924bfee3e8d095f730 | [] | no_license | albertovitto/VCS | c04e7a7d95a5b8193266dd1fb3390da0224a6335 | 4286596ee7d3e627f9f2681770f72e8d68150a59 | refs/heads/master | 2022-12-17T02:13:20.463482 | 2020-09-19T11:04:58 | 2020-09-19T11:04:58 | 242,100,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,305 | py | import torch
import torch.nn as nn
class ResidualBlock(nn.Module):
def __init__(self, inplanes, planes, stride=1):
super(ResidualBlock, self).__init__()
self.stride, self.inplanes, self.planes = stride, inplanes, planes
self.conv1 = nn.Conv2d(
inplanes, planes, kernel_size=3, s... | [
"albertovitto16@gmail.com"
] | albertovitto16@gmail.com |
64b0ec5dfdc7b0d1977c397a0e8e10ae0763203e | 9789753e890cd519ee9c27fb358d96744fdf14db | /tieba_autoanswer.py | bcfd3b28c1bd4c94bcc60f28f928e239dc10450f | [] | no_license | txb1989hehe/shtxbDB | a3c65755344303a9fa73e4eea81db461dfa3db10 | ab147b0ea9fe0e93fb5a74aa228a5485b19311ce | refs/heads/master | 2021-04-12T08:28:38.567434 | 2018-10-18T08:50:15 | 2018-10-18T08:50:15 | 126,261,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,616 | py | # ---------- nothing is impossiable -------------
# __author__ = Luke_Tang
# __time__ = 2018.10.17
# __main__ = 百度貼吧自動回復增加經驗值
# -----------------------------------------------
from selenium import webdriver
import time
from urllib.parse import quote
from selenium.common.exceptions import NoSuchElementExcept... | [
"noreply@github.com"
] | noreply@github.com |
63901810b92d4e20b3098301bbd464048df71d71 | 0d303fb64dc9545394df739159630291030c0bc3 | /game.py | 8f35f84dd148d77834130a97f008c7b218b23d65 | [] | no_license | S-Rawlani/Snake-game | 561a0f6768e0f6a11dcc23e1de6495136bb1428a | 7ade28b343349013ce68a5c89bb7273cf422bd69 | refs/heads/master | 2020-03-22T16:46:26.306035 | 2018-07-09T23:00:33 | 2018-07-09T23:00:33 | 140,350,288 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,335 | py | import random
import curses
s= curses.initscr() #initialize screen
curses.curs_set(0)
sh, sw= s.getmaxyx() #width and height of window
w= curses.newwin(sh,sw,0,0)
w.keypad(1)
w.timeout(100)
snk_x=sw/4
snk_y=sh/2
snake=[
[snk_y,snk_x], #bodyparts of snake
[snk_y, snk_x-1],
[snk_y, snk_x-2]
]
food= [sh//2... | [
"srawlani.30@gmail.com"
] | srawlani.30@gmail.com |
255610234d501625fe610cb167ad316e94a03388 | f901ee260d5cb8ec2d1f295aa9221e58e402dc66 | /gui.py | e9a6f40162be810c3b1ee585cabca3d4b47c49ab | [
"Apache-2.0"
] | permissive | mgp/huger-status-monitor | 3500d1852aeaeb6fd25957eeadbebfd72944c9b8 | 0064a416bd401c9f179558d0b2aa54edd581ee92 | refs/heads/master | 2020-05-24T15:42:10.994685 | 2014-01-16T00:01:11 | 2014-01-16T00:01:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,118 | py | import sys
from PyQt5.QtWidgets import QApplication, QInputDialog, QMainWindow
from collections import deque
from datetime import datetime, timedelta
def _make_hbox(*widgets):
"""Returns an QHBoxLayout with the given widgets."""
hbox = QHBoxLayout()
for widget in widgets:
hbox.addWidget(widget)
... | [
"michael.g.parker@gmail.com"
] | michael.g.parker@gmail.com |
bb5e27e12fcd57aa9ed9dcc922c61ab48228b112 | ca0a353659fa96abb4150417e036e194572911d9 | /agendavenv/bin/django-admin | 7b41f936fb831d4f3a2d4d7044bed3282d4b6c1f | [] | no_license | serleonc/experimento-git | 30b6f4aba6050bc8b987e7e9c036e9a1d9bf714a | ec0222a77ac6717b78a9770779eeb6c06678ddbf | refs/heads/master | 2021-01-12T18:26:36.646484 | 2016-10-19T16:25:59 | 2016-10-19T16:25:59 | 71,377,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | #!/home/aqtiva/Documentos/agendavenv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"serleonc@gmail.com"
] | serleonc@gmail.com | |
97c91dcfae21a4d82f6a3a6dbe04691efd0046d0 | 523c390bef6593b58a99ccbed9dca14bf69da116 | /calc/app.py | d2ac4e093dbecd8933be439bb63a477c42bdce09 | [] | no_license | LLGwinn/flask-greet-calc | 32adf0b050619868f308a3ee1f6075553324d3b2 | 1b9200f02741b818f9c40ec083b0a234d423025a | refs/heads/master | 2023-07-26T05:02:17.171890 | 2021-09-13T22:56:25 | 2021-09-13T22:56:25 | 406,153,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,347 | py | from flask import Flask, request
from operations import add, sub, mult, div
app = Flask(__name__)
@app.route('/add')
def add_nums():
""" Multiply search parameters a, b and return result """
a = int(request.args.get('a'))
b = int(request.args.get('b'))
sum = add(a, b)
return str(sum)
@app.route... | [
"ells.gwinn@gmail.com"
] | ells.gwinn@gmail.com |
742f5ac79f5d96da0a8637746f3ce813ab3367c1 | 3a2999fe1324ee8566f6df7073b3f29006578f78 | /AsyncLine/handler.py | a211c2eae9b2d9b25f42e9ad5b4f4c0537091e11 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Alnyz/AsyncLine | ea168e706131ecf509f7fcdc24828acc458e4579 | e20453cf41afb9861103b67f9d8f33756806df7f | refs/heads/master | 2023-07-16T12:57:18.573907 | 2023-07-10T06:39:39 | 2023-07-10T06:39:39 | 198,466,683 | 1 | 0 | MIT | 2023-07-10T06:39:41 | 2019-07-23T16:16:41 | Python | UTF-8 | Python | false | false | 958 | py | from .filters import Filter
import AsyncLine
class BaseClient:
def add_handler(self, *args, **kwgs):
pass
class Handler:
def __init__(self, callback: callable, filters=None):
self.callback = callback
self.filters = filters
class MessageHandler(Handler):
def __init__(self, callback: callabl... | [
"katro.coplax@gmail.com"
] | katro.coplax@gmail.com |
fd012d58c9ab68256ae74c1857f9758c98a77d18 | a0be30533cbbdc12dba5fdfa8d61088f0845c185 | /src/cost_func.py | e11d792bae6fb9a15eec6d2fe4a12c5aefe2f3a6 | [] | no_license | mmssouza/cbir | 1fbf2a115a799e683d86bd43e85742b8c7a52cef | 372d67c1b16abaa682802fce547f5f028b99fb4a | refs/heads/master | 2021-06-04T07:35:27.468533 | 2017-10-25T13:28:09 | 2017-10-25T13:28:09 | 37,946,123 | 0 | 1 | null | 2017-10-05T12:56:25 | 2015-06-23T21:29:50 | Python | UTF-8 | Python | false | false | 1,225 | py | #!/usr/bin/python
import subprocess
import shlex
import tempfile
import os
dist = "JS"
path = "../datasets/1400_mpeg7/"
def cost_func(args):
args = shlex.split(str(args.tolist()).lstrip('[').rstrip(']'))
args = [a.strip(',') for a in args]
#aii_args = args[0:4]
#curv_args = args[4:8]
#angle_args = args[8:13]
... | [
"marcelo.mssouza@gmail.com"
] | marcelo.mssouza@gmail.com |
2cf9a70811ec72e263f4b6c70a8cc1bbd65c0e75 | 830acb926cc5cf5a12f2045c8497d6f4aa1c2ef2 | /HyperNews Portal/Problems/Limitations/task.py | 4a672123fc6df90e8780fdc4bcd6bac7ef3634d1 | [] | no_license | BuyankinM/JetBrainsAcademyProjects | ca2223875ea4aab3ee7fceedc8e293bdb6e1fdcf | d5f9fcde4298af714960b2755f762141de796694 | refs/heads/main | 2023-02-26T05:47:26.070972 | 2021-02-03T22:10:53 | 2021-02-03T22:10:53 | 335,762,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 77 | py | import math
real_number = float(input())
check = math.isfinite(real_number) | [
"mbuyankin@gmail.com"
] | mbuyankin@gmail.com |
851943613ee8d23464eee2cc06ee144417c8ba6b | d39aebf96919b55d1a2a6b6f33e5514752af8269 | /hspo-kg-builder/data-lifting/mimic/notes_cui_extraction/map_extracted_umls_files.py | 33bd062fdf75be8e851a29da34a2540e18e202dc | [
"Apache-2.0"
] | permissive | IBM/hspo-ontology | 7f4bdb64d7aaad592bbbf31f303a94654536dc3a | 14541ec322a7d7588287da8e20dcc283a88b8b05 | refs/heads/main | 2023-08-30T23:53:37.862110 | 2023-08-30T15:56:33 | 2023-08-30T15:56:33 | 542,597,882 | 31 | 5 | Apache-2.0 | 2022-10-12T12:30:43 | 2022-09-28T13:13:34 | null | UTF-8 | Python | false | false | 1,009 | py | import argparse
import os
from utils_ import find_json_files, read_json, save_json
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument("--umls_codes_path", default=None, type=str, required=True,
help = "The path where the extracted UMLS codes are stored."... | [
"christheodoropoulos42@gmail.com"
] | christheodoropoulos42@gmail.com |
0b13a187ec32ce7aa897761988d4c15a6c652734 | ab3d5ea4bf0e48914ed14fcf16e5b1d752f199ba | /pcg_libraries/src/pcg_gazebo/parsers/sdf/pose.py | c59190b53c6490da0a3566d7aeb02a72a6f5997d | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"CC0-1.0",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-public-domain"
] | permissive | boschresearch/pcg_gazebo_pkgs | 5f1004d0de874d4d1abc4eb695777013027158b2 | 1c112d01847ca4f8da61ce9b273e13d13bc7eb73 | refs/heads/master | 2020-06-11T06:28:36.228431 | 2020-02-07T13:05:28 | 2020-02-07T13:05:28 | 193,876,180 | 44 | 3 | NOASSERTION | 2020-02-07T12:00:55 | 2019-06-26T09:45:05 | Python | UTF-8 | Python | false | false | 2,348 | py | # Copyright (c) 2019 - The Procedural Generation for Gazebo authors
# For information on the respective copyright owner see the NOTICE file
#
# 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
#
#... | [
"Musa.Marcusso@de.bosch.com"
] | Musa.Marcusso@de.bosch.com |
ebebad6c7731a9504ee607513be35017d718188d | 8a5ab3d33e3b653c4c64305d81a85f6a4582d7ac | /PySide/QtCore/QPointF.py | 2c350c353ea530cc837989441679f71325e61e69 | [
"Apache-2.0"
] | permissive | sonictk/python-skeletons | be09526bf490856bb644fed6bf4e801194089f0d | 49bc3fa51aacbc2c7f0c7ab86dfb61eefe02781d | refs/heads/master | 2020-04-06T04:38:01.918589 | 2016-06-09T20:37:43 | 2016-06-09T20:37:43 | 56,334,503 | 0 | 0 | null | 2016-04-15T16:30:42 | 2016-04-15T16:30:42 | null | UTF-8 | Python | false | false | 3,951 | py | # encoding: utf-8
# module PySide.QtCore
# from /corp.blizzard.net/BFD/Deploy/Packages/Published/ThirdParty/Qt4.8.4/2015-05-15.163857/prebuilt/linux_x64_gcc41_python2.7_ucs4/PySide/QtCore.so
# by generator 1.138
# no doc
# no imports
from _Object import _Object
class QPointF(_Object):
# no doc
def isNull(self... | [
"yliangsiew@blizzard.com"
] | yliangsiew@blizzard.com |
2c7e76ed5b0970288bb384219f3ee8396939b802 | 414667ed0107dfaa1c8d72acc4b50ab93e6e4ca9 | /tools/common/screen.py | 387f12e0752d580bc7b0bf870059af13c050a8d1 | [] | no_license | edpro/amp-firmware | c8d6d964f96cb3e13828c1c763ca16e7da987884 | dcae28dc4253bd2faa936cad2380418778fa80de | refs/heads/master | 2022-02-01T19:49:52.416154 | 2021-12-29T11:03:40 | 2021-12-29T11:03:40 | 182,949,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,147 | py | import ctypes
import os
win_console_initialized = False
def scr_init():
global win_console_initialized
if win_console_initialized:
return
# enable ANSI colors in Win10 console
if os.name == "nt":
kernel32 = ctypes.windll.kernel32
kernel32.SetConsoleMode(kernel32.GetStdHandle(-... | [
"canab.ua@gmail.com"
] | canab.ua@gmail.com |
8f70224e0b7fda45a9cd3bef0e6bf6072b8719a3 | 1640efbc4085f4df030ad6d6c5340d2679319437 | /degrees/util.py | fc4af7fd47ed21cbf6b12af2ea483e2a7791dee5 | [] | no_license | neel7202/AI50 | e982582f9a728270e4062aa84d0a215ff9adee58 | 6af1911f398519ad15b0a603b70af332ec1eb627 | refs/heads/main | 2023-08-17T08:50:04.337462 | 2021-09-21T05:13:05 | 2021-09-21T05:13:05 | 408,694,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 910 | py | class Node():
def __init__(self, movie, data, parent):
self.movie = movie
self.data = data
self.parent = parent
class StackFrontier():
def __init__(self):
self.frontier = []
def add(self, node):
self.frontier.append(node)
def contains_state(self, state):
... | [
"noreply@github.com"
] | noreply@github.com |
33b7519144745001acf5c7efd0107fbdde324283 | 6ff33cd108f2e5ff0996580f7ccc0e11bc288564 | /rnn2.py | 0f69a5101bed79dd17cffc15d4108000af9f1ed8 | [] | no_license | Thanagaraj2016/Recurrent-neural-network | 5b9492dfd1eb1a0526a7dda67e041368970fd190 | e0cfe0383f147b85e8187a91d66f83935c878e9d | refs/heads/main | 2023-07-10T20:17:25.054784 | 2021-07-29T01:20:19 | 2021-07-29T01:20:19 | 390,556,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,070 | py |
import pandas as pd
data = pd.read_csv('Senti.csv')
# Keeping only the neccessary columns
data = data[['text','sentiment']]
data = data[data.sentiment != "Neutral"]
data['text'] = data['text'].apply(lambda x: x.lower())
data['text'] = data['text'].apply((lambda x: re.sub('[^a-zA-z0-9\s]','',x)))
for idx,row in data.... | [
"noreply@github.com"
] | noreply@github.com |
293f7a573690bb972f45d9f251ef6e4aeede5f90 | a47a53a9d2da6ac101779e82b4e915dc5c87137c | /youku/youku/mysql_pipeline.py | 427304a0a07aed49dfbbc9f6e7317f1e27504f69 | [] | no_license | xuhaomin/spider | 19cfe17c42f5032bbda63d6992c8fa486bac7bc5 | 57c3f8e71537106b0c9bbdb2041ffa8e8b63a73e | refs/heads/master | 2021-01-19T04:49:50.396945 | 2018-03-28T02:09:39 | 2018-03-28T02:09:39 | 87,399,140 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,356 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
import pymysql
from .settings import *
class youkuPipeline(object):
def __init__(self):
self.conn = pymysql.conn... | [
"xhmgreat@sina.com"
] | xhmgreat@sina.com |
3513e1d9367d0cfc6fceab60b8d91581828f9654 | 4569d707a4942d3451f3bbcfebaa8011cc5a128d | /schedulingtoolsplugin/0.11/trunk/schedulingtools/model.py | c9b2e5b43a4f7235a58ac98e6a57acdf3c6ad85c | [] | no_license | woochica/trachacks | 28749b924c897747faa411876a3739edaed4cff4 | 4fcd4aeba81d734654f5d9ec524218b91d54a0e1 | refs/heads/master | 2021-05-30T02:27:50.209657 | 2013-05-24T17:31:23 | 2013-05-24T17:31:23 | 13,418,837 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,078 | py | # from pysqlite2 import dbapi2 as sqlite
from trac.core import *
try:
import pysqlite2.dbapi2 as sqlite
have_pysqlite = 2
except ImportError:
try:
import sqlite3 as sqlite
have_pysqlite = 2
except ImportError:
try:
import sqlite
have_pysqlite = 1
... | [
"viola@7322e99d-02ea-0310-aa39-e9a107903beb"
] | viola@7322e99d-02ea-0310-aa39-e9a107903beb |
209332580efe025fb4d46261a1772fc630f5f6c4 | 101588fbd9fe43dd4de13db42a4feffbf3a2ace0 | /Flask files/run.py | 5c79ca5b5e87243a37e07b33fb782e5ae62a5b7b | [] | no_license | eudesgsantos/ReTest | 0a9585b4405d49e3c10a7a10efc87a56b46691ff | 66dd53c0159beebf6cb7c4058132190b77ab8a9a | refs/heads/master | 2022-12-16T19:30:34.266522 | 2019-06-27T13:51:03 | 2019-06-27T13:51:03 | 184,690,542 | 3 | 6 | null | 2022-12-08T05:15:50 | 2019-05-03T02:56:21 | HTML | UTF-8 | Python | false | false | 76 | py | from pingsite import app
if __name__ == "__main__":
app.run(debug=True) | [
"cvjso@cesar.school"
] | cvjso@cesar.school |
8bc830421f90192c9d3663b600fc48d9d96980eb | 61bfe506ead460fc3896fd16001ffd1250977fde | /Python/basic_op/src/submodule.py | 63d9d6d8cf4dc4b8e8ce1cf4f76fa79a6aed25fb | [] | no_license | jasonleakey/CrapCodes | 9de63eb033a25dd2e6f288c3e293861d4fabf130 | 8ea109c242356a020c9c9d094f90632b6a7e98af | refs/heads/master | 2021-01-20T06:57:03.907537 | 2013-03-18T05:48:44 | 2013-03-18T05:48:44 | 8,847,779 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,183 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# File name : submodule.py
# Establishment date: 2009-1-21
# Author : jasonleakey
# Copyright (R) 2009 jasonleakey
# <jasonleakey2005@gmail.com>
# <QQ:174481438>
# --------------------------------------------------------------------
# This program ... | [
"yetianhuang.cs@gmail.com"
] | yetianhuang.cs@gmail.com |
fb697cb562885666f1ac01b27f37e56eacaf2b56 | 9b1ad2dcc4e5ee341f68e513954b070d5265be57 | /django/qa/module310/migrations/0001_initial.py | cc27c6a7b8b303e2b688fa47ba8cc79274af986a | [] | no_license | tomkitchen/qa | 453081a32f744cd83371073db17ac3f26a66e6e2 | 7f43ab45cdbc578700cb298ce9a1e17a5912e148 | refs/heads/master | 2020-04-23T02:56:22.395093 | 2019-03-27T09:13:50 | 2019-03-27T09:13:50 | 170,861,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('flashcards', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Module310Card',
fields=... | [
"tomkitchen@Toms-MBP.lan"
] | tomkitchen@Toms-MBP.lan |
d19329ceaa1048a1107204badcf34fb17c7d6788 | 2d3cf4f3b8ea1bfa8690fa72480fe7999494efc6 | /yolo.py | 999b2a66bda3b397f7f8e3079d71640a48ad5646 | [] | no_license | khushbukella/Object-Detection | 07ae963d7194fa7be9dc00de3662226a423a23c5 | 598ff82c2af9c51b5682bec968362a2c80785684 | refs/heads/master | 2021-04-02T03:43:02.286290 | 2020-03-18T13:45:13 | 2020-03-18T13:45:13 | 248,196,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,168 | py | #USAGE
#python yolo.py --image images/baggage_claim.jpg --yolo yolo-coco
# import the necessary packages
import numpy as np
import argparse
import time
import cv2
import os
# construct the argument parse and parse the arguments
ap = argparse.ArgumentParser()
ap.add_argument("-i", "--image", required=True,
help="path... | [
"noreply@github.com"
] | noreply@github.com |
82c61a9738f287ed1685f5069dc74e93b59f453a | a4df5a27c4f2564da80d1b944988b47b04be951a | /www/common/orm.py | a865540bed3ede3bed2653e2e2dc1674ece0a558 | [] | no_license | yanchengdegithub/python3web | 9ede4ca3f31d6936f3db201ff92d5e0acc575d70 | 565fbc69dc9f5939054a6a7ae7a2f6fbf8268180 | refs/heads/master | 2021-08-08T03:35:11.341235 | 2017-11-09T13:51:38 | 2017-11-09T13:51:38 | 104,431,887 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,631 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
__author__ = 'yancheng'
import asyncio, logging
import aiomysql
def log(sql, args=()):
logging.info('SQL: %s ARGS: %s' % (sql, args))
async def create_pool(loop, **kw):
logging.info('create database connection pool...')
global __pool
__po... | [
"yanchengdee@aliyun.com"
] | yanchengdee@aliyun.com |
87f4d49b6166eb3cabd30a9cd22eaf7974bf10d7 | 4b723652507d3d03eb630cc5e72f8d4444719296 | /app/migrations/0023_auto_20190628_0726.py | 8204d935c8b32329d82dc915fc897d73ce4b5a72 | [] | no_license | abinba/sharewood | 00ee57c9c6ce23bfc5679954de755368438fbac0 | 758170090b1383bf9fa6192ccfc48284a056143e | refs/heads/master | 2020-07-09T11:49:29.622054 | 2020-07-02T21:32:30 | 2020-07-02T21:32:30 | 203,961,250 | 1 | 0 | null | 2020-07-02T21:32:31 | 2019-08-23T08:51:35 | Python | UTF-8 | Python | false | false | 688 | py | # Generated by Django 2.2.2 on 2019-06-28 07:26
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('app', '0022_auto_20190627_1728'),
]
operations = [
migrations.AlterField(
... | [
"arcturus5340@gmail.com"
] | arcturus5340@gmail.com |
286590a9fe52b4359057b9360cd7b7a404aa8d70 | fe18994a1880f347d8004383434842286b9dccd3 | /python_stack/flask/flask_fundamentals/Dojo_Survey/server.py | 335aa9e1c425addeaea0b58be5359da8056a3f95 | [] | no_license | Anbousi/Python | 682d5b00555ab3183d06afddb4c5f6e1d5739f6c | 4f05dd8ec62e80a28ca607feae976d9220a62227 | refs/heads/master | 2023-05-06T03:37:28.878915 | 2021-05-30T19:11:28 | 2021-05-30T19:11:28 | 364,501,098 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | from flask import Flask , render_template , request , redirect
app = Flask(__name__)
@app.route('/')
def main():
return render_template('index.html')
@app.route('/result' , methods=['POST'])
def result():
name_form = request.form['name']
location_form = request.form['location']
language_form = request... | [
"anbousi@gmail.com"
] | anbousi@gmail.com |
cdd26c51960b9afdca9e6096e66ea1df910dc336 | bb0de80e3744537dfbb44dc8c1b7c0c84c95d5ac | /model/__init__.py | d2f4494d88e672b32fccd9470469527236f70c26 | [
"Apache-2.0"
] | permissive | MOE-LYON/KLNews | 4b2670c4a39781de2fa3de62dbf13e2e6a65724b | 076a044a72eec08f15c05306fa7d56fcae09dff4 | refs/heads/master | 2022-06-19T21:12:45.531971 | 2020-05-06T00:09:21 | 2020-05-06T00:09:21 | 260,695,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy()
from .category import Category
from .news import News
| [
"wrisboy@gmail.com"
] | wrisboy@gmail.com |
fd9b2b5f03d3dc5bc61de7795ca876950a6683e0 | 7e0393251012e91213dddfd9c93f6b6b73ca2bfe | /tests/unit/test_drizzle_error.py | e7d05e37e25a68aede0c2312672d6c495e350d23 | [
"MIT"
] | permissive | josephhardinee/cloudnetpy | ff4cc0303d7f2ae40f2d3466298257659ff3ccde | c37760db3cdfe62ae769f8090ba621803ec9a92c | refs/heads/master | 2021-03-06T15:37:51.529776 | 2020-02-13T09:05:29 | 2020-02-13T09:05:29 | 246,207,849 | 0 | 0 | MIT | 2020-03-10T04:29:48 | 2020-03-10T04:26:16 | null | UTF-8 | Python | false | false | 3,347 | py | import numpy as np
import numpy.testing as testing
import pytest
from cloudnetpy.products import drizzle_error as de
DRIZZLE_PARAMETERS = {'Do': np.array([[0.0001, 0.01, 0.000001],
[0.001, 0.000001, 0.0001]])}
DRIZZLE_INDICES = {'drizzle': np.array([[1, 1, 1], [1, 1, 1]], dtype=b... | [
"simo.tukiainen@fmi.fi"
] | simo.tukiainen@fmi.fi |
1abc67418dafabbb3f468f4ff08fea5c925b3bde | d86c5aa92a9763510b539776510ad9795d33ae89 | /September 2020/03-Multidimensional-Lists/03-Primary-Diagonal.py | cb353fab20268a1b0cc58deae94420f1b386b6f6 | [
"MIT"
] | permissive | eclipse-ib/Software-University-Professional-Advanced-Module | 42e3bd50ac5f0df8082add29f4113cffb87889e1 | 636385f9e5521840f680644824d725d074b93c9a | refs/heads/main | 2023-02-13T06:02:53.246980 | 2021-01-06T21:12:14 | 2021-01-06T21:12:14 | 306,282,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 767 | py | #Съкратен Вариант с комрехеншън:
size = int(input())
matrix = [
[int(el) for el in input().split()]
for i in range(size)
]
current_sum = sum([matrix[i][i] for i in range(size)])
print(current_sum)
#Вариант с range:
# size = int(input())
#
# matrix = [
# [int(el) for el in input().split()]
# for i in ... | [
"65770519+eclipse-ib@users.noreply.github.com"
] | 65770519+eclipse-ib@users.noreply.github.com |
77dde7595e4cc4aa796bd23875458cd41b251b56 | 7f8d33e4d7e080011825d9b053ca091e4e8a90cd | /blog/admin.py | c5a2cdc9f1df8e177b40bb6e1b203e94c308b21d | [] | no_license | ChristiWilson/portfolio | 216adf5b0a6206fcdf16bc7f9ba2c89972e2322d | 504668a7b9436af87ce8b266c33c08b5229c2c81 | refs/heads/master | 2020-05-16T06:37:29.872337 | 2019-04-24T23:37:01 | 2019-04-24T23:37:01 | 182,852,808 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 351 | py | from django.contrib import admin
from .models import Post, Category, Comment
class PostAdmin(admin.ModelAdmin):
pass
class CategoryAdmin(admin.ModelAdmin):
pass
class CommentAdmin(admin.ModelAdmin):
pass
admin.site.register(Post, PostAdmin)
admin.site.register(Category, CategoryAdmin)
admin.site.reg... | [
"Christi@ChristiWilson.com"
] | Christi@ChristiWilson.com |
ce640e99ab9b4f9311a737f6a8f10585751a2bcf | 3ce592352627591346ea33ea0c2665ad879414e2 | /References/web-scraping/101scrapetest.py | 64aa6f9bfe35ee27d2cbd8684578f2c2e1fafc06 | [
"MIT"
] | permissive | royqh1979/python_libs_usage | 113df732ef106f4a5faae1343493756fd703c8c0 | 57546d5648d8a6b7aca7d7ff9481aa7cd4d8f511 | refs/heads/master | 2021-04-16T18:14:43.835482 | 2021-01-11T03:55:25 | 2021-01-11T03:55:25 | 249,374,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | from urllib.request import urlopen
from bs4 import BeautifulSoup
html = urlopen('http://www.pythonscraping.com/pages/warandpeace.html')
bs = BeautifulSoup(html.read(),'html5lib')
print(bs.h1)
namelist = bs.findAll('span',{'class':'green'})
for name in namelist:
print(name.get_text()) | [
"royqh1979@gmail.com"
] | royqh1979@gmail.com |
1936e2b9dfb941c143b221ae1ef571e2fc8c5abf | 7629cd891d1352455d4ceed3c3b03042e7b3810f | /matplotlib/02.designGraph.py | 67a7d5ab51cc1bfb6bf685ef643ba25a83fce5fe | [] | no_license | mingginew88/study-python | 83962034df94ef44d7c1d09eeed6e9cf8a6918a3 | 5e45005c367ee45c1eb72717807d46568596653a | refs/heads/master | 2023-04-27T10:00:21.484293 | 2021-05-14T00:11:07 | 2021-05-14T00:11:07 | 328,588,027 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,106 | py | import matplotlib.pyplot as plt
#################################################
# 그래프 옵션
# color, marker, linestyle 옵션 사용 가능
# color의 경우 Hex Code 및 색상 이름 사용
# 사용법 (색상 + 마커 + 라인) 순으로 plot() 옵션으로 입력
# 색상 종류 - b(blue), g(green), r(red), c(cyan), m(magenta), y(yello), w(white), k(black) ...
# 마커 종류 - o(circle), .(poi... | [
"seoyoungjun88@gmail.com"
] | seoyoungjun88@gmail.com |
9bfa2e020f3266107c5bc70f347db53f8663b448 | 8a2f35f106cd7b31690a6ca6998c6eea9a0d3fdb | /app.py | 31636d5c3af5fc508ccf7d1f7e013a606f40d4ff | [] | no_license | acserna/Capstone-Cloud | af752d12e17a9f2c35fe094b53909e88d4f83b8f | 6bb4d38b36dd536bab96f94a2e00f8a79a413f0d | refs/heads/master | 2023-04-06T16:08:21.185193 | 2021-04-19T03:26:42 | 2021-04-19T03:26:42 | 358,479,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello World, my name is Andres Camilo Nuevo"
if __name__ == "__main__":
app.run() | [
"andres.c.serna@gmail.com"
] | andres.c.serna@gmail.com |
dbaaec9420ba7a6285a256df2fa7755d3ae9209b | 3363c489c63fe6b0348fd104d7778decc2baf014 | /RayCastingPythonMaze-main/pycastermaze.py | 7ea73377dd703a367fda429dc8a60af57204094c | [
"MIT"
] | permissive | RyanIsCoding2021/RyanIsCoding2021 | 9040dc5c749d29ca0e643cf384390102854e927f | e4ec24d5ec38f27861fed4e73d158be40ae04993 | refs/heads/master | 2023-08-15T00:33:55.640357 | 2021-10-11T17:15:18 | 2021-10-11T17:15:18 | 386,810,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,960 | py | import numpy as np
from matplotlib import pyplot as plt
import keyboard
#random map generator
size = 15
mapa = [[list(np.random.uniform(0, 1, 3))] * size for i in range(size)]
for i in range(size-2):
for j in range(size-2):
if np.random.uniform() > 0.33:
mapa[i+1][j+1] = 0
posx, po... | [
"ryan@Ryans-MacBook-Pro.local"
] | ryan@Ryans-MacBook-Pro.local |
db89b4926bf8f251c68f068747c97003c1c04fbc | cfac0f4f862180baae078bd7656ac41c8f946006 | /Day22/full.py | 53638388312ad69de0807e67cf6732d90355eefc | [] | no_license | RaspiKidd/AoC2017 | bcf4a8c161b48b2b8f89745d6ff5b741f023b5b7 | 2be828462cd5d56e2f8a8f636525359bb4de045e | refs/heads/master | 2021-09-01T20:07:34.228665 | 2017-12-28T14:25:08 | 2017-12-28T14:25:08 | 112,738,515 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,634 | py | def read():
with open("data.txt") as f:
inpt = f.read().splitlines()
offset = len(inpt) // 2
infected = set()
for r, line in enumerate(inpt):
for c, ch in enumerate(line):
if ch == '#':
infected.add((r - offset, c - offset))
return infected
infected = re... | [
"kerry@raspikidd.com"
] | kerry@raspikidd.com |
571860097351a8417fdd22e08e51b2f2e645009c | 095b9710fdaa4d964b99ac836f98182a29004bf7 | /ui_modules/datepicker.py | 1cc5401b0f7cbaf4c416182e875568ff29775019 | [] | no_license | Xeronel/opportunity_tracker | 17920e0155905c1f2c1bc23d9b58e9c2c429cb59 | fbdb637c450dec8f1c6e09cdf3900077b4931fa5 | refs/heads/master | 2021-01-20T05:48:18.820804 | 2017-03-20T19:42:41 | 2017-03-20T19:42:41 | 89,810,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 604 | py | from tornado.web import UIModule
from .util import get_path
class DatePicker(UIModule):
def render(self, name="date", label='Select Date',
classes="col-lg-3 col-md-3", style="",
required=True, readonly=True):
return self.render_string(get_path('datepicker.html'),
... | [
"treische@shealy-solutions.com"
] | treische@shealy-solutions.com |
9aa4a709b2fb9c4126573b81ea202c4b9b894974 | 476439d06825eda08d417e5192fac230cf7c7ba1 | /myapp/models.py | 39797b005ab69f55fd2d6d3954699f1d30b9a1a9 | [] | no_license | moden-py/django_education | 36ee7c41a6cda24f4b622cf26ffcd868ece819c8 | 608cf32f47b4934894b9aa5d5f2ef20edfbbfbc6 | refs/heads/master | 2021-01-10T06:07:15.230112 | 2015-11-11T13:07:00 | 2015-11-11T13:07:00 | 45,917,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49 | py | # from django.db import models
MAIN_USER_ID = 2
| [
"moden.py@yandex.ru"
] | moden.py@yandex.ru |
04483072d03f682fa80d3014d1f0fa2fc7e36601 | 1a1b857c67768f20de0df42a7edb87edd57d9a33 | /Quick_Sort/Quick_Sort_Practice_November_2.py | 1b6901fe97a57dc5b190a20e25f2f70f0af9dfb8 | [] | no_license | LilySu/Python_Practice | 7c7eb30c549239f27680f410d365289b67813c5e | 26767e64742149813ecbc91815454836ffce8b6e | refs/heads/master | 2023-07-29T01:14:19.751490 | 2021-08-15T01:09:41 | 2021-08-15T01:09:41 | 279,446,861 | 1 | 2 | null | 2020-10-09T04:10:40 | 2020-07-14T01:05:55 | Jupyter Notebook | UTF-8 | Python | false | false | 760 | py | def swap(a, b, arr):
arr[a], arr[b] = arr[b], arr[a]
def partition(elements, start, end):
pivot_index = start
pivot = elements[pivot_index]
while start < end:
while start < len(elements) and elements[start] <= pivot:
start += 1
while elements[end] > pivot:
end -=... | [
"LilySu@users.noreply.github.com"
] | LilySu@users.noreply.github.com |
23d719ceebb01cacaa4ea14c9639243a3cce8d14 | 09f5439cd40586e5404ae2eb41399b4c8deb0542 | /core/forms.py | 776eb8ad05a9f3140a3a48d99e7a71842de6ce52 | [] | no_license | citi-onboarding/IntegrarJr | fc7876bfe4494808ef25c00d1996500c97c887b0 | 22f1989adfd5f6942379d373091e80a0d442d667 | refs/heads/deploy | 2022-12-13T08:47:21.517613 | 2018-12-11T00:12:46 | 2018-12-11T00:12:46 | 136,086,659 | 1 | 0 | null | 2022-12-08T01:11:41 | 2018-06-04T21:48:34 | JavaScript | UTF-8 | Python | false | false | 908 | py | from django import forms
class Contato(forms.Form):
comoConheceuOp=(
('Selecione', 'Como conheceu a Integrar?'),
('Redes sociais', 'Redes sociais'),
('Indicação', 'Indicação'),
('Pesquisa', 'Pesquisa'),
('Outros', 'Outros'),
)
nameContato = forms.CharField(label="",... | [
"gas5@cin.ufpe.br"
] | gas5@cin.ufpe.br |
1bb9148ce95fde056cc739590a46fc4e5b644e2b | d99a94729002af2a4fc26ef83388e6e5e4aca877 | /bran/cross_validation/plot.py | e876e0a74dba22db467b3af5efa9cdbbdc1dbe19 | [
"BSD-3-Clause"
] | permissive | KI-labs/BRAN | c12fd364bce12fc5fab0b01cc63798cdfa7b1ff1 | ec6bc8ec63c84224c9d4f028d355be8c895dc725 | refs/heads/master | 2021-10-27T01:28:49.274887 | 2020-02-26T12:48:31 | 2020-02-26T12:48:31 | 210,864,690 | 7 | 1 | null | 2020-02-26T12:48:33 | 2019-09-25T14:24:36 | Python | UTF-8 | Python | false | false | 2,033 | py | import numpy as np
from matplotlib import pyplot as plt
from sklearn.metrics import confusion_matrix
from sklearn.utils.multiclass import unique_labels
def plot_confusion_matrix(y_true, y_pred, classes,
normalize=False,
title=None,
cmap=plt... | [
"s.sathyakumari@kigroup.de"
] | s.sathyakumari@kigroup.de |
0968d72186a5995c5e8612179a024c0364d6d6f3 | 5d4ae2e0cc1835d728ec8da04ac2186f5ecd6402 | /Part1/model.py | 7b49a75e783e96739adf9c09c75e6807623033ca | [
"MIT"
] | permissive | RobCrichton/ToyClimateModel | 25d77849bab57d2f5aa1d4ab7d2cd5a34c82b1f8 | b5f2e7de61aa844f207b938e2faebc03ae925204 | refs/heads/main | 2023-04-13T23:34:40.250881 | 2021-04-29T08:01:22 | 2021-04-29T08:01:22 | 361,738,556 | 0 | 0 | MIT | 2021-04-29T08:01:23 | 2021-04-26T12:17:04 | null | UTF-8 | Python | false | false | 1,058 | py | # model
import numpy as np
import matplotlib.pyplot as plt
import time
t = 0
temperature_planet = 200
dt = 60 * 10
heat_capacity = 1E5
insolation = 1370
sigma = 5.67E-8
planet_radius = 6.4E6
def AreaOfACircle(radius):
return np.pi * radius ** 2
def SurfaceAreaOfASphere(radius):
return 4 * np.pi * radius **... | [
"kryrob@gmail.com"
] | kryrob@gmail.com |
5e39409a4c2f2614414bd07dd991770a07dcd61e | c6ec067c3ee9c2e2f60cf2a0c1cc53b7b1a1f9ff | /genfsm | 5add8e9e778aff5dffe818e5c55ba4bbac23d5c5 | [] | no_license | varungadh/cozmo-tools | 7d1917f3bcf1c4a693397f915162368063212102 | 019aebfe952e22be9bd5215fccad19d8713c6402 | refs/heads/master | 2021-01-25T10:21:27.605314 | 2018-02-26T16:53:29 | 2018-02-26T16:53:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,344 | #!/usr/bin/env python3
"""
Finite State Machine generator for the cozmo_fsm package.
Modeled after the Tekkotsu stateparser tool.
Usage: genfsm [infile.fsm | -] [outfile.py | -]
Use '-' to indicate standard input or standard output. If a
second argument is not supplied, writes to infile.py, or to
standard output i... | [
"dst@cs.cmu.edu"
] | dst@cs.cmu.edu | |
1475f679e11085d7a8cd28fd3cafdd6cc4d78916 | b31567d271c9dfc4041e4f95531028b3f3a704e1 | /Languages/short/itumbuso.py | 90e75f80de5a73859f62cbf6df93b449822816fa | [] | no_license | piantado/NumberSystemsCorpus | e45b194190617deb419bc508c8e7ca4926f36fc8 | f2bc76a6c5b8243e697b6d1284207281cf71925d | refs/heads/master | 2020-12-24T14:10:49.078848 | 2015-03-26T23:17:08 | 2015-03-26T23:17:08 | 16,675,092 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | @article{connellprolegomena1994,
author = {Bruce Connel},
title = {The Lower Cross Languages: A Prologemona to the Classification of the Cross River Languages },
journal = {The Journal of West African Languages},
pages = {43-44},
year = {1994},
localfile = {afr5}
}
f[1] = "k\textepsilo... | [
"spiantado@gmail.com"
] | spiantado@gmail.com |
7f982cc85d4fdd3bb49da9a1c34b8cf4697d13d6 | bbe6d4089bd96189c42ebb0a6a3394ef71bdb58c | /gautamgs@bu.edu_hw1/gautamgs@bu.edu_hw1_1_5.py | f5cc0697fdf2c255ab3a3b5a390c787e8ec01144 | [] | no_license | gautam-ergo/Python-Assignments | c8f314ce0574e81d2b85e7020110a17b652ba1b8 | 0ebd7230e060b3d3c6972aec8648d8716171521c | refs/heads/master | 2020-03-30T02:56:33.695982 | 2019-03-25T15:19:21 | 2019-03-25T15:19:21 | 150,659,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 633 | py | """
CS 521 Information Structures with Python
#########################################
Module - HW 1
Creation Date - 09/18/2018
Student Name - Gautam Gowrishankar
Intent:
Using Python to Perform Mathematical Computations
"""
#For Displaying the current version of Python
import platfo... | [
"arunkumar.vls@gmail.com"
] | arunkumar.vls@gmail.com |
597faaffcc9cf04066be1f5093b42c4a300c83fe | a80f73c8b5f2b807b4ec6d1c5c1c781ba0bfdc3a | /projecteuler/problem_36.py | f7f3be92c181dddd068bda9115ec86cde7f93cc7 | [] | no_license | Himanshu-Mishr/projecteuler | 215d30c1b2742bb2e8f95336db3cdb4799f78680 | 419be91e480c9f29911f3370c443f0abb528f033 | refs/heads/master | 2021-01-13T02:30:24.313301 | 2014-09-07T05:22:39 | 2014-09-07T05:22:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 774 | py | #---------------------------------------------------#
# Title: problem 36 #
# Author: Himanshu Mishra #
# email: himanshu.m786@gmail.com #
#-__________________________________________________#
import time
"""
About the Program :-
p... | [
"himanshu.m786@gmail.com"
] | himanshu.m786@gmail.com |
268724a43ed44dc6ecebf9539dbef83b464927dd | 83b800abbace7e9342b4147032374f449338d93f | /risc_control/src/Vision_controller.py | 72e26dfba69324a1700a9026be5064099d0e5f05 | [] | no_license | rajnikant1010/Public_ARdroneRISC | 8725b364c5de4cd94ad45b57b503d55fc44061f9 | a05bdca63691d89324f925a1c108e10b061b2321 | refs/heads/master | 2021-01-11T15:08:45.716708 | 2017-01-28T17:34:02 | 2017-01-28T17:34:02 | 80,298,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,885 | py | #!/usr/bin/env python
'''======================================================
Created by: Li Yin
Last updated: March 2015
File name: Vision_controller.py
Organization: RISC Lab, Utah State University
Notes: ECE6930 Final Project
=========================================... | [
"raj.drdo@gmail.com"
] | raj.drdo@gmail.com |
fcd2a44ea9a00f0ce40db7edf17b71276a96c6a7 | 6baf51ce6eb5bd033f05995a20357c0d30e3a0ea | /train_mvr.py | c0a0a72dae263d57b14a356679106326cbe91a51 | [] | no_license | wx-b/DSS | e6412caba86c7efd37ac16f169d83cfbb2d53beb | d96260c8c0b926ba2fd43d82eb3e0afd970a046a | refs/heads/master | 2023-03-13T15:22:43.398263 | 2021-03-17T14:43:18 | 2021-03-17T14:43:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,914 | py | import argparse
import time
import numpy as np
import git
import os
import logging
import config
import torch
import torch.optim as optim
from DSS.utils import tolerating_collate
from DSS.misc.checkpoints import CheckpointIO
from DSS.utils.sampler import WeightedSubsetRandomSampler
from DSS import logger_py, set_determ... | [
"yifan.wang@inf.ethz.ch"
] | yifan.wang@inf.ethz.ch |
b2202dbb26af0e9a886cbb59f45bc8e82435f10b | 28ab5ae813a2d3ed5b9af0b2f0a2d1f839cdd806 | /resources/user.py | 8fec4a1869d15c4d495501a7fcc8a04de20bf3ac | [] | no_license | davitamirkhanyan/rest-api-stores | 27b008973aefa929abec96902bd93d15be6e141e | 0e64bf80ba27797a8b1b75ec7152a938a62cd3e1 | refs/heads/master | 2022-10-07T04:20:30.827586 | 2020-06-11T12:16:34 | 2020-06-11T12:16:34 | 271,399,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 856 | py | import sqlite3
from flask_restful import Resource, reqparse
from models.user import UserModel
class UserRegister(Resource):
parser = reqparse.RequestParser()
parser.add_argument('username',
type=str,
required=True,
help="This field cannot be blank."
)
parser.add_argument('pass... | [
"damirkh@synopsys.com"
] | damirkh@synopsys.com |
a9054c017bab08437b04e3685a1cfddade94e6a7 | db9f71a28dd41ab4f2d5c6c1c966416dcdc62ff6 | /deeplearning/sentence_distance.py | bf5fdeb20b6bd3d5cb839303292e88b154adca34 | [] | no_license | ZephyrChenzf/BotHelperOffline | adc06c9118c938c965078725e0033b133fbca0ee | 67ca8ce237e15944bb12d1a0a7d04f934429d780 | refs/heads/master | 2021-04-15T15:16:52.903393 | 2018-03-23T11:35:29 | 2018-03-23T11:35:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,457 | py | # -*- coding: utf-8 -*-
import sys
import numpy as np
import pyemd
from numpy import exp, log, dot, zeros, outer, random, dtype, float32 as REAL,\
double, uint32, seterr, array, uint8, vstack, fromstring, sqrt, newaxis,\
ndarray, empty, sum as np_sum, prod, ones, ascontiguousarray
import cPickle as pickle
# im... | [
"linyimin520812@gmail.com"
] | linyimin520812@gmail.com |
c86ac7ba43b4ac3fc8f414f3d318ea1681e66f51 | 25e6aceace81a2a29aebc8249c11d0f9c1fcafbf | /resourceprovider/controllers/cloudservices.py | b9f27225cadf811b58d8e42927d7cc6e578380b5 | [] | no_license | willholley/flask-azure | e9178f295ded252b4591978be96c3a57631bdfbb | fb35811ddc00ea0b7f0aad42a6a056f4bb57a820 | refs/heads/master | 2021-01-22T02:08:24.436127 | 2013-10-01T21:14:18 | 2013-10-01T21:14:18 | 13,322,133 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | """
TODO: what are the cloudservice controllers?
"""
from resourceprovider.models import CloudService
def get(subscription_id, cloud_service_name):
"""
This happens when a user views details about a purchased Cloud Service.
"""
cs = CloudService()
return cs.get(subscription_id, cloud_service_name)... | [
"garbados@gmail.com"
] | garbados@gmail.com |
84db84fe9a7212dd1cd05e7d7ae4edf9936001a9 | a69cbe2a90650709335f088e8f44719ecb27c5e6 | /K-Means-Clustering/18 - Projeto - Universities.py | 4de574e8aef0e296d6bc0aa08dc284ea30fa84b0 | [] | no_license | diogoaraujogit/MachineLearning | 9dc4864f4f887cb266ad1c2c29b70f9f0ee7aead | 6e921611231e040c87374527f6502bb535a108e0 | refs/heads/master | 2020-07-08T09:39:56.941875 | 2019-08-25T20:00:59 | 2019-08-25T20:00:59 | 203,635,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,311 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
#Dados das universidades
df = pd.read_csv('College_Data',index_col=0)
df.head()
df.info()
df.describe()
#Análise exploratória de dados
sns.set_style('whitegrid')
sns.lmplot('Room.Board','Grad.Rate',data=df, hue='Private',
... | [
"daraujo.augusto@gmail.com"
] | daraujo.augusto@gmail.com |
a7434b6e64c87722607be70db7925fba7466d441 | 4d91f1b06664684c091f77587fd526ee483387f5 | /theta/gridpack/scripts/.svn/text-base/copydeps.py.svn-base | 73796249855d3e0caf1036fdd66bcb3027552d1a | [] | no_license | camclean/ZprimeCombo13TeV | a2a41b4e50d2650e590088c6e95cbe04789f28ee | ebbcb1edb692708b4912b47d28f0e0a3cac28ec6 | refs/heads/master | 2021-01-16T21:15:10.739769 | 2018-11-30T14:15:23 | 2018-11-30T14:15:23 | 62,053,181 | 1 | 3 | null | 2018-05-16T18:38:46 | 2016-06-27T12:03:51 | Makefile | UTF-8 | Python | false | false | 2,209 | #!/usr/bin/env python
# Usage:
# copydeps.py <binary> <target path> <ld path1> <ld path 2> <ld path 3> ...
# copies the shared object the binary depends on to the target path, ignoring any
# libraries which are resolved to the given ld paths, if using these as the LD_LIBRARY_PATH.
import sys, os, os.path, subprocess,... | [
"camclean@ucdavis.edu"
] | camclean@ucdavis.edu | |
d9deda7fe1a28a0cdd3dc2ef0b92d7e750e7a386 | 176ebc25c8f2cd361ca9135fc2c2b1df32386371 | /horizen_code/tools/inference_pyramid_aug.py | 3a0feb3d3085f77a78e4b528d723d1bad47fa739 | [
"MIT"
] | permissive | yangJirui/DOTA-DOAI | a3ba7c0e17ebad69eb24ad373d3ffb74f84b2cb3 | aec4a2085d62a941c1b3f50fc9a452b2c8d3cd9f | refs/heads/master | 2022-02-23T07:42:52.565128 | 2019-04-16T07:05:05 | 2019-04-16T07:05:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,312 | py | # -*- coding:utf-8 -*-
from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
import os, sys
sys.path.append("../")
import cv2
import numpy as np
from timeit import default_timer as timer
import tensorflow as tf
from data.io.image_preprocess import short_side_re... | [
"1192150908@qq.com"
] | 1192150908@qq.com |
2ab9f2f34b31a7152edd0e7524c21dddd1269df8 | 247389d0b916f972297fe3c38d262502a6cfa084 | /morse | ef7bed09c034b15fde12125c089eb665e1695bcd | [] | no_license | reteps/raspi | 2e69fee4eb96e4a43059f3125c79cf577e2b5bb6 | 96771f0525b3ad71c9b13a36de49b599c5769310 | refs/heads/master | 2021-09-28T05:22:32.999241 | 2017-07-26T13:24:51 | 2017-07-26T13:24:51 | 98,200,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,205 | #!/usr/bin/env python3
import RPi.GPIO as GPIO
import pilights, time
def to_morse_code(message):
morseAlphabet ={
"A" : ".-",
"B" : "-...",
"C" : "-.-.",
"D" : "-..",
"E" : ".",
"F" : "..-.",
"G" : "--.",
"H" : "....",
"I" : "..",
"J" :... | [
"peter.a.stenger@gmail.com"
] | peter.a.stenger@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.