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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dc297c0b5e6036c2ea15e34e99425db785dd32f1 | f4434c85e3814b6347f8f8099c081ed4af5678a5 | /sdk/databoxedge/azure-mgmt-databoxedge/azure/mgmt/databoxedge/v2019_03_01/aio/operations/_operations.py | 00d071f258156e1def7090b7a8e641437310f9b5 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | yunhaoling/azure-sdk-for-python | 5da12a174a37672ac6ed8e3c1f863cb77010a506 | c4eb0ca1aadb76ad892114230473034830116362 | refs/heads/master | 2022-06-11T01:17:39.636461 | 2020-12-08T17:42:08 | 2020-12-08T17:42:08 | 177,675,796 | 1 | 0 | MIT | 2020-03-31T20:35:17 | 2019-03-25T22:43:40 | Python | UTF-8 | Python | false | false | 4,665 | 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"
] | yunhaoling.noreply@github.com |
87ecc7ac007f5c969b2bd1b877ba3d448bf3d058 | 542d5e2a2038c8c00d680024d601f66b1aeb01a2 | /run.py | 946f78b24637a291a2a2acf4176c6a0371268f54 | [
"MIT"
] | permissive | VyachAp/Sanic_explore | 902fc008953cc45d9d74ec9ac1063510949a943f | 45fd2b7f8efba148e50afb565cfd416aa6528de4 | refs/heads/master | 2020-08-05T01:47:20.886586 | 2019-10-02T13:48:38 | 2019-10-02T13:48:38 | 212,352,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66 | py | from app.main import start
if __name__ == '__main__':
start() | [
"apasov.v31@gmail.com"
] | apasov.v31@gmail.com |
149851cab0efe1df5420e4e5a5ed8968a71970f2 | 2b224080f819e83a0efb6a9cdadd9a1ad017a3b6 | /checker.py | 88d3b352d1cab0affee3a1520d699fa661de04f8 | [
"Unlicense"
] | permissive | Kr0nuzz/simple_checker | 064d12a20eb241aba80c8d0cd251891f40fc1a42 | 37c6fb33ff7f36fdf39bef843d201af4050f7a9c | refs/heads/main | 2023-02-17T07:09:13.916201 | 2021-01-18T11:35:45 | 2021-01-18T11:35:45 | 330,646,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,741 | py | import os
import requests
from time import sleep
import sys
def banner():
print ("""\033[1;32;40m _________.___ _____ __________.____ ___________ _________ ___ _______________________ ____ __._____________________ """)
sleep(0.1)
print (""" / _____/| | / \\______ \ | \_ _____/ \_ ___... | [
"noreply@github.com"
] | Kr0nuzz.noreply@github.com |
f745deca3f8bab4ea141b85d67a953beab121496 | 025fa245d4cbffdaa422287ed2f31c4d0442ee28 | /orders/api/serializers.py | 15a4a1cf958d28696d037af645fde921fd646007 | [
"MIT"
] | permissive | elcolie/zero-to-deploy | 01f346ca50b8ccb271faef23934abe6a487baca6 | 6191a33ef55af7c550c0e529a4e373bfe40bc014 | refs/heads/master | 2022-02-08T23:22:17.008555 | 2018-06-15T19:39:06 | 2018-06-15T19:39:06 | 137,083,690 | 0 | 0 | MIT | 2022-01-21T19:35:33 | 2018-06-12T14:28:01 | Python | UTF-8 | Python | false | false | 1,228 | py | from rest_framework import serializers
from menus.models import Menu
from order_items.api.serializers import ShortItemSerializer
from order_items.models import OrderItem
from orders.models import Order
class OrderSerializer(serializers.ModelSerializer):
url = serializers.HyperlinkedIdentityField(view_name='api:o... | [
"sarit@elcolie.com"
] | sarit@elcolie.com |
4e68d6993b53a2ddd25f70df5669610a0df20cf0 | 952762035d7ffa7c46a2c7dc85063f08b1c4a975 | /2019/23/intcode.py | be46113b6662b2f5f65c6203efea2182ca7f225a | [] | no_license | pjot/advent-of-code | c8a59df25b3c1afa0e14fd22139b9ac3b789ff4d | 4b8b5c55c44dc8325caa2aeea7aa064a98738fd7 | refs/heads/master | 2023-03-10T20:22:44.724300 | 2023-03-04T21:01:02 | 2023-03-04T21:01:02 | 225,183,593 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,708 | py | def parse_file(filename):
with open(filename) as f:
code = f.readline()
ints = code.split(',')
program = [int(i) for i in ints]
return program
def parse_instruction(instruction):
full_instruction = '{:05d}'.format(instruction)
return (
instruction % 100,
int... | [
"peter.bergstrom@trioptima.com"
] | peter.bergstrom@trioptima.com |
defbbdf5962d84ec0bbfba2169060872f5f557fb | ed19a4048ae5d29e08548bbcbf5b68040248a47a | /emitter.py | 291dfb3f11a5006612b698921d13328e9aeaf716 | [] | no_license | auto-contest-kookmin/RPi-Laser-Emitter | 99bd49a5fe56471fb0e38c50418a2278066a71b5 | 2bcd0cae0e3bf8b2015aefb33aea8cb480476402 | refs/heads/master | 2020-09-22T08:32:45.682143 | 2019-12-01T11:34:38 | 2019-12-01T11:34:38 | 225,122,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | import RPi.GPIO as GPIO
import time
class LaserModule(object):
def __init__(self, channel):
self._channel = channel
# Setup GPIO
GPIO.setmode(GPIO.BOARD)
GPIO.setup(self._channel, GPIO.OUT)
def laser_on(self):
GPIO.output(self._channel, GPIO.HIGH)
def laser_off(s... | [
"xcm1321@gmail.com"
] | xcm1321@gmail.com |
7b07636c3c7bb911375af6bdece5352c14ca99d0 | 8306804d7f7805e5940cba4ce74c4fbd0ee5f2e2 | /TSP_veroviz.py | 0cb5cf63eb629dc8b6044b0f160a525a8545f79a | [] | no_license | Abhisheks2253/Travelling-Salesman-Problem | 3328eb56d9cdf046da220b9f97e65b63226a463f | e4290e411ce621006caa1644fa24d0c35443c05a | refs/heads/master | 2022-12-15T07:40:17.244472 | 2020-09-02T21:23:44 | 2020-09-02T21:23:44 | 289,111,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,249 | py |
import pandas as pd
import numpy as np
import csv
import random
import math
import time
import veroviz as vrv
vrv.checkVersion()
# Bounding Region:
# [There is no bounding region defined]
#Nodes selected here are the house locations of UB students in south campus
# Nodes:
nodesArray = [
{'id': 0, 'lat': 4... | [
"noreply@github.com"
] | Abhisheks2253.noreply@github.com |
fa003de4ee3de4e7bedcf10266cdb6a8c9a3f183 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02576/s945264148.py | c54a359be369f17e4f7c755d919335e3b79d3522 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 81 | py | n, x, t = map(int, input().split())
ans = t * (n//x)
print(ans+t if n%x else ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
84e3e88069624040064a50112d49a323593a3c36 | 40f80ef6a0f3004c76e8d9ac837ce4c894e83cbb | /023.py | b6e69825e05d5043f821f58cfdaee3dafa9d2039 | [] | no_license | unixwars/euler | f552a3f57e28d9f6bd218da82179524d5e52b679 | 634bf89d2420eb0ff81f0e8283324a353034b805 | refs/heads/master | 2016-09-11T12:00:09.351035 | 2012-01-08T20:41:38 | 2012-01-08T20:41:38 | 3,131,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,306 | py | #!/usr/bin/env python
# A perfect number is a number for which the sum of its proper
# divisors is exactly equal to the number. For example, the sum of the
# proper divisors of 28 would be 1 + 2 + 4 + 7 + 14 = 28, which means
# that 28 is a perfect number.
# A number n is called deficient if the sum of its proper div... | [
"taher@unixwars.com"
] | taher@unixwars.com |
cfd2398944de6b6983a74e0ad9c463b9ddd00a87 | 1ea4a27577095214f74d49e844bd145fdbfce894 | /L7Q2_Stamps.py | ff7dd61fc1a7b08bc7ff07be71fa68f1a87ef241 | [] | no_license | buchananwp/Udacity_CS101 | 6914a52754e63b48eedd64e440e66cbc74932cfa | 131916bc76ba027b018658ccb2edee42720f677b | refs/heads/master | 2021-09-07T17:37:20.515609 | 2018-02-27T00:10:26 | 2018-02-27T00:10:26 | 115,367,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,179 | py | # Define a procedure, stamps, which takes as its input a positive integer in
# pence and returns the number of 5p, 2p and 1p stamps (p is pence) required
# to make up that value. The return value should be a tuple of three numbers
# (that is, your return statement should be followed by the number of 5p,
# the number of... | [
"will@buchananwp.com"
] | will@buchananwp.com |
3f263a2f1abc45d83649b00dfc604ebb900b4cbd | fa7deca280e1443d5ca79e9910f295a668be14b0 | /compile.py | bc770262d10363c06f9b6fdd5e15420b7d681620 | [
"Apache-2.0"
] | permissive | tomas-cliqz/ichnaea | e210ba419eb2a69553594e3dd4dba2c56c88753a | 1e49cc694b1e9c850417ac093e81849b1886b19e | refs/heads/master | 2021-01-12T20:00:27.455686 | 2016-01-27T14:00:22 | 2016-01-27T14:00:22 | 49,965,385 | 0 | 0 | null | 2016-01-19T16:17:23 | 2016-01-19T16:17:22 | null | UTF-8 | Python | false | false | 1,686 | py | """
This script is used as part of the "make release" command used as part of
building an rpm of this entire virtualenv.
The rpm building process compiles all *.py files found anywhere in the
source tree, independent of whether or not these would actually be used.
It finds some Python files which aren't meant for the ... | [
"hanno@hannosch.eu"
] | hanno@hannosch.eu |
b652bbf07e425bd9481d1d655e332026544a5a6b | 14038cadd26336299b26ded06f0220cac281b2aa | /Archiv/Uebung/UE22/UE22_1.py | 7a9a79153065fc39b11ec2a827e4cd5b3c9ca132 | [] | no_license | KerberosHD/sj20_5ahit_ki_steiner | 85b01e68504692234d380d08f0b7f43f0534eaa9 | 54bcdc02468d4edfb32389f4cba57e937c11b6fa | refs/heads/master | 2023-08-15T22:01:22.744389 | 2021-09-30T20:06:10 | 2021-09-30T20:06:10 | 412,208,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,574 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
# imports
import numpy as np
from sklearn.metrics.pairwise import cosine_similarity
# In[2]:
cosine_similarity(np.array([4,0,5,3,5,0,0]).reshape(1,-1), np.array([0,4,0,4,0,5,0]).reshape(1,-1))
# Task 1
# In[3]:
cosine_similarity(np.array([4,0... | [
"t.steiner@htlkrems.at"
] | t.steiner@htlkrems.at |
4a34314cf3ab3799f0e9db22f7bf9934c45a1f33 | d0ff9af885dc01de43ae7bdd2d26d6370c7b7ab5 | /unsup_vvs/neural_fit/brainscore_mask/compute_rdms_from_activations.py | 6d62b4160899f47a41da16e2251033e1f396d3d0 | [] | no_license | augix/unsup_vvs | a09f89c7d002006f59ffbe223c9469e959949e04 | 168ed0d068d27b7a7ca1dd5c1ebc28fbe84f8c7c | refs/heads/master | 2023-07-17T05:55:27.630844 | 2021-06-24T01:27:28 | 2021-06-24T01:27:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,860 | py | import pickle
import argparse
import os
import sys
import pdb
from tqdm import tqdm
import numpy as np
RESULT_CACHING_DIR = '/mnt/fs4/chengxuz/v4it_temp_results/.result_caching'
DEFAULT_SAVE_DIR = os.path.join(RESULT_CACHING_DIR, 'computed_rdms')
ACTIVATION_DIR = os.path.join(
RESULT_CACHING_DIR,
'model... | [
"chengxuz@node07-ccncluster.stanford.edu"
] | chengxuz@node07-ccncluster.stanford.edu |
8a31fb2658e068c346166523f70684bc6035c3fc | 410f0d66049ca881dfdeb9b7f784bd70b1c3f6e7 | /bootea/bootea/pipelines.py | 1bcd7524443c973b2ed7217b2a7ddcccda6d3f42 | [] | no_license | ans2human/Scrappers | 1bdf5a1a4a34752c58fb18d45ac01e3cb54b5fe1 | cb2183d25a8af08284f2a6c1311b8da24c720b96 | refs/heads/master | 2020-03-19T20:41:01.244911 | 2018-06-11T11:27:17 | 2018-06-11T11:27:17 | 136,911,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,934 | py | from scrapy import log
from twisted.enterprise import adbapi
import time
import sys; sys.path.append("/users/user/appdata/local/programs/python/python36-32/lib/site-packages")
import MySQLdb.cursors
from bootea.items import test
class MySQLStorePipeline(object):
def __init__(self):
print ('init')
s... | [
"ans2human@gmail.com"
] | ans2human@gmail.com |
c71f7e03b5b575a44ab8dd19ebb66dc7e75e3cb3 | 8accbf963d943f513b78c10abf27bc6dc7a3ca3a | /Assignment3/MillerRabin.py | 5edd0b24200ddf4f3e985573ce72839a06cca7b8 | [] | no_license | huizhu912/Miller-Selfridge-Rabin-s_Primality_Test_Python | 25218813029f1933139db8582790de26b69996ac | 9ddafc29b95884e337f49e0d94b9b5ee8089b031 | refs/heads/master | 2021-01-10T18:53:39.447217 | 2014-06-27T01:12:39 | 2014-06-27T01:12:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | def MillerRabin1(input, base):
global n, result
n = input
A = base
result = False
k = 1
q = int((n - 1) / pow(2, k))
x = j = 0
if n == 2:
result = True
return result
if (n > 1) & ((n % 2) != 0):
while (q % 2) == 0:
k = k + 1;
q = int((... | [
"hzhu@scu.edu"
] | hzhu@scu.edu |
8c8128f4440d14c061e7ea63a3571cec1e9d6714 | 6f7dcc12e1f2c9d2646e2e73c88ce3ee2ec84413 | /setup.py | ea51ff7f3eaaafd18f3908d1de3341043380a4b0 | [
"MIT"
] | permissive | TJREVERB/iridium-cli | ebe9c9a45d82d8965d618433e8dc530c36bde95b | 5007688c8601eda0ba71c246af363b7653156b67 | refs/heads/master | 2020-05-21T01:58:57.512928 | 2019-05-11T00:26:15 | 2019-05-11T00:26:15 | 185,866,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | from setuptools import setup
setup(
name='iridium-cli',
version='0.1',
py_modules=['main'],
install_requires=[
'click',
],
entry_points='''
[console_scripts]
iridium-cli=main:main
''',
)
| [
"akashbbhave@gmail.com"
] | akashbbhave@gmail.com |
33d9a5f14e08e91b0a36cea7796270daf9f6d3fc | 71f19c14de97846193972830fbc9a4ec972d0ca9 | /website/management/commands/tweet_something.py | 9c69a942adf0593825c1b90f2c1043deb803ba42 | [] | no_license | wbt/govtrack.us-web | 87790050aaba83ca6cca16e26ec796603317e7da | c94c0dfdc809ad506a54108802a2328cc26ca97d | refs/heads/master | 2021-01-25T06:25:24.943845 | 2017-07-26T13:55:01 | 2017-07-26T13:55:01 | 93,572,164 | 0 | 0 | null | 2017-09-24T03:54:30 | 2017-06-06T23:15:59 | Python | UTF-8 | Python | false | false | 7,400 | py | #;encoding=utf8
from django.db.models import F
from django.core.management.base import BaseCommand, CommandError
from django.conf import settings
from django.utils import timezone
from django.template.defaultfilters import truncatechars
from collections import defaultdict
import json, os, sys
from datetime import time... | [
"jt@occams.info"
] | jt@occams.info |
082e73da48e7aafe9074dd2daa5a5aeb6d571994 | 1b5327565942d95ec0d0fd283b7a16bb3aeb5faf | /service/dbhandler.py | 5d3899ff144a35ecce84a4ecfa7af0b2101ae256 | [] | no_license | olavgg/FlaskIO | 62e477169964298fec2254f7bda43d8c19520222 | b119038857047663a54612297d841f8a17208b6d | refs/heads/master | 2016-09-06T11:21:14.113527 | 2013-04-11T14:20:34 | 2013-04-11T14:20:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,390 | py | import sqlite3
class DBHandler:
def __init__(self, dbname):
self.connection = sqlite3.connect(dbname,check_same_thread = False)
self.cursor = self.connection.cursor()
self.connection.row_factory = sqlite3.Row
self.execute("DROP TABLE file")
self.execute("""
crea... | [
"olav@olav-VirtualBox.(none)"
] | olav@olav-VirtualBox.(none) |
5ad0c6eda5d683bce7781bcc42c0c0b1409f4e3c | d258e840cf369ed140644d3d60058726e4040931 | /src/datasets/common/dataset_source.py | 58435a332f055ec88e516732b5b84d8b0906fb37 | [
"MIT"
] | permissive | amirunpri2018/SSD-Algorithm | bb311f816e83c83e91d171a7fe10e44878e5a890 | 778c8be06ad75c6dfbe98660fb32ef4cacb7ce4a | refs/heads/master | 2021-01-09T19:33:48.374320 | 2019-08-15T04:17:24 | 2019-08-15T04:17:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,268 | py |
import numpy as np
import os
import shutil
import sys
import tensorflow as tf
from abc import ABC, abstractmethod
from tqdm import tqdm
__exec_dir = sys.path[0]
while os.path.basename(__exec_dir) != "src":
__exec_dir = os.path.dirname(__exec_dir)
sys.path.insert(0, __exec_dir)
from utils.common.archives import ext... | [
"leletinger@gmail.com"
] | leletinger@gmail.com |
b5066d93b89dbe531f0d1d7db8afd9b68a9f2054 | 0fccee4c738449f5e0a8f52ea5acabf51db0e910 | /genfragments/EightTeV/TprimeTprime/TprimeTprimeToTGluonTgammainc_M_1500_TuneZ2star_8TeV-madgraph_cff.py | bca53a40e08e1ac7eb68e154614e26312a4e4d4b | [] | no_license | cms-sw/genproductions | f308ffaf3586c19b29853db40e6d662e937940ff | dd3d3a3826343d4f75ec36b4662b6e9ff1f270f4 | refs/heads/master | 2023-08-30T17:26:02.581596 | 2023-08-29T14:53:43 | 2023-08-29T14:53:43 | 11,424,867 | 69 | 987 | null | 2023-09-14T12:41:28 | 2013-07-15T14:18:33 | Python | UTF-8 | Python | false | false | 5,304 | py | import FWCore.ParameterSet.Config as cms
#from Configuration.Generator.PythiaUEZ2Settings_cfi import *
from Configuration.Generator.PythiaUEZ2starSettings_cfi import *
generator = cms.EDFilter("Pythia6HadronizerFilter",
pythiaHepMCVerbosity = cms.untracked.bool(False),
maxEventsToPrint = cms.untracked.int32(0)... | [
"thomas.peiffer@cern.ch"
] | thomas.peiffer@cern.ch |
b65f08fa09dc28c5be2310a1cdafa3089b999084 | c1fabce1f3e4df317db0884cbb5507b381f5e8f0 | /Code/graphes/make_logo.py | 6691773cecde879b56aa9068ad7242e9ae296066 | [] | no_license | fbunel/Geo_Project | 65694cd9da07c92fa1fa3e03fb576d5258c8a4e9 | b692f9ad5aab90547ecab376bc4f65c70ba2bdd0 | refs/heads/master | 2021-01-12T10:42:50.179858 | 2017-02-09T17:08:36 | 2017-02-09T17:08:36 | 72,648,230 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,608 | py | from sim2 import terre
#from sim2_v2 import terre
import matplotlib.pyplot as plt
from mpl_toolkits.axes_grid.axes_grid import Grid
import numpy as np
from datetime import datetime
#on va calculer T à t=+infini(~20My) pour 4 CI différentes :
# 1. t0 = 0My , avec fusion des materiaux
# 2. t0 = 1My , avec fusion des... | [
"hadriman@live.fr"
] | hadriman@live.fr |
cabf56396409a2b8bbe2bba525dd0a4347f411d5 | 4af8e73d47535494a25e06d5ac693fdc60fc95f5 | /NLP_pytorch/04_pytorch_ignite/main.py | 3c143464dd83f6b08e51033562e87b446747ba97 | [] | no_license | woosa7/nbcc_projects | 4de2f846068bacdc73a6877d26dba93c483b1be3 | 0e7a30f58e554125d02451ab407f2a19c8c7b5f4 | refs/heads/main | 2023-06-16T16:19:51.975216 | 2021-07-16T05:18:53 | 2021-07-16T05:18:53 | 306,594,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,390 | py | import argparse
import torch
import torch.nn as nn
import torch.optim as optim
from model import ImageClassifier
from trainer import Trainer
from data_loader import get_loaders
def define_argparser():
p = argparse.ArgumentParser()
p.add_argument('--model_fn', required=True)
p.add_argument('--gpu_id', ty... | [
"woosa7@gmail.com"
] | woosa7@gmail.com |
c82c76d61b5bb9ccc114333c8fcc399283bb3db2 | b612c1af17e0297d845fc213e80f8749ca1d3720 | /sha1.py | b3f148babda3d14a7d6f36271f409c3435881d57 | [] | no_license | nikofil/mycrypto | 5c42e2981eee3bbd5b41fef1a8d4bd2c0929aaa6 | 75b26e96c4903f65cbb17cbef91dce6a20610f8f | refs/heads/master | 2021-01-24T11:27:37.184585 | 2018-01-25T13:19:49 | 2018-01-25T13:19:49 | 70,232,185 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,013 | py | #!/usr/bin/env python
from __future__ import print_function
import struct
import io
try:
range = xrange
except NameError:
pass
def _left_rotate(n, b):
"""Left rotate a 32-bit integer n by b bits."""
return ((n << b) | (n >> (32 - b))) & 0xffffffff
def _process_chunk(chunk, h0, h1, h2, h3, h4):
"... | [
"nikolaos.filippakis@cern.ch"
] | nikolaos.filippakis@cern.ch |
a72c34303dffb1d5dddf345e398b5b060e778603 | 68267b2894f655918b6f054cf95a6ead101d1e04 | /gamebase.py | cffe378ba829982f5b862d5d8763bc1c7d80aeed | [
"MIT"
] | permissive | MrValdez/pictionary-clone | 8b59488237735c149ea39979c90b074da1cbcda2 | 214ed00664c7880e7f8da0e0ae394c59d97ab937 | refs/heads/master | 2021-01-19T21:08:26.374927 | 2017-05-06T13:09:38 | 2017-05-06T13:09:38 | 88,609,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,448 | py | import pygame
class Action:
packet_name = None
network_command = False
data_required = True
def __init__(self, data=None, target_id=None):
# target_id is the id of the player to send this packet to
if not self.packet_name:
raise TypeError("packet_name not initialized")
... | [
"shunyvaldez@gmail.com"
] | shunyvaldez@gmail.com |
2dda0a832905a822ac647d1b15cd616464ea8868 | 94062944af78a4bce491a00f8b4e4319bd316b31 | /24GameSolver/Greedy/src/frontend1.py | 4972bc1400ddb7a567c1c41d8575d8380a3e3492 | [] | no_license | Harisalghifary/24GameSolver | 07492285bf84689f1227cf5019528fdef3bd4673 | 61778ccf165611ef264d9c55241b2256641afa42 | refs/heads/master | 2020-05-07T18:34:26.861918 | 2019-04-11T11:22:20 | 2019-04-11T11:22:20 | 180,773,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,353 | py | import sys
import file as f
import cardGUI as cgui
import backend as engine
import random
#Inisiasi operator
listOp = ['+','-','*','/']
def generateCards():
hand = []
for i in range(4):
while True:
num1 = random.randint(1,13)
num2 = random.randint(1,4)
if num2 == 1... | [
"haris.solo68@gmail.com"
] | haris.solo68@gmail.com |
10809d6dcc895e9f6b640c2b2ec49cdb81dd4028 | 4e2d798adb6b14eb12e45f4e999f3070399bc57a | /src/curved_lane.py | 722fb29c1788484bb949a10e969c0c6e1c6ce2b6 | [] | no_license | arunsankar172/Sel-Driving--Lane-Detection | 14da86cd536aee175194b3cc15e371fb22592f45 | 77e2eddf02111c378ba0deb9ec976f67fdafad75 | refs/heads/main | 2023-03-25T06:52:25.003584 | 2021-03-25T18:32:10 | 2021-03-25T18:32:10 | 351,533,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,418 | py |
# coding: utf-8
# In[2]:
import numpy as np
import pandas as pd
import cv2
import os
import glob
import matplotlib.pyplot as plt
import pickle
get_ipython().magic('matplotlib inline')
# ## Calibration & Distortion Correction
# In[3]:
def undistort(img, cal_dir='cal_pickle.p'):
#cv2.imwrite('camera_cal/tes... | [
"arunsankar172000@gmail.com"
] | arunsankar172000@gmail.com |
738b16a565050ab5bf94008fc00fd77340922a1e | 2f25c34258cfc278bb69a8973201e4daca7e5392 | /douban/douban/settings.py | d686915e2f62b7a16bb3712ffc3f39481028bf06 | [] | no_license | flypandaaaaaaaaaa/spider-douban250 | e47cd846ca2b0fe0610e8dc10bc395bc498f7035 | c42e592c6f28d47850771f00737d5f3f33ed659a | refs/heads/master | 2020-03-23T22:11:21.930903 | 2018-07-24T16:05:02 | 2018-07-24T16:05:02 | 142,159,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,147 | py | # -*- coding: utf-8 -*-
# Scrapy settings for douban project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://doc.scrapy.org/en/latest/topics/settings.html
# https://doc.scrapy.org/en/latest/topics... | [
"fllypanda@outlook.com"
] | fllypanda@outlook.com |
3c415b6254a6a1dfd67e5c564bbeeab602bbbac5 | c3432a248c8a7a43425c0fe1691557c0936ab380 | /Greedy/1744_수묶기*.py | cb76fdcd5d14a3364ec30819632212850e7c8292 | [] | no_license | Parkyunhwan/BaekJoon | 13cb3af1f45212d7c418ecc4b927f42615b14a74 | 9a882c568f991c9fed3df45277f091626fcc2c94 | refs/heads/master | 2022-12-24T21:47:47.052967 | 2022-12-20T16:16:59 | 2022-12-20T16:16:59 | 232,264,447 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 670 | py | import heapq
n = int(input())
sm = 0
plus = []
minus = []
zero = 0
one = 0
for _ in range(n):
val = int(input())
if val == 1:
one += 1
elif val > 0:
heapq.heappush(plus, -val)
elif val == 0:
zero += 1
else:
heapq.heappush(minus, val)
if len(plus) % 2:
heapq.hea... | [
"pyh8618@gmail.com"
] | pyh8618@gmail.com |
ecbbe380ee06e59502cd568e0d8911e8ee387e8b | ef72a7df3c39c215dd90ac5e72b164eb9d7da892 | /rpg/heroes/exp.py | 8580678d1bd1cda8e1e24f9779c8fce251493dcc | [] | no_license | thebmo/messing_around | d49a87fc1ff722428ea67bc710ca99ad287098bd | 4cb12e0b224cf7d1f93cb4ae6ff7603619fb7aa9 | refs/heads/master | 2021-01-13T02:18:50.799898 | 2015-04-08T01:12:41 | 2015-04-08T01:12:41 | 28,570,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,220 | py | exp_to_next_level = [
0,
29,
87,
174,
304,
499,
792,
1232,
1891,
2880,
4364,
6218,
8534,
11428,
15045,
19114,
23690,
28837,
34627,
41141,
48468,
56711,
65983,
76413,
88147,
101347,
116196,
132901,
151694,... | [
"bmosier@gmail.com"
] | bmosier@gmail.com |
dd4fd55ead76b9ef88bec989129eb882c935a3e0 | 0e803823370ca517defd8fa843c03aac46fad5d7 | /Src/SpineSegmentationC3D/loss.py | 183511aa6208b3781cb12ffc20349e416be9d90f | [] | no_license | ChenchenHu007/Spine_Segmentation | 3a3813be8645a2aeee7b1196fb07cd8bef2efb03 | ec6c1f196e890c8c47f6bad49f65ce0d01543647 | refs/heads/master | 2023-08-05T09:56:45.988462 | 2021-10-01T08:15:40 | 2021-10-01T08:15:40 | 358,471,470 | 1 | 7 | null | 2021-06-07T06:00:32 | 2021-04-16T04:06:50 | Python | UTF-8 | Python | false | false | 1,066 | py | # -*- encoding: utf-8 -*-
import torch.nn as nn
from Loss.SegLoss.DiceLoss import SoftDiceLoss, DC_and_CE_loss
class Loss(nn.Module):
def __init__(self):
super().__init__()
self.dc_and_ce = DC_and_CE_loss(soft_dice_kwargs={'batch_dice': True,
... | [
"305369001@qq.com"
] | 305369001@qq.com |
3ec541908b733c963a38d71f7f5949c8f8a7327d | 465efab6e7b419d4493d09786a4b2d7a976f7a31 | /src/Universe/LevelProps/Decorator.py | d036547a63ad9d0c74b8c3f991b1315b75e5aedb | [] | no_license | dzz/kthuune | aa2cadcdfaed9a06b6384516be429575640a7896 | 2a8be25ec5303586e5a7e067c024d6e6ca171efa | refs/heads/master | 2021-01-24T07:42:41.426973 | 2018-07-29T06:21:34 | 2018-07-29T06:21:34 | 93,354,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,089 | py | from Newfoundland.Object import Object
from Beagle import API as BGL
class Decorator(Object):
textures = BGL.assets.get('KT-forest/animation/decorators')
def parse(od,df):
x1 = float(od["x"])
y1 = float(od["y"])
x2 = float(od["w"])
y2 = float(od["h"])
cx = (x1+x2) / ... | [
"devon.zachary@gmail.com"
] | devon.zachary@gmail.com |
225594047c937af32e6b1fbad8a5d632b7cdcd37 | a574b61a8f1a3fcec5e6fe9868094bf1ac5377ce | /Python Basics/Week 1/Chapter 2 Exercises/Exercise_11.py | 670399925c780e137ebf1060d0d25905f18aed72 | [] | no_license | Stevensousa67/Python-Programming-Specialization | 5b77f491db6a128d226c9fc7f639e5b5890daa3d | 18af2bec4c884e863dfcdfc8ad2ac71fb743f415 | refs/heads/master | 2023-06-20T12:49:28.909119 | 2021-07-23T22:02:55 | 2021-07-23T22:02:55 | 372,979,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | # Challenge: Write a program that will convert degrees celsius to degrees fahrenheit.
celsius = int(input("Enter temperature in Celsius: "))
fahrenheit = celsius * (9/5) + 32
print(fahrenheit)
| [
"silver.steven67@gmail.com"
] | silver.steven67@gmail.com |
581ff3c3ff8eac75bf2c32be001fe3da752ff030 | 87bbeac699af7fa4dc76592acecef52dead1f436 | /Adelphi Academic Calendar/skill/skill_env/Lib/site-packages/docutils/parsers/rst/languages/it.py | ad6085c6d6d78353bca04e8d50786cae5b9e5628 | [
"MIT",
"OpenSSL",
"bzip2-1.0.6",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"Python-2.0",
"TCL",
"LicenseRef-scancode-newlib-historical"
] | permissive | EnriqueGambra/Amazon-Alexa-Skill | 79ec8848605a0e1e13092a1f6163dd63573322ec | 198ed51bef555eee006041fef0bcbf5c955142d5 | refs/heads/master | 2022-12-02T01:01:48.419524 | 2019-10-23T21:45:49 | 2019-10-23T21:45:49 | 214,226,014 | 0 | 2 | MIT | 2022-11-27T06:15:00 | 2019-10-10T15:58:16 | Python | UTF-8 | Python | false | false | 3,267 | py | # $Id: it.py 7119 2011-09-02 13:00:23Z milde $
# Authors: Nicola Larosa <docutils@tekNico.net>;
# Lele Gaifax <lele@seldati.it>
# Copyright: This module has been placed in the public domain.
# Beware: the italian translation of the reStructuredText documentation
# at http://docit.bice.dyndns.org/static/ReST, ... | [
"gambra7@gmail.com"
] | gambra7@gmail.com |
3042f2d03444d4ec8ed65c9bcad199f8c3f11f73 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2536/60761/235389.py | 3dece7a79508610db4ccd9b65cff8208cc2b29f7 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | airlines=input("")
airlines=list(map(str,airlines[2:-2].split("],[")))
result=[]
result.append("JFK")
i=0
while(0<len(airlines)):
destination=[]
for airline in airlines:
if(airline.startswith('"'+result[i])):
destination.append(airline[7:-1])
destination.sort()
airlines.remove('"'+re... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
cc0f0201d837b9a6f3875538885dceae3cf9396e | c013b50cac54e74f9d36a9385a291828bba09e01 | /updated_t_test_qn.py | 29db54fce3dac3966f04c6fe89f1e8a3eb646b47 | [] | no_license | wsdhrqqc/BUL-project | 6aa8938f556cdb7ca3443c3f208a43f9e8871de4 | d5771d76d6671b96a2b875d4bcf17ed85445154d | refs/heads/master | 2022-12-15T16:17:41.541794 | 2020-09-14T21:34:41 | 2020-09-14T21:34:41 | 295,541,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39,130 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Sep 13 18:02:32 2020
This has been done with Ondemand interactive interface (Spyder4).
Script will be uploaded on Github.
@author: Qingc
"""
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon May 25 15:14:19 2020
@author: vicki
"""
# P... | [
"noreply@github.com"
] | wsdhrqqc.noreply@github.com |
087488ff388007bc22c3fc44730051eb340a7776 | f9b45fd409384de3c69d68c62c0f21d9196e6927 | /python_tools/test/profile_mem_engine_record.py | 7e919bce20db8df7eb99dd3b72aca21e32525aaa | [
"MIT"
] | permissive | ultimatezen/felix | 04799eb666b54e2eeea961dc983cf3721f5182de | 5a7ad298ca4dcd5f1def05c60ae3c84519ec54c4 | refs/heads/master | 2020-04-08T14:21:02.872525 | 2016-02-16T01:18:11 | 2016-02-16T01:18:11 | 159,433,144 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,583 | py | #coding: UTF8
"""
Unit tests of Python translation record COM server
"""
import unittest
import socket
from FelixMemoryServes import MemoryEngine
from win32com.client import Dispatch as d
HOST = socket.gethostbyname(socket.gethostname())
PORT = 8765
BASE_URL = "http://%s:%s" % (HOST, PORT)
def ... | [
"software@ginstrom.com"
] | software@ginstrom.com |
a98a76bd7a6f0f6c9a10baa06ce2a016ce0462e5 | 09fc64acbd3cde9a47c01f07b216620f16c12887 | /api/views.py | a3163bfeec1782b36e39bd724940fce33fbf19ff | [] | no_license | samrids/django_permission | 83894b46f1c4341c80c77dfefe71196671053bcd | 1e0f24909c7f60eac4e01433dbbad2d5168631ea | refs/heads/master | 2023-06-12T00:55:11.290758 | 2021-07-06T13:12:31 | 2021-07-06T13:12:31 | 379,883,588 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,933 | py | from userprofile.models import Profile
from api.serializers import ProfileSerializer, AvatarSerializer
from django.http import Http404
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import status
# from rest_framework.decorators import api_view , schema, permi... | [
"samrids@gmail.com"
] | samrids@gmail.com |
047f80690a5099e9f1505b2dd7da347d7bd2adc1 | 04ae1836b9bc9d73d244f91b8f7fbf1bbc58ff29 | /378/Solution.py | 2933a83513c07b54670ecbf4838330642d1675d9 | [] | no_license | zhangruochi/leetcode | 6f739fde222c298bae1c68236d980bd29c33b1c6 | cefa2f08667de4d2973274de3ff29a31a7d25eda | refs/heads/master | 2022-07-16T23:40:20.458105 | 2022-06-02T18:25:35 | 2022-06-02T18:25:35 | 78,989,941 | 14 | 6 | null | null | null | null | UTF-8 | Python | false | false | 2,165 | py | """
Given a n x n matrix where each of the rows and columns are sorted in ascending order, find the kth smallest element in the matrix.
Note that it is the kth smallest element in the sorted order, not the kth distinct element.
Example:
matrix = [
[ 1, 5, 9],
[10, 11, 13],
[12, 13, 15]
],
k = 8,
return 1... | [
"zrc720@gmail.com"
] | zrc720@gmail.com |
3310e00d27327d900a96e3c73a8f2b9b07a6595d | 768aa50ce1247ec5a43feedbc071078a75238fb7 | /Week2/Project5/list.py | fd5c4a1f5bcdeff58f26a67d07021aba303d8817 | [] | no_license | dawsonar802/CS_Python_For_DevOps | 92665c1b1cbf274ae8001ebcba6663961ec3f810 | fbc61a9abdcc2220f6c20dce3e6c3755b7dcb641 | refs/heads/main | 2023-04-30T15:08:13.551470 | 2021-05-21T11:12:36 | 2021-05-21T11:12:36 | 369,187,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48 | py | cars = ["honda", "ford", "toyota"]
print(cars)
| [
"dawsonar@fhlbcin.com"
] | dawsonar@fhlbcin.com |
abe52341576e209dbcf82c74244b0d909a3703fd | 3f67ebc7c3590c79c52270cbda0b04f1c376d11a | /accounts/migrations/0003_auto_20181026_1230.py | 0bbeec7575c7d7b2305503eed056216b3738fa48 | [] | no_license | ndolocr/stmarysack | 7459bbc1e505d2888e7f4f07453753782f210942 | 82b90ab1ce85f118db58f9e18ae566388943ad90 | refs/heads/master | 2020-04-02T14:39:46.596732 | 2018-10-26T20:12:32 | 2018-10-26T20:12:32 | 154,533,677 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | # Generated by Django 2.1.2 on 2018-10-26 09:30
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('accounts', '0002_member'),
]
operations = [
migrations.AlterModelOptions(
name='member',
options={'verbose_name': 'Member', ... | [
"ndoloraphael@gmail.com"
] | ndoloraphael@gmail.com |
662819fb145416397f5626193012d2a5009a866f | 20dce73d9773457cbbcb277915211a723d8c00d1 | /01-introduction-to-data-science-in-python/3-Plotting-Data-with-matplotlib/4-adding-labels.py | efda354035255da651c9aec9d99215c74cde9267 | [] | no_license | rajsingh7/DataCamp | 79f11f12edde1c1301350b0eb5783cb030df2428 | f6aedfc0b70f80cbed85a30e1422d4ec855838f7 | refs/heads/master | 2022-04-08T15:59:25.694584 | 2020-03-11T05:38:00 | 2020-03-11T05:38:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | """
Adding labels
If we give a chart with no labels to Officer Deshaun's supervisor, she won't know what the lines represent.
We need to add labels to Officer Deshaun's plot of hours worked.
INSTRUCTIONS
Add a descriptive title to the chart.
Add a label for the y-axis.
"""
# Lines
plt.plo... | [
"noreply@github.com"
] | rajsingh7.noreply@github.com |
909609add05a88abbf5650be91abc3928e26ba26 | 2ccc3f4505bfb794e4a5f3daeb02e4ecdafc4073 | /a1.py | 625882ac5363c6cab308567ed93a26ceb8be5e26 | [] | no_license | lyc4614/lyc4614.github.io | 96e6e55a5350cd832f92be887e95997633146d87 | 1f0406138776d4f8edf7df8616add8bb7d9a126b | refs/heads/master | 2021-02-18T08:13:38.613823 | 2020-03-05T15:10:22 | 2020-03-05T15:10:22 | 245,074,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12 | py | 1111
555666
| [
"lyc4614@163.com"
] | lyc4614@163.com |
478e144673ff9cf1f3609712423a8a57daa14f31 | e1cdf4009fb9a549f2d623201c02451f6aecf605 | /project/hangmanserver.py | b60304474c17f38478e47d1ec8b283aabc5e0d9b | [] | no_license | VenuGopalJilla/CN_2019501011 | 5baf9ff7ab4cade47b4230533732c93107548667 | 63b65c86a8419e51449262c29338beb5296da6ed | refs/heads/master | 2021-03-29T00:50:20.245173 | 2020-03-26T07:08:08 | 2020-03-26T07:08:08 | 247,910,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,190 | py | # @author Venu Gopal Jilla
import socket
import threading
import random
host = '127.0.0.1'
port = 8888
server_port = (host, port)
details = {}
user_details = {}
def start_information(connection):
message = 'Welcome to the Game Hangman.....!!!!!!!' + '\n'
message += ' 1 . Sign Up ' + '\n'
... | [
"noreply@github.com"
] | VenuGopalJilla.noreply@github.com |
54dee803b15dae043eb469547baca3c85b584c8d | 97ebcf139c0cf40c72b337490a5669a5fc9a23e1 | /player_controller.py | 4d90b05401114cd008765e4b099267327042c22b | [] | no_license | danalex97/UnityPythonServer | 8a855cb479cb60203c3b8393abb1ca351cf43aa7 | 13d09d8e46340ecbcd51f2f10ecf2c87df163df2 | refs/heads/master | 2020-12-02T17:42:33.974336 | 2017-07-07T14:38:39 | 2017-07-07T14:38:39 | 96,416,257 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | from player import Player
from objects import Object
class PlayerController:
def __init__(self):
self.new = []
self.deleted = []
def get_new_players(self):
to_ret = self.new[:]
self.new = []
return to_ret
def get_deleted_players(self):
to_ret = self.new[:]
... | [
"dan.alex97@yahoo.com"
] | dan.alex97@yahoo.com |
9302d771d20742fc2475f2f78344c90e395f52bd | 29e8a7791f2fc62ff042ee1748dbedf91fb15bda | /.history/api_contracts/__init___20190907124218.py | 24a350f19f8d58b2703ebb872ef1d5d1be8532d9 | [] | no_license | manv6/nocode-contract-api-testing | 93b8acc099ecfab323a8a7446185ae99eb61d9e5 | a7d0c023a5e8a5742075d36a01531272ca3df37e | refs/heads/master | 2022-02-05T15:35:56.790461 | 2019-09-07T09:55:10 | 2019-09-07T09:55:10 | 206,770,350 | 0 | 0 | null | 2022-01-21T20:01:09 | 2019-09-06T10:26:20 | Python | UTF-8 | Python | false | false | 176 | py | """Contract tests for api testing."""
from pathlib import Path
from dotenv import load_dotenv
env_path = Path('.') / '.env'
load_dotenv(verbose=True, dotenv_path=env_path)
| [
"evlastos@theorchard.com"
] | evlastos@theorchard.com |
ec853b092a4c7f85ffba41a2fa671fb4db5f0ec6 | e22807c554060f78d9333634ac9785687e38d794 | /gerrit-data-export/gerrit-export.py | a5366fc2b7888eadaa4021d7fdf2d7a8c14c83db | [
"Apache-2.0"
] | permissive | firebird519/python | bfb74766977d042d825d7afc3db2d7db7ba8b6b4 | d61b0d4e7c9d7fa36cd6d6bdd7e82c7e5de5fed1 | refs/heads/master | 2021-07-18T11:15:47.518327 | 2017-10-20T03:17:20 | 2017-10-20T03:17:20 | 107,625,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,204 | py | #!/usr/bin/env python
# pythond version: 2.7.10
import os
import sys,urllib,string,re
import urllib2
import webbrowser
from time import localtime, strftime
global DEBUG
DEBUG = 0
FILENAME_SCRIPT_START_DAYTIME = '.script_starttime.conf'
# KEY name list
SUBJECT_KEY = 'subject'
_NUMBER_KEY = '_number'
OWNER_KEY = 'ow... | [
"liyong.wu.x@gmail.com"
] | liyong.wu.x@gmail.com |
ba2c35419208cc29b181f6894641d8b94831b058 | e4036f25ac4076f5c8df50b55b5418eec4b60c02 | /blog.py | fbf601f6bcfd1211e4a4c67105245f2685309f5d | [] | no_license | ponxu/pxblog | 42c43ceb8584b1320b9a248bb04d9dcbb4aad630 | cfd21789f763afd226b3299edb845a2229130ee5 | refs/heads/master | 2020-05-19T16:53:28.995858 | 2012-12-31T06:06:34 | 2012-12-31T06:06:34 | 7,176,492 | 20 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,100 | py | # -*- coding: utf-8 -*-
from webcommon import *
from cache import cache_page
from setting import *
from model import *
class Home(BlogHandler):
@cache_page('page_home_', get_paged)
def get(self):
paged = get_paged(self)
posts, total = Post.query(paged, type='post', status=['publish', 'passwor... | [
"xwz689@gmail.com"
] | xwz689@gmail.com |
71a26a87ecee866c893700324d40a1a2572e4a99 | 6eb58e32b469c37428185ab4456184905a5b4fb5 | /analysis_code/parse_ICD.py | c9e4102115862dbdf62d0a5bc4cdcd1bf75b3e03 | [] | no_license | rchenmit/mht_analysis | 0b8bfff7730df835975c7c41d65f007ad269e3a9 | 678d4419bdaed9ed9d0041df3a2cd8638074590f | refs/heads/master | 2020-04-06T03:40:41.577209 | 2015-01-12T00:14:48 | 2015-01-12T00:14:48 | 19,548,658 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,113 | py | ## Robert Chen
## Monday 5/12/2014
##
## read and process BMI file
##
##
import datetime as dt
import scipy as s
## options
input_folder = '../../data/new_data_20140416/Data_20140409/'
output_dir = '../../data/new_data_20140416/Data_curated_RC/'
pickle_dir = '../analysis_output/pickle/'
bool_make_count_matrix_ALL = 0... | [
"robchen401@gmail.com"
] | robchen401@gmail.com |
3359a8b37f2fe677e6ab7412ac8f3b180265124b | bd2f028323d825a0b3cb35177dd6cd690f88f0a7 | /platzi/cambio_divisa.py | cf32f749176dbb443c13e9de0a22356a4ee3582e | [] | no_license | ArturoRuge/python-exercises | 6485107eebb6779f8306bb348c475422a8ff10df | 93fe0e7a28b453fed8d53371a0552489ddb35754 | refs/heads/master | 2021-01-20T07:45:41.785369 | 2017-09-15T14:55:56 | 2017-09-15T14:55:56 | 90,037,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | py | def change(ammount):
"""
input: cantidad de pesos argentinos
output: conversion de los pesos argentinos a dolares
"""
arg_to_dollar_rate = 17.2
return ammount / arg_to_dollar_rate
def run():
print("CARCULADORA CAMBIO MONEDA")
print("Convierte peso Argentino a dolares")
print("")
ammount = float(input("Digi... | [
"arturoruge@gmail.com"
] | arturoruge@gmail.com |
0427152f90ba54b4e60d41a7438256e1ec000cdc | e685a3d60f23572ee33e0461a517104f99136ec5 | /src/pb_robot/planners/plannerTypes.py | 7e1502263fa136c3a557764a1bbfef75c95b5e33 | [] | no_license | carismoses/pb_robot | 374d0afcd1d7aa73b019be7b64b8610e6216a68b | c5cf91cccc73256721c3728c1efd7fee71450bf3 | refs/heads/master | 2022-05-15T10:50:31.778702 | 2022-03-25T18:36:10 | 2022-03-25T18:36:10 | 254,408,692 | 1 | 0 | null | 2020-04-09T15:26:14 | 2020-04-09T15:26:14 | null | UTF-8 | Python | false | false | 271 | py | #/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Goal and Constraint Types
'''
from enum import Enum
class GoalType(Enum):
JOINT = 1
TSR_EE = 2
TSR_TOOL = 3
class ConstraintType(Enum):
GOAL_JOINT = 1
GOAL_EE = 2
PATH_JOINT = 3
PATH_EE = 4
| [
"rachel.holladay@gmail.com"
] | rachel.holladay@gmail.com |
4a3dd3546a091c8cbe9f4915a3dc415d02a220cc | 9eb70b7b34c9a6196f4ef2b01a1d33fd69553efd | /Anti Vowel.py | c6777a21d0052d554f5689485b41605777ad4d20 | [] | no_license | unterwages/leetcode | 3364b683370e08e328c68930b3e063bce4d40607 | 21154eb96806a10f0b12381a6ed7948d633aa562 | refs/heads/master | 2021-01-22T21:21:58.976609 | 2016-02-11T05:58:47 | 2016-02-11T05:58:47 | 100,670,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | def anti_vowel(text):
words = list(text)
for i in text:
if i in 'AEOIUaeoiu':
words.remove(i)
return ''.join(words)
print anti_vowel('wiuehfqp')
| [
"duyiwei281@gmail.com"
] | duyiwei281@gmail.com |
976853b89c93428c1fa3b0b4ff14bc7de0029508 | 880c8ce802f2c6b82eb3d985723a54a0f8d76fe5 | /apps/jobs/urls.py | 659038f1742be6b19d2a7ab466591094cba7220d | [] | no_license | LijinPengT/XgcOnline | 54f20524cb1b70640b00d33433d5f4f38f5832b6 | 789f228c30503cd1d03a456c893cb1a85299dac4 | refs/heads/master | 2022-04-05T10:38:14.820649 | 2020-02-27T06:48:14 | 2020-02-27T06:48:14 | 174,671,227 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | # -*- coding: utf-8 -*-
__author__ = 'Dwyane'
__date__ = '2019/3/8 19:56'
from django.urls import path, re_path
from .views import JobListView, JobDetailView, JobInfoView
app_name = "jobs"
urlpatterns = [
# 课程列表页
path('list/', JobListView.as_view(), name="job_list"),
re_path(r'^detail/(?P<job_id>\d+)', Jo... | [
"1781062962@qq.com"
] | 1781062962@qq.com |
6cf308aedef3f4ea0e48784087c303aa21c234b0 | 947e90af37280cd9f06c933925c4c9bc77a5867a | /6-10/day7_3.py | 4a72818e779857da4d071ea5ce18fea3acb383d4 | [] | no_license | Dotown/py_practice | 6e79e02fe0dbbc03fa26843fb145519f980f1c87 | 04a4d0353703588146b5b1b8ffb420540f421ffb | refs/heads/master | 2020-09-14T17:25:12.416822 | 2019-12-27T07:42:25 | 2019-12-27T07:42:25 | 223,199,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | s1 = 'hello '*3
s2 = 'world'
s1 += s2
print(s1)
print('lo' in s1)
print('ld' not in s2)
str = 'abc123456'
print(str[2]) # str的第三个字符
print(str[2:5]) # c12 str的第三个到第六个字符 包括三,不包括六
print(str[2:]) # c123456 str的第三个字符到最后一个字符
print(str[2::2]) # c246 str的第三个字符开始,隔一个字符取一个
print(str[::2]) # ac246
print(str[::-1]) # 654321cba s... | [
"1242262161@qq.com"
] | 1242262161@qq.com |
d57612265d1ba0ce332b8b7b44f2cc620d37442c | f2fa37248615d76839dc41335d253ca56cdbd64e | /Python/Chap3/ex22.py | 57eaf92b5ebb153bc48265e25f81ba5c86874652 | [] | no_license | ThanhChinhBK/nlp_100_drill_exercises | d13d42cc7e3145ce380c7049603ee2f54f3ccbaa | c9478ef56efa5846a6ddff5e76d951666b78a283 | refs/heads/master | 2021-01-18T20:44:33.297379 | 2016-12-03T06:54:57 | 2016-12-03T06:54:57 | 72,465,541 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | import re
from ex20 import extract_wikidocs
# 22. Trích xuất các tên đề mục (Category name)
# Trích xuất tên đề mục của trong các tài liệu.
# Trong bài tập này, cần trích xuất chính xác các tên đề mục chứ không phải dòng chứa tên đề mục.
def main():
docs = extract_wikidocs()
categories = []
for doc in do... | [
"nguyenthanhchinh96@gmail.com"
] | nguyenthanhchinh96@gmail.com |
5cbd31c2a6ec85ef2f59aa25e053a550d174d369 | 6b1e0152231cc621383dc9975c595cc1c6fe7b13 | /venv/bin/pip | 5c3b6c9307f9c1b094c055dc87dd4ed1058a6e98 | [] | no_license | kter/learning_of_python | a257a7be453ef0bec064aa8096e3070ada7651d3 | 1bf9ad4daa680a6282dc8f149699ce01967aafb7 | refs/heads/master | 2020-03-27T06:54:07.871093 | 2018-08-26T02:20:54 | 2018-08-26T02:20:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | #!/Users/kter/workspaces/learning_of_python/venv/bin/python
# 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])
... | [
"me@kter.jp"
] | me@kter.jp | |
6a9a9111d8b6dd0592efa7235dd41c23116464c7 | 58cb1fdf75bee8475a65a7b1da3893b258d4fdab | /semester 2/programming languages/01-31-2018/2.py | 84440907b6a927aaf50b8638b29aca0d31aa9085 | [] | no_license | foxpy/homework | 6b1b7e6aaab5451bf7666ee9bf8e335caaeb8afb | 40ee8abba580e071b51531643879fc785de166e6 | refs/heads/master | 2022-09-16T17:17:15.417035 | 2022-08-28T17:02:52 | 2022-08-28T17:02:52 | 105,091,021 | 8 | 1 | null | 2022-08-28T17:05:23 | 2017-09-28T02:08:21 | C | UTF-8 | Python | false | false | 102 | py | def age(x, y):
if y != 1: return x+x/(y-1)
raise ValueError("Their age shouldn't be equal.")
| [
"muradkarammaev@gmail.com"
] | muradkarammaev@gmail.com |
42a6a559cbb0b2c85524991590b8c158a37f146e | 3afbd67897bac6717e8307b6e87c3cb36e4afae8 | /formvalidations2/settings.py | ec26d90d84fda2fc9612051d0f28c16739ecbbe0 | [] | no_license | Srinivasu-Gillella/Django_Form_Validations | 1197ed4c89cb50c546f06a648b944cbbcf2b3b26 | 604be40045efece4cfddd1b957ccd813f527e082 | refs/heads/master | 2022-11-03T04:36:09.786666 | 2020-06-10T06:09:00 | 2020-06-10T06:09:00 | 272,871,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,272 | py | """
Django settings for formvalidations2 project.
Generated by 'django-admin startproject' using Django 3.0.6.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
imp... | [
"64829989+Srinivasu-Gillella@users.noreply.github.com"
] | 64829989+Srinivasu-Gillella@users.noreply.github.com |
c618214707b9fb6a6ca9236d529434d841c267c9 | 50afc0db7ccfc6c80e1d3877fc61fb67a2ba6eb7 | /challenge17(backOnTime)/solutions/FelipeAg.py | 87790a5c157315c30659f1835cb2ca4e79b5036b | [
"MIT"
] | permissive | banana-galaxy/challenges | 792caa05e7b8aa10aad8e04369fc06aaf05ff398 | 8655c14828607535a677e2bb18689681ee6312fa | refs/heads/master | 2022-12-26T23:58:12.660152 | 2020-10-06T13:38:04 | 2020-10-06T13:38:04 | 268,851,516 | 11 | 8 | MIT | 2020-09-22T21:21:30 | 2020-06-02T16:24:41 | Python | UTF-8 | Python | false | false | 190 | py | def solution(steps):
if len(steps) > 10:
return False
elif steps.count('n') == steps.count('s') and steps.count('e') == steps.count('w'):
return True
return False | [
"cawasp@gmail.com"
] | cawasp@gmail.com |
ef78296965d3dfdbd09e11b868efe76a8b0d5e67 | 3f23a98fc04a84891e87c1e8a512be3ea1980691 | /couchbase/tests/test_couchbase.py | 2c6940a24181f9b1fc900b2c7c5e4a372b2f75ca | [] | no_license | suryamohan1/integrations-core | ad3f9dbb17bb0ea519e21c96462dbdd1cf4bab76 | 184f3b8dec3a761a0153b67c95cb76e683e84b56 | refs/heads/master | 2020-03-19T11:54:08.515445 | 2018-06-07T13:37:13 | 2018-06-07T13:37:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,335 | py | # (C) Datadog, Inc. 2018
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
# stdlib
import pytest
from datadog_checks.couchbase import Couchbase
from .common import CHECK_TAGS, BUCKET_NAME, PORT
@pytest.mark.integration
def test_service_check(aggregator, couchbase_service, couchbase_... | [
"noreply@github.com"
] | suryamohan1.noreply@github.com |
69b887fc9799bbb3873ea676dd23faf5e22e06f0 | 4b360696d512a35b2114c482c658d10e3ff91a2c | /project-addons/sale_samples/stock.py | ee45f4f9ff32ff19e5171497497e2c4aecce6846 | [] | no_license | Comunitea/CMNT_010_15_PHA | 24ecf3be6a50441dfa3dd8deca4ee96ac5e61970 | d4a24aafba48fc7dda7ee662e0c7e1112c220162 | refs/heads/master | 2022-08-12T00:39:24.464028 | 2022-07-11T10:30:30 | 2022-07-11T10:31:31 | 37,918,119 | 0 | 1 | null | 2015-12-02T12:39:43 | 2015-06-23T12:37:45 | Python | UTF-8 | Python | false | false | 1,578 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2014 Pexego Sistemas Informáticos All Rights Reserved
# $Jesús Ventosinos Mayor <jesus@pexego.es>$
#
# This program is free software: you can redistribute it and/or modify
# it under the ... | [
"jesus@pexego.es"
] | jesus@pexego.es |
5b9d42c2324f3b95f45d4ef3161c839255b8d15f | 03a1160358d6d9561f6710358d3d627ee5e656ff | /setup.py | 4dda1ee24a323ccbce0299e69165d1a99da0dcd3 | [
"MIT"
] | permissive | dikunonGitHub/kdcproxy | 4791d409bf628ea6d2ce824ebd4e425d5cc2627c | 5edbbeb7f950ed9db60b11f0fdce1ec96194f761 | refs/heads/master | 2021-12-06T14:26:56.143130 | 2015-08-03T20:52:14 | 2015-08-03T20:52:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,256 | py | # Copyright (C) 2013, Red Hat, Inc.
# All rights reserved.
#
# 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, modif... | [
"npmccallum@redhat.com"
] | npmccallum@redhat.com |
4036312452805ddbdff7066a9d28e6b814689c80 | 183328843b069e3330f1189b177e1733c9c96df0 | /src/ChicCrime3.py | a608c99a156790009b80b25c07fb42fefce310dd | [] | no_license | njnagel/Capstone_3 | a4eb3ef4bc8e52810975f8e1763a47e7b4f30d7f | 823e5ed7b78555f5df8540e2f27a3b327ea16747 | refs/heads/master | 2020-08-27T09:51:21.692240 | 2019-11-11T19:52:41 | 2019-11-11T19:52:41 | 217,323,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,037 | py | import pandas as pd
import csv
import random as rd
from random import random
from random import sample
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
from seaborn import heatmap
import geopandas as gpd
import datetime
import descartes
from shapely.geometry import Point, Polygon
from statsm... | [
"nancy@nagelzoo.net"
] | nancy@nagelzoo.net |
d81cffc4f0e3e4860d761efef7ea6e232837bac6 | ef7460b2b98070a760f25dfb4fb2d9bcc4595919 | /recepies/migrations/0016_auto_20210531_1403.py | 33b13bf44c9c1a6674180b954415ff9b4803df8e | [] | no_license | DmitriyReztsov/foodgram-project | f7d2618ad616dc3636a6f6ffe38872676596fd05 | 8a539f803db4aba27363221ea4fe3d88aefc6d82 | refs/heads/master | 2023-05-12T04:13:38.775301 | 2021-06-08T19:11:20 | 2021-06-08T19:11:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 761 | py | # Generated by Django 2.2.22 on 2021-05-31 11:03
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('recepies', '0015_shopinglist'),
]
operations = [
migrations.AlterField(
model_name='quantityin... | [
"68148319+DmitriyReztsov@users.noreply.github.com"
] | 68148319+DmitriyReztsov@users.noreply.github.com |
34cac51ba03f4a5680bbf7c7c253156f466fc80c | 1178b893bcdc61dd98b4039a4817526ebb97f21a | /football team js/Get Footy Data.py | 234ba9530799a907b6534e0b11e965c968956c0f | [] | no_license | andrewpatt24/General-work | 509bb9cb7ac8410c4c12421804b36b0cf3e461ef | a7800069dc53f8cf886bc92d443c8fbbb929e211 | refs/heads/master | 2021-01-25T12:01:45.347322 | 2014-11-10T17:40:52 | 2014-11-10T17:40:52 | 21,987,296 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,985 | py |
# coding: utf-8
# In[1]:
import urllib
import requests
import csv
import math
import re
import htmlmin
from bs4 import BeautifulSoup
from datetime import datetime
# In[2]:
##Get URL output
url = "http://fantasy.premierleague.com/player-list/"
r = requests.get(url)
##Minify html - issues with whitespace
rmin = ht... | [
"apatterson@DTE0588.channel4.local"
] | apatterson@DTE0588.channel4.local |
7e840b1353fa2ea50c759fe70c38941a9059ca2d | 334fc253dc9bcdb580a25e5281c0358e7dffae12 | /adoptions/models.py | e08f84508cb1e96cd4299e27d2fe17f538777c36 | [] | no_license | CheolsoonIm/wisdompets | ce3c77bb1d7abd9bafaff592402c4ac349f96f1b | 716ad283ae87b5c9da988a115fed6d18b57f48a4 | refs/heads/master | 2021-09-13T12:14:01.753299 | 2018-04-30T00:23:30 | 2018-04-30T00:23:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 999 | py | from django.db import models
class Pet(models.Model):
SEX_CHOICES = [('M', 'Male',), ('F', 'Female')]
name = models.CharField(max_length=100)
submitter = models.CharField(max_length=100)
species = models.CharField(max_length=30)
breed = models.CharField(max_length=30, blank=True) # breed may not ... | [
"dhlaltoo@gmail.com"
] | dhlaltoo@gmail.com |
497e2b9202c92bc0e9ea1492c34c56c795d661c3 | 3db2daac59a4e196eee59d50528e0166d7c52cb3 | /Gmail/handle_new_gmail.py | be611bbbe3cebfb2f7ff281ee05bdb9b2aed6b15 | [] | no_license | GregHilston/PandoraProject | a1bd1797805351e2c35bd74c1ac4ffcb19d2173a | 88f97e42a39e112a6c79dcd18d8feda6caa79072 | refs/heads/master | 2020-05-17T00:18:18.086791 | 2015-07-19T18:54:24 | 2015-07-19T18:54:24 | 22,126,684 | 0 | 0 | null | 2014-07-23T11:18:45 | 2014-07-23T01:01:54 | JavaScript | UTF-8 | Python | false | false | 1,739 | py | #!/usr/bin/env python
# Script dependent on: https://github.com/rg3/youtube-dl
import imaplib
import email
from subprocess import call
youtube_urls = []
# Used to easily get a substring
def find_between(s, first, last):
try:
start = s.index(first) + len(first)
end = s.index(last, start)
... | [
"Grehgh@gmail.com"
] | Grehgh@gmail.com |
b5ead447cfefeb3618026a45f0fd21cea7995513 | 73a0f661f1423d63e86489d4b2673f0103698aab | /python/oneflow/test/expensive/_internally_replaced_utils.py | 8276fa0ab10c37bd4effe408fa3f5694ab102d26 | [
"Apache-2.0"
] | permissive | Oneflow-Inc/oneflow | 4fc3e081e45db0242a465c4330d8bcc8b21ee924 | 0aab78ea24d4b1c784c30c57d33ec69fe5605e4a | refs/heads/master | 2023-08-25T16:58:30.576596 | 2023-08-22T14:15:46 | 2023-08-22T14:15:46 | 81,634,683 | 5,495 | 786 | Apache-2.0 | 2023-09-14T09:44:31 | 2017-02-11T06:09:53 | C++ | UTF-8 | Python | false | false | 2,197 | py | """
Copyright 2020 The OneFlow 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 law or agr... | [
"noreply@github.com"
] | Oneflow-Inc.noreply@github.com |
f277df6e07f710d177fc232f3036f6ff93edd0ff | af673f57ae7608efe80c6ae9b6d342ba07954edf | /Sito/main.py | 8058f29035aa4fc86af61826ab274b638c6dc5ca | [] | no_license | TommyGenovese/Elaborato | 002729eaf8ef72817bba6f1c947085e57b48beae | a670f36f47996fad1579f1061ed671c2e47d0f1f | refs/heads/main | 2023-05-02T08:23:01.681211 | 2021-05-21T10:49:45 | 2021-05-21T10:49:45 | 363,427,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,246 | py | from flask import Flask, render_template, redirect, url_for, request
import sqlite3, hashlib, mysql.connector
from werkzeug import datastructures
#add log
app = Flask(__name__)
email = "def"
pwd = "def"
data = "def"
@app.route("/", methods=['GET']) #http://127.0.0.1:5000/
def main():
print("Main")
... | [
"tommaso.genovese@itiscuneo.eu"
] | tommaso.genovese@itiscuneo.eu |
f9f83f196d52a47793819cfbd6af460d5fdce595 | 90c6262664d013d47e9a3a9194aa7a366d1cabc4 | /tests/storage/cases/test_KT1UCoFzRwpQhRg9BWz2QMNwzTud56fCdjSP_babylon.py | f8d8b822bf224b7b14e0e62f9d3dfc07c4a33180 | [
"MIT"
] | permissive | tqtezos/pytezos | 3942fdab7aa7851e9ea81350fa360180229ec082 | a4ac0b022d35d4c9f3062609d8ce09d584b5faa8 | refs/heads/master | 2021-07-10T12:24:24.069256 | 2020-04-04T12:46:24 | 2020-04-04T12:46:24 | 227,664,211 | 1 | 0 | MIT | 2020-12-30T16:44:56 | 2019-12-12T17:47:53 | Python | UTF-8 | Python | false | false | 1,170 | py | from unittest import TestCase
from tests import get_data
from pytezos.michelson.converter import build_schema, decode_micheline, encode_micheline, micheline_to_michelson
class StorageTestKT1UCoFzRwpQhRg9BWz2QMNwzTud56fCdjSP_babylon(TestCase):
@classmethod
def setUpClass(cls):
cls.maxDiff = None
... | [
"mz@baking-bad.org"
] | mz@baking-bad.org |
5b2207888d5917f774beaa8e83fa97856d693717 | f6c69a7f7f1bbae5fd5473dfaac5ef5fad840d58 | /lib/datatools/dataclass/datacatalog.py | 61a0c4aa163e163193588df29a4266dfac7aa5a3 | [
"Apache-2.0"
] | permissive | JokerWDL/PyAnomaly | 8c5ca4ca705a1251c70ff1f36c908c8f6f75e7d8 | cf93437e5d7ae87fa916141cf4b5cc2e929b8199 | refs/heads/master | 2022-11-05T11:31:42.345422 | 2020-06-22T17:21:20 | 2020-06-22T17:21:20 | 274,295,638 | 1 | 0 | Apache-2.0 | 2020-06-23T03:04:32 | 2020-06-23T03:04:31 | null | UTF-8 | Python | false | false | 2,336 | py | '''
Refer to the detectron2's DatasetCatalog
'''
from typing import List
class DatasetCatalog(object):
"""
A catalog that stores information about the datasets and how to obtain them.
It contains a mapping from strings
(which are names that identify a dataset, e.g. "coco_2014_train")
to a f... | [
"446358161@qq.com"
] | 446358161@qq.com |
176535cd1b67d0100b88429b449498ee8e3dadb7 | 17f7a5b0f80b6c18de6048cd4b56511159fd1fb1 | /blog/admin.py | 556cbbdb32d24daef6a499c52427e35e57a8e68d | [] | no_license | Rootjon/check_project | e976dac486e27c56206f13be58cad30aeaabab69 | 4efe57741c13a41384e63dee9bdd4953ec8e7582 | refs/heads/main | 2023-07-27T03:25:27.574429 | 2021-09-09T04:48:47 | 2021-09-09T04:48:47 | 393,386,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 701 | py | from django.contrib import admin
from .models import Post, Comment,Category
from django_summernote.admin import SummernoteModelAdmin
# Register your models here.
@admin.register(Category)
class CategoryAdmin(admin.ModelAdmin):
list_display= [
'name',
'slug'
]
prepopulated_fields={
'... | [
"ahmadjonaid9@gmail.com"
] | ahmadjonaid9@gmail.com |
e4087e8dc68623324c83f04235fb25dffaa5394a | 6a3c2dab6fab4735b41a98b0ff8cb3cc52812164 | /app/forms.py | ba67b6837593e5a756ef52dad502e9d09e8fe06e | [] | no_license | akilga09/projectwebsite | 90afd49b23f3974c863a5c3220e32cfdacded788 | d79ecb75b4fa6bbef3802705d74bb195036509bb | refs/heads/master | 2023-01-22T12:19:17.632532 | 2020-11-27T23:41:00 | 2020-11-27T23:41:00 | 313,167,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | from flask_wtf import FlaskForm
from flask_wtf.file import FileField, FileRequired, FileAllowed
class UploadForm(FlaskForm):
video_test = FileField('Video', validators=[
FileRequired(),
FileAllowed(['mp4', 'mp3', 'Videos Only!'])
])
| [
"agayl012@fiu.edu"
] | agayl012@fiu.edu |
8883114e2c4338866fb30a866294c71717607824 | 58b5c4d5aa0e6853018753729339b9af342c1538 | /main_app/migrations/0001_initial.py | 85f1a5059837eef8b9f8e3b7e3e58e068dd3af75 | [] | no_license | acashmoney/bookcollector | 33fd6dfbde6c7de35deabb66e415eca4e9a1901c | 795d010dc51723da30fb6a1b41340da52bf74b14 | refs/heads/main | 2023-06-15T17:43:39.946543 | 2021-07-11T23:40:43 | 2021-07-11T23:40:43 | 385,074,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | # Generated by Django 3.2.3 on 2021-07-11 22:43
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Cat',
fields=[
('id', models.BigAutoField(a... | [
"aakaash.meduri@gmail.com"
] | aakaash.meduri@gmail.com |
f7cb7a5de948cd36e56b54eee4c79406be49b77a | dffd7156da8b71f4a743ec77d05c8ba031988508 | /ac/abc109/abc109_b/11416688.py | a108bbb8ac35b9102f2c74dfe3e7b4513b27c333 | [] | no_license | e1810/kyopro | a3a9a2ee63bc178dfa110788745a208dead37da6 | 15cf27d9ecc70cf6d82212ca0c788e327371b2dd | refs/heads/master | 2021-11-10T16:53:23.246374 | 2021-02-06T16:29:09 | 2021-10-31T06:20:50 | 252,388,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py |
st = set()
cant = False
prev = "-"
for i in range(int(input())):
s = input()
if (prev!="-" and prev!=s[0]) or s in st: cant = True
prev = s[-1]
st.add(s)
print("YNeos"[cant::2])
| [
"v.iceele1810@gmail.com"
] | v.iceele1810@gmail.com |
5725dbea60de2090839a7d88ea5c0acb7357b58e | 93377b118ea942ef85e0b513a515efb6bfc3f234 | /assignment1/cs231n/classifiers/linear_svm.py | 908538189b89a2efe8e0c9b9534fa18855d2495f | [
"MIT"
] | permissive | shambhu1998/cs231n | 4cc74869ad1e75d2bd2a03720323202f93184622 | cf169f6fea090187787a585c51c624ccd4d9b721 | refs/heads/main | 2023-08-14T01:09:18.427286 | 2021-09-14T08:47:38 | 2021-09-14T10:40:18 | 383,025,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,742 | py | from builtins import range
import numpy as np
from random import shuffle
from past.builtins import xrange
def svm_loss_naive(W, X, y, reg):
"""
Structured SVM loss function, naive implementation (with loops).
Inputs have dimension D, there are C classes, and we operate on minibatches
of N examples.
... | [
"sksr140@gmail.com"
] | sksr140@gmail.com |
c5ff1437f0d351d49af69153cb81a3ca68b48a2c | f4475acdf01fa80ae3a638c19df30773cfd379dc | /listenclosely/admin.py | b7740fd874d120412af39807149d22c7247f7d97 | [
"BSD-3-Clause"
] | permissive | jlmadurga/listenclosely | ea48e7ea05f971ca4fc979f5f52d5a07ec74dcbb | d6df9110c3ed6fd337e0236cccbe4d931bf217b0 | refs/heads/master | 2023-01-07T13:27:30.024214 | 2016-03-12T12:40:29 | 2016-03-12T12:40:29 | 49,677,476 | 7 | 3 | BSD-3-Clause | 2022-12-26T20:23:37 | 2016-01-14T21:49:08 | Python | UTF-8 | Python | false | false | 203 | py | from django.contrib import admin
from listenclosely.models import Message, Chat, Agent, Asker
admin.site.register(Message)
admin.site.register(Chat)
admin.site.register(Agent)
admin.site.register(Asker) | [
"jlmadurga@gmail.com"
] | jlmadurga@gmail.com |
8e8bfc84115d52e6d6da62f676b846cd189e2ef6 | 7daa3548cd24935a1849af8fee871cb4026be009 | /EP1.py | 4708ef4d687f6c6af4c40f74c436a2e3ead62e88 | [] | no_license | GuilhermeRameh/EP1_Desoft | b2b7b512544128aa93d619a18308ee7a9cff1eef | d51f6958561701b883ddf41bf03ea970adbc2803 | refs/heads/master | 2021-05-21T21:28:17.214262 | 2020-04-03T19:29:04 | 2020-04-03T19:29:04 | 252,808,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,020 | py | import random
pr = True
Fichas = 1000
craps = [2, 3, 12]
to_point = [4, 5, 6, 8, 9, 10]
to_field = [3, 4, 9, 10, 11]
while pr:
Fase = 'Come out'
def rolar_dados():
global d1
global d2
d1 = random.randint(1,6)
d2 = random.randint(1,6)
return (d1, d2)
fichas_apostadas_... | [
"guilhermedr@al.insper.edu.br"
] | guilhermedr@al.insper.edu.br |
a29ddfcdd447014b9d334dc240886ec3d4b498ac | bd706deb7aba7ee13645a16ac02af8c4b933c168 | /setup.py | 6ee5260bbca008ea543f10db15a6eb4e15bf78bd | [
"MIT"
] | permissive | Ezibenroc/pycewise | c1a03958cd70c92ed2968bf948f0a4dc0136b366 | 7f7608eec7082deef4c12c52761f4aed4f408d6c | refs/heads/master | 2023-03-13T22:34:11.433595 | 2021-03-04T16:45:35 | 2021-03-04T16:45:35 | 124,917,653 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,123 | py | #!/usr/bin/env python3
import sys
from setuptools import setup
import subprocess
VERSION = '0.1.4'
class CommandError(Exception):
pass
def run(args):
proc = subprocess.Popen(args, stdout=subprocess.PIPE)
stdout, stderr = proc.communicate()
if proc.returncode != 0:
raise CommandError('Error... | [
"tom.cornebize@univ-grenoble-alpes.fr"
] | tom.cornebize@univ-grenoble-alpes.fr |
e5c62e15830315afee9b6fa74cc2e64a21ba91e0 | eaa81b524885231dbd67054a2f12ffc097e7f45a | /tikkachu/nintinder/migrations/0002_auto_20180315_1804.py | 65416f20b02c52861052a4ec7f37b1454c94cf90 | [] | no_license | Philosobyte/nintinder | a7fd4f5bae9282076be2dab8ac5e4aee7affcadd | 572933579b9d2cce8faf8a65ae01890b57d51853 | refs/heads/master | 2021-04-28T18:31:00.992824 | 2018-05-01T23:57:42 | 2018-05-01T23:57:42 | 121,874,663 | 1 | 0 | null | 2018-05-01T22:56:18 | 2018-02-17T17:10:49 | JavaScript | UTF-8 | Python | false | false | 5,619 | py | # Generated by Django 2.0.2 on 2018-03-15 22:04
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('nintinder', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='achievement',
... | [
"jwpereira@live.com"
] | jwpereira@live.com |
aafc873314b89ac941018a2b51cbf4ae092a51f9 | cdc27d1076b5d79c880dc9b621d0e793d697edc7 | /regbymail/regbymail/token.py | 2e731b44ea7758611a76a58572d0eb4c761f4355 | [] | no_license | sjl421/flaskpython | a7d28afbfe1b34f8531f8e2048d534259ddb38eb | 01984085b81caedb3a7c05389dac0c6d91c85e1f | refs/heads/master | 2020-03-24T06:05:18.785952 | 2017-03-07T00:07:25 | 2017-03-07T00:07:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | from itsdangerous import URLSafeTimedSerializer
from . import app
_sk = app.config['SECRET_KEY']
_sps = app.config['SECURITY_PASSWORD_SALT']
def generate_confirmation_token(email):
serializer = URLSafeTimedSerializer(_sk)
return serializer.dumps(email, salt = _sps)
def confirm_token(token, expiration=3600):
... | [
"willgood1986@outlook.com"
] | willgood1986@outlook.com |
148a363790a179f131f48f48f31f719863c13e3b | 1258e001beb0c5aabb866a170625698e9385d3e9 | /Zumbis/katalon-test.py | 32a7d07211c8d378a0099df8ed0561ca0ba8f247 | [] | no_license | mgarcia86/python | 7b3d450d7a0cb5623af446074784f247eb113497 | 66dd2e0dd6000a6d500dca594b23b54acae88169 | refs/heads/master | 2020-03-16T19:46:28.420744 | 2018-05-10T19:32:28 | 2018-05-10T19:32:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,550 | py | # -*- coding: utf-8 -*-
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import Select
from selenium.common.exceptions import NoSuchElementException
from selenium.common.exceptions import NoAlertPresentException... | [
"marcos.note@gmail.com"
] | marcos.note@gmail.com |
16376a330c1d544b4afff1bd30091680daa91817 | e5392a873d841d745523bcfd26ead6e33e667891 | /aws/sqs/SqsHandler.py | 719be31fa9568e30a3fbe47ebd2e4d99ac8f2061 | [] | no_license | sjanne9919/data-pipeline | f0cdc9b3c37cef12127db0c0a3aba452d91ee685 | b2e3ba19d268d688c51852550fc0c67986f88eca | refs/heads/master | 2020-05-27T03:43:22.256976 | 2019-07-28T19:01:25 | 2019-07-28T19:01:25 | 188,469,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,459 | py | import boto3
import json
def init():
global ACCESS_KEY, SECRET_KEY, REGION, SERVICE_NAME, QUEUE_NAME, MESSAGE_COUNT, AWS_ACCOUNT, QUEUE_URL
SERVICE_NAME = "sqs"
ACCESS_KEY = ""
SECRET_KEY = ""
REGION = "us-west-2"
QUEUE_NAME = "sjanne.fifo"
MESSAGE_COUNT = "2"
AWS_ACCOUNT = "" # 1234... | [
"sjanne@tekion.com"
] | sjanne@tekion.com |
755f7c88aff41db09bca63da5756c54f23b7aeb9 | 19bd259314e95be9bafbcf14cb79db0bcceb71cb | /pv_vision/utils/supervisely_conversion.py | 66904ee47ca6fa57e325a19c81c4660ce4590904 | [
"BSD-3-Clause"
] | permissive | hackingmaterials/pv-vision | 42f2d8e4fd276d4d4ad31b44e2b51f05d285bd63 | 3b807ac4e97fb323fb2af11a9ff195726199e912 | refs/heads/main | 2023-08-30T07:12:17.441631 | 2023-08-27T04:52:48 | 2023-08-27T04:52:48 | 253,107,508 | 35 | 6 | BSD-3-Clause | 2022-03-14T00:41:56 | 2020-04-04T22:06:37 | Jupyter Notebook | UTF-8 | Python | false | false | 179 | py | # to-do: convert supervisely output file to pv-vision file
# if you use supervisely, this tool is useful
# if you directly train the model with pv-vision, no need to use this tool | [
"chenxin0210@berkeley.edu"
] | chenxin0210@berkeley.edu |
45a0aa4560784051158e5f797b332ddf83bb5175 | dfb21c6ec71ed46a06cd7786c5cdf67aea7de4b5 | /tools/dataset/h36m_to_coco.py | 701694ee5afde73356f9b3318bcd34ba5ef60205 | [
"Apache-2.0"
] | permissive | anhtu-phan/mmpose | 8d2000a366aece75f5409c494614e2d41d283a86 | c672eeb0086c5ca6c4fe52c717b1858b2b54f480 | refs/heads/master | 2023-09-02T01:01:41.792967 | 2021-09-24T09:09:03 | 2021-09-24T09:09:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,706 | py | import argparse
import os.path as osp
from functools import wraps
import mmcv
import numpy as np
from PIL import Image
from mmpose.core import SimpleCamera
def _keypoint_camera_to_world(keypoints,
camera_params,
image_name=None,
... | [
"noreply@github.com"
] | anhtu-phan.noreply@github.com |
c246fdfe6b566b7e17a75b96fb25572526fe6605 | 5cdec9f3b6cf86d25fb492971a01dd2f41a64af7 | /ipython/bin/ipcontroller | 5aaa1b993649e657bb23643c2026bb6322b764f8 | [] | no_license | jbaquerot/Learning_from_Data | a98657e1c74c7cb7d6f008788b52f929af6282a9 | af575b153598e2ae1b1bd8daa789cfec6e0a67a9 | refs/heads/master | 2016-09-06T15:20:18.408736 | 2014-12-05T19:19:15 | 2014-12-05T19:19:15 | 25,130,154 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | #!/Users/carlos/GitHub/Learning_from_Data/ipython/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'ipython==2.3.1','console_scripts','ipcontroller'
__requires__ = 'ipython==2.3.1'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('ipython==2.3.1', 'console_... | [
"jbaquerot@gmail.com"
] | jbaquerot@gmail.com | |
277b1e335bb799296f3ac2cc1a7085ef4c90502d | 397e0b49061216489d451c7194c75af8576bb105 | /ex_map_to_llistoftuples.py | 43b3f42ad33565fc64f73868b29661966656e023 | [] | no_license | siaarzh/python_scripts | 11e8668cc24843cf861234809b7305ba246cc125 | 3dc8051b9c0128132f02e66a370e2ac524775cb0 | refs/heads/master | 2020-03-23T16:26:22.870102 | 2018-07-21T12:57:24 | 2018-07-21T12:57:24 | 141,809,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | sample = "1,2\n3,4\n5,6"
with open('user_ratings.file', "r") as f:
ratings_list = f.read().strip().split("\n")
ratings_list = list(map(lambda x: x.split(","), ratings_list))
ratings = list(map(lambda x: ("3", int(x[0]), float(x[1])), ratings_list))
print(ratings) | [
"siaarzh@gmail.com"
] | siaarzh@gmail.com |
c383989311b6a33537436038b4dedd0a24e43d79 | 658773cf775fd97c3cec3aca5f559500dec021bc | /controllers/asset.py | c93abf8e08e4c373f5688d022a96348e5dd4d844 | [
"MIT"
] | permissive | smeissner/ifrc | f3795474219d20fba5c68192f5d9b90006288e3e | 505eb6ffbb8fc32fdbbe63fdab4c19d87e53ca86 | refs/heads/master | 2021-01-18T10:43:55.847965 | 2012-10-07T22:43:15 | 2012-10-07T22:43:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,079 | py | # -*- coding: utf-8 -*-
"""
Asset Management Functionality
http://eden.sahanafoundation.org/wiki/BluePrint/Assets
"""
module = request.controller
resourcename = request.function
if not settings.has_module(module):
raise HTTP(404, body="Module disabled: %s" % module)
# ----------------------------------... | [
"fran@aidiq.com"
] | fran@aidiq.com |
8c1b09dbddb340aef46e96b2e01845baf07c6dae | 721b2b4b138b9464560941a85c6258088a5e5767 | /bin/DocTool/DoctorsCompanion/migrations/0006_remove_patientsrec_photo.py | a346d202b085ba86204deeb7acf946b94928c78c | [] | no_license | kivijoshi/DSuit | 35a99dc7901897b8e7abb0fe3b4c25d6427aa92d | a382f85ef0adba149f0a8cb0a8f86e732f1f636f | refs/heads/master | 2021-01-10T08:25:18.909334 | 2015-05-20T19:52:29 | 2015-05-20T19:52:29 | 35,970,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('DoctorsCompanion', '0005_patientsrec_photo'),
]
operations = [
migrations.RemoveField(
model_name='patientsrec',... | [
"kaustubh.kivijoshi@gmail.com"
] | kaustubh.kivijoshi@gmail.com |
9e4342692d5ffa0b28a43e20e9de66c16840eaba | 0727b328d50eeb1367f22052f903930b6256f085 | /classify_comment_emotion-master/doc2vec_test.py | dedf93afad2f6cada394f59162975877da5b9d88 | [] | no_license | jungjonghyun13/Book-Review-Score | a5c352de46db72fde83d2dfc7b3cf7bdf8c2e18f | ea14eff18fa32bd96602a0049ed45ee2311e0df7 | refs/heads/master | 2020-04-04T14:26:21.424535 | 2018-11-14T20:14:20 | 2018-11-14T20:14:20 | 155,999,045 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,883 | py | from collections import namedtuple
from gensim.models import doc2vec
from konlpy.tag import Twitter
import multiprocessing
from pprint import pprint
from gensim.models import Doc2Vec
from sklearn.linear_model import LogisticRegression
import numpy
import pickle
twitter = Twitter()
def read_data(filename):
with o... | [
"yooso020599@naver.com"
] | yooso020599@naver.com |
454eaa9353a71b224055b2b9aa41dbab412206c1 | 3d76e851c19814c11d9ef8e4a516001e1aa3265e | /src/models/nn/base.py | 8dbfb8a9bc39c25729b2b037f509818abc366d0f | [
"Apache-2.0"
] | permissive | bramamoorthy/Tiresias | 557e07d1e2ef1f11d7047e6a7602fda573bc1203 | bc64cb87e5fbddc8bd69e5220e27a49d89c5fe0d | refs/heads/master | 2022-10-09T03:50:58.420004 | 2020-01-22T09:53:14 | 2020-01-22T09:53:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,314 | py | from abc import ABC
from abc import abstractmethod
import torch
from torch import nn
from torch import optim
from torch.nn import functional as F
import mlflow
class BaseNN(nn.Module, ABC):
"""Base class for classifiers such as Multilayer Perceptron and Logistic
Regression.
Parameters
----------
... | [
"thibaud.martinez@gmail.com"
] | thibaud.martinez@gmail.com |
4e6192234348d55c6554eb879932d4327f17c21e | d392a0bb03463e2366aa309df7d365d915c87b15 | /期末大作业/random_forest.py | c8ba05fe029476f2b645dd71b3aaceb4b135db57 | [] | no_license | ChaCha-Chan/2021-ML | 5dfa8990ed0afb07032976cde1d1db4a5dfe5ec9 | 2a6f97ee77dda8fa6e556f5a669bbb9104caf04b | refs/heads/main | 2023-06-16T13:46:38.475492 | 2021-07-13T03:54:25 | 2021-07-13T03:54:25 | 385,467,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,741 | py | from hashlib import scrypt
from numpy.core.records import fromrecords
import pandas as pd
import numpy as np
import random
from scipy.sparse.sputils import matrix
from sklearn.feature_extraction.text import TfidfVectorizer
from scipy import sparse, io
import math
from tqdm import tqdm
MAX_DF = 0.9
MIN_DF... | [
"noreply@github.com"
] | ChaCha-Chan.noreply@github.com |
34db5b7391a365403d281098006f9141600c499b | ff795d9e3d4a369d93e791618f75158c8375acb4 | /main.py | 370b79aabe13a8defb24b636d614055a6497d46a | [] | no_license | softrebel/jobOnjaBot | 0b0b77579adabdc1cca2b3518e30ad9d5bf4c57d | 53bf0aa61b9fcf6ce97f574632e382fd3ecbb83c | refs/heads/master | 2023-08-08T00:13:36.212029 | 2023-02-14T04:54:30 | 2023-02-14T04:54:30 | 186,475,793 | 3 | 0 | null | 2023-08-14T22:04:31 | 2019-05-13T18:38:31 | Python | UTF-8 | Python | false | false | 319 | py | from jobinja import *
from crawlRepo import *
import time
while True:
try:
crawl = jobinjaParser(page_limit=30)
crawl.login()
crawl.crawl(allowInsert=True)
except Exception as err:
logging.error('error occured at scrape {}'.format(err))
finally:
time.sleep(15 * 60)
| [
"sh.mohammad66@gmail.com"
] | sh.mohammad66@gmail.com |
2121c4822e7a5cc2f216bd5d592bef7f0c8e426b | 28de71cda258ef180a7ed827fef9e0f5d3311a4f | /eyes.py | 93de3a2da9046df0161f5f733711bff6a2dea643 | [] | no_license | derricp1/jam-2014 | e355458c6ad9b91ea9a0a15ce132034bcb410b19 | 9a512b431c84ae749bd7336ac4013d404e5b74dd | refs/heads/master | 2021-01-25T12:09:30.798594 | 2014-01-26T23:46:52 | 2014-01-26T23:46:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,198 | py | import pygame, sys
from pygame.locals import *
import Globals
from Player import player
from Floors import floor
from Enemies import enemy
WHITE = (255, 255, 255)
BLACK = (0, 0, 0)
pygame.init()
coverimage = (pygame.image.load('cover.png'))
titleimages = []
titleimages.append(pygame.image.load('title0.png'))
title... | [
"derricp1@apps.tcnj.edu"
] | derricp1@apps.tcnj.edu |
c38e7c7db6ebfa4d86412d5e7f3f0b97cfbea53f | 3fc1a5f003a1b427e749bff08f9eb0f2c593f7da | /snippets/views.py | bb687b8eb534325f10dbb6a18fcb1c5231770cf5 | [] | no_license | davidgarg20/distributorappbackened | d9f2812849a4c02e7bc316862310059eeca0985f | c94bcd471918b2d267acfe616a7481ca0d0fa33d | refs/heads/master | 2021-03-23T11:49:21.404641 | 2020-03-15T11:06:26 | 2020-03-15T11:06:26 | 247,449,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,224 | py | from django.http import HttpResponse, JsonResponse
from django.views.decorators.csrf import csrf_exempt
from rest_framework.parsers import JSONParser
from snippets.models import Payment , Order, Shop ,OrderDetail,DistributorDetail,SalesmanDetail
from snippets.serializers import PaymentSerializer , OrderSerializer ,Sho... | [
"davidgarg28@gmail.com"
] | davidgarg28@gmail.com |
c26fac0815bad9cab0ed4f4192faaf78477ce010 | ca7ecc066f123f1de45154411d9c94e3c97ad331 | /SA/analysis.py | f5926f9cfb6fcf99723dae36311b60979e1275ce | [] | no_license | JethroJC/SocialAnalysis | c43a55b90af5b2d4b7bb039946315f3a9648cbef | c331ab9a3a5c2c0149378e0439c4d4175fa02489 | refs/heads/master | 2022-12-11T20:10:31.505139 | 2017-12-12T14:15:56 | 2017-12-12T14:15:56 | 107,767,722 | 0 | 1 | null | 2022-12-07T23:50:27 | 2017-10-21T09:28:51 | Python | UTF-8 | Python | false | false | 5,505 | py | import pymongo
import datetime
from .spider import *
import json
import requests
url='http://api.bosonnlp.com/sentiment/analysis?weibo'
headers = {'X-Token':'wsyCNqRz.21248.UXNUZt2FXUBg'}
def emotion(weibo_id):
weibo_tweets = get_weibo_state(weibo_id)
now_time = datetime.datetime.now()
base_time = str(no... | [
"jethro@JethrodeMacBook-Pro.local"
] | jethro@JethrodeMacBook-Pro.local |
2131873b41d639f8330052b548e868b8bbbb02da | df3eafcfb9097cba455ce48f9533412296e8ed33 | /week2/5Fib_Again.py | 4c1efeaf4f0b186d3535cfc740a94813657a5b2c | [] | no_license | Novae28/Algorithmic-Toolbox | afd72e805560ef08ce1edd00fb817cb1b185c6eb | 6601a3237b1efda1a1bc40347fce35afb22085f9 | refs/heads/master | 2022-11-23T21:12:51.892439 | 2020-07-31T04:14:47 | 2020-07-31T04:14:47 | 283,087,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 692 | py | import sys
def pisano(modulo):
previous = 1
current = 1
result = 1
while not (previous == 0 and current == 1):
buffer = (previous + current) % modulo
previous = current
current = buffer
result += 1
return result
def fibonacci(number, modulo):
... | [
"noreply@github.com"
] | Novae28.noreply@github.com |
3a2997cad417d25a2cda56dcc31c6fd191757cdd | e42388be4e9f456410f2717528b0f410f9e8d245 | /Tencent/settings.py | 5475027fb6f4db56abed1dc31c5ab36b8d844368 | [] | no_license | ChangfengHU/scrapy | a6274137ac6dc6b6562dbb92152a69acef263c79 | 74a89d568a5a5b5521cf881b6642a39ffdfb6480 | refs/heads/master | 2020-04-17T14:44:11.391259 | 2019-02-02T15:24:26 | 2019-02-02T15:24:26 | 166,669,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,076 | py | # -*- coding: utf-8 -*-
# Scrapy settings for Tencent project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
# http://scrapy.readthedocs.org/en/latest... | [
"faker_322@outlook.com"
] | faker_322@outlook.com |
585fcc9245c2d6d38084b5b73a5720ed3e2ddf0f | ece88aaa420bf1363e59efb2e00380f5f8fef83f | /FreeTimeLance/settings.py | 2cb4031656f367226b0321a24e4bb49489913dc5 | [] | no_license | RedBeardCode/FreeTimeLance | de2184782ea45adf03614a4d590c9fa100a37378 | 6c8f6b27c93a9aba3fdf7aacd83c60cb5bf7c73e | refs/heads/master | 2021-01-16T23:09:51.198441 | 2017-12-22T15:44:16 | 2017-12-22T15:44:16 | 72,297,892 | 0 | 0 | null | 2017-12-22T15:44:17 | 2016-10-29T16:58:46 | JavaScript | UTF-8 | Python | false | false | 3,983 | py | # coding=utf-8
"""
Django settings for FreeTimeLance project.
Generated by 'django-admin startproject' using Django 1.10.2.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/set... | [
"s.farmbauer@red-beard-code.de"
] | s.farmbauer@red-beard-code.de |
1b4b2637f7ecd98e8c14f498029f9ffc984a6efe | 191808d9815c1a6faf9921b1b5f61af13173bbf6 | /DUEL_new/Menu/The_Grand_Arena.py | 44c8a70d9f2c12851b999519569ab457076a1a80 | [] | no_license | siddhanth78/DUEL_game | 065c07a70d3de95145cde9cb3f0c27d80eeeaa84 | 3c5c5067dfccab504cda14781d1b1ac676af882c | refs/heads/master | 2021-04-17T11:07:44.479806 | 2020-06-14T11:14:35 | 2020-06-14T11:14:35 | 271,989,578 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,252 | py | import mysql.connector
import os
import os.path
import time
import random
mydb=mysql.connector.connect(
host="localhost",
user="root",
passwd="teju1sid",
database="duel"
)
cursor=mydb.cursor()
path = "C:\\Users\\manju\\Desktop\\Coding\\PythonPrograms"
file=open(f"{path}\\DUEL_ne... | [
"noreply@github.com"
] | siddhanth78.noreply@github.com |
d05664f8c5fd83b6d863a46c9275ced603abeef6 | 1aacf84f6c8106f04ea03da0a790bce33b22f8b2 | /ACI/Set_Application.py | 1c5281eecae3a43b7a7057a04d1fd383a6236c67 | [
"MIT"
] | permissive | insidus341/devnet | cbd11ff1f90577ad0ec75ae94132b3e143a55bfa | 8d44119b54051dcbc2b894f394e9a2b2d0fee7d8 | refs/heads/master | 2022-11-18T07:54:53.310174 | 2020-07-15T15:06:42 | 2020-07-15T15:06:42 | 264,174,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | import os
from pprint import pprint
from Get_Token import get_api_token
import requests
import json
url = "https://sandboxapicdc.cisco.com/api/mo/uni/tn-Heroes/ap-Save_The_Planet.json"
headers = {
"Content-Type": "application/json"
}
cookie = {
"APIC-cookie": get_api_token()
}
payload = {
'fvAp': {
... | [
"james.earl@meraki.net"
] | james.earl@meraki.net |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.