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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e64ca823abfcbd82614d6ad46755ce122f1083e3 | 20cc0400066673de3eb06e6fa0d533673aee60fb | /csmapi.py | 72b427bf8990a79233ed284b2988f35ad97283b9 | [] | no_license | IoTtalk/Map_origin | b0314e28c9434a70188fc85a0ad8a58c68c18836 | 9b25d38897dd03fbef81ec99f838685ab26fdd29 | refs/heads/master | 2022-10-31T07:18:50.787275 | 2018-12-17T10:41:10 | 2018-12-17T10:41:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,870 | py | import requests
ENDPOINT = None
TIMEOUT=10
IoTtalk = requests.Session()
passwordKey = None
class CSMError(Exception):
pass
def register(mac_addr, profile, UsingSession=IoTtalk):
global passwordKey
r = UsingSession.post(
ENDPOINT + '/' + mac_addr,
json={'profile': profile}, timeout=TIMEOUT... | [
"masterchen.06g@g2.nctu.edu.tw"
] | masterchen.06g@g2.nctu.edu.tw |
96626bb34109b8ab51a91a8421462ed420d9af83 | 4723613aaf8cc5ecb7c94536586615c83a9f63ac | /equations.py | 1a2c980f95ab5cfeeed39be8475daf48247206b0 | [] | no_license | max123522/targil_1 | fe0f696119a74325a17252826e7e9d9347fa28dc | 6c588f55198b22976e549151879f3e0895a991ee | refs/heads/main | 2023-03-24T03:16:06.342865 | 2021-03-16T19:44:44 | 2021-03-16T19:44:44 | 348,471,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,227 | py |
def power(x:float,n:float):
machpela = 1.0
for i in range(int(n)):
machpela = machpela * x
return machpela
def azeret(n):
result3=1.0
for i in range(1,int(n)+1):
result3=result3 * i
return result3
def exponent(marih:float) -> float:
result2=0.0
for i in range(0,... | [
"maxkap1205@gmail.com"
] | maxkap1205@gmail.com |
d66f5181446f5349454f7327d80031e5ad23c868 | f859de034c282fd272893887c0aa21c9f8f5bad6 | /test/test_date_time_helper.py | 17b96d7ed85a364f1178795b5663a21674b74804 | [
"Apache-2.0"
] | permissive | Scandinaf/ll_free | cd1cb1a812c0c6b400e266dc843872a59388fa83 | 7d35dce5955f11e4af52400f961c76c9904c2f05 | refs/heads/master | 2020-04-10T19:29:27.671602 | 2019-01-12T05:21:18 | 2019-01-12T05:21:18 | 161,236,943 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 982 | py | import datetime
from utils.helper import DateTimeHelper
year = 2020
month = 5
day = 17
hour = 12
minute = 45
helper = DateTimeHelper()
helper.current_date_time = datetime.datetime(year=year, month=month, day=day, hour=hour, minute=minute)
def test_subtract_months():
count = 1
result = helper.subtract_months... | [
"sergeyqwertyborovskiy@gmail.com"
] | sergeyqwertyborovskiy@gmail.com |
1395fdc0e17b6a0304769eba37eb9d6e6ee9afb4 | 018e0e9858249e0c6ed20ee74e37b9f732d3356a | /core_oop.py | 21c37089bf9e3492cfd40945d0d55e6f4b532e1b | [] | no_license | watersb1323/Squash | e6874c2480038bbc07700e3e02ffc157f329dadf | 06cfb02b5c130599a383a882482daf640d45d662 | refs/heads/master | 2020-05-24T21:41:20.716094 | 2018-02-26T23:06:15 | 2018-02-26T23:06:15 | 84,883,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,660 | py | import pandas as pd
class Player:
''' Player as defined by squash information
'''
numPlayers = 0
def __init__(self, name, PF=0, PA=0):
self.name = name
Player.numPlayers += 1
self.id = Player.numPlayers
self.PF = PF
self.PA = PA
def get_name(self):
... | [
"watersb1323@gmail.com"
] | watersb1323@gmail.com |
0627bf1ede15181473245fadf4e2ba06f3291f58 | abab0d762aa9968c344d47e0634a20d65883d106 | /mnist_board_2.py | a08f8bf5ec939b470b127bf5a78ebbb29e7b4ea8 | [] | no_license | wangaolong/tensorboard | f670db0d1881e245cc0633b80fd6495e335afb73 | 73974aca258078cd0952e098f942c8d08429ede6 | refs/heads/master | 2020-05-03T03:19:27.718774 | 2019-03-29T11:39:33 | 2019-03-29T11:39:33 | 178,394,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,065 | py | import os
import tensorflow as tf
import urllib
LOGDIR = './mnist/'
mnist = tf.contrib.learn.datasets.mnist.read_data_sets(train_dir=LOGDIR + 'data', one_hot=True)
def conv_layer(input, size_in, size_out, name="conv"):
with tf.name_scope(name):
w = tf.Variable(tf.truncated_normal([5, 5, size_... | [
"noreply@github.com"
] | wangaolong.noreply@github.com |
8c01cd644e3947c8c131e6da091a882cafdb17c4 | 3c4450ccd471f7720ef32cce3b5f5221981547ec | /openapi_client/models/instance_status.py | 7687a269856f24327f99f91d990cc8f7bc90e5ef | [] | no_license | ContatoGrupoOptimus/python-client | eb21d88a5725294609d589474e09463ab659d45b | f84ee64f741c096aadefc1088d1da88e97663fb1 | refs/heads/master | 2022-12-14T10:57:45.041040 | 2020-09-10T21:28:19 | 2020-09-10T21:28:19 | 294,526,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,387 | py | # coding: utf-8
"""
Chat API SDK
The SDK allows you to receive and send messages through your WhatsApp account. [Sign up now](https://app.chat-api.com/) The Chat API is based on the WhatsApp WEB protocol and excludes the ban both when using libraries from mgp25 and the like. Despite this, your account can be... | [
"71100986+ContatoGrupoOptimus@users.noreply.github.com"
] | 71100986+ContatoGrupoOptimus@users.noreply.github.com |
a0626e7b3facbb1cfe1a1f7975b5c52787b70e78 | 21eb191e7ba0c6706c3858c0499e2cb659758b61 | /blackjack.py | 69fa84542b8c81cb2dbbfeef96bc81f89a93bf1e | [] | no_license | fortenforge/pwnable.kr | 0f4bb4369c3b63e10762825771f83c9432c787b6 | bf32644ece16e391b9d3b95495e80ac22a9a1a59 | refs/heads/master | 2021-03-12T19:32:05.854490 | 2017-11-14T22:56:57 | 2017-11-14T22:56:57 | 102,881,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | from pwn import *
# input
host = 'pwnable.kr'
port = 9009
# Notes
# * Just bet a very large negative amount and then lose.
def attack():
s = remote(host, port)
print s.recv()
s.sendline('Y')
print s.recv()
s.sendline('1')
print s.recv()
s.sendline('-1000000')
print s.recv()
for i in range(5):
... | [
"sridhar.rahul@gmail.com"
] | sridhar.rahul@gmail.com |
53f875bb56b97a81f14c3124ae6390204fd8cef4 | 6f041cfcadc66206a00eca5eafb1378fe261d2dd | /8x26tools/tools/ramdump-parser/linux_list.py | f7168beb4093aa79089384756f945a3d2469847f | [] | no_license | kalmuthu/slos | bf857aaa80c33f0a59361614702740c46fa20d01 | 7516632037f788b00e1137619b88ecca1ac66fa3 | refs/heads/master | 2021-01-18T03:38:55.509889 | 2017-02-26T15:24:34 | 2017-02-26T15:24:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,328 | py | # Copyright (c) 2013, The Linux Foundation. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 and
# only version 2 as published by the Free Software Foundation.
#
# This program is distributed in the hope that i... | [
"chungae9ri@gmail.com"
] | chungae9ri@gmail.com |
556621b3bffb8ae2724e3701c79e7cadc3ba4758 | 746343ec01702270ddb8f101dc42f214bcec3ee8 | /moveit_fake_controller_manager/conf.py | 19a2de46bba656fcd8552277f50adb863930453e | [] | no_license | ros-planning/moveit_plugins | 162829d6dc430e372e1dc80f83ed7f87d01ddd3a | cf0ddc86cf843688c8d172cf233a5d0e63e7f9de | refs/heads/kinetic-devel | 2023-08-30T13:58:57.844330 | 2016-08-05T09:49:31 | 2016-08-05T09:49:31 | 10,380,404 | 13 | 12 | null | 2016-08-25T19:07:29 | 2013-05-30T10:20:05 | C++ | UTF-8 | Python | false | false | 603 | py | import sys, os
extensions = [ 'sphinx.ext.extlinks' ]
# The master toctree document.
master_doc = 'doc/tutorial'
# The suffix of source filenames.
source_suffix = '.rst'
project = u'moveit_rviz_plugin_tutorial'
copyright = u'2016, Bielefeld University'
# If true, sectionauthor and moduleauthor directives will be ... | [
"me@v4hn.de"
] | me@v4hn.de |
5168e1c2d9374e94ddd524960cd3e1565aa75bfa | 1ce65c3c08691cc3d0733b7b918bfce0a1683ea6 | /testFunction2.py | a99f1c0cf41501fdaa9782f6a617030692f881fd | [] | no_license | lf-xxxyyy/lfpy | db4d521b43d88d129eb2612c17559dcdf5056546 | 30d3ad7534923a2d78efeb2d73c494fc24cb879f | refs/heads/master | 2020-06-12T23:45:16.630034 | 2017-01-16T14:10:43 | 2017-01-16T14:10:43 | 75,477,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | from testFunction import my_abs
from testFunction import my_hello
from testFunction import power
from testFunction import enroll
from testFunction import add_end
from testFunction import calc
print(my_hello('tony'))
print (my_abs(100))
print(my_abs(-200))
print (power(14))
print(power(10, 4))
enroll('tony', "mal... | [
"liufeng.lf@aliyun.com"
] | liufeng.lf@aliyun.com |
e53c94360c91db293573eac3213b22e8a4f52306 | f79904b7e16768ef2360ae9ca3f75519d4c4c5d9 | /std_deviation.py | d4983c366f4658ec66a94e545a3119440f048967 | [] | no_license | Yash27112006/C105-std_deviation | 7deaeea48a76ef464a38df7f2e657730cc2c344a | e66fec6d544161b77c134ec3d26a98663eefb6d1 | refs/heads/main | 2023-04-15T00:51:16.084281 | 2021-04-19T20:59:59 | 2021-04-19T20:59:59 | 359,596,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 622 | py | import csv
import math
with open ('data.csv', newline="") as f:
reader = csv.reader(f)
file_data = list(reader)
data = file_data[0]
def mean(data):
total = 0
total_entries = len(data)
for x in data:
total+=int(x)
mean = total/total_entries
return mean
squared... | [
"noreply@github.com"
] | Yash27112006.noreply@github.com |
59d1c6d9a4904b9ded3a33877749c4c95b801d4e | 5804abbaa9c54589284a2c14d0071b8348f14f7b | /Python/Cents.py | 4e30141949d687d65ddc32153cb73ac7ac182a0c | [] | no_license | steffanc/Practice | 76f138f849179cf544b567b0d9824b3f86a57122 | 7fb2c47804908ee3d3211482d126dc42eeb3b17e | refs/heads/master | 2020-06-07T04:02:17.895262 | 2020-06-06T21:17:46 | 2020-06-06T21:17:46 | 3,214,914 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,034 | py | # Given an input number of cents, print all combinations of change that
# would total the number of cents
def cents(target):
doCents(target, [], 0, 4)
def doCents(target, output, current, level):
if current == target:
print output
else:
if current+100 <= target and level >= 4:
... | [
"schartrand@twitter.com"
] | schartrand@twitter.com |
cf79b0c7467ad594ae0411f8467196f72af51882 | 5449037cb41fc12eaa30cdf9b4dd9b5ad536848a | /PyBank/main.py | b71b8f6b0d099afe9e0bd751770031264b89ac25 | [] | no_license | dlg410/Python-challenge | 61cf873e5d0f8d43404dd614fe70e808b509f348 | af5eb694a21bba6a5fa47c9ef0059a4ad3609aff | refs/heads/master | 2022-12-17T02:32:42.456055 | 2020-09-21T17:28:04 | 2020-09-21T17:28:04 | 265,031,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,679 | py | #Import Dependencies
import os
import csv
#Data File Name and Path
budget_path = os.path.join("Resources","budget_data.csv")
with open(budget_path) as csvfile:
csvreader = csv.reader(csvfile, delimiter= ',')
print(csvreader)
#Read Header Row
csv_header = next(csvreader)
# Variable
month = []... | [
"noreply@github.com"
] | dlg410.noreply@github.com |
87ee3ca0437c88123ea9d904ca36e0f460b1e91b | 54c657c96dcfb7f5f8dd32e24c0198312e438600 | /parlai/agents/fairseq/fairseq_py/fairseq/criterions/fairseq_criterion.py | bed7efe1be88eb9f019dd6706fb320c37e91f688 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown"
] | permissive | urikz/ParlAI | 09ab2024cd623327d0cc7c2fd3fdc3177b00a0e9 | 2813e9fb10562027ffb6c69e05fb1a8127b7141a | refs/heads/master | 2021-04-26T23:54:36.024365 | 2018-04-09T15:19:43 | 2018-05-21T22:42:00 | 123,878,487 | 2 | 1 | BSD-3-Clause | 2018-03-08T20:44:39 | 2018-03-05T07:02:20 | Python | UTF-8 | Python | false | false | 1,177 | py | # Copyright (c) 2017-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the license found in the LICENSE file in
# the root directory of this source tree. An additional grant of patent rights
# can be found in the PATENTS file in the same directory.
#
from torch.nn.modules.loss impor... | [
"kshuster@fb.com"
] | kshuster@fb.com |
4f0507e424a507f5a01bb9d4424aa4840f5b1127 | 0c4d93cfc1d3f35152a8aaa3e20b88c87892e0ef | /Functions/linkCollector.py | 292b6e5af17a6d7dd4d1d3d19f37c06b9e32971d | [] | no_license | AkibSadmanee/Mailfinder | fddd9b8a05a598d8eb7a8a00b6a9f0eafcb9e57d | 1744290ddbbbeccdd99f9069520c4887b74c819f | refs/heads/master | 2020-07-10T04:21:01.150509 | 2020-06-22T18:36:02 | 2020-06-22T18:36:02 | 204,166,102 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | def getLinks(respond,printProgressBar):
from bs4 import BeautifulSoup
soup = BeautifulSoup(respond, 'lxml')
links = soup.select('.rc .r a')
link_storage = []
pc = 0
for link in links:
pc += 1
printProgressBar(pc,len(links),"Collecting Links from google", "Completed")
... | [
"akibsadmanee@gmail.com"
] | akibsadmanee@gmail.com |
2ff03a3d07da824d69de0a7ba661cbf423b86218 | 7fab3415bae4c70d462c1a43cead5b0aabf67489 | /Research/Dijkstra.py | cd42ca3ffc1bcc6a1f2969fedf31b4701e409acd | [] | no_license | Alex-D-G/R2D2-Research | a495e32c198da6fc25392a45bc3a6f9a3ad7ca81 | 1f154aad22d8753cb824b50672e8d186cf6f277e | refs/heads/main | 2023-05-13T01:47:54.177485 | 2021-05-31T08:35:43 | 2021-05-31T08:35:43 | 372,437,869 | 0 | 0 | null | 2021-05-31T08:36:04 | 2021-05-31T08:36:04 | null | UTF-8 | Python | false | false | 4,630 | py | from matplotlib import pyplot as plt
import numpy as np
import copy
import time
import statistics as stats
# Een zeer generieke manier om een graaf de implementeren is er
# daarwerkelijk twee sets van te maken op basis van twee classes:
class Vertex:
def __init__(self, identifier, data_):
self.id = identi... | [
"noreply@github.com"
] | Alex-D-G.noreply@github.com |
1c738ef73bdc0768137d85581d244067c1e3ef73 | f9d7036649ff5d64660c33bc295ddf97e316d082 | /blog/settings.py | b9c6c73355a9da6b8c57b7e16e0b4b08e72fe807 | [] | no_license | jocsakesley/blog-jocsa-kesley | 1ebd6c11ad45c98a6b396ddfe58675da5cd113ec | d106a0870636542c08ee7791d971d77a948b3e0a | refs/heads/main | 2023-03-16T00:08:23.688040 | 2021-03-12T15:36:57 | 2021-03-12T15:36:57 | 322,912,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,687 | py | """
Django settings for blog project.
Generated by 'django-admin startproject' using Django 3.1.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
import os
from p... | [
"jocsadm@gmail.com"
] | jocsadm@gmail.com |
63071d56bf62b4aef145af25d7b33009c19fb9e7 | 58359b8cc618c20f8561779a9e773308befa10b7 | /show_PT.py | 8aad340e343f90adeb3a8502e48666db956183d0 | [] | no_license | Cho-sei/Mystudy | 2cdc4e7c0314148444ce7bc978be85e2d409f445 | d61b82ba3f44f402ff1237fa4b19e9c4b147a45b | refs/heads/master | 2022-03-31T21:57:48.681259 | 2019-12-17T04:20:16 | 2019-12-17T04:20:16 | 196,204,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 616 | py | import pandas as pd
import matplotlib.pyplot as plt
import sys
data = pd.read_csv('result/' + sys.argv[1] + '_PT.csv')
plt.subplot(1, 2, 1)
pre = data[(data.timing == 'pre') & (data.hand =='left')].PTime.mean()
post = data[(data.timing == 'post') & (data.hand =='left')].PTime.mean()
plt.plot(['pre', 'post'], [0, post... | [
"knct0420@gmail.com"
] | knct0420@gmail.com |
94320151a2602c398d57f65c3e6993dc7b9f706e | 11099a71c685f04a207cdd119031d20ba0e7e670 | /test.py | 57ecb2f07030055d6177ec934a3a338c97a0939c | [] | no_license | zeniconcombres/exercises | d4a0ea8ae82f9b013de0b5b6e47200882566fc7d | ee5c719ea201be34f2272d45211644d72038e7e7 | refs/heads/master | 2023-04-19T00:26:34.595950 | 2021-03-13T06:23:25 | 2021-03-13T06:23:25 | 347,286,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | test = str(input("What is your name?\n"))
print("Hello %s!" % test)
greeting = str(input("How are you?\n")) | [
"email.me.inez@gmail.com"
] | email.me.inez@gmail.com |
68844cb9f643ffa4e036fe891ec3864aae7070f0 | bb898753e0de090db0614bad3ff5d6b8b4050fda | /week_2_if_n_while/reverse.py | c6bd409b3e8be32f78bd43fc95ccc5a798e66a29 | [] | no_license | MRS88/python_basics | 4c2fb7fffed3542b0a4739934eb771f49be720e4 | 20995e267c67077e4b78ebd05b4ddd4506295c59 | refs/heads/master | 2023-04-03T18:48:37.524741 | 2021-03-31T18:35:32 | 2021-03-31T18:35:32 | 347,826,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | '''Переставьте цифры числа в обратном порядке.'''
n = input()
print(int(n[::-1]))
| [
"salavat.mr@gmail.com"
] | salavat.mr@gmail.com |
a396adede5315997c758c190ed6df97b6a084566 | 37c53a0d1ab8395c1a0ebf95a1368ca131d1dd81 | /editor.py | 697f43320c4d3afe267eb95d4a4a9f299789111a | [
"Apache-2.0"
] | permissive | JonathanQuang/Wifi-Basher-Windows10 | b871ebf1ee704b44dd4843fff0dfead31a404142 | 951f0f4881ae1ddd4595ea5b9d9b16926b7029d4 | refs/heads/master | 2021-01-24T16:53:34.319292 | 2018-03-28T05:13:42 | 2018-03-28T05:13:42 | 123,218,643 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,555 | py |
xmlFileString = "INSERT XML FILE NAME HERE"
charset="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ123456789-_"
f = open("pingResult.txt","r")
pingResultText=f.read()
#print pingResultText
f.close()
def isPingBroken():
if pingResultText.find("could not find") > 0:
#print "ping Failed"
modifyXML()
prin... | [
"jquang@stuy.edu"
] | jquang@stuy.edu |
c5ae206215093773715894fb6909c2cb1019ce6a | 221729e86d3cef6af170bd969deddceabbf6c16f | /steam_gsi/events.py | 995b92b4741922962b788a92f3fc0dea74361078 | [] | no_license | Natsku123/steam-gsi.py | dbc53c3bafb19256ed21976e52cf121d2cd85260 | f6f2cebb2ce4a33c2deed6bfebaba682ca9462c2 | refs/heads/main | 2023-05-31T16:31:24.557959 | 2021-06-30T12:53:50 | 2021-06-30T12:53:50 | 378,603,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64 | py | from .games import Base
def event_trigger(gs: Base):
pass
| [
"max@meckl.in"
] | max@meckl.in |
843331de4602456e0bca3c39c6ddbf5c197b6d96 | ee7631bce162099cbbca0b7aecda0f3ffb3d31e8 | /www/region/models.py | 010e44dc1f7bcdd7ff9d73763e673279cd79d2dd | [] | no_license | poffey21/inventory | b0829b0dacd93e4248ba22efa8b6fa912f3cd76e | e65b9adf99618a1a25accd97781ce874dcb84bda | refs/heads/master | 2020-07-30T16:22:08.946036 | 2016-11-16T04:24:09 | 2016-11-16T04:24:09 | 73,626,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | from __future__ import unicode_literals
from django.db import models
# Create your models here.
class City(models.Model):
""" city for stores and taxes """
class Tax(models.Model):
""" percentage by city """
| [
"poffey21@gmail.com"
] | poffey21@gmail.com |
cbfe59adc4ccebcfac17c721ef9cd51d45ee2c74 | 68c90ef853ea415a3c43ca10ebc9c23656907e10 | /list/threeSumClosest.py | 143151efa28bb9b18de5a53e1533e3247e79909c | [] | no_license | NJ-zero/LeetCode_Answer | 73889f46f4cd0c08f60a1e556c29114495062b2b | 1040b5dbbe509abe42df848bc34dd1626d7a05fb | refs/heads/master | 2021-08-06T04:33:39.890568 | 2020-04-14T09:59:39 | 2020-04-14T09:59:39 | 145,671,777 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,543 | py | # coding=utf-8
# Time: 2019-11-18-17:46
# Author: dongshichao
'''
16. 最接近的三数之和
给定一个包括 n 个整数的数组 nums 和 一个目标值 target。
找出 nums 中的三个整数,使得它们的和与 target 最接近。
返回这三个数的和。假定每组输入只存在唯一答案。
例如,给定数组 nums = [-1,2,1,-4], 和 target = 1.
与 target 最接近的三个数的和为 2. (-1 + 2 + 1 = 2).
思路:
先排序 后 双指针
固定的ans = 0 + 1 +2
遍历数组,i + i+1 + r
如果三个和大于... | [
"dongshichao@qutoutiao.net"
] | dongshichao@qutoutiao.net |
5eae4b091b6eef83c71055a0e4d6c073a7746749 | 34c6384d4137003317a5c3ac9d3ef34b831bbf44 | /code/qrcode.py | af5d7b57e7cc69890ca18983ad567125859ede63 | [] | no_license | brekooname/License-Detection-using-QR-Code | c59fe35967f48335d8c138738b1c05ef1ca72930 | 9a7eedaa903a89030127d3ea5c5e16625307ad82 | refs/heads/master | 2023-05-01T04:29:45.884905 | 2021-05-15T12:54:33 | 2021-05-15T12:54:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,117 | py | import cv2
import numpy as np
from pyzbar.pyzbar import decode
from tabulate import tabulate
import csv
def data_list():
myDataList = list()
with open('hello.csv', 'r', newline='') as cs:
reader = csv.DictReader(cs)
for row in reader:
myDataList.append(row['Name'])
return m... | [
"hms@290926.github.com"
] | hms@290926.github.com |
edff97ca61c1b4e2b30b5dc729f5248998193855 | 9a320ffbd992d09c7767221339153af1494c72f4 | /ecommerce/lib/python3.6/hashlib.py | e43cedba2aec0dc40a199d1c255c2ee174e8528b | [] | no_license | carlosblancosierra/ecommerce-cfe | 520c7baf2a10c7e0a83459de4ff31fedbec983e4 | 9538034ad0e39dae226ebc350b38fbe20ffe4c18 | refs/heads/master | 2022-12-18T16:45:17.645842 | 2018-06-14T01:29:03 | 2018-06-14T01:29:03 | 122,151,270 | 0 | 0 | null | 2022-12-08T00:53:45 | 2018-02-20T03:33:13 | Python | UTF-8 | Python | false | false | 54 | py | /Users/carlosblanco/anaconda3/lib/python3.6/hashlib.py | [
"carlosblancosierra@gmail.com"
] | carlosblancosierra@gmail.com |
0e0b02856e4b9275bbad24a7461c2c793b231d87 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_208/81.py | 5eb844629edbf0f9bad243963bf552da90da0e7c | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | for t in range(int(input())):
n, q = (int(i) for i in input().split())
hs = [[int(i) for i in input().split()] for j in range(n)]
ds = [[int(i) for i in input().split()][j + 1] for j in range(n - 1)]
input()
input()
tc = [0] * n
tc[n - 1] = 0
for i in range(n - 2, -1, -1):
min = -1
sd = 0
for j in range(1... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
0dff6a1e70b3e0c2cc329b7b201add7b52e52901 | f814b8069fe2f5fe14fe5767db68c2385e504cd1 | /jobsProject/jobsProject/urls.py | 5a5a3c29f565815c55d6bac0efae58ba00b62f0a | [] | no_license | sohaibmansuri/jobs-project | adb2184447db9d2a3274e52829eabe7fddf30f7f | e384aede5646b542cb37dfc3c8d424d6feae4387 | refs/heads/master | 2023-03-20T07:05:17.639843 | 2021-03-22T10:11:47 | 2021-03-22T10:11:47 | 350,303,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 975 | py | """jobsProject URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Clas... | [
"sohaibmansuri2@gmail.com"
] | sohaibmansuri2@gmail.com |
47a785f3921367e2e31811da2a583af9fc3f97f4 | bfdbdaec2d61df45098f51dbb55438d67f9767a3 | /states/StateAddRegionalAcc.py | dd29261cc5c7a5c09d9fab198f17b40816cbd0e4 | [] | no_license | doroshenko-online/autobot | 46cc65b070eb86d3e26e63ff29f2862f4ae8724f | 48fa1fa224c6b537e364c8d78fb16ac05960aa63 | refs/heads/main | 2023-06-25T06:17:56.788216 | 2021-07-25T10:05:38 | 2021-07-25T10:05:38 | 382,090,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | from aiogram.dispatcher.filters.state import State, StatesGroup
class AddRegionalAcc(StatesGroup):
wait_for_chat_id = State() | [
"doroshenko@tutanota.com"
] | doroshenko@tutanota.com |
cc0cf070c1d0508310505b023dd2e2a65e030828 | 33a2ef2e0d078656afe2e79ddb941778a5439aa0 | /rent_a_dent_app/rent_a_dent/views.py | aedbcbd23048287aef3f789ff52aa1f04c64a037 | [] | no_license | leszekemil/rent_a_dent-rekrutacja | 8b0b02b0e4f811f740147a5aed1894be12f0a01a | eec4a7075f96941fbb70fd89dfd0e0f243cbc3a1 | refs/heads/master | 2023-02-09T05:47:32.034639 | 2021-01-04T10:34:04 | 2021-01-04T10:34:04 | 326,598,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,155 | py | from django.contrib.auth.mixins import PermissionRequiredMixin, LoginRequiredMixin
from django.shortcuts import render
from django.views import View
from django.shortcuts import redirect
from django.views.generic import UpdateView, DeleteView
from rest_framework import generics
from rent_a_dent.models import Visit
fro... | [
"nortal@gmail.com"
] | nortal@gmail.com |
203559691a9f96446d035b939909c16743b23ade | 1bc1727c17e237c1badafc0233115d5001ff5274 | /audioset/vggish_slim.py | fba0feb693aca9aa24c55ee976ee1ff4eb8d992f | [
"Apache-2.0"
] | permissive | sshleifer/object_detection_kitti | 09b0ae37608f31491f79c537916cea8fd446f698 | 7f8c93c96a7ab5e150f217b7c369bec9d4b8bb81 | refs/heads/master | 2022-10-29T19:13:21.657012 | 2019-05-09T06:11:52 | 2019-05-09T06:11:52 | 103,348,300 | 35 | 18 | Apache-2.0 | 2022-10-26T09:39:39 | 2017-09-13T03:23:16 | Python | UTF-8 | Python | false | false | 5,773 | py | # Copyright 2017 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 applicab... | [
"plakal@google.com"
] | plakal@google.com |
6c7d033f0a21fcd56c5a711729f9b0b772a27e13 | 6d7e8a61a85baf858805c1ae47328a27b5bbb4bd | /send_notifs_cron.py | 21a6f9d84b173a26d8e7d4a079ba3f5e9144f2ca | [] | no_license | shannon-heh/TigerSnatch | 8c8f681d7e1d27497cc685b6e560b24b9d732462 | b91415db1035b4709e605336c9221414d565ae6d | refs/heads/main | 2023-06-02T10:54:17.707749 | 2021-06-27T05:41:46 | 2021-06-27T05:41:46 | 341,774,248 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | # ----------------------------------------------------------------------
# send_notifs_cron.py
# Manages regular execution of the email notification script using a
# cron wrapper. Disable/enable using admin panel or _set_cron_status.py.
#
# Set execution interval in config: NOTIFS_INTERVAL_SECS
# ------------------... | [
"nicholaspad@gmail.com"
] | nicholaspad@gmail.com |
93b77f70dfda6c460a897355c421e575f087f2c7 | d1232b3befce740f9c0a8bfb2834bb05f1094999 | /article/migrations/0003_auto_20170715_1140.py | 38319b43e5de87ac6877c2983d5a9a6ea0b8f3ff | [] | no_license | Samarth08/first | 8a31eb24979172d49a584cb7bb9e25f210bd6107 | 13b73c09c95ea20d64bada9e41251afb0323c7dd | refs/heads/master | 2021-01-23T09:10:58.488652 | 2017-09-06T05:11:43 | 2017-09-06T05:11:43 | 102,564,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2017-07-15 06:10
from __future__ import unicode_literals
import django.core.files.storage
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('article', '0002_art_picture'),
]
operations = [
... | [
"samarthsah@Samarths-MacBook-Pro.local"
] | samarthsah@Samarths-MacBook-Pro.local |
b247c4def0f45dc6866abfd6944a0a96789d5be0 | 162e0e4791188bd44f6ce5225ff3b1f0b1aa0b0d | /examples/plot_kernel_approximation.py | 735ed9238223d5243a53a245a95a7e1b780db417 | [] | no_license | testsleeekGithub/trex | 2af21fa95f9372f153dbe91941a93937480f4e2f | 9d27a9b44d814ede3996a37365d63814214260ae | refs/heads/master | 2020-08-01T11:47:43.926750 | 2019-11-06T06:47:19 | 2019-11-06T06:47:19 | 210,987,245 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,687 | py | """
==================================================
Explicit feature map approximation for RBF kernels
==================================================
An example illustrating the approximation of the feature map
of an RBF kernel.
.. currentmodule:: mrex.kernel_approximation
It shows how to use :class:`RBFSampl... | [
"shkolanovaya@gmail.com"
] | shkolanovaya@gmail.com |
68152eb0046118464c20ab2b166aa716745123ad | 25194bd77823c25f65553c4400788040e69b1a1f | /okikae_kun.py | a97a70d2ab4031c54d1b64ed4b6830679a738834 | [] | no_license | cabbage63/okikae_kun | 936c1ff7299384a863a359eb4971ee68dee7895b | 00fcbc1c12d7129b5436ac6dcd40aaf7e4276084 | refs/heads/master | 2020-12-24T12:40:00.714906 | 2016-11-06T03:23:24 | 2016-11-06T03:23:24 | 72,967,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | import sys
argv = sys.argv
temp_body = open(argv[1]).read()
temp_body = temp_body.replace('http://ecx.images-amazon.com/','https://images-fe.ssl-images-amazon.com/')
temp_body = temp_body.replace('http://www.amazon.co.jp/','https://www.amazon.co.jp/')
f = open('output.txt', 'w')
f.write(temp_body)
f.close()
print("fin... | [
"e.cabbage63@gmail.com"
] | e.cabbage63@gmail.com |
c536b9fd5c1e73cc295090ed7b3acb50d109db16 | fec863b67ec1ae65da7111bd8c77d0ab2ef1f6ce | /movie recommendation system/.history/moviemodel_20210503171215.py | 065bab6744cb5a59f9f2bcad99cc217a20cecea4 | [] | no_license | kannan768/movie-recommendation-system | e6cf71620e25a0185fed3b37896137f1f39b0801 | 7460d440d44e77390e459ab10c535b6971c9c3ab | refs/heads/main | 2023-05-14T02:21:50.930672 | 2021-06-09T05:02:30 | 2021-06-09T05:02:30 | 375,225,316 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,004 | py | import pandas as pd
import numpy as np
from zipfile import ZipFile
import tensorflow as tf
from tensorflow import keras
from tensorflow.keras import layers
from pathlib import Path
import matplotlib.pyplot as plt
"""##Dataset"""
df = pd.read_csv('ratings.csv', sep=',', encoding='latin-1', usecols=['userId','movieId','... | [
"kannanbsk1609080@gmail.com"
] | kannanbsk1609080@gmail.com |
128c8218b9b250556682a1630279f115ed7218c6 | 922dba5cbe7b261cad13f0aa520d365307a053cd | /string.py | 712a7aeacefcbe60fe9424e05f2477f0ed15b8b7 | [] | no_license | dtwin/shiyanlou_code | 2cf7364896270b63543560d77be75ce90a4541b8 | 5db23b577f11eb4ca81564176a6bf8a7312db1a1 | refs/heads/master | 2020-07-01T14:54:41.123468 | 2019-11-21T08:16:45 | 2019-11-21T08:16:45 | 201,202,551 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,133 | py | s='I am Chinese'
s="Here is line \...split in two lines"
print(s)
print("""Usage: thingy [OPTIONS]
-h Display
-H hostname hostname
""")
a= "shi yan lou"
print(a.title())
print(a.upper())
print(a.lower())
print(a.swapcase()) #jiaohuan daxiaoxie
print(a.isa... | [
"495271301@qq.com"
] | 495271301@qq.com |
9d63e54252a9268a3d5a8ae57963c481936b808d | 1f8d7bcbd223e86ed862a89e0cd6b2112f9112a3 | /habataku300checker.py | 20455cfb82ff3d34d9bba501ab948db2e1cfdfef | [] | no_license | howther111/utility | c94d7a1036e7365bbeed3b3c454351752242bdb1 | b074a67b8aa9fe5593a80071b1ef98ce193d835b | refs/heads/master | 2021-10-16T18:20:37.136517 | 2019-02-12T13:27:50 | 2019-02-12T13:27:50 | 113,938,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,632 | py | import openpyxl
import os # osモジュールのインポート
def year_change(gengo, year):
if gengo == '明治':
if year != '元' and year != '':
ans = str(int(year) + 1867)
return ans
else:
return '1988'
elif gengo == '大正':
if year != '元' and year != '':
ans = ... | [
"atsukiexfeel@yahoo.co.jp"
] | atsukiexfeel@yahoo.co.jp |
1041f3b038fd79462b48848f5cbf72db5b84b583 | aeb33e5eeaf9c77167f1af433c2b000de4aafe07 | /helloworld.py | 146695b88402bc954bc05310ddc88da2592d81f5 | [] | no_license | jchapman68/pyworld | 0a9167975b3479371cc44217d3e0510e7c4dc89e | b2d6cbe000091e8827da19071a585590527f0371 | refs/heads/master | 2020-03-22T15:50:56.187094 | 2018-07-12T07:41:53 | 2018-07-12T07:41:53 | 140,283,567 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | import os
#os.environ["GREETING"] = "Hello Rob"
#myvar = os.environ["GREETING"]
#if myvar == "Hello Rob":
# print ("success")
#else:
# print("fail")
#print os.environ["GREETING"]
#print("Goodbye, World!")
def test_greeting(message):
if message == "foobar":
return message
else:
return "H... | [
"joshua.chapman@ons.gov.uk"
] | joshua.chapman@ons.gov.uk |
4c592d51f61cf481cc775b42cd08c2ac8509d63a | d2f50124ff3bec70b9b3139ecb063b06e526781d | /biable/migrations/0063_auto_20170209_1210.py | b1f585b6e2133d7294f9972748a301e53108e589 | [] | no_license | odecsarrollo/odecopack-componentes | e8d993f089bf53bbf3c53d1265e70ac5c06b59b8 | b583a115fb30205d358d97644c38d66636b573ff | refs/heads/master | 2022-12-12T00:33:02.874268 | 2020-08-13T18:45:01 | 2020-08-13T18:45:01 | 189,262,705 | 0 | 0 | null | 2022-12-08T11:23:46 | 2019-05-29T16:37:21 | Python | UTF-8 | Python | false | false | 470 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-09 17:10
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('biable', '0062_auto_20170209_1032'),
]
operations = [
migrations.AlterField... | [
"fabio.garcia.sanchez@gmail.com"
] | fabio.garcia.sanchez@gmail.com |
2d939764dcd1a8446c88df11df99c240bdf0e89d | 72d17b9ef29724a314650f95bb247180bea5e39a | /q1.py | 29c53490a359b51cd97bdf3a11b3965b91035ce5 | [] | no_license | kanglif2/ke5205-text-mining-project | a5dda9cad13dd3e9671daa644ef492b3e6febcf0 | 6338a6e157ae5b5b915e5c80ffe19618c04efd67 | refs/heads/master | 2020-05-04T23:40:39.120345 | 2016-10-15T12:42:40 | 2016-10-15T12:42:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,107 | py | # -*- coding: utf-8 -*-
import string
#import unicodedata
import pandas as pd
import matplotlib.pyplot as plt
#import numpy as np
import nltk
from nltk import pos_tag, word_tokenize, sent_tokenize
from nltk.corpus import stopwords, wordnet
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.cross_v... | [
"yan9za1@gmail.com"
] | yan9za1@gmail.com |
b6cd59becb4fb605ea25d1342073d03073b486b8 | 54d60cf707139ae3eefac7d4136fc4b57a33c6cb | /Json_webScrapping/scrapping_bs4.py | ec1ac2a38f3be8a24a6e8ed8147531488b68e05a | [] | no_license | rakeshgowdan/Python_DataAnalysis | 7814eb13274ca95d5ffc405dff1b9093b9c6d3bf | d911b9f3bde57b615d28eab142dde2720f066d16 | refs/heads/master | 2020-03-31T12:45:59.356181 | 2019-03-15T10:31:51 | 2019-03-15T10:31:51 | 152,228,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | import requests
from bs4 import BeautifulSoup
data=requests.get('https://www.w3schools.com/tags/tag_table.asp')
soup=BeautifulSoup(data.text,'html.parser')
for tr in soup.find_all('tr'):
for td in tr.find_all('td'):
print(td.text)
| [
"rakeshgowda3101@gmail.com"
] | rakeshgowda3101@gmail.com |
f562bc0096ec80473c16957f03b4c070b782bab7 | 99280ee4672420b43bdcedb9c6f5c93a5fe182f0 | /API/backend_3/todo_project/todo_project/settings.py | 297321c3ae1b7a167c333d4af61b2cc4b333d714 | [] | no_license | kamral/test_1 | f8674a075d51fc94630df7d6a5cf55b11d086db0 | a10ce3337463d1cb9b56876d0566798740c0b42f | refs/heads/master | 2023-08-06T23:50:45.519935 | 2020-06-07T09:27:43 | 2020-06-07T09:27:43 | 265,688,683 | 0 | 0 | null | 2021-09-22T19:23:15 | 2020-05-20T21:21:21 | Python | UTF-8 | Python | false | false | 3,293 | py | """
Django settings for todo_project project.
Generated by 'django-admin startproject' using Django 3.0.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import ... | [
"kamral010101@gmail.com"
] | kamral010101@gmail.com |
cf160eb097ceba05d1280e889a1944044246a65f | 65b604f19644628791f7f286538d2ac80deba225 | /user_app/urls.py | ce570b5f957810e87479e74aa48ad75a876ebc84 | [] | no_license | Anish8/instaclone | e68d6de1de0e21cb4560ce4f84d52222d0903ba9 | c8c831776f231c4f09052fe87b6eb8ba91fc272d | refs/heads/master | 2023-04-30T07:05:47.167340 | 2019-12-23T03:13:53 | 2019-12-23T03:13:53 | 229,521,803 | 0 | 0 | null | 2023-04-21T20:43:37 | 2019-12-22T05:18:10 | HTML | UTF-8 | Python | false | false | 929 | py | """Tasbir URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"anishsubedi9@gmail.com"
] | anishsubedi9@gmail.com |
878bd389051dba8d38357329c923e6f9ea202a2c | 8b197dcaa22b867c101dd4d13267949f2962e94c | /json_test.py | a99883115ed69dd65998f0b23faa31653d4f17a9 | [] | no_license | tomasmenito/PythonTests | 45670a5439906fb3e6ba2b350d1a474d12c0d811 | c21e38f2c8722c17cf8f8ec904df3cae82518e7a | refs/heads/master | 2022-11-07T06:17:05.922191 | 2020-06-16T17:45:35 | 2020-06-16T17:45:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | import json,requests,sys
url ='https://api.github.com//users//mralexgray//repos'
response = requests.get(url)
response.raise_for_status()
data = json.loads(response.text)
w = data['list']
print(w)
| [
"tomaslm@hotmail.com"
] | tomaslm@hotmail.com |
03b32bd18ba48df51ff3afa7c4c8d2f65e28caeb | 7b9b7367a98fc29ef173b37abd611065bfda289e | /placa.py | 8c1d03d54f92059d28baab780275f9f3d7154e8a | [] | no_license | smorap/Proyecto_Proc._Imagenes | 30e98273921a0b1b1fcc80ac156463ef1b95499d | eca0344e0079f02edda300fc62b0105ae6e3d2f4 | refs/heads/main | 2023-01-07T20:48:14.090713 | 2020-11-03T01:35:52 | 2020-11-03T01:35:52 | 309,530,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 957 | py | import cv2
if __name__ == '__main__':
path = "D:/Datos/sergio/UNIVERSIDAD/2020/Proc_ Imagens/Poryecto/Imagenes_fuente/Foto_2.PNG"
img = cv2.imread(path)
image_draw=img.copy()
img_gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
filename1 = 'placa_grises.jpg'
cv2.imwrite(filename1, img_gra... | [
"noreply@github.com"
] | smorap.noreply@github.com |
e7d10f8320db3c2f560b7875b1bb254593aca879 | 5ffa05429f1278455cd02e759cc64f376813ce20 | /html_form_builder/__openerp__.py | 1e8592471c11867f3ba1a29645d05d25c8cae4e7 | [] | no_license | tonihr/Odoo9 | 217f483993c4a49d5c14ad93ec2594e0a46bef5d | 93e0d3de55714e34229cb5273400a6ebc1f6e3e0 | refs/heads/9.0 | 2021-01-19T04:02:57.407271 | 2017-03-08T05:35:47 | 2017-03-08T05:35:47 | 84,426,868 | 0 | 0 | null | 2017-03-09T10:02:45 | 2017-03-09T10:02:45 | null | UTF-8 | Python | false | false | 681 | py | {
'name': "HTML Form Builder",
'version': "1.8.9",
'author': "Sythil Tech",
'category': "Tools",
'support': "steven@sythiltech.com.au",
'summary': "Manage both internal and external forms",
'description': "Manage both internal and external forms",
'license':'LGPL-3',
'data': [
... | [
"steven@sythiltech.com"
] | steven@sythiltech.com |
b6e342601739bf2ac9de2c64dcc912651a121c30 | f5cb63b795246acb80e1de74f4218a449b05bd6f | /with Sentiment (3.25 hours)/LSTM-Sentiment.py | 0ff53d978750534ce2857f6597dfff0a597e0645 | [] | no_license | Kreuz-und-QuerHan/Bitcoin-Trend-Prediction | 7a0e00c07e074846c70aa25ebdcd0ccd3df74da1 | bd97e7b7ea471215ceec64a49e08edf18572f14b | refs/heads/main | 2023-06-02T12:18:09.245775 | 2021-06-23T20:52:22 | 2021-06-23T20:52:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,183 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
# Libraries
from pandas import DataFrame, read_csv, concat
from keras.models import Sequential
from keras.layers import Dense, Dropout, LSTM, Bidirectional, GRU,ConvLSTM2D, Flatten
from matplotlib import pyplot as plt
from numpy import concatenate, reshape
from sklearn.... | [
"79607020+TandonAnanya@users.noreply.github.com"
] | 79607020+TandonAnanya@users.noreply.github.com |
9abfdc5a2c0729518fddf65bbefeae6317b8b9a0 | 24d8cf871b092b2d60fc85d5320e1bc761a7cbe2 | /eXe/rev2283-2366/right-branch-2366/twisted/internet/tksupport.py | 19dcf48b56a21fe81e5d2e00d290099a36bdac51 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | joliebig/featurehouse_fstmerge_examples | af1b963537839d13e834f829cf51f8ad5e6ffe76 | 1a99c1788f0eb9f1e5d8c2ced3892d00cd9449ad | refs/heads/master | 2016-09-05T10:24:50.974902 | 2013-03-28T16:28:47 | 2013-03-28T16:28:47 | 9,080,611 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,636 | py | """This module integrates Tkinter with twisted.internet's mainloop.
API Stability: semi-stable
Maintainer: U{Itamar Shtull-Trauring<mailto:twisted@itamarst.org>}
To use, do::
| tksupport.install(rootWidget)
and then run your reactor as usual - do *not* call Tk's mainloop(),
use Twisted's regular mechanism for runni... | [
"joliebig@fim.uni-passau.de"
] | joliebig@fim.uni-passau.de |
533661d3c3dc30a457cf43ee40b712444cab32f4 | c5033ec18d537b26db80fd2fa6a6b61d30bcd313 | /stocket/models.py | 4ee0d8ba3551e4d697ae817ba7297eafd35d5a19 | [] | no_license | dannyphan2910/stocket | 2b8068bad3c74a5ac56f76a22b07e55463a9fb94 | ab4eec6e8a3b73da6752924bb409e2307741d8ed | refs/heads/main | 2023-06-16T15:25:29.307687 | 2021-07-10T04:27:51 | 2021-07-10T04:27:51 | 350,432,403 | 0 | 0 | null | 2021-06-17T02:29:05 | 2021-03-22T17:32:15 | Python | UTF-8 | Python | false | false | 2,378 | py | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
TRANSACTION_TYPES = [
(0, 'BUY'),
(1, 'SELL')
]
class Account(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE)
balance = models.DecimalField(max_digits=12, decimal_places=2, ... | [
"phanhaidang29102000@gmail.com"
] | phanhaidang29102000@gmail.com |
42c170cdc7ec40157a5fe37fc17a43224af43c96 | ed9fe676f645263c7e05242fd2c18dd06286296b | /bfs_and_dfs.py | 1133ced2837d1e9154e64517aaa90e694923f95d | [] | no_license | nadavleh/Undirected-unweighted-graph-search | 1938e6a52d7d10a2ec12d203892f68455e779655 | 0c99ea31b653503fa3a88367e3192539fce3a94e | refs/heads/master | 2020-12-06T05:35:34.150689 | 2020-01-07T16:03:35 | 2020-01-07T16:03:35 | 232,361,587 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,237 | py | """
In this script I implement the Breadth First Seach Algorithm or BFS and
Depth First Seach Algorithm or DFS, to determine a route or "traversal"
between nodes in a graph (if such traversal even exists)
In order to do so, i first define a graph on which i implement this seach.
This graph is a grid of size-by-siz... | [
"noreply@github.com"
] | nadavleh.noreply@github.com |
9f3e522f5eaf4bccca6718e97418876a8b0a517a | 3b3e6c246bb61681fe083fff76f7867fdc713d24 | /fedot/core/operations/evaluation/regression.py | 245bfad74323c488eca5c7b063941182fb75732b | [
"BSD-3-Clause"
] | permissive | houmanb/FEDOT | 2f57a60f9c78e879cf3a97ce9c4bfa53c5cf1a0e | b7123d586616fbd1cb067ea61e1b688829b11685 | refs/heads/master | 2023-06-17T02:47:58.190501 | 2021-06-30T10:34:59 | 2021-06-30T10:34:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,286 | py | import warnings
from typing import Optional
from fedot.core.data.data import InputData
from fedot.core.operations.evaluation.evaluation_interfaces import EvaluationStrategy, SkLearnEvaluationStrategy
from fedot.core.operations.evaluation.operation_implementations.data_operations.decompose \
import DecomposerRegImp... | [
"noreply@github.com"
] | houmanb.noreply@github.com |
74cdf0828e11c756fec67a5b80bde0e5b418453d | f0063ed82e9f6c71485796826b1cb8878b2d50f5 | /lab2/lab2c.py | b08170a118b6cc91a7402b32e9eff08b4f16c758 | [] | no_license | pyao7-code/ops435-Python | d6ca6c9651c9426d010e8f15450d43920e3bd706 | 488b382d28e2530baf8da5a1f25a4bd88f471dd2 | refs/heads/master | 2021-10-26T02:38:31.576764 | 2019-04-09T22:00:56 | 2019-04-09T22:00:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | #!/usr/bin/env python3
import sys
name = sys.argv[1]
age = sys.argv[2]
print('Hi ' + name + ', you are ' + str(age) + ' years old.') | [
"vlha@myseneca.ca"
] | vlha@myseneca.ca |
92e592f69aa42552367251f1e4374870fcf374cf | b77c767fe684e1263bf5a9b40e679fed993c56d5 | /manage.py | 8f2f8db8e50c8d4b03c0e19034bb507f6b7c370e | [] | no_license | OMCloud/SecurityAuditPlatform | 53990e4580ad14d8dc1706181db507ab7ab8155e | c16fb6f28de8c13e78367d67003ebe878bf842e4 | refs/heads/master | 2020-06-07T02:40:21.232755 | 2019-06-20T10:53:08 | 2019-06-20T10:53:08 | 192,902,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 819 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "SecurityAuditPlatform.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. En... | [
"omcloudw@gmail.com"
] | omcloudw@gmail.com |
cd14d101a34e2fb93abf67a6f5d7818b15d89544 | e3565e1ce607f60745f2a045aae8026661a6b99b | /resources/Onyx-1.0.511/sandbox/malach/filefix.py | b32a126b489cba53a0958df1d590cbbd7e027b16 | [
"Apache-2.0"
] | permissive | eternity668/speechAD | 4c08d953b2ed06b3357b1c39d8709dd088a2471c | f270a1be86372b7044615e4fd82032029e123bc1 | refs/heads/master | 2021-01-12T22:10:33.358500 | 2014-02-03T16:03:28 | 2014-02-03T16:03:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,982 | py | ###########################################################################
#
# File: filefix.py
# Date: Tue 28 Apr 2009 14:51
# Author: Ken Basye
# Description: Some general tools for fixing files
#
# This file is part of Onyx http://onyxtools.sourceforge.net
#
# Copyright 2009 The Johns Hopki... | [
"nassos@n12mavra.cs.ntua.gr"
] | nassos@n12mavra.cs.ntua.gr |
04610e70877f5e0bfca5d4ab9e745ffc7706df50 | b80d6ad08fa5dc8c21bd08f99249c8df37af3126 | /setup.py | 4c2b3e596423b6ecd2f2e967c8a2462c801cfed6 | [] | no_license | quentin-auge/hilbertpiet | 717295e344ede803885fac2262816e2c115c4fb2 | 304c52129013c46ba71886be792039fc0a6a25be | refs/heads/master | 2022-07-13T10:16:53.801796 | 2020-05-10T02:15:56 | 2020-05-10T02:18:29 | 257,011,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 861 | py | # coding: utf8
from setuptools import find_packages, setup
setup(name='hilbertpiet',
version='0.1',
description='Hilbert-curve-shaped Piet programs generation',
author='Quentin Augé',
author_email='quentin.auge@gmail.com',
license='closed',
packages=find_packages(),
package_... | [
"quentin.auge@gmail.com"
] | quentin.auge@gmail.com |
a51419acde7f1d082a6e3f58a35f250b8ce99b1b | 73d4f10770b30eb5014fe6f12ad11656f08b5a15 | /venv/Scripts/pip3-script.py | cc4a41a0d49198bb572b233539d2b003babfdb75 | [] | no_license | wksiazak/machinelearning_practicing | 95ed9ac8de2c0a270ade9fde148b8237b30618f0 | b7b747c293329390efc68cf847fc4c4e4692256a | refs/heads/master | 2022-06-20T22:16:55.264199 | 2020-05-09T10:22:35 | 2020-05-09T10:22:35 | 258,751,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | #!C:\machinelearning_1904\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exi... | [
"weronikaksiazak@gmail.com"
] | weronikaksiazak@gmail.com |
d5a1208ab0db01560b65193a0939850725825dbe | 2fdabdbf4a1cce9708e5b194331908e95172fe4f | /crudapplication/migrations/0002_auto_20190518_1557.py | 4387d58084c3fe23d14d122065aca11e9d0468ab | [] | no_license | patilganeshv/DjangoSampleProject_webapplication | b1245d7291d080f1b5e3ecbcd43231803a096d25 | 116b8f5b6fa19945d23f090786b2e426f805450b | refs/heads/main | 2023-03-24T23:32:34.094132 | 2021-03-08T07:03:36 | 2021-03-08T07:03:36 | 345,560,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 333 | py | # Generated by Django 2.2.1 on 2019-05-18 10:27
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('crudapplication', '0001_initial'),
]
operations = [
migrations.AlterModelTable(
name='employee',
table='employee11111',
... | [
"patilganeshv@gmail.com"
] | patilganeshv@gmail.com |
7129342bc82be34d2f6921de2f6dfee14ef9e637 | d719e636edefb96d43383245c9c36dd701605092 | /setup.py | dd7440e7ec0034f1f44853ee11b55e11bbaa250a | [
"MIT"
] | permissive | Spider8801/conllu | a5c6c6b128f4ee1989449f8dbc8474763d61ea16 | d3f72686961376ac63e7b0e6ae47776bc6e50c55 | refs/heads/master | 2022-07-29T13:07:39.171546 | 2020-06-07T14:53:48 | 2020-06-07T14:53:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,049 | py | # -*- coding: utf-8 -*-
import os
from setuptools import setup
VERSION = '3.0'
setup(
name='conllu',
packages=["conllu"],
version=VERSION,
description='CoNLL-U Parser parses a CoNLL-U formatted string into a nested python dictionary',
long_description=open(os.path.join(os.path.dirname(__file__), ... | [
"em@kth.se"
] | em@kth.se |
7f62acfb8b4c1fece3fa958fc6321f174a5dc480 | bcdbf414e06115a7f57c551886850ce95fc14a51 | /tzfinderapp/main.py | 5734737bd4557bb9ac10aade36e2ae18b796d3f6 | [
"MIT"
] | permissive | mblackgeo/timezone-finder-webapp | e5d7272618a67d65e8acc4b72fe434b6ee48bb70 | 4aa32874eb91ea7d3b1225fe7fc78c74388cc375 | refs/heads/main | 2023-08-03T07:20:49.778356 | 2021-09-15T20:13:53 | 2021-09-15T20:13:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,425 | py | from typing import Tuple, List
import dash_html_components as html
import dash_leaflet as dl
from dash import Dash
from dash.dependencies import Input, Output
from flask import Flask
from timezonefinder import TimezoneFinderL
server = Flask(__name__)
app = Dash(prevent_initial_callbacks=True, server=server)
tf = Time... | [
"18327836+mblack20@users.noreply.github.com"
] | 18327836+mblack20@users.noreply.github.com |
9cacc499ad1d427ec8d2592fa29bfeab94a32130 | bb18f19a00e01e94652bcbe1aeb5d5da70f58f8f | /setup.py | 7ba523b7a8795415a2d1f494060fe99a81697a6d | [
"MIT"
] | permissive | MLDERES/isys599v | 02b8e4d573bccbbf06ab31b307649f99c03c334c | 078097f23c3d636a1472546ff4384abbe641a28d | refs/heads/master | 2022-04-08T14:20:14.646766 | 2020-02-23T20:50:25 | 2020-02-23T20:50:25 | 234,643,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | from setuptools import find_packages, setup
setup(
name='src',
packages=find_packages(),
version='0.1.0',
description='Repo for work in 599v',
author='Michael Dereszynski',
license='MIT',
)
| [
"mlderes@hotmail.com"
] | mlderes@hotmail.com |
ab7cff661520295ebd66cdf67181839a9f2b1a66 | c547c293c101cd245d4219475587a312b53e5f6c | /KNN/kNN3.py | dbe213cb7483d3d427db003713340f2be47868ea | [] | no_license | MaxTian666/machine-learning | 4c977593d618526ff03525a38ed96b89e86997e7 | b0c1799c735a0acba8a517f79757f12d27bb312b | refs/heads/master | 2020-03-08T03:47:42.018667 | 2018-04-03T12:25:16 | 2018-04-03T12:25:16 | 127,901,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,621 | py | # -*- coding:utf-8 -*-
"""
@author:Tian Sir
@file:kNN3.py
@time:2018/3/2214:16
"""
'''
实施KNN算法的步骤:
1)计算已知分类数据集点与当前点的距离;
2)安装距离递增次序排序
3)选取与当前点距离最小的k个点;
4)确定前k个点出现的频率;
5)返回前k个点出现频率最高的类别作为当前点的预分类。
'''
from numpy import *
import operator
'''
创建一个函数用于生成一个待分类的数据及对应的数据标签
'''
def createDataSet():
group = array([[1.0, 1.1]... | [
"409855255@qq.com"
] | 409855255@qq.com |
e1e15445a7861fad680daa90f449659e805d60da | f65c89f0cf09912dbf55ee077d583085b0a607dc | /keyboards.py | 2254e464a3e9b1960761d2dcba5a88755ceb385a | [] | no_license | Hacker12lamer/HackerPisya | 02ffe7bc106edcfab89a9afe8795c3a63ff445e0 | c2fec30831a232e8ee4e997587faa50c69c68fb1 | refs/heads/master | 2020-12-10T00:49:26.337633 | 2020-01-12T21:41:57 | 2020-01-12T21:41:57 | 233,462,870 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 25,726 | py | # -*- coding: utf-8 -*-
import telebot
keyboardMain = telebot.types.ReplyKeyboardMarkup(True)
keyboardMain.row('🔹 Москва')
keyboardMain.row('🔹 Санкт-Петербург')
keyboardMain.row('🔹 Ростов-на-Дону')
keyboardMain.row('🔹 Екатеринбург')
keyboardMain.row('🔹 Челябинск')
keyboardMain.row('🔹 Новосибирск')
keyboardMain.r... | [
"noreply@github.com"
] | Hacker12lamer.noreply@github.com |
cdf4f9f0feb9581b551fcc12879a25bdc4bcd735 | 5eb91e9c60f79d401a8580768885d227dfb75cf1 | /sahara/plugins/mapr/services/oozie/oozie.py | e11c18f6ba0d56552e99f7e89422558105efea85 | [
"Apache-2.0"
] | permissive | hamzehkhazaei/sahara | 3b2375e1a6602fc359766abdf5b7453a407a164b | 58faa2d62e30390732dc1be4be5bc9220960fcf0 | refs/heads/master | 2021-05-29T00:19:24.588397 | 2015-05-05T14:41:35 | 2015-05-05T14:41:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,903 | py | # Copyright (c) 2015, MapR Technologies
#
# 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... | [
"aosadchiy@maprtech.com"
] | aosadchiy@maprtech.com |
d1ca2a52b83d8def8c1aa10f303e6cad817df346 | 41a20700b5bb351d20562ac23ec4db06bc96f0d7 | /src/fg/tv_metrics.py | f38e38ae3fce02c994c9be7c9605523073f0d3f0 | [] | no_license | kedz/noiseylg | ee0c54634767e8d3789b4ffb93727988c29c6979 | 17266e1a41e33aecb95dc1c3aca68f6bccee86d5 | refs/heads/master | 2020-07-30T11:22:08.351759 | 2019-10-30T21:33:11 | 2019-10-30T21:33:11 | 210,212,253 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,987 | py | from plum.types import register, PlumModule, HP, props
from subprocess import check_output
from queue import Queue
from threading import Thread
from pathlib import Path
from tempfile import NamedTemporaryFile
import json
import d2t.preprocessing.tvs as preproc
@register("metrics.tv_metrics")
class TVMetrics(PlumMo... | [
"kedzie@cs.columbia.edu"
] | kedzie@cs.columbia.edu |
ca3084e1c7ae03fd9680cca4f6fa0bbcafd079d7 | 89e8383393fd69ee8c60c392131f1707e36e476b | /variable.py | 351ee054a921f9b6f16ed993a561b69c23c5ea17 | [] | no_license | vaarigupta/python_practice | ce011196576171bfb0b43cf8e37a21784d5361a4 | d642649a0835b3a991961faf3c8bd34434d06080 | refs/heads/master | 2020-03-12T23:21:33.512791 | 2018-04-24T14:12:23 | 2018-04-24T14:12:23 | 130,864,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | Python 3.6.4rc1 (v3.6.4rc1:3398dcb, Dec 5 2017, 20:41:32) [MSC v.1900 64 bit (AMD64)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> no1 = 1
>>> no2 = 2
>>> print("number1:",no1, ", number2 :", no2)
number1: 1 , number2 : 2
>>>
| [
"cutievaarigupta@gmail.com"
] | cutievaarigupta@gmail.com |
8c895338f7d0efd258a225c32321d524a8813768 | 9cddc6000431b88e78e8f953855db135b62dd490 | /question_generation/framework/simulation.py | 7a0c31cd598a22f2a1f0e9cdd036fd387717eb28 | [
"MIT"
] | permissive | hucvl/craft | 5aae1c3e3e6eac23e0c2c9ef4c18fc1a51d01d61 | 85c50b26eb8941781dc4bb93bce61201aff4643d | refs/heads/main | 2023-05-15T00:57:37.502562 | 2021-06-10T13:29:34 | 2021-06-10T13:29:34 | 372,904,182 | 12 | 0 | MIT | 2021-06-10T13:29:35 | 2021-06-01T17:00:44 | C | UTF-8 | Python | false | false | 14,309 | py | import copy
import json
import os
import subprocess
import sys
from pathlib import Path
from loguru import logger
from framework.utils import FileIO
from svqa.causal_graph import CausalGraph
import svqa.generate_questions as QuestionGeneratorScript
class SimulationRunner(object):
def __init__(self, exec_path: ... | [
"m.samilatesoglu@gmail.com"
] | m.samilatesoglu@gmail.com |
25747ed2dbcbe8df7ee0fa834287c49b2acb669d | f93acaa904fdd780f4d28aea92b8794b0014b762 | /imitate/train_rough.py | 9808894b37f94ccf8ee1f2f0f09f1efe424a0553 | [] | no_license | KChikai/seq2seq-examples | c898a80cc3c011bc51fbde35acf93b7c27a539b8 | 6e69c061182c9e00fce31a2b4b720e338fab0ad0 | refs/heads/master | 2021-09-01T10:32:05.829308 | 2017-12-26T13:46:42 | 2017-12-26T13:46:42 | 109,656,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,120 | py | # -*- coding:utf-8 -*-
"""
Sample script of Sequence to Sequence model for ChatBot.
This is a train script for seq2seq.py
You can also use Batch and GPU.
args: --gpu (flg of GPU, if you want to use GPU, please write "--gpu 1")
単語次元:1024,隠れ層:2048
単語語彙数:25000
目的関数:Adam, 関数の初期化をエポック毎に行う
"""
import os
os.environ["CHAINE... | [
"tokoroten0401@gmail.com"
] | tokoroten0401@gmail.com |
4cec37fbef63716ae1ffe812f59e2cb1b4f0e9fa | 469eb9256ade8913a454d9e59bb11710239c9ab1 | /test/test_Identify.py | 9067654f9abd852594d855c81297232f1c76363c | [] | no_license | mokko/oai | 8b564b3bba0561278a34e7fdad26d35b9f931ee1 | 5d5ed4c0e2a792c82c1b6b3daa042c1bb9890c80 | refs/heads/main | 2023-04-13T17:15:59.891005 | 2021-05-01T10:16:34 | 2021-05-01T10:16:34 | 363,194,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 940 | py | import sys
sys.path.append ("../src")
from Identify import Identify
def test_init():
i = Identify(
baseURL="www.mmm.com/oai", deletedRecord="transient", repositoryName="M3OAI"
)
assert i
assert i.baseURL == "www.mmm.com/oai"
assert i.deletedRecord == "transient"
assert i.repositoryName == ... | [
"mauricemengel@gmail.com"
] | mauricemengel@gmail.com |
cab40ed6e22c6fcff267f7add19123109e54eaf2 | fd714513f0923a4e533ecb5e5ece1e78105544cd | /views.py | abb858051ed528f85a520d3ffa8860149c2c0b4d | [] | no_license | zhaojason98/Bungalow_challenge | 102f1eb45c6aca3256db304fe3b60baccfcbef18 | 003e4cfd780f6ac4424bc61791802cd5f04b94ae | refs/heads/master | 2020-08-11T06:18:47.839710 | 2019-10-11T18:58:58 | 2019-10-11T18:58:58 | 214,508,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 759 | py | from django.http import HttpResponse
from django.template import loader
from .models import House
def index(request):
houses_list = House.objects.values_list('id')
return houses_list
def description(request, zillow_id):
house = House.objects.get(id=zillow_id)
return house.getDescription()
... | [
"noreply@github.com"
] | zhaojason98.noreply@github.com |
b48cbc34229e604e32f551d252f74916fe277a3e | b789bf78ffe684782da7eed9df9d88a62d13ad82 | /pyannote/database/protocol/__init__.py | d9f270782593bbe36e7e6fabe7d6039e4a1d5979 | [
"MIT"
] | permissive | yinruiqing/pyannote-database | 8d77678efec06ffb797716e28b4673f1d5ec6453 | 731593b57082e675e0f661f6211f2dd261807561 | refs/heads/master | 2020-12-02T06:45:29.029202 | 2017-06-28T13:12:26 | 2017-06-28T13:12:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,320 | py | #!/usr/bin/env python
# encoding: utf-8
# The MIT License (MIT)
# Copyright (c) 2016 CNRS
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation ... | [
"bredin@limsi.fr"
] | bredin@limsi.fr |
daeb1f7fa521beacd31aac5043452165dbd73f54 | 6a0df64813594b7d1bd9f526eb828c2625516f17 | /MNISTTask.py | a1eb3da83a7dbc9f4630b2fb922494e5dd600790 | [] | no_license | qiulingxu/Automatic-Machine-Learning | 30f8bfaf05cd77a61879b763c4144cf5ed7b1dd8 | a5a7b1364c014e36a3100da437d84f58308e5d7e | refs/heads/master | 2021-09-16T00:05:50.105553 | 2018-06-13T11:51:42 | 2018-06-13T11:51:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,176 | py | import tensorflow as tf
import logging
from mnist import MNIST
import datetime
from Graph import Graph
from QLearning import QLearning
from ImageOperators import *#ConcatOperator,ImageInput,Conv2DFactory,PoolingFactory,TransConv2DFactory,ActivationFactory,BinaryOpFactory,ReuseFactory,DenseFactory,ConcatOperatorDense
im... | [
"v-qiux@microsoft.com"
] | v-qiux@microsoft.com |
0a101df3b11fa31f2f9270e4eb622a88f96554f3 | 41c605bf3a002a757cb2344cff526d7a7ae56ea9 | /plotly/validators/scattercarpet/selected/marker/__init__.py | 67542f2ea7f75af48003f76f0d057af6429e1e4c | [
"MIT"
] | permissive | Jonathan-MW/plotly.py | 9674b90b5de11fd9089e6afefd04b57bc4587829 | 7528c00772f44dee24c0df7e15d70a4852f171a8 | refs/heads/master | 2020-05-30T06:04:13.621478 | 2019-05-31T10:34:15 | 2019-05-31T10:34:15 | 189,571,988 | 2 | 0 | MIT | 2019-05-31T09:59:53 | 2019-05-31T09:59:53 | null | UTF-8 | Python | false | false | 1,616 | py |
import _plotly_utils.basevalidators
class SizeValidator(_plotly_utils.basevalidators.NumberValidator):
def __init__(
self,
plotly_name='size',
parent_name='scattercarpet.selected.marker',
**kwargs
):
super(SizeValidator, self).__init__(
plotly_name=plotly... | [
"noreply@github.com"
] | Jonathan-MW.noreply@github.com |
67537101f00bc797bd0d8de976e3d5c87cdc51dc | 5c0afded80cd9d773ae13a9558867716f8878e98 | /evernote_oauth_sample/wsgi_aws.py | b9b6e96a0ec79d02b9d20f547d1a6e6151ea14b2 | [] | no_license | teraijun/EN_Markdown | 3230c3043e963f7bf0a17c684897bd53f9e22573 | 016b251ee5bbd9fc64c4bcebb8efbd4268cdd5b8 | refs/heads/master | 2021-01-13T01:28:20.254636 | 2015-09-01T05:50:15 | 2015-09-01T05:50:15 | 33,945,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | # -*- coding: utf-8 -*-
import os
import site
import sys
# virtualenvのパッケージパス
site.addsitedir("/home/ec2-user/ENV/lib/python2.7/site-packages")
sys.path.append('/var/www/cgi-bin/EN_Markdown')
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "evernote_oauth_sample.settings")
# virtualenvの実行コードのパス
activate_env = os.pa... | [
"teraijun48@gmail.com"
] | teraijun48@gmail.com |
9d7d16c4a73674e00426099c87f36ac5e20d778f | 60a4f0fa5c8239edbb4cd4390e3b4a7d70c919de | /user/migrations/0006_auto_20190805_2145.py | 54fac07db74e7b1545406f8ec51ded054071913c | [] | no_license | DuncanMoyo/Developer-Portfolio | cca6cbe29e13bddbf56584e400cbd169a515c047 | 9aa8dcef123b3144d9bf2c34a19f4c65c193ac98 | refs/heads/master | 2022-12-09T17:14:42.865413 | 2019-08-09T03:55:21 | 2019-08-09T03:55:21 | 200,691,837 | 0 | 0 | null | 2022-12-08T05:59:41 | 2019-08-05T16:31:39 | CSS | UTF-8 | Python | false | false | 497 | py | # Generated by Django 2.2.4 on 2019-08-05 19:45
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user', '0005_auto_20190805_2144'),
]
operations = [
migrations.RemoveField(
model_name='userprofile',
name='skill_le... | [
"duncanfmoyo@gmail.com"
] | duncanfmoyo@gmail.com |
4bd73df7d3611be06c8a1c3f894b8bba2b9a5a2a | b1ba049be6d2afe25be7511c5f87ef7436c25869 | /DOS_DOG/main.py | 31b166d321f1c716fabdce06137f5f260bd993a2 | [
"MIT"
] | permissive | Network-Hub/Dos_Dog | 44ada0bab6159ed37c05efafaa774c16f8978bdc | 569ce825561153818d9260f65daa827e1f27eb42 | refs/heads/master | 2022-11-16T23:20:08.446240 | 2020-07-18T03:03:16 | 2020-07-18T03:03:16 | 280,569,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | from flow_dump import *
import random
if __name__ == '__main__':
print("---start sniff the packet---")
save_path = folder_root + os.sep + "results" + os.sep + "label_" + str(random.randint(1, 1000)) + ".csv"
sniff_main(save_path) # 开始嗅探数据包
| [
"noreply@github.com"
] | Network-Hub.noreply@github.com |
a0e9159f3d48fcd72ad68192a845e9493a91adca | 9ec00883eae7a3742dc62e821dabd9515342edcc | /db.py | fc5506987fb479bb400eeb6883c2a94209b7fe55 | [] | no_license | abinayasv/python-web-crawler | 8386c703e3cf097845726b26fffcbab6005fff13 | 51c0a0526826b705f71e741ab4d1376b454421e8 | refs/heads/main | 2023-05-16T06:42:47.691514 | 2021-06-09T09:41:35 | 2021-06-09T09:41:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,018 | py | from pymongo import MongoClient
from datetime import datetime, timedelta
from time import sleep
from config import maxcount,root
from crawler import root,validate
def connectdb():
global linkcollection # for using this variable to another functions
cluster=MongoClient(" #your mongodb connection url ... | [
"noreply@github.com"
] | abinayasv.noreply@github.com |
81e961bd45690f0ec3aaf2d0471c80120c519e90 | eaa13f3f1053d4579ef5b77e475fb04c865fe9cf | /build/frl_msgs/frl_vehicle_msgs/catkin_generated/pkg.develspace.context.pc.py | a989b83f5dd8df824b9da17f3dbf6c8d1631bfd8 | [] | no_license | Ivarsak/UUV_Simulator_OASYS | 1d9fb25855a258ee97d6277dcce1c132cd45198a | a7e4ca3a7c6989334d9fc22d91e0c2fea7bd99b4 | refs/heads/master | 2023-03-04T10:24:21.483313 | 2021-02-08T18:11:30 | 2021-02-08T18:11:30 | 315,768,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/ivar/uuv_ws/devel/include".split(';') if "/home/ivar/uuv_ws/devel/include" != "" else []
PROJECT_CATKIN_DEPENDS = "geometry_msgs;message_runtime;std_msgs".replace(';', ' ')
PKG_CONFIG_LIBRARIES_W... | [
"saksvik.ivar@hotmail.com"
] | saksvik.ivar@hotmail.com |
680e684399175bbf0c37efb8fc4e80d64e319af0 | 8f8908f8247a0401b6521582ad29d9718732f4f3 | /tes codet.py | 4fbcde1660a12584a51c943d4713f9b812d6064e | [] | no_license | kcb0126/script.tvguide | 1d11a444158d415c42dfb9bd99ad1b26ffb50ee9 | a42b4332f6161ff0a20bef583abade3b64e834ac | refs/heads/master | 2021-01-02T08:48:18.749685 | 2017-08-02T02:56:45 | 2017-08-02T02:56:45 | 98,981,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136,243 | py | #DO NEED IT
if program_start_time < epg_time_2
and program_stop_time > epg_time_3:
print
"passed 1"
if program_stop_time <
epg_time_2:
... | [
"kcb0126@outlook.com"
] | kcb0126@outlook.com |
78aab04cb0157036a7546311cdb45660958c867b | 4ea06addb40da22573bbfb4a0253406b564ae2cd | /test3in1.py | f068ead397378cf25b16d18e8b1c4e99b4504a6d | [] | no_license | AldyColares/Projetos_MNii | 5eff276daf7f7139b8875fb20bfa405af44639a9 | 43dc45cb2a7890837257f36934d0d32b5e40fc67 | refs/heads/master | 2016-09-11T05:48:43.756753 | 2014-03-21T14:50:45 | 2014-03-21T14:50:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | import re
arquivo = open("arquivo1.txt")
m = int(arquivo.readline().rstrip('\n'))
txt = arquivo.read()
print "grau =",m
print "\nxi\tf(xi)"
print txt
dados = map(float, re.split('\t|\n',txt))
arquivo.close()
a = dados[0]
b = dados[m*2]
fx0 = dados[1]
fxm = dados[m*2+1]
h = (b - a)/m
L = range(m+1)
S=0
i=1
while ( i <= ... | [
"dyego@alu.ufc.br"
] | dyego@alu.ufc.br |
c561c267d998bdcd11ae388b64d3370452b1914d | b1737e32922d045a7339ab672a04b82978da7608 | /Class1-Numbers.py | bae681a428451a0461e8128de9bda59f9156de1a | [] | no_license | vnaditya/python | fe7505c7432a9234e3dfaa2b9a23a20e48e62120 | a7c5698fe350f3ae60d78481b8736d4517268981 | refs/heads/master | 2022-11-26T05:18:10.849970 | 2020-08-01T06:31:21 | 2020-08-01T06:31:21 | 282,145,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
print('new')
# In[2]:
2+1
# In[3]:
2-1
# In[4]:
2*3
# In[5]:
0.1+0.2-0.3
# In[6]:
10*2+10*3
# In[7]:
10+2*10+3
# In[8]:
(10+2)*(10+3)
# In[ ]:
| [
"68727269+vnaditya@users.noreply.github.com"
] | 68727269+vnaditya@users.noreply.github.com |
6b542e6a7eab78022064b7f12bc849610f028555 | 540506f511b41101aa0a7cb3156582d343b6b036 | /multidigrec.py | 70b3e651dd0365d719bf3710aee029754dafcdd2 | [
"MIT"
] | permissive | RajdeepMondal/NumRec | fed34be63ea98a0521f75b5721dd451d67d87a50 | 39c9bc2c1abd204b49baa3593905cf3ccede2354 | refs/heads/master | 2022-04-26T02:14:52.189318 | 2020-05-04T07:18:27 | 2020-05-04T07:18:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,263 | py | import cv2
import imutils
from dnn_softmax import *
import numpy as np
import pickle
with open("parameters.pkl", "rb") as f:
parameters = pickle.load(f)
file = "digits.jpg"
img = cv2.imread(file)
img = cv2.resize(img, (700, 200))
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
thresh = cv2.threshold(gra... | [
"noreply@github.com"
] | RajdeepMondal.noreply@github.com |
271b017259091010131209daa0e08770462aec59 | 5fe8b2e09a48b473cc28a4ba56e96075af945d07 | /app_authentication_proxy.py | ed8dc4855dd683a9660d59302670464f5a1b70dc | [
"Apache-2.0"
] | permissive | stozk/msb-client-websocket-python | bf2821593386aa02b9f53069d72ec5dae98f3335 | 2c5dacaa27b2a5b543ba8693ca888ddd5dc46e38 | refs/heads/master | 2023-04-06T18:10:30.968152 | 2021-04-07T19:14:32 | 2021-04-07T19:14:32 | 275,241,849 | 0 | 0 | Apache-2.0 | 2020-06-26T20:29:16 | 2020-06-26T20:29:15 | null | UTF-8 | Python | false | false | 20,749 | py | # -*- coding: utf-8 -*-
"""
Copyright (c) 2019 Fraunhofer Institute for Manufacturing Engineering and Automation (IPA)
Authors: Daniel Stock, Matthias Stoehr
Licensed under the Apache License, Version 2.0
See the file "LICENSE" for the full license governing this code.
"""
import datetime
import threading
import uuid
... | [
"daniel.stock@ipa.fraunhofer.de"
] | daniel.stock@ipa.fraunhofer.de |
a7d71e0de823d24ad5f32fd5bfdfa0f91e0a50dd | a17a15211ac8b47d01c616ae87fccb0e95d8298d | /linkedlist_bin_dec.py | 61096e84653f908fcadeaed85699773a06fd7979 | [] | no_license | prosis369/Data-Structures | 68a12a95db530adc153ca6b38b4310f5ab321f5a | cbfdb37f3145066285bf463360f9486bb64fe580 | refs/heads/master | 2021-06-25T12:10:52.894381 | 2020-11-11T08:54:17 | 2020-11-11T08:54:17 | 149,286,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 791 | py | '''
1290. Convert Binary Number in a Linked List to Integer
Given head which is a reference node to a singly-linked list. The value of each node in the linked list is either 0 or 1. The linked list holds the binary representation of a number.
Return the decimal value of the number in the linked list.
Example1:
Inp... | [
"noreply@github.com"
] | prosis369.noreply@github.com |
487d12eaffc34e10ef3412fb7e4c2055d48ba1ed | b5dd802b7165237174153298688df29796c431b4 | /Intermediate_python/Comparison_Operators/And_Or_not.py | 8228159fff3e80c59237b8606fc0cedf7b196e50 | [] | no_license | Jannatul-Ferdousi/Machine_Learning_Using_Python | 444a2ceb95e6097730963ec7d0ea55fa0dbf954f | ec9610d797296a82a74ee561b68c62055e7179f5 | refs/heads/main | 2023-01-12T01:30:46.168681 | 2020-11-20T18:22:56 | 2020-11-20T18:22:56 | 310,195,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | # Define variables
my_kitchen = 18.0
your_kitchen = 14.0
# my_kitchen bigger than 10 and smaller than 18?
print(my_kitchen>10 and my_kitchen<18)
# my_kitchen smaller than 14 or bigger than 17?
print(my_kitchen>17 or my_kitchen<14)
# Double my_kitchen smaller than triple your_kitchen?
print(my_kitchen*2< y... | [
"noreply@github.com"
] | Jannatul-Ferdousi.noreply@github.com |
1e75d06bbd6ffc672e34760a40a21d2d640e0b85 | 8b5c7bf0e9cc47df3e6a4688e761ea01707cce72 | /0_or_positive_or_negative.py | 4ebd5f053517179f0df889bbf5e566a928d4f799 | [] | no_license | NandakrishnanR/basic-python | b42047d6b77924324f4558b9d18ed950f128c439 | 1c5d6d60d7a75ca0365a00e44a21fe3a24082afe | refs/heads/master | 2020-12-12T12:05:42.137690 | 2020-01-20T16:04:51 | 2020-01-20T16:04:51 | 234,124,100 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | r=float(input("enter a number to be checked"))
if r>0:
print("the number is positive")
elif r<0:
print("the number is negative")
else:
print("the number is zero") | [
"rnandakrishnan2001@gmail.com"
] | rnandakrishnan2001@gmail.com |
1718f36c060caf2b67a509d51fa38963500c468c | 6e31a7867d658dfa514ded450eb4e69ec57e88df | /Glue/Glue/__init__.py | 97b0db1c061cb9b30d81215636cc390a29202053 | [] | no_license | jasonyu1996/glue | 625c77624a85b4fb26a57dffff0dd6a80887fa24 | d8815fba1764743f5d1cf3d1bbc6f126ea97e25b | refs/heads/master | 2021-07-10T06:14:38.063991 | 2017-09-21T13:35:14 | 2017-09-21T13:35:14 | 104,352,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | """
The flask application package.
"""
from flask import Flask
app = Flask(__name__)
import Glue.views
| [
"yuzhijingcheng1996@hotmail.com"
] | yuzhijingcheng1996@hotmail.com |
fcfb4efec303377e2ff3d56687c6cff450090c44 | 8eed29374fd95c5686b33e7a93d9991abb8e7dd1 | /CoolPlot/Util/Units.py | 82b38dd5e2c47373c285e5f2fee9c591d5443948 | [
"MIT"
] | permissive | roguextech/CoolPlot | c5de253895f8783f515b1126d2d0e7c4a59625ce | 0967e243934c0970ef830b43befeabacc688cdfd | refs/heads/master | 2022-11-24T08:30:19.379696 | 2020-08-05T12:51:25 | 2020-08-05T12:51:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,622 | py | # -*- coding: utf-8 -*-
from __future__ import print_function, division
from .Quantities import PropertyDict, BaseDimension
class SIunits(PropertyDict):
def __init__(self):
self._D = BaseDimension(add_SI=0.0, mul_SI=1.0, off_SI=0.0, label='Density', symbol=u'd', unit=u'kg/m3')
self._H = BaseDimen... | [
"jowr@ipu.dk"
] | jowr@ipu.dk |
35ff7c7b0b2608a161283aad1158714f840e4261 | bf21cd0ef7a94fa106ccd9f91a4bbfdcda7f94ed | /python-basic/chapter06/ex02_1.py | b89200405d271e475c79d5066eb693b18a584a1a | [] | no_license | juneglee/Deep_Learning | fdf8cae1b962aaa0ce557cb53f78a22b6d5ae1e8 | 17a448cf6a7c5b61b967dd78af3d328d63378205 | refs/heads/master | 2023-07-15T03:02:55.739619 | 2021-08-19T14:04:55 | 2021-08-19T14:04:55 | 273,253,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,324 | py | # 예외 고급
# 예외 객체
# try:
# 예외가 발생할 가능성이 있는 구문
# except 예외의 종류 as 예외 객체를 활용할 변수 이름:
# 예외가 발생했을 때 실행할 구문
# 예외 객체
try:
number_input_a = int(input("정수 입력> "))
print("원의 반지름:", number_input_a)
print("원의 둘레:", 2 * 3.14 * number_input_a)
print("원의 넓이:", 3.14 * number_input_a * number_input_a)
exce... | [
"klcpop1@gmail.com"
] | klcpop1@gmail.com |
9894d013e97b0292ca24dc5d96416fe5a8c42619 | cf8bce7244ecc0785ada7764b654a35da182014c | /djtrump/tests/test_sample.py | 085c7af67a5b65a239626de80cd3ea5efdd2659e | [] | no_license | sujonict07/djtrump | 7ed6d9f93b5dde678ace95668be40951b7fd346a | ff8b8e7efe8cadadf9b443c2ad846d2f63c4d622 | refs/heads/master | 2021-06-18T19:59:25.746873 | 2019-10-05T03:21:24 | 2019-10-05T03:21:24 | 212,815,331 | 0 | 1 | null | 2019-10-05T01:44:43 | 2019-10-04T12:56:55 | null | UTF-8 | Python | false | false | 204 | py | from django.test import TestCase
class SampleTestCase(TestCase):
def test_two_plus_two(self):
self.assertEqual(2+2, 4)
def test_nine_minus_three(self):
self.assertEqual(9-3, 6)
| [
"abc@abc.br10"
] | abc@abc.br10 |
6c4260cb4c1cd8605e45e07848249e782def76d3 | e3d6f803beece2ecc2cde8de795fdd20291213ff | /nova/tests/unit/scheduler/test_utils.py | e92dd111cd4e2d319bac244ad5f43e733c2f47ab | [
"Apache-2.0"
] | permissive | panguan737/nova | 437c1adb81f3e9ef82c28ad957144623db13ba52 | 0d177185a439baa228b42c948cab4e934d6ac7b8 | refs/heads/main | 2023-01-07T00:08:44.069599 | 2020-11-01T14:00:42 | 2020-11-01T14:00:42 | 309,332,719 | 0 | 0 | Apache-2.0 | 2020-11-02T10:17:13 | 2020-11-02T10:17:13 | null | UTF-8 | Python | false | false | 27,014 | py | # 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, software
# d... | [
"147360410@qq.com"
] | 147360410@qq.com |
4863d856a373aa732ddb38fa86db940b81682f64 | dbbff75e5afbea5dbdc0bfc46df0d146f8849ebb | /task_23.5.py | 5c7f999180e6f0c61c742ec6cf4388a379eb3a9b | [] | no_license | mishutka200101/Python-Practice-3-4 | 6460b63feaf25d91932eb6f9c1e0037524df62c3 | 3378bbba820c87d4e186fd4742d3d5af3f8d04bb | refs/heads/main | 2023-04-29T02:39:18.442964 | 2021-05-14T20:37:50 | 2021-05-14T20:37:50 | 362,210,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | def same_by(characteristic, objects):
if not objects:
return True
etalon = characteristic(objects[0])
for obj in objects:
if characteristic(obj) != etalon:
return False
return True
| [
"noreply@github.com"
] | mishutka200101.noreply@github.com |
7b1a94c46e89649da2de5c7eac0d1dfafcb723bf | b6924dbfc19907cc62fa503b3ba80b2085d0e82e | /core/log.py | 1d17a6ab498a5cc0a8a2da043f7c49e147b15159 | [] | no_license | PaulWasTaken/service_api | 9bd25b46c8559b3e0670248550838077872c3a5b | 64227fa92efd820bf7a63d2c883874c1abf7996d | refs/heads/master | 2021-06-17T19:20:12.380859 | 2019-07-16T11:23:17 | 2019-07-16T11:28:22 | 196,447,394 | 0 | 0 | null | 2021-04-20T18:22:57 | 2019-07-11T18:35:38 | Python | UTF-8 | Python | false | false | 421 | py | import logging
from config.logger_config import LOGS_PATH, LOG_LEVEL
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
file_handler = logging.FileHandler(LOGS_PATH)
file_handler.setLevel(LOG_LEVEL)
file_handler.setFormatter(formatter)
def get_logger(name):
logger = logging.g... | [
"ip98@list.ru"
] | ip98@list.ru |
b502ac7418a2e4602dfb5cab8106552da7e0256a | 43667bd0af1086bc4a03fa82043dce0c448ab331 | /Tests.py | 8de830c641171728751e69c0245cad059b804d9e | [] | no_license | Dineshsgit/ea_transaction_data_analysis | 7a74f0dd476ecc42330686d8acb5b1074ce51bc8 | 08000e68c9717334c3214ad37c3e4e7f8694fb26 | refs/heads/main | 2023-05-10T15:26:38.707483 | 2021-06-16T02:35:08 | 2021-06-16T02:35:08 | 377,102,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 831 | py | import unittest
import logging
import pandas as pd
import os, os.path
from Main import read_input_file, generate_hash, split_dataframe, find_top_suburbs, find_top_agents_by_suburb, get_config
class ETLTest(unittest.TestCase):
def test_split_dataframe(self):
data = {'Product': ['Desktop Computer', 'Tablet... | [
"dineshveluri@qantasloyalty.com"
] | dineshveluri@qantasloyalty.com |
bbf8dd661fbdb60587e9c5e81591357bcd3bb949 | fdb6ce818c34d3f93a67e3c4b9e183220e37db78 | /session-hidden-examples-master/hidden/views.py | f871e81e2cc79b0bae62624d69bd618227d3988f | [] | no_license | alexmercertomoki/CodingTraining | 44d8f03c77b85d77d66ae0a0c60e676c7d22e81a | 691633eb0e2c6babfb39d8428848be58ca544140 | refs/heads/master | 2020-04-16T00:27:06.114656 | 2016-09-13T20:03:52 | 2016-09-13T20:03:52 | 68,142,122 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | from django.shortcuts import render
def hidden_demo(request):
context = {}
if not 'first' in request.POST:
return render(request, 'hidden/get-first.html', context)
context['first'] = request.POST['first']
if not 'last' in request.POST:
return render(request, 'hidden/get-last.html', c... | [
"isaacbhuang@gmail.com"
] | isaacbhuang@gmail.com |
a8d1c3855133be357e3ac72d35616e8b7fc0d18b | ce07ccf78739a768971f393222fdca4a56315241 | /employee_management/employee_management/doctype/ord/ord.py | 5cfedfcf1c3f5f11200b1042214ecfbf25a91a73 | [
"MIT"
] | permissive | Gdinesh03/Frappe | 563e0ddbe925be536f65f925787ed321a6098c0d | efd2d1568b6f5b8a4e0ff31e06a415c717a3d32a | refs/heads/master | 2023-08-27T19:24:12.024442 | 2021-09-14T07:04:27 | 2021-09-14T07:04:27 | 406,260,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2021, Gopi and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
# import frappe
from frappe.model.document import Document
class Ord(Document):
def validate(self):
total = 0
for d in self.get('product_details'):
... | [
"vivekananthan112599@gmail.com"
] | vivekananthan112599@gmail.com |
4ad15d0918ddbf23e1ab05b9d9d98f2d9228f5e6 | 37faf72814c0a49cfde079c8831ce7247a5e6d03 | /build/ar_track_alvar/ar_track_alvar_msgs/cmake/ar_track_alvar_msgs-genmsg-context.py | e920213a0d6a5bcfdb6f980c921d6fd2639a0e8e | [] | no_license | albtang/106A-Project | 93a9736476ae5b4f0ba071760a71742fa293b40a | 46639be993107a8169091f86b5f5190740a5bba1 | refs/heads/master | 2020-09-11T09:51:21.635101 | 2019-12-21T12:34:24 | 2019-12-21T12:34:24 | 222,027,312 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 953 | py | # generated from genmsg/cmake/pkg-genmsg.context.in
messages_str = "/home/cc/ee106a/fa19/class/ee106a-abs/ros_workspaces/tetrisBot/106A-Project/src/ar_track_alvar/ar_track_alvar_msgs/msg/AlvarMarker.msg;/home/cc/ee106a/fa19/class/ee106a-abs/ros_workspaces/tetrisBot/106A-Project/src/ar_track_alvar/ar_track_alvar_msgs/m... | [
"ee106a-abs@c111-8.local"
] | ee106a-abs@c111-8.local |
165fe338a7a24e1cc0a569fbbd334ca25723fb18 | f6679cc558ed0f1610745d8883e37cd5fd010810 | /optmlstat/ml/modeling/bayesian_least_squares_base.py | a4cf61cd1e0e2b04a587eb2fa9a5bf1b9ab47591 | [
"MIT"
] | permissive | sungheeyun/optmlstat | af984c5e1e270430b1b8fac88ccf341ec9313489 | ba89796d26eefe08b497eaf401b780d68094d128 | refs/heads/master | 2023-07-28T03:16:08.956797 | 2023-07-18T00:13:11 | 2023-07-18T00:13:11 | 234,828,129 | 4 | 1 | MIT | 2022-07-20T04:04:46 | 2020-01-19T02:28:46 | Python | UTF-8 | Python | false | false | 2,158 | py | from typing import Tuple
import abc
import numpy as np
from stats.dists.gaussian import Gaussian
from functions.function_base import FunctionBase
from ml.modeling.bayesian_modeler_base import BayesianModelerBase
class BayesianLeastSquaresBase(BayesianModelerBase):
def get_predictor(self) -> FunctionBase:
... | [
"sunghee.yun@gmail.com"
] | sunghee.yun@gmail.com |
b3371a9161743e81a68b2a0fb27d8d0fa7865ed3 | 569b47e199981f35477f6de53fb64413653d5997 | /show devices.py | ae9752e6b0f7d50a3dd40ab7e55750ca62a86ea6 | [] | no_license | joosthoi1/spotify-thing | 078bdb894e79afe6a5c00cb7c8bdb69c2bd9a8de | 12dacaa307ec7b92bfef71c047f84d2ff40ed7f1 | refs/heads/master | 2020-06-26T04:16:44.956477 | 2019-08-01T12:48:04 | 2019-08-01T12:48:04 | 199,526,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,745 | py | import tkinter as tk
import spotify_wrapper
import json
import requests
import time
class main:
def __init__(self):
self.root = tk.Tk()
with open("config.json", 'r') as file:
config = json.loads(file.read())
username = config['username']
client_id = config['clie... | [
"joosthoi1@openviza.com"
] | joosthoi1@openviza.com |
1181b1fcaa5e87e38ec926ff5331b78ffa583ba7 | ffed44c171deea0d5ef2af7d0ddcdf7e6733f32a | /sale_product_smart_buttons/models/__init__.py | daba963f5fbf01121d9e6ab8c4911c1345081c49 | [] | no_license | Chandresh-SerpentCS/SerpentCS_Contributions | bec39730be5a886a7aa59282b3cf1cc894a67b65 | 9a03deb2b43fdb3313bb96f435082a8bb81e310d | refs/heads/10.0 | 2022-03-02T02:03:05.117022 | 2020-07-28T05:47:11 | 2020-07-28T05:47:11 | 85,973,203 | 3 | 1 | null | 2017-03-23T16:38:20 | 2017-03-23T16:38:20 | null | UTF-8 | Python | false | false | 108 | py | # -*- coding: utf-8 -*-
# See LICENSE file for full copyright and licensing details.
from . import product
| [
"jay.vora@serpentcs.com"
] | jay.vora@serpentcs.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.