blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1634fedf0b28a1125ac978543e4466d94adb6655 | 000506d7214fa722d06d4ab1fdfd199e199a2643 | /TestApplication/models.py | b9fc5f05bc06c942450ab86980b24284c6bd2cd2 | [] | no_license | CAPPK/Live-Chat-App | 7e58a0ba9c78b24be0c4c4758538a96500e1a125 | f9f5b69eb46bb4b2bc76e136504f2d096e51b431 | refs/heads/master | 2023-08-15T06:03:36.667291 | 2020-04-20T22:49:01 | 2020-04-20T22:49:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,539 | py | from auth import generate_password_hash, check_password_hash
from flask_login import UserMixin
class User(UserMixin):
"""A user for the application."""
def __init__(self, username, password):
self.id = username
self.password = password
def to_dict(self):
return {
'use... | [
"55294326+bhellested@users.noreply.github.com"
] | 55294326+bhellested@users.noreply.github.com |
8cae864b52a7dd7781dbd9be549748578cd7c621 | b6b4bb1809094e446f8427069a7582afbea97ea1 | /format.py | 85d848ef1b6241d3875acda6224ed57cd5ac3984 | [] | no_license | letmecode1/python | 0699caa5a7afc02913a1c04ed0d9cd67a4cd6a19 | e12dfd3bac99b307d181adacfb6cb2552f09fa98 | refs/heads/master | 2020-05-17T13:09:48.938677 | 2019-04-30T04:14:28 | 2019-04-30T04:14:28 | 183,729,450 | 0 | 0 | null | 2019-04-27T05:04:07 | 2019-04-27T04:48:23 | null | UTF-8 | Python | false | false | 651 | py | # Replace {} in strings by other strings, numbers, or variables.
name = "Hello, my name is {}"
print(name.format("Alex"))
new_name = "Ben"
print(name.format(new_name))
# These get replaced in the order they appear.
sentence = "Welcome, my name is {} and I am {} years old."
print(sentence.format("John", 53))
# We can... | [
"javierdominguez@iSeeyous-MacBook-Pro.local"
] | javierdominguez@iSeeyous-MacBook-Pro.local |
01c272af2d82ab2ed9b1ab5b5f39606aed3d5c01 | 42c63d5f9c724c99ba93f77bdead51891fcf8623 | /OpenStack-Mitaka-src/python-manilaclient/manilaclient/v2/share_export_locations.py | 0d0cb3163ea350a24e7e37fcc6849e45d5fa6087 | [
"BSD-3-Clause",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | liyongle/openstack-mitaka | 115ae819d42ed9bf0922a8c0ab584fa99a3daf92 | 5ccd31c6c3b9aa68b9db1bdafcf1b029e8e37b33 | refs/heads/master | 2021-07-13T04:57:53.488114 | 2019-03-07T13:26:25 | 2019-03-07T13:26:25 | 174,311,782 | 0 | 1 | null | 2020-07-24T01:44:47 | 2019-03-07T09:18:55 | Python | UTF-8 | Python | false | false | 1,883 | py | # Copyright 2015 Mirantis inc.
# 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... | [
"yongle.li@gmail.com"
] | yongle.li@gmail.com |
53fc2a21319728318e530d098bcda222407695a5 | 7cf3909e4c9a0ceca372ec2c1330ee6fe6886c84 | /pos/load.py | 12218df11bc0f54884b7f637a5715355a215e6d9 | [] | no_license | levchCode/MoscowEstate | e326d760484059da91f4b225c140a519381b7040 | f5b128f26c03136280e611c6e11842c7e6082066 | refs/heads/main | 2023-05-25T22:22:22.903534 | 2021-05-27T14:10:23 | 2021-05-27T14:10:23 | 371,374,890 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | import urllib.request
import pandas as pd
import os
import time
import random
d = pd.read_csv("final3.csv")
d = d.drop(d[d["pos"] == "-"].index)
for i,row in d.iterrows():
if i in [103]:
time.sleep(random.randint(0, 2))
URL = "http://static-maps.yandex.ru/1.x/?ll={0},{1}&pt={0},{1}&spn=0.0027,0.0... | [
"levch98@mail.ru"
] | levch98@mail.ru |
649fffc0cc3632dcbf5ba2dfa08f82c59a5228a3 | 66f22ebdca9bede8016a388a4beffd5349ad56a0 | /ex10.py | 44967e5818eec1042d5df7866266764d37705bbd | [] | no_license | icadev/Python-Projects | 1de5a617881e87ea7588279b3f6ff5d1e1e39859 | fdf169aac72a917c676261b21d6a76366311a14b | refs/heads/master | 2023-03-18T12:34:17.780849 | 2016-04-19T15:42:57 | 2016-04-19T15:42:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | tabby_cat = "\tI'm tabbed in."
persian_cat = "I'm split\non a line."
backslach_cat = "I'm \\ a \\ cat."
fat_cat = """
I'll do a list:
\t* Cat food
\t* Fishies
\t* Catnip\n\t* Grass
"""
print tabby_cat
print persian_cat
print backslach_cat
print fat_cat
while True:
for i in ["/", "-", "|", "\\", "|"... | [
"carp.ioan@ymail.com"
] | carp.ioan@ymail.com |
5d8c2d955c93665a6a101d866aabccc05a6eec22 | ed9e1b622dad6b559cd0fe6fa23d6a27f857dc7f | /galsim/config/input_powerspectrum.py | c80cacd70793e9d12c16b6aa092dc249e98deb81 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | ajwheeler/GalSim | 40d6f8c64789b601ed2547eefed05f1577592613 | cf0ef33e5f83da1b13a0617d362d8357056d6f22 | refs/heads/master | 2021-01-22T06:14:31.486159 | 2017-04-20T01:20:20 | 2017-04-20T01:20:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,937 | py | # Copyright (c) 2012-2017 by the GalSim developers team on GitHub
# https://github.com/GalSim-developers
#
# This file is part of GalSim: The modular galaxy image simulation toolkit.
# https://github.com/GalSim-developers/GalSim
#
# GalSim is free software: redistribution and use in source and binary forms,
# with or w... | [
"michael@jarvis.net"
] | michael@jarvis.net |
9db632a81b2f05a6b96a3e686c5ca2e03a8894c7 | 81c1debff3a20e51734d1dfb2fc19602088c9fbd | /kismet_parse.py | 6441fe294a6f9ee7741d70f536bc3b2b7fff5558 | [] | no_license | Phil-anthropy/Useful-scripts | b963ba611c5715f750286b046ded8cafb4a3b98b | 398fe56a1ea97649a38145b736e91714b8f7f000 | refs/heads/master | 2021-11-24T11:42:04.345641 | 2021-10-29T15:43:44 | 2021-10-29T15:43:44 | 246,851,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,182 | py | #!/usr/bin/python3
#encoding=utf-8
import sys
import os
import json
import sqlite3
from datetime import datetime
import logging
import errno
import pandas as pd
def main(fname):
# logging.basicConfig(filename='proc.log', level=logging.INFO)
# logging.info("Processing: %s" % fname)
if not os.path.... | [
"noreply@github.com"
] | noreply@github.com |
6b5cb6b20a8f5f1ca794c0c3f95dd7536d9baba6 | d109b64bfa8c80a6ec7d647beeadf9fe1c667fac | /class0925/clist.py | 5480aaf0d2d17a6e7ea731723916f1a863406239 | [] | no_license | jumbokh/micropython_class | d34dd0a2be39d421d3bbf31dbb7bfd39b5f6ac6f | 950be81582dba970e9c982e2e06fa21d9e9a0fdd | refs/heads/master | 2022-10-10T22:27:02.759185 | 2022-10-01T14:44:31 | 2022-10-01T14:44:31 | 173,898,623 | 4 | 3 | null | 2020-03-31T09:57:23 | 2019-03-05T07:40:38 | Jupyter Notebook | UTF-8 | Python | false | false | 349 | py | clist=[[0,0,0],[255,255,255],[255,0,0],[0,255,0],
[0,0,255],[255,255,0],[0,255,255],[255,0,255],
[192,192,192,],[128,128,128],[128,0,0],[128,0,0],
[128,128,0],[0,128,128],[0,0,128]]
hlist=[[59,96,233],[104,42,67],[213,227,227],[216,18,47],
[12,238,108],[255,246,58],[236,184,20],[240,93,197],
[16,173,186],[0,222,25... | [
"jumbokh@gmail.com"
] | jumbokh@gmail.com |
d977a16992c9ee7c9f71dfc38dcd16880f0c321d | ad6bcb1d348a5e23537e8ddd847b9dcc1b512247 | /know_coordinates.py | 102ddb6b42512bd8cde8bd6a94166b2f8c0a2f79 | [] | no_license | parth2510/chrome_dinobot | 0b0bb88a6481eda2569cac115dce94af655140b6 | 14193cadf925db7f330a29b9290dd9dd11e95967 | refs/heads/master | 2022-12-11T10:02:18.399274 | 2020-09-13T10:19:26 | 2020-09-13T10:19:26 | 295,117,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,091 | py | import pyautogui as pg
import time
import numpy as np
import pyautogui_algo
from PIL import ImageGrab , ImageOps
i=0 # runs for 5 sec
# you've to know the coordinates of the dino game in your screen
# the top left corner of the screen is origin with horizontal axis x( left to right) and vertical axis y (top to dow... | [
"noreply@github.com"
] | noreply@github.com |
3176e3ab61e8da0d6acd293525774319b2d3fb17 | ee527d10cbbd842aa74d749bd0397061378b2f55 | /src/products/urls.py | c3b8a8b9d531b57bfb5c12463efc45f7e878ae2f | [] | no_license | rajeevsharmacoder/djangotry | c140c8ecc02ab6b3875756a34f380b513f5981ff | 6e7f6eda1a655674c88aa67331cf5ce57c88c3ce | refs/heads/main | 2023-02-25T23:08:41.612657 | 2021-01-31T15:24:40 | 2021-01-31T15:24:40 | 334,685,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | from django.urls import path
from products.views import (
product_detail_view,
product_create_view,
product_update_view,
product_delete_view,
product_list_view
)
app_name = "products"
urlpatterns = [
path('', product_list_view, name='product-list'),
path('create/', product_create_view, name='product-create'... | [
"rajeevsharma@PC277s-MacBook-Pro.local"
] | rajeevsharma@PC277s-MacBook-Pro.local |
aef8ce977cdb9ab644e748fcf3cf8a58ea69803a | c0b13124a848143965cb5b332af4872775829383 | /project/src/jobs/build_environment.py | c23a6ca8b3fa6dddd5b63ea83f3b68318aebd509 | [] | no_license | YuriiShp/ProxyTCP-automation-framework | 72c20a02ecd874cc33ccb4d9c8cceaa427dd609b | f764f6d6e383fc2f4e87bffc51be681b927d9b62 | refs/heads/develop | 2023-06-18T04:21:03.764194 | 2021-07-18T19:54:36 | 2021-07-18T19:54:36 | 354,765,070 | 0 | 0 | null | 2021-05-13T10:01:06 | 2021-04-05T08:14:41 | Python | UTF-8 | Python | false | false | 726 | py | import os
import sys
import argparse
import logging
from pyats.easypy import run
import src
_scripts_dir = os.path.join(src.__path__[0], "envscripts")
def main(runtime):
logging.getLogger().setLevel(logging.INFO)
logging.getLogger("unicon").setLevel(logging.ERROR)
logging.getLogger("src.environment.go... | [
"yuralrock@gmail.com"
] | yuralrock@gmail.com |
a5ee1872c6c373df25f50d062c448a2600297ef8 | 930c207e245c320b108e9699bbbb036260a36d6a | /BRICK-RDFAlchemy/generatedCode/brick/brickschema/org/schema/_1_0_2/Brick/Outside_Air_Flow_Sensor.py | 68914369d58d176ddefe3473259f05153cfd0d36 | [] | no_license | InnovationSE/BRICK-Generated-By-OLGA | 24d278f543471e1ce622f5f45d9e305790181fff | 7874dfa450a8a2b6a6f9927c0f91f9c7d2abd4d2 | refs/heads/master | 2021-07-01T14:13:11.302860 | 2017-09-21T12:44:17 | 2017-09-21T12:44:17 | 104,251,784 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | from rdflib import Namespace, Graph, Literal, RDF, URIRef
from rdfalchemy.rdfSubject import rdfSubject
from rdfalchemy import rdfSingle, rdfMultiple, rdfList
from brick.brickschema.org.schema._1_0_2.Brick.Air_Flow_Sensor import Air_Flow_Sensor
from brick.brickschema.org.schema._1_0_2.Brick.Outside_Air import Outside_A... | [
"Andre.Ponnouradjane@non.schneider-electric.com"
] | Andre.Ponnouradjane@non.schneider-electric.com |
4a0710140ef441c276e39701404ea8f661acf36a | 249298bde8b03da659171947b29b8761b7115201 | /pollux/adaptdl/adaptdl/checkpoint.py | ed158092630eecbb9441a42570d4b78a92aa3f4f | [
"Apache-2.0"
] | permissive | gudiandian/ElasticFlow | cd4ce1f97f17cb878aa79865277ab64fa8ba7f89 | 0ffc17d257f2923de6478c4331ea64d858e7ab53 | refs/heads/main | 2023-04-18T14:45:49.998762 | 2023-01-05T13:13:10 | 2023-01-05T13:13:10 | 541,545,148 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,657 | py | # Copyright 2020 Petuum, Inc. 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... | [
"gudiandian1998@pku.edu.cn"
] | gudiandian1998@pku.edu.cn |
2b6af8870d94db7ae1dfeeab870a4f7d4f98bb91 | 6ac1fe97e053a8b06be80dcdf5f1276f5ab8471a | /unit2/main1.py | 1698e652e390b552945e73888e260be8e45afe88 | [] | no_license | MiYoShi8225/python-web-app | 8a9be470db19273dd14df05d86194b32cf35bfc5 | d68021a1a07bd33d0dfe3fdf80b0a5005de30ce3 | refs/heads/main | 2023-05-06T22:23:53.881944 | 2021-05-29T05:44:22 | 2021-05-29T05:44:22 | 364,112,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 766 | py | import matplotlib
import pandas as pd
import matplotlib.pyplot as plt
import yfinance as yf
#%matplotlib in inline
aapl = yf.Ticker('AAPL')
#print(aapl.history())
#50日分取得する場合↓
#print(aapl.history(period='50d'))
hist = aapl.history()
#date がindexの役割をはたしている
#print(hist.columns)
#indexを振り分けてdateもデータ項目にすることができる↓
#pr... | [
"down8225@gmail.com"
] | down8225@gmail.com |
c92bc503e230290e2b426b13c325f2d4a9826f04 | 89a68ee43d962d952f4373db3c4abe458e8b3279 | /supermarkt_price_index/main.py | 2397d5ca08eb8c9c9a7553f1927cd92bf71a2ca8 | [] | no_license | rwblokzijl/supermarket_price_index | 331673126f621f7ef6fa29b0f2cea80bc2208888 | 6c6a97700f80d5ec9abcdbcd17ddd4efd7bdfd96 | refs/heads/master | 2023-07-01T02:43:55.538024 | 2021-08-08T17:29:04 | 2021-08-08T17:29:04 | 386,938,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,372 | py | #!/usr/bin/env python3
from gql import Client, gql
from gql.transport.requests import RequestsHTTPTransport
from query import get_query
import json
import csv
from typing import *
def persist_to_file(file_name):
def decorator(original_func):
def new_func():
try:
cache = json.... | [
"wesselb94@gmail.com"
] | wesselb94@gmail.com |
78c74ed3b0171e81cdd0a592869436c48f52bcff | 0a440ae0241c7916c0061cac0565321748977b22 | /jassbot/my_jass/mcts/mcts_player_CNN.py | 1e45cde920f71482ad5cfcfac739517236ffa3d2 | [] | no_license | iarava/HSLU-DL4G-Exercises | 3fe4d5557bcd75e09f4734fd73cdf0d2a29ab58c | b2db765b7267a2bbcd79f79e0d5af69177a9c880 | refs/heads/master | 2020-11-30T19:05:53.887536 | 2019-12-27T14:55:26 | 2019-12-27T14:55:26 | 230,460,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,302 | py | # HSLU
#
# Created by Thomas Koller on 20.08.18
#
import numpy as np
import time
import jass.base.const as const
from jass.base.player_round import PlayerRound
from jass.player.player import Player
import jass.base.round_factory as roundInf
from my_jass.mcts.Node import Node
from my_jass.mcts.Tree import Tree
from my... | [
"luca.rava@stud.hslu.ch"
] | luca.rava@stud.hslu.ch |
43e3645065b8674ca05ffd73eebcc5bc57a24d99 | 82ac136fd7cc254cedccc755490c919dcfd7cb78 | /Python/emulate_server.py | c2adf1ca5b2cd058d9a86d97e67400c339ea178c | [] | no_license | sitharakannan/zmq-unity-arduino | 8082dae0fe3299abdb91823953dd4410a8e46e39 | 7b0e9729ce8b4bd2517dc2fb32d46540dae86833 | refs/heads/master | 2020-03-28T11:29:31.265010 | 2018-09-17T00:56:01 | 2018-09-17T00:56:01 | 148,219,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | import zmq
import time
import sys
import random
port = "1234"
context = zmq.Context()
socket = context.socket(zmq.PUB)
socket.bind("tcp://*:%s" % port)
while True:
topic = random.randrange(9999,10005)
msg = str(random.uniform(-1.0, 1.0)) + " " + str(random.uniform(-1.0, 1.0)) + " " + str(random.uniform(-1.0, ... | [
"sithara.kamalakkannan@gmail.com"
] | sithara.kamalakkannan@gmail.com |
632296f308036f19d8d108c0c69160e75bbeb3d7 | be2955418744c1d530e229dd316e40987c4e9428 | /grid.py | 95b9ceedd3ac3ab3fca94440ca3f20cea682b830 | [] | no_license | kevin-bigler/pytris | 113f33ed9cdc8b479fff2a6d97204f5a94dd242a | 0fa65422127e61dc2567551bdd15b36aa21de2c3 | refs/heads/master | 2023-04-05T19:13:23.874664 | 2021-05-08T17:59:19 | 2021-05-08T17:59:19 | 338,723,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,141 | py | """Grid data structure, for convenience"""
class Grid:
def __init__(self, width, height, initFn=lambda x, y: {}):
"""
Args:
width
height
initFn - invoked to initialize each grid item's value, ie initFn(x, y). default is empty map
"""
self.width = ... | [
"kevin-bigler@users.noreply.github.com"
] | kevin-bigler@users.noreply.github.com |
85de194799b259a616254f8b20da8a630ac9d0a6 | e1eaed6dde62fc54eb317d28dbd18e0740e3e8f3 | /official/vision/image_classification/efficientnet/tfhub_export.py | d3518a1304c8c761cfaabdcc96dead70dd9b0097 | [
"Apache-2.0"
] | permissive | nlpming/models | cf5008d2e66d2b66b6d61423e214f2f9f9fbe472 | 3cbf0748529d787dd09fa3ed031e557f0ddfa268 | refs/heads/master | 2021-12-03T03:29:16.042489 | 2021-11-23T14:09:10 | 2021-11-23T14:09:10 | 206,007,973 | 0 | 0 | Apache-2.0 | 2019-09-03T06:47:46 | 2019-09-03T06:47:46 | null | UTF-8 | Python | false | false | 2,317 | py | # Copyright 2021 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
2f53996e72cbabb87592c05a781fbddacb4b0311 | 1e19224e3bd01383604354f2654e5f05ab97f789 | /Hackerrank/ProjectEuler+/project_euler_15.py | b27c0a3995d80bb2f56cb7bd6a5678b7493f8776 | [] | no_license | kiner-shah/CompetitiveProgramming | f67fdfeee189d9215c0b380197ca03ae2ae0efe1 | 8b3cea85bf99b099d18a978a209aa67030b75c9e | refs/heads/master | 2022-11-29T19:33:37.686989 | 2020-08-22T08:04:28 | 2020-08-22T08:04:28 | 102,189,359 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | # Lattice paths
def fact(n):
if n==0 or n==1:
return 1
else:
return n*fact(n-1)
t=int(raw_input())
for i in range(t):
x=raw_input()
nm=x.split()
ans=fact(int(nm[0])+int(nm[1]))/(fact(int(nm[0]))*fact(int(nm[1])))
print ans%1000000007
| [
"noreply@github.com"
] | noreply@github.com |
3e5280096799b493a5f5a44d93c6f9aa67ed65ea | ecbb539f6c46d1da22c1d677809912800cb2cedb | /performance/app.py | 3846654a0fb6bdaef938aba8bd92add7ea5db55a | [
"MIT"
] | permissive | letyndr/dash | ecc82ea7b653f0e0dcc3f3cd419305cde887b12a | 3ae8cfb9ea67eccc96e0f7a726a87616bb9e19b5 | refs/heads/main | 2023-03-04T00:05:48.336983 | 2021-02-12T23:27:41 | 2021-02-12T23:27:41 | 337,732,665 | 0 | 0 | MIT | 2021-02-10T13:44:59 | 2021-02-10T13:29:27 | null | UTF-8 | Python | false | false | 588 | py | import time
import dash_core_components as dcc
import dash_html_components as html
from dash import Dash
from dash.dependencies import Output, Input, State
app = Dash()
app.layout = html.Div([
"hello, this is Dash!!!",
dcc.Input("input"),
html.Button("Press", id="btn"),
html.Div(id="result"),
])
@ap... | [
"leticia.cruz546@gmail.com"
] | leticia.cruz546@gmail.com |
31214babd69af863c6c00e938f64103d02fbd00b | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_143/ch20_2020_03_04_19_28_32_953906.py | 1c8d2050fbb9fd530886f4bcd029d1f07091e621 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | # Pergunta quantos km
km= float(input('quantos km:'))
def P(qts_km):
if qts_km <= 200:
y=qts_km*0.5
return y
else:
y=200*0.5 + (qts_km-200)*0.45
return y
y = P(km)
print ('{0:2f} .format(y)) | [
"you@example.com"
] | you@example.com |
abaf7f138942cdf3f08632884ead902bc339f791 | 9cc325b00adba5f1b1d8334d98fcca5e0b995d3e | /setup.py | 557da98bf3b4a4d3cc652154b1d3263ee63fdf58 | [] | no_license | voronind/fuzzy-fabric | 63fb87d92c224c2c27f8fc3da00bcd799eac03e4 | 9afa7426c9ea91be14a706ecbc887432b447615d | refs/heads/master | 2021-05-28T00:43:00.968044 | 2014-08-25T14:35:59 | 2014-08-25T14:35:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,046 | py | # coding=utf8
from setuptools import setup, find_packages
setup(
name='fuzzy-fabric',
version='0.6.3',
author='Dmitry Voronin',
author_email='dimka665@gmail.com',
url='https://github.com/dimka665/fuzzy-fabric',
description='Fuzzy Functions For Fabric',
packages=find_packages(),
pack... | [
"dimka665@gmail.com"
] | dimka665@gmail.com |
ad898af3ead4c60b84d96129fbea7db469805d67 | 18b9368556d1d6769e347732d2726db23fbc836c | /src/db_cache/db_cache_manager.py | 156ef312b701c1fb10e5b23a05e4040c8011f428 | [] | no_license | fxfabre/find_duplicated_files | d30d5de497143562e7c09677c59a7f56b3df589b | 9a9c243afab89c5619bdfe5fee1a02c4e5d9c2b1 | refs/heads/master | 2022-07-12T10:10:32.091206 | 2020-08-11T05:26:23 | 2020-08-11T05:26:23 | 192,222,388 | 0 | 0 | null | 2022-06-21T22:09:31 | 2019-06-16T18:12:12 | Python | UTF-8 | Python | false | false | 5,051 | py | #!/usr/bin/env python3
import os
import traceback
from ctypes import c_ulong
from time import time
from typing import List
from typing import Optional
from typing import Tuple
import pandas as pd
from numpy import base_repr
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from sqlalchemy_ut... | [
"fx.fabre@gmail.com"
] | fx.fabre@gmail.com |
83ea46dc3fcae0d4c91574909d2b333d114f3cc5 | 371b92c0a39eb5908af9b63bf05ade6452246b64 | /fullnode.py | 8c004e4370a804c3b0ed19e1ab26c11f8f96ea2e | [] | no_license | Fraccaman/BBAR-Simulation | c575b4af028bd7fb23ff1e9c26b067b280085237 | a0bd4c22077dbda22f83563c39ba85655a077687 | refs/heads/master | 2022-02-17T14:18:04.596364 | 2019-08-20T20:46:54 | 2019-08-20T20:46:54 | 198,052,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,494 | py | import hashlib
import random
from copy import deepcopy
from dataclasses import field, dataclass
from enum import Enum
from typing import List, Set, Tuple
class Exchange(Enum):
BAL = 0
OPT_ONE = 1 # i am altruistic
OPT_TWO = 2 # you are altruistic
ABORT = 3
class Nature(Enum):
ALTRUISTIC = 0
... | [
"gianmarco.fraccaroli@gmail.com"
] | gianmarco.fraccaroli@gmail.com |
524e5a59242290f1e740d2b72707ec4f7852b615 | ad66e91b52cdd870719afb19f032dd8d248eeb39 | /AADeepLearning/loss/svm.py | 4589f658cacea17611ea15ea7d842d20a04c0da5 | [] | no_license | privateos/AADeepLearning | fbadc6b879116d28d05675c6fde22734d96c4143 | ff024af19450127c56ebcda70aa7eea533d60285 | refs/heads/master | 2021-10-16T15:56:35.003059 | 2019-02-12T00:31:06 | 2019-02-12T00:31:06 | 269,908,625 | 1 | 0 | null | 2020-06-06T07:47:37 | 2020-06-06T07:47:37 | null | UTF-8 | Python | false | false | 4,233 | py | import numpy as np
class SVM:
"""
SVM损失层,又称为Hinge损失函数,一般用于最后一层分类
"""
@staticmethod
def init(layer, flow_data_shape, config):
"""
初始化, 这里无操作
:param layer: 层,包含该层的权重、偏置项、梯度、前向输入输出缓存、实例化对象等信息
:param flow_data_shape: 流动数据的形状
:param config:配置
:return: 更新后的... | [
"1368761119@qq.com"
] | 1368761119@qq.com |
e58c948e684c0c777fb0458cab4f1c371b8742b3 | d0078489b6cf4ff3971c76e9da90e29007296996 | /py/warmup/monkey.py | fd8a3a5ef63c38e5141ddd76be7e6c3ea5d11fc5 | [] | no_license | Anel-Tolkynbekova/week8 | 40c316aca1732c42cb098c929cc2815de69f9952 | 6b6eef387a4501e455b5c7db87201d6ed3bdcc19 | refs/heads/master | 2021-04-07T10:45:21.574183 | 2020-03-20T04:53:59 | 2020-03-20T04:53:59 | 248,669,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | def monkey_trouble(a_smile, b_smile):
if((a_smile and b_smile) or ((not a_smile) and (not b_smile))):
return True
else:
return False | [
"noreply@github.com"
] | noreply@github.com |
0364bbf10f5a61ed1a063b7db92449798336a01e | 723b59ec1e6d2288f57bca983080c88e0370cdc0 | /advancedsearch.py | cf7438be7222c9094cedf39e9c8d4b2cbfb647fb | [] | no_license | lynnhuh/project1 | 8cd7bf6b568c92b395f768ec096633952de4203e | 26b13b735e8de69582d2fad6971e47ff70c820bb | refs/heads/main | 2023-06-24T00:01:49.520204 | 2021-07-23T12:37:15 | 2021-07-23T12:37:15 | 388,789,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,039 | py | import re
import pandas as pd
import numpy as np
import os
import glob
import sys
from nltk.stem import PorterStemmer
from nltk.tokenize import word_tokenize
# Using PorterStemmer(), find the IDs that has stem words of keywords
def porterstemmer(word1, word2, word3) :
porterStemmer = PorterStemmer()
... | [
"noreply@github.com"
] | noreply@github.com |
14f66d3ddc6918e55eb99dde6f3adfd7af7927e0 | afb951b29acd33952e979851a647a27ffac66e9a | /lib/filter_bam2fq.py | 0c8f30bfe94cb20bed64077036f4f76dbc36be85 | [] | no_license | zxgsy520/sbarcode | 08580aaba4cb167d33c97ba9a25cd0b6ea23d105 | 041bff936ae56394beaca30b660ddc0e7c2d748f | refs/heads/main | 2023-04-22T08:31:07.089803 | 2021-05-13T14:03:51 | 2021-05-13T14:03:51 | 320,477,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,203 | py | #!/usr/bin/env python
#coding:utf-8
import os
import re
import sys
import pysam
import logging
import argparse
LOG = logging.getLogger(__name__)
__version__ = "1.0.0"
__author__ = ("Xingguo Zhang",)
__email__ = "113178210@qq.com"
__all__ = []
def read_bam(file):
if file.endswith(".bam"):
fh = pysam.Al... | [
"noreply@github.com"
] | noreply@github.com |
10a70e49b941b1aba688535966de6e1e25b21fa4 | f866771551f14d359485d6ca051c3833ae90332d | /getters_&_setters.py | 915d924758c6621b9e11e7be3836b17398821671 | [] | no_license | BenGilbert98/python_OOP | 6ae421e64fbd71438e14c4da260bf5fbcd8a67d2 | 2b1df5f46bbc32c3e94b376314343441c885d650 | refs/heads/main | 2023-01-09T05:48:02.974648 | 2020-11-06T11:19:37 | 2020-11-06T11:19:37 | 310,262,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,226 | py | # Getter and Setters
# why - use cases
# to hide the data - separation of concern
# Syntax 2 functions 1 to get information, 1 to set information
# Create a class called student
class Student:
def __init__(self, name, company):
self.name = name
self.company = company
def getStudent(self, val... | [
"73166552+BenGilbert98@users.noreply.github.com"
] | 73166552+BenGilbert98@users.noreply.github.com |
7a6cdd72513023707903c252305e7238ce9bbccf | f9f1f887629855bbf12ecb0b7358fed5946b3caa | /.history/app_blog_forum/views_20201117201247.py | b670732826fc49cafc6e9dd7d657644d12d97833 | [] | no_license | hibamohi5/blog_forum | 4f687cee3ca6bdb1d0302b3657a77c01945404b3 | d6380eb7149355c79276b738da7da94c2ee03570 | refs/heads/main | 2023-01-14T18:33:53.043754 | 2020-11-20T01:52:22 | 2020-11-20T01:52:22 | 314,417,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,340 | py | from django.shortcuts import render, redirect
from .models import *
from django.contrib import messages
def index(request):
return render(request, "index.html")
def register_new_user(request):
errors = User.objects.user_registration_validator(request.POST)
if len(errors) > 0:
for key, value in ... | [
"hibamohi5@gmail.com"
] | hibamohi5@gmail.com |
623fb49ae83fcbc02745a43d900baf84a124f004 | 3caa566bb86d97f82c888695f39638b5f579c32d | /dragonfly/dragonfly/_local_settings.py | 5ccd7d1902d89f8bc5fd06efb04069377e4d75ed | [] | no_license | royalpioneers/dragonfly-project | ad576a33648db175b4543412865001ff43f64f11 | 5c25d71b17b7d71a6cc25d5a117ce23c2f0f999c | refs/heads/master | 2016-09-05T14:53:41.247405 | 2013-06-11T18:59:05 | 2013-06-11T18:59:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,541 | py | # Django local settings for dragonfly project.
from settings import *
PROJECT_PATH = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
DEBUG = True
TEMPLATE_DEBUG = DEBUG
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracl... | [
"luciano@palomino.pe"
] | luciano@palomino.pe |
9a552b56252d358c502b6dbb7ae63745a4fca22c | 2452bdfb25628e55190c46694e156bf4b1459cf0 | /prejudge/views.py | 1dcd4f1dae49f5c5ed8bf029726d85ea47c4ae9a | [] | no_license | bobjiangps/bug_prejudge | 0da3fbeab9dae1620330d16852d3e8792def56d5 | aeadd84476de0cf10a0341d694888f768e6c3706 | refs/heads/master | 2023-03-01T14:43:44.904473 | 2023-02-13T10:09:59 | 2023-02-13T10:09:59 | 195,923,513 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | from prejudge_process import PrejudgeProcess
from rest_framework.views import APIView
from rest_framework.response import Response
class PrejudgeRound(APIView):
def get(self, request, round_id):
p = PrejudgeProcess(round_id=round_id)
result = p.run()
return Response(result)
class Prejud... | [
"jbsv43@sina.com"
] | jbsv43@sina.com |
da99f166f0942e17c402e439ace003805ab39ee2 | d73084a15208ca4d56110e0658257f15c12e3226 | /app.py | 642ecfbbaa23aa7882b7dadd75254a0537c116a7 | [] | no_license | GopichandranN/Age_Prediction | b270f8cedfc0d6039173a7194af22a2bf9b95c69 | d94406aac6fa494e5439466a4a0c3727bb2027b5 | refs/heads/main | 2023-05-03T06:19:06.653488 | 2021-05-23T16:53:54 | 2021-05-23T16:53:54 | 370,075,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 835 | py | import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
import seaborn as sns
from sklearn.model_selection import train_test_split
import keras
from keras.models import Sequential
from keras.layers import BatchNormalization,MaxPool2D,Dense,Conv2D,Flatten
from keras.callbacks import EarlyStopping,Learnin... | [
"gcchand232@gmail.com"
] | gcchand232@gmail.com |
8b5899b081f51859b5026092de23aa65a12618d5 | 80faf231dae71c9db23848a5baa57d4da2b8aa1d | /tests/test_dsl_IT.py | 1aeb2d0cac7fa1797e71b8bc84366ca52dcbfc55 | [
"MIT"
] | permissive | lelis-research/PyGames-synthesis | 8cf00369fdc7ac80a16473dc0355f89562b6ecd3 | 0c597243c04ce511d8ae5cfd52b1c043267b4503 | refs/heads/main | 2023-07-17T22:50:39.465185 | 2021-08-31T21:30:55 | 2021-08-31T21:30:55 | 371,117,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,070 | py | import unittest
from unittest.mock import Mock
from src.dsl import IT, ReturnAction
class TestIT(unittest.TestCase):
def setUp(self):
self.env = {}
self.env['TRUE'] = True
self.env['FALSE'] = False
self.env['BODY'] = 100
# Create mock object
self.if_cond = Mock()... | [
"vadiaval@ualberta.ca"
] | vadiaval@ualberta.ca |
d25eab0fadaf2ff99bbe1e0dcacc8524aa209b84 | 89a41e9ce15fcd216c72c12ba3c638afd1e60b65 | /ImageConstructor.py | b7c6c9baeb116702a009e86cae677fcc7ceee6cb | [] | no_license | andress5990/11_reconstruccion_de_imagenes_por_superposicion | 0d48cd5a55679a88fe9719e6b8e6960b1b75e0d8 | ccaea782e068a5da16458545957b374067150858 | refs/heads/master | 2021-01-03T02:07:28.137362 | 2020-02-11T21:58:31 | 2020-02-11T21:58:31 | 239,873,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,078 | py | import cv2
import numpy as np
import sys
from scipy.optimize import curve_fit as fit
from scipy import exp
from matplotlib import pyplot as plt
import pdb
drawing = False # true if mouse is pressed
ix = -1 #Creamos un punto inicial x,y
iy = -1,
dotslist = [] #Creamos una lista donde almacenaremos los puntos del con... | [
"andress5990@gmail.com"
] | andress5990@gmail.com |
ef651501a51f284c28de0c10b00916c6327deecb | f68a01a74697533fb5fee4beb1fa73d9a3825a29 | /1.py | c723619df9529d2b5e32465ea848ce24a66b15d3 | [] | no_license | DayangLee/Python-learning | e8728317c81c601480f3ad815d79e2774e158432 | b3051fb2c74c512254cad8269c74b60f0cbdff62 | refs/heads/master | 2021-09-05T21:19:02.402043 | 2018-01-31T03:25:14 | 2018-01-31T03:25:14 | 107,518,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | print('hello', 'wold')
print(100 + 200)
name = 'LJY'
print('Hello', name)
# print absolute value of an integer:
num = 200
if num >= 0:
print(num)
else:
print(-num) | [
"dayanglee2015@163.com"
] | dayanglee2015@163.com |
ac08592f24581115477dc1e3fe0e6907fc2e9860 | 2941b312fc83ff08f5b5f362cf700e7ff8352cd3 | /kats/tests/models/test_data_validation.py | cf7402fdd68cec674de17cc8bb5223d1b0844e51 | [
"MIT"
] | permissive | rbagd/Kats | 5e1ac0b288f1250423921f7ada812c1198c55269 | 4f86a332d0afc790ab1d833fd8ffe6782a8be93b | refs/heads/main | 2023-08-21T20:35:42.141281 | 2021-09-22T09:27:18 | 2021-09-22T09:27:18 | 407,527,411 | 0 | 0 | MIT | 2021-09-17T12:11:43 | 2021-09-17T12:11:42 | null | UTF-8 | Python | false | false | 1,870 | py | # Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import io
import os
import pkgutil
import unittest
from unittest import TestCase
import pandas as pd
from kats.consts import TimeSeriesData
fro... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
eeaa45b85f2ad11bc1462bbc6fe5dd16a502735b | 2c0993aac7ad3848d343ffb4f838a5bda8f740f3 | /funcation_Python/harshad.py | 019eb9bed9d0b4ecbe37f410ebf3b95bc61b6fa5 | [] | no_license | Praveen-Kumar-Bairagi/Python_Logical_Quetions | 6e20e04bf737f8f4592be76694b54470d5d79e7a | 4e0f3262cf183f56e5a57157f0593a454923317f | refs/heads/master | 2023-08-22T21:40:36.343811 | 2021-10-24T05:21:43 | 2021-10-24T05:21:43 | 420,594,339 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | def is_harshad_num(num):
num2=num
add=0
while 0<num:
a=num%10
add+=a
num=num//10
if num2%add==0:
return "true"
else:
return "False"
num=int(input("enter the num"))
print(is_harshad_num(num))
| [
"you@example.com"
] | you@example.com |
09e2f3af11a3b2a7613d765cc7f8e3f0fe6a192e | 983d1fe45500f99d7b994a0a61ebb0344d60024e | /CRF.py | bbd598d9619e51e327a717c35bea8919579db475 | [] | no_license | b2kq/sece_keowack | 5f32dee49990112bab97455035d8596df5b20cd1 | d01789042da8398b4dc9d700cbbee02573cb97da | refs/heads/master | 2021-01-19T15:39:20.787373 | 2020-08-12T23:47:21 | 2020-08-12T23:47:21 | 88,225,175 | 0 | 0 | null | 2020-08-12T23:47:22 | 2017-04-14T02:32:30 | Python | UTF-8 | Python | false | false | 2,857 | py | # This is a stand-alone script
def jvmLogLevel(jvmName, nodeName, logLevel):
jvmId = AdminConfig.getid('/Cell:' + cellName + '/Node:' + nodeName + '/Server:' + jvmName + '/')
if(jvmId == ""):
print "ERROR: jvmLogLevel: Bad server name passed: " + jvmName
raise Exception, "Script raised ex... | [
"noreply@github.com"
] | noreply@github.com |
1aa64d7d435f8308e15b3dc3ab64dfeae42b43fb | ee5954ed019a60a1075b77c8ff6033f2d566a492 | /GkMovies/Library/PosterModule.py | a86e5145a679769f34817df8eb4f0bd13a42db84 | [] | no_license | sbgoldsmith/GkMovies | 8b7e6df033d27be9cd13856b11a23ff6aeab2ac0 | 9386bc395214902c26c849bbe0e99fea32ab60d4 | refs/heads/master | 2023-06-24T03:45:21.796904 | 2021-07-06T21:16:19 | 2021-07-06T21:16:19 | 288,015,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,148 | py | import os
import urllib
from Library.LoggerModule import info, debug
from Library.ConstantsModuleF import Constants
class Poster(Constants):
def addMoviePoster(self, tt, url, imovie):
rtn = 0;
imagePath = self.posterPath + tt + ".jpg"
debug('Checking tt= ' + tt + ' for d... | [
"sgoldsmith@goldkeys.com"
] | sgoldsmith@goldkeys.com |
fa84ef75822d5b5fad413f7d15367e49c21460da | 8909adf0e1581fcc972b82972a55770308f78c2b | /djangodeploy/default-template/etc/settings.py | d1e48da242308988bad74402788e2b8ecd0f4301 | [
"MIT"
] | permissive | nowells/django-deploy | 66e9b5df3146cf46bcfcce655f591e702584d1b9 | 43a162ee4689d21409655f032dce81d626aef053 | refs/heads/master | 2021-01-01T19:30:08.907813 | 2010-02-10T22:24:21 | 2010-02-10T22:24:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,081 | py | import os
from __PROJECT_NAME__.settings import SITE_ROOT
TEMPLATE_DIRS = (
os.path.join(SITE_ROOT, 'templates'),
)
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.load_template_source',
'django.template.loaders.app_directories.load_template_source',
'django.template.loaders.eggs.load_te... | [
"nowell@strite.org"
] | nowell@strite.org |
007b03d2e6e2b3a6bf017c8e8f9002fea11db6b7 | da7e9acdb0f01d1e3a409a9af553ca2ce36cf4e2 | /cogs/clientevents.py | 73de8fa9e9814d91f7f1dc8036f150fb3a49ba77 | [] | no_license | SourceCodeAi/PaimonBot | ff90e6e94b67e0fb66b0f09782c93b1022f5ca0a | 5f4f36a640a65d932aec36a4a0e6de0c28ae4b1c | refs/heads/main | 2023-02-18T05:30:30.576216 | 2021-01-20T16:12:15 | 2021-01-20T16:12:15 | 331,359,990 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,368 | py | import discord
from discord.ext import commands
class client_events(commands.Cog):
def __init__(self, client):
self.client = client
@commands.Cog.listener()
async def on_command_error(self, ctx, error): # -> Error Handler
if isinstance(error, TimeoutError):
embed ... | [
"noreply@github.com"
] | noreply@github.com |
90e4f57a8e61d170d3e67b7bd2f9348ae458e5fa | a34504cdd30a10535dcd924246e218edc4071819 | /models/inception_resnet_finger_v34.py | af1218b816315d9184175837cf7a69f0a2b5fc0c | [] | no_license | ting1234cn/facenet_example | 6fb1e41568f7772ef10133718892022d0d01c44f | 0778e3118041ab4a27aef50c313aa856a4928ee9 | refs/heads/master | 2020-03-26T05:30:56.528599 | 2019-07-23T14:02:03 | 2019-07-23T14:02:03 | 144,560,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,728 | py | # ==============================================================================
"""定义了一个inception V1的网络结构
Contains the definition of the Inception Resnet V1 architecture.
As described in http://arxiv.org/abs/1602.07261.
Inception-v4, Inception-ResNet and the Impact of Residual Connections
on Learning
Christia... | [
"ting1234cn@163.com"
] | ting1234cn@163.com |
c466642b454d777e22b14c619db8d707e72673fd | 615e3cdc2c136b2f66b5c553d375823d3580fd08 | /exercicio/venv/Scripts/easy_install-3.7-script.py | d7f8ad6ddd000dbb1b0c6fc876af7b1dc51e5a7a | [] | no_license | Android-Ale/PracticePython | 859a084e224cfb52eed573e38d7d9dc91f405885 | cab2ac7593deb22e6bb05a95ecd19a8ea2c96b0a | refs/heads/master | 2023-05-06T06:33:36.724569 | 2021-05-15T00:12:06 | 2021-05-15T00:12:06 | 369,307,842 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | #!C:\Users\Alpha\PycharmProjects\exercicio\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7'
__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\.p... | [
"alesson9silva@gmail.com"
] | alesson9silva@gmail.com |
774c2f5ff3b9e0d4bf3cf0759dde4a143d483969 | 2e92b94edc64825f947767f202085135a4fefa73 | /main.py | 8f3c667a5399ca28a1c901ef00ae0dd34041bd74 | [] | no_license | rajatgarg765/car_selling_pred | 869a057c54aa0c3ad8c95c5b15978c3b7ab2eb60 | b4793afed0bc2838bef9e8fe23714d1da424b07d | refs/heads/main | 2023-08-24T22:49:38.431404 | 2021-10-29T11:50:09 | 2021-10-29T11:50:09 | 407,608,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,085 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Sep 27 13:22:57 2021
@author: info
"""
from flask import Flask, render_template, request
import jsonify
import requests
import pickle
import numpy as np
import sklearn
from sklearn.preprocessing import StandardScaler
app = Flask(__name__)
model = pickle.load... | [
"noreply@github.com"
] | noreply@github.com |
81c0be1f662045795975963953f6ca78e7b13dc9 | e173098f9ecd39bef112432a8bb7ed7fb1209fe9 | /wfm_client/migrations/0017_auto_20160914_1241.py | b48fd76cef7c8e48e380eb28be2f3b3e3694d74f | [] | no_license | isaiahiyede/inventory | 51b639257c14e257ababae047d83caa93b809893 | cedecc5b6d22d977b4bdac00e5faf775da7382ab | refs/heads/master | 2021-08-29T08:41:02.062763 | 2017-12-13T15:46:57 | 2017-12-13T15:46:57 | 114,137,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,015 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-09-14 12:41
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('wfm_client', '0016_item_item_edited_by'),
]
operations = [
migrations.AlterF... | [
"a.ajibike@zaposta.com"
] | a.ajibike@zaposta.com |
a4badd11e840906a2c0e96b040d2ad0c1d23965d | e631f155b30122d813678fd8dd98004085b9579e | /setup.py | 0d6bb32b8676adacd2c8026933b7605a6ce3bab9 | [
"MIT"
] | permissive | SidSachdev/pycrunchbase | 4efd716c58b2bdbee379c5f4d9fd30c310d43502 | f0a9b945bc5d3f7b3827820bd28a75265c28f756 | refs/heads/master | 2020-12-14T18:53:51.512180 | 2015-09-28T01:17:19 | 2015-09-28T01:17:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,791 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
from __future__ import absolute_import, print_function
import io
import os
import re
from glob import glob
from os.path import basename
from os.path import dirname
from os.path import join
from os.path import relpath
from os.path import splitext
from setuptools import f... | [
"ngzhian@gmail.com"
] | ngzhian@gmail.com |
fb26cde8efd6a03e8e3cf61cd97dab0ebce32c38 | 5d4b8d85dae45d6d4bfd694a3dffcb874ca57128 | /settings.py | 1ec042881b6cae26a766d2ac94967936fb6516a4 | [] | no_license | ZozimoAps/flask-api | e42405feecb2a716a820d6ff97bffea6699f8029 | 9a5cf2075a87e1088bd43c624feb7ccc9c33d1ce | refs/heads/main | 2023-06-20T18:15:49.676956 | 2021-07-19T15:37:26 | 2021-07-19T15:37:26 | 387,513,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,401 | py | class Database:
def __init__(self, database, driver, user, password, host, port, namedb):
self.database = database
self.driver = driver
self.user = user
self.password = password
self.host = host
self.port = port
self.namedb = namedb
def database_uri(self)... | [
"zozimo.fernandez@apscreativas.com"
] | zozimo.fernandez@apscreativas.com |
2af8f879d09a065659af764392ae6058b2c56d6a | 703cee055dd54da69741c8cd7b232287a2932929 | /utils/logger.py | d6841f06eb865a7f492e739b94f7833afd584ac1 | [] | no_license | lbianculli/starcraft_agents | 5a576ea533f1efcf0ce39d119d6d76448ad9c4ba | cabd74705619eddbf5ced51a977b6dd02b24b105 | refs/heads/master | 2020-05-06T15:21:34.602755 | 2020-02-29T22:04:01 | 2020-02-29T22:04:01 | 180,185,892 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,726 | py | import os
import sys
import time
import numpy as np
from collections import deque, namedtuple
class Logger:
def on_start(self): ...
def on_step(self, step, rewards, dones): ...
def on_update(self, step, loss_terms, grads_norm, returns, adv, next_value): ...
def on_finish(self): ...
... | [
"noreply@github.com"
] | noreply@github.com |
792862ccfd39edbbf5d59ac8c38f0e49a5c30815 | 975b2d421d3661e6770b601929d5f11d981d8985 | /msgraph/generated/users/item/onenote/notebooks/get_notebook_from_web_url/get_notebook_from_web_url_request_builder.py | e99e4dfcbfbb0b7e53d83c6a885d5e9a8aae9b24 | [
"MIT"
] | permissive | microsoftgraph/msgraph-sdk-python | a7c551b85daadeebf76ec4ae12668664ea639b42 | 27de7ccbe688d7614b2f6bde0fdbcda4bc5cc949 | refs/heads/main | 2023-09-03T21:45:27.989672 | 2023-08-31T06:22:18 | 2023-08-31T06:22:18 | 534,665,999 | 135 | 18 | MIT | 2023-09-14T11:04:11 | 2022-09-09T14:00:17 | Python | UTF-8 | Python | false | false | 4,643 | py | from __future__ import annotations
from dataclasses import dataclass, field
from kiota_abstractions.base_request_builder import BaseRequestBuilder
from kiota_abstractions.get_path_parameters import get_path_parameters
from kiota_abstractions.method import Method
from kiota_abstractions.request_adapter import RequestAda... | [
"GraphTooling@service.microsoft.com"
] | GraphTooling@service.microsoft.com |
7336985aafab55f1133b58ea28f9dac595aae05d | a85b44c14701d2459c39875d8b3d9c405621ba6a | /pe014.py | e076d161e4f7061aa73deb8399251e50ce066602 | [] | no_license | JonesCD/P-E-Problems | 08b935be65659eed7e8dbf2cac9f6ad414960412 | e4678cc941a7b7b5addb4971bc3d1b95ce7b2b91 | refs/heads/master | 2021-01-18T09:18:22.857062 | 2015-10-28T03:29:28 | 2015-10-28T03:29:28 | 36,782,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,354 | py | """
The following iterative sequence is defined for the set of positive integers:
n -> n/2 (n is even)
n -> 3n + 1 (n is odd)
Using the rule above and starting with 13, we generate the following sequence:
13 -> 40 -> 20 -> 10 -> 5 -> 16 -> 8 -> 4 -> 2 -> 1
It can be seen that this sequence (starting at 13 and finish... | [
"jones.christopherd@gmail.com"
] | jones.christopherd@gmail.com |
786c16d5e2f40b4a856134608b31daa87575be75 | c7eb8d119d8dd8314d31e65c9b91e9a6b4a7768c | /CostcoBot.py | c99483ba99b489b4e61ed8810c8f996864d48492 | [] | no_license | simsd/costco-bot | 7bb8f039c20be3bb3bbe09f2e74f2094d83d65e2 | ff7375eb8e1bbce92280e3a29f4efcc683847b45 | refs/heads/master | 2023-07-08T21:18:08.090036 | 2021-08-21T17:04:23 | 2021-08-21T17:04:23 | 398,458,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,790 | py | ##########################################
# Written by Sim Singh Dhaliwal #
# 2021 #
##########################################
import requests
from bs4 import BeautifulSoup
# This header is needed to bypass Costco's bot detection
headers = {"User-Agent":"Mozilla/5.0 (Windo... | [
"sdhaliwal@ucla.edu"
] | sdhaliwal@ucla.edu |
c56350ea25cd28c2ea280163e99dbc7ae86dd3ff | 69fb7f59b9309c95f04f69abfd6dba1a9cb40f09 | /Chapter_05/ex_03_get_system_info.py | c847008424c17adf7fcc37583f17460f091a3fe5 | [] | no_license | att-iotstarterkits/sk2-Users-Guide | 0c798aa0eaa6e77a9d1a68fbb3277a83dc0a6be0 | 38d8e851f0bb68bc562b6ca3b688416a101b205e | refs/heads/master | 2021-07-21T08:00:45.035713 | 2020-05-11T03:12:42 | 2020-05-11T03:12:42 | 161,242,166 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,364 | py | ###############################################################################
# file: ex_03_get_system_info.py
#
# Connect to the Modem Abstraction Layer and access system and connection info
###############################################################################
import iot_mal # ... | [
"scott@sgspecker.com"
] | scott@sgspecker.com |
e676a89a933de6bc6296c8af15a68b1d50ad2711 | 41890b3869794164bf6bf3b10e60be3f21d2850b | /ros_arduino_bridge/ros_arduino_python/src/ros_arduino_python/arduino_driver.py | 7d33b6d7542ec885d527c454b2b86565b82f33aa | [] | no_license | kmzzyong/quardRobot | 3705ee304908a5728f019afa4086713d8311b268 | abdf2480bf8f6292cdd11c12cd1da9ec192a20c2 | refs/heads/master | 2020-05-05T04:13:01.843398 | 2020-04-12T12:10:07 | 2020-04-12T12:10:07 | 179,681,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,854 | py | #!/usr/bin/env python
"""
A Python driver for the Arduino microcontroller running the
ROSArduinoBridge firmware.
Created for the Pi Robot Project: http://www.pirobot.org
Copyright (c) 2012 Patrick Goebel. All rights reserved.
This program is free software; you can redistribute it and/or modify
... | [
"kmzzyong@aliyun.com"
] | kmzzyong@aliyun.com |
428a9a227628aa61a4441f33d869e4064a08bc98 | 4ebea0d4031b45ffcd9ecc0e7b28efb183df07df | /code/topics/2-lists-dicts-and-strings/E14-longest-common-prefix.py | da4edeaf81ad3ad7750cd7508da0231e01884006 | [] | no_license | jeremyyew/tech-prep-jeremy.io | 9c2b5a44de1d820a35d9cb2eef54487f0c1a1e60 | 8d9e3736d87daaa0caca2555018fe0c2bbd2dc13 | refs/heads/master | 2020-05-24T14:12:20.197200 | 2020-02-06T05:18:24 | 2020-02-06T05:18:24 | 187,304,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 752 | py | '''
- Brute force: go through all strings, keeping track of longest prefix so far. We can stop if we get empty prefix.
- We sort the strings in lexicographic order (unknown complexity).
- Then we know that the common prefix between the first and the last string is the longest possible, because any prefix built from p... | [
"yewern@gmail.com"
] | yewern@gmail.com |
879169d23b72460387ca0d7625af92a61555b5ed | 0f938358c238b2e09c14a59d8294e54793d3441f | /service_api/db/maindb.py | f663f277960ba7d8ad0a46e5235eff94ebca83d1 | [] | no_license | kostyanchick/ShopApi | b2da99269a2064e4f1210a36282d42ffdc02042e | 6d56b356f89d375d972535adbb0f67f74b6d30cd | refs/heads/master | 2022-10-05T16:43:46.188429 | 2019-12-15T20:49:57 | 2019-12-15T20:49:57 | 228,251,344 | 1 | 0 | null | 2022-09-16T18:15:35 | 2019-12-15T20:57:13 | Python | UTF-8 | Python | false | false | 1,625 | py | # initial scripts for DB
def drop_all_tables():
"""Deletes all tables"""
drop_user_category = """ DROP TABLE IF EXISTS user_category """
drop_users = """ DROP TABLE IF EXISTS user"""
drop_items = """ DROP TABLE IF EXISTS items """
drop_categories = """ DROP TABLE IF EXISTS categories """
quer... | [
"yosipiv.yuriy@gmail.com"
] | yosipiv.yuriy@gmail.com |
f1876448cae5a208714bf6e18d72d3522170ef33 | 9576d5a3676b09f3b892083988cfbe6985a9ef4a | /resender.py | 465639185d7a50c7a097a50fe6b58cd6e0360243 | [] | no_license | ual-cci/music_gen_interaction_RTML | da4d2a8c754423d223ca342bac577967e291ad71 | 39419d5bd53ff685a2a9efcf4f373a624c8b28f9 | refs/heads/master | 2021-09-04T09:41:55.976149 | 2021-08-16T19:58:54 | 2021-08-16T19:58:54 | 215,372,452 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,150 | py |
"""
def resender_function(arr):
pass
"""
from autoencoder.autoencoders_handler import process_using_VAE, to_latent_vector_using_VAE
def resender_function(arr):
# Send one frame only - the last generated one
#send_one_frame(arr)
send_all_gen_frames(arr)
#encode_spectrogram_VAE(arr)
#arr = pro... | [
"previtus@gmail.com"
] | previtus@gmail.com |
d80bb1f0f4faa7266a76268a872a3bba0062cbfb | b1fa444f1b0b1054f09778492ed55572901a5a74 | /Python_혼공파/04-2-ex4_200324.py | ce51a1ee365eaed0c75adb083887447af8316c4b | [] | no_license | llkg1596/Algorithm | d719465df450cd3792af75a618e5ad8b3e35a693 | 0420ca7e5c6ba2d6db85bc43f6bb93177e71a525 | refs/heads/master | 2021-03-17T18:51:45.656126 | 2020-03-24T13:05:00 | 2020-03-24T13:05:00 | 247,010,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 733 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Mar 24 21:38:44 2020
@author: llkg1
"""
character={
"name":"기사",
"level":"12",
"items":{
"sword":"불꽃의 검",
"armor":"풀플레이트"
},
"skill":["베기", "세게 베기", "아주 세게 베기"]
}
for key in cha... | [
"llkg1596@naver.com"
] | llkg1596@naver.com |
4c35844ccd9bf27c23fa920b80f30f4597eb5d47 | f01ab652c191e3353a016398c3da8fcf9d2501b8 | /visualize_dummy_data.py | 585d082f175a08f369d08a3e67d6fd9482e31f60 | [] | no_license | luaGeeko/reliable_DecisionMaking | fc528d16ec41d83be19a4ed3ed59a176a8ee72fd | 57a2aad1914d92b80f413f4850d5d1c5b1490a7a | refs/heads/master | 2022-11-28T00:02:19.203273 | 2020-07-30T18:09:08 | 2020-07-30T18:09:08 | 281,209,953 | 0 | 0 | null | 2020-07-30T17:23:25 | 2020-07-20T19:40:47 | Jupyter Notebook | UTF-8 | Python | false | false | 1,105 | py | import numpy as np
import os
import visualize
dirname = os.path.dirname(__file__)
def visualize_dummy_data():
dataset_folder_path = os.path.join(dirname, "dummy_data")
# list of the dataset files in the dataset folder
files = os.listdir(dataset_folder_path) # get first few only
# get absolute path o... | [
"klarizsofi@gmail.com"
] | klarizsofi@gmail.com |
cbfbe9bd8a333e96995b6789860b25dc6023ef3b | 8de4ab66b068e82bcdfedc21e112ff833ddca840 | /migrations/versions/20210707_100900_.py | 87811972da3f428a649032f4b9558fa0a181c6ce | [] | no_license | nathanblaz/tunevillage-app | 3e1607497d44d808a246c6a979ac7415fa6403ce | a1650b83d29ab7d9f1402286483887c494cd85f7 | refs/heads/main | 2023-07-04T17:26:52.811615 | 2021-09-01T06:17:33 | 2021-09-01T06:17:33 | 381,391,253 | 1 | 0 | null | 2021-09-01T06:17:34 | 2021-06-29T14:20:09 | Python | UTF-8 | Python | false | false | 3,205 | py | """empty message
Revision ID: ad0c6f3008e7
Revises:
Create Date: 2021-07-07 10:09:00.381720
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'ad0c6f3008e7'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto gene... | [
"nathanblaz@gmail.com"
] | nathanblaz@gmail.com |
d7148b6c3654a2afeb0b18046d3d86b65ce7fde1 | edd75bcf8c450dfce6b26b92b4fc012b399bd319 | /Exe41_dividas_com_juros.py | 83923f6847e4b9e94b7bd00a054b371381f67bc8 | [
"MIT"
] | permissive | lucaslk122/Exercicios-python-estrutura-de-repeticao | ac130cf9f6e78aff50e15e41aa1badfba55d6c8b | 1f203918e9bb8415128bb69f515240057b118a14 | refs/heads/main | 2022-12-20T17:08:43.105838 | 2020-10-20T14:08:15 | 2020-10-20T14:08:15 | 304,305,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,904 | py | print("""Quantidade de Parcelas % de Juros sobre o valor inicial da dívida
1 0
3 10
6 15
9 20
12 25""")
divida = float(input("Dig... | [
"71664028+lucaslk122@users.noreply.github.com"
] | 71664028+lucaslk122@users.noreply.github.com |
08ccac9802867fc9f6548f0782099cb7606c8906 | 5d90ab8775e77612291a98e53d81b128e9f50d54 | /utilityfiles/poverty.py | e320b45d453761081e46f7d8460b1e011af53d29 | [
"MIT"
] | permissive | IronicNinja/covid19api | 3c355caac44cefea86336e7919d1c3b5dc05c0dc | f96a18c646379fe144db228eaa3c69d66125628d | refs/heads/master | 2022-11-15T10:15:31.490951 | 2020-07-17T20:43:49 | 2020-07-17T20:43:49 | 278,180,632 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | ### https://worldpopulationreview.com/state-rankings/poverty-rate-by-state
import pandas as pd
df = pd.read_csv(r'C:\Users\evanz\Downloads\csvData.csv')
df1 = pd.read_excel('states_info.xlsx')
df1['poverty'] = df['poverty']
df1.to_excel('states_info.xlsx') | [
"zhang21evan@ncssm.edu"
] | zhang21evan@ncssm.edu |
9a6e37cc125153b9e109936e1a81f5ab2a2e3d8e | cd830c7832ce7abd77c529a57515558388b56daf | /randomAll/unicodeConvert.py | f9e7fed48417671887877d7b94f18c948efe85a3 | [] | no_license | aravindgee/TwitterRetrieval-Linux | 62c56457dbb52d0162afbe8d49b40bfa6166b8e4 | 4a7e233e92c9fa939e1a727b97c1fa18e83def18 | refs/heads/master | 2021-01-20T08:06:17.719525 | 2015-06-10T04:49:10 | 2015-06-10T04:49:10 | 36,413,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | import codecs
a = codecs.open("random.tsv", "r", "unicode-escape").read() # a is a unicode object
codecs.open("output.tsv", "w", "utf8").write(a)
| [
"agopal01@syr.edu"
] | agopal01@syr.edu |
e0bed68c7a9f9f63190d3dce0a29a93e11c2e59c | c51f10d8fe9ceb8d95860f9df6b74f90cd94a264 | /LOCATORS.py | 91a72c151e7c6b4d31680b1941c94761fcfc3efe | [] | no_license | agnivon/TeamsAutoAttender | 63b90b04aea0c137f0a548c1c0635eb52b240b03 | db467f0977459043ff1c230048378cdc7f1e5c10 | refs/heads/master | 2023-06-04T01:26:36.580674 | 2021-07-05T00:30:20 | 2021-07-05T00:30:20 | 382,975,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,286 | py | EMAIL_FIELD = '//*[@id="i0116"]'
EMAIL_NEXT_BUTTON = '//*[@id="idSIButton9"]'
PASSWD_FIELD = '//*[@id="i0118"]'
SIGNIN_BUTTON = '//*[@id="idSIButton9"]'
REM_LOGIN_BUTTON = '//*[@id="idSIButton9"]'
WEBCAM_TOGGLE = '//*[@id="page-content-wrapper"]/div[1]/div/calling-pre-join-screen/div/div/div[2]/div[1]/div[2]/div/div/se... | [
"agnivon@gmail.com"
] | agnivon@gmail.com |
24620c48aa3523716e5550dab083433ad30958c6 | ef8df68fcdde562636c83700ee356e3d1d3efd9f | /sample_mimic_json.py | d90d3b00f23de31420f4d46393b1b6390b2a4f5e | [] | no_license | copyleftdev/deep6_ingest_artifact_generator | 581c43ee0e6cebb954b8f6236d3956d87c30ba41 | 1225f8c439543d7af8072e2d12e36a0c54e22a99 | refs/heads/master | 2022-12-09T10:59:00.763874 | 2019-05-10T17:29:35 | 2019-05-10T17:29:35 | 176,434,116 | 1 | 0 | null | 2022-12-08T05:16:11 | 2019-03-19T05:51:07 | Python | UTF-8 | Python | false | false | 378 | py | import pytest
from random import randint
from random import choice
from faker import Faker
from libs.models.mimic_model import Mimic as mm
from libs.utils.db import DBHelper
from libs.utils.json import Writer
fake = Faker()
patient_db_cur = DBHelper(prefix="patients_mimic")
notes_db_cur = DBHelper(prefix="notes_mimi... | [
"don@deep6.ai"
] | don@deep6.ai |
3926e36ae5e7ad216f818a25ec24a3211ec1e1fa | b2c3c8a45282c30821cc8c3d6a9f8b6b652ee182 | /Code/umap_consecutive.py | 91e87d2b97017bbd151b2ccb3c8caadbd148a2c0 | [] | no_license | TimRepke/adaptive-landscape | 1735dde96ce1c737c028cb53973c1e9ae07dd236 | 90025a112a5c7cec4d53485cefa49a2bf6f009c8 | refs/heads/master | 2023-03-20T10:02:37.347225 | 2021-03-16T19:33:52 | 2021-03-16T19:33:52 | 330,475,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,449 | py | from models.umap import UMAPParams, UMAPModel
from datasets.mnist import MNIST
from datasets.fashion_mnist import FashionMNIST
import numpy as np
from data_handlers.generators import temporal, SamplingReference, accumulate
from data_handlers.disk import store_result
from models.large_vis import LargeVisModel
from mode... | [
"tim@repke.eu"
] | tim@repke.eu |
eac58c5c03b7ab9050d3193746a20cb1e83c733e | d2e78c7c8c94cd2ef16a0b77eb9852312ead4ee7 | /elementpath/xpath2/xpath2_functions.py | ad67a79b39019425263b4d8e465394d1f68c8e11 | [
"MIT"
] | permissive | evhayes/elementpath | fa72cfba0c761b0ddb7100d36101b5c117e00fee | a74ce89c04622d8ae98ab739886c3e46f87b024e | refs/heads/master | 2023-08-04T05:16:09.136086 | 2021-09-16T14:00:22 | 2021-09-16T14:01:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 55,019 | py | #
# Copyright (c), 2018-2021, SISSA (International School for Advanced Studies).
# All rights reserved.
# This file is distributed under the terms of the MIT License.
# See the file 'LICENSE' in the root directory of the present
# distribution, or http://opensource.org/licenses/MIT.
#
# @author Davide Brunato <brunato@... | [
"brunato@sissa.it"
] | brunato@sissa.it |
0384ae2fbe09fc8096dd75019fc77f73ea286804 | b302e5e4f7d698d030389bdb0b3cfde263797275 | /extract_reduced_data.py | d3e9fc7a14d8855d651799cd1d9beacc28e499e2 | [] | no_license | JMBrock/BROCK.py | 10f02f1d9850706db891283bcc79575c7cda6d8b | 6f85b4f06782fc01b044c9750d11fa563d498daa | refs/heads/master | 2020-05-07T20:13:24.866247 | 2019-04-11T18:03:20 | 2019-04-11T18:03:20 | 180,850,038 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,925 | py | import os
import sys
import math
import numpy as np
import matplotlib.pyplot as plt
from scipy.fftpack import fft, fftfreq, fftshift
from scipy.signal import blackman
from scipy import integrate
class myfft:
"""
This class is created for the computation of Fast Fourier Transforms
on signals outputted by U... | [
"joseph.m.brock@nasa.gov"
] | joseph.m.brock@nasa.gov |
cab930a6987b322035eb05ab3349c998ce4b0bb6 | 975b2d421d3661e6770b601929d5f11d981d8985 | /msgraph/generated/teams/item/operations/count/count_request_builder.py | 7563a07abbd5473b63b8d3e18fde09d02d14b4db | [
"MIT"
] | permissive | microsoftgraph/msgraph-sdk-python | a7c551b85daadeebf76ec4ae12668664ea639b42 | 27de7ccbe688d7614b2f6bde0fdbcda4bc5cc949 | refs/heads/main | 2023-09-03T21:45:27.989672 | 2023-08-31T06:22:18 | 2023-08-31T06:22:18 | 534,665,999 | 135 | 18 | MIT | 2023-09-14T11:04:11 | 2022-09-09T14:00:17 | Python | UTF-8 | Python | false | false | 4,641 | py | from __future__ import annotations
from dataclasses import dataclass, field
from kiota_abstractions.base_request_builder import BaseRequestBuilder
from kiota_abstractions.get_path_parameters import get_path_parameters
from kiota_abstractions.method import Method
from kiota_abstractions.request_adapter import RequestAda... | [
"GraphTooling@service.microsoft.com"
] | GraphTooling@service.microsoft.com |
14046e9e60eaaec96f1f334616aade709e2c3f40 | 64c7f111d2c49da19ed659cd92311b1c234573b8 | /MADDPG/experiments/load_level_k_agents.py | 71b6273778abedaa4b2a78925b754311a9a923dc | [] | no_license | guyna25/speakerListnerRLlibEnv | ae8d1671847c610aa5f6042b015824fb359bdd00 | f2644a9c1c7472d0a0475fd59207d15b84e73862 | refs/heads/master | 2023-02-28T17:39:25.456074 | 2021-01-31T15:10:55 | 2021-01-31T15:10:55 | 334,179,883 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,229 | py | # !/usr/bin/env python
# -*- coding: utf-8 -*-
"""
train.py
Updated and Enhanced version of OpenAI Multi-Agent Deep Deterministic Policy Gradient (MADDPG) Algorithm
(https://github.com/openai/maddpg)
"""
import argparse
import csv
import numpy as np
import os
import pickle
import sys
import tensorflow as tf
import t... | [
"34960387+guyna25@users.noreply.github.com"
] | 34960387+guyna25@users.noreply.github.com |
97c711444f271cf5dd01a4637e0f22fcf114dd1f | 8f7ba59b79709011098c6c8d8eb0fc0565fe43e5 | /SteamParser/migrations/0003_auto_20210629_1009.py | 251b847502a48f8552661cf7883d1ce66b7f795a | [] | no_license | izya5346/Steamly | b1bdf7c1a8e3b4b380fec16cf83de87dca5faab7 | 7d6b979db4966fc6dbdd09ea844f3066206599ac | refs/heads/master | 2023-06-03T03:40:21.916667 | 2021-06-29T13:07:50 | 2021-06-29T13:07:50 | 381,356,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | # Generated by Django 2.2.16 on 2021-06-29 10:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('SteamParser', '0002_auto_20210629_0827'),
]
operations = [
migrations.AlterField(
model_name='sticker',
name='icon_... | [
"karimov2203@gmail.com"
] | karimov2203@gmail.com |
b4e6f9f2c724bc87f321082cda8bdaac8d4a4692 | 1765f91f967adf2a7957e2e71792d05551159f12 | /node_modules/node-sass/build/config.gypi | c4a814ecc35c18631e734dcf1e2e01bd5fa2257e | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | spielerx/gulp-sass-iojs | c603894adc9933c2a628345748a06101266d818a | 40a969b93acce0a96c2ac12edf9d56a8d5d800d4 | refs/heads/master | 2021-01-01T16:49:45.981485 | 2015-01-19T22:15:22 | 2015-01-19T22:15:22 | 29,499,332 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,203 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"host_arch": "x64",
"icu_small": "false",
"node_install_npm": "true",
"... | [
"spielerua@gmail.com"
] | spielerua@gmail.com |
3a5fef583bfbec46c22196c2e20d84972cb7e567 | abd116986c8d179afb5a1106ef27dbd7686ed4a3 | /pyburst/burst_analyser/burst_analyser.py | 02428532683839a6038d52f633dfb1262c024e32 | [] | no_license | astrojuan/pyburst | f2e0af4c2f39dcb128dcc0c31e69a80136dd07b1 | b134f0efb4df6db36956cc092456080b3f83b115 | refs/heads/master | 2020-05-02T06:03:15.898456 | 2019-03-26T07:46:42 | 2019-03-26T07:46:42 | 177,785,798 | 0 | 1 | null | 2019-03-26T12:38:37 | 2019-03-26T12:38:37 | null | UTF-8 | Python | false | false | 58,047 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import os
from scipy import interpolate, integrate
from scipy.signal import argrelextrema
from scipy.stats import linregress
# kepler_grids
from pyburst.burst_analyser import burst_tools
from pyburst.grids import grid_tools, grid_strings
from pybu... | [
"zac.johnston@monash.edu"
] | zac.johnston@monash.edu |
0c6f1f132f207947ef823ca9dd2a6b533534a7bb | ce8efb09caf4c3e0105bbd4bdcea45a2036dff49 | /rango/urls.py | e48fd9bee1c4b5d42a858de78d63bee8f637060d | [] | no_license | 2090707/twj_test | aee54c6bcc96971ed50c9e82e8d61a439a48b2ce | e5028470b563d19c4590cc0d1384bef26d5cac9f | refs/heads/master | 2021-01-18T13:30:15.591632 | 2015-01-01T18:35:38 | 2015-01-01T18:35:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 874 | py | from django.conf.urls import patterns, url
from django.conf import settings
from rango import views
urlpatterns = patterns('',
url(r'^$', views.index, name='index'),
url(r'^about/$', views.about, name='about'),
url(r'^add_category/$', views.add_category, name = 'add_category'),
url(r'^category/(?P<cat... | [
"rammluft@gmail.com"
] | rammluft@gmail.com |
bd0200e12aeca0c25bade5aecb1cc2b8df09c748 | 4ab317785d7c7a1655d7bb54bc63ba8673dd2794 | /ls8/helpers.py | 86b6e04f9409e36ccca3b26773364adeedb10f89 | [] | no_license | rbabaci1/CS-Computer-Architecture | e96a95236bd676c41f19bf8bc91c3432bac49a73 | cfb4fcd1c372a1706982d7f4d8e5dc1184cf8901 | refs/heads/master | 2023-01-02T05:09:00.103270 | 2020-10-27T03:32:05 | 2020-10-27T03:32:05 | 299,959,934 | 0 | 0 | null | 2020-10-27T03:32:06 | 2020-09-30T15:11:35 | Python | UTF-8 | Python | false | false | 1,264 | py | def write_program_to_ram(self, file_name):
try:
with open(f"examples/{file_name}") as fp:
for l in fp:
binary_string = l.partition("#")[0].strip()
if len(binary_string):
self.ram_write(int(binary_string, 2), self.address)
se... | [
"4rabah@gmail.com"
] | 4rabah@gmail.com |
3d6a6879edec4d9731cae652011bf837f8f4f75b | 14331099e9c126106edf498f39b5470042398f40 | /donors/managers.py | b7a020a92bcf26057b0066c4124280f6498643bc | [] | no_license | Bclayson/olive-branch-rescue-backend | 9262ede4c1ac4dde744b1fbca09303bc595fff18 | c754a8d2b8458c0cb39d3b48f278ad6946dd0acd | refs/heads/master | 2016-09-06T01:31:42.047846 | 2015-09-10T05:26:43 | 2015-09-10T05:26:43 | 42,223,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 611 | py | __author__ = 'administrator'
from django.db import models
class DonorManager(models.Manager):
def multi_donation_donors(self):
return self.get_queryset().annotate(donations=models.Count('donations')).filter(
donations__gt=1)
class MultiDonationDonorManger(DonorManager):
def get_queryset(... | [
"jkdclayson@gmail.com"
] | jkdclayson@gmail.com |
9eeb9ec736d3a128a7a4b0bcbf8e7d8c9f3d58cb | ce11b44f6ea5d986e23785e2a47562772221dfc3 | /cs440_pacman/positionplusghost.py | a220999b61866ef4e397c2c06c117863ceb4fd29 | [] | no_license | Atul-Nambudiri/AIMPS | d33dfe460be44a1f58cee41b4b63d811c7b54c23 | c915ff48aed958540ca27523d2520db9df739154 | refs/heads/master | 2021-01-19T05:53:45.690193 | 2015-12-08T04:36:30 | 2015-12-08T04:36:30 | 42,484,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 483 | py | class PositionPlusGhost(object):
"""
A Position object that is used by the priority queue to get the position with the greatest priority, or low cost
The object has two additional
"""
def __init__(self, pos, ghost_pos, ghost_dir, cost):
self.pos = pos
self.cost = cost
self.ghost_dir = ghost_dir
self.ghos... | [
"atul.nambudiri@gmail.com"
] | atul.nambudiri@gmail.com |
eea2508dce92201cc93455cc550fce259e244a53 | f288de8dc46c907bed2d47c11a9606e7b2d1d92c | /skil2.py | a371551d376917d8375997839bd5d938a4f2b247 | [] | no_license | BrynjarYaYeet/vefforritun-verk2 | 5a3719572739afd24ca0f9999d3947cf05499723 | b34204045d08d1d915331221e2d1afe57e134751 | refs/heads/master | 2020-03-28T16:03:40.530101 | 2018-09-13T15:20:58 | 2018-09-13T15:20:58 | 148,655,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,141 | py | from sys import argv
import bottle
from bottle import *
@route("/")
def index():
return """
<h2> Verkefni 2. </h2>
<p><a href="/a"> Liður A </a></p>
<p><a href="/b"> Liður B </a></p>
"""
@route("/a")
def a():
return """
<h2> Verkefni 2.A </h2>
<a href="/sidaA/... | [
"noreply@github.com"
] | noreply@github.com |
7bb2e73006c6ee160b2255fc289034c470d89208 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03126/s820418794.py | c6ce4db220fdbf39b8cd22445a417e1ceea7b485 | [] | 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 | 172 | py | n, m = map(int, input().split())
foods = [0] * (m + 1)
for i in range(n):
k, *a = map(int, input().split())
for j in a:
foods[j] += 1
print(foods.count(n)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
459df356e3a33060193f471ce45a63243a94a3db | be0e2ffad7c1844a23c2301be05a698e269b0259 | /main.py | 196d55ad8c4f8676600d56c30205a1282e1e005b | [] | no_license | chunjy92/drsc | b8961cb06f9c4d1ca0fe3aabb49a40476111ffaa | 9bccf7101dfaf2a883c7d0e97a4c361c628eeab9 | refs/heads/master | 2020-05-17T15:59:53.006128 | 2019-05-15T09:59:29 | 2019-05-15T09:59:29 | 183,805,642 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,370 | py | #! /usr/bin/python3
# -*- coding: utf-8 -*-
import os
import time
import tensorflow as tf
from experiment import DRSCExperiment
from utils import config, const, logging
__author__ = 'Jayeol Chun'
FLAGS = None
def run_bert_classifier(log_file):
import sys
import subprocess
pythonpath = "PYTHONPATH=."
pyth... | [
"chunjy92@gmail.com"
] | chunjy92@gmail.com |
e3c2c08a2791db14b4f9716a57c46b5fa2c23664 | 4009f2b3a7af5dba610eb1b1b90d29a637239396 | /Farfetch/spiders/farfetch.py | d3e6c15038a63ccd904cb916b9cca2ca4d585000 | [] | no_license | xulichen/farfetch | d06d5f073da3ac999f8a940becce9c06ba786c39 | 9d64e9dda57c909a88784fd532e734ffb4360df9 | refs/heads/master | 2021-07-15T15:07:24.635109 | 2017-10-22T08:33:06 | 2017-10-22T08:33:06 | 107,849,597 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,727 | py | # -*- coding: utf-8 -*-
import scrapy
import re
import json
import requests
from Farfetch.items import FarfetchItem
class FarfetchSpider(scrapy.Spider):
name = 'farfetch'
allowed_domains = ['www.farfetch.cn']
start_urls = ['https://www.farfetch.cn/cn/shopping/women/anya-hindmarch-loose-pocket-small-eyes--... | [
"306084800@qq.com"
] | 306084800@qq.com |
649d80601651a1282e96382840d77acba321849c | 290a3ae83302ce46769ccc6977314c11224c5883 | /base_camera.py | d30913031346c51170757c05c1c46c535aa1a2e8 | [] | no_license | Buttars/Internet-Rokenbok-Controller | 2dc648ec459e4c256b715ed80be83097682f52f5 | 3820ba243e316cc610c5144b054ec79ed655a9bd | refs/heads/main | 2023-08-11T05:19:45.523224 | 2021-09-17T17:59:29 | 2021-09-17T17:59:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,694 | py | # Taken from https://blog.miguelgrinberg.com/post/flask-video-streaming-revisited
import time
import threading
try:
from greenlet import getcurrent as get_ident
except ImportError:
try:
from thread import get_ident
except ImportError:
from _thread import get_ident
class CameraEvent(object... | [
"fibonaccirectangle@outlook.com"
] | fibonaccirectangle@outlook.com |
65124adc85975262069df0af5fa469ff0f938db3 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nncorpul.py | f663c3de78ca7c9ee1c5fec007032320a6f1f46a | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 426 | py | ii = [('LeakWTI3.py', 1), ('AdamWEP.py', 1), ('ClarGE2.py', 1), ('LyttELD.py', 1), ('CoolWHM.py', 1), ('CrokTPS.py', 1), ('ClarGE.py', 7), ('AinsWRR.py', 1), ('MedwTAI.py', 1), ('GodwWLN.py', 1), ('MedwTAI2.py', 1), ('HogaGMM.py', 1), ('CoolWHM3.py', 3), ('DequTKM.py', 1), ('FitzRNS.py', 2), ('FerrSDO.py', 1), ('RoscTT... | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
c1dabae1fb425ffb57e912b628fee915812da11a | 7bf0f2da132e02d9f573afac91c7e1bb12f8f8cc | /blog/urls.py | 7d3738250250a541a6f063f77ec13b072231842b | [] | no_license | vedo/vedo-blog | e18fc903dd27ba2bf647ea2ff390f857787db4c9 | fff26febc36e98251a96698a784c95fc0c8764dc | refs/heads/master | 2021-05-22T00:33:40.246621 | 2020-04-20T11:08:12 | 2020-04-20T11:08:12 | 252,885,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | from django.urls import path
from . import views
app_name = 'blog'
urlpatterns = [
# ej: /blog/
path ( '', views.IndexView.as_view(), name='index' ),
path ('<int:pk>/', views.DetailView.as_view(), name='detail')
]
| [
"victor.diazosorio@gmail.com"
] | victor.diazosorio@gmail.com |
491148774ac1fa2b690aa1334fcef76f3d45bf60 | ac69799f105ec928ecfd5e1aa67062b3e19dead3 | /sdk/python/tests/compiler/testdata/tekton_pipeline_conf.py | 481b38418982617f055d134e0b11f7f8a6f2541a | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | kubeflow/kfp-tekton | 5326373a4056b2b3ad78fc9199cae91c9a084282 | 136e7a93528b1b5845dcab058d46272b15af6c54 | refs/heads/master | 2023-08-05T07:25:29.697741 | 2023-08-03T16:04:20 | 2023-08-03T16:04:20 | 217,148,415 | 149 | 111 | Apache-2.0 | 2023-09-11T18:21:37 | 2019-10-23T20:33:01 | TypeScript | UTF-8 | Python | false | false | 2,470 | py | # Copyright 2021 kubeflow.org
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | [
"noreply@github.com"
] | noreply@github.com |
c7cbc7413abcf620cd9202f1340343894726e42a | ec306c5fb1083c13777866b9304c391b1aaadabc | /portfolio/util.py | d299ad92d6b0194d05ade7b91048298c64bb1189 | [] | no_license | tfrance/special-octo-funicular | 602cb452d8184abdfb9670b64d4b5fddfd082b66 | c716b8004becb54af6d281db78ee7ad13f1c54cc | refs/heads/master | 2020-08-30T16:14:31.053763 | 2019-10-30T03:27:50 | 2019-10-30T03:27:50 | 218,430,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,211 | py | """MLT: Utility code."""
import os
import pandas as pd
import matplotlib.pyplot as plt
def symbol_to_path(symbol, base_dir=os.path.join("../", "data")):
"""Return CSV file path given ticker symbol."""
return os.path.join(base_dir, "{}.csv".format(str(symbol)))
def get_data(symbols, dates, addSPY=True):
... | [
"tom@vgimfs.com"
] | tom@vgimfs.com |
f9f75ef1594181d3bfa18a88bdb0291d5d66b770 | 2c565dadbf0f02fe0f08c2b2111bf71140a018dc | /convert.py | 47f7d78c53a21d89a8e24ea0245ae57015705dd7 | [] | no_license | nottrobin/discoursifier | e30396df2c13e9a9481149ac9f2f2cd6e820fddb | b803900b676ea56e9bced58044662c35f0616a42 | refs/heads/master | 2020-04-22T09:52:55.556816 | 2019-02-12T09:05:08 | 2019-02-12T09:05:08 | 144,270,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,682 | py | #! /usr/bin/env python3
from glob import glob
import markdown
import re
import json
filepaths = glob("**/*.md", recursive=True)
def convert_notifications(content):
"""
Convert old-style notifications:
!!! Note "title":
this is some note contents
Into new style:
[note="... | [
"robin@robinwinslow.co.uk"
] | robin@robinwinslow.co.uk |
0e1ad27c1f5a0f89ea84c3781e2cb007d792b4c6 | 5eb9aceb25bd85f441bef5ad6ff57167d4bd0e32 | /nram/main.py | e489afbf89ee7c2d7ab0bc2b78eeb1f7f9428d31 | [
"MIT"
] | permissive | mjvogelsong/tf-neural-ram | 8773b3eb661b36ce831899cb59299cda7cf72ead | abe64291ffc99ceb2b114d098ee62c7c7bc4b3fd | refs/heads/master | 2016-09-14T10:38:23.097910 | 2016-04-29T17:00:44 | 2016-04-29T17:00:44 | 57,399,790 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,996 | py | import os
import pprint
import tensorflow as tf
from nram import model
flags = tf.app.flags
flags.DEFINE_integer("epoch",
25,
"Epoch to train [25]")
flags.DEFINE_string("checkpoint_dir",
"ckpt",
"Directory name to save the checkpoints [checkpoint]")
flags.DEFINE_string("sample_dir",
"samples",
... | [
"mjvogelsong@gmail,com"
] | mjvogelsong@gmail,com |
6edc88c7e8ae003c15955b865efb9b7d5cd3ec2e | c13655452c8f8ba19e8d5e6fba9569e5e77cea85 | /lib/dataset/coco.py | faf979cc7b014125db326dfdbdf6cd322dc7eb67 | [] | no_license | ZZXin/SimDR | 30c8f43a498311d7f5f6687660ec42dfc954239a | 30845b85a139a1ca88ee9f80e9e11b8ae677a7ec | refs/heads/main | 2023-07-13T04:17:15.171167 | 2021-08-17T08:32:43 | 2021-08-17T08:32:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,612 | py | # # ------------------------------------------------------------------------------
# Copyright (c) Microsoft
# Licensed under the MIT License.
# Written by Bin Xiao (Bin.Xiao@microsoft.com)
# ------------------------------------------------------------------------------
from __future__ import absolute_import
from __fu... | [
"noreply@github.com"
] | noreply@github.com |
53fdbce3e511452d5876353915a1803d7daf8286 | 5a8ecdb9b9dcb368b906666c572c52b432320435 | /autoweb/WebPages/BasePage.py | 5c7ba1e8296abfb66089ddde343c8586a73b7e74 | [] | no_license | Life2short/python-webUI | 3bfb245d7955c77a4aebe541316261cf4b3e120c | 8b6ad91bb11ba2127b428187a37ed33caec64115 | refs/heads/master | 2020-03-11T09:17:34.847988 | 2018-04-24T11:12:12 | 2018-04-24T11:12:12 | 129,906,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,745 | py | from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains
from selenium.common.exceptions import StaleElementReferenceException
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.by... | [
"296278505@qq.com"
] | 296278505@qq.com |
aae3482d533ac325cf980331aa0c2e91802bc44c | 625daac7e73b98935f9fe93e647eb809b48b712e | /Arcade/The_Core/isSmooth.py | 3866fb0c2934491668610ab80dcd586c71aad324 | [] | no_license | aleksaa01/codefights-codesignal | 19b2d70779cc60f62511b6f88ae5d049451eac82 | a57a5589ab2c9d9580ef44900ea986c826b23051 | refs/heads/master | 2022-03-15T04:46:40.356440 | 2019-12-08T15:41:37 | 2019-12-08T15:41:37 | 112,034,380 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,226 | py | def isSmooth(arr):
first = arr[0]
last = arr[-1]
if len(arr) % 2 == 0:
middle = arr[len(arr) // 2 - 1] + arr[len(arr) // 2]
else:
middle = arr[len(arr) // 2]
return first == middle == last
"""
We define the middle of the array arr as follows:
if arr contains an odd number of el... | [
"some12curious@gmail.com"
] | some12curious@gmail.com |
270777b3ad04ea5fef8634c1b14d66f7f9a4776b | a63d91c5cec9be20c1c64142f08f95d001181091 | /week01/task02/spiders/maoyan/spiders/maoyan_movies.py | 171ccc673baba41d94991c031d86b3c23c5b2346 | [] | no_license | Z-Clark/Python001-class01 | 5b8d5e81d2ac22128e4b047e9b57f188d698c691 | 996f883c334c039e5f19f6c27a327c3e60b4e4f4 | refs/heads/master | 2022-12-31T12:27:48.297650 | 2020-10-21T02:36:40 | 2020-10-21T02:36:40 | 276,597,941 | 0 | 0 | null | 2020-07-02T08:58:25 | 2020-07-02T08:58:25 | null | UTF-8 | Python | false | false | 2,060 | py | import scrapy
from maoyan.items import MaoyanItem
from scrapy.selector import Selector
class MaoyanSpider(scrapy.Spider):
# 定义爬虫名称
name = 'maoyan_movies'
allowed_domains = ['maoyan.com']
# 起始URL列表
start_urls = ['https://maoyan.com/films?showType=3']
# def parse(self, response):
# pass... | [
"909272767@qq.com"
] | 909272767@qq.com |
7d722382e8bfef6063bb55f71c7f2b41b3b8d887 | 1ea832f24acf39c7b393313ff85c5a1ce80a7d44 | /tests/test_models/test_place.py | 403cce396b95318b93f9e830e56fa9448ad1152a | [] | no_license | Zararthustra/AirBnB_clone | 5d0919a866db69d544318e87f5e6c8e3ad05377e | 24dcadc7f0fb749bd2c51feb52730daef134a51d | refs/heads/main | 2023-03-11T14:33:59.093226 | 2021-02-27T01:07:39 | 2021-02-27T01:07:39 | 337,650,102 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,116 | py | #!/usr/bin/python3
"""
Place unittest
"""
import unittest
from models.place import Place
from models.base_model import BaseModel
class TestUser(unittest.TestCase):
"""
Place unittest
"""
def test_class(self):
"""
test if the object is a type of Place
"""
obj = Place(... | [
"gautier.chuinard@lilo.org"
] | gautier.chuinard@lilo.org |
2d067145c260ae964714f36774be0525fa8c1531 | 5b6c50f36a935742fe03e302d614e75c73ef9f1a | /ref/4-5 位运算符的使用演示.py | d05a2b1c3aa502c791f0a2238797f8c9cd4e974d | [] | no_license | wssunn/Python-Language | 0efa20f88b5b754032e2a5dbffcf0f8739948ec0 | c51f76ab1c26299b8f2f829c4a43877c0b327f68 | refs/heads/master | 2022-07-16T13:30:07.669589 | 2020-05-19T14:07:18 | 2020-05-19T14:07:18 | 261,715,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Mar 14 16:22:19 2018
@info:《python带我起飞——入门、进阶、商业实战》配套代码
@author: 代码医生 qq群:274962708,公众号:xiangyuejiqiren
@blog:http://blog.csdn.net/lijin6249
@ex:推荐阅读《深度学习之TensorFlow入门、原理与进阶实战》
"""
a=1
b=3
print(a&b) #按位与,输出:True
print(a|b) #按位或,输... | [
"sunning@sunningdeMacBook-Pro.local"
] | sunning@sunningdeMacBook-Pro.local |
d4a9675e970838a73d215357588ced6a9c29368a | 8e09c8ad0174d6c8ef9cc0443edc145268f6f9ab | /prova_1_cm.py | ddff7c74535b6d860da13dd7a78dfa57bd9d97c1 | [] | no_license | JoaoPedrodeAraujoS/Jo-o_Pedro_e_Tarc-sio_Prova1_Cinem-tica_dos_Mecanismos | 80a89b7970f32ac3adb0d496f4882b0a185aceed | 848f026488d508a9ec324c8c7e8bee4d5e863985 | refs/heads/main | 2023-06-22T17:24:48.773245 | 2021-07-15T04:45:38 | 2021-07-15T04:45:38 | 386,163,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,389 | py | # -*- coding: utf-8 -*-
"""Prova_1_CM.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1rBiV77qkgMdrnrIKJtSNr7wMCB4eSO0i
"""
import numpy as np
from numpy import pi, sin, cos, sqrt
from sympy import *
from rich.console import Console
s=True
while... | [
"joaopedroaraujo1215@hotmail.com"
] | joaopedroaraujo1215@hotmail.com |
e121a01f788139af3194361adf0a606a9a82e855 | 90996e6b9be1d3c075dd60b50979aa686c4c1e95 | /product/migrations/0008_auto_20191027_1133.py | 67e9b298af893029b90478b7bf479a01810da41f | [] | no_license | X-Gen1913/Shopping-Cart | 8e532b0ac226c913cc8b4fddaa41dcf609d90df7 | 48733de9c3b1af61aa321a953beeb81a3d0b9903 | refs/heads/master | 2022-08-22T09:42:29.445921 | 2020-05-27T13:58:35 | 2020-05-27T13:58:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 755 | py | # Generated by Django 2.2.6 on 2019-10-27 11:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('product', '0007_auto_20191027_1018'),
]
operations = [
migrations.AddField(
model_name='order',
name='is_ordered',
... | [
"nehalsuperdude@gmail.com"
] | nehalsuperdude@gmail.com |
dc9d7bf8760b40a3020bd930fe03d6d4daeaa2fa | 50aefc9656bb8e4136ff51f9366e0a6fe178f7f5 | /python/examples/onnx/onnx2lbann.py | f73f341e6c0f64358232f8378060a49ad98ba6c1 | [
"Apache-2.0"
] | permissive | JaeseungYeom/lbann | 76f3875d4bb3e7d071d3c044a34f4721348e9c0a | e9a31b509d22fe4e53b03cf43de829b7eb6f7dd8 | refs/heads/develop | 2022-11-06T00:10:45.723233 | 2022-05-02T22:41:02 | 2022-05-02T22:41:02 | 118,492,507 | 0 | 0 | NOASSERTION | 2019-02-11T17:55:43 | 2018-01-22T17:44:13 | C++ | UTF-8 | Python | false | false | 3,833 | py | #!/usr/bin/env python3
"""
Convert an ONNX model to a LBANN model
Run "./onnx2lbann.py --help" for more details.
"""
import argparse
import onnx
import google.protobuf.text_format as txtf
import lbann.onnx.o2l
from lbann.lbann_proto import lbann_pb2
dataLayerName = "image"
labelLayerName = "label"
probLayerName = "... | [
"17844184+oyamay@users.noreply.github.com"
] | 17844184+oyamay@users.noreply.github.com |
ef69fe98e99a419fe0fd3402ebe3b5fe20148913 | 7acaab9a153db7db93f8db15e30d21509c8a8e65 | /Django/django-rest-framework/admin_users/addresses/views.py | 6144bb8d0836c451e9065b40887a301adde672a8 | [] | no_license | MDellag/Python | d2d52bcebf2d54f9debd6098bbdbc6cbf3928150 | 0eb35ca7801eec21f9a04c0f45517855bb5b6896 | refs/heads/master | 2022-07-02T06:49:38.605673 | 2022-06-18T17:51:33 | 2022-06-18T17:51:33 | 235,699,204 | 0 | 0 | null | 2022-02-22T22:51:22 | 2020-01-23T00:59:00 | Python | UTF-8 | Python | false | false | 444 | py | from rest_framework import viewsets, permissions
from admin_users.addresses.models import Address
from admin_users.addresses.serializer import AddressSerializer
# Create your views here.
class AddressViewSet(viewsets.ModelViewSet):
"""
API endpoint that allows users to be viewed or edited.
"""
query... | [
"mauricio@globalmeaning.com"
] | mauricio@globalmeaning.com |
55ba25959b5ce1e24d211f4c88c0cc10b9533070 | 0bbdcd6b840b9a0d5d86dad55b81a740465a1829 | /b2c_app/view/payment.py | 5a1371586eabf5308c6ba60aa58e3e7e016b6861 | [] | no_license | adityasharma263/stay_b2c | b43f1f59e1f512f3c355e926ca346496d5d7e08e | cc1d82057082280c280ce7779ce0356b5338308a | refs/heads/master | 2022-07-08T02:23:21.345141 | 2020-01-30T00:32:50 | 2020-01-30T00:32:50 | 202,761,638 | 0 | 0 | null | 2022-06-21T22:32:07 | 2019-08-16T16:24:02 | HTML | UTF-8 | Python | false | false | 2,978 | py | import logging, traceback
import hashlib
import requests
import urllib
import json
from b2c_app import app
from flask import render_template, request, make_response, jsonify, abort, redirect, session, url_for
from random import randint
@app.route('/payment', methods=['POST'])
def payment():
if request.method == '... | [
"aditya.sharma263@gmail.com"
] | aditya.sharma263@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.