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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
858ab50888dd21c994d1bce41e4e88333eaaa575 | 8d17a510ab17dec28ac05d26d3a0aeccceb9671a | /service/ping.py | 163b376438712e900a8f99aaa7be6bada2e6d0db | [] | no_license | duysy/DSMonitoring | 6b7e2bc946f939dd0a1b911d7381e89b6e75d14e | c573e689aa7148cf397558d5cf6f4a0c1a4af9d2 | refs/heads/main | 2023-02-12T19:17:01.189478 | 2021-01-07T17:25:15 | 2021-01-07T17:25:15 | 323,513,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | import subprocess as sp
import sys
class Ping:
def ping(self,ipAddress):
if sys.platform.startswith('win'):
status,result = sp.getstatusoutput("ping " + ipAddress)
else:
status,result = sp.getstatusoutput("ping -c1 -w2 " + ipAddress)
if status == 0:
print... | [
"duyduysysy@gmail.com"
] | duyduysysy@gmail.com |
d56303d442871076d3f279dc65ed8e5a21186c37 | 7541f7bf16b86dd00f43cf6c6a3ae4dfeb1ded07 | /python/py3study/capi/setup.py | 3c6c1c509434d6b19e50a7048b94f0d9c96adde3 | [
"MIT"
] | permissive | sillyemperor/langstudy | 382fd026b19676426b3023b49e5a485d5bc12b56 | 937a11d97984e10e4ead54f3b7b7d6a1f2ef24a1 | refs/heads/master | 2021-06-18T21:39:48.682000 | 2019-10-30T11:19:45 | 2019-10-30T11:19:45 | 206,315,555 | 0 | 0 | MIT | 2021-04-26T19:29:50 | 2019-09-04T12:36:55 | Python | UTF-8 | Python | false | false | 252 | py | from distutils.core import setup, Extension
module1 = Extension('spam',
sources = ['spammodule.c'])
setup (name = 'spammodule',
version = '1.0',
description = 'This is a demo package',
ext_modules = [module1]) | [
"sillyemperor@163.com"
] | sillyemperor@163.com |
bc52f1dbe657d63215c89f363cbe51dc31a0f7fb | 9bab49ef2da0cf65ceb0ff00472f803f1ecfb99f | /refine/convention/refine_gumico.py | 63e86277aa6508f2427f378169e75266c00687a3 | [] | no_license | abyssdog/crawling | 52fcd9c6f7306c5eb6706ffd93864af93727b0a0 | b8d406d3a8dc2d724cd521266567684a7cf000f2 | refs/heads/master | 2022-12-01T21:39:59.355055 | 2020-08-03T01:13:20 | 2020-08-03T01:13:20 | 262,006,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,773 | py | import datetime
from datetime import timedelta
import pymysql
import re
from openpyxl import Workbook
from openpyxl import load_workbook
class CrawlClass(object):
def __init__(self):
self.host = 'localhost'
def test_insert1(self):
conn = pymysql.connect(
host=self.host,
... | [
"abyssdog@dangamsoft.com"
] | abyssdog@dangamsoft.com |
1c8644801d4f3284a3ca00d2e2b3c0baf999df32 | 19679e7853a3c5a7fe2fbfd898b4c94bfdd06678 | /TContacts/main.py | 72ac87d18ef8f5f447d60c93b9d396283ee8a8b2 | [] | no_license | danielteberian/TContacts | a8a524990874dbf9cbcd3dc85e92988ae1861772 | d0034cc1ef6601b48ed24787fc119062514ba718 | refs/heads/main | 2023-04-14T19:45:19.672599 | 2021-05-04T00:55:45 | 2021-05-04T00:55:45 | 363,562,379 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | py | import sys
from PyQt5.QtWidgets import QApplication
from .database import createConnection
from .views import Window
def main():
app = QApplication(sys.argv)
if not createConnection("contacts.sqlite"):
sys.exit(1)
win = Window()
win.show()
sys.exit(app.exec())
| [
"danielteberian@gmail.com"
] | danielteberian@gmail.com |
b209e7c64878457a0369057c5792e83d8cef26bc | 76887783e57477f991f9d37b2f411064a2a798d2 | /bin/backgroundSubtraction.py | c37bf3879e00e5ea0973a83220b8356193706b24 | [] | no_license | dougnd/vehicleTrackingPalmetto | 6bd9f9166a86b693998d4a05a38c9c8b738a3d37 | d22fd747041cfb8d86a8c984195dd083093e693d | refs/heads/master | 2021-01-13T08:49:36.797896 | 2016-12-15T22:11:20 | 2016-12-15T22:11:20 | 71,915,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,428 | py | import vtpalmetto
from sh import rm, Command, cp
import re
import argparse
import time
import numpy as np
runHours = 10
vtp = vtpalmetto.VTPalmetto()
vtp.qsubParams = dict(l='select=1:ncpus=6:mem=16gb,walltime={0}:00:00'.format(
runHours))
vtp.name = 'backgroundSubtraction'
testFrames = [10, 11, 12, 13, 14]
trai... | [
"dougnd@gmail.com"
] | dougnd@gmail.com |
50102739f72f9582a523ede93ba809e7e04c7c54 | 5acbe301bec58ca72b9952f58e7c859832eaf021 | /1_ProceduralProg/Chap02/Exo02/count_chars.py | cff565d74fafcaf21c38e1df87f3ae997cb6c5c0 | [] | no_license | sovoessi/PYTHON | 558f90f045603b92a154dc37dcdffc287e0dcb06 | aeda903fb08dce485f8d2c9c089a48c66d79f623 | refs/heads/master | 2023-04-10T18:12:22.614658 | 2021-04-21T10:08:52 | 2021-04-21T10:08:52 | 360,092,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | in_user = input("What is the input string? ")
print(f"{in_user} has {len(in_user)} characters.") | [
"jacksovoessi@hotmail.com"
] | jacksovoessi@hotmail.com |
aabadc504dfeff265515c90881f8e004e9daa705 | c6fe47c1d631a29e86c5a9f8c2a2cba8b3b1b520 | /tests/test_utils/lnd.py | 573a36ee7c912c97715ae37bb2b2adeb03fa2bb5 | [
"MIT"
] | permissive | merta1/lnd_grpc | ad2d9f731ee84f34ea6e9fab807c9d98990d752d | 09091b8a7d25f47abd32ea25896fc47cdb95d105 | refs/heads/master | 2020-05-20T05:35:02.008216 | 2019-04-29T08:33:15 | 2019-04-29T08:33:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,786 | py | import logging
import os
import time
from ephemeral_port_reserve import reserve
from lnd_grpc.lnd_grpc import Client as lndClient
from test_utils.utils import TailableProc, BITCOIND_CONFIG
# Needed for grpc to negotiate a valid cipher suite
os.environ["GRPC_SSL_CIPHER_SUITES"] = 'HIGH+ECDSA'
class LndD(TailablePr... | [
"noreply@github.com"
] | merta1.noreply@github.com |
83ff841244fcd72238e5a536dca7417a458e86f2 | 73a803650cbd64615091e57d13101e9420e25b22 | /tweetapp/migrations/0006_auto_20200907_2123.py | 52ec2822282b7dbd1b95871d1f59d39ea77b9ebb | [] | no_license | Joseph455/tweet-clone | e332cb393983767142858205dfa508f580b2491e | 0fcfc62263ca6a9f9bd933d016df2df9dca4e6be | refs/heads/master | 2023-07-10T16:02:47.482217 | 2021-08-21T18:27:42 | 2021-08-21T18:27:42 | 330,186,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | # Generated by Django 3.0.8 on 2020-09-07 21:23
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('tweetapp', '0005_auto_20200907_2120'),
]
operations = [
migrations.AlterField(
... | [
"adebowalejojo2001@gmail.com"
] | adebowalejojo2001@gmail.com |
09903d4b9833932dbf2e2f99e2d1f45a1660182f | 3a8408aefe35580e4c1f6a4ac3d22c8bf41827af | /demo/goal_planner_gui/src/planning.py | 5dda51c72081291d7976579c1779438ce26f14b2 | [] | no_license | Hankfirst/neurobots_demonstrator | df9cc2b44785da6866fb8161bd9ac4811f886009 | b77fadce8054163899ff7ca65d2d4417441649f0 | refs/heads/master | 2021-09-24T22:04:15.493990 | 2018-10-15T13:27:20 | 2018-10-15T13:27:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,256 | py | from os.path import abspath, dirname
from configobj import ConfigObj
from pddllib import pddl
import cplan
import goals
import logging
logger = logging.getLogger('root')
#planner config
CONFIG_FN = "config.ini"
class Planner(object):
def __init__(self, state, config_path):
config = ConfigObj(config_pa... | [
"kuhnerd@informatik.uni-freiburg.de"
] | kuhnerd@informatik.uni-freiburg.de |
441a9766f2e2c2e0dc1072e93602ca8d44b81b43 | b1fb6abd2ec53d180e45c02bcec2e5c8b8ab5729 | /src/scriptManipulateTable.py | b740b2073be62ad2be5c27fbdfaff25eba0f264f | [] | no_license | biobakery/pouchitis | 1162075fb9b889b788fbaf2147399235d3fb73fb | b19d3a18159a5ef1c5ed8580f7b66956b01eabd1 | refs/heads/master | 2022-07-05T20:58:02.113791 | 2020-05-21T00:09:44 | 2020-05-21T00:09:44 | 265,713,286 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,676 | py | #!/usr/bin/env python
"""
Author: Timothy Tickle
Description: Performs common manipulations on tables
"""
__author__ = "Timothy Tickle"
__copyright__ = "Copyright 2012"
__credits__ = ["Timothy Tickle"]
__license__ = ""
__version__ = ""
__maintainer__ = "Timothy Tickle"
__email__ = "ttickle@sph.harvard.edu"
__status__ ... | [
"rschwager-hsph@localhost"
] | rschwager-hsph@localhost |
5f81cab976c891e02f4f7d4c3ecc56b284fbe8a0 | 8ebe7adab3daf5fd739970c9da9456f8f122a941 | /Data-Science_hw3/hw3/reddit_sparse.py | 49bd3827d35b8f7e0105b02d9aba1ac28570c7df | [] | no_license | tsenggordon/Data-Science | f497c999cbe7a03b5209e4b107241f2fd1dbad43 | 78905ae22d54dd6f036f3991a5a9b17b09595954 | refs/heads/master | 2021-01-21T13:04:21.158521 | 2016-05-19T14:55:52 | 2016-05-19T14:55:52 | 53,210,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,168 | py | import csv
import numpy as np
from collections import defaultdict
from multiprocessing import Pool
import pickle
import os
import networkx as nx
from scipy.sparse import csr_matrix, vstack
FILE = "reddit_sort_200k.csv"
#FILE = "reddit_100000.csv"
#FILE = "reddit_50000.csv"
def build_dict():
post_dict = {}
author_dic... | [
"kuoweitseng@gmail.com"
] | kuoweitseng@gmail.com |
de4a7a14d2f6fe0113e855fbde0cf5395d6aedca | 51a80368dff80cb3d01ed19692575564f56da149 | /services/migrations/0007_auto_20201120_2213.py | e1631f54213c7bb3a8411a7c0c7b9e07ee5ee85b | [] | no_license | guilhermewebdev/acacia-api | 44986442c34223fce844fa30ed3623b76fc1e3fb | e33b07b024fe15dff16f76e2e2f530365f34dc54 | refs/heads/master | 2023-03-30T12:28:14.106408 | 2020-12-14T22:11:19 | 2020-12-14T22:11:19 | 353,794,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | # Generated by Django 3.1.3 on 2020-11-20 22:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('services', '0006_auto_20201120_2212'),
]
operations = [
migrations.AlterField(
model_name='job',
name='start_datetim... | [
"guilherme@localhost"
] | guilherme@localhost |
8cddad5babfbce45fa0c363641d48e16b2c96d27 | a3ae61f362d6b2a50c552660df4a5123840948db | /config.py | 31d12ffa828f9262e7bdd65a249ee68b033d8c1e | [] | no_license | Puttipong1234/PYBOTT-TODOLIST-NOTIFY | dac2eab8e0575b505658f137c58d667392126aeb | ac2c0e03891af4044cad8d809109408bc9197fcc | refs/heads/master | 2022-12-16T02:17:52.700831 | 2020-08-29T08:52:14 | 2020-08-29T08:52:14 | 290,964,480 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | import os
spreadsheet_key = os.environ.get('SPREADSHEET_KEY') # setup env variable on heroku
service_account_key_file = os.environ.get('GOOGLE_APPLICATION_CREDENTIALS') # setup env variable on heroku
notify_token = os.environ.get('LINE_NOTIFY_TOKEN') # setup env variable on heroku
SPREADSHEET_LINK = os.environ.get('SP... | [
"Puttipong.lims@gmail.com"
] | Puttipong.lims@gmail.com |
00b618cc879d52c09940ddfc10d81501d09b159e | 8a4c2ae24835d87670e9c9ab4ac32e4c85eeea5a | /generate_draft.py | 60415b3ebad930d4bf2b04bd31921a5ba7ca9d25 | [] | no_license | szou00/analytics_happydogs | 5bb5f9c57a24fff62824494456ed309e23eb1350 | 5673c5bf66e296591bd3833e9bcc75df482c48e4 | refs/heads/main | 2023-08-10T09:44:33.227764 | 2021-09-06T14:48:59 | 2021-09-06T14:48:59 | 387,914,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,394 | py | """Automatic Draft Generator
This script uses the Front API to review emails and draft replies with
response templates when necessary.
This script requires that `requests` be installed within the Python
environment you are running this script in.
This file can also be imported as a module and contains the following... | [
"43053716+szou00@users.noreply.github.com"
] | 43053716+szou00@users.noreply.github.com |
e3d2b3fd01e3d6198f590fe4025c072b285bccb5 | 64b731c4385be883e296f2347a4fb8fb3dcacee2 | /main/forms.py | ef7c3301c407f5eb2298676919449abcbcbf0efa | [] | no_license | Couragyn/spruceEditing | 136310ddf5d427ae6b19d1741bfe2ca6a479f1a4 | 6cc4b4bb2e7c8797f3aeed8bbd254af43d6c2e79 | refs/heads/master | 2023-04-16T16:14:43.076781 | 2021-05-04T17:22:01 | 2021-05-04T17:22:01 | 321,816,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,452 | py | from django import forms
from captcha.fields import ReCaptchaField
quote_choices = [
('Academic Papers', 'Academic Papers'),
('Applications & Grants', 'Applications & Grants'),
('Cover letters & Resumes', 'Cover letters & Resumes'),
('Websites & Blogs', 'Websites & Blogs'),
('Newspaper & Magazine A... | [
"couragyn@gmail.com"
] | couragyn@gmail.com |
0113b4bc7587a885d3b38bcecbc777be4442adbd | f55a00d30e67c4eea0b425162140207984f3f9df | /app/demo/models.py | 2b796e3a7403b16f4f612ee41e792bed14ac1c23 | [] | no_license | andynguyenm/django-rest-api-sample | bbb89fa297f0e927eabe1cb0c0d9708ddae8dd48 | 746c1d03d5dc3c8488d64e5c01e23ce81fa257fd | refs/heads/develop | 2022-12-22T13:10:07.513141 | 2017-10-06T09:58:05 | 2017-10-06T09:58:05 | 105,881,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,062 | py | from django.db import models
from django.db.models.signals import post_save
from django.contrib.auth.models import User
from rest_framework.authtoken.models import Token
from django.dispatch import receiver
# Create your models here.
class BucketList(models.Model):
"""This class represents the bucketlist model."... | [
"nghianm@runsystem.net"
] | nghianm@runsystem.net |
6a7758880e1dded0ce5cd0f706bd7b963afa65f2 | ab7a5fdc5375e63e2483ef29dfdb994b687da972 | /food2fork/__init__.py | af3b9e4485adf21d37a6f502eb787c1c48f578ab | [
"MIT"
] | permissive | mainrs/MLFoodPairing | 520d5442597215973d985434d366dddef88f8bd7 | 00d7b5b436328a08e98f0fd02143ed8755331a1e | refs/heads/master | 2023-03-28T10:18:33.752223 | 2018-05-01T06:41:13 | 2018-05-01T06:41:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,736 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
.. module:: food2fork
.. moduleauthor:: Julien Spronck
.. created:: March 2018
'''
import json
import re
import pymongo
import requests
from bs4 import BeautifulSoup
from food2fork.config import FOOD2FORK_API_KEY
import food2fork.ingredient_parser as parser
import fo... | [
"github@frenetic.be"
] | github@frenetic.be |
208520ec6faf7a20465bcdae97a776059c2a8942 | e811662c890217c77b60aa2e1295dd0f5b2d4591 | /src/problem_70.py | 9f79c1c9227baf7b401269ea318c8b52448b42a3 | [] | no_license | rewonderful/MLC | 95357f892f8cf76453178875bac99316c7583f84 | 7012572eb192c29327ede821c271ca082316ff2b | refs/heads/master | 2022-05-08T05:24:06.929245 | 2019-09-24T10:35:22 | 2019-09-24T10:35:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,357 | py | #!/usr/bin/env python
# _*_ coding:utf-8 _*_
def climbStairs(self, n):
"""
็ฎๆณ๏ผๅจๆ่งๅ
ๆ่ทฏ๏ผ
็ฌๆฅผๆขฏ็ๆนๅผๅชๆไธๆฌกไธ1ๆญฅๆ่
ไธๆฌกไธ2ๆญฅ๏ผๆไปฅ็ฌฌiไธชไฝ็ฝฎ็็ถๆstate(i)ๅชไธstate(i-1)๏ผ
ๅstate(i-2)ๆๅ
ณ๏ผไพๅฆstate(5)๏ผ็ฌฌ5ไธชๅฐ้ถไธๆฏไป็ฌฌ3ไธชๅฐ้ถๆฅ็ๅฐฑๆฏไป็ฌฌ4ไธชๅฐ้ถๆฅ็ใๆไปฅ
ๅฏไปฅๆ้ ็ถๆ่ฝฌ็งปๆน็จstate(i) = state(i-1) + state(i-2)ใ่ฟไพฟๆฏๆไผๅญ็ปๆ๏ผๅณๅฝๅ่งฃ
ไพ่ตไบๆดๅฐ่งๆจก็่งฃใๅนถไธ็ปๅบๆฅๅพๅๅฏไปฅ... | [
"457261336@qq.com"
] | 457261336@qq.com |
22a2116ccdefdc98a9450d2d810f260f5099439d | 016a5f87f4b29640756495ae3e9ae123ab27465b | /siraj/myclassifier.py | 0b965912519cfba6cb5833d57d6589d99fe976a9 | [] | no_license | fazejohk/ImPy | 8bc6e4b9ab824763cd77e59c6ae7968ec077f178 | c3d6be535b629226c525a2553736ea2a6ff69487 | refs/heads/master | 2021-04-30T13:02:16.873382 | 2018-03-20T15:13:13 | 2018-03-20T15:13:13 | 121,287,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,889 | py | import wikipedia
from sklearn.feature_extraction.text import CountVectorizer
from sklearn import tree
x = 0
y = 0
words = []
whatisit = []
vectorizer = CountVectorizer()
decision = tree.DecisionTreeClassifier()
# So this is what is happening:
# I'm opening a word list called SkullSecurityComp
# and searching the terms... | [
"johkmr@gmail.com"
] | johkmr@gmail.com |
a0244f7a50d5afebf201e351a8c8342132e79e9b | fa6f374fcdb892e35c8041db136f5c16abf2043a | /tomswift2pml.py | 00a7fbd4002ebed3da78a97231e770c3da5b875d | [] | no_license | mgatto/tomswift2pml.py | 0943b0f27fa9b8f072304bab093201d1cf111a0a | f84e1678bd244a807c23540ffb3aad0b95687fa0 | refs/heads/master | 2022-11-05T02:07:33.004792 | 2020-06-15T00:22:05 | 2020-06-15T00:22:05 | 272,305,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,576 | py | import linecache
"""
replace -- with \a150\a150
"""
# lifted from a stackoverflow snippet and modified by me.
def int_to_roman(input):
""" Convert an integer to a Roman numeral. """
if not isinstance(input, type(1)):
raise TypeError(f"expected integer, got {type(input)}")
if not 0 < input < 4000... | [
"mgatto@vinsuite.com"
] | mgatto@vinsuite.com |
d18b5dee90a502b1f960247c1c55f66caee5a74c | b9433e893746e35f31e61a349b4f07e51aca822f | /ftp/down.py | 874de8cc6564d14ddfe98f08785fb404fb9b1b71 | [] | no_license | adadeeeh/progjar | 71a689bb510c1bdedf357d2ddd77d58c67a017f5 | d6f85bf22d2acfae0867a61052eca28cbafa2ad1 | refs/heads/master | 2021-07-15T08:15:37.588593 | 2017-10-23T07:19:39 | 2017-10-23T07:19:39 | 105,483,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | from ftplib import FTP
f = FTP('127.0.0.1')
f.login('Hana', 'tes')
fd = open('grafkom.pdf', 'wb')
f.retrbinary('RETR grafkom.pdf', fd.write)
fd.close()
f.quit()
| [
"faturrahmanmakruf@gmail.com"
] | faturrahmanmakruf@gmail.com |
ff577b243a30e6d8ed9bf166b5dc4666b2766396 | f6cba93e1fd4907ab0ac2dbabfebc174db1d199f | /final_project/game_class.py | f8d78f7ab7095dca239c1eeecc3be6b33c1fd0aa | [] | no_license | muqizou/242_final_lol | a3a0e01f9c064ef34a9421a6b3bcbf7474a15f96 | 25a58e301e3dbb2a0d29c487f00dbdcf6f887ce2 | refs/heads/master | 2021-01-10T06:53:59.422713 | 2016-02-19T05:39:34 | 2016-02-19T05:39:34 | 52,055,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,261 | py | import roles
from roles import roles
class game_class:
def __init__(self,blueside,purpleside,win):
self.blueside=blueside
self.purpleside=purpleside
self.win=win
def tell_result(self):
return self.win
def find_num(self,nums):
for i in range(0,5... | [
"muqizou2@illinois.edu"
] | muqizou2@illinois.edu |
80ef6c1589b3dc81546f05c175f25444c4f3844d | 26d04fb000bdd882120109c5aec82c26fb1d9cdb | /interface/canibal/CANibal.py | 5bf3642d4240954a53ae2e615c8ed896a971d020 | [] | no_license | blomqvist/thesis | 445ae2dafebd2c2361ec28f9a9c1e55b1f20a4d7 | 532d0e47a18c05cf643a5898c6f92020d2f7e6d0 | refs/heads/master | 2020-05-17T04:22:37.097397 | 2016-01-28T18:21:40 | 2016-01-28T18:21:40 | 30,926,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,117 | py | import subprocess
import os
class CANibal:
count = 0
FNULL = open(os.devnull, 'w')
''' ICH DEFINES '''
ICH_NODE_ID = 0x17
ICH_PDO_MISO1 = (0x200 + ICH_NODE_ID)
''' ACT DEFINES '''
ACT_NODE_ID = 0x0B
ACT_PDO_MOSI1 = (0x200 + ACT_NODE_ID)
ACT_PDO_MISO1 = (0x180 + ACT_NODE_ID)
ACT_PDO_MISO2 =... | [
"niklas.blomqvist@gmail.com"
] | niklas.blomqvist@gmail.com |
5b79656e0e0548dcf89cf0e97aeba438f35d2ddc | 916f8962b18272b62fdccd5b2d9ec4b2b2d4d533 | /prelim/nuisance_matrix.py | c2c48eb0b9d1865b09a5941cfa329243871012da | [] | no_license | fahaxiki1234/ThalamoCortical_YBK | 284b84f67fdcc525e3b0c65cc13f0068463fce5d | 63fee7dea60ba94d04ef9f55cd2b220bb63836a6 | refs/heads/master | 2023-03-16T04:22:02.865421 | 2020-05-22T04:21:46 | 2020-05-22T04:21:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,421 | py | #!usr/bin/python
import os
import numpy as np
for subject in os.listdir(os.getcwd()):
if subject.startswith(('C','F','N')):
matrices = 'CSF_noise.txt', 'WM_noise.txt', 'mn.txt'
for matrix in matrices:
if matrix.startswith(('C', 'W')):
nuisance_path = '{subject}/nuisanc... | [
"noreply@github.com"
] | fahaxiki1234.noreply@github.com |
e58b04d39ba07e1e3dc874d35c7451fae4675d0d | de11f3f8b11e48c17aaf8fc8e73a9514683ee783 | /main.py | 4d8847a5d7a4fee0a8206bdf85999b3da1de4559 | [] | no_license | Yz4230/watch_uec | c57ab6cd87eabbe2f0b714143ef80303cf3ad131 | e6a905d68e8c963a5a8bc8e5c1b44406b1c3560d | refs/heads/master | 2023-04-16T19:50:44.707347 | 2021-04-28T02:27:34 | 2021-04-28T02:27:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,525 | py | import re
import json
import os
import requests
import discord
from typing import Optional
from pprint import pprint
from difflib import unified_diff
from datetime import datetime
from bs4 import BeautifulSoup
from dotenv import load_dotenv
load_dotenv('.env')
DISCORD_WEBHOOK_URL = os.environ.get('DISCORD_WEBHOOK_URL... | [
"yuzupon1480@gmail.com"
] | yuzupon1480@gmail.com |
a4ddc00e2cfe0b4082f7f3aa943524d7b959c566 | 55fea66b55b669838b933b5182f819067bc85e0c | /src/LoginController.py | 39e6c97a4e5032bebfb66d3bafe483e23b025ffc | [] | no_license | jalacardio/LolAnaly | 334f6bf008d43411658baf3e7bfe9a62700d581b | 09da0520b6d55aa079bb8d836386c82a20dc2f78 | refs/heads/master | 2021-09-02T08:57:14.564969 | 2018-01-01T08:17:19 | 2018-01-01T08:17:19 | 115,587,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | class LoginController:
def __init__(self):
print("Login controller created")
def login(self, app):
usr = app.getEntry("UserID")
print("User: ", usr) | [
"noreply@github.com"
] | jalacardio.noreply@github.com |
673017b4758bc4dcd16835c0e1a246dda28b7ba3 | 906c2d43c010b0435c8254246e92505ae350af93 | /AI/team29.py | 3582e2f0ec0e112bb7e20f04609030a44879b15e | [] | no_license | surendra1233/sem-4 | 5ba25225179767c102f219cdb8bc8b63ca150214 | 3f9fe0d0761fcb3ca847d36fd61fad3f9e4a6795 | refs/heads/master | 2022-07-20T01:44:41.526805 | 2019-06-17T15:21:23 | 2019-06-17T15:21:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,730 | py | # from simulator import copy
import copy,time
class Team29:
def __init__(self):
self.blocks = {}
self.player = "x"
self.opponent = "o"
self.count = 0
self.start = time.time()
def find_valid_move_cells(self, old_move,small_boards_status,big_boards_status):
#returns the... | [
"gopireddysurendrakumarreddy@gmail.com"
] | gopireddysurendrakumarreddy@gmail.com |
b1fedd640e6e1d56b61220de47933530cc15c3d4 | a6a3f9b829c89bf0865902e41d23c801578e1aa2 | /manage.py | b7887d01c45c48f3164b8b438dc6b8f2e53f0747 | [] | no_license | Ajithsingh26/celery-python | 2b361cfc6b46aa60d2b56723f1880ee480c93b6e | 56055fd29ac694fe570f6340940db385326a4a74 | refs/heads/master | 2023-07-07T21:01:49.038366 | 2021-08-04T18:08:41 | 2021-08-04T18:08:41 | 392,785,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'mail_celery.settings')
try:
from django.core.management import execute_from_command_line
except ... | [
"aj@localhost.localdomain"
] | aj@localhost.localdomain |
03bd9e1cbe334ce7f9d854894bb3a88f503970be | d163ba3eaec7130e57e0e3e32814f27b38137f4f | /Utils/preprocessing/resize.py | 2234ee977c76fd23c6c7a7edb027346aae21e922 | [] | no_license | zerebom/0513_make_disparity_picture_withCNN | e874864c2cf97fe75b5db73474b1b1b5f7f3d0c1 | 6569c59047caf80a72c7a174a3a96873de6311d2 | refs/heads/master | 2020-05-22T12:54:30.142109 | 2019-05-22T05:44:32 | 2019-05-22T05:44:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,685 | py | #slide็ปๅ็จใซใpath_changesใใไฝๆฉ่ฝใฎใณใผใใไฝๆ
import glob
import os
import re
from PIL import Image
from tensorflow.python.keras.preprocessing.image import load_img, img_to_array, array_to_img, ImageDataGenerator
import numpy as np
def path_changes(picture_names, parent_dic, child_dic, original_pic_paths, init_size=(1024, 1110... | [
"ice.choco.pudding.kokoro@gmail.com"
] | ice.choco.pudding.kokoro@gmail.com |
1c7d4a57163cafb2d66c7657345ef2dfc466f870 | 1c37991316f22c4b804d2ca2232fc6335539e38a | /venv/Scripts/easy_install-3.5-script.py | 3ddd10162ea5ec8975c5d83a34be3c6066075ef0 | [] | no_license | DUTZXD/MLHW2 | 363846b0e11bd4a8711d8393ff8a3f8efb4a4736 | c85f3abc264bbfcf18ba4922587395c776a516b9 | refs/heads/master | 2022-10-20T10:22:27.704358 | 2020-06-10T00:02:30 | 2020-06-10T00:02:30 | 270,972,394 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | #!"F:\Pycharm Project\MLHW2\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.5'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$',... | [
"951383631@qq.com"
] | 951383631@qq.com |
2a2a8d2c438b23ca394b6ff90b091b17dfba1f5b | 78a63d44d841b92fe501bfcadb2fa350077ed405 | /modRelation/api/serializers.py | 824e443a5c626bf9697a2d0742d390b81c0fd3fb | [] | no_license | rmnkarkey/Django-Api | 27513a81359ca35d46ab2c5e2a77edd5d3c2561e | 30d640b18e7e5a7025020d3e8477b7cdd1196ded | refs/heads/master | 2020-04-03T16:59:19.950310 | 2018-10-30T17:22:13 | 2018-10-30T17:22:13 | 155,427,361 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | from modRelation.models import Reporter,Article
from rest_framework import serializers
class modelsSerializers(serializers.ModelSerializer):
class Meta:
model=Reporter
fields=('id','first_name','last_name','email')
class AotherSerializer(serializers.ModelSerializer):
class Meta:
model=Article
fields=('id',... | [
"rk.officialuser@gmail.com"
] | rk.officialuser@gmail.com |
3259d6d8dbe83bc7bd9396a0f051510a2dc63971 | 32911eab1e039fbba653af3d0e69005c0c3b5ec2 | /main/main.py | 5618fff4d2cf9e9ec37a070390e7092695139976 | [] | no_license | juso40/BL2FiringPatternEditor | e4a88e966f5f8f5a4133933f8ea6afec1f84f3b6 | 3aa7fe00203dfdf108f94fa2707e6304a412006f | refs/heads/master | 2022-08-31T10:24:52.830769 | 2020-05-18T22:41:40 | 2020-05-18T22:41:40 | 264,648,607 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,759 | py | import pygame
from copy import deepcopy
def export(points, screen_mid):
points = deepcopy(points)
p_line = "(StartPoint=(Pitch={pitch},Yaw={yaw},Roll=0),EndPoint=(Pitch=0,Yaw=0,Roll=0)," \
"bUseStartPointOnly=True," \
"CustomWaveMotion=(bUseCustomWaveMotion=False,WaveFreq=(X=0.000000... | [
"justin.sostmann@googlemail.com"
] | justin.sostmann@googlemail.com |
ce077575cd036ba0e120e0d021597f7c91824a8c | d692146094664ee7affd3c20664f7493ec4edd93 | /shodan-monitor.py | b1e9e3212d68ddae7c046e44bbfcc97c713105ad | [] | no_license | happostroph/shodan-monitor | be1c775fd69fdb5614365986733d425dc00136d6 | ff500423c60b6edc13e89df7162a4b7adf696424 | refs/heads/master | 2020-09-25T17:06:33.131424 | 2019-12-05T11:22:22 | 2019-12-05T11:22:22 | 226,050,381 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | import shodan
import os
SHODAN_API_KEY = os.environ.get("SHODAN_API_KEY")
api = shodan.Shodan(SHODAN_API_KEY)
query = ""
try:
# Search Shodan
results = api.search(query)
# Show the results
print('Results found: {}'.format(results['total']))
for result in results['matches']:
... | [
"maxime.neuville@viacesi.fr"
] | maxime.neuville@viacesi.fr |
7476c30898cb71816f6f69ab81cf15673391f27d | 99e6430dcdf0ed64b2501b3faab4dbbfee73b245 | /projects/migrations/0002_auto_20170430_1206.py | 59c651455daa4647da9ef970aed038fb5ed8f50e | [] | no_license | Shriram-N/social-app-django | 63df2d40f0675e6ca55a044aec267dd04b2f3a25 | 321f5bfc3584d5a45bf7ff42c1892987ab1d394f | refs/heads/master | 2021-01-20T07:48:22.763833 | 2017-05-02T15:07:34 | 2017-05-02T15:07:34 | 90,046,663 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 489 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
('projects', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name=... | [
"shreeram51091@gmail.com"
] | shreeram51091@gmail.com |
34a7d81b8fedbc037428cff8816bbb4e0e284f73 | c4b607b5d777ce58303ebbff6acfa9337a9f3f52 | /ex04/ran_langd.py | d798a45454e3f8e00caf127fa277b14094d6c5ee | [] | no_license | Ran4/dd1331-public | ee30f64809f2f34e68c3541c33ee2fd5a951a7bd | f15f94254d89735b052f7eba2d58c6b0c4923dd8 | refs/heads/master | 2020-04-18T18:27:35.432204 | 2016-10-03T18:06:20 | 2016-10-03T18:06:20 | 66,838,114 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py |
def length(seq):
if not seq:
return 0
return 1 + length(seq[1:])
| [
"rasmus.ansin@gmail.com"
] | rasmus.ansin@gmail.com |
948a686715d703467866c5599a5c5afdc1c4cdf9 | dd2fd93032421157319f96bd42906bc7f80e999c | /httpx_cli/_help.py | ce9e07ed3f00f9f0b524621a5916491ccc105300 | [] | no_license | steven-howa/httpx-cli | aa197e0e6d689717e0ca552dff0ccd1d14bdb3a9 | 129db30a7e211b249690ee3d31fae0fee5a0aa6d | refs/heads/master | 2022-12-19T20:38:17.334774 | 2020-09-25T10:17:15 | 2020-09-25T10:17:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,752 | py | from rich.console import Console
from rich.table import Table
def print_help() -> None:
console = Console()
console.print("[bold]HTTPX :butterfly:", justify="center")
console.print()
console.print("A next generation HTTP client.", justify="center")
console.print()
console.print("Usage: [bold]... | [
"tom@tomchristie.com"
] | tom@tomchristie.com |
d52d3ad533846709d2d0bfadb07a750fe00f9d02 | 09630fcab1b1c4739010a389438bf174182fa42e | /Interview Practice/productOfArrayExceptSelf.py | abf446977a51c0ddf1d10ef2f0e824f3506e3301 | [] | no_license | zanewebb/codebreakerspractice | 1e28bd6b9c1f78fd5306784848edfb5dd746e235 | e8e2834f8edcd8c9732be603b0b6038c8fd88fa0 | refs/heads/master | 2021-04-23T03:17:40.229930 | 2020-10-07T02:11:14 | 2020-10-07T02:11:14 | 249,893,478 | 0 | 0 | null | 2020-06-22T21:34:05 | 2020-03-25T05:20:35 | Python | UTF-8 | Python | false | false | 1,945 | py | # so close, shouldnt have tried setting the intial rolling prod to a value other than 1
class Solution:
def productExceptSelf(self, nums: List[int]) -> List[int]:
if len(nums) <= 1:
return nums
output = [0] * len(nums)
output[0] = 1
... | [
"zane.webb97@gmail.com"
] | zane.webb97@gmail.com |
926c9d597e451bbae91d1f4dfc0b1fac5892ff2b | fda2fb357f0138140e98346f0a37b15a81a01093 | /DiskSpace_Linux.py | 3b567e46701347df2f8c80f9f9206adfe285ec2d | [] | no_license | Ashwini1001/AutoDesk-Projects | de6b7d2314f246560ed95cdc56255c6efc713e9a | b4eb9fcab1dfdb6482ea06b9895c48edda540bfb | refs/heads/master | 2020-04-04T18:22:43.618456 | 2018-11-05T04:36:51 | 2018-11-05T04:36:51 | 156,161,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,195 | py | import paramiko, socket, os, boto3, json, requests,base64,pysnow,logging,inspect,warnings,substring
from paramiko import SSHException
from BeautifulSoup import BeautifulSoup
from base64 import b64decode
from requests.auth import HTTPBasicAuth
def Credentials():
try:
ENCRYPTED = os.environ['ssurl'... | [
"noreply@github.com"
] | Ashwini1001.noreply@github.com |
afc6f056f049b0bd214ece662c0a08b2cf31852f | c7a4c41aa2d2ab17840f6fd8d46ca00c10062f93 | /่ฑ็ฃ็ต่งๅง_ๅ้กต.py | 98562a3b15f68a2ac1e691078280f48f416fd12e | [] | no_license | pythonhqw/douban | e56e8a58f1b4075698fc8ce6cb643d44d833f121 | 47539dc9f8b9a086a837cf000d8f92bf3b0bdee8 | refs/heads/master | 2020-03-19T13:27:59.370307 | 2018-06-20T08:58:23 | 2018-06-20T08:58:23 | 136,580,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,520 | py | import requests
import json
class DouBanDSJSpider(object):
def __init__(self):
# ๅๅคๆฐๆฎ
# ่ฏทๆฑurl
self.url = 'https://m.douban.com/rexxar/api/v2/subject_collection/filter_tv_{}_hot/items?start={}&count=18&loc_id=108288'
# ่ฏทๆฑๅคด
# Referer ๆฏ้็็ต่งๅง็ๅ็ฑป่ๅๅ็
# ๅฝไบงๅง๏ผchinese ๆธฏๅง๏ผ... | [
"xwp_fullstack@163.com"
] | xwp_fullstack@163.com |
1bb86785857a570e1bec4dab789b1c0965b51f50 | 937db7fa80f582a2bdb44879c89dde87ffc8e7d1 | /chefvendor/wsgi.py | 00810a16fe44f00d53bf954931a21e6228975a1c | [] | no_license | labanyamukhopadhyay/KitchenExpress | 6a261cbf3036831c856a9099c3c98ad245a8ccca | c48f3232c65e62690c6b0ecb83f4cbf2627c0470 | refs/heads/master | 2022-12-07T11:49:21.371799 | 2020-08-19T20:12:25 | 2020-08-19T20:12:25 | 288,824,269 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'chefvendor.settings')
application = get_wsgi_application()
| [
"labanyam@hotmail.com"
] | labanyam@hotmail.com |
cd883a6a4424907b7c7dbe14fe6e5f929f954797 | 356ccad5492f6ce76b71bd27543780de773cd093 | /recursion.py | 31f43e9b27dc71f7cc954d21a35ccbad8b39a460 | [] | no_license | nanogoga/Porno | b437cb5bc002b5b1ad6a494dd90c8b14a139f6ec | 09dbc325a6b9b95b6a9d32e0623da351aa4bd829 | refs/heads/master | 2020-05-30T10:28:42.052737 | 2019-06-01T00:41:27 | 2019-06-01T00:41:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py |
def factorial(num):
if num == 1 or num == 0:
return 1
elif num < 0:
raise ValueError(f'no existe el factorial'
f'para {num}'
)
return num * factorial(num - 1) | [
"ingenieria@uniempresarial.local"
] | ingenieria@uniempresarial.local |
37455a871cc701a2f49cbc15837a86ed47ae1ba2 | 7d274ce8dae971228a23157a409b561020c22f66 | /tools/packages/SCons/Node/Python.py | ef66c3c3e28134bf680d50447f46ac8437a4f6ac | [] | no_license | Eigenlabs/EigenD-Contrib | a212884d4fdf9ae0e1aeb73f6311606212e02f94 | 586fe17471571802295c792697f255e6cab51b17 | refs/heads/master | 2020-05-17T07:54:48.668925 | 2013-02-05T10:20:56 | 2013-02-05T10:20:56 | 3,239,072 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,220 | py | """scons.Node.Python
Python nodes.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 The SCons Foundation
#
# 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... | [
"jim@eigenlabs.com"
] | jim@eigenlabs.com |
66d03e1c7b8e69e8361800706585b491e9ae2860 | bb9008c61cb59a4397bb6a54cbc409dc7181a114 | /.ipynb_checkpoints/create_tables-checkpoint.py | 158b45bf92a037da5df0f7a0af562ebaf7a5bfc6 | [] | no_license | anthonywah/Udacity_DE_Nanodegree_Project_Data_Modelling_with_Postgres | 949ba522f95adc3e03ae8830385407ea2bd6f87f | 7d73dce91a2eaff456c7639b063e195c33bce48d | refs/heads/master | 2023-03-15T17:02:32.222063 | 2021-03-16T09:03:36 | 2021-03-16T09:03:36 | 348,086,058 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,722 | py | import psycopg2
from sql_queries import create_table_queries, drop_table_queries
def create_database():
"""
- Creates and connects to the sparkifydb
- Returns the connection and cursor to sparkifydb
"""
# connect to default database
conn = psycopg2.connect("host=127.0.0.1 dbname=studentdb... | [
"wahchishing@gmail.com"
] | wahchishing@gmail.com |
c48416fa46c02de6c6d36469537af049dc7fba3f | 6a7dd6dc0ed8009b5ac7f5786272920e612e0954 | /file_check.py | 9b26d81211da576f48d5873761cf4f8ab3d1f562 | [] | no_license | Evan-Wildenhain/AWD | addb7512d9292d045430b379967162bbf85a8efc | 00e4ed8b6613123cb748ec3b0e301251c2010c6c | refs/heads/master | 2022-11-23T07:03:51.357712 | 2020-07-31T19:53:51 | 2020-07-31T19:53:51 | 284,117,900 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | py | import os
def checkIfFileExists(path):
if not os.path.exists(path):
return False
else:
return True
def removeAudio(path,audio,folder_exists):
if not folder_exists:
os.mknod(path)
os.remove(audio) | [
"ewildenhain99@gmail.com"
] | ewildenhain99@gmail.com |
584f91b56eeb2991b277840b57471dd34e35de4c | a9226a15b5254472b51433be3b7892c3e1086a92 | /src/v8.gyp | 38c2cf953b74ac0515acc7b37a57b8e99fef7a7b | [
"bzip2-1.0.6",
"BSD-3-Clause",
"SunPro"
] | permissive | zhanglaocai/v8 | 0732dd8e25013298ea4ec3780a2a4114de2674c7 | 109033133152990382bcb67a8d92a7335f8c3c2f | refs/heads/master | 2021-01-20T04:22:28.868140 | 2017-04-28T06:44:58 | 2017-04-28T06:47:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87,274 | gyp | # Copyright 2012 the V8 project authors. All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditi... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
919c64dbe119b1936ebd0513a95f570f70ef90a3 | a1211018020bb564921e080c84063de275d0464b | /tinvest/__init__.py | 3d9dd21ce1f65d685ea70fbaf556d524eb31ff79 | [] | no_license | pkosukhin/tinvest | 3e0b30360c4f3f0a8710b8e7f79ec014182714f3 | 159a2dcb1aa6a23d64d3680f923c333a9e3add97 | refs/heads/master | 2022-04-19T05:37:25.304982 | 2020-04-06T14:36:21 | 2020-04-06T14:36:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,176 | py | from .apis import MarketApi, OperationsApi, OrdersApi, PortfolioApi, SandboxApi, UserApi
from .async_client import AsyncClient
from .shemas import (
BrokerAccountType,
Candle,
CandleResolution,
Candles,
CandlesResponse,
CandleStreamingSchema,
Currencies,
Currency,
CurrencyPosition,
... | [
"daxartio@gmail.com"
] | daxartio@gmail.com |
3e9013d7774a42b2270147ac9583d70b9910f672 | eac64fef132f7c463a9494fbbe0a058fffe1ad9d | /backend/app/app/database/models/note.py | 69dc7275bed47ca017c2d1673517086c9df764a2 | [
"MIT"
] | permissive | bigSAS/fast-api-backend-starter | cdc7491a8275904597a3de53be14a4ea9d6e1779 | 21d92632e9c9668de461dd7f40156ae098765242 | refs/heads/main | 2023-05-30T23:44:18.334266 | 2021-07-10T08:46:15 | 2021-07-10T08:46:15 | 376,557,928 | 1 | 0 | null | 2021-07-08T17:35:32 | 2021-06-13T14:01:35 | Python | UTF-8 | Python | false | false | 381 | py | from sqlalchemy import Column, String, Integer, ForeignKey
from app.database.setup import Base
class Note(Base):
"""
Note entity. Import as NoteEntity.
"""
__tablename__ = "notes"
id = Column(Integer, primary_key=True, index=True)
title = Column(String, index=True)
description = Column(St... | [
"sas.it.tomasz.majk@gmail.com"
] | sas.it.tomasz.majk@gmail.com |
32144e02682e87842d8d9e9d29e676dbf1182049 | e196d0b8407fc69b5a50e88d457c1f613e1f2a8c | /tarea1_estructuras-de-compus_ii-master/Aux1.py | e9d4ed6fc5d57d12f0d97024f5d1756b5eddbd77 | [] | no_license | Marlon-Lazo-Coronado/Estructuras_Compus_II | 8f4a85f4290af55453a9c0160d13e64add722ee6 | 7fa7a8d69fb52bfcd045fec4c270dfe4ccb7a33e | refs/heads/main | 2023-06-29T23:26:37.269396 | 2021-08-04T02:45:02 | 2021-08-04T02:45:02 | 392,504,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,163 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
def Aux11(state,a,line,Xhistoria,BHT,PHT):
bandera=0
#print(C)
#len(C)
paso=0
if paso==0:
error = line[11]
if error == " ":
t=int(line[0:11])
else:
t=int(line[0:10])
p = t & ((2**a)-... | [
"noreply@github.com"
] | Marlon-Lazo-Coronado.noreply@github.com |
1d7defe0dd95cb7c5299a83beefa61777183b3fd | ed0f9eb0c1cb4858d91ef7e2d435db307f23a5a5 | /dist/manage/django/db/models/options.py | ee34b3d807cd1788fca322da2dd5e8a8cc2481bf | [] | no_license | hjlhehehe123/ATC_Data | 81b4622e7279aa9cc2013db8cc5a71d33561e768 | ad35e61afb8e87d8bab2d2b3aeea08e9409d56c0 | refs/heads/master | 2023-07-13T16:23:45.951584 | 2021-08-20T12:37:34 | 2021-08-20T12:37:34 | 256,994,694 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 35,502 | py | import bisect
import copy
import inspect
from collections import defaultdict
from django.apps import apps
from django.conf import settings
from django.core.exceptions import FieldDoesNotExist
from django.db import connections
from django.db.models import AutoField, Manager, OrderWrt, UniqueConstraint
from django.db.mo... | [
"1598214715@qq.com"
] | 1598214715@qq.com |
86bd8f488e2a3f03cf11a16bb713fdcc449751ff | 17d7ea5dcde978f054a302c039cf6d8c0f91dc89 | /pegc/training/radam.py | 9318174fa184699d360430631db2b528b449392c | [] | no_license | mmikolajczak/put_emg_gestures_classification | 194bfa0843a02f8f8058d1d5584556fc8d8aa221 | d5b2cbe9e257f9e53e3c6d7563b9141178142e18 | refs/heads/master | 2021-01-05T20:04:05.552628 | 2020-02-11T18:10:25 | 2020-02-11T18:10:25 | 241,123,872 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,423 | py | # Implemenatation taken from the original authors: https://github.com/LiyuanLucasLiu/RAdam
import math
import torch
from torch.optim.optimizer import Optimizer, required
class RAdam(Optimizer):
def __init__(self, params, lr=1e-3, betas=(0.9, 0.999), eps=1e-8, weight_decay=0, degenerated_to_sgd=True):
if ... | [
"mkm0796@gmail.com"
] | mkm0796@gmail.com |
60fcfc378d54ccd133e08ab358d958783eac490c | ca300a047dd22f16fb621997207cc62ec6b94481 | /deployer/src/html_helper.py | d313af51965137e7c08954ae699d5b0cf0f17780 | [
"MIT"
] | permissive | j-low/docsearch-scraper | 69bc3142c1a514c5007d1d24903a3ef18eaf35fc | 95e3dbc10913e4f8d9a2e57c55be0df5055b9955 | refs/heads/master | 2022-12-09T21:05:19.771253 | 2018-02-11T22:48:36 | 2018-02-11T22:48:36 | 122,222,503 | 0 | 0 | NOASSERTION | 2022-12-08T00:40:18 | 2018-02-20T16:15:38 | Python | UTF-8 | Python | false | false | 4,648 | py | def get_dom_from_content(content):
from lxml import html
page = html.fromstring(content)
return page
def get_content_from_url(url):
from selenium import webdriver
import time
profile = webdriver.FirefoxProfile()
profile.set_preference('network.http.accept-encoding.secure', 'gzip, deflat... | [
"maxiloc@gmail.com"
] | maxiloc@gmail.com |
1e2395c1352d22684243cbf83255cac2470bbc1a | d8a9b88f4087ebfe97b462e589071222e2261e47 | /125. Valid Palindrome.py | d2ce188678dfc75e5a238a10d806eabd8d8cda2e | [] | no_license | rohitpatwa/leetcode | a7a4e8a109ace53a38d613b5f898dd81d4771b1b | f4826763e8f154cac9134d53b154b8299acd39a8 | refs/heads/master | 2021-07-07T12:40:30.424243 | 2021-03-31T00:21:30 | 2021-03-31T00:21:30 | 235,003,084 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 849 | py | # Use two pointers, one at beginning, one at end. Run 2 while loops inside a one while loop to skip all non alphanumeric charectes
class Solution(object):
def isPalindrome(self, s):
"""
:type s: str
:rtype: bool
"""
i,j = 0, len(s)-1
if not s:
return True... | [
"rohitpatwa@gmail.com"
] | rohitpatwa@gmail.com |
59697120b8ffbd3cedbe04dd4e2fb5090e110650 | cc4e37f21d4141dce49dda703217a403064bac80 | /login/migrations/0001_initial.py | 74def4468d064ff4cd157d0f2530be8cad099521 | [] | no_license | pragyamittal0/Oxywin | 7e28a9d8fae975f18fdc30bf1de04a71f43fad33 | a559aff3e92981e912ebead287e17a1ec141f22d | refs/heads/main | 2023-04-12T05:43:00.186149 | 2021-05-16T12:41:46 | 2021-05-16T12:41:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,779 | py | # Generated by Django 3.2 on 2021-05-15 18:34
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Hospital',
fields=[
('id', models.IntegerFiel... | [
"agrawalarvind00@gmail.com"
] | agrawalarvind00@gmail.com |
34b1942345da09183a9739296fbff2b396d196d9 | 372b868dbf2bef3122ab20f3a06561bf6204a268 | /task5.py | 50a55c2079c5c1dccd6cd06f717ecb566c699ecd | [] | no_license | Bahram3110/d9_w2_t4 | f9c84e9061316fe4db2a710bf122bc4084c82e63 | 9b15d6ef4e1e450657f84dd3d80c0879f5934aeb | refs/heads/master | 2022-11-25T09:48:10.413958 | 2020-07-19T14:50:09 | 2020-07-19T14:50:09 | 280,887,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | input_values1 = input('ะะฒะตะดะธัะต ะฟะตัะฒะพะต ะทะฝะฐัะตะฝะธะต:')
input_values2 = input("ะะฒะตะดะธัะต ะฒัะพัะพะต ะทะฝะฐัะตะฝะธะต:")
input_values3 = input('ะะฒะตะดะธัะต 3 ะทะฝะฐัะตะฝะธะต:')
a = input_values1 == input_values2 and input_values1 == input_values3
b = input_values2 == input_values1 and input_values2 == input_values3
c = input_values3 == input_values1... | [
"maraimov.2309@gmail.com"
] | maraimov.2309@gmail.com |
a23c8576a3720335cd617ad04606132678a7e5cf | 5cb9254e0ca1020e7487660565037e71d2a883ba | /build/my_robot/catkin_generated/pkg.installspace.context.pc.py | 4c14ea9f60df354a67613cfd1035d1b0db8e5508 | [] | no_license | chinmaydas96/RBND-Where-Am-I | 3eb3f1ea60c51b306d14a4a58cd51c203c1f7bfd | 9375064cf9b9bc7500839be76b6f7a71b26ac59d | refs/heads/master | 2022-04-25T18:45:23.394944 | 2020-04-28T06:44:51 | 2020-04-28T06:44:51 | 259,441,688 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "my_robot"
PROJECT_SPACE_DIR = "/home/... | [
"chinmaydasbat@gmail.com"
] | chinmaydasbat@gmail.com |
d947b4784f791c097161970c2e7ae510dc19e47c | de6ec270badbdd5f6914c3a477f1cab8f2db6d11 | /PythonExercicios/ex093.py | 5b4d1f71706227772a27ecbaa336eaf3da0d5184 | [
"MIT"
] | permissive | github-felipe/ExerciciosEmPython-cursoemvideo | 34e5a6230ec6aa67433f231d8b93e8cf3b02e989 | 0045464a287f21b6245554a975588cf06c5b476d | refs/heads/main | 2023-04-16T09:54:16.173343 | 2021-04-26T22:01:07 | 2021-04-26T22:01:07 | 312,078,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 851 | py | jogador = {'nome': str(input('Nome: '))}
lista = list()
totGols = 0
tot = int(input('Total de partidas jogadas: '))
if tot > 0:
for partida in range(1, tot + 1):
gols = (int(input(f'Gols feitos na {partida}ยช partida: ')))
lista.append(gols)
totGols += gols
jogador['gols'] = lista
jog... | [
"felipe.lima.eu@hotmail.com"
] | felipe.lima.eu@hotmail.com |
ff97b2954d50623612af85b24c68f49356c68d54 | 852bfc2c22d8f59e029c6a09f6ca8d01570729af | /generate_cases.py | 95efda5d29221d7850a30d25f7cc32e18fc83ce7 | [] | no_license | Redislabs-Solution-Architects/redisaml | 7c4cac467417ce834bc5e86edd9d538e8a9e95d2 | db71250e09d79c35361fa6837e619c2f9edb8f01 | refs/heads/master | 2023-06-22T19:41:18.808583 | 2021-07-23T13:52:23 | 2021-07-23T13:52:23 | 330,031,028 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,338 | py | from redis import Redis
from redis.exceptions import ResponseError,ConnectionError
from os import environ,urandom,fork
from uuid import uuid1,uuid4
import random
from time import sleep
from logging import debug, info
from faker import Faker
import json
import itertools
'''
REDIS_HOSTNAME optional (default localhos... | [
"bbarnes@gmail.com"
] | bbarnes@gmail.com |
aeaa4ae222e109143d6db2ea3a9d6fc5c7073bad | 9bd8ca4413654633d2f6903170cae35de7ed3cc9 | /borobudur/pylib/peppercorn.py | 9aae6f10bcaf788fcc477602439485b5d31e5e62 | [] | no_license | microvac/borobudur | 841a2469ee7e98bdf2154d1f474578f98062d7b6 | f5a39f027ad5ea5a49fd7a8fa23964d1ea14baf2 | refs/heads/master | 2016-09-05T16:09:02.946995 | 2013-07-26T17:40:10 | 2013-07-26T17:40:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,866 | py | def data_type(value):
if ':' in value:
parts = value.split(":")
return [ parts[0].strip(), parts[1].strip() ]
return ('', value.strip())
def next(iterator):
idx = iterator["i"]
idx += 1
iterator["i"] = idx
return iterator["list"][idx]
def iter(item):
return {"i": -1, "list"... | [
"ghk@gozalikumara.com"
] | ghk@gozalikumara.com |
3a9fdf28d423ec47e703d3ba12a13aa87c65ffe0 | eff67fc06b36bc58ebbb54322e6ba2ca248705c6 | /server/sadserver.py | b17a69122f500cdefb47e9f09de87ed241ac9436 | [] | no_license | diacus/celda | af5180ea3fe0826839d398808c553c90162b472e | 29fac053c1b7141133472c65569f424bcb3b087e | refs/heads/master | 2020-05-17T22:31:30.174875 | 2011-08-04T21:37:15 | 2011-08-04T21:37:15 | 2,157,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,945 | py | # -*- coding:utf-8 -*-
"""
@file sadserver.py
sadserver module
"""
import os, logging
from data.message import Message
from data.stream import FileStream, FragmentStream, BlockStream
from lib.common import MessagesENG as Messages, splitstream, \
notimplementedfunction
from lib.config ... | [
"dr.guzsant@gmail.com"
] | dr.guzsant@gmail.com |
c414e9ccd1ff025567382317eb0f2d76d19577e8 | 650b516b1214c4d44fd6f04941e87e28e9049cde | /addons/script.mtvguide/logUploader.py | b3cfc3e025a8f1e2db88e609883ff4212d0b5e80 | [] | no_license | MultiWu/build | b85cc45a33b871f4ade58de8457fcd094761f385 | f50a64f674b6499668e0a5758fe0879b016f5c38 | refs/heads/master | 2022-10-31T20:35:53.382826 | 2019-12-20T22:50:16 | 2019-12-20T22:50:16 | 228,462,984 | 0 | 3 | null | 2022-10-07T08:47:18 | 2019-12-16T19:46:39 | Python | UTF-8 | Python | false | false | 2,534 | py | # Copyright (C) 2016 Andrzej Mleczko
import os, urllib, urllib2, httplib, datetime
import xbmc, xbmcgui
from strings import *
URL = 'https://paste.ubuntu.com/'
LOGPATH = xbmc.translatePath('special://logpath')
LOGFILE = os.path.join(LOGPATH, 'kodi.log')
LOGFILE2 = os.path.join(LOGPATH, 'spmc.log')
LOGFILE... | [
"oliwierminota@gmail.com"
] | oliwierminota@gmail.com |
341c928a26d1bea76347e0194dd5273eb02c961d | d0d79d0940f10494860b1363fe7f5cb89b9c9f43 | /FlaskMain.py | 969e30c59868d6c66cb3ef6df203df928265b85f | [] | no_license | nyaang/GraduationDesign | d48cd3ba4b1d545d957aeb1f9b0e77904d6dfc83 | 77e821265bdfbacf983027cf9632e0cc0dd40739 | refs/heads/master | 2023-05-28T19:42:30.275301 | 2019-06-04T06:35:49 | 2019-06-04T06:35:49 | 173,213,790 | 0 | 0 | null | 2023-05-22T22:16:10 | 2019-03-01T01:25:06 | Python | UTF-8 | Python | false | false | 975 | py | ๏ปฟfrom flask import Flask, request, render_template
from Similar import recommendation
app = Flask(__name__)
@app.route('/', methods=['GET'])
def login_form():
return render_template('form.html')
@app.route('/login', methods=['POST'])
def login():
userid = request.form['usernamelogin']
r = rec... | [
"pccettfly@outlook.com"
] | pccettfly@outlook.com |
b4e66c85add42b6bd216c6d6d59ede705307c6f3 | da402e2e618c05b05a57ac7ca8eb1a186791805b | /p149.py | c10f5c98528344c906b0891ac76a64ec5bb47b35 | [] | no_license | gandolfreddy/oajudge | c6dd923d88cdaba8ea17bc4cc473602d3a232b04 | a4cbf433294129d276c10e54642731f782c9e424 | refs/heads/main | 2023-05-15T06:28:03.409025 | 2021-06-04T07:56:25 | 2021-06-04T07:56:25 | 373,759,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py |
# input
nums = list(map(int, input().split()))
# process
diff = 0
for num in nums:
diff = diff+1 if num % 2 else diff-1
diff = abs(diff)
# output
print(diff)
| [
"noreply@github.com"
] | gandolfreddy.noreply@github.com |
67a787734cea2260dbf143a15e8b23400cadc45b | 8275668382d2cfe43f77e4018caf073d78962b7a | /software/test.py | cfd7562b9e2d92b410d7e8faf2406451e0f816d6 | [
"MIT"
] | permissive | Extent421/bladeBench | 15802724c292d10e4f37843cf55d113995cb980c | 0eb01b88e21e66a7897b3094041196790848b3e0 | refs/heads/master | 2020-06-06T06:16:39.672330 | 2018-10-23T06:01:18 | 2018-10-23T06:01:18 | 42,681,998 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 946 | py | import numpy as np
from numpy import pi
from bokeh.client import push_session
from bokeh.driving import cosine
from bokeh.plotting import figure, curdoc
test = [2,3,None, 0, None,5,None,7]
cleanTest = [value for value in test if value is not None]
print cleanTest, min(cleanTest), max(cleanTest), np.median(np.array( c... | [
"Extent421@gmail.com"
] | Extent421@gmail.com |
4c1c01cf9174c1c10fdddd0909563f7a09bff0b5 | 2706fcad2e39cb4b168583d0ec47d06730e265cf | /aoc10-part2.py | 32e46bec2a80a7765fdaf2ca3b1ceb495f2de55a | [
"MIT"
] | permissive | robynsen/adventofcode2016 | 9a90a3415b7b396edfb2f311f6a06f15a8f0f7c3 | 83988f7b4c5b03a4c8d5f60cac1423b495c10856 | refs/heads/master | 2021-01-13T13:46:13.930971 | 2017-01-29T11:21:18 | 2017-01-29T11:21:18 | 76,351,573 | 0 | 0 | null | 2016-12-14T09:17:34 | 2016-12-13T11:11:37 | Python | UTF-8 | Python | false | false | 3,305 | py | import re
def add_value(my_bots, bot_i, val_n):
if bot_i in my_bots:
my_bots[bot_i].append(val_n)
else:
my_bots[bot_i] = [val_n]
def transfer_chips(my_bots, bot_id):
# note: does not cater to both high and low going to same bot that currently holds one chip
for key, v... | [
"noreply@github.com"
] | robynsen.noreply@github.com |
2e4b2ad75cda12788d8ceaba15754a4d584b3989 | 1f96ef70e6d58eac676490aee2b0557b66664360 | /RL-Quadcopter-2/takeoff.py | ab0d0fe1d5ace15b9ee34cde940b4bc7fd751659 | [] | no_license | jrana1218/Udacity-Deep-Learning | 6a4c079024a0e0e14b4cf022e3829aaba9e6c7b9 | 78daea32ef129068b804903cbdbd517de4dc7ef3 | refs/heads/master | 2021-04-12T09:28:48.108376 | 2018-06-13T01:49:43 | 2018-06-13T01:49:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,819 | py | import numpy as np
from tasks.physics_sim import PhysicsSim
class Task():
"""Task (environment) that defines the goal and provides feedback to the agent."""
def __init__(self, init_pose=None, init_velocities=None,
init_angle_velocities=None, runtime=5., target_pos=None):
"""Initialize a Task ob... | [
"noreply@github.com"
] | jrana1218.noreply@github.com |
a3b85fab4392d4e726ea568ded7cfd814bdb69b7 | 4d5c46535be740c8d41bc0e711c752a4cff2a76b | /plonetheme/ewb_case/browser/viewlets.py | ff363c9e3be1a5ca0b67b06d5209e5a8337af044 | [
"CC-BY-3.0"
] | permissive | ewb-case/plonetheme.ewb_case | 018a2eb0377fb80373d5aab1b6547ef5c8bd5789 | 391582be4b39838e5b769870a5e4ae3ae540f51a | refs/heads/master | 2020-12-25T19:14:40.733234 | 2012-02-06T17:08:35 | 2012-02-06T17:08:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,140 | py | from zope.component import getMultiAdapter
from Acquisition import aq_inner
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
from plone.app.layout.viewlets.common import GlobalSectionsViewlet
from plonetheme.ewb_case.util import getSecondaryNavLabel
class PrimarySectionsViewlet(GlobalSectio... | [
"mattbierner@gmail.com"
] | mattbierner@gmail.com |
74d367ab4183f437bed2c594c315120d6baee7bb | 959e69ec7b0246063ce5063414065a3960c9b912 | /BACKEND/project/maria/Participant.py | 3f3a79ec9f8a5bbe915ba3dce13456b80976a675 | [] | no_license | Atom02/increaseseminar | 5e8fcdfdec0a55e4e3aef8591e17dfcedcbfcfab | 5da51dfe7f76af6999337d5bf476dd813693e60c | refs/heads/main | 2023-08-22T03:39:58.350150 | 2021-10-15T02:18:05 | 2021-10-15T02:18:05 | 344,347,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 600 | py | from project import mariadb
class Participant(mariadb.Model):
id = mariadb.Column('id', mariadb.Integer, primary_key=True, autoincrement=True)
email = mariadb.Column('email', mariadb.String(255), unique=True, nullable=False)
name = mariadb.Column('name',mariadb.String(255), nullable=False)
affiliation ... | [
"candra.nurihsan9@gmail.com"
] | candra.nurihsan9@gmail.com |
94a77bf8a110b7ad909898141c77ad5a398f26f8 | 3b2b0c3edc800bfda49e58402bdf60dd42138615 | /ciscn_2019_c/ciscn_2019_c_1/exp.py | cd4e6c81f6a5a619903fa2ecd44ef84e92c5c102 | [] | no_license | xmoct/Buuoj-Pwn | e3672ba1c1a914754596a7fb29384874b54683db | 2425fa697e7ba0bd8a72eeb0e9b4ef07f89c9e17 | refs/heads/main | 2023-06-26T05:17:57.942639 | 2021-07-15T01:47:12 | 2021-07-15T01:59:24 | 386,145,955 | 1 | 0 | null | 2021-07-15T03:09:28 | 2021-07-15T03:09:28 | null | UTF-8 | Python | false | false | 895 | py | import sys
from pwn import *
context.log_level='debug'
#context.arch='amd64'
if len(sys.argv)==1 :
io=process('./ciscn_2019_c_1')
elf=ELF('./ciscn_2019_c_1')
libc=ELF('/lib/x86_64-linux-gnu/libc-2.23.so')
else :
io=remote('node3.buuoj.cn',26267)
elf=ELF('./ciscn_2019_c_1')
libc=ELF('/lib/x86_64-linux-gnu/libc-2.... | [
"ilovekeer@users.noreply.github.com"
] | ilovekeer@users.noreply.github.com |
8522643b85ce02948fca10a4a2bffc35cf079cab | 7dfdd1323f2e1278b6be7a2edd8aeb5508a5428a | /hw/hw2/tests/q2a.py | 461af0d56e5e98498e5be691a81e9e44b1e6d4f4 | [] | no_license | DS-100/su21 | 4f1932d57b92f488f359be667a5ec79a4702f60e | e62a80452d546722fbea2651e27e3bf276ce5453 | refs/heads/main | 2023-07-10T23:28:37.918626 | 2021-08-05T20:51:09 | 2021-08-05T20:51:09 | 375,925,180 | 4 | 6 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | test = { 'name': 'q2a',
'points': 1,
'suites': [ { 'cases': [ { 'code': '>>> assert prob_at_most(3, 0.4, 1) >= 0;\n>>> assert prob_at_most(5, 0.6, 3) <= 1;\n>>> assert prob_at_most(2, 3, 4) == 0\n',
'hidden': False,
'locked'... | [
"57054493+rohilkanwar@users.noreply.github.com"
] | 57054493+rohilkanwar@users.noreply.github.com |
d96501f1b72e6d5fd13ba40b2f5ae1f6aaf256c2 | e6d0bbc56932580f8e4be99fac6241e040ba5be7 | /src/inAll.py | d352d073c99127b3d22c99099f955e33dbd36dcb | [] | no_license | Parkat13/diploma | 8e990b55054e2171c72cf701b2631c814cd3630e | 5ea970210f7ec567bb3caec629ba490cb31575f3 | refs/heads/master | 2018-10-01T05:06:00.352595 | 2018-06-08T00:31:07 | 2018-06-08T00:31:07 | 115,097,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,839 | py | # -*- coding: utf-8 -*-
import sys
import codecs
reload(sys)
sys.setdefaultencoding('utf-8')
f1 = codecs.open('TUpdateRangMI.txt', 'r', 'utf8')
f2 = codecs.open('TUpdateRangAugmentedMI.txt', 'r', 'utf8')
f3 = codecs.open('TUpdateRangNormalizedMI.txt', 'r', 'utf8')
f4 = codecs.open('TUpdateRangTrueMI.txt', 'r', 'utf8')
... | [
"noreply@github.com"
] | Parkat13.noreply@github.com |
0e90a272fd779328441e48a2bb4a3f1d546a7a7d | 7b4fe32969c7cc2e1b709ab7a2e91ccca736ac5a | /sat_imagery_manager.py | b154d6f5d5d25a04cba6f1bc4546f297496a9ef2 | [] | no_license | bentrm/sat-imagery-manager | 202e37037205b544f397e34ce7b7c3d550d7eaa3 | f98279000c47874eda680d3de9867b5977945993 | refs/heads/master | 2020-03-10T14:03:31.968784 | 2018-04-14T14:28:45 | 2018-04-14T14:28:45 | 129,416,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,072 | py | # -*- coding: utf-8 -*-
"""
/***************************************************************************
SatelliteImageryManager
A QGIS plugin
A plugin that allows to selectivaly load sat imagery.
-------------------
begin : 2018-04... | [
"bentrm@posteo.de"
] | bentrm@posteo.de |
b5b9a5883683982bf323739f15380c66d9818d4c | c6e8d81ab20b31df5821794986cafc468940f745 | /graph_code/stephen_dfs.py | db0dcbbfe382eb56ca9e6c3ebedf23d4be4fde8a | [
"MIT"
] | permissive | Mewzyk/stephen_AI | 31722a54cfcd13691f2200db711d78283f5718d5 | 9e1cc920619581318c35959a3d888808edf6f959 | refs/heads/master | 2021-09-04T19:58:33.861993 | 2018-01-21T23:33:02 | 2018-01-21T23:33:02 | 115,215,282 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | """
Stack Implmentation of DFS
Designed to work with the graph implemntation in stephen_graph.py
@Date: 23 December 2017
@Author: Stephen Thomas
"""
"""
Params ->
@start_node: node to start DFS on
@dest_node: node attempting to find a path to
Output ->
List containing visited nodes
"""
def dfs(start_node, dest_node, ... | [
"mewzyk@gmail.com"
] | mewzyk@gmail.com |
0aa6a6e4405e77c19691ecef94d8839727f1374f | c510eeda3bdc881c0bb40ac872ee969b592b7c59 | /python project/app/jobs/jobs.py | 8eb2da55e144aa4ace886a0747228a49da0adfd3 | [] | no_license | tansuluu/FaceRecognation | 6e3ab828683876560a4162a5561264fe1d173f22 | f733b2799e9cb1450e0881bd8e18f6b16356f830 | refs/heads/master | 2022-12-11T08:24:14.068300 | 2020-05-21T19:36:43 | 2020-05-21T19:36:43 | 243,033,678 | 0 | 0 | null | 2022-12-08T01:23:57 | 2020-02-25T15:27:04 | CSS | UTF-8 | Python | false | false | 1,038 | py | import atexit
import datetime
from apscheduler.schedulers.background import BackgroundScheduler
from app.service.person_service import start_process_person
from app.service.request_service import request_process
def run_request():
from app import app, log
log("in run_request")
print("in run_request")
... | [
"tansuluu.myrzaeva@iaau.edu.kg"
] | tansuluu.myrzaeva@iaau.edu.kg |
51971c3a03213d0a52e3c33361722b36b98c620a | 356bdc3c82db97fb4d611c8ed6fa6191241685fc | /digit_in_integer.py | e8969f52ac8324ede5ac8a17b2ff51aaf7e57315 | [] | no_license | Sireesha0907/python-programs | f44a354ecfcf675c3386919d345d18bd390578b8 | 36939441a234aff9183a03c24e3ba0f43e4c6afc | refs/heads/master | 2020-06-20T12:07:43.830643 | 2019-07-19T06:38:28 | 2019-07-19T06:38:28 | 197,117,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | d=int(input("Enter an Integer Number :"))
count=0
while(d>0):
d=d//10
count=count+1
print("The Number of Digits in Integer is: ",count)
| [
"noreply@github.com"
] | Sireesha0907.noreply@github.com |
062e8edc7abc7677805a44d26f2ac8dd011881cb | db1a43b036048db8f19a040270658557a90b310b | /catkin_ws/devel/lib/python2.7/dist-packages/basics/msg/_TimerGoal.py | 33b744bf288125d47c3fec9ba5ab39cfbce419d7 | [] | no_license | caocaomomo/hello-world | caa559cb172492f551c36190ef59404234b86dcc | 8e93ca5d8bbb4b69edeee9b7982a23d06924795c | refs/heads/master | 2020-03-12T03:57:05.214002 | 2018-04-21T04:49:34 | 2018-04-21T04:49:34 | 130,434,490 | 0 | 0 | null | 2018-04-21T03:15:43 | 2018-04-21T03:00:30 | null | UTF-8 | Python | false | false | 4,073 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from basics/TimerGoal.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import genpy
class TimerGoal(genpy.Message):
_md5sum = "861563d4afc38bffed1a53c61a474261"
_type ... | [
"114707550@qq.com"
] | 114707550@qq.com |
e07f4054dcc9dc4d0fb26e7a66d83c8dcfec6da9 | 56d8c675f9be578e416edd3c702a9a10c4b97dda | /TicTacToe/board.py | d65f5c6fc3bd8056caf7083337039914c14d37a1 | [] | no_license | TimothyK/TicTacToe | 9c1275d8789e9d320de03d8612f708e8ec88a600 | 4610b99743adeeb053868eb89cab043407b83044 | refs/heads/master | 2022-10-09T14:32:02.342011 | 2020-06-10T05:06:35 | 2020-06-10T05:06:35 | 271,183,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,943 | py | '''board - Tic Tac Toe board'''
from colorama import init
from colorama import Fore, Style
class Board:
'''
Tic Tac Toe Board
'''
def __init__(self):
self.__board = [str(x) for x in list(range(1, 10))]
init()
def __row(self, row_num):
return self.__board[(row_num-1)*3:row_n... | [
"timothy.klenke@gmail.com"
] | timothy.klenke@gmail.com |
04cbeb465a02df5445972cb1bd6d360afe2e387a | bd6260082118b45942f319169e82ee5a2d8cc5e1 | /qiskit/providers/qrack/backends/qasm_simulator.py | ca189a4f1fe5bd6113ef0b7bb4d616ce4ac70e96 | [
"Apache-2.0"
] | permissive | vm6502q/qiskit-qrack-provider | e73040040945507498cbc014b9331946ee373404 | 73f70fde60f0fda361a46f874e7eda2ea84038f1 | refs/heads/master | 2023-06-26T21:47:20.603420 | 2023-06-20T19:29:14 | 2023-06-20T19:29:14 | 186,687,718 | 1 | 1 | Apache-2.0 | 2022-03-12T23:05:03 | 2019-05-14T19:34:28 | Python | UTF-8 | Python | false | false | 37,513 | py | # This code is based on and adapted from https://github.com/Qiskit/qiskit-qcgpu-provider/blob/master/qiskit_qcgpu_provider/qasm_simulator.py
#
# Adapted by Daniel Strano. Many thanks to Adam Kelly for pioneering a third-party Qiskit provider.
#
# This code is licensed under the Apache License, Version 2.0. You may
# ob... | [
"stranoj@gmail.com"
] | stranoj@gmail.com |
b78c3c5f2faad82ecfe45b65041406cf264ae80e | 5a9d8c64c6478f3816b63f59f1cdaca73c0848eb | /pythonNet/ex07_Thread/thread_lock.py | b687422687b6cca1365840560f6693dda88bc5b3 | [] | no_license | wangredfei/nt_py | f68134977e6d1e05cf17cec727644509f084c462 | fedf03c0d52565f588e9b342d1c51df0b6dc2681 | refs/heads/master | 2020-04-08T07:55:08.302589 | 2018-11-23T09:53:48 | 2018-11-23T09:53:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | from threading import Thread,Lock
a = b = 0
lock = Lock()
def fun():
while True:
lock.acquire()
if a != b:
print("a=%d,b=%d"%(a,b))
lock.release()
t = Thread(target=fun)
t.start()
while True:
with lock:
a += 1
b += 1
t.join() | [
"289498360@qq.com"
] | 289498360@qq.com |
a875518df17d09ffcfcba9970868520e03dcd877 | 3a73374a708037368f587ba6379ec2fd0b48851a | /array/product_array.py | 719eef575d612a9c2963fb90dc4b510d789a6f0d | [] | no_license | swatia-code/data_structure_and_algorithm | 948d3b39d649d5bd6e3aabaefedbcd09098906d2 | 7219ff9c5a5b0c565b3f17095775d902a92e3d83 | refs/heads/master | 2023-03-30T08:49:48.350623 | 2021-04-02T08:44:30 | 2021-04-02T08:44:30 | 254,819,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,433 | py | """
PROBLEM STATEMENT
-----------------
Given an array arr[] of n integers, construct a Product Array prod[] (of same size) such that prod[i] is equal to the
product of all the elements of arr[] except arr[i]. Solve it without division operator in O(n) time.
Example :
Input: arr[] = {10, 3, 5, 6, 2}
Output: prod[] ... | [
"noreply@github.com"
] | swatia-code.noreply@github.com |
da7ab4476cc7860aa2dc1bb9fe4ba9d91471885e | 750b511104b85fa3ba923c00f2857e028800cb26 | /task14.py | 3d33dcc58ecce65615eb3037a1a98cf380ed00d0 | [] | no_license | noozip2241993/basic-python | 85b8aaa6689d1ec940ebf5268e3cff91525685c6 | a10fc3a72446cd13ae9cf4efe52d68423c514b3c | refs/heads/master | 2023-02-07T06:03:32.128940 | 2021-01-01T23:41:48 | 2021-01-01T23:41:48 | 326,075,092 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | def calculate_number_of_days(y=1,m=1,d=1):
return d
days =calculate_number_of_days(2014,7,11) - calculate_number_of_days(2014,7,2)
print(days) | [
"khang.nguyen@student.csulb.edu"
] | khang.nguyen@student.csulb.edu |
82534abd8c0f2fc0874087dedea8f407ef9ed51f | f6ac57ca8023f51daa43ff35f7cfb6521f747575 | /tests/test_conn.py | eacd2a12b70351f8751c47271a88f74eadf9a9cf | [] | no_license | Thomas95i/cours_insta | 879a36a5255b3e51ae8dc657d34951f71a5100aa | 16454e3acc40076d1a4103ea533e891094c61fec | refs/heads/master | 2022-12-18T09:02:05.181296 | 2020-02-21T15:03:11 | 2020-02-21T15:03:11 | 241,927,710 | 0 | 0 | null | 2022-12-08T03:42:27 | 2020-02-20T16:05:27 | Python | UTF-8 | Python | false | false | 69 | py | def test_conn(client):
assert client.get('/').status_code == 200 | [
"tom_barbot@hotmail.fr"
] | tom_barbot@hotmail.fr |
83c2d0827eddf2bf025f32a2e000ac311cbef558 | afb651a874076b7034cd448b40bceb91c0bc10d1 | /oculoenv/geom.py | a864bab652a3e19152db4cfba9af14a2d866a49b | [
"MIT",
"Apache-2.0"
] | permissive | wbap/oculoenv | 38bab908cf7d1b45d71249e6b8ab35008fe3c642 | a8e25b41bcfaa7454c9ba9326f08eb3519456770 | refs/heads/master | 2023-03-18T01:18:13.169124 | 2023-03-12T00:52:32 | 2023-03-12T00:52:32 | 139,673,527 | 6 | 10 | Apache-2.0 | 2023-03-12T00:52:33 | 2018-07-04T05:42:14 | Python | UTF-8 | Python | false | false | 3,313 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import math
import numpy as np
class Matrix4(object):
def __init__(self, m=None):
# numpy ndarray stores values in row major order
if m is None:
self.m ... | [
"miyoshi@narr.jp"
] | miyoshi@narr.jp |
7bc66b3bb4047b08d2b5347d0379f37a95407091 | a58fcf9467749de7d269c5b17430773069e29791 | /designate/objects/service_status.py | e86ecd0908900c849ea30b5ff0c75a61ffe20377 | [
"Apache-2.0"
] | permissive | Woody89/designate-private | 586df6c28a2da573663487e4728c3fddfef095af | 0a6ed5a1d7cdac5cb1e9dec8fd3ddfb9a77c58f5 | refs/heads/master | 2021-01-22T19:22:49.391876 | 2017-08-19T06:16:53 | 2017-08-19T06:16:53 | 100,774,211 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,716 | py | # Copyright 2016 Hewlett Packard Enterprise Development Company LP
#
# 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 a... | [
"dongpzh@adtec.com.cn"
] | dongpzh@adtec.com.cn |
2e67ac32d4cd4f6c74bcb5822f168309c0f01a60 | c1059f94ad075bdc646e1f28dd749574e2c21fc2 | /Sohag.py | e8e0f468f2f72892cf1976cca6ae0a06bd89573e | [] | no_license | Sohagblacktiger786/loveHackerSoHag333 | d143402f0da1e2040f172ec45eaa80a7ec14a46f | 62dec149b7b495a60517082d932476cef2795f2b | refs/heads/master | 2022-10-01T14:54:17.574609 | 2020-05-27T06:00:24 | 2020-05-27T06:00:24 | 267,233,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,801 | py | #!/usr/bin/python2
#coding=utf-8
#The Credit For This Code Goes To lovehacker
#If You Wanna Take Credits For This Code, Please Look Yourself Again...
#Reserved2020
import os,sys,time,datetime,random,hashlib,re,threading,json,urllib,cookielib,requests,mechanize
from multiprocessing.pool import ThreadPool
from requests... | [
"noreply@github.com"
] | Sohagblacktiger786.noreply@github.com |
f8326902b0bbeae2dd43d1248ab798f698020f55 | ec4f4aa5e22131bb094e6afc5af35dd37d68d3df | /python-flask/swagger_server/models/vlan_logical_single_tagged_list_config.py | b8a234094d459c364f2dc98d5894c6f5cb2a4629 | [] | no_license | ajragusa/OpenConfigAPI | e4224212dac3fb125ebff2ebedda930c9c979e71 | 485da3b2b96d568f857ccc931a86d7e7e9f3cab4 | refs/heads/master | 2020-05-29T23:01:05.287841 | 2019-05-30T17:16:39 | 2019-05-30T17:16:39 | 189,425,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,848 | py | # coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from swagger_server.models.base_model_ import Model
from swagger_server import util
class VlanLogicalSingleTaggedListConfig(Model):
"""NOTE: This class is auto ge... | [
"aragusa@globalnoc.iu.edu"
] | aragusa@globalnoc.iu.edu |
c7f78e163aed581952e2e9b721d54ff257144534 | af09ba1ce23b21e8d7d95c76d9d49cd504c0baf8 | /craigslist_clone/wsgi.py | 7ee2f651bad3d4a336cffcb6b281244459bc03be | [] | no_license | euhidaman/craigslist_clone | 3ceae7a3973098521c489ff8252c881aae5bd602 | 846f290552805bdcc339f2841df940c7e3030acc | refs/heads/master | 2022-12-25T00:59:12.864881 | 2020-10-04T04:19:27 | 2020-10-04T04:19:27 | 299,649,497 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | """
WSGI config for craigslist_clone 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.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJA... | [
"aman.derax20@gmail.com"
] | aman.derax20@gmail.com |
52ed57756ebb7464f0ac9571c0f8add9e005d1bf | 659db74e51e2480b3ef99387eb63f854db0b78c7 | /api/migrations/0004_appointment.py | 5fb0f1c8c729abc58005bd1df989b49d2aa9e179 | [] | no_license | randyjap/Python-Backend | 7552dfed0ed6d72807b631a5aec35e86c90590e2 | 2817023e5881ee883f1e28d6882f9b0dc21ddc44 | refs/heads/master | 2021-01-22T05:46:54.582451 | 2017-02-20T03:49:46 | 2017-02-20T03:49:46 | 81,701,457 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 864 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-15 23:35
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('api', '0003_auto_20170215_... | [
"randyjap@gmail.com"
] | randyjap@gmail.com |
18eaef8d089f9eaf3b0efe9ef758dfcbfa9a9590 | 26579f272bedbd5093b709618b4fe9d0b15fdfcc | /app/dc/player.py | 4140479edd2787f8ff29aef258a1f2d4cc9d0219 | [] | no_license | david-wm-sanders/varvaytya-py | 129f279a5178d7b2507413c23f228a6bab645440 | 88e36985ffaaaf1176a4e542badd2595cd0b1a99 | refs/heads/master | 2023-08-26T00:14:17.477922 | 2021-11-10T05:43:01 | 2021-11-10T05:43:01 | 410,693,797 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,138 | py | import dataclasses
import xml.etree.ElementTree as XmlET
from .exc import XmlLoadKeyError, XmlLoadValueError
from .person import PersonDc
from .profile import ProfileDc
@dataclasses.dataclass
class PlayerDc:
hash_: int
rid: str
person: PersonDc
profile: ProfileDc
@classmethod
def from_elemen... | [
"david.wm.sanders@gmail.com"
] | david.wm.sanders@gmail.com |
12fc0ee1166b4df4407683936d693911b1337cb8 | df519fcb24870f66c57ac758237eb65e1cc41243 | /Initial testing - TB1/OB - 011220 UK Household Data Manipulation - Linear Regression Using Scikit learn.py.html | 818cb73e5508b38ff5a0c9e2e5410ecfb303e4a9 | [] | no_license | EMAT31530/green-team-repo-2 | dfb7f12426fb5ea96caef0e4b9d02786edef7986 | cf41da2e2f4567cd58b7f160a2ac626a6ab97541 | refs/heads/main | 2023-08-07T15:53:31.673435 | 2021-04-15T14:15:30 | 2021-04-15T14:15:30 | 342,831,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,843 | html | #!/usr/bin/env python
# coding: utf-8
# In[28]:
#create datafram to pull out data as required
import pandas as pd
import numpy as np
Household_Spend = pd.read_csv('UK_Household_Quantity2.csv', header=None)
Household_Spend
# In[29]:
#Pull required data
Milk = Household_Spend.iloc[1,6:51].values
# In[30]:
Mil... | [
"73698372+HannahSpurgeon@users.noreply.github.com"
] | 73698372+HannahSpurgeon@users.noreply.github.com |
52e13ff11f44e8a73d5997977c6a8554d65d0732 | 6b6aae84763c7ad7ad4585d8410007e383ed41fb | /test/test.py | 257e4ee05227908376ffc5a24a656c3a18b6828f | [] | no_license | PowerMeMobile/email2sms | b3f9781c83f0081c809db4509bca1665a4c72529 | f4b67b49326b576d53c160393b334559509f72c6 | refs/heads/master | 2020-05-26T07:47:26.383983 | 2015-12-08T12:34:25 | 2015-12-08T12:34:25 | 25,347,909 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 9,839 | py | # -*- coding: utf-8 -*-
import pytest
import os
import smtplib
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
EMAIL_HOST = os.getenv('EMAIL_HOST')
if EMAIL_HOST == None or EMAIL_HOST == '':
EMAIL_HOST = '127.0.0.1'
EMAIL_PORT = os.getenv('EMAIL_PORT')
if EMAIL_PORT == None o... | [
"dm.klionsky@gmail.com"
] | dm.klionsky@gmail.com |
19bf5a6e61dce3b350f0d1e8f5096e10c43332a4 | 9c8e0321a4c3a6d072babc34b94a6101e1ea3d11 | /main.py | 7da6e1d614f163173724701adb57f161b8d2ae6d | [] | no_license | sebekbr/bmi_calculator | 1714b074c3afc45f61fa01a9e9adffa22bf33b74 | dcf7f6c3f6011a82b797c2fc990aaa99688aca9e | refs/heads/master | 2020-12-11T20:32:38.081179 | 2020-01-14T22:58:28 | 2020-01-14T22:58:28 | 233,952,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 771 | py | print("KALKULATOR BMI")
print("~~~~~~~~~~~~~~")
print("Podaj wymagane dane. Pamiฤtaj aby zamiast przecinka (,) stosowaฤ kropkฤ (.)")
height = input("Podaj wzrost w [m]: ")
weight = input("Podaj wagฤ w [kg]: ")
# konwersja string do float
floatHeight = float(height)
floatWeight = float(weight)
bmi = floatWeight / (f... | [
"sebastian.brodziak@gmail.com"
] | sebastian.brodziak@gmail.com |
5173078daff12784dc95130aa7fa752675945ff6 | 0fc95286ad73a7e9f2747f669d67057a5c7f1269 | /tests/private/client.py | 8511546470bb1403853176586d015028bd8f56b0 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | hideki-saito/instagram_private_api | d1105186dc620e9f1402d03e0bd829fcc0742eaa | 3b394dfc183125a4dddd5e33345b49aa29a687fc | refs/heads/master | 2021-01-21T21:06:14.461071 | 2017-06-13T15:08:10 | 2017-06-13T15:08:10 | 94,777,003 | 5 | 0 | null | 2017-06-19T12:59:08 | 2017-06-19T12:59:08 | null | UTF-8 | Python | false | false | 9,394 | py | from io import BytesIO
import json
from ..common import (
ApiTestBase, Client, ClientThrottledError, ClientError, ClientLoginRequiredError, Constants,
gen_user_breadcrumb, max_chunk_size_generator, max_chunk_count_generator,
compat_mock, compat_urllib_error
)
class ClientTests(ApiTestBase):
"""Tests ... | [
"lastmodified@gmail.com"
] | lastmodified@gmail.com |
a3853066e56c3628542df630bc034da0c0909f0e | 149660428ec7570b02b9e8b3d494dcd548e80005 | /01-04_pythonๅบ็ก/02_branch/hm_06_holiday_of_girlfrieds.py | 04fdf021fc6b462b2d0aa25d6ca816e1270e5888 | [] | no_license | kenzzuli/hm_15 | 603eb178e476f946eb57b1cdf0c85ba5d65e8d58 | db8a6d13776e55aa4e05ff9f39e9c8e98d59d8ee | refs/heads/master | 2023-08-07T01:57:01.993474 | 2021-09-23T15:49:19 | 2021-09-23T15:49:19 | 359,322,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | """
1. ๅฎไน `holiday_name` ๅญ็ฌฆไธฒๅ้่ฎฐๅฝ่ๆฅๅ็งฐ
2. ๅฆๆๆฏ **ๆ
ไบบ่** ๅบ่ฏฅ **ไนฐ็ซ็ฐ**๏ผ**็็ตๅฝฑ**
3. ๅฆๆๆฏ **ๅนณๅฎๅค** ๅบ่ฏฅ **ไนฐ่นๆ**๏ผ**ๅๅคง้ค**
4. ๅฆๆๆฏ **็ๆฅ** ๅบ่ฏฅ **ไนฐ่็ณ**
5. ๅ
ถไป็ๆฅๅญๆฏๅคฉ้ฝๆฏ่ๆฅๅโฆโฆ
"""
holiday_name = input("please input a holiday:")
if holiday_name == "valentine's day":
print("buy roses")
elif holiday_name == "holloween eve":
print("buy apple"... | [
"820710063@qq.com"
] | 820710063@qq.com |
9c3ee945c6fece715afb3662a97ce6713662f1dc | 0f9888879a1d7b23d51bbca539be94ce26e37360 | /lab5/n_queen_bfs.py | 4adb7481ff6d253e1da1e8fe2b23bf8f9903e369 | [] | no_license | singhpratyush/intro-to-ai | 034ad69ab3a4dd6ea848d582e06cfd53c2962187 | 04eb3236147e882a3c666fe7f3425e15086fbb23 | refs/heads/master | 2021-01-19T22:08:40.256641 | 2017-04-19T19:05:27 | 2017-04-19T19:05:27 | 88,758,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,504 | py | import numpy
import sys
sys.path.append('.')
from Lab5.bfs import BreadthFirstSearch
class NQueenBFS(BreadthFirstSearch):
def __init__(self, n):
super().__init__()
self.n = n
self.dim = [n, n]
def is_final(self, node):
node = numpy.array(node).reshape(self.dim)
if su... | [
"singh.pratyush96@gmail.com"
] | singh.pratyush96@gmail.com |
075d3a7bd30b85a1f1308e0e2336175b386a5fd9 | ab31559f47b62bda09acf06c62beef4e5c0c546a | /app.py | 843ea54ab77eded8e42228f89fb5e51372841cee | [] | no_license | saikumar1752/Chatbot1752 | 737a0f4616edde31ee4747b8876f36e06c2baaa8 | 058298f44b4b9df496e54d40a5aacee3cee48e2a | refs/heads/main | 2023-05-08T05:49:54.421878 | 2021-05-22T04:58:47 | 2021-05-22T04:58:47 | 369,306,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,785 | py | import random
import json
import pprint
import nlpcloud
from pymongo import MongoClient
from flask import Flask, jsonify, request
from flask_cors import CORS, cross_origin
app=Flask(__name__)
CORS(app, support_credentials=True)
nlpapis=[
"2df4083aa8e71c45a1913a6abee1b5e443dbfdbc",
"66f926e21f3160c7c917d9d4... | [
"noreply@github.com"
] | saikumar1752.noreply@github.com |
35bcd44d6c3ffc36f3c53e1a5856f2b17256a861 | 2780b5d138af6733a20913baaeebc0c4f235cbee | /bikeax/wsgi.py | 869504948d4e574fa4c9c639af5e372d88445279 | [] | no_license | ccsreenidhin/Django-Ecom | b74c47345bd883aa41d35ddc5cc4bc8da4270999 | b27a42cecf91ae8f3f4ccb0e07717be6a6c98ba5 | refs/heads/master | 2022-10-24T02:20:58.059523 | 2017-10-07T18:17:10 | 2020-06-13T05:48:47 | 271,949,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | """
WSGI config for bikeax project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault(... | [
"ccsreenidhin@gmail.com"
] | ccsreenidhin@gmail.com |
f013cb70fc081f157e67c61bab659847bfe58297 | 8160376d2aba1e70d81d7b1465e1aaabe6ee304b | /code/test_features.py | eb70c5bbf5cdc336749c472ed988c6e88ad0fda4 | [] | no_license | UtkarshVIT/independentstudy | a6c2ae417fd0bf7b7f86d60a0338627b79b15b95 | ace3329f2f8f7a75b4e40ee053b6ec234f695b44 | refs/heads/master | 2020-05-02T08:47:42.044123 | 2019-04-25T21:00:43 | 2019-04-25T21:00:43 | 177,851,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,234 | py | import nltk
import csv
import io
from string import digits
from nltk.sentiment.vader import SentimentIntensityAnalyzer
import matplotlib
import matplotlib.pyplot as plt
from sklearn.feature_extraction.text import TfidfVectorizer
import sys
from collections import Counter
from decimal import *
import pandas as pd
import... | [
"utkarshsharma351@gmail.com"
] | utkarshsharma351@gmail.com |
b242e795afaf110f82c6adb7c06931cff33ad7e3 | a7acc0c80a2588c41646a40c1238d1622013cafd | /rectlabel_create_pascal_tf_record.py | eb4c1d2f38a63826f5d494c8bb250662e4236e09 | [] | no_license | 3rdTools/Rectlabel-support | 10ebea95211a8b561df16db2e4a55bc4ff3a9cb2 | d07129be5eb8f713a457927264440c4082284de7 | refs/heads/master | 2020-04-22T15:07:53.743288 | 2019-02-12T13:25:18 | 2019-02-12T13:25:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,365 | py | r"""
python object_detection/dataset_tools/rectlabel_create_pascal_tf_record.py \
--images_dir="${IMAGES_DIR}" \
--image_list_path="${IMAGE_LIST_PATH}" \
--label_map_path="${LABEL_MAP_PATH}" \
--output_path="${OUTPUT_PATH}" \
--include_masks
"""
import hashlib
import io
import os
import glob
import ... | [
"ryo@rectlabel.com"
] | ryo@rectlabel.com |
7c1d1a42ac22cdb4b343f2c5ebc05430930bacd4 | 325ff618114dd4af041f63049460b40cf6ce7c9d | /product/migrations/0009_product_left_time.py | d33402ba4b72c627806f4e366bdb57e3e0c1bf5c | [] | no_license | dedysutanto/hkTimer-server | 59f57fab3c9ca3ecf399f7d95ce6ec07e2487478 | 9c8e878ed79e99b7669cd1f7bc617835081ef3e9 | refs/heads/master | 2020-03-08T20:18:41.520894 | 2018-05-02T06:48:04 | 2018-05-02T06:48:04 | 128,378,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | # Generated by Django 2.0.4 on 2018-04-09 05:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('product', '0008_auto_20180409_1034'),
]
operations = [
migrations.AddField(
model_name='product',
name='left_time',
... | [
"dedy.sutanto@proit.co.id"
] | dedy.sutanto@proit.co.id |
3b28f32042b7f9b9d50bcb9d65cd9eb7dd7bde8b | 3f3eb47cdd679dcacaf78f3542efd7af058c7ae1 | /EconExp1_TimePrefPronoun1_intro/models.py | fa15c3e925470c83d800577c451ec927d0470a7d | [] | no_license | cczallen/josieslab-oTree | 92d2193a07198960521a4e3026b805ebbec4336e | 71aa0ec0420357208f18a18925b04dc5e32c5013 | refs/heads/master | 2021-04-04T17:49:49.346385 | 2020-04-11T13:02:28 | 2020-04-11T13:02:28 | 248,476,238 | 0 | 0 | null | 2020-04-11T13:02:29 | 2020-03-19T10:40:26 | Python | UTF-8 | Python | false | false | 1,920 | py | from otree.api import (
models,
widgets,
BaseConstants,
BaseSubsession,
BaseGroup,
BasePlayer,
Currency as c,
currency_range,
)
from EconExp1_TimePrefPronoun1_questionaire.models import (
OptionOfGetMoney,
WaitingPeriod,
GainedAmount,
Treatment,
)
author = 'Josie_NTULA... | [
"cczallen@gmail.com"
] | cczallen@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.