blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4c7231a8e14c10703fc26a8640339469a4b4e25f | 8b3bc4efea5663b356acbabec231d1d647891805 | /835/Solution.py | 64c84a730e0de88937de14c75b1eadc26c283e47 | [] | no_license | FawneLu/leetcode | 9a982b97122074d3a8488adec2039b67e709af08 | 03020fb9b721a1c345e32bbe04f9b2189bfc3ac7 | refs/heads/master | 2021-06-18T20:13:34.108057 | 2021-03-03T05:14:13 | 2021-03-03T05:14:13 | 177,454,524 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | ```python
class Solution:
def largestOverlap(self, A: List[List[int]], B: List[List[int]]) -> int:
N=len(A)
LA=[(xi,yi) for xi in range(N) for yi in range(N) if A[xi][yi]]
LB=[(xi,yi) for xi in range(N) for yi in range(N) if B[xi][yi]]
d=collections.Counter([(x1-x2,y1-y2) for (x1,y1)... | [
"tracylu1996@gmail.com"
] | tracylu1996@gmail.com |
3e6fd81d4b9238c22cf01b6edbd2d6b1dcd44b92 | 17886364a482cafdbe376cc96af80bafd824238a | /ci.local | c525088256bf8f92f458386de199f84f76414cc3 | [
"Apache-2.0"
] | permissive | theishshah/xi-editor | 75ed0cbf06e6f255ecfb3625a5d2d0f15c36db93 | bbc7db09fbba2e35cf9e4b970b6d1b3337a95053 | refs/heads/master | 2020-03-29T07:53:04.174730 | 2018-09-19T21:18:01 | 2018-09-20T19:40:40 | 149,683,581 | 0 | 0 | Apache-2.0 | 2018-09-20T23:42:14 | 2018-09-20T23:42:14 | null | UTF-8 | Python | false | false | 1,633 | local | #!/usr/bin/env python
import glob
import os
import signal
import subprocess
import sys
import tempfile
from multiprocessing import cpu_count, Pool
SCRIPT_DIR = os.path.dirname(__file__)
MANIFESTS = [os.path.join(SCRIPT_DIR, "rust", "Cargo.toml")] + glob.glob(os.path.join(SCRIPT_DIR, "rust", "*", "Cargo.toml"))
def ... | [
"vlovich@google.com"
] | vlovich@google.com |
082cf2b3d96dbd75f123de59ed7b96b84bacd95e | f18d14f21c9a06162804751a3fcc01c86e8e3fc8 | /onnx_chainer/functions/activation/leaky_relu.py | e83ff2b91ea2f286788675cbe39170a4101c5085 | [
"MIT"
] | permissive | Hakuyume/onnx-chainer | 8d6cc61a06ada52aba73b3bf526cd16c4e277a15 | 3c46bd692ef38a7c0f45a2a09795d2023364e12b | refs/heads/master | 2020-03-22T05:19:12.619953 | 2018-04-26T04:59:56 | 2018-04-26T05:12:13 | 139,557,461 | 0 | 0 | MIT | 2018-07-03T09:08:18 | 2018-07-03T09:08:17 | null | UTF-8 | Python | false | false | 508 | py | from onnx import helper
from onnx_chainer import mapping
def convert_LeakyReLU(
func, input_names, param_names, parameters, input_tensors):
for i, input_name in enumerate(input_names):
if type(input_name) is not str:
input_names[i] = str(input_name)
layer_name = mapping.operators... | [
"shunta.saito@gmail.com"
] | shunta.saito@gmail.com |
330f23f0483991fcec12cce2a2bc68f2a98d9c82 | 8717bc60344a2efbe731fe236846b7fd403f2b2d | /Loops/loop1.py | d76e2864ea158a083ce66f86180ece21abc1a121 | [] | no_license | intro-programming/Class-Examples | b02413ecf000d76bf51ee81fd93c4a74d590aa97 | 016ee06489b1f6e2d85da7f87fe4fe4fa7e65996 | refs/heads/master | 2020-04-09T15:51:10.074986 | 2018-12-20T02:34:37 | 2018-12-20T02:34:37 | 160,437,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | # Doing something a number of times in a row
for looper in [7,8,2,1]:
print "Hello World" | [
"denris97@gmail.com"
] | denris97@gmail.com |
a7a7dbe76a16863f1314ea9878fc13649cab1508 | 099ca663d2e6c1ddbce550e7e8e90310f084101c | /SkinLesionPrediction/urls.py | 1c2fc06e844e20b2971fed1bd0888d9b19da3523 | [] | no_license | hassan-rehan/skin_lesion_prediction | c3916ed8cffc2fd6bf948b37495964c34b2e65eb | 32cd6c488bfcbcd098838c805721a8a5a06fc7ed | refs/heads/main | 2023-08-18T20:43:49.117903 | 2021-02-21T14:13:14 | 2021-02-21T14:13:14 | 340,915,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,548 | py | """SkinLesionPrediction URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/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... | [
"jutthassan30@gmail.com"
] | jutthassan30@gmail.com |
94a5b614b8befada3ca809196db00f567a8a79b6 | 4dedd946a44ee62ab6a93db76e2ce3bf42deaad1 | /test/turian_crf_with_embeddings/file.py | 28899fd585bb29abe98b03cf69d6588a9a780835 | [] | no_license | lqrz/medical_information_extraction | 5cde8edc7d72a3e597f8ae60307f3b4e7372556b | d092af57ea8d6202acf55fc6204f7ab19b1be030 | refs/heads/master | 2021-03-27T12:02:59.410557 | 2017-03-07T09:47:08 | 2017-03-07T09:47:08 | 53,079,784 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,314 | py | import os.path
import gzip
try:
import bz2
except:
import sys
print >> sys.stderr, "COULD NOT IMPORT bz2 !"
import os, os.path, sys
def myopen(filename, mode="r", bufsize=-1):
"""
open(), detecting .gz and .bz2 file suffixes
"""
filename = os.path.expanduser(filename)
if filename[-3:] =... | [
"lautaro.quiroz@gmail.com"
] | lautaro.quiroz@gmail.com |
4c82162d32b614c2ee03bdacc86b398d7b43afa8 | f35bb610514e0e8cc954303f41d8b675a67c4d12 | /test.py | 11284de57a06b4e03fc90a0823ea8e8f900ac446 | [
"MIT"
] | permissive | pwaller/inf | d9a2aad35c7c8c6f9bdefb38f8d508f21c7e2846 | 2af6d7c33fb33470a6bcd7b555d01618839ff77b | refs/heads/master | 2020-04-12T17:03:47.066841 | 2018-03-12T16:38:42 | 2018-03-12T16:43:46 | 13,465,281 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | # Because infinity needs testing.
from nose.tools import (raises, assert_equal)
import inf
@raises(ZeroDivisionError)
def test_infdiv_zero_zero():
inf.div(0.0, 0.0)
def test_infdiv_normal():
cases = [(1.0, 2.0, 0.5),
(0.0, 2.0, 0.0),
(1, 2, 0.5),
(0, 2, 0.0)]
def ... | [
"peter@scraperwiki.com"
] | peter@scraperwiki.com |
47c1964ce2e1dd26a07d811460d0f7448641d484 | 6181fcd4a266d963a0ee85971768c97922ca77cd | /src/garage/tf/baselines/gaussian_cnn_baseline.py | 20fd54724e8593a6be0dcd34f639c3b50ebd710a | [
"MIT"
] | permissive | rlworkgroup/garage | 5d215bbecb3a4e74b504988d6684a7b04df69a80 | 2d594803636e341660cab0e81343abbe9a325353 | refs/heads/master | 2023-08-21T22:58:49.338034 | 2023-01-04T06:06:27 | 2023-01-04T06:06:27 | 136,846,372 | 1,832 | 363 | MIT | 2023-09-11T11:36:40 | 2018-06-10T21:31:23 | Python | UTF-8 | Python | false | false | 17,048 | py | """A baseline based on a GaussianCNN model."""
import akro
from dowel import tabular
import numpy as np
import tensorflow as tf
from garage import make_optimizer
from garage.experiment import deterministic
from garage.np.baselines.baseline import Baseline
from garage.tf import compile_function
from garage.tf.baselines... | [
"noreply@github.com"
] | rlworkgroup.noreply@github.com |
fc9711a5c699b94b2817448ca4cf6bcf6a65e04f | 5a376385688d7b8d98a04a4d18ac865d18950393 | /eurobot_sim/scripts/stm_node_secondary.py | 2622d0671782c55513aefde2c6b424f4db6995c4 | [] | no_license | akpp213/ros-eurobot-2018 | 66d50ce99e2ab943c21e105519e4375e160bdea2 | 2c64fe607e2e912cfbf9ab26e81c3c8d8baad01c | refs/heads/master | 2020-03-19T06:48:40.524813 | 2018-07-10T09:42:16 | 2018-07-10T09:42:16 | 136,057,327 | 0 | 0 | null | 2018-07-03T14:34:19 | 2018-06-04T17:02:30 | Python | UTF-8 | Python | false | false | 7,504 | py | #!/usr/bin/env python
import rospy
from std_msgs.msg import String
import numpy as np
import tf
from nav_msgs.msg import Odometry
from geometry_msgs.msg import Twist
class stm_node_secondary():
def __init__(self):
# ROS
rospy.init_node('stm_node_secondary', anonymous=True)
rospy.Subscriber... | [
"knapping@mit.edu"
] | knapping@mit.edu |
97643dcf7a8ea11bd4c4a65ddf0fd23e7f4c0fc3 | 1d690d72ad7465c1a90cf0fb4d8d4b67d9a35a8b | /Writer.py | 3cd1ae98ee2d4635c486b33eb0967440537bb7e5 | [] | no_license | AlphaBetaGamma96/LogHarmonicNet | ee57f907d14613f59b654215a25658c7679c26f9 | 98d177cf9ce83e2396f428cb5ae914df7a6bd0a8 | refs/heads/main | 2023-04-12T23:03:24.322794 | 2021-04-02T14:31:59 | 2021-04-02T14:31:59 | 353,356,190 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 757 | py | import pandas as pd
class WriteToFile(object):
"""
Class to write a dict to a Pandas' dataframe and saved to a .csv
"""
def __init__(self, load, filename):
self.dataframe=None
if(isinstance(load, str)):
self._load(load)
self._filename=filename
def _load(self, filepath):
self.dat... | [
"jameswtkeeble@gmail.com"
] | jameswtkeeble@gmail.com |
4a868e656d4c079a39cb55f5a666878a4b75f71d | 4f92cc4e6072017909e4bb362e98f3bb85460952 | /python/src/print_to_pmod.py | ee8657d9057772783060c828bbd9007fd706435f | [] | no_license | wscotten/Actioniks | 7b3c0f851ee265e2c7b5458d7e14269604e93366 | d6f19906d8a47f37a9466f3dbf0a6dab163ec351 | refs/heads/master | 2020-12-02T11:33:39.008433 | 2017-06-07T07:40:29 | 2017-06-07T07:40:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | from pynq import Overlay
from pynq.iop import Pmod_OLED
from pynq.iop import PMODA
from pynq.board import Button
import time
ol = Overlay("base.bit")
ol.download()
pmod_oled = Pmod_OLED(PMODA)
def print_to_pmod_solution(solution):
for i in range(len(solution)):
pmod_oled.clear()
pmod_oled.write(sol... | [
"wscotten@uci.edu"
] | wscotten@uci.edu |
5d83e02d2dd7ddd993c793737d4b12113fe040b4 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /FnyAGdwgcH4whynjR_20.py | b54ebb927a0a13a75b73876e6a6c573f4cdb22ca | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py |
from itertools import *
def get_subsets(lst, n):
comb = []
for i in range(1, len(lst) + 1):
comb.append(list([list(x) for x in combinations([x for x in range(len(lst))], i)]))
return [[lst[i] for i in j] for k in comb for j in k if sum([lst[i] for i in j]) == n]
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
4226a49e6e67734940640f9964357c2e25d2691e | 62d55e4ea01c9475b77a4ba3a78d5c9b39f78419 | /algorithms/popularity.py | 35717ec957923dc43d0ab56b7591c2fbd0fa7130 | [] | no_license | hangvane/serviceCachingEdge | d942a55a711d6afb3fdc5e870b360e7954fe10bd | 3e0d3e4112544f32cbda8b5e686cee5b99432a76 | refs/heads/main | 2023-03-28T18:46:09.853927 | 2021-03-31T02:15:04 | 2021-03-31T02:15:04 | 353,171,421 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,564 | py | import config.config_sys as cfg_sys
from algorithms.utils import totalCost
from code_utils.utils import getLogger, shutdown
logger = getLogger()
def alg(userSet, dcSet, nodeSet, edgeList, serviceSet, delayMat, budget):
"""
return assignment: {
reqName: locationIp
}
"""
logger... | [
"noreply@github.com"
] | hangvane.noreply@github.com |
df863b036a7ff71d6894898a8b9e3248ceec66cf | 1dec956d45cb832e6194f4427a95e07f7b33149c | /deep_nets/keras/feature_extract_mobilenet.py | 9513361a265d410f467d349c150a113cefd0a0e5 | [] | no_license | pawanon61/extract-features | 8b41646e1d1713d36858e0b327adeb86084ab332 | 8d5da22ad1e7ee292a5efbc3925af8be6441aca7 | refs/heads/master | 2021-01-01T20:43:27.927215 | 2017-07-31T19:18:30 | 2017-07-31T19:18:30 | 98,918,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,959 | py | from keras.applications.mobilenet import MobileNet
from keras.preprocessing import image_new
from keras.applications.mobilenet import preprocess_input
from keras.models import Model
import tensorflow as tf
import numpy as np
import sys, os
from tqdm import tqdm
import scipy.misc
sys.path.insert(0, '/braintree/home/pga... | [
"noreply@github.com"
] | pawanon61.noreply@github.com |
50759067858d9935dbdf8bd8cce1c9eaa02479d5 | 52ff7e90f6991a25fb0d6d34bf74e3d4e6ba8050 | /Tasks/t_5_3.py | ef9536b5f9baaa13333090378964fdb8e2eabb00 | [] | no_license | eugenmorok/egm001 | 73d03e6113457b6e8d9a413c9e754725fdc24ac4 | 3280510c6706b05a29c88105eda770dfe459d461 | refs/heads/master | 2023-01-15T10:15:40.736583 | 2020-11-10T10:16:45 | 2020-11-10T10:16:45 | 259,863,219 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | n = 9
for i in range(1, n + 1):
for j in range(1, i + 1):
print(j, end="")
print()
| [
"64523467+eugenmorok@users.noreply.github.com"
] | 64523467+eugenmorok@users.noreply.github.com |
a1066204a1c376f77d4902f78fa503b027b7ff04 | 1713f42943617e5153ba339ef99e2ea913b40c77 | /main.py | 05954943f279122ff8d8b2ee4c3f23be6ddc263b | [] | no_license | BusyBoBo/laoba | ead69fac62b8d9f325999e09e73f5150f49607e4 | be6ca5c3bbe0377e4fca8e397a2d0c7fb8c69ab8 | refs/heads/master | 2021-05-06T03:22:25.313297 | 2017-12-19T01:40:08 | 2017-12-19T01:40:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | # #coding:utf-8
import sys
import logging
from PyQt4 import QtGui
from myutil.MainWindow import MainWindow
from myutil.MyLogUtil import MyLogUtil
if __name__ == '__main__':
MyLogUtil.init_logging()
try:
app = QtGui.QApplication(sys.argv)
MainWindow()
sys.exit(app.exec_())
except ... | [
"xihuanjianguo@gmail.com"
] | xihuanjianguo@gmail.com |
5f1eac55f319e241a1503b5bdedd4f2be24610c4 | 4e9520ecd9d976b3673827003cc16e5b41077b15 | /ThaiVectors/datasets/constants.py | b1f9ad7a57424edebdd19621d122068ce34bc825 | [] | no_license | sathachao/elm-for-thai-nlp | 37f4304529e2e970f467b8b8ec2cbf4c7a485525 | 31511d0e362456ca7bef5a187df8f735306e62ef | refs/heads/master | 2020-03-24T23:53:11.371245 | 2017-04-24T14:56:53 | 2017-04-24T14:56:53 | 143,158,673 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33 | py | NEW_LINE = "<NL>"
BLANK = "<BL>"
| [
"sathachao@gmail.com"
] | sathachao@gmail.com |
64deaf96035529aa07486d03f970d0b8fa49cf54 | 6c86a607dd1fc3c66213f13fe237b5c95942163f | /Documents/main.py | 9429123b088cd35e93b139666ad1cd8ba5f664fe | [] | no_license | miusan00/stc | 8d6cdf9446c3305bf39efc31dcab8ee48626e4a9 | 42c6ef22ddd67c42c317f14ac4cce6267e0a6500 | refs/heads/master | 2020-04-06T09:15:29.962113 | 2018-11-20T07:01:03 | 2018-11-20T07:01:03 | 157,334,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | ReplyEndpoint ='https://api.line.me/v2/bot/message/reply'
def reply_text(reply_token,text):
header={
"Content-Type": "application/json",
"Authorization": "Bearer{ENTER_ACCESS_TOKEN}"
}
payload = {
"replyToken":reply_token,
"message":[
... | [
"haruki19990615@gmail.com"
] | haruki19990615@gmail.com |
58f49bd7654563565a044d29af1655320a91297b | 3c7a3b244df064e4bfe871a13851e358de98f85e | /System/Structures/Graphs/Graph.py | 4907c26884fffa78d5b39fb9c7939f846cc0ef5d | [] | no_license | AalizzweII/Autoit-Obfuscator | 85bec29a4e3d5dcff26d79ef152f234ad85e6873 | 3d5e88834708821458a811f5d3aa1922402e594e | refs/heads/master | 2021-06-05T21:41:33.718119 | 2016-09-14T13:24:49 | 2016-09-14T13:24:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from Vertex import Vertex
class Graph:
def __init__(self):
self.vert_dict = {}
self.num_vertices = 0
def __iter__(self):
return iter(self.vert_dict.values())
def add_vertex(self, node):
self.num_vertices = self.num_vertic... | [
"jogonba2@inf.upv.es"
] | jogonba2@inf.upv.es |
c387e3b8c8a59eac91ba03e36e1f53c8e0e6dd7c | 082c6d8f248257c8442bbef7412f9915ac4c33bd | /mlrun/projects/pipelines.py | 0e464f7e8a422a342ccda4a4a42acdcbdb947b4d | [
"Apache-2.0"
] | permissive | eran-nussbaum/mlrun | 24e7db989b4eb03548f127ff26d36f77b1c82250 | 97209b27ccf3daf8f202a1a2bb1b01abd537ad70 | refs/heads/master | 2023-08-26T01:35:02.797712 | 2021-10-21T10:18:24 | 2021-10-21T10:18:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,933 | py | # Copyright 2018 Iguazio
#
# 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, softwa... | [
"noreply@github.com"
] | eran-nussbaum.noreply@github.com |
6ce2ccada352505e599aa287935709208778fe9e | 96f3701c13d1f4b6d1ee4b71962bd8f12d861db0 | /platform.py | 5862c78dbc16a72c2deb22ac5bc815fd9bed499d | [] | no_license | m00n33r/DoodleJump_PyGame | b64e6fd7ae74f07c8eaa42fe03f11ee38f854be5 | aaa606d5bbee8c1aca40cec6f2332e3422ceb999 | refs/heads/master | 2023-02-26T03:00:30.872228 | 2021-01-26T18:12:33 | 2021-01-26T18:12:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,148 | py | from config import *
from load_image import load_image
from random import choice
class Platform(pygame.sprite.Sprite):
"""Класс платформ"""
# Инициализация изображения
platform_img = pygame.transform.scale(load_image('game\\platform.png'), (59, 17))
def __init__(self, group, x, y):
super()._... | [
"muyio0905@gmail.com"
] | muyio0905@gmail.com |
f25c8db4101f29619cb8f07900669ba1c024a289 | 1c17aaf0f96c2ba2e2eaf6b552017fb1393a5eaf | /day_1/015.py | 976ea6ac2d148af443f51e875b7a4b88e4d70271 | [] | no_license | ljwon0312/academy_python | b5372387ce317f487e7b498f5f875058661878d3 | b87c3ba38616f3785a1ba587472a3407e113d57a | refs/heads/master | 2020-06-17T03:33:29.989733 | 2019-07-10T07:53:31 | 2019-07-10T07:53:31 | 195,782,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 78 | py | import sys
print('\"{0}\" is the thing you entered.'.format(sys.argv[1]))
| [
"jjww-0312@naver.com"
] | jjww-0312@naver.com |
2f33ffe4057054e28387dce8d78b3eda992a6bb3 | 04803c70bb97012b7d500a177ac0240fb2ddbe38 | /3heptane_pdep/pdep/network487_1.py | 3254df27bf284aa0be30602446ec71249f452594 | [] | no_license | shenghuiqin/chpd | 735e0415f6688d88579fc935459c1b0f53596d1d | 396ba54629036e3f2be0b3fabe09b78c90d56939 | refs/heads/master | 2023-03-01T23:29:02.118150 | 2019-10-05T04:02:23 | 2019-10-05T04:02:23 | 192,084,217 | 0 | 0 | null | 2019-06-18T18:33:13 | 2019-06-15T13:52:28 | HTML | UTF-8 | Python | false | false | 38,878 | py | species(
label = 'C=[C]OC[CH]C(698)',
structure = SMILES('C=[C]OC[CH]C'),
E0 = (230.359,'kJ/mol'),
modes = [
HarmonicOscillator(frequencies=([1685,370,2750,2850,1437.5,1250,1305,750,350,2950,3100,1380,975,1025,1650,2750,2800,2850,1350,1500,750,1050,1375,1000,3025,407.5,1350,352.5,458.08,458.185,... | [
"qin.she@husky.neu.edu"
] | qin.she@husky.neu.edu |
dd1155253217fcb07f905b3d55b98b634de3a0e6 | 3ba81dd28f6f94fd01c92cda2ea03681cb265adb | /apps/chat_app/models.py | 073445666b2537eb62cd9287e66eab5065b66011 | [] | no_license | zhongweili2010/chattychat | a87e5b890c2e93ae266bf2e78e904c5c261060f6 | 2ba900032250304551dcab2c3e3a2a0be0cff99b | refs/heads/master | 2022-12-12T23:12:19.139605 | 2019-07-12T18:54:27 | 2019-07-12T18:54:27 | 183,483,396 | 0 | 1 | null | 2022-12-08T05:52:08 | 2019-04-25T17:49:39 | HTML | UTF-8 | Python | false | false | 1,185 | py | from django.db import models
from ..user_app.models import User
class Message(models.Model):
content=models.TextField()
created_at=models.DateTimeField(auto_now_add=True)
updated_at=models.DateTimeField(auto_now=True)
sender=models.ForeignKey(User,on_delete=models.SET_NULL,null=True,related_name='messa... | [
"zhongweili2010@gmail.com"
] | zhongweili2010@gmail.com |
298f726e82b6f397afccd86fed437e725ace18e8 | 78fd03f8c59b27133d46bcfc923df57f24b41081 | /oop/clase1.py | 5678658b10cf09d0d36b839f5cbda143258a3e39 | [] | no_license | Jhongesell/curso-python-igp | f7595f4093a935b02d53ee08aaf6bc0ad47a30c1 | 7519cf716fd6d45d7519be6c5f3a44b8f77b1869 | refs/heads/master | 2020-04-12T20:23:56.620484 | 2015-12-11T02:57:06 | 2015-12-11T02:57:06 | 162,734,898 | 1 | 0 | null | 2018-12-21T16:22:10 | 2018-12-21T16:22:09 | null | UTF-8 | Python | false | false | 661 | py | # -*- coding: utf8 -*-
class Alumno0():
pass
class Alumno(object):
pass
class Alumno2(object):
nombre = 'Juan'
def saludar(self):
print "Hola, me llamo %s" % self.nombre
class Alumno3(object):
def __init__(self, n, a):
self.nombre = nombre
self.apellido = apellido
cla... | [
"antonio@ognio.com"
] | antonio@ognio.com |
4db4f4bde2cf7a0b91998d8f3928490c5685df1b | 5ba1d5958e16898153fc9a11e3d880131a0be81e | /app.py | 34ed4b296a024bc6f6fe55138e0d01d84f6d8f08 | [] | no_license | KeiSoto/Profeco | 0c2f7c980966629633043b88afb3164b2fb87ada | d8b9113a38d582c7353554ecc8bdf93b2a1e215c | refs/heads/master | 2020-12-10T03:58:34.809473 | 2016-11-11T18:24:16 | 2016-11-11T18:24:16 | 73,501,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | # -*- coding: utf-8 -*-
import web
import json
render = web.template.render("views/")
urls = (
"/index(.*)", "index"
)
class index:
def GET(self, data_list):
with open('200datos.json', 'r') as file:
data_list = json.load(file)
return render.index(data_list['results'])
if __na... | [
"keila soto"
] | keila soto |
01d0ed786036fa64499469ddced51bd6acd03276 | a9e77635cba311cc2f94902aae34b7112260d40b | /src/py_ask_sdk_test/validators/speech_validator.py | b0fd9cb907ef5945bc25eb462c963a1b87b3e2bd | [
"MIT"
] | permissive | utmostzl/py_ask_sdk_test | 3e4a0bdb7cc1b5c5ab5d47091d012d11f481f1a5 | 9ec432ca5992e1ec09d6657e2392ec17092ee8c6 | refs/heads/master | 2022-11-14T10:48:25.690789 | 2019-11-04T19:08:12 | 2019-11-04T19:08:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,479 | py | import re
from py_ask_sdk_test.validators.abstract_response_validator import AbstractResponseValidator
class SpeechValidator(AbstractResponseValidator):
"""
Validator against expected speech and repromt
"""
def validate(self, test_item, response):
"""
Validates the given response for... | [
"jonathan.loos@web.de"
] | jonathan.loos@web.de |
9ae75a368a4da72828b2e0c960271d481cc2e07d | 4103722ef93b4567c7fcc4c152c8295428109c68 | /bapsflib/_hdf/maps/digitizers/tests/test_map_digis.py | d4f370cf9b03e30466e84cf790bda7603fb1307e | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | StanczakDominik/bapsflib | 46d3b5caf3296116987d93d58df40f3fa7d19410 | a14e372eb1558cb6f4fe378b043ec05215e6f5f9 | refs/heads/master | 2023-04-11T05:02:07.690574 | 2020-09-15T00:20:32 | 2020-09-15T00:20:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,194 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# This file is part of the bapsflib package, a Python toolkit for the
# BaPSF group at UCLA.
#
# http://plasma.physics.ucla.edu/
#
# Copyright 2017-2018 Erik T. Everson and contributors
#
# License: Standard 3-clause BSD; see "LICENSES/LICENSE.txt" for full
# license t... | [
"eteverson@gmail.com"
] | eteverson@gmail.com |
0c458fbfc43deedc1ff6cacc0268e0fbb085ec90 | 79eadcf837fe233e7902c9793dcc4fc1f84c9e52 | /TP6_modules.py | 36cdd3ff57874303712cb4a194fbdb22f528fe8e | [] | no_license | Fabezio/py_start | 6c6123aa099b95ce6917c097cebf497a83477d49 | 45bfadf4996db1b7bf43842f927341a592fe932d | refs/heads/main | 2023-02-24T02:41:30.534416 | 2021-01-27T12:35:27 | 2021-01-27T12:35:27 | 333,363,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37 | py | import glob
print(glob.glob("*.py")) | [
"fabezio@outlook.fr"
] | fabezio@outlook.fr |
85a7f50676e8c253aa893c4e83e0316368bd6b80 | 10a59cf4987b300b2e13c74cf35c3d8e8f7c0527 | /kw_webapp/tests/views/test_level.py | 9e9c030b61a084da3ca62de89da8d6da68de6dfc | [] | no_license | ddaws/kw-backend | 25e7fbc3b6a9d0243e58e2345810a9056cfea245 | e03d2cc0b0cc7c12ef05c78ed51eb9995c08dc90 | refs/heads/master | 2020-03-23T14:56:05.584806 | 2018-07-10T00:10:23 | 2018-07-10T00:10:23 | 141,709,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,449 | py | from unittest import mock
from rest_framework.reverse import reverse
from rest_framework.test import APITestCase
from kw_webapp.models import Level
from kw_webapp.tests.utils import setupTestFixture
from kw_webapp.utils import one_time_orphaned_level_clear
class TestLevel(APITestCase):
def setUp(self):
... | [
"noreply@github.com"
] | ddaws.noreply@github.com |
3cbdccfeb61342f5ebfdb47f21713cc8f78809ee | cdad738a7085a997b5349a94aedb4db8da78da8f | /CumulantAnalysis/test/crab/crab.py | 651feaa7a95127ab9744a9310a2c606677463214 | [
"MIT"
] | permissive | tuos/DirectLoopAnalysis | 4851d122d4723e498705c1d2cb100cbf3eda8d43 | 6f5f02538454d2240d0232665b9b17d07eb79854 | refs/heads/master | 2020-06-12T22:24:01.081755 | 2020-01-21T17:49:37 | 2020-01-21T17:49:37 | 194,446,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 893 | py | from CRABClient.UserUtilities import config, getUsernameFromSiteDB
config = config()
config.General.requestName = 'PYTHIA8_gap08v4_OCT13TeV500M'
config.General.workArea = 'project_PYTHIA8_gap08v4_OCT13TeV500M'
config.General.transferOutputs = True
config.General.transferLogs = False
config.JobType.pluginName = 'Analy... | [
"shengquan.tuo@cern.ch"
] | shengquan.tuo@cern.ch |
432d3160831f7f926b41f2dc0dd647e4bf5b83c3 | fa25ba0783d1ebb489b2a2c320295a1e1d3e34ba | /hellowTensorFlow/ch_test_with_tensorflow.py | f6729900e912f137a70fc39b9c6a4bd0f86d419a | [] | no_license | chenzhe3701/PWD | 103649ad4da866d168c3b7f44f2216eb6a30088d | e9e6f3e58606159895e5e3080bfb187ee5cb6c77 | refs/heads/master | 2021-11-15T20:24:26.445504 | 2021-09-23T21:40:35 | 2021-09-23T21:40:35 | 114,500,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | import tensorflow as tf
import numpy as np
mat = np.matrix([[1., 2], [3, 4]])
t = tf.nn.softmax(mat, 1)
sess = tf.InteractiveSession()
print(sess.run(t))
t.eval() | [
"chenzhezju@gmail.com"
] | chenzhezju@gmail.com |
70ff2b7a43aa1a4f7e7950ec9730b1ec544751da | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/perf/test_long_cycles_nbrows_cycle_length_21000_440.py | 6c61e0872dee66a3d086ba51c5d757e29cca171a | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 89 | py | import tests.perf.test_cycles_full_long_long as gen
gen.test_nbrows_cycle(21000 , 440)
| [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
7cc1316df32fd28ca111f58b906a3e70cd026c40 | 708e6a5d97c5f8d1519852bc6866612b587a234c | /LevelModel/mobile_model2.py | c36d70055643b6e7aab46ee7b5bbe1ff0bea32e6 | [] | no_license | younglalala/handwrite_TOF | e3638ec1e1072e620d4916fd41a4815c25e5026c | 8afde14d8073038c0c62dfe8576cbdc3c5e8c06a | refs/heads/master | 2020-04-10T04:40:15.436265 | 2019-01-17T05:37:04 | 2019-01-17T05:37:04 | 160,805,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,105 | py | import tensorflow as tf
import numpy as np
from scipy import misc
import matplotlib.pyplot as plt
from LevelModel.train_sample import *
from LevelModel.test_sample import *
import tempfile
import subprocess
tf.contrib.lite.tempfile = tempfile
tf.contrib.lite.subprocess = subprocess
from box_model.one_hott import one... | [
"1428867223@qq.com"
] | 1428867223@qq.com |
cd6cdfe1a60ef95bdd7224edfda4e62ba8d8413c | 19585a907ab1e1dafb00e53cce4f1803e805f4a6 | /src/ai/connect4/c4_state.py | ca2ca00d9b3ca436cd78e2f6d97d232af6822438 | [] | no_license | Angeall/pyConnect4NAO | 00ad27370746f36480b42cb49690ce6d3dadfece | 700d84b0cde2cb8e3e7d5ff2c5ca7858679b4e8d | refs/heads/master | 2020-12-01T11:38:46.776337 | 2018-09-02T12:41:57 | 2018-09-02T12:41:57 | 43,453,113 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,742 | py | import numpy as np
import disc
from utils.ai.game_state import GameState
__author__ = 'Anthony Rouneau'
class C4State(GameState):
"""
Represents a Conect 4 state, with the positions of the played discs and the next color to play.
"""
def __init__(self, _next_color=disc.RED, copied_state=None):
... | [
"angeal1105@gmail.com"
] | angeal1105@gmail.com |
b56d3d0b6224b8807bca8490a1261a9d66b66571 | c133aefa3b7a0c4988cbe80703aaf310f14e126b | /busdata1.py | 187a8107b91959990e47f0c047f8fddef78aadc0 | [] | no_license | tej1996nitrr/LiveBus-Map | 624192dcfba52400be952e9eefe0d0bd3ce18674 | b73f01900edfa95c18c8667b5828075c4c5f3285 | refs/heads/master | 2022-06-29T16:46:37.106810 | 2020-05-11T15:37:25 | 2020-05-11T15:37:25 | 263,058,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,181 | py |
from pykafka import KafkaClient
import json
import uuid
from datetime import datetime
import time
client = KafkaClient(hosts="localhost:9092")
topic = client.topics['geoData']
producer = topic.get_sync_producer()
with open('data/bus1.json') as f:
data = json.load(f)
coordinates = data['features'][0]['geometry']... | [
"tejaskanikdaley1996@gmail.com"
] | tejaskanikdaley1996@gmail.com |
81003b8f530c2ccbbf5340af444d48c5e9365bfe | 8872b6448a660137a1b01e4e662554bc28aef81c | /setup.py | 35c706354527c88a751d7cd8a81f031c3fd6d40e | [
"MIT"
] | permissive | honzajavorek/tit | 3c40276ffbfb512b4feaf6c744581e534fcb901b | 57445ffc45b8a76e1227ec86438fd682d57e9da3 | refs/heads/master | 2021-01-10T10:04:05.865940 | 2016-01-28T15:18:27 | 2016-01-28T15:18:27 | 50,044,425 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 962 | py |
from setuptools import setup
def readme():
with open('README.rst') as f:
return f.read()
setup(
name='tit',
description='Better titulky.com search',
long_description=readme(),
version='0.0.3',
url='http://github.com/honzajavorek/tit',
author='Honza Javorek',
author_email='ma... | [
"mail@honzajavorek.cz"
] | mail@honzajavorek.cz |
451cf5b762ff80c500db8f9a27811fedd6610a49 | 2a3e908bf532750a1d2af7a4eb69a45e5ee1ce54 | /main.py | 09a6d4112745809c00359f53dd926ed43c705cd2 | [] | no_license | S-Newcomb/Chess | 03ae659b124e44bbab69f0d78f9c1720c3a235d7 | 547112000f78682cbf1f91470d0515bcb5226746 | refs/heads/main | 2023-02-18T00:59:18.885577 | 2021-01-20T04:52:46 | 2021-01-20T04:52:46 | 326,856,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,987 | py | #Hopefully a fully working chess game built from scratch in python
import random
#Returns whether int1 and int2 are both positive or negative
def samePolarity(int1, int2):
if int1 > 0:
if int2 > 0:
return True
if int1 < 0:
if int2 < 0:
return True
return False
#Ret... | [
"stephen@newcombnet.com"
] | stephen@newcombnet.com |
6dda590fd31be17f57b17fb5c28c7e0bb50f245f | fa50869bb134a32fc2b7910900e4a76ab411530a | /onlineshoppingwebsite/shop/models.py | bb5d4c30c5c144e497dc21bd56a6a4bc8d9833d7 | [] | no_license | Rahul2706/Shopping-Cart | 9822bc91e86d5930e0769a75f83caf3517b1a2c3 | 33707378443a4aa2c8b1e0a147ad0b1f938faf4d | refs/heads/master | 2022-12-07T09:20:26.254857 | 2020-08-11T13:20:10 | 2020-08-11T13:20:10 | 286,726,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,653 | py | from django.db import models
class Product(models.Model):
product_id = models.AutoField
product_name = models.CharField(max_length=50)
category = models.CharField(max_length=50,default="")
subcategory = models.CharField(max_length=50,default="")
price = models.IntegerField(default=0)
desc = mod... | [
"51708827+Rahul2706@users.noreply.github.com"
] | 51708827+Rahul2706@users.noreply.github.com |
8a8ae1f5a51641cfd46a1edfbdc8e068dba546e3 | dddaa0b722e7ff191224ae3b212d1774babf8d79 | /App.py | c0e11e6bfa54c835f7f0d9ee429a2ca1933c1db3 | [
"MIT"
] | permissive | furukawaTakumi/SnakeGameByPython | 7312f9ce0a907f128f4fd1e36d18affdd1705d4f | 4fe768f524ef5b657ed2716db41f1af7abc79771 | refs/heads/master | 2020-08-12T17:22:48.503680 | 2019-11-27T10:46:13 | 2019-11-27T10:46:13 | 214,808,333 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,128 | py | import pyxel
from screen.ScreenCreator import CreateStartScreen
from screen.ScreenCreator import CreateGameOverScreen
from GameStatus import GameStatus
from game_contents.GameController import GameController
resourse_path = "assets/course.pyxres"
class App:
def __init__(self):
pyxel.init(130, 90,border_wi... | [
"black3moon88@gmail.com"
] | black3moon88@gmail.com |
76cb125716e94cf19110dbb8f86729e290579884 | 85d0f57a25d94d0fe0842958da75187bee2957a1 | /boto-2.8.0/boto/s3/key.py | cf8a092f15c0b87c4b3e722cd0d1c3f5e5f8d2d5 | [] | no_license | bopopescu/Boto-4 | 06c7f070cd57b775061654dab400f2c4a48119e7 | 8152d03878bd324c4d2c6523ac3f257678465c56 | refs/heads/master | 2022-11-24T19:24:43.687681 | 2013-04-09T08:16:34 | 2013-04-09T08:16:34 | 282,525,330 | 0 | 0 | null | 2020-07-25T21:09:43 | 2020-07-25T21:09:43 | null | UTF-8 | Python | false | false | 74,083 | py | # Copyright (c) 2006-2012 Mitch Garnaat http://garnaat.org/
# Copyright (c) 2011, Nexenta Systems Inc.
# Copyright (c) 2012 Amazon.com, Inc. or its affiliates. All Rights Reserved
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files... | [
"martheeswaran.m@cognizant.com"
] | martheeswaran.m@cognizant.com |
71b4e536f4120398df1b3c0cc53820ac8108799e | 1fe692e8dcdc68231f35aebbf894696ff3ca5329 | /Python-Standard-Library/InternationalizationAndLocalization/locale_delocalize.py | 9d22f1df34a04288db62450ccb153d33199a5fe5 | [
"MIT"
] | permissive | gaufung/CodeBase | 301ec33197771a937f75ce6ffb04b61443fc8f43 | 0292b06cfe002b3ad0299e43bb51192816a02c74 | refs/heads/master | 2021-07-19T15:00:47.000077 | 2018-02-28T11:39:28 | 2018-02-28T11:39:28 | 123,276,169 | 0 | 1 | MIT | 2021-07-14T05:41:46 | 2018-02-28T11:33:58 | Jupyter Notebook | UTF-8 | Python | false | false | 487 | py | import locale
import locale
sample_locales = [
('USA', 'en_US'),
('France', 'fr_FR'),
('Spain', 'es_ES'),
('Portugal', 'pt_PT'),
('Poland', 'pl_PL'),
('China', 'zh_CN')
]
for name, loc in sample_locales:
locale.setlocale(locale.LC_ALL, loc)
localized = locale.format('%0.2f', 123456.78... | [
"gaufung@outlook.com"
] | gaufung@outlook.com |
949524b41d7cf28af18cd24696ad573eb6ac7c96 | a9deaec7a219c4fa79e801c9ee61347f643ffe44 | /example_1.py | bb175aecd9c1bba0b6162d9464fb5bfe8eef0d13 | [] | no_license | qyn6/HackMIT-2016 | 0dca0115cb213a70ba3a1e5b7ab78062c4bac7c0 | 4bbb0db8ea97bead56829bd480b029d3aef29f64 | refs/heads/master | 2021-01-21T06:21:11.411986 | 2016-09-18T14:10:14 | 2016-09-18T14:10:14 | 68,525,379 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 709 | py | import midi
# Instantiate a MIDI Pattern (contains a list of tracks)
pattern = midi.Pattern()
# Instantiate a MIDI Track (contains a list of MIDI events)
track = midi.Track()
# Append the track to the pattern
pattern.append(track)
# Instantiate a MIDI note on event, append it to the track
on = midi.NoteOnEvent(tick=0, ... | [
"noreply@github.com"
] | qyn6.noreply@github.com |
1293440ff6afb7f2806715d8e701f07f48c0a721 | 7e1d9d3a8a650814cbcdcce4efe667aebe933166 | /abstractionAndEncapsulation.py | bca421daa18144bc76b63c4ad25a03388612286d | [] | no_license | pragya5833/pythonAndGoovy | 390a937225af29b62c62fa25baf8a9ab510e8207 | 15b1341cdd6b4816760a55f36a7e0617a76c58f3 | refs/heads/master | 2023-07-04T03:10:32.454390 | 2021-08-05T12:50:03 | 2021-08-05T12:50:03 | 392,803,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,324 | py | class Library:
# display,lend,add books
def __init__(self,listOfbooks):
self.listOfbooks=listOfbooks
def displayBooks(self):
for i in range(0,len(self.listOfbooks)):
print(self.listOfbooks[i])
def lendbooks(self,requestedbook):
if requestedbook in self.listOfbooks:
... | [
"pragyabharti@pragyas-MacBook-Air.local"
] | pragyabharti@pragyas-MacBook-Air.local |
414341dee4ca533d432b69f131ef10bbd93b47fd | 38b7b357449db4ef659e4268cbb29dd30b0b2cb1 | /exe3/assignment-3-6.py | 1bd3aa7723b1678f3524cfad5f4d38ca042e71a3 | [] | no_license | kasrafallah/python_course | b19dc5a7e0d4c8228a9f427cb18b664aeb07a46a | 4f7313dd3d9a558e1ef2e0a833d72ed3a6381366 | refs/heads/main | 2023-06-18T22:06:38.700437 | 2021-07-23T22:23:46 | 2021-07-23T22:23:46 | 388,939,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | def printPascal(n):
for line in range(0, n):
for i in range(0, line + 1):
print(binomialCoeff(line, i),
" ", end="")
print()
def binomialCoeff(n, k):
res = 1
if (k > n - k):
k = n - k
for i in range(0, k):
res = res * (n - i)
... | [
"noreply@github.com"
] | kasrafallah.noreply@github.com |
39452873fe562acdac01d398e0eab744b4ab98f0 | e6284222b47a3109ba7a77350196af74bd676d84 | /examples/example_date_range_list.py | f68679f84f73cd4ce1efb17a947f572fb4ef6d41 | [
"MIT"
] | permissive | jeff00seattle/pyfortified-dateutil | 33b7b2141c806697157e85d90c0df48697bc70c8 | 374ce46787e24fa2e29e6a16bb64fe0f93a545ae | refs/heads/master | 2020-03-17T10:48:04.383392 | 2018-05-15T16:30:18 | 2018-05-15T16:30:18 | 133,525,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
from pprintpp import pprint
import datetime as dt
import pyfortified_dateutil
start_dt = dt.date(2015, 12, 20)
end_dt = dt.date(2016, 1, 11)
print(type(pyfortified_dateutil.date_range_list(start_dt, end_dt)))
for day in pyfortified_dateutil.date_range_list(start_dt, ... | [
"jeff00seattle@gmail.com"
] | jeff00seattle@gmail.com |
42c3958dbc7a37064ca7777728dee812665dc21f | 3b504a983f1807ae7c5af51078bfab8c187fc82d | /client/Helpers/html/__init__.py | 8b0c9427d27064815cfd2bd299b92cbc041d448f | [] | no_license | SEA-group/wowp_scripts | 7d35fd213db95ea6b3dbd1ec6d3e0f13de86ba58 | 2fe54a44df34f2dcaa6860a23b835dcd8dd21402 | refs/heads/master | 2021-09-07T23:10:13.706605 | 2018-03-02T17:23:48 | 2018-03-02T17:23:48 | 117,280,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | # Embedded file name: scripts/client/Helpers/html/__init__.py
from debug_utils import LOG_CURRENT_EXCEPTION
from Helpers import i18n
import re
_getText_re = re.compile('\\_\\(([^)]+)\\)', re.U | re.M)
def _search(match):
if match.group(1):
return i18n.makeString(match.group(1))
return ''
def escape(t... | [
"55k@outlook.com"
] | 55k@outlook.com |
97380b01e145adc803dbf9609008fa4b30efeff5 | 55173732ce1f2537a4fd8a6137b2a813f594b250 | /azure-mgmt-web/azure/mgmt/web/operations/managed_hosting_environments_operations.py | 9aeec4531eb407ac2cae4a8fc46ef0b8a1fc5927 | [
"Apache-2.0"
] | permissive | dipple/azure-sdk-for-python | ea6e93b84bfa8f2c3e642aecdeab9329658bd27d | 9d746cb673c39bee8bd3010738c37f26ba6603a4 | refs/heads/master | 2020-02-26T15:32:39.178116 | 2016-03-01T19:25:05 | 2016-03-01T19:25:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,979 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft and contributors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
2b795e3874b712d22f0169eb14d4d445083b7004 | 682de6ff278f5347145956a52d5405b3e42a31bf | /Pegasus/service/auth.py | 1589144e8c6d6e2d4310c75bffd103dd08834a80 | [] | no_license | ahnitz/pegasus-wms-python3 | c53ebfa10496671ec1648540e0de329e4652aa71 | 137b262c6f0695b7179d2456b5284c578cab4de5 | refs/heads/master | 2021-06-18T17:21:29.911166 | 2020-03-12T11:51:58 | 2020-03-12T11:51:58 | 190,265,125 | 0 | 0 | null | 2021-03-20T01:06:30 | 2019-06-04T19:19:25 | Python | UTF-8 | Python | false | false | 6,462 | py | import logging
import os
import pam
from flask import Response, abort, g, make_response, request, url_for
from Pegasus import user
from Pegasus.service import app
log = logging.getLogger(__name__)
class BaseAuthentication(object):
def __init__(self, username, password):
self.username = username
... | [
"alex.nitz@gmail.com"
] | alex.nitz@gmail.com |
3bfafd0020c815995057fce3d4d091516f9ee1d8 | 415282d3d38d2d19a8fceff6ad098e8a5cd881bd | /src/lastfm/driver.py | f85eaa0194a26e37be12b979426b33b60bd133f0 | [
"MIT"
] | permissive | lnunno/python | fc9c9cf8495eb6b6bd5335eb7a5351415efa35a9 | 8fb9e9c39621a8bc0196a5346e42d4349c8d965d | refs/heads/master | 2020-05-02T12:34:07.875386 | 2013-09-20T18:25:37 | 2013-09-20T18:25:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 790 | py | '''
Created on Aug 19, 2013
@author: lnunno
'''
from album_images import save_url, top_album_image_urls,convert_img_dir, artist_image_urls
import os
def main():
image_links = top_album_image_urls('GrokThis', '423f4d46b119a24a89e91a7d6f945f9a')
i = 1
for link in image_links:
filename = str(i).zfill... | [
"lucasnunno@gmail.com"
] | lucasnunno@gmail.com |
6e792582555f1ca0406a9e0a94fdc3dde54d0f15 | 215d52a4107354ef814ca2d9d2e5074b41127195 | /polyaxon/api/activitylogs/serializers.py | ceccf0085891b2d8508dcbbdea0bea79bc6e295e | [
"MIT"
] | permissive | GarnettWang/polyaxon | e13296d3df614d18061f303c7b7d5aa100cf1fff | 90d107aad132f94a0f4acfda7c58c90b20f923fc | refs/heads/master | 2020-03-23T14:43:09.591539 | 2018-07-17T23:05:03 | 2018-07-17T23:05:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py | from rest_framework import serializers
from db.models.activitylogs import ActivityLog
class ActivityLogsSerializer(serializers.ModelSerializer):
object_name = serializers.SerializerMethodField()
class Meta:
model = ActivityLog
fields = ['event_type', 'actor', 'created_at', 'object_id', 'obje... | [
"mouradmourafiq@gmail.com"
] | mouradmourafiq@gmail.com |
d7b91b0476a1f2e00408ce1f1501bf98d4c06e4e | 692b2bc4846fc8437969835b445756b452a7f057 | /manage.py | a1434acfb0f3447feb703e619d758e9d31e875ec | [] | no_license | chelis/events | 9f4aa9cb6d4aadd09e20f586b542932ee7c79c14 | 03376be9501f0bff7be8fa5333a2fb9c35d63f16 | refs/heads/master | 2021-08-11T04:46:49.733501 | 2016-06-10T14:17:38 | 2016-06-10T14:17:38 | 58,487,708 | 0 | 0 | null | 2021-08-03T07:42:08 | 2016-05-10T19:22:38 | JavaScript | UTF-8 | Python | false | false | 483 | py | # -*- coding: utf-8 -*-
# @Author: Marcela Campo
# @Date: 2016-05-06 18:56:47
# @Last Modified by: Marcela Campo
# @Last Modified time: 2016-05-06 19:03:21
import os
from flask.ext.script import Manager
from flask.ext.migrate import Migrate, MigrateCommand
from server import app, db
app.config.from_object('confi... | [
"marcelacampo@gmail.com"
] | marcelacampo@gmail.com |
f6954f9e4c3afcbe84f45e922d7e3d83fc76d10e | 8151e38f79c379f13ed74efd57bb7cd35726b22b | /bin/jupyter-trust | 90821353f65749e54c54736e851c19ce56088388 | [
"MIT"
] | permissive | Fernando-Montes/TimeSeries | c3cdd49e815f2585bf9790ff4dbb642bda860ee5 | 45e882b33f4a7e1fed6d0de491f32cfb31278cb5 | refs/heads/master | 2020-04-23T13:05:52.572797 | 2019-02-18T01:31:01 | 2019-02-18T01:31:01 | 171,191,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | #!/Users/fernandomontes/Dropbox/Courses/Python/Templates/timeseries/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from nbformat.sign import TrustNotebookApp
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(TrustNotebookApp.launch_instance())
| [
"fernandoamontes@gmail.com"
] | fernandoamontes@gmail.com | |
17ada3e3523df390cc3e0347c250e6841ee2a3c5 | 06476bc4cb7fc3ce378beb357fac7d5aacb87b3b | /Prototype/env/lib/python3.8/site-packages/scipy/sparse/coo.py | 1b6f078ec8e1903ca9126d72020e33f6732ff50c | [
"MIT",
"GPL-3.0-or-later",
"BSD-3-Clause",
"GPL-3.0-only",
"BSD-3-Clause-Open-MPI",
"BSD-2-Clause",
"GCC-exception-3.1",
"Python-2.0",
"Qhull",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | marc-ortuno/VOPEC | 44d3a74d3e0686474dd57fcb21e845fd5fd48897 | e7ed1f13cc1868a824f4036dd08ec6bed4266c08 | refs/heads/main | 2023-06-12T19:15:18.060897 | 2021-07-01T17:15:03 | 2021-07-01T17:15:03 | 344,433,646 | 0 | 0 | MIT | 2021-06-14T19:15:47 | 2021-03-04T10:22:05 | Python | UTF-8 | Python | false | false | 22,207 | py | """ A sparse matrix in COOrdinate or 'triplet' format"""
__docformat__ = "restructuredtext en"
__all__ = ['coo_matrix', 'isspmatrix_coo']
from warnings import warn
import numpy as np
from ._sparsetools import coo_tocsr, coo_todense, coo_matvec
from .base import isspmatrix, SparseEfficiencyWarning, spmatrix
from .... | [
"you@example.com"
] | you@example.com |
07fefdde58f203a7265d07ddce327fb4501b8591 | ab3352c00a60b1cabe0fa5d113ee9621ca7eeec2 | /Scrapy/tutorial/tutorial/spiders/quotes_spider.py | 397fcacb051aad2937f9547d0e118c75b4be7fc6 | [] | no_license | eholowko/bootcamp-jupyter-web_scraping | 5965034f672bf48269f8adacc2c004977e582f49 | 28291f1d6cc45b42ea4c13c028e6a2a8f65f9399 | refs/heads/master | 2020-03-15T06:01:53.613467 | 2018-05-03T13:34:06 | 2018-05-03T13:34:06 | 131,998,892 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 971 | py | import scrapy
class QuotesSpider(scrapy.Spider):
name = "quotes"
start_urls = [
'http://quotes.toscrape.com/page/1/',
]
def parse(self, response):
for quote in response.css('div.quote'):
# Scrapy spider generates many dictionaries containing the scrapped data
y... | [
"elwirabk@gmail"
] | elwirabk@gmail |
5f9d7b7eacbb75109638f37ebd1059148c35c96e | 84c4ed9c5accb96ec4d2a15b3c076fdf5e76c320 | /backend/api/urls.py | 0170c6528dca0d2ced1fb5903e56caa9f59589e0 | [] | no_license | langdon0003/react-in-django | bdbc22e6f3a640097cbca0dcee453a245c75c9ac | be7068cf69a120268e94d1ad69ffdad0bed2ebb1 | refs/heads/master | 2022-12-09T07:15:11.978646 | 2020-08-22T20:15:13 | 2020-08-22T20:15:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | from rest_framework import routers
from backend.api.views import IdeaViewSet
router = routers.DefaultRouter()
router.register('ideas', IdeaViewSet)
urlpatterns = router.urls
| [
"hello@victoria.dev"
] | hello@victoria.dev |
f6c61f388cbadceaa279cf9da02ddc3f889ccb83 | ecec28b5ac91198f8e8d70aee39fd900b0cd158a | /Python Codes/parameters.py | cfc1d78cbc3fe2100cbba13e2e695dca28a87ac3 | [] | no_license | minoot7/Lane-Detection-Transfer-Learning | 1864272327966519e109922e6ba812ad64ab9ede | 639f1f70e3aa170a9f89ac8329b69cc89b856e68 | refs/heads/main | 2023-01-10T22:34:16.325873 | 2020-11-18T16:32:23 | 2020-11-18T16:32:23 | 312,137,710 | 8 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,057 | py | import numpy as np
class Parameters():
n_epoch = 1000
l_rate = 0.00001
weight_decay=1e-5
save_path = "savefile/"
model_path = "savefile/"
batch_size = 6
x_size = 512
y_size = 256
resize_ratio = 8
grid_x = x_size//resize_ratio #64
grid_y = y_size//resize_ratio #32
featu... | [
"minoo.tgh1991@gmail.com"
] | minoo.tgh1991@gmail.com |
1a213c55c3efbd558591d41b2cb2823defa46e4d | 3851d5eafcc5fd240a06a7d95a925518412cafa0 | /Django_Code/gs117/manage.py | 4ac5af2d90a1091f294d5fe1334098bb13f6c4b8 | [] | no_license | Ikshansaleem/DjangoandRest | c0fafaecde13570ffd1d5f08019e04e1212cc2f3 | 0ccc620ca609b4ab99a9efa650b5893ba65de3c5 | refs/heads/master | 2023-01-31T04:37:57.746016 | 2020-12-10T06:27:24 | 2020-12-10T06:27:24 | 320,180,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 646 | 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', 'gs117.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
rai... | [
"ikshan3108@gmail.com"
] | ikshan3108@gmail.com |
9286c7c752d3b78d0b21c51aa4fb6441c7f13b0f | 9df6873ee1c161b55209aefbea3aae093c637b4c | /api/__init__.py | ef3864351a21f0a7ac3a3012dd284290e4ee1b0b | [] | no_license | sunjieyu/test_laoke | dc5c43da8c964e8c02afd6ea64defdda3f8acd13 | 5720bdb8af65f33f426669e509055574f6b8829b | refs/heads/master | 2022-04-27T09:08:34.928748 | 2020-04-30T01:27:08 | 2020-04-30T01:27:08 | 260,084,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 61 | py | import apiConfig
# 初始化日志配置
apiConfig.ini_log() | [
"email@example.com"
] | email@example.com |
4359697daa111c7793ff8b1a89c137d782a065f4 | 5b05fec3d07edc740389fc35705bb8b6e35b52db | /ex6.py | d59778255efc0d0940da86a825df185c8142d14c | [] | no_license | Adhunik13/Learning-Python | cc03e21da6091fdef090613c38170307f703b923 | 06a3ba3ca6eb466e72b924f006d21a03d1fbdf9d | refs/heads/master | 2020-06-27T01:18:13.773607 | 2017-07-13T17:50:59 | 2017-07-13T17:50:59 | 97,039,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | x = "there are %d types of people." % 10
binary = "binary"
not_binary = "don't"
y = "those who know %s and those who %s" %(binary,not_binary)
print x
print y
print "i said %s ." %x
print "i also said %s." %y
hilarious = False
joke = "Isn't that joke so funny? %r"
print joke % hilarious
w = "this is left side of..... | [
"adhunik13@yahoo.com"
] | adhunik13@yahoo.com |
9c6058f9792698c4d54840aba99ca2b319f7a185 | 5f047d6f8985457c3d4eb5624f8e4be112447976 | /Python_Course_01/Week_04/solution_c01_w04_t01_magic.py | 2170d9b73259ce15ef63492bf7e471ddca13a697 | [] | no_license | Fianketto/python_coursera | 2c81c1585dc8dc6602f5d3f962cfab36c3d58646 | 925d744cf7640a3da6a2dd27c282b8c582be7902 | refs/heads/main | 2023-05-30T23:47:51.484264 | 2021-06-27T15:59:44 | 2021-06-27T15:59:44 | 380,779,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,380 | py | import os
import tempfile
class File:
file_count = 0
def __init__(self, file_path: str):
self.file_path = file_path
self.lines = []
if not os.path.exists(file_path):
with open(file_path, 'w'):
pass
self.update_iter_items()
def __... | [
"noreply@github.com"
] | Fianketto.noreply@github.com |
79c6385f17b6b94d8615694578fba264ece03859 | 0e355b61d9696df27fd6e5725ed602e132c83cb4 | /pname/users/tests/test_models.py | f9fcd8883fa1322132805a9305ee3484977c8ccd | [] | no_license | shahwan42/django-project | dc15adaf1170fa53358389efcac118c55fe7af84 | 3f01358d21650f720ea53eac3895103b88f524b8 | refs/heads/dev | 2023-01-22T11:48:37.767988 | 2020-11-25T21:34:30 | 2020-11-25T21:34:30 | 302,995,071 | 1 | 1 | null | 2020-11-08T02:10:52 | 2020-10-10T21:45:46 | Python | UTF-8 | Python | false | false | 1,281 | py | from django.test import TestCase
from django.contrib.auth import get_user_model
from django.core.exceptions import ValidationError
class UserTests(TestCase):
def test_create_user(self):
User = get_user_model()
user = User.objects.create_user(username="new_user", password="foo")
self.assert... | [
"ahmed@shahwan.me"
] | ahmed@shahwan.me |
ece1f517f1f9a4ec35a11a6739994bc6335ea3a3 | d214b72b3ae340d288c683afe356de6846a9b09d | /数学/求1+2+...+n.py | 2205c92b921d0270ae1f9bd41283b6a7544fc58f | [] | no_license | Xiaoctw/LeetCode1_python | 540af6402e82b3221dad8648bbdcce44954a9832 | b2228230c90d7c91b0a40399fa631520c290b61d | refs/heads/master | 2021-08-29T15:02:37.786181 | 2021-08-22T11:12:07 | 2021-08-22T11:12:07 | 168,444,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | class Solution:
def __init__(self):
self.res = 0
def sumNums(self, n: int) -> int:
'''
巧妙利用短路方法解决问题
短路可以代替一部分条件判断语句功能
:param n:
:return:
'''
n > 1 and self.sumNums(n - 1)
self.res += n
return self.res
if __name__ == '__main__':
... | [
"m18846183092@163.com"
] | m18846183092@163.com |
aa5b33beb5ea335a34540520c6ee6dc5d8f33808 | 8eb66c7d7c4f1a2fa1ea74c990269b6df809ca99 | /sight_words.py | 5ba01a31f4be889949e535919b54237093a3aa22 | [] | no_license | UYasher/mew2math | b742cf4e6538548d230ef5828be39f97eebc9991 | 5ca31ff830425a7be28d0f89dc7318ad7568e02a | refs/heads/master | 2020-08-21T17:05:17.282726 | 2019-11-05T21:24:35 | 2019-11-05T21:24:35 | 216,204,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,872 | py | import pyttsx3
engine = pyttsx3.init()
from problems import Problem, ProblemGenerator
import random
import pyttsx3
class SightWordProblem(Problem):
def __init__(self, word, sentence=None):
self.word = word
self.sentence = sentence
def display_problem(self):
if self.sentence is not Non... | [
"shriyash.upadhyaya@gmail.com"
] | shriyash.upadhyaya@gmail.com |
cb631c0caaebefdf3ea70fcbcc6f99968da792b9 | 39d40b7f65dd57307d9792b5ed9d410cc1f06ebc | /multithreading1.py | aee6a8d00ac1cc4a8f7540d80de85469f8445daa | [] | no_license | fanliugen/multiprocessing | 1f7131b1b21ddd31f09b14c4fd62bd9505cf7259 | a3b7bed61d18ba8b3867fcd22d7f8d6f27185495 | refs/heads/master | 2020-04-07T14:52:55.654408 | 2018-11-20T23:40:29 | 2018-11-20T23:40:29 | 158,464,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | import threading
import time
def coding():
for x in range(3):
print("%s正在写代码" %threading.current_thread())
time.sleep(1)
def drawing():
for x in range(3):
print("%s正在画图" %threading.current_thread())
time.sleep(1)
def multi_thread():
t1 = threading.Thread(target=coding)
... | [
"fanliugen@gmail.com"
] | fanliugen@gmail.com |
b6f3593606f86f3e322e5b00c48981d9e86dad18 | 7bbe2060385e1d732bb125b881562c64618075e0 | /Python/GaeaPipeline/workflow/H_merge_vcf-v2.py | 714fe74b114470956fd083c9d880ae8f9c743814 | [] | no_license | jjmini/dmcade | 7071cefd451946de14ee3817568b8d7c6ce5bf7e | 8c621126c3b18e4d4f0daed27fe77db35e16fd31 | refs/heads/master | 2022-12-08T13:55:53.355357 | 2019-07-07T06:09:33 | 2019-07-07T06:09:33 | 195,595,960 | 0 | 0 | null | 2022-07-07T23:10:18 | 2019-07-07T00:58:48 | Java | UTF-8 | Python | false | false | 2,344 | py | # encoding: utf-8
import os
from gaeautils.bundle import bundle
from gaeautils.workflow import Workflow
__updated__ = '2018-05-31'
class merge_vcf(Workflow):
""" merge_vcf """
INIT = bundle(merge_vcf=bundle())
INIT.merge_vcf.program = "gaeatools.jar"
INIT.merge_vcf.bcftools = ""
INIT.merge_vcf.... | [
"https://jjmini@github.com"
] | https://jjmini@github.com |
3caeaa43091c7f062072ca9397e23e095ecee16e | 9bb3509de1bd721237a58793df31c67415518f8b | /sql_dbase_build.py | ce157e2bb4440c69ec61ea3bd666c06cd9e1f1e6 | [] | no_license | PolMacUilliam/IABA_boxing_scoring_patterns | ec7d5c62fbd813397cd1bfadb1491628c751cd42 | baf22e763fc3f2710712ff17ef0effa67eb2c7ca | refs/heads/master | 2020-05-17T10:36:05.685598 | 2019-04-26T21:04:41 | 2019-04-26T21:04:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,740 | py | import sys
import datetime
from datetime import datetime
import pyodbc
import socket
import tkinter
from tkinter import filedialog
hostname=(socket.gethostname())
print(hostname)
###############################################################################################################
# FUNCTION DEFI... | [
"noreply@github.com"
] | PolMacUilliam.noreply@github.com |
a135e2f2aae95a77d00418ce22ebc8afe0190498 | 2207901d6018c5af9a430ea0504d2312117d8071 | /25-python-paint-app.py | ebf32252bdca165869743a6aabbc0a5b475dbec9 | [] | no_license | tsanhan/learn_python | 07a6a3742e74668309a349a2d73b33ea6074eb8b | e5abb1c15479470603b01d4835003e2ff7caa94a | refs/heads/master | 2023-02-13T19:40:51.790206 | 2021-01-12T23:34:59 | 2021-01-12T23:34:59 | 319,448,623 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,275 | py | from tkinter import *
import tkinter.font
class PaintApp:
# Stores current drawing tool used
drawing_tool = "line"
# Tracks whether left mouse is down
left_but = "up"
# x and y positions for drawing with pencil
x_pos, y_pos = None, None
# Tracks x & y when the mouse is clicked an... | [
"you@example.com"
] | you@example.com |
f4e3f15f8943d2802aa19855414293b485be8f05 | 66eb4f6725900f233659b53a7dbfced5e26bb614 | /test/functional/test_framework/mininode.py | 3814b1aad34cb33cbe042ce24649249b0a6546a4 | [
"MIT"
] | permissive | hackersdotmu/litecoincash | 9c85579e9b45c994c8f984ed6850f23b007fd0ad | 3c382d1da5867180b74998885294f9172dcce43e | refs/heads/master | 2020-03-21T01:04:13.131687 | 2018-06-19T17:22:32 | 2018-06-19T17:22:32 | 137,922,815 | 0 | 0 | null | 2018-06-19T17:19:15 | 2018-06-19T17:19:14 | null | UTF-8 | Python | false | false | 57,928 | py | #!/usr/bin/env python3
# Copyright (c) 2010 ArtForz -- public domain half-a-node
# Copyright (c) 2012 Jeff Garzik
# Copyright (c) 2010-2016 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Bitcoin P2P ... | [
"coldcity@gmail.com"
] | coldcity@gmail.com |
ef083b1cb301271ef664791c5da0ce5cc371be90 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_032/ch147_2020_06_21_14_18_56_736810.py | 94fb5801794571b5ac0ec8335c9c86bcc9bd9fb4 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | def mais_frequente(lista):
dicionario = {}
k = dicionario.keys()
for i in range (0, len(lista)):
if lista[i] not in k:
contador = lista.count(lista[i])
dicionario[lista[i]]=contador
n = 0
palavra = ' '
for c,v in dicionario.items():
if v > n:
n... | [
"you@example.com"
] | you@example.com |
3b1e66a3382ddde9f8df5db81b317421536c038d | b9ca293db6ec392a6c4c68bfa3625661bfe8ceef | /com/anjie/spider/house_db.py | 6d3785543aa9afa1f5baba91b5d7d5806da1ee8b | [
"Apache-2.0"
] | permissive | anzaizai/EasySpider | fb0840b12cb2686d73beb64be94540f3a6eaa683 | 1d24c02bd9879a4c7eb5d801b7b0d3fa4efb2a28 | refs/heads/master | 2021-07-06T15:47:00.522215 | 2017-09-29T00:33:53 | 2017-09-29T00:33:53 | 104,687,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,259 | py | import sqlite3
# 标题
title = "";
# 房子请求链接
url = "";
# 房子类型
house_type = ""
# 销售类型、出租类型
sale_type = ""
# 精装修等
level = ""
# 楼层
floor_number = ""
# 房子所在地
area_name = ""
# 具体地址
addr = ""
# 联系人
user = ""
# 补充
supplement = ""
price = "";
unit = "";
def createTable():
conn = sqlite3.connect('anjie.db');
curs = conn.cu... | [
"angelswy163@163.com"
] | angelswy163@163.com |
346af0faa70b3dd33c353011b73262b7dcdd4b7e | 78c1d3020b827b9ab7527404983986685bbb79ae | /Additional challenges/challenge 34.py | ed71c4fce43b273d8779d7b292f5241f0112b534 | [] | no_license | Yakobo-UG/Python-by-example-challenges | eb3e52601c9546a4984b8da4cf752e59f13af50e | 5bee4ec3e7619e826a27cde9e6a9a841393f8ccb | refs/heads/master | 2023-08-27T03:01:39.448703 | 2021-10-14T15:43:45 | 2021-10-14T15:43:45 | 401,747,080 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | '''You are going to write a program that calculates the highest score from a List of scores.
e.g. student_scores = [78, 65, 89, 86, 55, 91, 64, 89]
Important you are not allowed to use the max or min functions. The output words must match the example. i.e
The highest score in the class is: x
'''
student_scores = [78... | [
"65670517+Yakobo-UG@users.noreply.github.com"
] | 65670517+Yakobo-UG@users.noreply.github.com |
84f64dc5955273a83d2d0466f6c208f271ca7897 | 767389d7689167958a2b42d6f4805f1f0d64fb09 | /venv/Scripts/pip-script.py | 009dc0e48d39f7739fcb5e532b105856c3b2d7f2 | [] | no_license | XinyuJiang/CodeHouse | 7feb07c9cdf7622bb53360fbfea646c37f0d7cba | 0c3160414427b27506d97fcbba6f3a0f30865da4 | refs/heads/master | 2020-04-15T11:30:40.128656 | 2019-02-08T06:19:44 | 2019-02-08T06:19:44 | 164,633,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | #!E:\study\Web\Codehouse\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip'
__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])
sys.exit(... | [
"503273921@qq.com"
] | 503273921@qq.com |
9241cd77e34c56ac2884cec50059f2be5495bc27 | 7e793f01dbbcf13e559d963c4f37166c00a4ace6 | /Cloud_Computing/Pies/readProducts.py | 0c0d0caf91b50c85b91515d7094a3d2ba094aa9e | [] | no_license | cmccormick1/CS-course-projects | 451dc7309465bad04c05489ab506ce5c587c6dd7 | 4f666d7dd81ddcf10b4c820fbb6b7bc9aa444bc2 | refs/heads/master | 2021-04-24T12:27:16.962911 | 2021-01-23T23:50:28 | 2021-01-23T23:50:28 | 250,118,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,153 | py | #! /usr/bin/python3
import cgi
import MySQLdb
import passwords
# Connect to database and select entire products table
conn = MySQLdb.connect(host = passwords.SQL_HOST, user = passwords.SQL_USER, \
passwd = passwords.SQL_PASSWD, db = "projects_database")
cursor = conn.cursor()
cursor.execute("SE... | [
"noreply@github.com"
] | cmccormick1.noreply@github.com |
0754a01304f1cefe57de7a8532e81db47587d19a | c16c4e8e72a3f858283b74508cd69d0230e10f34 | /testCases/test_Login_DDT.py | c7fe9c811fbaf22ccc2d975ace47b04423e32811 | [] | no_license | d2bhatt/HybridFramework | 8a921643d7ef46bbb357bfbf88504783bf1c5d43 | d4f131b457c24898a31b08e5baa4db12b7839921 | refs/heads/master | 2022-12-11T11:26:40.507054 | 2020-09-07T10:55:11 | 2020-09-07T10:55:11 | 293,463,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,423 | py | from selenium import webdriver
import pytest
from pageObjects.LoginPage import LoginPage
from Utilities.readProperties import ReadConfigData
from Utilities.customLogger import LogGen
from Utilities import XLUtils
import time
class Test_002_DDT_Login:
# below three lines contain data which is common so we will c... | [
"d2bhatt@gmail.com"
] | d2bhatt@gmail.com |
128696c22c9cb7724103465fb75e9782eaa74c75 | 4892c4d6f79bdd22b3aca291b597a766f7a7ef0b | /KeyCode/AcaFinder/AcaFinder/settings.py | 9ed6bfa809239214ce6f00fc3ce29d8c666eaab7 | [
"MIT"
] | permissive | LelandYan/ResearchRelationshipNetwork_KnowledgeGraph | 0ab0776859285f83caf8c39bc818b16630b166b2 | 01119bbd2e02a0e3fbbd2cec4c9a4799c189e78e | refs/heads/main | 2023-06-26T04:19:24.130657 | 2021-07-17T03:47:03 | 2021-07-17T03:47:03 | 344,984,094 | 9 | 0 | MIT | 2021-07-16T13:53:57 | 2021-03-06T02:11:18 | Jupyter Notebook | UTF-8 | Python | false | false | 3,092 | py | """
Django settings for AcaFinder project.
Generated by 'django-admin startproject' using Django 2.1.7.
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
... | [
"2721599586@qq.com"
] | 2721599586@qq.com |
eac9dc814f9ff849b9b9964d99f4157b5f4f361e | 3872438b8c6f6b7d1b921feec5fdaaa4d7b71c1e | /service_scripts/pastefs.py | bd015f3bf823d2641b92942e02288df557cdc093 | [] | no_license | h4cklife/SpiderWasp | e3b7c058512f21da40fbe007e42d2b316caf0655 | 77001a4df979c78ae97e60ec9f2ce25b0f8161c4 | refs/heads/master | 2022-12-11T09:13:45.442903 | 2019-10-08T03:35:42 | 2019-10-08T03:35:42 | 212,494,915 | 0 | 0 | null | 2022-12-08T06:41:17 | 2019-10-03T04:10:41 | Python | UTF-8 | Python | false | false | 456 | py | """
PasteFS
"""
import sys
import random
from time import time, sleep
sys.path.insert(0, '../')
from libs.PasteSiteParser import PasteSiteParser
service = 'Pastefs'
pages = ['/recent.php', '/trends.php']
viewall = "https://www.pastefs.com"
viewpaste = "https://www.pastefs.com/pid/"
tag = "href=\... | [
"="
] | = |
e733855dc262c0e1a75f739d268db0838df5990c | 5bdcdee52da02ade014697cd1e9a9474dccfdf6a | /result_disp_ws.py | f11df8eb8d312973a19c5aee20835cf39dd7623b | [] | no_license | Sapphirine/Cost_efficiency_analysis_of_NBA_players | a2aa975147441bfee830ee40b43bc6213c02cc4a | b246e306beb087d6af272d4f8a0391294d4882fd | refs/heads/master | 2021-01-12T05:47:17.373344 | 2016-12-23T04:59:06 | 2016-12-23T04:59:06 | 77,198,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,068 | py | import sys
def calculation():
for line in sys.stdin:
data = line.replace("'","").replace('*','').replace('"','').replace('\\',',').replace(' ','').split(",")
avg_salary = 0
max_salary = 0
if len(data) == 10:
fullname = data[0]
if fullname == sys.argv[1]:
... | [
"noreply@github.com"
] | Sapphirine.noreply@github.com |
1ba84ead4bb8fc96bc14d6bd612dc84ec7b4768a | 83514f49859020207267e4ce24b9f1d4092b7a4d | /capstone/migrations/0014_profile_photo.py | 6438f7cdc6a412a59867604d402edef64aaed740 | [
"MIT"
] | permissive | josshartmann/Capstone | 9bbaf7c931928b714a44e15f9e7502b274bc279c | 741a56619f6a5d73b4c190c9396108f8ae1ae8a5 | refs/heads/main | 2023-04-21T11:32:40.016183 | 2021-05-18T22:18:39 | 2021-05-18T22:18:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | # Generated by Django 3.1.7 on 2021-05-10 18:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('capstone', '0013_auto_20210428_2128'),
]
operations = [
migrations.AddField(
model_name='profile',
name='photo',
... | [
"josshartmann@gmail.com"
] | josshartmann@gmail.com |
a0ad6c532cd261526354cb984c30f722913bc083 | cb7251a262097e5ddf981163a8e012064b085f86 | /unwanted_words_lister.py | edfb3ccdaf4bb4e281a4a5832ec0e2029f0f81c8 | [] | no_license | jsMRSoL/CEM_vocab_lister | 1fa976cfc828fffcd5fbfc952d9600de7d0c3cf6 | c0b3f3e5fb536c543c4516b32d3951604255ece3 | refs/heads/master | 2022-11-15T10:20:12.731479 | 2020-07-10T21:03:13 | 2020-07-10T21:03:13 | 278,732,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | #!/usr/bin/env python3
import csv
i = 0
unwanted_words = dict()
with open('corpus-data/cleaned1.txt', 'r', encoding="ISO-8859-1") as f:
words_list = csv.DictReader(f, delimiter='\t')
for item in words_list:
if item['Freq'] is not None:
unwanted_words[int(item['Freq'])] = item['Word']
for... | [
"si_pitt@yahoo.com"
] | si_pitt@yahoo.com |
606011c8ab57fa296d72e54135fa3dc2047bf114 | 121f67f8ed2d88a6b8a30a1e1b02127923e42e64 | /sdk/linux/EigerAPI/test/eiger-simulator/setup.py | 39aa75187ff5f3c1f95df0b01acfdc43716643ce | [] | no_license | soleil-ica/Lima-camera-eiger | c8940eb85b26f17793e60b227cfcd50b2907490b | d36efc92cca34a06f4a975fc04ccd97eeb2951a0 | refs/heads/master | 2023-08-14T02:23:53.886342 | 2023-05-10T14:31:29 | 2023-05-10T14:31:29 | 24,136,346 | 3 | 4 | null | 2017-12-12T09:46:42 | 2014-09-17T08:28:33 | C++ | UTF-8 | Python | false | false | 1,747 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The setup script."""
import sys
from setuptools import setup, find_packages
TESTING = any(x in sys.argv for x in ["test", "pytest"])
requirements = ['fastapi', 'uvicorn', 'bootstrap4', 'aiofiles', 'jinja2',
'pyzmq>=17', 'click', 'h5py', 'lz4']#, 'bitsh... | [
"langlois@synchrotron-soleil.fr"
] | langlois@synchrotron-soleil.fr |
c713032121ca6cb675597f037881644696f6999c | ad1700714e804dd559204984403baa52c8378efc | /practice/130226/refer.py | 15870fab2478147073d883e4bdf182b8094578bf | [] | no_license | cocagolau/NEXT_13-00_Preschool | e7fb5e59dd4afabea0ab8a70ddb90c999293e888 | 696eac44ef7349e873f9632b848e05ed04316666 | refs/heads/master | 2020-12-24T13:27:59.411641 | 2014-07-07T11:26:54 | 2014-07-07T11:26:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | import copy
a = [1,2,[3,4]]
b = copy.deepcopy(a)
print b is a
b.append(100)
print a
print b
b[2][0] = -100
print a
print b | [
"cocagolau@gmail.com"
] | cocagolau@gmail.com |
ab996058b96570c6009f7b8e8304849f7e3b2787 | 169f2f3fe4b7a248b022743800b604fb26483952 | /scripts/test.py | 78a05f9d11a4cc8d65e7d7c314c5422234348320 | [] | no_license | colinbrust/crop_map | 29b5403de9477f13f96cba8c51872160c337e0ba | c72281123119b2af3a1e148b0250e5c251f500eb | refs/heads/master | 2021-06-01T10:34:40.761746 | 2021-02-19T20:53:36 | 2021-02-19T20:53:36 | 141,490,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | import numpy as np
import glob
import rasterio as rio
import rasterstats
import pandas as pd
import requests
import datetime
import os
from scipy import signal
print("It worked!")
| [
"colin.brust@gmail.com"
] | colin.brust@gmail.com |
55c7e6bc08a4698a9c5c34f7cee388aaddee4fdb | 697c5d66109db02b5271634ddfb4b69c99fa16e8 | /TodoListWeb/todolistweb/todoapp/migrations/0004_auto_20200406_1955.py | 1e33fc06a144b803d44dadd8b11a1bbc3243e752 | [] | no_license | ebookleader/My-Web-Project | 094816c20e9e74a7c8a6dc7394c480b68d3b2b6f | 746b66296cf4f70f87fe049cf35cb21807107a86 | refs/heads/master | 2020-12-09T05:15:07.027078 | 2020-05-21T07:02:56 | 2020-05-21T07:02:56 | 233,201,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | # Generated by Django 3.0.2 on 2020-04-06 10:55
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('todoapp', '0003_auto_20200406_1751'),
]
operations = [
migrations.RenameField(
model_name='customuser',
old_name='is_active'... | [
"hemslje@naver.com"
] | hemslje@naver.com |
9552cab6a71f6334417c0e4337ada4d059242bcc | b6d55370dd3c0d00ffb4bc46df82a0fa105073e8 | /bugs/forms.py | aad5c9a739bcc27d43fa47f2148a5da713f3e0b7 | [] | no_license | DeanFlint/unitracker | 4ad77a5a3c53de4a4544d6fa0161004eccfaff1a | f1129880bbe52896f00ac6c2a91d829903197c21 | refs/heads/master | 2023-01-10T21:35:35.146210 | 2018-06-09T17:16:34 | 2018-06-09T17:16:34 | 133,188,856 | 0 | 2 | null | 2022-12-26T20:14:51 | 2018-05-12T22:49:39 | Python | UTF-8 | Python | false | false | 596 | py | from django import forms
from .models import Bug, BugComment
class CreateBugForm(forms.ModelForm):
class Meta:
model = Bug
fields = ('name', 'desc')
class CreateBugCommentForm(forms.ModelForm):
class Meta:
model = BugComment
fields = ('comment',)
class... | [
"dean.p.flint@gmail.com"
] | dean.p.flint@gmail.com |
610c20802c5e1b878f3f325fb649767495a05dc7 | 0568b01e7575127181f0aa69f98d4e3fb69b5aab | /database.py | 22dda3cdaa6d2a57eea494b97efc419531ec14a8 | [] | no_license | bigchriskelly/barpi | 071ef3375329598389f32db4d9c683dda8797e1a | 05ae2e5748f0d2c638270d5b3cb4a548d6ec19eb | refs/heads/master | 2023-03-11T22:30:42.363401 | 2021-03-01T14:20:30 | 2021-03-01T14:20:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,953 | py | #!/usr/bin/python
#--------------------------------------
#
#
#
#
#--------------------------------------
def get_is_crash():
mydb = connect_db()
sql = "SELECT isCrash FROM keg where isCrash is not null order by time desc limit 1"
mycursor = mydb.cursor()
mycursor.execute(sql)
records = mycursor.fet... | [
"bigchriskelly@hotmail.com"
] | bigchriskelly@hotmail.com |
0ac9abcfcea2a8cbc8e8767ba40564733a3cfde0 | 5cb45be18d88aeb02f35eedb78f57764b56c6d09 | /test/functional/resendwallettransactions.py | 96f487bd0a0375e7293d88c757233c2c1b8d3a18 | [
"MIT"
] | permissive | bellaj/Rcoin | 1db7a44d952845a4ebfb989f30ace329c64728d4 | bbcf2f528a668ae9b1642effc8644ef8dca0f1a2 | refs/heads/master | 2021-07-13T02:34:42.143678 | 2017-10-13T23:06:08 | 2017-10-13T23:06:08 | 106,748,183 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,333 | py | #!/usr/bin/env python3
# Copyright (c) 2017 The Readercoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test resendwallettransactions RPC."""
from test_framework.test_framework import ReadercoinTestFramework
... | [
"bellaj.badr@gmail.com"
] | bellaj.badr@gmail.com |
ee639418ec0a7270beb2a0393f294f8661560709 | 2a1b9c3ca8a48c283c5261ff9c283a8172de750f | /test/contrib/streaming_test.py | 7210de28a42e3625e13fa39ce3d234d3b0a83dbe | [
"Apache-2.0"
] | permissive | edx/luigi | e0c08b28ea9e2ba32d3f5dc9d6b7aa4b3024fd94 | 5c135bd2b5d8a9027640a5eaa5698ec8e3c06ed5 | refs/heads/master | 2023-01-20T14:39:38.656382 | 2022-03-29T18:57:59 | 2022-03-29T18:57:59 | 23,933,599 | 5 | 10 | Apache-2.0 | 2023-01-06T13:14:56 | 2014-09-11T19:59:48 | Python | UTF-8 | Python | false | false | 3,086 | py | import mock
import os
import unittest
from luigi import Parameter
from luigi.contrib import mrrunner
from luigi.contrib.hadoop import HadoopJobRunner, JobTask
from luigi.contrib.hdfs import HdfsTarget
class MockStreamingJob(JobTask):
package_binary = Parameter(default=None)
def output(self):
rv = ... | [
"miffoljud@gmail.com"
] | miffoljud@gmail.com |
2546b5eaaf77600c9038b04ba61738f774d52356 | 9da8754002fa402ad8e6f25659978bd269bbcec8 | /src/10A/test_cdf_10A.py | 461fddc7a5bf57efe5b29747a8b0acf1993ce6a1 | [
"MIT"
] | permissive | kopok2/CodeforcesSolutionsPython | a00f706dbf368ba0846c8ae86d4145b5dd3e1613 | 35bec0dbcff47765b123b5fe60476014376153df | refs/heads/master | 2023-02-02T03:08:22.097651 | 2020-12-17T22:00:50 | 2020-12-17T22:00:50 | 196,035,812 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 952 | py | import unittest
from unittest.mock import patch
from cdf_10A import CodeforcesTask10ASolution
class TestCDF10A(unittest.TestCase):
def test_10A_acceptance_1(self):
mock_input = ['1 3 2 1 5 10', '0 10']
expected = '30'
with patch('builtins.input', side_effect=mock_input):
Solut... | [
"oleszek.karol@gmail.com"
] | oleszek.karol@gmail.com |
a3900968b452cb53d2db969d69e41f9433b341ca | bc0a8d69db48160c71d5075f1069ebd4a37e94b4 | /tools/format/formatters/protobuf.py | 9b7a1c4835df27b5aacd925d719baf340d8ba8b5 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ChrisCummins/format | 4cf3fef91740ce8bc05d03d4cf4b6480731b06c1 | d42b4dafcd7c4b187311473f1b446e0ca1988b12 | refs/heads/master | 2020-12-09T18:32:16.192867 | 2020-01-21T18:43:55 | 2020-01-21T18:43:55 | 233,383,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,444 | py | # Copyright 2020 Chris Cummins <chrisc.101@gmail.com>.
#
# 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 ... | [
"chrisc.101@gmail.com"
] | chrisc.101@gmail.com |
a7cc3848892697d46713455a0a9b050f8d23535e | 3efe2059de4c7efd1f58a385656d19098b7efd63 | /deepiu/seq2seq/encoder.py | 162d924c0a43fff4a1ba916edb438716b7d6a6f4 | [] | no_license | yangyaoyunshu/image-caption-ai-challenger2017 | 5d2e82b2f8d70ac6d4eb7a0e70f6b406e551189b | 7f2c556587ea1e5c4583fe3b12b8d40c5a2aa2cc | refs/heads/master | 2021-08-31T22:48:55.886186 | 2017-12-23T07:27:04 | 2017-12-23T07:27:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 656 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# ==============================================================================
# \file encoder.py
# \author chenghuige
# \date 2016-12-23 23:59:26.165659
# \Description
# ================================================================... | [
"29109317@qq.com"
] | 29109317@qq.com |
b6ec982d63362772815255bf4fe9446d93128b92 | 85abaca853c825ee6b293a26a7b5f7144616a4ae | /hello.py | 8e3b6bda59d590efa2c8589b9d74e8e492d6a64e | [
"MIT"
] | permissive | KeanF/cs3240-labdemo | f4a3a1dc836dae4b02ca93b472afab9386f7fdd9 | d81474ca654e4dc50e5168f776ced9728f4b70e4 | refs/heads/master | 2021-01-19T13:36:15.369454 | 2017-02-20T22:30:14 | 2017-02-20T22:30:14 | 82,425,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | """
Kean Finucane (kf9zy)
Lab 5 - Git and Github
CS 3240 - Smith
16 February 2017
"""
__author__ = 'Kean Finucane'
from helper import greeting
from helper2 import excited_greeting
def example():
print('This is an example')
if __name__ == '__main__':
greeting('hello')
<<<<<<< HEAD
example()
=======
ex... | [
"kf9zy@virginia.edu"
] | kf9zy@virginia.edu |
299950f696f7f07d440ccf0389360a268c8fb93c | ba9ebe750b6169b290fcb8cdd777420f06a17155 | /application2/app.py | c1bacd0526a78d8820ab5ed5e60c0a40215851c8 | [] | no_license | group2gmca/groupProject | f40279fb85d3d247db9be07fd2ca48a2b5441638 | 65f843bda4c468dad7c29cba755a9af9e577cb68 | refs/heads/master | 2023-05-12T22:55:55.025821 | 2020-06-11T13:01:10 | 2020-06-11T13:01:10 | 254,064,585 | 0 | 1 | null | 2023-05-01T21:24:12 | 2020-04-08T11:09:21 | Python | UTF-8 | Python | false | false | 126 | py | from application import app
if __name__== '__main__':
app.run(port=5001, host='0.0.0.0')
#service 2 runing on port 5001
| [
"zedz65@hotmail.com"
] | zedz65@hotmail.com |
453773ca6cc20013306d3315221015c2d4beb273 | 77ae39a4e38dc53ed50e3943a0049fc4c72af735 | /Leetcode/Reverse_Integer.py | f0792c94e23888b50df22647371be82765788b05 | [
"MIT"
] | permissive | harrifeng/Python-Study | 41ab870a31213d414f08c5753d22e8463bb3f102 | d8158e33392a322830244594405cae7e9d7f6fb4 | refs/heads/master | 2021-01-18T10:48:23.215569 | 2016-02-04T02:06:22 | 2016-02-04T02:06:22 | 51,045,556 | 1 | 0 | null | 2016-02-04T02:05:39 | 2016-02-04T02:05:38 | null | UTF-8 | Python | false | false | 930 | py | """
Reverse digits of an integer.
Example1: x = 123, return 321
Example2: x = -123, return -321
click to show spoilers.
Have you thought about this?
Here are some good questions to ask before coding. Bonus points for you if you have already thought through this!
If the integer's last digit is 0, what should the out... | [
"cyandterry@hotmail.com"
] | cyandterry@hotmail.com |
3a1172fe783516fa01b2376d351a784d388be5ce | 5525efd4158915d828bb37736583d1e3eaed1881 | /tests/test_p4_exception_handling.py | 360fbb2221ca7773c2fc9493da286c6b9137dbb7 | [
"BSD-2-Clause"
] | permissive | P1119r1m/Universum | 8388f2ecc8019a9bf514fcf6561a27f928d5e826 | 71c9494f59dbac58a378d29eb31f8724964c8067 | refs/heads/master | 2023-08-02T11:03:16.933454 | 2021-08-20T11:02:37 | 2021-08-20T11:02:37 | 398,252,781 | 0 | 0 | BSD-2-Clause | 2021-10-01T15:49:07 | 2021-08-20T11:24:08 | null | UTF-8 | Python | false | false | 4,724 | py | # pylint: disable = redefined-outer-name
import pytest
from universum import __main__
from .perforce_utils import P4Environment
@pytest.fixture()
def perforce_environment(perforce_workspace, tmpdir):
yield P4Environment(perforce_workspace, tmpdir, test_type="main")
def test_p4_forbidden_local_revert(perforce_... | [
"noreply@github.com"
] | P1119r1m.noreply@github.com |
9d284ac3445eb8e2204d34c0fa3b8caaac0fe026 | e164a9243216317f5fd3c4bf87c6bb38b28e9cdb | /Word Reversed Checker/WordReversedChecker.py | d3de3a37b309d3c68b6601260b1384511023ab79 | [] | no_license | RobSweny/Python-Java-Projects | 46d68b2a2c85ea57e4682861abb324bb2e3a98b7 | 469aa0eb8b54a3c22486688105ea7892c3d17c0a | refs/heads/master | 2022-12-27T00:23:27.536642 | 2020-10-11T23:09:12 | 2020-10-11T23:09:12 | 296,970,160 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | print("Check if words are reversed")
user_choice = input("Enter your first word: ")
user_second_choice = input("Enter your first word: ")
#Reversing the words
user_reversed = user_choice[::-1]
if user_reversed == user_second_choice:
print("These words are the reverse of the other")
else:
print("These are no... | [
"Robsweny@gmail.com"
] | Robsweny@gmail.com |
9eafbc8fd21806248ceec01d8071e6dce389e8c5 | ef007108068d732a374d6a145bc3cd18d91950ef | /lib/hourglassNet.py | 02586c733bb6ec1ee5bbc88f1565f2aaf346348d | [] | no_license | hyunyongjeon/rc-pda | b7183ad5c20c4d95658442af74198f8cef3e1d6a | de993f9ff21357af64308e42c57197e8c7307d89 | refs/heads/master | 2023-06-18T16:00:03.056218 | 2021-07-15T23:51:01 | 2021-07-15T23:51:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,857 | py | """
Multi-Scale Guided Cascade Hourglass Network
Adapted from: https://github.com/anglixjtu/msg_chn_wacv20
"""
import torch
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
import matplotlib.pyplot as plt
class DepthEncoder(nn.Module):
def __init__(self, in_layers, layers, filter_size):
... | [
"longyunf@msu.edu"
] | longyunf@msu.edu |
d0a0e1d386d0d7d9a30895facf80e2de9e6d95cd | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_12_01/aio/operations/_operations.py | 986d51c8aa369afd9f60dbb2be3edfa6bda5d4a5 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 4,816 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | scbedd.noreply@github.com |
72b3ddb510aad5cdeb62cbd6a7671f1c93100309 | fd7b34b6f4261b0e81961594f38338e8e2c1a4cc | /src/command_modules/azure-cli-servicebus/azure/cli/command_modules/servicebus/__init__.py | 3af10ffe66ac3b5dbf3538ada2ca92ebecd3f4ad | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | WangYeJian/azure-cli-test | 3158da9f5dfb4321e3dfef3eed8cd213abb78dc7 | decdaa80a2d99a1a5753ed6f620d3cea5947bada | refs/heads/master | 2023-01-13T05:51:48.247079 | 2019-06-27T01:35:24 | 2019-06-27T01:35:24 | 194,001,154 | 0 | 0 | MIT | 2022-12-27T15:34:45 | 2019-06-27T01:25:56 | Python | UTF-8 | Python | false | false | 1,829 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | [
"ericw2@wicresoft.com"
] | ericw2@wicresoft.com |
b510d226ad2c88a37acf52124ecbfeb1dcf9b6b1 | a31b879c0874e209095893b615620b207373139f | /main_app/migrations/0001_initial.py | 4aea2f993bd88fd24290cf8d17e77c8df77d94c8 | [] | no_license | sean-yates/Auto-Jokester | b612a479ae6f4ffe051547f1bb56b4a4cc27608d | 7187ad8009eb214c2843bff69d43f351a3034d56 | refs/heads/master | 2023-04-23T22:47:04.466548 | 2021-05-11T01:47:54 | 2021-05-11T01:47:54 | 361,569,739 | 0 | 2 | null | 2021-05-12T03:25:27 | 2021-04-26T00:20:54 | Python | UTF-8 | Python | false | false | 2,140 | py | # Generated by Django 3.2 on 2021-05-01 19:53
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
opera... | [
"seanyates@Seans-MacBook-Pro.local"
] | seanyates@Seans-MacBook-Pro.local |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.