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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3842504d29b91a2950c189a1b6ce977c040ce35c | ac1431fd24a9116709a74f19fcedb2bc0abec95b | /fizzbuzz.py | c6b8d97c1cea160d341cbd4176695385e2a6e996 | [] | no_license | fuscano/mi_primer_programa | 33ebc4a8fab6b3aca6e22cf56b59106d42197239 | 544fc9cd9d649a15540a541f5ea99b702f728dd3 | refs/heads/master | 2020-04-09T15:02:38.253466 | 2018-12-11T11:01:40 | 2018-12-11T11:01:40 | 160,414,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,297 | py |
numeros = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 20, 30, 60, 100]
for indices in range(len(numeros)):
numero = numeros[indices]
if numero % 3 == 0 or numero % 5 == 0:
numeros[indices] = ''
if numero % 3 == 0 :
numeros[indices] += 'Fizz'
if numero % 5 == 0... | [
"jonafuscano1@gmail.com"
] | jonafuscano1@gmail.com |
6169e0ffbb24b1abe7c04cb37a356c5e0dbdc47a | fd9b248c7a47bcc288ed466ad54aaddd4d70cc52 | /testsAutomates.py | bbff2c627e633ea61074a2eab97234292ca85fa5 | [] | no_license | IemProg/FSMs_with_Python | 3c5fa748bd20ee864fa91663a524aa510a715e49 | 909ef318220da1644a5713a955c18ad15d75337a | refs/heads/master | 2020-04-07T05:18:35.387392 | 2019-01-17T19:58:03 | 2019-01-17T19:58:03 | 158,091,880 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,183 | py | # -*- coding: utf-8 -*-
from transition import *
from state import *
import os
import copy
from sp import *
from parser import *
from itertools import product
from automateBase import AutomateBase
from automate import Automate
show = True # Mettre à True pour afficher graphiquement les tests de construction... | [
"btoxic24@gmail.com"
] | btoxic24@gmail.com |
1f7023a8396aaa1e95e2598545db12884d2f3eb9 | 5547486a73cb16d08a0f5400e02558d61706e2e8 | /csr_mhqa/argument_parser.py | 620be9180a8ae482c711b0e085a6f95c474ca7aa | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | jobine/HGN | 6cd64bd1b175a4ae6d412fca09e73fe45b1ea087 | 6d8dd5ebf2a5077652b09a00610ade89bfcd6b4b | refs/heads/master | 2023-05-11T21:31:37.289472 | 2021-05-31T08:59:29 | 2021-05-31T08:59:29 | 355,061,160 | 0 | 2 | MIT | 2021-04-21T17:11:51 | 2021-04-06T04:54:24 | Python | UTF-8 | Python | false | false | 8,692 | py | # coding=utf-8
#/usr/bin/env python3
import os
import argparse
import torch
import json
import logging
import random
import numpy as np
from os.path import join
from envs import DATASET_FOLDER, MODEL_FOLDER, OUTPUT_FOLDER
from model_envs import ALL_MODELS, MODEL_CLASSES
logger = logging.getLogger(__na... | [
"jobine_cn@hotmail.com"
] | jobine_cn@hotmail.com |
f11f52e01879d9755a5cd9d124a98efe4d68e7d2 | b75229c262e377c5e4dc6363be6e1b639afb85aa | /gist_backup.py | 1dbcff447b855079a1659f10fa119a5d6919143d | [] | no_license | foolishflyfox/fscript | e18ccf469c2b94ccf2d750812d314f4b17c73d79 | 7637b9b2fb614a255aa8668ddcde33f745876ab4 | refs/heads/master | 2021-08-10T23:46:53.277122 | 2020-04-21T01:54:14 | 2020-04-21T01:54:14 | 162,393,088 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,095 | py | #!env python
# Note: if you are in China, you should make sure your shell can't visit
# foreign websites, otherwise you may fail to use git api
import argparse
import urllib
import json
import requests
import os
from datetime import datetime
from urllib.request import urlopen
parser = argparse.ArgumentParser(descrip... | [
"fenghuabin1992@163.com"
] | fenghuabin1992@163.com |
13ca807029ee668cc1db389b2189d8a365a30962 | 7e443af193d6c541d9e4ad45bd44255ac98c0f40 | /src/fastCrawler/test_api.py | e03325cbaa3e0ab189a9bc14a3a8652623f246ba | [] | no_license | aseempatni/MentionMe | 5334d4c7b12ab3c908e4684bdfd6d9d703064b6a | 1ed0600ba581ac77e4271e10d4145602550a2e2f | refs/heads/master | 2020-04-10T01:50:29.231003 | 2015-12-11T09:48:26 | 2015-12-11T09:48:26 | 40,751,832 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,845 | py | # testing twitter APIs
import sys
import time
from twython import Twython, TwythonRateLimitError
#import config
import json
import thread
import os
# read config
config_file = open('config.json','r')
configs = json.load(config_file)
config_file.close()
# apply config
client_args = configs['client_args']
keys = config... | [
"apatnip@gmail.com"
] | apatnip@gmail.com |
15ffd68d61b4a460ef95ddadae10b0d714791ef3 | bc233c24523f05708dd1e091dca817f9095e6bb5 | /bitmovin_api_sdk/models/dolby_digital_plus_downmixing_preferred_mode.py | dbe4b9349d8eabb5c12189d531b9a85ed63ac8e2 | [
"MIT"
] | permissive | bitmovin/bitmovin-api-sdk-python | e3d6cf8eb8bdad62cb83ec77c0fc4950b06b9cdd | b0860c0b1be7747cf22ad060985504da625255eb | refs/heads/main | 2023-09-01T15:41:03.628720 | 2023-08-30T10:52:13 | 2023-08-30T10:52:13 | 175,209,828 | 13 | 14 | MIT | 2021-04-29T12:30:31 | 2019-03-12T12:47:18 | Python | UTF-8 | Python | false | false | 268 | py | # coding: utf-8
from enum import Enum
from six import string_types, iteritems
from bitmovin_api_sdk.common.poscheck import poscheck_model
class DolbyDigitalPlusDownmixingPreferredMode(Enum):
LO_RO = "LO_RO"
LT_RT = "LT_RT"
PRO_LOGIC_II = "PRO_LOGIC_II"
| [
"openapi@bitmovin.com"
] | openapi@bitmovin.com |
2646f88f0590dd62b8ba725e67e06c4e9c20406e | b0fce7b572c78ee67ea0e2bd27e2837fffe66891 | /setup.py | 87b23bf3cfa596e1163e4cf81c7292a8ba217f97 | [
"MIT"
] | permissive | ZizhouJia/pyson | 300bd4c68cec3c0a42c5f3135e0447149ca86ebe | ba80336e6ec43456c0d1bf3e71109609b9489181 | refs/heads/master | 2020-08-15T07:55:24.704936 | 2019-11-29T08:46:35 | 2019-11-29T08:46:35 | 215,304,822 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 725 | py | import setuptools
setuptools.setup(
name="pypyson",
version='0.01',
description="A JSON like more powerful object notation for python",
license="MIT License",
author="ZizhouJia",
author_email="jiazizhou@126.com",
url="http://github.com/ZizhouJia/pyson",
packages=setuptools.find_packages... | [
"jiazizhou@126.com"
] | jiazizhou@126.com |
50a5aac6db1eb1123552eab226989d962b71cf62 | 1865e18c5d8dbe3cf5b98324827316e24e0b0377 | /spark_analysis.py | 080c773a4cc29f5bca1162f4ffe8f47bfe7e6496 | [] | no_license | ortizcapetta/BigDataP3 | ff262329f0078d3aa66e0be2dc40e8df79452e65 | aa6652e1f0e661e1757f9ff4d40bc2617e877f06 | refs/heads/master | 2020-04-09T11:29:39.729049 | 2018-12-10T17:22:17 | 2018-12-10T17:22:17 | 160,311,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 692 | py | # coding=utf-8
from pyspark.sql import SparkSession
spark = SparkSession.builder.getOrCreate()
model1res = spark.read.csv('Results/model1res.csv')
model2res = spark.read.csv('Results/model2res.csv')
model1res.createOrReplaceTempView("model1")
model1 = spark.sql("select _c1 as sentiment, count(*) "
... | [
"alemariortiz@yahoo.com"
] | alemariortiz@yahoo.com |
690d9d675600e9866b2c9ca5f0c311a6a28b8792 | b4c1998e2b23d71ac5a884f5c4b4f7da1732ee13 | /plot-time_mmap_touch-time_per_op.py | be38e830d3b1fd1a9fbe823271e5b2dc0d08d3ec | [] | no_license | multifacet/0sim-plotting-scripts | 0ab3ece3aff002d5ced50f410f460f5821caaa02 | 1c5035e071b1ffb9d69e66bdd8c7537e88f9d424 | refs/heads/master | 2022-07-10T19:18:46.648948 | 2022-06-29T20:31:36 | 2022-06-29T20:31:52 | 200,109,910 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,663 | py | #!/usr/bin/env python2
import matplotlib.pyplot as plt
import numpy as np
import re
import itertools
from collections import OrderedDict
from sys import argv, exit
from paperstyle import MARKERS, COLORS, IS_PDF, FIGSIZE
data = OrderedDict()
def rdtsc_to_msec(ticks, freq):
return ticks / float(freq)
for arg i... | [
"markm@cs.wisc.edu"
] | markm@cs.wisc.edu |
ce554e2695eb9840c6d0399b1f782c9eb8d9d10e | d30cb6a597f6a5fad9a01da77594a225daf9a211 | /Lesson 4 - File Handling/project/attempt_1/suffix.py | 34ed3d75c984c7bdfaaf0517676f8b2ac263c7dd | [] | no_license | jmwoloso/Python_2 | 290ef8b0c7db8347fa25cf39da26f39e218d9c68 | 06c45545ed064d0e9c4fd15cc81cf454cb079c9d | refs/heads/master | 2020-04-24T02:18:34.058148 | 2015-08-02T21:02:02 | 2015-08-02T21:02:02 | 37,082,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,197 | py | #!/usr/bin/python3
# A Program Used for Assigning Suffixes
# suffix.py
#
# Created by: Jason Wolosonovich
# 02-24-2015
#
# Lesson 4 - Project 1, Attempt 1
"""
Contains a dict that houses the extensions of many common
file types.
"""
#global file_suffix_dict
file_suffix_dict = {
1 : ".txt",
... | [
"jmwoloso@asu.edu"
] | jmwoloso@asu.edu |
33765590730029bbe09c1508395f13525e87b192 | ac831e55c1b63cb7952d62110b774c0faabfc7b5 | /lib/pyasn1_modules/rfc2459.py | 78991fa0af4f523202bae7d9a97dde88b6b6dc16 | [
"Apache-2.0"
] | permissive | itielshwartz/BackendApi | 3d82713082868efc144635a612d43132c27363fe | bc21013f8d96bbf0fba7a99f1deb5486ad32b168 | refs/heads/master | 2016-09-06T06:16:17.827250 | 2015-10-05T14:11:44 | 2015-10-05T14:11:44 | 34,627,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47,191 | py | #
# X.509 message syntax
#
# ASN.1 source from:
# http://www.trl.ibm.com/projects/xml/xss4j/data/asn1/grammars/x509.asn
# http://www.ietf.org/rfc/rfc2459.txt
#
# Sample captures from:
# http://wiki.wireshark.org/SampleCaptures/
#
from pyasn1.type import tag, namedtype, namedval, univ, constraint, char, useful
MAX = 64... | [
"ishwartz@ebay.com"
] | ishwartz@ebay.com |
a8ff977cc5ae9a4b5514fef8b6bc461e26babfbc | f613e2db37f3eefd67a05f09801b50212ddac1e7 | /shixin.py | 2aff705c8323f551ea8ec34c82e7954238c90963 | [] | no_license | crawlerwolf/shixin | d33b8060379086c2775ddfa450edfdc8a6c4ad97 | 59f21072c5dfb57105de9658c4d182202372e915 | refs/heads/master | 2021-07-12T19:23:06.052545 | 2020-08-31T02:56:06 | 2020-08-31T02:56:06 | 196,349,344 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,423 | py | # *_*coding=utf-8*_*
import requests
import random
from fake_useragent import UserAgent
import time
import re
import json
from Mongo import *
from urllib3.exceptions import InsecureRequestWarning
from urllib3 import disable_warnings
disable_warnings(InsecureRequestWarning)
ua = UserAgent()
headers = {
'Referer':... | [
"154080724@qq.com"
] | 154080724@qq.com |
3db9ea2ba0d5dd5664802a1c9f2123f87ae6ebe3 | 07057ce73af021e67069d6fb4278c25136911645 | /Sock_merchant.py | 727ec779ec093b7ec19a26d5b2c712aa96731403 | [] | no_license | himraj123456789/competitive-programming- | cfe7bba53be9f1d9d66e0ec325eb3e30c9ff8169 | 186dbd7e9965a72cc11c8f4cba8e33beb8ea83da | refs/heads/master | 2022-11-02T06:30:49.647793 | 2020-06-19T03:18:03 | 2020-06-19T03:18:03 | 262,454,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 722 | py | #!/bin/python3
import math
import os
import random
import re
import sys
# Complete the sockMerchant function below.
def sockMerchant(n, ar):
ar.sort()
pair=0
i=0
while(i<len(ar)-1):
count=1
select=ar[i]
j=i+1
while(select==ar[j]):
count=cou... | [
"noreply@github.com"
] | noreply@github.com |
7e1dfb3b37336ba6d0aca323d37084f40f5cd797 | d9d09007bd52cdfb8394c4ef92ec02d206c678c8 | /Numbers.py | a3344fb694289c554365e4e6e08f7e8d654f8322 | [] | no_license | smithi35/Basic-Cryptography | b56e9d504a8256380d9f5113b32ea961ef013bc0 | 1ec27ac0a4e845db3fa6ff6d36b6d2679d36afd5 | refs/heads/master | 2021-01-17T12:49:41.011829 | 2016-06-18T20:11:53 | 2016-06-18T20:11:53 | 56,406,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,122 | py | import fileinput
from Letter import Letter
alphabet = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']
def isDash(char) :
ascii = ord(char)
isD = False
if ascii is 45:
isD = True;
return isD
def isNumber(char) :
ascii = ord(... | [
"ian_smith_12a@mymts.net"
] | ian_smith_12a@mymts.net |
445dce17dcf61ccfcfaba0766ae79eafea84c864 | 5909a85db23b2dbe3da0ecf4460ee2d0ca784dbc | /v3surf/Lib/site-packages/buoyant/buoy.py | 5769cf175fa2abcb516265799aaf4788324e0ceb | [] | no_license | rafskov/flasksurfdiary1 | 56432e7836f44ce95c3d8f52a42f92a17c39ad5f | b593ec7626278fdb506dfa6f0bf32785005f8287 | refs/heads/master | 2022-12-12T03:52:58.930934 | 2020-03-21T05:15:47 | 2020-03-21T05:15:47 | 248,900,349 | 0 | 0 | null | 2022-12-08T03:51:06 | 2020-03-21T03:34:37 | Python | UTF-8 | Python | false | false | 7,032 | py | # -*- coding: utf-8 -*-
# Copyright 2014-17 Neil Freeman
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program... | [
"rskovron@gmail.com"
] | rskovron@gmail.com |
93da1323dcced8853a800e02af6b960aa14851cb | ad40f7dfa859d6d6033e5cee2c7f65479f5fd1ea | /Python Codes by NIYATI SINHA/app34.py | 0ab7f5efa604833aef6149ffa4ce109f87e3805d | [] | no_license | NiyatiSinha-yb/PYTHON-Codes-By-Niyati-Sinha | 97778b90e75c8d6071c5d49ebe956e6b6dae8f02 | 233f934ee4aa0a11b414d6fe0c6d43c7b916a74b | refs/heads/master | 2023-03-27T13:22:39.494873 | 2021-04-01T09:42:28 | 2021-04-01T09:42:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | for item in range(5):#for item in [0,1,2,3,4]
print(item)
# range function creates an object, its not a list but its a special kind of object that we can iterate over
# and with each iteration this object spit out a new no
print("_____")
for item in range(5,10):
print(item)
print("_____")
for any_name in range(... | [
"niyati.sinha2999@gmail.com"
] | niyati.sinha2999@gmail.com |
f9380f7e2c34a2f3f43d1be2d550d2ef2660ec4a | 4e19cbed4595c98eb6ae9c764b7eb880ab4e8b36 | /trayectorias_parabolicas.py | 45e9098f031fd425518e70ccb1a8297372ad378f | [] | no_license | josueaguilar/SimParabolic | 74bd1a8b58e10bd8a3eae8ba2ebea84c0d241547 | 3bcda7d7c410e24f674d118cb93672bee808e4fa | refs/heads/master | 2022-10-15T15:10:03.045642 | 2020-06-13T22:35:02 | 2020-06-13T22:35:02 | 272,096,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,081 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Dec 27 13:11:59 2019
@author: Josue
"""
# -*- coding: utf-8 -*-
"""
Created on Mon Dec 23 13:21:11 2019
@author: Josue
"""
#
import turtle as tur
import math
import numpy as np
#--- Calculo de la cinematica
def cinematica (theta,Vi,X,sampl,g):
#Componente vectorial ... | [
"josue.aguilar.garrido@gmail.com"
] | josue.aguilar.garrido@gmail.com |
db4947dd7f21941b4aac995c4fe2285f661d7466 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit_noisy1448.py | ae49b0570c58881f82ac7b3f628b829ccd29533b | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,294 | py | # qubit number=5
# total number=51
import cirq
import qiskit
from qiskit.providers.aer import QasmSimulator
from qiskit.test.mock import FakeVigo
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import ... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
dd9f3feb5a59ede4b0691cb43f723fa131995daa | 348ec96c777a995f1b722b53d530c4867d9d6989 | /dao/dao/ayurveda_config.py | 6a7cf9e52d94d7505dd2879def24b77a050cda75 | [] | no_license | Ravall/daodiet | efbdcf4e7d92dbc36770da150fa92df712af3e0d | db233a9f643b82bda7f17dcd75616534a1b84f50 | refs/heads/master | 2020-05-20T11:30:47.539137 | 2013-05-20T14:21:37 | 2013-05-20T14:21:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | # -*- coding: utf-8 -*-
from datetime import time
WAKEUP_TIME = time(6, 0)
BREAKFAST_TIME = (time(7, 0), time(9, 0))
LUNCH_TIME = (time(11, 0), time(14, 0))
WAKEUP_NOON = time(12, 0)
DINNER_TIME = (time(17, 0), time(19, 0))
SLEEP_TIME = time(22, 0)
| [
"valery.ravall@gmail.com"
] | valery.ravall@gmail.com |
15fc4653908e3156a68b8e3e0f193240883ea77a | ba5502b3df3cf4755f7d4b8c2eb40eb9fb467a35 | /btcturk-examples.py | 0b9d2907c1dcf38cd1b30e86973c5b283490a036 | [] | no_license | onurgozupek/btcturkpro-python | 8f67e277fd72f400fce3e5cc910fd707aaadf88b | 8e3da7b898758bf53a0aeb2b1ac2cc9221ae37e8 | refs/heads/master | 2021-02-15T00:25:29.659712 | 2021-01-07T05:36:59 | 2021-01-07T05:36:59 | 244,848,404 | 6 | 1 | null | 2021-01-07T05:37:00 | 2020-03-04T08:38:31 | Python | UTF-8 | Python | false | false | 1,351 | py | import btcturk-python
#Create Order Example
pairSymbol = "BTC_TRY"
price = "53000"
quantity = "0.01"
orderType = "buy"
orderMethod = "limit"
stopPrice = "0"
createOrder(pairSymbol , price , quantity , orderType , orderMethod , stopPrice)
#Check Balances Example
checkBalances(pairSymbol)
#Delete Order Example
or... | [
"noreply@github.com"
] | noreply@github.com |
5e91bc42ff6c1921c12148e9ae79b7b64596285a | 438e77b35c1d9cfa0873da89fc1ad0567ff4179b | /Tools/Pendulum.py | 246b9c8445f75cdc83f22227a543550e02781922 | [
"MIT"
] | permissive | JordParma/Terminus | 3aa5b6fcaadab8798403f0bcf8b5f59be060531f | a44920c95b59cbbc45eb63e516131224be353e0a | refs/heads/master | 2020-07-23T10:32:56.753635 | 2017-12-19T20:44:07 | 2017-12-19T20:44:07 | 94,356,289 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,838 | py | # -*- coding: utf-8 -*-
'''
Mass Spring Damper
'''
def double_pendulumn():
# Double pendulum formula translated from the C code at
# http://www.physics.usyd.edu.au/~wheat/dpend_html/solve_dpend.c
from numpy import sin, cos, pi, array
import numpy as np
import matplotlib.pyplot as plt
import... | [
"johnnyfroehlich@gmail.com"
] | johnnyfroehlich@gmail.com |
f01a7b1bca0efc934505a42a9401c5c3639633ca | 930e0730dd1eb8802b07cf2a60dc2f285754c567 | /vae_v2.py | 608a24bdc3cbdb57e7bc0d65ec3a2e23e547be3c | [] | no_license | xiaoxianedwindu/ecg-multi-encoder | fb3f3d54d3d8dddd67f6bd3d38b84650d9982036 | c6a082f8e28af2706bdb5d994e741ae436ae17e9 | refs/heads/master | 2022-12-14T11:05:49.117357 | 2020-09-21T06:05:05 | 2020-09-21T06:05:05 | 296,981,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,287 | py | '''
VAE-2 script
'''
import keras
from keras.layers import Conv1D, Conv2DTranspose, Input, Flatten, Dense, Lambda, Reshape, Layer, LeakyReLU, UpSampling1D, AveragePooling1D, Activation
from keras.layers import BatchNormalization
from keras.models import Model
from keras.losses import binary_crossentropy
from keras i... | [
"2467121d@student.gla.ac.uk"
] | 2467121d@student.gla.ac.uk |
0d1890cdb76f474288b918b5475c39e94b3fe831 | c9af677534dffbc3f72e6df3db82c2323d303a79 | /FirstTest.py | 7a5035df2444f12d71d8ed143da0e79a51bf2076 | [] | no_license | simple565/GuiTest | 9af9cc48697d686c088a9189467eb0b7388abced | 531c1639fee82abc210999ce0f180d3280c6b642 | refs/heads/master | 2020-07-10T20:19:35.999058 | 2019-08-25T23:23:29 | 2019-08-25T23:23:29 | 204,361,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | py | from appium import webdriver
desired_caps = {}
desired_caps['platformName'] = 'Android'
desired_caps['platformVersion'] = '8.1.0'
desired_caps['deviceName'] = 'cc8acaca'
desired_caps['appPackage'] = 'com.android.settings'
desired_caps['appActivity'] = '.Settings'
driver = webdriver.Remote('http://localhost:4723/wd/hu... | [
"467914885@qq.com"
] | 467914885@qq.com |
de87b1312d042de25ad09e1c1273fad0b0bc68a4 | fa4b2b4ce915b4e58737f65efe7d18d1f45cbe27 | /home/migrations/0001_initial.py | 6f7e2af882d3cea72915015cbf036f11d7df263e | [] | no_license | Wishez/cosmeticsyou-v2.0 | 0fde09158944415b2471cb07dcf1e2cd1df85923 | a0f6a1b11622cb36a5084781ad35f4eed2778f66 | refs/heads/master | 2022-12-26T12:47:53.693887 | 2020-10-12T20:22:30 | 2020-10-12T20:27:54 | 293,092,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,946 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-08-10 15:37
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Callba... | [
"shiningfinger@list.ru"
] | shiningfinger@list.ru |
247c913d852cbd4106982180f4eae2ce09706d8f | fa38f2f3ab4d1935e3a856eaa53729635f964034 | /wxpy_lenRec/04-askShowURL.py | 0ceda8427c856074668a79603e28a0c342ea7efb | [] | no_license | PlantainZ/MTCNNfaceRgnz_gratuationDesign | da5441ed8d5b862c801b9af57a7d7b1d0ee7e4ee | e64b1884ae788e9eb7e087ed001d8621d261ccca | refs/heads/master | 2020-05-24T15:36:35.564950 | 2019-05-18T08:52:53 | 2019-05-18T08:52:53 | 187,335,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | #codeing=utf-8
import wx
import wx.html2
class MyBrowser(wx.Dialog):
def __init__(self, *args, **kwds):
wx.Dialog.__init__(self, *args, **kwds)
sizer = wx.BoxSizer(wx.VERTICAL)
self.browser = wx.html2.WebView.New(self)
sizer.Add(self.browser, 1, wx.EXPAND, 10)
self.SetSizer(sizer)
self.SetS... | [
"593525228@qq.com"
] | 593525228@qq.com |
f1852414a1506a6b10a1010751f35b8c44e0caba | 7104726233d98dd714a445f4f516bce954680f7f | /PuThresholdTuning/python/runForest_PbPb_MIX_75X_PUThresholdVarR020.py | 8fd43dffcd346d87d79593e728a23b559bab3f6a | [
"CC0-1.0"
] | permissive | mverwe/JetRecoValidation | 7b09dada9a797b0ccf39064bdbc801639a8dd229 | ee8b3fd94bac16390b367dc5030489738ff67958 | refs/heads/master | 2021-01-10T06:54:12.312670 | 2016-02-25T10:35:19 | 2016-02-25T10:35:19 | 43,553,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,822 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process('HiForest')
process.options = cms.untracked.PSet(
# wantSummary = cms.untracked.bool(True)
#SkipEvent = cms.untracked.vstring('ProductNotFound')
)
################################################################################
# HiForest labelling... | [
"marta.verweij@cern.ch"
] | marta.verweij@cern.ch |
8921fb8ee476bb325fd7f6922aedb2688f7cf24b | 4cd08571b6139b503420ad91d49affbd5729abfb | /framework/executor/logic_form_util.py | 2e0f79cc7f710d9c37912401f0a3bcba16bfbf07 | [
"BSD-3-Clause",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | PhoebusSi/rng-kbqa | 2609bed29fd0ca1dfe17f313f19fdc93d17ebfde | da7e655d337d6206b564bb82140082d52296f1a9 | refs/heads/main | 2023-08-21T16:47:11.208413 | 2021-10-12T19:11:54 | 2021-10-12T19:11:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,045 | py | import networkx as nx
from typing import List, Union
from collections import defaultdict
from pathlib import Path
from tqdm import tqdm
from executor.sparql_executor import execute_query
import json
REVERSE = True # if REVERSE, then reverse relations are also taken into account for semantic EM
path = str(Path(__file... | [
"semihyavuz9091@gmail.com"
] | semihyavuz9091@gmail.com |
ddc7b72d60621d0532fe559144dc283ce61f27ab | de2cc3f7be2fd6644d4990f25f0d725da273addc | /14.py | a16d3329aae9533a874ef4034dcd9569f15d924c | [] | no_license | ll996075dd/xuexi | 8972565fbe19666e3e186f7980e3a67638113ad0 | b2dbbab95d0f8ed9efc98085984e017ee67dbd91 | refs/heads/main | 2023-01-23T00:30:41.746088 | 2020-11-30T00:56:35 | 2020-11-30T00:56:35 | 307,001,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | '''给一个不多于5位的正整数,
要求:一、求它是几位数,二、逆序打印出各位数字。
程序分析:学会分解出每一位数。'''
def output(num,l):
if l == 0:
return
print (num[l-1])
output(num,l-1)
num = input("请输入一个不多于5位的正整数:")
l = len(num)
output(num,l)
print('\n长度是为%d' %l)
#递归调用
| [
"noreply@github.com"
] | noreply@github.com |
3ae943c05939e10eb7593fa7d5be7c5f831a76c5 | 19d47d47c9614dddcf2f8d744d883a90ade0ce82 | /pynsxt/swagger_client/models/aws_gateway_amis_list_result.py | 5882e38c27c689298103233daa9be4d54349462e | [] | no_license | darshanhuang1/pynsxt-1 | 9ed7c0da9b3a64e837a26cbbd8b228e811cee823 | fb1091dff1af7f8b8f01aec715682dea60765eb8 | refs/heads/master | 2020-05-25T14:51:09.932853 | 2018-05-16T12:43:48 | 2018-05-16T12:43:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,184 | py | # coding: utf-8
"""
NSX API
VMware NSX REST API # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
from swagger_client.models.aws_gateway_ami_info import AwsGatewayAmiInfo # noqa: F4... | [
"tcraft@pivotal.io"
] | tcraft@pivotal.io |
7c50e42927a96ef3468d56e0da76e5c012bd5630 | 0d49ae03b0dc382ffeabd1e8e63f9c35487e9db3 | /index.py | 9a266474dba0123017a7e8a015749e5fcf9cef8a | [] | no_license | Chaitanya009/Linear_Regression_scratch | c38a13acb2d8064ffe57914416e127474abecd04 | d0b7b4d7c6fbf00eec1ca2b22ab8140023ea1fbb | refs/heads/master | 2020-03-07T00:45:07.916547 | 2018-03-28T16:02:04 | 2018-03-28T16:02:04 | 127,165,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,549 | py | from numpy import *
def compute_error_for_given_points(b, m, points):
totalError = 0
for i in range(0, len(points)):
x = points[i, 0]
y = points[i, 1]
totalError += (y - (m * x + b))**2
return totalError/float(len(points))
def step_gradient(b_current, m_current, points, learning_rate):
#gradient descent
b_... | [
"chaitanya.thakre009@gmail.com"
] | chaitanya.thakre009@gmail.com |
353ab642a8ae08763c52fbf98af5efa618985a9d | fb8cbebdf034b2f478943752d5443afc82c6eef5 | /tuirer/venv/lib/python3.6/site-packages/pygments/lexers/int_fiction.py | 1265072250a996322b6fafbc8a93654c2281faf8 | [] | no_license | fariasjr/CitiTuirer | f64e0ec93ef088f8140bb0961d2ad4ed3b59448a | deb3f7a9c2d45b8a7f54639037f097b99abdac11 | refs/heads/master | 2020-03-24T05:10:36.261050 | 2018-08-01T20:24:30 | 2018-08-01T20:24:30 | 142,477,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 55,826 | py | # -*- coding: utf-8 -*-
"""
pygments.lexers.int_fiction
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Lexers for interactive fiction languages.
:copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import re
from pygments.lexer import (RegexLexer, bygroups,... | [
"jornadaciti@ug4c08.windows.cin.ufpe.br"
] | jornadaciti@ug4c08.windows.cin.ufpe.br |
1d831cb9cfb9b9f7db96f0499fe3f0d02ab6c4ee | 6302d46032f704aa2c8bb6e2810c19e3bb90c1c4 | /server/netflix_backend/movies_api/migrations/0002_auto_20210219_1954.py | 7ccbe630791c36378645ba0357d4a4f295324d1c | [] | no_license | raghavendra-musubi/netflix-django-rest-react-redux | 304d28f68e13e9962f31593441ae1b7b36743952 | fe78061ccc1c27ff78697cb5f21d92a313b8a7c0 | refs/heads/main | 2023-03-09T21:32:30.409919 | 2021-02-24T19:03:32 | 2021-02-24T19:03:32 | 340,214,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | # Generated by Django 3.1.6 on 2021-02-19 19:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('movies_api', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='movie',
name='category_id',
... | [
"raghavendra@techis.io"
] | raghavendra@techis.io |
51454841f8ba4911c06ddc7c0242c0ab00f41e5d | 4eafc9dd445b1f292a0a4cb94dea06f813458520 | /myDemo/PythonCommonModule/mofaFun.py | b638d8ccb0f978c02394ec3260a1dfff759a9294 | [] | no_license | kele5215/PycharmProjects | 0fdbf584e55774ba643264b1700960862802f9af | 67bbfa6ffc240ddb838c4b56971a006ea0586cfa | refs/heads/master | 2023-01-05T11:24:32.405810 | 2019-10-21T08:26:49 | 2019-10-21T08:26:49 | 191,890,830 | 0 | 0 | null | 2023-01-04T23:08:54 | 2019-06-14T06:49:14 | Jupyter Notebook | UTF-8 | Python | false | false | 717 | py | # _*_ coding:UTF8 _*_
class Company(object):
def __init__(self, employee_list):
self.employee = employee_list
# 魔法函数,给类加可迭代类型
def __getitem__(self, item):
return self.employee[item]
def __str__(self):
return ",".join(self.employee)
def __repr__(self):
return "*".... | [
"77523916@qq.com"
] | 77523916@qq.com |
1f30212294a603d8593be882ead4569e1ac74274 | 492b3a10ac12cbcce5c5a1968642df3f86cb3de5 | /rotatearr.py | d000c934830a9d77c511f5098626d3216f42a48d | [] | no_license | mxxu/leetcodeOJ | bcf6a9edc9db32e11443d9d510c036e72eba73d5 | 27589a20f9ef1edee9f7687fbffd82fab6224580 | refs/heads/master | 2021-01-17T14:47:52.576943 | 2017-03-11T12:57:26 | 2017-03-11T12:57:26 | 23,454,895 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 670 | py | class Solution(object):
def rotate(self, nums, k):
"""
:type nums: List[int]
:type k: int
:rtype: void Do not return anything, modify nums in-place instead.
"""
if not nums or k <= 0:
return
n = len(nums)
k = k % n
if k <= ... | [
"xumx@tupo.com"
] | xumx@tupo.com |
ac66d7dc5fc559ad4bd16ab25d9a32bd733df94f | 27c071224dfb52254cff8e176ce09fe62d9fcb71 | /mobileperf/extlib/xlsxwriter/packager.py | 3d944b6a5d291de0391a64e5ee9c430ff16890c4 | [
"MIT"
] | permissive | wawau/mobileperf | 7d171bd813f98bdd68c4bdcf7e68b7cebe0b9a66 | 6a1313a8b354f58831a0b3d3023a1ac5b2b47c08 | refs/heads/master | 2022-06-11T15:41:20.160362 | 2020-05-07T03:03:30 | 2020-05-07T03:03:30 | 261,952,182 | 1 | 0 | MIT | 2020-05-07T04:49:02 | 2020-05-07T04:49:01 | null | UTF-8 | Python | false | false | 23,084 | py | ###############################################################################
#
# Packager - A class for writing the Excel XLSX Worksheet file.
#
# Copyright 2013-2018, John McNamara, jmcnamara@cpan.org
#
# Standard packages.
import os
import stat
import tempfile
from shutil import copy
from .compatibility import S... | [
"look.lk@alibaba-inc.com"
] | look.lk@alibaba-inc.com |
8ea50c401f6dda1b3e53316433b1ca8319e6b1ab | 4ac91c3be9e46f690eae7cfd047d0bc0370cde5c | /handcraft/app/models.py | 7bad06fffdfb6f56b58070d6aa230a1f72fee492 | [] | no_license | YoYoAdorkable/ngx_status | 9eeb172756e42736e5ff8a54e09ed2452a071adb | d0e17574c771a2ce1e767f15931df2ede29a6350 | refs/heads/master | 2021-01-13T15:55:20.531786 | 2016-12-26T04:03:37 | 2016-12-26T04:03:37 | 76,818,913 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,860 | py | #coding: utf-8
import hashlib
from datetime import datetime
from werkzeug.security import generate_password_hash, check_password_hash
from flask_login import UserMixin
from . import db, login_manager
class User(UserMixin, db.Model):
__tablename__ = 'user'
id = db.Column(db.Integer, primary_key=True)
email... | [
"yu.hailong@kuyun.com"
] | yu.hailong@kuyun.com |
29ebf2327a5c2399759825f1e87178cfc4bafb9e | f45abc9a5ebf975bb41021dafa878bb828831b96 | /settings.py | 1176f7542c36f17313a3c45e199bc99408503eef | [] | no_license | DmitryAB/guestbook | 9cbbed1f15a94e6d5a0cfe644a6a2daf807e25f9 | b1bcb90deedfcb075064fc97fcc8a74e92975fb3 | refs/heads/master | 2020-05-01T12:12:47.281084 | 2012-07-31T13:00:39 | 2012-07-31T13:00:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,987 | py | # Django settings for guestbook project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'NAME'... | [
"dmitriy.generalov@inbox.ru"
] | dmitriy.generalov@inbox.ru |
7185202b785b88226c157a2bc01c1c802b222e00 | 8d2b1533b720fc18536742bb93946bb34a8ca226 | /findmeanAddtimeAddmean.py | 8e7b7dd0ee8b8a7898a0918564e430675a7f5c7f | [] | no_license | YCTMZJL/ARDroneSDK_preDataProcess | 7453430b8bbf6acc4b2c8f40564279bf09ea8891 | 93ef2f5e56ab787b99a779396274222a52ae6ed5 | refs/heads/master | 2021-01-22T23:44:07.130115 | 2017-03-21T05:42:40 | 2017-03-21T05:42:40 | 85,663,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,691 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Jul 22 21:38:12 2016
@author: ml
"""
# -*- coding: utf-8 -*-
"""
Created on Sun Jul 17 15:20:09 2016
@author: root
"""
import numpy as np
import cPickle as cP
import matplotlib.pyplot as plt
#import math
from mpl_toolkits.mplot3d import Axes3D
# 持久化保存对象
def saveObj(obj, f... | [
"yootu@qq.com"
] | yootu@qq.com |
25722449e337fcc1a439b9924f6d59afced074b5 | 72575d5be68406befde886019844f6b8fab3ae5b | /renders/stories-list.py | 26700bb704e76fa4ecc95c511dba920f417c4071 | [] | no_license | rlucca/icescrum-cl | 24a755f3d8e9a50898e0f7d853641b2e4769b8f9 | e801303b1b762fe3d78527d962d3631fa9d79997 | refs/heads/master | 2021-01-10T20:26:37.723903 | 2014-10-09T16:47:30 | 2014-10-09T16:51:04 | 22,731,672 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 866 | py | #!/usr/bin/python
import json
from sys import stdin, argv
data = json.load(stdin)
story_state = { 1: "Suggested",
2: "Accepted",
3: "Estimated",
4: "Planned",
5: "In progress",
7: "Done" };
interested_states = []
for number in argv[1:]... | [
"rlucca@gmail.com"
] | rlucca@gmail.com |
0907267e98b96a3bfb69062100eb901fb42b8d3d | f7463bd0ab18b41611d5ac725f65d3db3a3a7a1d | /Generation Python - A Beginner's Course/13_Functions/13.5(return_v2)/7.py | 05f6fc472054d62e8f0ac4d289c449cf867dab43 | [] | no_license | Sergey-Laznenko/Stepik | f81c5aeead3fbd20628129d60ccce92b34724b97 | 5e1a1a76c3f6ed487cf8fc847913c890c8eac840 | refs/heads/master | 2022-12-28T19:01:48.670540 | 2020-10-18T15:23:58 | 2020-10-18T15:23:58 | 279,022,462 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | def is_palindrome(a):
if str(a) == str(a)[::-1]:
return True
else:
return False
def is_prime(b):
if b in (0, 1):
return False
if b % 2 == 0:
return False
for i in range(3, round(b ** (1 / 2) + 1), 2):
if b % i == 0:
return False
return True
... | [
"Laznenko.Sergey@gmail.com"
] | Laznenko.Sergey@gmail.com |
36281c66608fe8e93f8a23404e7d95bc69692daf | 868984471bfb35bd1879a76c2bbabcb5ecbd739c | /src/core/config.py | 1e678805db643ae1852a769d4369503c88d3c4d3 | [] | no_license | i65535/ADServer | d1f2ca43d77593f6469e480ba5240ff09412abf2 | e3b57fb8fc913ade0ddb38312f19465f506bcb8b | refs/heads/master | 2020-04-06T07:00:03.615446 | 2016-08-22T10:21:30 | 2016-08-22T10:21:30 | 65,715,618 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,048 | py | # -*- coding: utf-8 -*-
# Copyright (c) 20016-2016 The i65535.
# See LICENSE for details.
from common.range import DigitRange, strRange
class SysConfig(object):
RequestOffset = DigitRange(30,5,300) # 请求超前或滞后服务器时间的最大值.
RequestTimeout = DigitRange(30,30,60) # 与云节点通信超时时间.
XMLRPCPort =... | [
"shaojun_d@126.com"
] | shaojun_d@126.com |
027433a6dadf7ef800139f0f080e7e4691a43441 | e4dad14988885980cad43c7a9c66b3c4a80db7b8 | /geopic/tests/test_picinfo.py | b5148cee09813f87ba7818db3c9823bf534fd1cc | [] | no_license | gizmux/geopic | 1d513e232811e7587ba8a420ceebf400f0e14d68 | f58810df96d7f539cb115c9605650baabec22925 | refs/heads/master | 2021-01-20T08:41:08.902472 | 2017-05-23T22:59:25 | 2017-05-23T22:59:25 | 90,178,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,068 | py | from unittest import TestCase
from datetime import datetime
import geopic
class TestPicInfo(TestCase):
def test_bad_file(self):
pInfo = geopic.PicInfo("doesntexist.jpg")
self.assertFalse(pInfo.isValid())
def test_simple_construction(self):
pInfo = geopic.PicInfo("./geopic/tests/pic_... | [
"gizmux@gmail.com"
] | gizmux@gmail.com |
634d025a9b80404544a7aa474771e130e66cb7b9 | 8d93d7c18d7568bd8c9bb9a6745f212e73e722ae | /polybar/.config/polybar/weather.py | 07562caa92d84c9f8111cc30d8928185e7cd661d | [
"MIT"
] | permissive | thornmir/dotfiles | 7bdc3af65e93d29409bc442deb7c10a7ba87a0b4 | 7a5151e614a28703afb9cd24b1df588f03032141 | refs/heads/master | 2021-09-02T00:41:55.671616 | 2017-12-29T12:05:35 | 2017-12-29T12:05:35 | 104,068,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,077 | py | #!/usr/bin/env python
import json
import urllib
import urllib.parse
import urllib.request
import os
def main():
try:
with open(os.path.join(
os.path.expanduser("~"),
'.config',
'polybar',
'city')) as f:
city = f.readline().strip(... | [
"chaosteil@gmail.com"
] | chaosteil@gmail.com |
71574601ac2b63d3341288b90ea931c5e3941b71 | 13a32b92b1ba8ffb07e810dcc8ccdf1b8b1671ab | /home--tommy--mypy/mypy/lib/python2.7/site-packages/scikits/statsmodels/tools/decorators.py | b67ab7f9182886af449a828b1f8d2348ab11ea16 | [
"Unlicense"
] | permissive | tommybutler/mlearnpy2 | 8ec52bcd03208c9771d8d02ede8eaa91a95bda30 | 9e5d377d0242ac5eb1e82a357e6701095a8ca1ff | refs/heads/master | 2022-10-24T23:30:18.705329 | 2022-10-17T15:41:37 | 2022-10-17T15:41:37 | 118,529,175 | 0 | 2 | Unlicense | 2022-10-15T23:32:18 | 2018-01-22T23:27:10 | Python | UTF-8 | Python | false | false | 7,973 | py | from numpy.testing import *
import warnings
__all__ = ['resettable_cache','cache_readonly', 'cache_writable']
class CacheWriteWarning(UserWarning):
pass
class ResettableCache(dict):
"""
Dictionary whose elements mey depend one from another.
If entry `B` depends on entry `A`, changing the values of ... | [
"tbutler.github@internetalias.net"
] | tbutler.github@internetalias.net |
2ce54eb4cec1a31e0f060c295607f8016a614d45 | 6129da29826ac7ffc386ab176d6a26dfaf971199 | /models/prep_data.py | 35cf710e46b48dadb76b3598cdf5a658c8457d59 | [] | no_license | vikrant4k/AppDetection | 08b068b7f05758bf24a0e3ce3c7ff26e8d1333e4 | 8e9323545faada2b802d26bb148fb98f16ee5277 | refs/heads/master | 2020-03-18T20:32:00.573679 | 2018-06-22T09:43:14 | 2018-06-22T09:43:14 | 135,221,973 | 0 | 0 | null | 2018-06-12T12:04:04 | 2018-05-29T00:36:54 | Java | UTF-8 | Python | false | false | 3,589 | py | import glob
import pandas as pd
from datetime import datetime
import requests
import json
from collections import Counter
import constants
from api_key import places_API_key
from lat_lon_handler import get_lat_lon_distance
make_request = False
user = constants.user
def read_all_csv_in_dir(path):
all_files = glob.g... | [
"stianste@stud.ntnu.no"
] | stianste@stud.ntnu.no |
75dd47dd930ad1027d4c8585d2a8d261b808fcf5 | a25bdc53f3e847ea27a067830c02f73adc0189d1 | /DES/Permutation.py | 43b2f3065e75e9857ae02bada8726a4e8cee2e76 | [] | no_license | vnpnh/Cryptography | 6bb157c0f4bdcc7bbdaf1a46312ff3146fbf4853 | 325b42756e5b14ca3db2901d80d9d04923908f1e | refs/heads/master | 2023-04-16T19:28:03.142061 | 2021-04-29T19:16:31 | 2021-04-29T19:16:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,911 | py | #this permutation for key
p56bit = [57, 49, 41, 33, 25, 17, 9, 1, 58, 50, 42, 34,
26, 18, 10, 2, 59, 51, 43, 35, 27, 19, 11, 3,
60, 52, 44, 36, 63, 55, 47, 39, 31, 23, 15, 7,
62, 54, 46, 38, 30, 22, 14, 6, 61, 53, 45, 37,
29, 21, 13, 5, 28... | [
"noreply@github.com"
] | noreply@github.com |
69773f30b585638497431d4484f4dc00e07ca523 | 8bd0497ba99c7a80ae761267bc9e371371d12a6e | /twitter/init_db.py | 4f3dbc6cec20ec7dec00fd5d4c0bf9bc4b544812 | [] | no_license | TongTianUM/python-miscellany | f3df94114af91e3577ea885c62295ce9903064d7 | 81aa86647cd37acf76645db9870061cf1eb3b0d2 | refs/heads/master | 2021-08-23T13:40:32.414794 | 2017-12-05T03:20:41 | 2017-12-05T03:20:41 | 90,571,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 586 | py | import sqlite3
reset = True
conn = sqlite3.connect('tweets.db')
cur = conn.cursor()
if reset:
cur.execute("DROP TABLE IF EXISTS Tweets")
cur.execute("CREATE TABLE Tweets (tweet_id INTEGER, tweet_text TEXT, likes INTEGER)")
cur.execute("DROP TABLE IF EXISTS Hashtags")
cur.execute("CREATE TABLE Hashtag... | [
"noreply@github.com"
] | noreply@github.com |
b2675f662be96e49ab8d4e0c301e40732a490cef | 24d070c6410fdf7212c4c37c2fadc932cd4e8aec | /trac/wiki/test.py | b5941785692974b8d7b29d2432aee83ae302c289 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | clubturbo/Trac-1.4.2 | 4f111e8df9e8007a0e02080bec560361b25fc11c | 254ce54a3c2fb86b4f31810ddeabbd4ff8b54a78 | refs/heads/master | 2023-01-20T16:20:44.724154 | 2020-12-03T08:57:08 | 2020-12-03T08:57:08 | 317,922,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,528 | py | # -*- coding: utf-8 -*-
#
# Copyright (C) 2004-2020 Edgewall Software
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
# are also available at https://trac.edgewall.org/wiki/TracLicense.
#
# This soft... | [
"jonn@mindhunterx"
] | jonn@mindhunterx |
5e0f8927ea9d8093f9e7e55430b10f131efd58eb | 3a8f870abd1481187758be33720a10526ac0daa0 | /shopeelaptopreview.py | d6403306debd0b5f410d5ed790414efcd0ef8dc4 | [] | no_license | arief130598/scrapper | b734d842664a8183da501059647f5ee99c809f3f | 4d813700279d46fd6a38097c16eac519cf6db418 | refs/heads/master | 2022-12-17T05:08:50.385903 | 2020-01-16T04:29:18 | 2020-01-16T04:29:18 | 226,952,112 | 0 | 0 | null | 2022-12-08T03:26:48 | 2019-12-09T19:37:30 | Python | UTF-8 | Python | false | false | 3,298 | py | import datetime
import json
import time
from bs4 import BeautifulSoup
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.action_chains import ActionChains
import pyodbc
chrome_options = Options()
# chrome_options.add_argument('--headless')
chrome_option... | [
"ariefmaulana130598@gmail.com"
] | ariefmaulana130598@gmail.com |
70cb3d09402bd71b84303f0fe648479b8846a4b2 | e93d1931789c99922a6b5ff3cf7e3bfe1c8bce3d | /blog/urls.py | feda7193e8da66168c2c798b1763fd13b33d3f73 | [] | no_license | nhutphong/djangoblog | 2653fcc34285788e7b34048acc7a078c88536c5c | e4bf2a0d43727c248b2a2006910a68063f99f186 | refs/heads/master | 2023-03-16T10:59:51.700275 | 2022-10-18T03:40:39 | 2022-10-18T03:40:39 | 237,549,725 | 1 | 0 | null | 2022-03-12T01:04:49 | 2020-02-01T02:23:09 | Python | UTF-8 | Python | false | false | 1,089 | py | from django.urls import path
from django.contrib.auth.decorators import login_required
from .views import (
ArticleListView,
ArticleCreateView,
ArticleDetailView,
ArticleUpdateView,
ArticleDeleteView,
PaginationListView,
SearchResultsView,
)
from . import views_filter
app_name = 'ar... | [
"nhutphong@outlook.com"
] | nhutphong@outlook.com |
c43d2cdc8e070993b75e62cbe7d8896cd9a340c1 | d45d55eedabb71f940573d80e7179deee1a117a4 | /router.py | ddc3f2660129ce6b8f5ed05996a068eb314de597 | [] | no_license | Untou4able/c2j | 25c6b1d915ef82862077d3049e9aeb1c1f58241a | ea89fecb6d3016017aa0496171d95ff025caddc3 | refs/heads/master | 2020-06-04T03:32:06.626665 | 2018-05-18T04:30:20 | 2018-05-18T04:30:20 | 191,857,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 729 | py | import filereader
import filters
class Router(object):
def __init__(self, f):
self._fileReader = filereader.FileReader(f)
self._interfaceFilter = filters.InterfaceFilterPort()
self._staticFilter = filters.StaticFilter()
self._fileReader.addFilter(self._interfaceFilter)
self._fileReader.addFilte... | [
"gg.russia.crew@gmail.com"
] | gg.russia.crew@gmail.com |
368dcffda7f96405c7f7b0b4251a2e5f2ce4c54d | 516796a4a2eef3ebf7c599418363373bb1ffcb0d | /student_school_administration_tool.py | 1daa7333eec7e75d0a009e552af059ffdbabb8c1 | [] | no_license | sriraj33/school_admin_tool | 477b14e1fcc14738dd4d6cc7c4ea75aa6615915c | 54e639115f83a5b8a61d9092a712cc97b3401b1e | refs/heads/master | 2022-12-06T08:58:14.584607 | 2020-08-19T13:30:46 | 2020-08-19T13:30:46 | 288,739,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,394 | py | import csv
def write_into_csv(info_list):
with open("student_info.csv", "a", newline="")as csv_file:
writer = csv.writer(csv_file)
if csv_file.tell() == 0:
writer.writerow(["Name", "Age", "Number", "Email ID"])
writer.writerow(info_list)
i... | [
"noreply@github.com"
] | noreply@github.com |
ef2644e1c6043bf598e5787f0d0496d14ec53188 | 686c268c0c29a8adb24a7cce0bb7f3dd26dabb5f | /scrape_mars.py | 46a08f61b426e03f574575f1f3ff14f6656d8f79 | [] | no_license | r33nava/Mission-to-Mars | 9b4e8931be04525ed772ce9b8e252590410e54ca | 297340d631e80ed85032959dc35d2e7671d276d9 | refs/heads/master | 2020-04-25T01:26:02.161245 | 2019-05-05T04:17:22 | 2019-05-05T04:17:22 | 172,408,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,749 | py |
# coding: utf-8
#Imports & Dependencies
from splinter import Browser
from bs4 import BeautifulSoup
#Site Navigation
executable_path = {"executable_path": "/Users/r33nava/Downloads/chromedriver"}
browser = Browser("chrome", **executable_path, headless=False)
# Defining scrape & dictionary
def scrape():
final_da... | [
"noreply@github.com"
] | noreply@github.com |
a6ca5478a1318faad2f8dd58a438cf120afd7ab0 | 9b08d0b422df377a7890820c01ea3b5e266abd70 | /html_downloader.py | 7332d8be05cdec5a9f1c5f27bad51f6932dfab3a | [] | no_license | jizhidianxue/wiki_spider | 238b9f2ea17b4c1f8067d611a85ed07af65eb5e3 | 45ec5f5ead1d38fb1d757f198816daa91685314f | refs/heads/master | 2020-04-01T04:01:03.863130 | 2018-10-13T07:18:36 | 2018-10-13T07:18:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 780 | py | import string
from urllib import request
from urllib.parse import quote
import requests
class HtmlDownloader(object):
def download(self, url):
if url is None:
return None
kv = {
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.... | [
"zyang7@zju.edu.cn"
] | zyang7@zju.edu.cn |
604462ed935d3a7cb285c795360481b9dce62d44 | f1c6178b5f0bb6cbd3d42d9326e9f9c41701e0a6 | /Day 11/d11.py | 29bb6a6108fd358dc789fd51e8abb12082c212e6 | [] | no_license | princemathew1997/random-python | 779d377fb43a39b37584b7f3a5702f0f29e98ad0 | 80b9065353525465b87636efcd7879d5f7a8ae76 | refs/heads/main | 2023-01-31T09:38:27.056368 | 2020-12-19T15:20:39 | 2020-12-19T15:20:39 | 319,009,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | #for loop
a=input("Enter a number")
rev=0
for i in a:
a=int(a)
b=a%10
rev=rev*10+b
a=a//10
print("Reverse of the number is",rev)
| [
"princepmd6@gmail.com"
] | princepmd6@gmail.com |
3580cc8016cea2fd44c3a59ab3750aa83cc6851d | 3e5f12dfc851a0f32b761d923e1e5b6ffd13d79c | /cleverbot.py | 2e5fd5dc7333520e826f273791f331991d6c39e9 | [] | no_license | paulbooth/Chaterr | 8590bd25fc47a54cf2c8b7a032fe20dd7c7b3ad6 | b39b30b88511cc70eaa350e249910ff0b311f51b | refs/heads/master | 2018-12-29T00:16:52.152256 | 2012-10-03T23:41:34 | 2012-10-03T23:41:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,343 | py | #!/usr/bin/python
"""
This library lets you open chat session with cleverbot (www.cleverbot.com)
Example of how to use the bindings:
>>> import cleverbot
>>> cb=cleverbot.Session()
>>> print cb.Ask("Hello there")
'Hello.'
"""
import urllib2
import hashlib
import re
import sys
class ServerFullError(Exception):
... | [
"thephantompaulbooth@gmail.com"
] | thephantompaulbooth@gmail.com |
9cc1c460455651b0f889ad516ee9646df9796df9 | 885c920bb2770289053816d23e26fad25bc24096 | /BinarySearch.py | 49474f551d54470a29af6628814e7d9591fed2ad | [] | no_license | mtuv/BinSearch | 00fe2d4ac3537c815f928a526f413e1fc4f44364 | 657ec74aafb11ea11857fd33672525692421e805 | refs/heads/master | 2022-04-20T09:48:22.294758 | 2020-04-15T03:43:00 | 2020-04-15T03:43:00 | 255,797,465 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 631 | py | def binary_search(array, target):
left = 0
right = len(array) - 1
while True:
if right < left:
return -1
midpoint = (left + right) // 2
if array[midpoint] < target:
left = midpoint + 1
elif array[midpoint] > target:
right = midpoint - 1
... | [
"63384676+mtuv@users.noreply.github.com"
] | 63384676+mtuv@users.noreply.github.com |
0b13920f4b7bf9af5f88456f7cab77b587438f66 | bfd75153048a243b763614cf01f29f5c43f7e8c9 | /1906101097-李波/0303text2.py | 141c3d75c1e836526e0ff73784811f0195b795ac | [] | no_license | gschen/sctu-ds-2020 | d2c75c78f620c9246d35df262529aa4258ef5787 | e1fd0226b856537ec653c468c0fbfc46f43980bf | refs/heads/master | 2021-01-01T11:06:06.170475 | 2020-07-16T03:12:13 | 2020-07-16T03:12:13 | 239,245,834 | 17 | 10 | null | 2020-04-18T13:46:24 | 2020-02-09T04:22:05 | Python | UTF-8 | Python | false | false | 102 | py | class Test:
def prt(self):
print(self)
print(self.__class__)
t = Test()
t.prt()
| [
"2974011252@qq.com"
] | 2974011252@qq.com |
9da746164e40ff74bb887fd59775557656eb228e | 21e87dc5abaf8c8dfe7adfb72c38648f415d038c | /16_developer_tools/11_compileall/example/subfolder2/c.py | 4713d0f8c91464a958dcfae43283a515af70bba3 | [] | no_license | ariesduanmu/python3_standard_library | f2badbb6047b6003ddeccb77ba2892074510f0ff | 905ae53d0970be442bcf3d2a9dc3eadbc58367e5 | refs/heads/master | 2022-04-23T21:05:52.862076 | 2020-04-23T16:44:14 | 2020-04-23T16:44:14 | 241,277,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | # -*- coding: utf-8 -*-
# @Author: Li Qin
# @Date: 2020-02-24 09:30:22
# @Last Modified by: Li Qin
# @Last Modified time: 2020-02-24 09:30:56
def minus(a, b):
return a-b | [
"aries.duanmu@gmail.com"
] | aries.duanmu@gmail.com |
d06b868fa88c5d499dd32895fd542a19fc18deb0 | eed7b5aa4861086d34e539e7bbfeff4286506692 | /src/Game/Effects/spend_power.py | 2286d1f6e407736c8ea6bf6088203090a386bc5c | [] | no_license | dfwarden/DeckBuilding | 0be2ccb68fc9a69c8eaa1d8acedeaa7cebef1a31 | 0b5a7573a3cf33430fe61e4ff8a8a7a0ae20b258 | refs/heads/master | 2021-01-18T09:52:51.880892 | 2015-02-03T03:21:17 | 2015-02-03T03:21:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py |
class SpendPower:
""" Represents an effect to spend power this turn """
def __init__(self, power):
""" Initialize the Effect with the power to spend """
self.power = power
def perform(self, context):
""" Perform the Game Effect """
context.owner.spend... | [
"cloew123@gmail.com"
] | cloew123@gmail.com |
ad8ea5912f2475677a294ad6b496f6e6354dab53 | f7fe9c722b8fa7ed6e66080053706a495fffb2d8 | /tensorflow/python/distribute/failure_handling/failure_handling.py | 0acb76e8a30174efd1c32a7cf020cdaea0d941c2 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause"
] | permissive | Poet-LiBai/tensorflow | 832d9d8ddb58b5560ba19119cf107bbe857208e7 | f354ef21ae067a73fbc2ab45a7a5ceda4b0a1ff4 | refs/heads/master | 2022-05-02T04:06:27.411162 | 2022-04-21T02:45:39 | 2022-04-21T02:49:33 | 155,213,121 | 0 | 0 | Apache-2.0 | 2018-10-29T13:04:55 | 2018-10-29T13:04:55 | null | UTF-8 | Python | false | false | 35,947 | py | # Copyright 2022 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
50c78cdca2d41ecc29bc6c3d7e3bad53b774a4ba | aed7373081b696b9bcfe9219f9c97272d1a04421 | /app/clue/add_questions.py | 888e894088767b25edb980c8017b794ca4eb56ce | [] | no_license | zeo210/jGame | fa20fbcfada2df87d89cd0224ca78a6d46dac44a | 2ff98ae3306d4427046d9c2c82183f097bf2ba28 | refs/heads/master | 2016-09-15T17:54:08.986834 | 2015-02-26T00:55:06 | 2015-02-26T00:55:06 | 28,906,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,469 | py | from app import db, basedir
from app.clue.models import Episode, Value, Category, Answer, Clue
import csv
import os
def replacing_normalize(string):
return string.decode('utf8').encode('ascii', errors='xmlcharrefreplace')
def add_questions(target):
with open(target) as open_csv_file:
csv_reader = csv... | [
"ribo.2102@gmail.com"
] | ribo.2102@gmail.com |
fcfe661e79630bab10199d1b2d0a546070ee7f80 | 4a22680287ffa15e411da187aa4999ecff006e4c | /python/work/spider/get_movie_tagname.py | a732ee94795ea7d555ee6e55dac8bcdedfeee2d7 | [] | no_license | bopopescu/develop | cd5ab34c0d08fd173dce6efdb863fddfcd0323c6 | 3eee463da36b4da773b933d252038dfe48cd8fae | refs/heads/master | 2022-11-22T23:47:29.565352 | 2018-07-02T02:00:59 | 2018-07-02T02:00:59 | 281,995,209 | 0 | 0 | null | 2020-07-23T15:56:03 | 2020-07-23T15:56:02 | null | UTF-8 | Python | false | false | 5,872 | py | #-*- encoding:utf-8 -*-
'''
Created on 2017-04-21
@author: dedong.xu
@description: 爬取电影的标签
'''
#standard lib
import re
import json
import time
import urllib2
import logging
import random
#3rd lib
from lxml import etree
from poster.streaminghttp import register_openers
base_get_url = "http://10.10.3.196:8080/tool/v... | [
"buildbot@goland.cn"
] | buildbot@goland.cn |
f4b602b08c5ee4b186dcd6141f1093234617e993 | a1a1a1f2b3d026449c953d4a84a3a95c22d5ef11 | /experiment_results/performance_stats/analysis.py | e0586defb60e4478101d768eab1a176ae013e0d0 | [
"BSD-3-Clause"
] | permissive | molguin92/paramics_traci | 810ab8aac1ab73a8bbd62e0f71c0bde9c5f692f6 | adcc38785c165ec4b668e2b587f615cf5461e1b0 | refs/heads/master | 2021-01-22T04:01:56.332570 | 2017-06-16T21:47:55 | 2017-06-16T21:47:55 | 81,477,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,417 | py | import matplotlib
import pandas
from matplotlib import pyplot
from matplotlib2tikz import save as tikz_save
from psutil import virtual_memory
import numpy
matplotlib.style.use('ggplot')
pyplot.interactive(False)
def to_min_secs(x, pos):
x = int(x)
minutes = x // 60
seconds = x % 60
return '{:02d}:{:0... | [
"molguin@dcc.uchile.cl"
] | molguin@dcc.uchile.cl |
5f00557a89702a8281ec74a5b343517935a20879 | 7782f56bc9d9d2271263e29c3f747b1169c36881 | /las2dem.py | 9a9e19ff644c1976c1a14b0828df59954c9a1f26 | [
"MIT"
] | permissive | manolaz/map2mesh | 6b1bc500a4179c4ac9df3ea9da51e4790977e44e | 19fa22043af42a8a76187b289ac54c02527eede2 | refs/heads/master | 2022-12-30T05:15:07.145619 | 2020-09-19T16:25:20 | 2020-09-19T16:25:20 | 261,340,219 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 526 | py | from WBT.whitebox_tools import WhiteboxTools
import click
wbt = WhiteboxTools()
wbt.wbt.set_working_dir("./")
@click.command()
@click.option('--sourcefile', prompt='LIDAR Poincloud LAS sourcefile relative path?')
def lidar2dem(sourcefile):
export_file_name = (sourcefile).strip('.las') + '.tif'
wbt.lidar_idw_i... | [
"trungupdate@gmail.com"
] | trungupdate@gmail.com |
fe7513f7710b742033b78053789207899a5d0c59 | 2d64c6aae362a7b447d19b53dc97a1ca9fdabcec | /insertPosition.py | b65ff003a591ac9816916803ad16898cc212d979 | [] | no_license | rahuljha12527/GeeksForGeeksPyhtomCourse | 867ec6a57115ba7ce949ab00ad31c12b48d0dbc1 | bd15b4e26f0824ddc5b3faa60e0a3d76cd4bf173 | refs/heads/master | 2023-08-16T04:59:09.570075 | 2021-10-09T17:58:44 | 2021-10-09T17:58:44 | 387,244,469 | 0 | 0 | null | 2021-10-09T17:58:45 | 2021-07-18T18:33:14 | Python | UTF-8 | Python | false | false | 686 | py | def insertAtPosition(head,pos,data):
#code here
temp=Node(data)
if pos==0:
#print(temp)
tempp=Node(data)
tempp.next=head
#print(temp)
return tempp
len=0
curr=head
while curr:
curr=curr.next
len=len+1
if pos>len:... | [
"rahuljha12527@bitbucket.org"
] | rahuljha12527@bitbucket.org |
0b7ceb9c5e76556898ae43c7eaaa195f004fd20e | 99a1753c8c7558d6a1c3e66173ad45e791e1ee96 | /Day4/list0104_1.py | 8e6a11d57df98fae7afbd5ca8cb57831277a0e6f | [] | no_license | YunjinJo/PythonProject1 | 16fb7ed2d512cb5c7b12394699f9606da1d33236 | f4cb6ecec410dc766b61214880d48875a83bd267 | refs/heads/master | 2023-06-12T09:07:10.679735 | 2021-07-09T02:24:58 | 2021-07-09T02:24:58 | 380,867,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | import tkinter
root = tkinter.Tk()
root.title('맵 데이터')
canvas = tkinter.Canvas(width = 336, height = 240)
canvas.pack()
img = [
tkinter.PhotoImage(file = 'Chapter1/chip0.png'), #풀
tkinter.PhotoImage(file='Chapter1/chip1.png'), #꽃
tkinter.PhotoImage(file='Chapter1/chip2.png'), #나무
tkinter.P... | [
"black44jo@naver.com"
] | black44jo@naver.com |
3a477511b9a1515eb7f809725f01077e69591b5f | 44b912d5d3e396fb8907a86cb47f838196bd015f | /classes/song.py | 287d6b19ec3f58b2ebf4655d40d603912515b199 | [] | no_license | saerx/karaoke_weekend_homework | eff03fde6c7bde07496fabd85e567a0b09c1e7ea | f0d8c55451d18c1dab50b3056536b47559970877 | refs/heads/main | 2023-01-12T19:39:23.798602 | 2020-11-15T15:37:56 | 2020-11-15T15:37:56 | 312,588,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | class Song:
def __init__(self, code_num, title, artist, run_time, year):
self.code_num = code_num
self.title = title
self.artist = artist
self.run_time = run_time
self.year = year
| [
"saerlaith.robyn@gmail.com"
] | saerlaith.robyn@gmail.com |
08d5b19395bcf10b03b2efdd7b18b440b39aacd4 | c9404fdfc44d44ad0308534759a173338c2462ee | /app/routes.py | 6cc3b69b3d28598f7abde033f0508db4f662dfcc | [] | no_license | danielkocot/kitchenmaid | 1c575e97abbe892c180f549f1c94b699c7c0f579 | 6df737cf7d0dae6a8877b23e044a3cb7beeadb0a | refs/heads/master | 2021-05-05T17:19:02.532339 | 2018-01-14T16:34:30 | 2018-01-14T16:34:30 | 117,447,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,300 | py | from flask import render_template, flash, redirect, url_for
from app import app, db
from app.forms import NewForm
from app.models import Grocery
@app.route('/')
@app.route('/index')
def index():
return render_template('index.html')
@app.route('/list')
def list():
groceries = Grocery.query.all()
return r... | [
"danielgrycman@icloud.com"
] | danielgrycman@icloud.com |
9235562e15c62f994a5e57b01b43bd583aa0de3d | 1f35d14c9fd229182d86c2c0a7a36b092acc78fd | /11/convert.py | c95fa07a888932cc8e582b1544c40203a6da95b1 | [] | no_license | campoloj/SoftwareDevelopment2016 | b160824b15634bfa2bab91da628cee2ab458862b | c04863a4f01e755988afc5592bfd1f65b4d39a0e | refs/heads/master | 2020-05-23T07:54:10.272046 | 2017-01-30T21:05:29 | 2017-01-30T21:05:29 | 80,461,277 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,215 | py | from dealer.globals import *
from dealer.dealer import Dealer
from dealer.player_state import PlayerState
from dealer.species import Species
from dealer.traitcard import TraitCard
from dealer.action4 import Action4
from dealer.action import *
class Convert(object):
"""
Methods for converting between JSON inpu... | [
"Sam@SLucyk.local"
] | Sam@SLucyk.local |
291114857f37d3d78566776fdf66822d72158cd2 | b4eb63fa4dea38b102e1f307ffef55741cb799e6 | /testcode.py | 29ef18d1562699267fac49c16e04ae3f5efff386 | [] | no_license | venkpras/unfinished-work | d0a7cabf5a91424a945eba77b84fbce870dd556d | fcb4497289fa08147f4aa862581c2be29e7fb82c | refs/heads/main | 2023-03-18T23:38:16.998868 | 2021-03-15T11:34:47 | 2021-03-15T11:34:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | import sys
sys.path.append(".")
import json
from Organization import Organization
p = Organization()
p.dump_schema()
| [
"venkpras92@gmail.com"
] | venkpras92@gmail.com |
ef6fcee73ceb037040e12f062adc54ae90566b7b | 7e9730526ffd4f4a8784ec43a329744a05ce0b9a | /english_dict.py | 10ec0a301780dc74972d599ba77b313bbc521c80 | [] | no_license | 960314scott/python200820 | 8e64672dbb0c43fd9c280c23defe81f74dec430e | 00ecc0b78ff72cccd7cc5c4486c841663f849985 | refs/heads/master | 2022-12-03T10:59:55.097393 | 2020-08-20T07:34:37 | 2020-08-20T07:34:37 | 288,938,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,339 | py | d = {}
print('歡迎來到英文高手字典。')
while True:
print('1.新增字典')
print('2.列出字典')
print('3.英翻中')
print('4.中翻英')
print('5.測驗')
print('6.離開')
option=input('請輸入選項:')
if option == "6":
break
if option == "1":
while True:
voc = input('請輸入英文單字,退出請輸入0:')
... | [
"noreply@github.com"
] | noreply@github.com |
4ad418861639bf2757ac0706d1208fdf8bc7e3df | a73e07ee85f159f18bebea0e755dab2d577d1c54 | /NLP/BERT/bert_naver_movie.py | 6f72644747369f352250ce3feeaa0667160ecaa5 | [] | no_license | bbiyongel/TIL | 469ae2ad30adfaa9f321c9b2f7bc513fed85e33c | 487ceaf7448461a745f532f9e75637e540b7eecc | refs/heads/master | 2021-08-17T04:28:57.050409 | 2021-07-24T20:55:04 | 2021-07-24T20:55:04 | 242,614,208 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 20,451 | py | # -*- coding: utf-8 -*-
"""bert_naver_movie.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1tIf0Ugdqg4qT7gcxia3tL7und64Rv1dP
# **네이버 영화리뷰 감정분석 with Hugging Face BERT**
BERT(Bidirectional Encoder Representations from Transformers)는 구글이 개발한 사전훈련(... | [
"bbiyongel@gmail.com"
] | bbiyongel@gmail.com |
a5a93d8c75a41abbea1d7fc918fc011fa840eb02 | 6a7e2dd291d8dcc5a7fcf146c558ae240b2afca4 | /Daily Flash/week 2/day 5/MySolutions/Python/Program2.py | 96010e780db3f7514f6d3a89290d3b141bb27787 | [] | no_license | sanvedj/MayuriC2WT | f35579ad56fa266bbedeea1c7e9c4c448f445c35 | 029eb05a95f9b5958d627c253583c40b80db2adc | refs/heads/master | 2021-01-03T12:14:13.804290 | 2020-02-12T18:05:19 | 2020-02-12T18:05:19 | 240,080,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py |
print("\nNumbers ranging between 1 to 100 that are divisible by 4 and 7 : \n")
for i in range(1,101):
if(i%4==0 and i%7==0):
print(i,end=" ")
print()
'''
Output :
(base) mayuri@mayuri-PC:~/C2WT/Daily Flash/week 2/day 5/MySolutions/Python$ python3 Program2.py
Numbers ranging between 1 to 100 that are div... | [
"sanvednjoshi007@gmail.com"
] | sanvednjoshi007@gmail.com |
cfd612d29ddd306d4cfbfe6a4835fb72965fa868 | 25afe2f2ea7d4d7a6582d33548164a49a11bcf4c | /start_gui_v2.py | 4297c1a30013dfa5d012ad096dbe99d2c2e6cf85 | [] | no_license | hibbertm71030/02_mystery_box | e0b91cc4f04a3f80b9ac9b21565deba1cc68dcef | 02190e94cd90fd3668f2845c66a7291c0322a364 | refs/heads/master | 2023-06-21T00:39:25.833648 | 2021-07-30T00:30:40 | 2021-07-30T00:30:40 | 377,346,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,971 | py | from tkinter import *
from functools import partial
import random
# initial dialogue, asks user for money and stakes
class Start:
def __init__(self, parent):
# gui to get starting balance and stakes
self.start_frame = Frame(padx=10, pady=10)
self.start_frame.grid()
# set initial ... | [
"60630392+hibbertm71030@users.noreply.github.com"
] | 60630392+hibbertm71030@users.noreply.github.com |
2ef11f6cdbf8403c0d448a2d67022c40b83c6620 | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-gsn-edf/gsn-edf_ut=3.5_rd=0.8_rw=0.06_rn=4_u=0.075-0.35_p=harmonic-2/sched=RUN_trial=60/sched.py | 48c7bde40359bfb09d24223c9a5ccb1161b938c2 | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | -X FMLP -Q 0 -L 3 104 400
-X FMLP -Q 0 -L 3 78 300
-X FMLP -Q 0 -L 3 69 300
-X FMLP -Q 0 -L 3 64 300
-X FMLP -Q 1 -L 2 62 250
-X FMLP -Q 1 -L 2 54 175
-X FMLP -Q 1 -L 2 49 300
-X FMLP -Q 2 -L 2 49 150
-X FMLP -Q 2 -L 2 43 150
-X FMLP -Q 2 -L 2 37 250
-X FMLP -Q 3 -L 1 35 250
-X FMLP -Q... | [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
7090cad3d345836cdd617571aba4f8dc0ed2c5e2 | 4e3a302c492018b15c06bdbc582ccce4ade51d48 | /Hotal/wsgi.py | c4d169262d82cc90b0d00af7cf96774213fab162 | [] | no_license | RmdGroups/Hotal | 8e2055562e36bb911585d978dcd0b1e0c75dc7dc | 84f78e3a4310ae744d825475415667695d70b208 | refs/heads/master | 2022-07-02T21:54:55.780628 | 2020-05-10T10:36:15 | 2020-05-10T10:36:15 | 262,763,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | """
WSGI config for Hotal project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTING... | [
"rmdgroup257@gmail.com"
] | rmdgroup257@gmail.com |
5309fa1188f170b8efbe4b43b64fe524a1b8e1e9 | db8ab70de135d8bddc2c6df865b98ed76c2b92ee | /model/toxic_comment_classifier.py | f0bf2a9509d6372736d134cd7b3551e2797e332d | [] | no_license | boyuan12/ToxicBlockPlus | 718af4970f27e9eba9c454268a75c53c007f7737 | f90a46b9748a8d4dcdfc9e8c19279cc6aeed46c5 | refs/heads/main | 2023-02-26T21:20:56.878995 | 2021-02-09T01:15:34 | 2021-02-09T01:15:34 | 335,865,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,278 | py | from typing import List
from bentoml import api, artifacts, env, BentoService
from bentoml.frameworks.keras import KerasModelArtifact
from bentoml.service.artifacts.common import PickleArtifact
from bentoml.adapters import DataframeInput, JsonOutput
from keras.preprocessing import text, sequence
import numpy as np
im... | [
"boyuanliu6@yahoo.com"
] | boyuanliu6@yahoo.com |
ec1b320c98c0e05566a88dde52772385140c407c | 3d09a087f2a41d24df4b5821fac1d38140bb984d | /hw4/radial_spline.py | f337224ab9d2e135eb96e92408d575d9ead188a0 | [] | no_license | andresoro/Numerical-Analysis | 5a31f7f4c7f0afa8ae584715bc6cb3d8595b07b4 | fdb68fbc4e65c4dbfd8b39def99f3f41dd0ad56b | refs/heads/master | 2021-01-25T09:52:32.992802 | 2018-05-01T15:11:03 | 2018-05-01T15:11:03 | 123,322,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,034 | py | # Compare and contrast natural cubic spline vs radial basis function interpolation
from scipy.interpolate import Rbf as radial
from scipy.interpolate import CubicSpline as cubic
import numpy as np
from matplotlib import pyplot as plt
# The funciton compare plots the cubic and raidal interpolation methods
# for a give... | [
"ao15@my.fsu.edu"
] | ao15@my.fsu.edu |
ff3bdb24aacb03d36b3c3e500bc0329ae28e5735 | 87f7de83e8d1a536a06b5c39b4b1aaa1e95f7b9e | /examples/full-example/app/models/auth.py | 7f3cf361301c7c19d36483bb72b1ff5a68ac72b2 | [
"MIT"
] | permissive | MushroomMaula/fastapi_login | 048a68ac02989e35b0ae880671a2589ca7047447 | eb50ed4f528c28d15816166634d7ba3024484f84 | refs/heads/master | 2023-08-31T09:40:06.603049 | 2023-07-27T11:36:00 | 2023-07-27T11:36:00 | 216,593,146 | 553 | 62 | MIT | 2023-08-24T11:37:53 | 2019-10-21T14:47:00 | Python | UTF-8 | Python | false | false | 110 | py | from pydantic import BaseModel
class Token(BaseModel):
access_token: str
token_type: str = "bearer"
| [
"maxrd79@gmail.com"
] | maxrd79@gmail.com |
7b56d48d91936f9449bf341f94482ffc72672cfe | bf1bc5bfba2d8b50b7663580dfddd71da7dcab61 | /codingame/medium/war.py | 1cf869425aaef6dbf590762c1e72d410a3316434 | [] | no_license | kpbochenek/algorithms | 459a4377def13d5d45e3e0becf489c9edd033a5e | f39d50fe6cd3798a8a77a14b33eecc45412927fa | refs/heads/master | 2021-05-02T09:35:54.077621 | 2016-12-27T18:45:13 | 2016-12-27T18:45:13 | 38,165,785 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,298 | py | import sys, math
from collections import deque
def convert(x):
if x.startswith("10"): return "10"
if x[0] == 'J': return "11"
if x[0] == 'Q': return "12"
if x[0] == 'K': return "13"
if x[0] == 'A': return "14"
return x[0]
n = int(input()) # the number of cards for player 1
qp1 = deque([int(co... | [
"kpbochenek@gmail.com"
] | kpbochenek@gmail.com |
396bc614118dafa6269fb5a5634a91908fa560f2 | 9f3ab101aaec1e94f61666a1639b5dd4ee8a9368 | /backend/exams/migrations/0006_auto_20210416_1551.py | 062845f7e533c0162cfdab275d04898d902939a7 | [] | no_license | fmcruz01/HSaoQuadrado | 6d6044b2bdbeccf762c96da4859e47d62a8e7c77 | fe592fb97cb193769e98afc9f200cb9c9d033dcb | refs/heads/main | 2023-07-29T11:40:42.313243 | 2021-09-10T19:04:56 | 2021-09-10T19:04:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | # Generated by Django 3.1.7 on 2021-04-16 14:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('exams', '0005_auto_20210416_1549'),
]
operations = [
migrations.AlterField(
model_name='question',
name='wrongAnswer... | [
"noreply@github.com"
] | noreply@github.com |
434bfb4f4cc27692073954c84c66e1218f428b56 | af47e1dd1405ebd5267e7f8cf22f7b4429fcef00 | /scattertext/termscoring/g2.py | 7ba2d01a83690dfca816ad03c8a93d0365684bad | [
"MIT",
"CC-BY-NC-SA-4.0",
"LicenseRef-scancode-proprietary-license",
"Apache-2.0"
] | permissive | JasonKessler/scattertext | 72ce3b35d71af595f7797de845ba93b4bb0091b4 | b41e3a875faf6dd886e49e524345202432db1b21 | refs/heads/master | 2023-05-11T06:42:51.108527 | 2023-05-06T19:23:59 | 2023-05-06T19:23:59 | 63,827,736 | 2,187 | 303 | Apache-2.0 | 2023-05-06T19:24:00 | 2016-07-21T01:47:12 | Python | UTF-8 | Python | false | false | 4,143 | py | import numpy as np
import pandas as pd
from scipy.stats import chi2
from statsmodels.stats.multitest import fdrcorrection
from scattertext.termscoring.CorpusBasedTermScorer import CorpusBasedTermScorer
def g2_term(O, E):
res = O.astype(np.float64) * (np.log(O) - np.log(E))
res[O == 0] = 0
return res
de... | [
"JasonKessler@users.noreply.github.com"
] | JasonKessler@users.noreply.github.com |
2b0b60fa7dc054457ed41a697b42028cc176aa8f | e10a6d844a286db26ef56469e31dc8488a8c6f0e | /ml_debiaser/randomized_threshold.py | 11e80f5069ecc7299769e3dd9478b15431da9356 | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | Jimmy-INL/google-research | 54ad5551f97977f01297abddbfc8a99a7900b791 | 5573d9c5822f4e866b6692769963ae819cb3f10d | refs/heads/master | 2023-04-07T19:43:54.483068 | 2023-03-24T16:27:28 | 2023-03-24T16:32:17 | 282,682,170 | 1 | 0 | Apache-2.0 | 2020-07-26T15:50:32 | 2020-07-26T15:50:31 | null | UTF-8 | Python | false | false | 10,142 | py | # coding=utf-8
# Copyright 2022 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
22cbea452b25b6ffe759506fa95cb4bcd5cc0172 | b0afba2b6da272d4aa75abd346dce499a2ecb387 | /tests/ontarget/test_mpfexp.py | c08d78e49b91abf6f3d7c90959d8645b929f4d84 | [
"MIT"
] | permissive | PMunch/mpfshell | 2d04d619043ce4e7def4363087805d70e42f8c50 | 14190f205f24aea195999e4ff1e77ee15cff507f | refs/heads/master | 2021-01-11T23:57:54.334874 | 2017-02-17T18:15:57 | 2017-02-17T18:15:57 | 78,651,540 | 8 | 3 | MIT | 2023-01-15T12:03:24 | 2017-01-11T15:23:09 | Python | UTF-8 | Python | false | false | 9,311 | py | ##
# The MIT License (MIT)
#
# Copyright (c) 2016 Stefan Wendler
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy,... | [
"sw@kaltpost.de"
] | sw@kaltpost.de |
5c547e31bbf908eaea567803e1bb8460a41d864b | acdeeec45bf16502fc3b2540dbb71478327f6be3 | /WeBrew.py | 641ab88008ff4f975fc6850b660a3e77ecc2992a | [] | no_license | jayjay300/pdp2017 | 4c8ff9664ed8c77766a8ebd811e0090fd3d40359 | 540d9d91be754e020c9cd6495c4b36dda1800c11 | refs/heads/master | 2021-10-09T21:46:27.276515 | 2019-01-03T19:19:38 | 2019-01-03T19:19:38 | 112,773,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,124 | py | #!/usr/bin/python
import os
import glob
import time
import blescan
import sys
import requests
import bluetooth._bluetooth as bluez
import pygame
import numpy as np
import tkinter as tk
import RPi.GPIO as GPIO
from PIL import ImageTk,Image
from firebase import firebase
from datetime import datetime
import... | [
"noreply@github.com"
] | noreply@github.com |
b2d99dd00dae5887c8c3aece4c053cd8a48a2e01 | 9aae9be07db7fb030c976a408cb5473ccab658c3 | /Arrays and Strings/Check if given strings Anagrams/CharacterCount.py | 34faa8cc817c302fadd1a3e04e05383b00b5e4d3 | [] | no_license | deepaksattiraju249/Algorithms | 90f76d256baede01ab9308fcc5f33fdbbf91f725 | aac1e6851ac8c4ad5ff6d5a3b7b06cb99094005d | refs/heads/master | 2021-01-01T20:05:43.617431 | 2016-02-03T11:59:19 | 2016-02-03T11:59:19 | 19,768,686 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 737 | py | # Anagrams are the permutations of the same characteres
#One layman solution would be count the number of characters
#if character count of both the strings match then they are Anagrams
def CheckIfAnagrams(s1,s2):
if len(s1) != len(s2):
return False
count_map = dict()
for i in xrange(26):
count_map[chr(i+9... | [
"deepaks.iiti@gmail.com"
] | deepaks.iiti@gmail.com |
d5b305474874553f115cb231dc005fedb1503afc | a35083d8cba097791557b037aacad8a80720da15 | /blog/models.py | 97e3a080c2f6dad0b25a950cb173c7a92bb0435c | [] | no_license | petwam/my-first-blog | e5782dacafeeec183fe9632210bb73c1be5c2510 | b1286ed2a6dc241031132b6379adae783761a23e | refs/heads/master | 2020-03-21T09:19:02.028245 | 2018-06-23T13:26:43 | 2018-06-23T13:26:43 | 138,393,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | from django.db import models
from django.utils import timezone
# Create your models here.
class Post(models.Model):
author = models.ForeignKey('auth.User', on_delete=models.CASCADE)
title = models.CharField(max_length=200)
text = models.TextField()
created_date = models.DateTimeField(
default=tim... | [
"petwamasett@gmail.com"
] | petwamasett@gmail.com |
5a43d0bd963e1b2cf3ebfc5e78bffe0f08e5f2b7 | 37d1fdd09178194bd93d39be67a5e2e702fb4c5a | /task_2/regression.py | d2df1a66d8de7f6a4e0b26d3eb2e4b1f1610dc8e | [] | no_license | Polad27/MLEng_course | 3492cacf3717978d602b65f3cb88f6b50b35e57c | 53fa161380b6d8383d88e9db4b2d475ae3bf038a | refs/heads/main | 2023-06-01T13:48:29.275541 | 2021-06-15T06:49:13 | 2021-06-15T06:49:13 | 310,322,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,505 | py | '''This script performs regression fitting'''
import json
import pickle
import yaml
import pandas as pd
from sklearn.linear_model import LinearRegression
from sklearn.preprocessing import StandardScaler, MinMaxScaler, MaxAbsScaler
from sklearn.model_selection import train_test_split
from sklearn.metrics import r2_scor... | [
"polad271998@gmail.com"
] | polad271998@gmail.com |
a9478d67a35ca8973d20fa07c06a36ff602e04fa | 35e63ec5c18496f36da6ef953b39d7efa9d9bbde | /safelife/render_text.py | 6e3caaf4370416e4fd61bab8bad9600b5c5dbfda | [
"Apache-2.0"
] | permissive | pde/safelife | f4e20aa8b6b05ad2c355ee8ee9e8c87e9f91c5f8 | 6fed5b34e72a17d58770f2db0f87e1337d25bf0c | refs/heads/master | 2023-01-05T20:18:49.524793 | 2020-08-04T15:09:55 | 2020-08-04T15:09:55 | 276,539,404 | 0 | 0 | Apache-2.0 | 2020-07-02T03:29:38 | 2020-07-02T03:29:37 | null | UTF-8 | Python | false | false | 5,913 | py | import numpy as np
from .helper_utils import recenter_view
from .safelife_game import CellTypes, GameWithGoals
background_colors = [
'\x1b[48;5;251m', # black / empty
'\x1b[48;5;217m', # red
'\x1b[48;5;114m', # green
'\x1b[48;5;229m', # yellow
'\x1b[48;5;117m', # blue
'\x1b[48;5;183m', ... | [
"clwainwri@gmail.com"
] | clwainwri@gmail.com |
e548260687b2b3fe03959e30d3cced5ff9b53e89 | 73d9480df1e4d137ec03b985d1eae6810a63a325 | /Exercicios-Mundo1/ex005.py | 66b8fa718acb1471b2b7e82221a0f2968e95c61a | [
"MIT"
] | permissive | WeDias/RespCEV | 335bc4dd0ade352205056b4007e6d127f6484d69 | 3cf0918c5c90e3b2d6dc7e57f2824436c639c04c | refs/heads/master | 2020-08-19T05:17:49.971950 | 2020-04-29T19:13:24 | 2020-04-29T19:13:24 | 215,882,465 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | num1 = int(input('Digite um numero '))
ante = num1 - 1
suce = num1 + 1
print('O antecessor de {} é {}!\nE o sucessor de {} é {}!'.format(num1, ante, num1, suce))
| [
"noreply@github.com"
] | noreply@github.com |
0397c9f0d2e40acf497622b8b4cb2e5299202bba | 471ea669e21abdb4e4915610b4b5eb43ea3cffe9 | /剑指Offer/31.整数中1出现的次数.py | d663b71492aabfba5cd8ae82b899c772a9d0eb39 | [] | no_license | JiahuaLink/nowcoder-leetcode | 26aed099e215cfc1d8e8afffc62fafa26b26b06f | 0155fc33511cbe892f58550d561d3aa3efcd56b9 | refs/heads/master | 2023-07-09T03:05:31.227720 | 2021-08-03T06:50:36 | 2021-08-03T06:50:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 883 | py | # 方法一:判断整数每个数字
class Solution:
def NumberOf1Between1AndN_Solution(self, n):
count = 0
for i in range(1, n+1):
temp = i
while(temp):
if temp%10 == 1:
count += 1
temp /= 10
return count
# 方法二:将整数转为字符串逐位判断
... | [
"noreply@github.com"
] | noreply@github.com |
fc6f9b5f0d9a97cad4ccddd1069c0fdef7f7a2a3 | 70f616beb3456268084d33d4445278b87641e2bf | /shortner/base62.py | 512ce56aa0c892abe3ed744cd3ea0cdafe2d27f8 | [] | no_license | Prashant-Surya/Url-Shortener | 59bf8f051ca91e70789438cb2861165ed9a4c4c3 | af053a5d9d97a7ba66a35d977474aa90bef08b4c | refs/heads/master | 2021-01-10T16:01:51.835095 | 2015-10-26T12:02:10 | 2015-10-26T12:02:10 | 44,124,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | ALPHABET = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
def base62_encode(num, alphabet=ALPHABET):
"""Encode a number in Base X
`num`: The number to encode
`alphabet`: The alphabet to use for encoding
"""
if (num == 0):
return alphabet[0]
arr = []
base = len(alp... | [
"prashantsurya@ymail.com"
] | prashantsurya@ymail.com |
77a0aa4b1eb0ec07f559139f79804985aa1f1f1a | 2c9ae9927f0d0a2242fd140988de9cda924ebf84 | /AcesWebsite 2nd assignment/aces/apps.py | 4fbeb3d5d12fb0416a73fc1e33ae469cf26bea52 | [] | no_license | amr-essam95/Aces-assignment | 822978c4cfdce36b64e119a70b8e56fedc60524b | eb7a8dcfe6f23f536eb0515d760ae12f7a25f30c | refs/heads/master | 2020-01-27T10:00:39.264096 | 2016-09-16T16:41:31 | 2016-09-16T16:41:31 | 66,290,291 | 0 | 0 | null | 2016-08-22T16:50:39 | 2016-08-22T16:43:47 | null | UTF-8 | Python | false | false | 84 | py | from django.apps import AppConfig
class AcesConfig(AppConfig):
name = 'aces'
| [
"noreply@github.com"
] | noreply@github.com |
7e21d7121464f05d9507f59568bbd12710e369c0 | 0d153f781d04c0fa925a864e03bf28d2bd61cb06 | /python/p6.py | 632e0aa1348fc584535221c3b9755116ca15a611 | [] | no_license | glovguy/project-euler-solutions | f9750cf1ca71a2aba9433f99d89838749aa9cf00 | 38f9c60d9d45f88d5d9a384404ab5d41cff491f0 | refs/heads/master | 2021-01-21T15:04:41.877811 | 2020-06-07T21:20:27 | 2020-06-07T21:20:27 | 57,855,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 600 | py | '''The sum of the squares of the first ten natural numbers is,
1^2+2^2+...+10^2=385
The square of the sum of the first ten natural numbers is,
(1+2+...+10)^2=55^2=3025
Hence the difference between the sum of the squares of the first ten natural numbers and the square of the sum is 3025−385=2640.
Find the differenc... | [
"karlsmith@bouzou.com"
] | karlsmith@bouzou.com |
76f8185eb90a42766f86ea066b38f022fd6156e5 | 131688c1006670be2bab5ce062521ce9b79b64af | /week2/design_hashset.py | ff2fc0f9e3e5b52cdb2f8f1875abad001dd4aa75 | [
"MIT"
] | permissive | ravichalla/wallbreaker | 4e3dc98ff02fd8a7bace2466c071c65a37124426 | 0d587f12c60df5e4bca47f9183484a69d284d1f5 | refs/heads/master | 2020-06-08T05:44:35.510146 | 2020-01-29T02:25:19 | 2020-01-29T02:25:19 | 193,169,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 959 | py | class MyHashSet:
def __init__(self):
self.capacity = 5000
self.arr = [None] * self.capacity
def add(self, key):
hash_val = hash(key) % self.capacity
if self.arr[hash_val] == None:
self.arr[hash_val] = [key]
else:
if key not in self.arr[hash_val]:
... | [
"ravichalla95@gmail.com"
] | ravichalla95@gmail.com |
2242f5feea29a26e6b09e2e4a6f0cd97b75bc380 | a7012b3477ddf1fc03b1b518be1bd9bb4760beb5 | /ABC/ver3/150/C.py | 5eff42cb254634dd8a8071bb455c3e6fb9cb4752 | [] | no_license | kou1127h/atcoder | f01e3e866dd4ad0ba4300b19077c4b107c89ae19 | 743375d4ea2486e512ff32a3c11f4daa8e51d7a4 | refs/heads/master | 2023-08-03T12:22:10.732140 | 2021-09-21T12:38:24 | 2021-09-21T12:38:24 | 378,305,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | import itertools
N = int(input())
p = list(map(int, input().split()))
q = list(map(int, input().split()))
index_p = -1
index_q = -1
i = 0
for v in itertools.permutations(range(1, N + 1), N):
i += 1
item = list(v)
# print(item, p, q)
if p == item:
index_p = i
if q == item:
index_q ... | [
"pg5027ace@gmail.com"
] | pg5027ace@gmail.com |
a9943a583e6f452fe4c46226bcfa68f8e05a8d57 | fec7236128869a511e37386431f2400c5231779c | /app/migrations/0001_initial.py | a0f734026915a8aa36e08d4c214cff07e00ed961 | [] | no_license | atul4113/erpms | d6d7b937f1521d21694fec8476dde49989635da6 | 291df243d0b6ea8c2565b55095c8a713aaa21ffd | refs/heads/master | 2020-04-02T01:48:09.417954 | 2018-10-20T06:20:05 | 2018-10-20T06:20:05 | 153,875,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,611 | py | # Generated by Django 2.0.7 on 2018-08-04 16:22
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Admin',
fields=[
('usr', models.CharField(m... | [
"atuladya.com@gmail.com"
] | atuladya.com@gmail.com |
72c7901ea07b1b8b35d17a2538d804c9b5f5c4e4 | b74e37b0610a2407f260be4918d36d6e47ee4c1c | /0x0F-python-object_relational_mapping/8-model_state_fetch_first.py | c660f95a4eb73c4038877f2e9e60930696bce4d0 | [] | no_license | GodsloveIsuor123/holbertonschool-higher_level_programming | 763a5ae7c17022511e20a6ae74993a967126ba04 | 3125108fe1127e141e2706136bd695f544015400 | refs/heads/master | 2023-03-15T04:43:58.914751 | 2021-02-11T02:05:14 | 2021-02-11T02:05:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | #!/usr/bin/python3
"""
prints the first State object from the database hbtn_0e_6_usa
"""
import sys
from model_state import State
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
if __name__ == '__main__':
user, psswd, db = sys.argv[1], sys.argv[2], sys.argv[3]
engine = create_engi... | [
"aarizatr@gmail.com"
] | aarizatr@gmail.com |
104c011f86d9c6a85c5c02e11010db2569b64e37 | c89b922235b5427f0ab1da6b4a07d595d60090e7 | /consumer.py | a4cefc5b274d2d17f469f5aa11244ea8015c588f | [] | no_license | ksharapani/rabbitMQ-demo | 345d89c4e5d8250a33ede630b91f3530e864d822 | ed26491f311bbd438df283700e9aedddb3c78173 | refs/heads/main | 2023-04-14T07:48:50.712628 | 2021-04-22T12:37:48 | 2021-04-22T12:37:48 | 360,482,270 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 996 | py | import pika
import sqlite3
connection = pika.BlockingConnection(pika.ConnectionParameters('localhost', 5672, '/',
pika.PlainCredentials("guest", "guest")))
channel = connection.channel()
reverse_number = 0
def recursive_reverse(number):
global rever... | [
"ksharapani963@gmail.com"
] | ksharapani963@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.