blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 41 | license_type stringclasses 2
values | repo_name stringlengths 7 96 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 58
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 12.7k 662M ⌀ | star_events_count int64 0 35.5k | fork_events_count int64 0 20.6k | gha_license_id stringclasses 11
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 43
values | src_encoding stringclasses 9
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 5.88M | extension stringclasses 30
values | content stringlengths 7 5.88M | authors listlengths 1 1 | author stringlengths 0 73 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f2cfdac0bc96e46353d775d7f021fc5354bcd22e | 3b94cf1bb34ceff22b20812ce9b246cb47f894c0 | /training_test.py | 9bc4caf125ae9ddad4f3718b65bf39a90d713f8b | [] | no_license | phinanix/alphamini | 99c6fa601fdef56c5d1e8e6f4c9abe6632e0c3bd | 6276fe6a701cdd4d1afb9c6b969d289c5067c3f1 | refs/heads/master | 2020-04-18T03:49:46.656180 | 2019-02-06T00:58:22 | 2019-02-06T00:58:22 | 167,214,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,317 | py | import training
import params as p
class TestTraining():
def ze_setup(self, board_size):
return training.Training(board_size)
def test_init(self):
train = self.ze_setup(9)
def test_train_loop(self):
train = self.ze_setup(p.board_size)
return train.training_loop(... | [
"seraphina.nix@gmail.com"
] | seraphina.nix@gmail.com |
961cf1c0c565b1c877863c1523434f4b65b3092f | b90a58b68d1fd0793e211ed2d2132a78b937a524 | /3828.py | fdd55858571fb644a17f875aa261bef4f3a73ca1 | [] | no_license | NikitaChevt/TSIS_3 | cb720e880ba60b4739c92010ac9881c3e256e932 | 646eab6f0859f78b7a2cb01c9721731ce3f61d42 | refs/heads/master | 2023-03-02T10:41:18.649306 | 2021-02-16T18:21:00 | 2021-02-16T18:21:00 | 339,490,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | a = input().split()
for i in range(0, len(a), 2):
print(a[i], end=" ") | [
"n_chevtaev@kbtu.kz"
] | n_chevtaev@kbtu.kz |
313d4d0d626c87adfc0d1422c55a88b2e775e0af | 885b87e985bc41b64bc56a8d75d893358408f878 | /day3.py | 9421b67d28ae63c60b6377fc034cc59cfc83df24 | [] | no_license | Hollings/Advent-of-Code-2016 | b4e921f636030d969ab4c6c7b17edc4905bfd887 | 823847cfca2c2950dbb10a12e437af22e5ccd572 | refs/heads/master | 2020-06-10T21:45:40.291539 | 2017-07-23T06:38:44 | 2017-07-23T06:38:44 | 75,864,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,095 | py | input = """810 679 10
783 255 616
545 626 626
84 910 149
607 425 901
556 616 883
938 900 621
638 749 188
981 415 634
680 557 571
523 604 270
910 954 484
464 392 514
458 52 687
696 438 832
213 583 966
572 571 922
451 42 686
177 390 688
151 ... | [
"noreply@github.com"
] | noreply@github.com |
b95c7f4ca50ce13c5d29d06f55b53d6d52f5d19b | f285adf0dffad2dbdb5fa48a3862ad26e7e51385 | /scripts/py/custom_multiqc.py | 98fc543ef3b192a932bede3f134585a31c83c6e2 | [] | no_license | crickbabs/qualityControl_byBABS | af02a661ef48a05730c6d40ae0a81ea961161190 | 61be42281a017ad370e7aa99bfee3b803d4655b7 | refs/heads/master | 2020-03-19T21:21:21.889718 | 2018-11-29T14:02:58 | 2018-11-29T14:02:58 | 136,937,320 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | from multiqc.plots import bargraph
data = {
'sample 1': {
'aligned': 23542,
'not_aligned': 343,
},
'sample 2': {
'not_aligned': 7328,
'aligned': 1275,
}
}
html_content = bargraph.plot(data)
print(html_content)
| [
"nourdine.bah@crick.ac.uk"
] | nourdine.bah@crick.ac.uk |
064e9992acc527a698e13fc86d79b5cdc471330f | 0aa53bb392975595cfcb6ca1e532cc3d7ec59a2e | /galois/field/__init__.py | 2fb0e636512699226e6a43c0fb97ad0eeddefeea | [
"MIT"
] | permissive | varun19299/galois | a31cfe83f217d6433c773add55905f69d89281fe | cd97abd08dd4bfcaafc6f61cf93718c45d244f49 | refs/heads/master | 2023-06-03T22:44:55.303349 | 2021-06-19T14:13:58 | 2021-06-19T14:41:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | """
A subpackage containing arrays and polynomials over Galois fields.
"""
from .array import *
from .conway import *
from .factory import *
from .gf2 import *
from .meta_class import *
from .oakley import *
from .poly import *
from .poly_functions import *
# Define the GF2 primitive polynomial here, not in gf2.py, to... | [
"mhostetter@users.noreply.github.com"
] | mhostetter@users.noreply.github.com |
d9a9888608bd988e9ebb46e0af07dce879c3a15f | 30fe7671b60825a909428a30e3793bdf16eaaf29 | /.metadata/.plugins/org.eclipse.core.resources/.history/13/8018e1a3a8e200161174a93fd5908e78 | bef53b89f1b6c63371a1e3091835fe5771f3dd50 | [] | no_license | abigdream84/PythonStudy | 0fc7a3b6b4a03a293b850d0ed12d5472483c4fb1 | 059274d3ba6f34b62ff111cda3fb263bd6ca8bcb | refs/heads/master | 2021-01-13T04:42:04.306730 | 2017-03-03T14:54:16 | 2017-03-03T14:54:16 | 79,123,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | #!/usr/bin/env python
#coding:UTF-8
from talk_demo.utility.MySqlHelper import MySqlHelper
class indextb(object):
def __init__(self):
self.__helper = MySqlHelper()
def __getCount(self):
sql = 'select count(*) from indextb'
row_count = self.__helper.select(sql)[0][0]
r... | [
"abigdream@hotmail.com"
] | abigdream@hotmail.com | |
08fdcbb1030cb33e77de2a52675f40c9b7bba88b | 702460d29a0ccafde1c4960db7a3408fffba1b63 | /setup.py | a947779c67cfcc805548b2ab1ff2480a6c83fb64 | [] | no_license | nandaguidotti/desafio-senai | 72daed1fc26feaf7171f28e7a4e1adf5a678d509 | e90315e6c32f254c794c5f593bce8de77f1dd640 | refs/heads/main | 2023-06-18T01:08:46.216988 | 2021-07-16T13:46:29 | 2021-07-16T13:46:29 | 385,730,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | from setuptools import setup
setup(
name='desafio-senai',
version='0.0.1',
packages=[''],
url='',
license='',
author='Fernanda Guidoti Stramantino',
author_email='',
description='Plataforma Vita'
)
| [
"fernanda.guidoti@sc.senai.br"
] | fernanda.guidoti@sc.senai.br |
e6c8ed74ef4fc35aeaf44c4999a33747e4d1a410 | 1d2149a87b694568dc8bedc41b4b39dfcf68d27e | /209. Minimum Size Subarray Sum new.py | b0bace484a6f9d38a6f1c185c26411e0a2d5fd1c | [] | no_license | jianminchen/LeetCode-IIII | 42eefecf49b3fc8e3a6c045276c0d1a8e35fc72d | d7d4aaca71c5e9d2652e56e71adfa619b7c237ad | refs/heads/master | 2021-01-23T00:15:29.369687 | 2016-08-28T20:16:31 | 2016-08-28T20:16:31 | 67,006,360 | 1 | 0 | null | 2016-08-31T05:30:53 | 2016-08-31T05:30:52 | null | UTF-8 | Python | false | false | 536 | py | import sys
class Solution(object):
def minSubArrayLen(self, s, nums):
"""
:type s: int
:type nums: List[int]
:rtype: int
"""
l = 0
r = 0
res = sys.maxint
while r < len(nums):
if l == r:
temp = nums[r]
els... | [
"noreply@github.com"
] | noreply@github.com |
19a569dca6bc779475b7a6659839701c264a87f1 | e3b0f647d50d067d9a75fa2aed5b7160f2d1b17b | /src/table/web/MockWebServer.py | faef72f512c4b474a47290eb5336592afd33547d | [] | no_license | janion/LedTable | 6eb00448c85310844635fe6acd5acb3d9d136792 | 7bac353ad6da75b25ab68cfe84e20c6c9f45a3eb | refs/heads/master | 2021-01-20T15:27:39.179368 | 2018-08-26T09:56:35 | 2018-08-26T09:56:35 | 90,772,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,329 | py | import wx
from threading import Thread
class WebServerThread(object):
def __init__(self, service):
pass
def start(self):
pass
class WebServer(object):
def __init__(self, pixelUpdater, writerFactory, patternManager):
guiThread = Thread(target=self.showWindow, args=[pixelUpdater... | [
"Janion@192.168.2.3"
] | Janion@192.168.2.3 |
9191eecaf09ed54641812f1551a562eb5ed2c50d | 1af2a0deace8f8836c57b06a3a2c7bb16d6556f7 | /Face detection/Face Detection using Haar Cascade OpenCv.py | 69ae799f82ff19cabec8130a9c69328d085bbcec | [] | no_license | AasaiAlangaram/OpenCv-Tutorials | e3ffe96c05806b1045b046dc17bc2b667bb85703 | 93799728124a66ae917574e56f6edb1490db297f | refs/heads/master | 2020-12-21T13:49:34.712094 | 2020-05-07T04:31:57 | 2020-05-07T04:31:57 | 236,448,955 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 921 | py | import cv2
# To use a image file as input
img_path = 'C:\\Users\\aasai\\Desktop\\TheHobbyists - Opencv Tutorials\\27-03-2020\\aasai.jpeg'
# load our image and convert it to grayscale
image = cv2.imread(img_path)
print(image.shape)
image = cv2.resize(image,(450,600))
# print('row,column,no.of.channels',imag... | [
"noreply@github.com"
] | noreply@github.com |
0d206ca6bfc59b8c0452663c607e72b2c20a26de | b7e5410387608dd27eab49d30e4e43ece0f8d4e1 | /djangoprojects/djmodelproject1/djmodelproject1/settings.py | 74a6f7346be2d3efb04f4947e1d25d574e9ac0a6 | [] | no_license | DhanaDhana/DhanaGit | cb0caab8a814649c4b8520f0553c1e01f76f9140 | 5eb58f11271a74ed4571e30e29470cf64e53c9ae | refs/heads/master | 2023-04-07T10:16:44.668810 | 2021-04-01T18:01:20 | 2021-04-01T18:01:20 | 264,395,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,188 | py | """
Django settings for djmodelproject1 project.
Generated by 'django-admin startproject' using Django 3.0.
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... | [
"dhanakondareddy825@gmail.com"
] | dhanakondareddy825@gmail.com |
743eaa10ff30d7a2a96df3ea09c4cfabf35a93d0 | cc40d596b02b7115bd8dc3f8fd3aa1d5d2fbb203 | /extractData_recoverTest.py | 2e1f5d9c8ed1e7c458fa544b6a8e5208f690d652 | [
"MIT"
] | permissive | OLStefan/Adversarials-1Speech-Recognition | 45ceb4681b3b9fc8938a0becad428b3eafa304dc | cf2b5a7ddeab7df5b79914ac8135d129231853b4 | refs/heads/master | 2020-04-08T23:18:38.689489 | 2019-03-25T15:04:20 | 2019-03-25T15:04:20 | 159,819,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,820 | py | import os
import numpy as np
import scipy.io.wavfile as wav
import python_speech_features
def main():
adv_dirs = ["adversarials-carlini"]
adv1_dirs = ["adversarials-carlini-alzantot_recoverTest"]
attacks = ["alzantot", "carlini"]
f = open("data_recoverTest.txt", "w+")
for folder in adv1_dirs:
... | [
"stefan.niewerth@gmx.net"
] | stefan.niewerth@gmx.net |
f50cd0d513e0cc472dcc52db46f3ac503ecddeae | 897182ab55e0a334a52bdc1be6c85b831815f5f7 | /code/required_schema_validation.py | d4bef4d2bc0c34823748d73f9c717fd45de9f53a | [
"MIT"
] | permissive | svebk/qpr-winter-2017 | e6e4e799706fb3ee996cd7772909f8bb25028975 | 3cf6eead549481591a1d83738af0e56a0ceeae56 | refs/heads/master | 2020-05-26T02:13:37.399071 | 2017-03-17T14:58:38 | 2017-03-17T14:58:38 | 84,985,058 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,116 | py | import json
import sys
# Define what team's submission is being validated
team_A_submission_file = sys.argv[1]
# Load team submission
team_A_submission = []
with open(team_A_submission_file, 'r') as f:
for line in f:
entry = json.loads(line)
team_A_submission.append(entry)
# Validate team... | [
"svebor.karaman@gmail.com"
] | svebor.karaman@gmail.com |
d0c9aceb2b2fc8886d58f4926f788c9717c77b85 | 2c3641d3456bc1a91596a06990926dcc299d4c9e | /subscription-api/subscriptions/serializers.py | a785602f0435c1940e0c515736ba431ae756e247 | [] | no_license | pavanasri-nyros/CRUD-APP-VUE-DJANGO | 67030b5a711008b091f741371f8972b704c72e36 | 79a7e47bd89b25164679433cc20edc6179d1bdc5 | refs/heads/main | 2022-12-24T23:56:29.341842 | 2020-10-02T09:41:12 | 2020-10-02T09:41:12 | 300,567,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | from rest_framework import serializers
from .models import Subscription
class SubscriptionSerializer(serializers.ModelSerializer):
class Meta:
model = Subscription
fields = ('name', 'description', 'currency',
'amount', 'created_at', 'updated_at'
) | [
"you@example.com"
] | you@example.com |
f1e44a5597af174b8da53296dcfbe9690b0c0ab1 | 2829516f0a67c59a4cf44f987ad7f2a1b56994c4 | /a/works6.py | 7c02a8210f23b9a4911ca9ae75d9364ae12d0a29 | [] | no_license | SupremeHighStar/day7_2 | 72394b04ac38df72eb663a1fb93a720d2907e604 | 1a3b0c3bd0f9e1829579ea8a53d7c20bce383a3d | refs/heads/master | 2020-03-31T21:43:34.407518 | 2018-10-11T12:52:59 | 2018-10-11T12:52:59 | 152,591,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | #!/usr/bin/env/python
# _*_ coding:utf-8 -*-
aaa = ("""
[1] aaa
[2] bbb
[q] quit
suru:
""")
sr = raw_input(aaa)
while not (sr == "1" or sr == "2" ):
sr = sr = raw_input(aaa)
if sr == "q":
break
| [
"root@localhost.localdomain"
] | root@localhost.localdomain |
f5abd043ce2d179dceafe9d4afd0067f9bc70c2d | fd7f8e803ab2c14e074f80db30410ff0e84ace55 | /backend/manage.py | 35af447178a979ea408cd408300adc0cba4ca3ae | [] | no_license | crowdbotics-apps/studentgizor-25888 | 166e7d93245e3d044f72494e62476460ecea92d6 | c0688025c71d9cd74b9c9c919e25a7b435cc52cd | refs/heads/master | 2023-04-10T03:51:05.784712 | 2021-04-23T14:24:47 | 2021-04-23T14:24:47 | 360,908,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "studentgizor_25888.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
r... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
a10d020f68a18282c47779e904610aa1abce4e3d | 58b7d7853b771a6936a744f25b8f1535bcbc2d88 | /map/projectLayers.py | 47e871f9047151631014a15cce230879c62af83f | [
"MIT"
] | permissive | avaldeon/mapqonverter | 6313eb7cef2e8cb796d78386f6d0dc576e9a4815 | cd0aa5f533194c85cf6e098fadc079ea61b63fce | refs/heads/master | 2023-08-17T14:58:30.640611 | 2021-10-12T11:12:14 | 2021-10-12T11:12:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,000 | py | # coding=utf-8
from _ctypes import COMError
from layer.layer import Layer as layerObj
import arcpy
import logging
from modules.arcGisModules import ArcGisModules
from modules.functions import change_interface
from map import brokenLayers
class ProjectLayers:
def __init__(self):
pass
@staticmethod
... | [
"peter.heidelbach@wheregroup.com"
] | peter.heidelbach@wheregroup.com |
01ed1d720e0867de156ebab1d5ecccb4b44f3ef5 | 79e1d04867c4298b23c907f92c7119e4bea8ef02 | /allennlp/allennlp/tests/data/dataset_readers/reading_comprehension/util_test.py | d33ef08720b896078d1a625f8e91b7379a10d127 | [
"Apache-2.0"
] | permissive | ethanjperez/convince | 53db0bcd978831799c68fe63ecb0c91473ec40c4 | ccf60824b28f0ce8ceda44a7ce52a0d117669115 | refs/heads/master | 2023-01-08T09:12:16.722614 | 2021-11-03T18:50:30 | 2021-11-03T18:50:30 | 205,189,291 | 27 | 8 | Apache-2.0 | 2023-01-05T22:43:12 | 2019-08-29T15:03:34 | Python | UTF-8 | Python | false | false | 3,068 | py | # pylint: disable=no-self-use,invalid-name
from allennlp.common.testing import AllenNlpTestCase
from allennlp.data.dataset_readers.reading_comprehension import util
from allennlp.data.tokenizers import WordTokenizer
class TestReadingComprehensionUtil(AllenNlpTestCase):
def test_char_span_to_token_span_handles_eas... | [
"ethanperez18@gmail.com"
] | ethanperez18@gmail.com |
9043f54961215acd4ba476c1d404a3f231dce67c | 8329485296b1e14c6e7976187285f6ed434d3c94 | /DNN-Experiments/CIFAR-10/utils.py | 7172f3a7c95ceafe1321843d57847d7e0a0bf312 | [] | no_license | jfc43/advex | 345d564062b483b6e6aa974c0c55809fe6acade6 | 61380b3053f2300ba97f510e7344312c6852644a | refs/heads/master | 2023-02-20T23:53:32.053949 | 2022-02-17T02:41:40 | 2022-02-17T02:41:40 | 240,986,952 | 5 | 1 | null | 2023-02-15T22:53:34 | 2020-02-17T00:07:40 | Jupyter Notebook | UTF-8 | Python | false | false | 7,568 | py | import numpy as np
import tensorflow as tf
import random
from skimage import feature, transform
import matplotlib.pyplot as plt
import scipy
import scipy.stats as stats
import cifar10_input
import os
import re
import sys
config_gpu = tf.ConfigProto()
config_gpu.gpu_options.allow_growth = True
EPSILON = 1e-12
MIN_INP... | [
"jfchen666@gmail.com"
] | jfchen666@gmail.com |
49b6177c144299690bb63229dccf5fa4185a5523 | c7aa2c42535d576a6a92d118f662ade3d40caa45 | /traceroute_gui.py | 31a15bdab6bf7a976f7bddf44d6288c1d170795a | [] | no_license | aheadlead/computer-network-exp | d114867b2d08834bd676da1d6bbf612e06d54ed2 | cfe6c682ed3895f168151a2176224e73a607361e | refs/heads/master | 2021-01-10T14:58:54.258586 | 2016-04-16T10:27:24 | 2016-04-16T10:27:24 | 54,172,144 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,567 | py | #!/usr/bin/env python3
# coding=utf-8
import os
import platform
import re
import subprocess
from tkinter import *
from tkinter.messagebox import *
from traceroute import traceroute
if platform.system() != 'Windows':
if os.geteuid() != 0:
print('root permission needed')
exit(1)
else:
print('ST... | [
"aheadlead@dlifep.com"
] | aheadlead@dlifep.com |
0dd49036943e741a2fbdee98d1a95cb710fc91f8 | a7924ed009c5caba90ce53095114b2e02d569beb | /gae/initializations.py | e74222f4f6f3c46f1cb1a0168d42afde7922e3fb | [
"MIT"
] | permissive | yebiro/gae | e46eb4072e827cbdba179c2a436a5a1ccd9828f1 | c64c5f7a3350951916fba4e6c9f7a8ceb6eef3f1 | refs/heads/master | 2020-04-28T03:37:10.136220 | 2019-03-14T09:00:05 | 2019-03-14T09:00:05 | 163,237,432 | 0 | 0 | MIT | 2019-02-23T04:35:13 | 2018-12-27T02:28:44 | Python | UTF-8 | Python | false | false | 607 | py | import tensorflow as tf
import numpy as np
def weight_variable_glorot(input_dim, output_dim, name=""):
"""Create a weight variable with Glorot & Bengio (AISTATS 2010)
initialization.
"""
init_range = np.sqrt(6.0 / (input_dim + output_dim))
#返回input_dim*output_dim的矩阵,产生于minval和maxval之间,产生的值是... | [
"noreply@github.com"
] | noreply@github.com |
5b52bfc91a584dbd79fd12493cc8e6987fbd0e29 | 78ea078e94589179b0d3f20ece63ac39964b54f4 | /ggplot/scales/scale_identity.py | c57d07cd68b92074b40bdd1777c1a19cd8f0d0aa | [
"BSD-2-Clause"
] | permissive | sanjaydatasciencedojo/ggpy | 5f02aae3f68ef96eb413b429e193021baba2d393 | fbc0d8b45c3dfbd47d9373c2147803931e4d1c20 | refs/heads/master | 2021-05-21T02:37:14.200013 | 2020-05-24T14:22:31 | 2020-05-24T14:22:31 | 252,505,074 | 0 | 0 | BSD-2-Clause | 2020-04-02T16:13:25 | 2020-04-02T16:13:25 | null | UTF-8 | Python | false | false | 1,712 | py | from __future__ import (absolute_import, division, print_function,
unicode_literals)
from copy import deepcopy
class scale_identity(object):
"""
Use the value that you've passed for an aesthetic in the plot without mapping
it to something else. Classic example is if you have a data ... | [
"lamp.greg@gmail.com"
] | lamp.greg@gmail.com |
c9a908bec43ce33eb5b94f3b28986723611ef5fe | 06ef163d15fab6dba2c687e66cd33f479f6e0b86 | /notifications/migrations/0003_auto_20160914_1101.py | 1f668d42b107b753f0fa5bc0a915bead298cdabd | [
"MIT"
] | permissive | datamade/django-councilmatic-notifications | e070fb2d6f5517ce7dadc5d4ee72c41345769f61 | 0aca66b9e87de40f43861460ef18fedcbaa0b986 | refs/heads/master | 2021-01-13T13:23:06.496375 | 2019-04-30T15:23:49 | 2019-04-30T15:23:49 | 72,446,217 | 1 | 0 | MIT | 2019-07-31T16:42:58 | 2016-10-31T14:47:30 | Python | UTF-8 | Python | false | false | 2,447 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-09-14 16:01
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependen... | [
"eric.vanzanten@gmail.com"
] | eric.vanzanten@gmail.com |
f78cc07c6d13734cd0d3165674411f2e057b1611 | 22a2be95a2d8f44d0345435a59b69a80386745c2 | /TextPreprocessing/clean_rtf.py | 346c1e98757980ebc6f59b81a6083318018003ab | [
"MIT"
] | permissive | shams-sam/logic-lab | 7c8533c5198c9f0f8eef96c01a08f92db816f781 | 559990b0c3d44bfe59d32dcb8038a0cab3efc26e | refs/heads/master | 2020-04-12T07:21:26.218644 | 2019-09-27T04:55:20 | 2019-09-27T04:55:20 | 63,617,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,834 | py | # reference
# https://gist.github.com/gilsondev/7c1d2d753ddb522e7bc22511cfb08676
import re
def clean_rtf(text):
pattern = re.compile(r"\\([a-z]{1,32})(-?\d{1,10})?[ ]?|\\'([0-9a-f]{2})|\\([^a-z])|([{}])|[\r\n]+|(.)", re.I)
# control words which specify a "destionation".
destinations = frozenset((
'aftn... | [
"s.shams.sam@gmail.com"
] | s.shams.sam@gmail.com |
9edfdd5e557366a726000932aa0b0dd60096780a | 51086953db896af9558655a160b13ee2056c9fde | /flaskr/blueprints/schedule.py | deef11c53daaa3f23a1a52965f5922f792f6835a | [] | no_license | gilberto96/backend-string-test | 725652d00f84029f63d3d48ddc58442c48ba8121 | 3267b9333d0c9b0e11959df50f3b966d9a11cf50 | refs/heads/main | 2023-05-02T10:35:44.021637 | 2021-05-24T21:00:51 | 2021-05-24T21:00:51 | 370,176,275 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,308 | py | import functools
from ..models.task import Task
from ..models.user import User
from ..models.responses import ApiResponse
from flask_jwt_extended import jwt_required, get_jwt_identity, verify_jwt_in_request
from ..utils import valid_datetime, str_to_date
from flask import (
Blueprint, flash, g, redirect, render_te... | [
"gilbertorojas1213@gmail.com"
] | gilbertorojas1213@gmail.com |
a75e53fd862abfcf88319f37ed95b87e48409e47 | 375ad47152e6b99120a91783f1a8c2cee36040b3 | /functions_practice/summer_of_69.py | ad362bf51bce24baf088aeb45aa6841f415ba8e8 | [] | no_license | arundhiman86/Python | c2620373cdf3944a3851888db80a851526c1a522 | a86d4c4c3e99e9197200b057742ac060f3143524 | refs/heads/master | 2020-05-31T13:51:58.881111 | 2019-06-05T03:17:03 | 2019-06-05T03:17:03 | 190,315,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | '''
SUMMER OF '69: Return the sum of the numbers in the array, except ignore sections of numbers starting with a 6 and extending to the next 9 (every 6 will be followed by at least one 9). Return 0 for no numbers.
summer_69([1, 3, 5]) --> 9
summer_69([4, 5, 6, 7, 8, 9]) --> 9
summer_69([2, 1, 6, 9, 11]) --> 14
'''
d... | [
"arun.dhiman@imaginea.com"
] | arun.dhiman@imaginea.com |
cf155c651d505d6fc6420dc0626f1c4ab2536fc9 | 5f7119aee868e29a483cc0ac057c429daf73c0e6 | /backend/settings.py | 20674a1b087c687a3b34706dc7ed278a94f2ec6d | [] | no_license | sksharma-123/deploy | 1f0040824f73b855349e558e56914d3f368ce965 | 9bb86d45265101eb55a03c256e8666ae066bedd7 | refs/heads/master | 2023-08-16T01:51:45.721099 | 2020-05-25T00:31:24 | 2020-05-25T00:31:24 | 266,531,584 | 0 | 0 | null | 2021-09-22T19:04:55 | 2020-05-24T11:59:29 | JavaScript | UTF-8 | Python | false | false | 3,257 | py | """
Django settings for backend project.
Generated by 'django-admin startproject' using Django 3.0.6.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
#... | [
"62166399+sksharma-123@users.noreply.github.com"
] | 62166399+sksharma-123@users.noreply.github.com |
04ac895d948f08d461a4a5e743c4a28362d56b19 | fc2f1d637fd2e051fb11fd8d0dfa5dc1930f94e9 | /Adversarial Robustness of Deep Convolutional Candlestick Learner/foolbox/adversarial.py | 399a19e4dd8567d3701aea001bd9e4ef19ac06cc | [] | no_license | albert0796/FinancialVision | e38cb3a738e7f5aca6cd2e315b3f93c8a0e2d8af | aa48a3b791c584f80938db8f04bbf6fa8daf984c | refs/heads/master | 2022-11-21T04:18:30.289159 | 2022-08-02T16:43:55 | 2022-08-02T16:43:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,079 | py | """
Provides a class that represents an adversarial example.
"""
import numpy as np
import numbers
from .distances import Distance
from .distances import MSE
class StopAttack(Exception):
"""Exception thrown to request early stopping of an attack
if a given (optional!) threshold is reached."""
pass
c... | [
"o1r2g3a4n5i6z7e8@gmail.com"
] | o1r2g3a4n5i6z7e8@gmail.com |
3b7bfee98ced3160b68b493d09c18113650dca3a | 46d0c6800ce7885e986856f9a46b1085a714ba52 | /1_assert.py | f2704f725d34fa90da47e32d87f6464a7778bc6b | [] | no_license | radleap/PythonTricksAndPractice | 256cdf11b8f538ca1e38ff72f2a8bd51bc9311d0 | f94cf35360628274aa306ce96aadca0836ee9b44 | refs/heads/main | 2023-07-14T19:42:39.783694 | 2021-08-24T01:48:01 | 2021-08-24T01:48:01 | 399,300,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 633 | py |
# assertions to find irrecoverable errors in a program, not to signal file not found
# meant to be internal selfchecks, by declaring some conditions are impossible in the code.
# not a mechanism for handling runtime errors.
# asserts can be globally disabled with an interpreter setting - beware
def apply_discount(pro... | [
"guy@radleap.com"
] | guy@radleap.com |
28a77e8e92f6675ff62f3a5e8cd554731297e41b | 7b33e10c09b17ed5d660dd347d6bbe6dd4805c43 | /posts/admin.py | 9e76ef529acce1bf51b69d3e925e281b544e3241 | [] | no_license | Sipho123/umnotho | 9e57f64d209d7e099aea5a2dc00ee733cfcd437e | 66ec81a1f7197f3137619179be153fa2e915e374 | refs/heads/master | 2023-04-30T04:02:28.566226 | 2021-05-24T11:55:21 | 2021-05-24T11:55:21 | 369,207,877 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | from django.contrib import admin
from .models import Post, Comment, Like
# Register your models here.
admin.site.register(Post)
admin.site.register(Comment)
admin.site.register(Like)
| [
"58542277+Sipho123@users.noreply.github.com"
] | 58542277+Sipho123@users.noreply.github.com |
42370ef4fa32c6ca643bb2ca8379cea6720204da | db4989445d079b55ffafb34af2358f27559193c3 | /Test/TestAboutBox1.py | a69c5829ac79257e417cd935358ae546bfbba9e6 | [] | no_license | TonyKing63/Python-Samples | 4e56e1f6b8b8fbb13828c43644e36743e0953fec | b827e82fc7a6e2984c49fae759b53db90e2f0c80 | refs/heads/master | 2021-09-07T10:08:59.002967 | 2018-02-21T12:31:07 | 2018-02-21T12:31:07 | 119,788,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,139 | py | #!/usr/bin/env python
import wx
import wx.adv
from wx.lib.wordwrap import wordwrap
class MyApp(wx.App):
def OnInit(self):
self.frame = wx.Frame(None, wx.ID_ANY, title='My Title')
self.panel = wx.Panel(self.frame, wx.ID_ANY)
# copy the code for the AboutBox
#--------------------... | [
"cnjzq@126.com"
] | cnjzq@126.com |
99446ab75ad240d2ac48b94dddfabc90376335bb | 4ed5876ea8e14eba3ed04e752807c950b3a4752f | /Python_Managing_Data_And_Processes_Reading_Command_Line_Arguments_and_Exit_Status.py | 253f8703f37a19e97e0f3d9943ed0d44189e9e89 | [] | no_license | ChiranthakaJ/Google-Using-Python-to-Interact-with-the-Operating-System | 0b557ef6ebc99ea59bd84ae19ac9393fcd0eb5c9 | 40ee2efc730c1bbe68d36c82fb9d50ef31fc8871 | refs/heads/master | 2023-01-05T13:08:35.214360 | 2020-11-01T10:39:15 | 2020-11-01T10:39:15 | 299,016,153 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,553 | py | #Up to now. We've seen how different programs can read from and write to standard IO streams and how the show environment can influence execution of a program. Yet another common way of providing information to our programs is through command line arguments.
#These are parameters that are passed to a program when it ... | [
"chiransj@gmail.com"
] | chiransj@gmail.com |
c33fb715afdbae144856b8334e626e548903d2ee | 331fca39c99354bb96f9f07a2309c59c34a9fb15 | /lib/python2.6/site-packages/formencode/rewritingparser.py | d568b4df9105b777a554187c0a737f5a211c2113 | [] | no_license | rudyvallejos/GestionItems | d368a940a63cae9a2e5845cdf50db6b232aa9871 | 1eb56b582f0539c883a4914ad48291941b3c6c38 | refs/heads/master | 2016-09-06T08:37:46.582041 | 2011-07-09T18:39:02 | 2011-07-09T18:39:02 | 1,662,813 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,017 | py | import HTMLParser
import re
import cgi
from htmlentitydefs import name2codepoint
def html_quote(v):
if v is None:
return ''
elif hasattr(v, '__html__'):
return v.__html__()
elif isinstance(v, basestring):
return cgi.escape(v, 1)
else:
if hasattr(v, '__unicode__'):
... | [
"rudy.vallejos@gmail.com"
] | rudy.vallejos@gmail.com |
67aa46473b39a388f276b427bc2e2b11105e32e1 | 7e34568308219ec28d68c48d828574d127ed9d3e | /Naive Bayes/Naive Bayes.py | 3455416797723805a50fc07a43667b29255882c8 | [] | no_license | WeebMogul/Senku-Sentiment-Analyzer-2.0 | d833fee3959ae793e16d17eb2ba37932f8b4c34b | d650103e94e2d89dcca689bd279828ad84f31323 | refs/heads/master | 2022-12-05T20:33:53.993585 | 2020-08-27T10:36:51 | 2020-08-27T10:36:51 | 230,595,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,107 | py | from sklearn.neighbors import KNeighborsClassifier
import nltk
import numpy as np
from nltk.corpus import stopwords
from sklearn.utils import resample,shuffle
from nltk.stem import WordNetLemmatizer
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.model_selection import train_test_split, cross_v... | [
"31620736+WeebMogul@users.noreply.github.com"
] | 31620736+WeebMogul@users.noreply.github.com |
12d6b616ec022aacd24c3af885ee2f58e9666678 | ea7a0c67718f66490da2a60f9d27e2b8adc4cd3f | /settings/staging.py | 0bbcebd763087b9351e8ca77cd97a280a37aac45 | [
"BSD-3-Clause"
] | permissive | aiaudit-org/health-aiaudit-public | 7f752d521c12830f3d57fc996d1a636ab4ad66a4 | d410f4dfe85f6fd73d73c88184675a8bb4af233a | refs/heads/master | 2023-05-28T06:24:48.852998 | 2021-06-14T11:42:07 | 2021-06-14T11:42:07 | 376,797,718 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 281 | py | from .prod import * # noqa: ignore=F405
ALLOWED_HOSTS = ["health.aiaudit.org"]
CORS_ORIGIN_ALLOW_ALL = False
CORS_ORIGIN_WHITELIST = (
"https://staging-evalai.s3.amazonaws.com",
"https://staging.health.aiaudit.org",
"http://beta-staging.health.aiaudit.org:9999",
)
| [
"elora666sdg@gmail.com"
] | elora666sdg@gmail.com |
a4a9690a3a642c4f303beb8df79c6bfb6f0a7f44 | 0911058fde531ec5b8513b6b96d436e6d2cc7819 | /goslaunchera3/show.py | c23971d62b6411a62ad4cfbecccf5242fc61195d | [] | no_license | ChristopheTdn/GOSLauncher_A3_Python_version | 6649cbd79f87d30c58285b980202e842748ea906 | 4ed1360edc961e654a2a1e1779567c4dcfd4bf80 | refs/heads/master | 2020-04-05T09:35:30.517491 | 2018-04-15T09:15:46 | 2018-04-15T09:15:46 | 81,652,408 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,167 | py | #! /usr/bin/python3
#-*- coding: utf-8 -*-
#
# Module Interface SHOW
import os
import sys
import inspect
from PyQt5 import QtCore, QtGui, QtWidgets
from . import action
def init_app_start(self):
# Gestion Profil
""" Affiche Liste Mods."""
# Mods @GOS
#genere_tab_ui(sel... | [
"Christophe.taudin@gmail.com"
] | Christophe.taudin@gmail.com |
b876964433707b9b30ea18c60f771e09750eda3b | 168556624401cd884fe0bfdac5a312adf51286a1 | /CS1430/homework5_cnns-Enmin/code/models.py | 06d01cc04f6c2169f576474746853af9239ed3e8 | [] | no_license | Enmin/Coursework | f39dc7b54a07b901491fbd809187fd54e96fa5a4 | a17d216c37e70a8073602389924af10019cfe7de | refs/heads/master | 2021-12-28T02:53:15.949547 | 2021-12-21T22:45:19 | 2021-12-21T22:45:19 | 179,909,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,371 | py | """
Project 4 - CNNs
CS1430 - Computer Vision
Brown University
"""
import tensorflow as tf
from tensorflow.keras.layers import \
Conv2D, MaxPool2D, Dropout, Flatten, Dense, BatchNormalization
from tensorflow.python.keras.layers.core import Activation
from tensorflow.python.keras.layers.pooling import GlobalAverage... | [
"zhouem14@gmail.com"
] | zhouem14@gmail.com |
f2ee0eca6e47c612025fda41b4d6a1af01d4ce64 | ff7c238dcd7c46ae5415de2ffb78a34213af9079 | /plugin.video.ardundzdf/resources/lib/zdfmobile.py | 9403defdc66b6f4039f314b098f476b9674e6a8a | [
"MIT"
] | permissive | Arkangel74/norre_kodi | e747ff2d24f5afd496f348ab23b3953a371f5a07 | b9173b1234f5620296f2d864bedda35a2fa566ac | refs/heads/master | 2022-12-02T03:23:12.533855 | 2020-08-08T12:23:57 | 2020-08-08T12:23:57 | 279,249,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,005 | py | # -*- coding: utf-8 -*-
################################################################################
# zdfmobile.py - - Teil von Kodi-Addon-ARDundZDF
# mobile Version der ZDF Mediathek
#
# dieses Modul nutzt nicht die Webseiten der Mediathek ab https://www.zdf.de/,
# sondern die Seiten ab https://zdf-cdn.... | [
"arkangel501@web.de"
] | arkangel501@web.de |
e6d07a59fdd040ca8cdccb91df0a133c1e7a3a63 | f5313a8d5596ad136040034b7fdc527016f62eb5 | /apps/forums/migrations/0001_initial.py | d60d5e50d47ab387e34e804b802844efaec2bff1 | [] | no_license | Joel1210/FFF | c2e78d4bb800b6bef62346f0582014e894c6422b | 06849f510bfe3711ec436b5e77dd722f5cbb39e8 | refs/heads/master | 2020-07-14T07:18:55.528900 | 2019-09-12T00:33:10 | 2019-09-12T00:33:10 | 205,270,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,515 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2019-09-10 00:45
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('user', '0001_initial'),
]
operat... | [
"joelc1210@gmail.com"
] | joelc1210@gmail.com |
a95438a0547922a1c0bde8140faf1eb16abe9ca3 | a88e486c3be855554e8c9998766869a19a4e0635 | /exercises/branch_and_cut/OrTools.py | 5fcbde53871313aa47ac6c3c244be707d71b2994 | [] | no_license | DXV-HUST-SoICT/Combinatorial-Optimization | 03559786a36f66f10742e3a0c520a3369e96a065 | 67c326635bb4245e3dd9819ea9704c37bb9635d3 | refs/heads/master | 2021-03-17T12:59:51.141027 | 2020-06-09T17:42:41 | 2020-06-09T17:42:41 | 246,992,799 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,658 | py | from ortools.linear_solver import pywraplp
from ortools.algorithms import pywrapknapsack_solver
from Utils import *
def solve_knapsack(profits, weights, capacities):
solver = pywrapknapsack_solver.KnapsackSolver(pywrapknapsack_solver.KnapsackSolver.KNAPSACK_MULTIDIMENSION_BRANCH_AND_BOUND_SOLVER, '.')
solver.Init(li... | [
"vuong.1998@gmail.com"
] | vuong.1998@gmail.com |
9f01e7dd00ca2ee5f7e61291939718d683efc021 | 146fa299cc69a7b270091196cfc8b9eb9f7254d6 | /yixie/aixie/web/httpclient.py | 5c60195ff511cc18ce8a855312ad6880da202eae | [] | no_license | Tyler-D/Zfile | 1e52846cb181ba4acad83b5c0c44e491433e44dd | 3f6e53ef06d6ef3a54294652a437fde1a6b32626 | refs/heads/master | 2021-01-10T15:17:38.397728 | 2015-10-25T08:20:09 | 2015-10-25T08:20:09 | 44,509,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,792 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import logging
import urlparse
import urllib2
import urllib
import time
import httplib
import gzip
from io import BytesIO
class HttpClient(object):
def __init__(self):
pass
def get(self, url):
headers = self.set_headers(url)
req = urllib2.... | [
"tylerzy@foxmail.com"
] | tylerzy@foxmail.com |
e469816da35bd150ece0491cbea9416b2a5526c4 | 8997a0bf1e3b6efe5dd9d5f307e1459f15501f5a | /selenium__examples/avito_ru__auth.py | a15a761817b43084b6816bd114195806249ea93e | [
"CC-BY-4.0"
] | permissive | stepik/SimplePyScripts | 01092eb1b2c1c33756427abb2debbd0c0abf533f | 3259d88cb58b650549080d6f63b15910ae7e4779 | refs/heads/master | 2023-05-15T17:35:55.743164 | 2021-06-11T22:59:07 | 2021-06-11T22:59:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,198 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = 'ipetrash'
# pip install selenium
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
LOGIN = '<LOGIN>'
PASSWORD = '<PASSWORD>'
driver = webdriver.Firefox()
driver.implicitly_wait(10)
try:
driver.get('https://www.avito.ru... | [
"ilya.petrash@inbox.ru"
] | ilya.petrash@inbox.ru |
cb732ce27bdc64dc250a8ce424c69405d7ef3f93 | f9bbece937df5f35b91db53e286588a213a490eb | /manage.py | a3c408be87c6198a0e20b0428526e07251bf2145 | [] | no_license | lostab/zhaoyu | be399df4d2261104c0dc043efdbd3d8c511c5b31 | cbdc7157650115683a7b0c2c58776b80d4b01eaf | refs/heads/master | 2020-03-26T03:47:36.854081 | 2018-08-25T16:05:21 | 2018-08-25T16:05:21 | 144,470,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "cfg.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are you ... | [
"lostab@gmail.com"
] | lostab@gmail.com |
8cf312544a236a29d110b2e3fe1038d5636d3fd7 | 2cf2e2ea3355a641e590aa7f42e7701f186c777d | /agents/ag1/environment.py | 3d080f0800f4abcbf2d87de5ca58b65346dc1afe | [] | no_license | lucaskup/pythonStudy | 07fb23dc2a0531b2542ea21cbf68b6ff93115f6d | 615e3db6f93e3598bd3ffcf33a716256ed8bf6e7 | refs/heads/master | 2021-01-12T04:50:51.582452 | 2017-07-25T00:59:47 | 2017-07-25T00:59:47 | 77,802,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,567 | py | import random
import time
import curses
class Environment:
def __init__(self):
self.agents = []
#1 home, 2 dirty, 3 barrier
self.ground = [[0,0,2,0,0,2],[0,3,0,0,0,2],[0,0,2,0,3,3],[0,2,3,0,0,2]]
self.home = (0,0)
self.agents.append(VcAgent([False,False,True]))
self... | [
"lucas.kup@gmail.com"
] | lucas.kup@gmail.com |
59b23884360d446824b9011505eb87109ca2c183 | 6832f0571141829c7c9ebee4c7bfd8023ba66947 | /pythonChallenge/brute.py | a1e580fe5065cec214ce8b1d2b9e3ec193ee1330 | [] | no_license | LordMelkor/Misc-Projects | 6b1002413fb537271c3eb1a829c564a51d00f04b | 5ff40ce9d9332dd396791ea676499576a1035cca | refs/heads/master | 2021-05-15T21:14:01.926929 | 2017-03-14T20:59:02 | 2017-03-14T20:59:02 | 41,235,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,269 | py | import numpy
import math
def countChainsBrute(perm):
N=len(perm)
sol = [None] * N
cnt = 0
max_cnt=0
i=1
while i <= N:
x = perm[i-1]
if x==1:
if sol[0]==None:
cnt=cnt+1
sol[0]=1
if sol[1]==None:
sol[1]=0
... | [
"KrishanuAR@gmail.com"
] | KrishanuAR@gmail.com |
e51904f05da5fdc6deeb4b75043d5003bb768f65 | 2f34af2319ebf175c89dc621aef17289d647b8fd | /firstperson/forms.py | c6bf83f50800ea806638a7cc6b0fc394b848f5d3 | [] | no_license | rouxpz/vcarddiaries | 9b1b913c5594be78d32f7516b94182a337068391 | edf6abea8c7c9ea5eba03e8737a09fe5a503a710 | refs/heads/master | 2021-01-18T14:22:11.582112 | 2015-11-24T23:16:22 | 2015-11-24T23:16:22 | 38,317,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,597 | py | from django import forms
from firstperson.models import Story, Tag
from django.utils.translation import ugettext_lazy as _
from django.forms import Textarea
class StoryForm(forms.ModelForm):
demo_tags = forms.ModelMultipleChoiceField(queryset=Tag.objects.filter(tagtype="Demographic"), required = False, widget=forms.... | [
"roopa.vasudevan@gmail.com"
] | roopa.vasudevan@gmail.com |
68530cdbb3848427a394e2df31ba3f78117342b6 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_aliases.py | e7e1e5df2aa19b5e53c435d7f0439abced176273 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py |
from xai.brain.wordbase.nouns._alias import _ALIAS
#calss header
class _ALIASES(_ALIAS, ):
def __init__(self,):
_ALIAS.__init__(self)
self.name = "ALIASES"
self.specie = 'nouns'
self.basic = "alias"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
5aeeb71951326b0c5941e510866c58f1a6b7cf13 | 6d6381f51dfce72d99b92c13211017a3158d6aec | /alien_space1.py | 5f78ed1870f411019b7742bc8b4e5961a1335bb4 | [] | no_license | SubbulakshmiRS/SpaceInvaders-game | 78d0a97ce5ab80dde70f89ce2e45d9d042c08270 | eb520dfa16b2d40c216392d4d56c04a1d82cf694 | refs/heads/master | 2020-03-26T22:04:51.320232 | 2018-08-20T16:52:40 | 2018-08-20T16:52:40 | 145,430,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | import curses
import time
from random import randint
al1 = []
c1 = 0
class Alien:
marker = "a"
def __init__(self, win):
self.a = {0: len(al1), 1: time.time(), 2: 1,
3: randint(7, 8), 4: randint(1, 8), 5: self}
win.addch(self.a[3], self.a[4], self.marker)
al1.appe... | [
"rssubbulakshmi16@gmail.com"
] | rssubbulakshmi16@gmail.com |
4ed00e32deb9870dd4095b513bfc0475f66f7712 | f87f51ec4d9353bc3836e22ac4a944951f9c45c0 | /.history/HW04_20210712145313.py | 21381b494f09ac65def9817776c8924b1bff9179 | [] | no_license | sanjayMamidipaka/cs1301 | deaffee3847519eb85030d1bd82ae11e734bc1b7 | 9ddb66596497382d807673eba96853a17884d67b | refs/heads/main | 2023-06-25T04:52:28.153535 | 2021-07-26T16:42:44 | 2021-07-26T16:42:44 | 389,703,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,553 | py | """
Georgia Institute of Technology - CS1301
HW04 - Lists
and Tuples
Collaboration Statement:
"""
#########################################
"""
Function Name: roadTrip()
Parameters: state (str), list of tuples (list)
Returns: list of crops (list)
"""
#########################################
#####... | [
"sanjay.mamidipaka@gmail.com"
] | sanjay.mamidipaka@gmail.com |
2fa6bf616d34e7f91f258fa297cc9b2f225ad2e0 | 41ad4dd833d1398248a5a9ec3d487b0819c00b9d | /jump7.py | f150ce896ea9517b94bf1d3c69410466915e3f84 | [] | no_license | teasunyehu/shiyanlou-code | 94afac3a1c243e10c453fd5111c7d9f4a900dfd0 | 0272b6efe694c2b68dd6468de4b3a39855d4feac | refs/heads/master | 2021-05-27T09:16:36.221171 | 2020-04-09T02:29:17 | 2020-04-09T02:29:17 | 254,244,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | a = 0
while a <= 99:
a += 1
if a == 7 or a % 7 == 0 or a % 10 == 7 or a // 10 == 7 :
continue
print(a)
| [
"191233295@qq.com"
] | 191233295@qq.com |
ba9896d2388077bda603c2adcaae245266dab302 | ceaf22335d084eae5d8a30a96bc1e0b7e3ba6de7 | /cst_test.py | ca511ed7f0ef00923033fc6f66030cfc7cb71009 | [] | no_license | zhouhuaman/myhelloword | bb433ccf70f641cdc3118ae283a0e21675ecafd2 | 1bf843176866945d5994de89ad40623f4a924869 | refs/heads/master | 2023-06-23T11:43:59.749596 | 2021-07-22T02:57:31 | 2021-07-22T02:57:31 | 112,067,518 | 0 | 0 | null | 2017-11-26T09:00:27 | 2017-11-26T08:31:50 | null | UTF-8 | Python | false | false | 536 | py | import csv
open_file = False
while(not open_file):
file_name = raw_input("what file?:")
try:
print file_name
fobj = open(file_name,"rU")
open_file = True
except IOError:
print "Error,try again"
f_csv = csv.reader(fobj)
sheet = []
for row in f_csv:
sheet.append(row)
print sheet
fobj.close()
sheet[2][2] = "5... | [
"zhouhuaman@163.com"
] | zhouhuaman@163.com |
1660014fd32371318d387037c1082ab24fa41efb | 632d58bb602f379b78ee07b58baf27627fb496d3 | /numbers.py | 17fdc5d0d2221054e51630b18f07eeba3ea435a4 | [] | no_license | Ravi4teja/Python_classes | 152982f38c53c48edae4865a16a75e21ac3015c8 | 65f5944c52be005a7db7b6eb3cdd885691ce62b0 | refs/heads/main | 2023-07-03T03:02:26.696532 | 2021-08-10T16:57:28 | 2021-08-10T16:57:28 | 380,787,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,582 | py | num1 = 44
num2 = -33
num3 = 2.376
num4 = -84.34
#checking the type of variable
print(type(num1))
print(type(num3))
#incrementing by 1
num1 = num1 + 1
num2 += 1
print(num1)
print(num2)
# Arithmetic Operators:
# Addition: +
# Subtraction: -
# Multiplication: *
# Division: /
# Floor Division: //
# Exp... | [
"pannururavi@gmail.com"
] | pannururavi@gmail.com |
e52790419eb48a31225e703c28341c82aaa55339 | 45b64f620e474ac6d6b2c04fbad2730f67a62b8e | /Varsity-Final-Project-by-Django-master/.history/project/exams/views_20210402160641.py | 822b88dd698f64df5a52198751b98f1cc04951c4 | [] | no_license | ashimmitra/Final-Project | 99de00b691960e25b1ad05c2c680015a439277e0 | a3e1d3c9d377e7b95b3eaf4dbf757a84a3858003 | refs/heads/master | 2023-04-11T06:12:35.123255 | 2021-04-26T15:41:52 | 2021-04-26T15:41:52 | 361,796,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 78 | py | from django.shortcuts import render
from exams.models import Exam
def quiz
| [
"34328617+ashimmitra@users.noreply.github.com"
] | 34328617+ashimmitra@users.noreply.github.com |
732562b79c06697b174aaa20e6baf69619d2283e | 92d4109df95629d3d3452441b1b3c16138cd154d | /console.py | 77b1cc1fb2bd9a6f507e7a106efdf161721f2c71 | [] | no_license | wadaries/cli-ravel | ffebc5ef37a93bcf749c031316fc2d5e16d04bed | 810f79b3dfa6466e9b4e9c7eeff36e6e246c5e52 | refs/heads/master | 2020-12-25T05:37:05.012824 | 2016-02-20T22:03:43 | 2016-02-20T22:03:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,759 | py | #!/usr/bin/env python
import cmd
import os
import psycopg2
import pprint
import re
import sys
import tabulate
import tempfile
from optparse import OptionParser
from mininet.topo import Topo
from mininet.cli import CLI
from mininet.net import Mininet
from mininet.log import setLogLevel
import mndeps
from db import Rav... | [
"croftbc@gmail.com"
] | croftbc@gmail.com |
4458f06e62fedb5ab9fd4048c7ac403fd89e80f3 | 0cc59d7106371cb2b5f2420f3cd103c902435f18 | /blog/migrations/0001_initial.py | 22f3f7a7a24088d1d104353670e9fc730467c22f | [] | no_license | omerolmez/django-examples | 3d4450d148ba55a6f69b65c5bfee6060646973c4 | 4685a6fc199fbcf8819ec2c70b453b6e202a6b23 | refs/heads/master | 2020-04-01T11:00:47.188790 | 2018-11-01T15:50:36 | 2018-11-01T15:50:36 | 153,142,532 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 651 | py | # Generated by Django 2.1.2 on 2018-10-25 14:12
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Blog',
fields=[
('id', models.AutoField(aut... | [
"omerolmez@gmail.com"
] | omerolmez@gmail.com |
731adf4ab422b9c3fa0ccc62c3ec54c02c6a655e | ba5c858da2515a8612c32c28392feeffeff00e80 | /DialogRE/GDPNet/constant.py | 9b21f0504e26b5a965e20759a5cd3020a2b9ad1a | [
"MIT"
] | permissive | maxxyh/dialogRE-eng-bi-lstm | 044a93b87fab18ab2889cfe964fe3e5e568e22fd | 2c0942b2f922a423dc130cfca72a8f9f2445237d | refs/heads/master | 2023-03-28T05:43:26.436950 | 2021-01-30T08:00:21 | 2021-01-30T08:00:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 982 | py | # vocab
PAD_TOKEN = '<PAD>'
PAD_ID = 0
UNK_TOKEN = '<UNK>'
UNK_ID = 1
VOCAB_PREFIX = [PAD_TOKEN, UNK_TOKEN]
NER_TO_ID = {'PER': 0, 'GPE': 1, 'ORG': 2, 'STRING': 3, 'VALUE': 4}
POS_TO_ID = {PAD_TOKEN: 0, UNK_TOKEN: 1, 'NNP': 2, 'NN': 3, 'IN': 4, 'DT': 5, ',': 6, 'JJ': 7, 'NNS': 8, 'VBD': 9, 'CD': 10, 'CC': 11, '.': ... | [
"2875902240@qq.com"
] | 2875902240@qq.com |
e4925e939eb0f95b5b4e9b0e11ec5f1632c50582 | 64576924d59bf9d901caf8aa3875e4a399cee8cd | /08/5.py | 7a2856d6c153dbc56d82cd2002a6f5dcfa49f7ac | [] | no_license | drumgiovanni/schoolPythonProject | ca5df8be858aa4dfe77ad7706b0de67e40381b13 | 6eb2e87634dafd461d6161f05c127dc347bfa61f | refs/heads/master | 2021-09-06T08:52:57.101134 | 2018-02-04T15:08:24 | 2018-02-04T15:08:24 | 111,419,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,006 | py | from tkinter import Frame, Label, StringVar, Button, LEFT, BOTTOM, TOP
import random
class LuckChallenger(Frame):
def __init__(self, master=None):
super().__init__(master)
self.pack()
self.master.title("LuckChallenger")
frame = Frame(self)
frame.pack(side=BOTTOM)
But... | [
"giovannitheworld@gmail.com"
] | giovannitheworld@gmail.com |
090e20f258a589c2cc6fa8171f2a2faa373f8fbd | 4d25363a4265e7eee4d6f3ab9c936ef1fb5260c7 | /Differential Equations in Action/Lesson 1 - Houston We Have a Problem/2-1_LunarOrbit.py | b95331c1cc2666883e346ba938a5b9f0893a3528 | [] | no_license | Aegis-Liang/Python | 0d4f303bae27c0e9a5ad29d5f570e27b3211db72 | 9dfc840e48f26932b3dd9f1d93ff0bb84c41a09e | refs/heads/master | 2021-01-15T21:31:00.374119 | 2018-05-12T15:40:34 | 2018-05-12T15:40:34 | 99,874,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 875 | py | # PROBLEM 1
#
# Modify the orbit function below to model
# one revolution of the moon around the earth,
# assuming that the orbit is circular.
#
# Use the math.cos(angle) and math.sin(angle)
# functions in order to accomplish this.
import math
import numpy
import matplotlib.pyplot
moon_distance = 384e6 # m
def orbi... | [
"algorithm_learning@163.com"
] | algorithm_learning@163.com |
a57a0e919340531dc670b3e13d1bc73133955128 | 06cda71707e5f4ac040ae89f63f00cdab48d2577 | /one-isp/generatePath.py | 5ec2f0f207e58cd0c1b83bb09c439d2998e7de95 | [] | no_license | YimengZhao/interdomain-TE | 9c4a1ef19549a39c8a7c9fecbd6a277c7d2073d4 | cc1a000c8c967a8608a0fa8bf740c5c200eb358e | refs/heads/master | 2020-03-08T11:44:08.136833 | 2018-04-04T18:54:33 | 2018-04-04T18:54:33 | 128,106,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,962 | py | # coding=utf-8
import networkx as nx
from paths import Path
def generatePathsPerIE(source, sink, topology, predicate, cutoff,
maxPaths, modifyFunc=None,
raiseOnEmpty=True):
"""
Generates all simple paths between source and sink using a given predicate.
:para... | [
"yimengz2014@gmail.com"
] | yimengz2014@gmail.com |
ee3b8c954e8599f567e76609178a26390934ccc5 | 882e8ff2b1b86b9240fde27c5e67537915982b79 | /wwt_data_formats/place.py | d9c37b34f85bf6b1a084086e6013fcda76e2344d | [
"MIT"
] | permissive | astrodavid10/wwt_data_formats | 3350d54fc3d881451c27c668d56e88a74309667f | 6bcdffd8ac7a2791803043dcbcc527d510325971 | refs/heads/master | 2023-07-16T21:20:35.397289 | 2021-08-30T21:18:04 | 2021-08-30T21:18:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,715 | py | # -*- mode: python; coding: utf-8 -*-
# Copyright 2019-2020 the .NET Foundation
# Licensed under the MIT License.
"""A place that a WWT user can visit.
"""
from __future__ import absolute_import, division, print_function
__all__ = '''
Place
'''.split()
from argparse import Namespace
from traitlets import Float, Ins... | [
"peter@newton.cx"
] | peter@newton.cx |
897f076718be403a31b350f26fa73d26170d02aa | 7727b95290484fb83674f3d03567e1f13b0b0828 | /scripts/VisualFeedback/imageFromVideo.py | 187b9181cbb65407c296ed6fe22724a7ce91ef0f | [] | no_license | Garfield-hr/ur_control | 09e60efd0bb7311305c6d4ce7bc173a6bd156b66 | 3bedf5a490232dee6619e542e43581314b765268 | refs/heads/main | 2023-06-28T16:42:54.774344 | 2021-08-03T08:53:13 | 2021-08-03T08:53:13 | 372,747,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,466 | py | import cv2 as cv
def jump_frame(frame):
global vc
vc.set(cv.CAP_PROP_POS_FRAMES, frame)
print(frame)
def cut_image():
vc = cv.VideoCapture('/home/hairui/Videos/experiments/616-2.avi')
frame_num = int(vc.get(cv.CAP_PROP_FRAME_COUNT))
cv.namedWindow('video', cv.WINDOW_NORMAL)
cv.createTrac... | [
"hairuizhu97@gmail.com"
] | hairuizhu97@gmail.com |
b7ee5a71ed7bc8f1caed4f781d14e0358892c997 | 20da942bbb9ed21e078eb3da863772f211328774 | /modules/nationstates.py | 1834e751f801c8169424375f5428fa635a0442fe | [] | no_license | embolalia/phenny | ab91c76cc26cbc91655a2d9168909061845355bc | ef1a79876466b2a7cdd32d1bc1151f56cc02b989 | refs/heads/master | 2021-04-09T16:04:25.281765 | 2011-12-22T16:54:21 | 2011-12-22T16:54:21 | 2,703,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,076 | py | #!/usr/bin/env python
"""
wa.py - NationStates WA tools for Phenny
Copyright 2011, Edward D. Powell, embolalia.net
Licensed under the Eiffel Forum License 2.
http://inamidst.com/phenny/
"""
import MySQLdb, re
wa_db = 'WA'
wa_host = 'embolalia.net'
wa_user = 'bot'
wa_pass = 'abotabot'
db = MySQLdb.connect(host=wa_ho... | [
"powell.518@gmail.com"
] | powell.518@gmail.com |
be5d4b84c3be8bdc84f67159477d3bbdc135afc4 | 2db7597686f33a0d700f7082e15fa41f830a45f0 | /Python/双指针问题/对撞对开指针/18.4Sum.py | 540b93f53f36c966de4bde8055481434fda747a8 | [] | no_license | Leahxuliu/Data-Structure-And-Algorithm | 04e0fc80cd3bb742348fd521a62bc2126879a70e | 56047a5058c6a20b356ab20e52eacb425ad45762 | refs/heads/master | 2021-07-12T23:54:17.785533 | 2021-05-17T02:04:41 | 2021-05-17T02:04:41 | 246,514,421 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,166 | py | # !/usr/bin/python
# -*- coding: utf-8 -*-
# @Time : 2020/4/16
# @Author : XU Liu
# @FileName: 18.4Sum.py
'''
1. 题目类型:
2. 题目要求与理解:
3. 解题思路:
sort 数组
四个数相加
两个数遍历
剩下两个数用左右指针
4. 输出输入以及边界条件:
input:
output:
corner case:
5. 空间时间复杂度
时间复杂度:O(N**3)
'''
class Solution:
def fourSum(self, ... | [
"58391184+Leahxuliu@users.noreply.github.com"
] | 58391184+Leahxuliu@users.noreply.github.com |
62e922bb562a9a8d23cb72bd2a904e56d95e7483 | 187012b06bfcf21cbb46073fd44de179ab912f1d | /tests/subject_tests.py | b2bfd0eae57056ce1df1778ad7b2ac8f0616806e | [] | no_license | frogwang92/PyAria | 11af3612e92868602d235c2af257460916a4a613 | 8832c30ba5aa1e8bd0bbce228641410b82c11cd9 | refs/heads/master | 2020-07-05T14:54:51.945253 | 2016-12-16T08:55:19 | 2016-12-16T08:55:19 | 73,889,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 947 | py | import subject
class Observer(object):
def __init__(self):
pass
def notify(self, args):
print("obs notified, args: {}".format(args))
class Engine(subject.Subject):
def __init__(self):
super(Engine, self).__init__()
self.test_event = subject.Event()
def update_event... | [
"frogwang92@gmail.com"
] | frogwang92@gmail.com |
16bb9fa7dfc2b669f3e750919b9beb5ea8a50a14 | 9302eafa1ab9e78360e70bcad4f2047d0216e03d | /13_wordcount.py | 1bacbc83621c530b6e361372e023b68e46651294 | [] | no_license | raul-gomes/welcome_to_the_django | ad9ed34caecb7fb83c36f03594fe3e78372b692f | 225f98101b83a0fad41c81504cfd16af1696ee20 | refs/heads/main | 2023-01-02T09:32:51.975389 | 2020-10-18T01:02:59 | 2020-10-18T01:02:59 | 304,969,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,696 | py | """
13. wordcount
Este desafio é um programa que conta palavras de um arquivo qualquer de duas
formas diferentes.
A. Lista todas as palavras por ordem alfabética indicando suas ocorrências.
Ou seja...
Dado um arquivo letras.txt contendo as palavras: A a C c c B b b B
Quando você executa o programa: python wordcount... | [
"rsgomes86@hotmail.com"
] | rsgomes86@hotmail.com |
d7cff6064fd3675250a054d0a97560cc60ad5a33 | a02a16d74e80de358b21c70c12b1e10975ab3a6d | /phase_4/views/resources.py | 452ef18011717ac1b8ee4ac6cb50712e096e9020 | [] | no_license | wentaoxu415/fizz_buzz | e0a182f6486fd79060895e262259a4ce776d9724 | 147ce15422e72b66c34fe54880aaf8ab6cf2cade | refs/heads/master | 2021-01-10T01:38:57.252322 | 2018-04-23T04:02:17 | 2018-04-23T04:02:17 | 47,909,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,875 | py | from flask.views import MethodView
from flask import request, redirect, url_for, render_template, jsonify
import arrow
from twilio import twiml
from twilio.util import RequestValidator
import os
class ResourceIndex(MethodView):
def get(self):
from schedules import db
from models.record import Recor... | [
"contactwentaoxu@gmail.com"
] | contactwentaoxu@gmail.com |
81b19ded9589da061696c626c395682a5e23a71d | 8719599ea52299e0568fad18df2312981009bed8 | /prepare/create_hdf5_trainext.py | 43043361e77530ff40f1caa92d6b725d7ad00c14 | [
"MIT"
] | permissive | tiancheng-zhi/ms-powder | 674bc76f9ffe3fe95142d516438d351ed55c361f | 0d4ce21e811e65ca0c225d635a3aa70fe872d33a | refs/heads/master | 2021-10-13T13:49:14.732364 | 2021-10-10T04:50:54 | 2021-10-10T04:50:54 | 178,933,590 | 25 | 8 | null | null | null | null | UTF-8 | Python | false | false | 1,127 | py | import h5py
import numpy as np
import cv2
from pathlib import Path
if __name__ == '__main__':
data_path = Path('../data/trainext/')
real_path = Path('../real/')
n_scenes = 64
height = 160
width = 280
n_channels = 38
h5f = h5py.File(str(Path(real_path / ('trainext.hdf5'))), 'w')
dset_im... | [
"tzhi@cs.cmu.edu"
] | tzhi@cs.cmu.edu |
cec7e9242ae9d503fe19e9d929ef7b73027674e0 | 96a1d2ef91c2085b741cb8d9222553fd25246701 | /bag/views.py | dd40a8329c5322abfce4c585706409c5306a08db | [] | no_license | Code-Institute-Submissions/fitness3 | d364d392f9df273b65b304cda6671e043dacf7ef | c2d71dd7b08412d20be8a6c4486603c940e1fbe0 | refs/heads/master | 2023-02-08T13:16:46.373286 | 2020-12-31T22:53:15 | 2020-12-31T22:53:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,890 | py | from django.shortcuts import render, redirect, reverse, HttpResponse, get_object_or_404
from django.contrib import messages
from products.models import Product
# Create your views here.
def view_bag(request):
""" A view that renders the bag contents page """
return render(request, 'bag/bag.html')
def add... | [
"pw325555@gmail.com"
] | pw325555@gmail.com |
c56db88c7cfd6bc59d54dd79fe54c84237d82434 | 48638367bf80d0a66dc620c91311fa826d251361 | /clients/beers.py | 2e1016b618e8f79e248682cd3a69b98e6c0786b3 | [] | no_license | batetopro/beers | f3587ba77c0a9cd64adcef026ec067b3145cb52d | fd35e2bb6d1501110bf978ae51fff5910dfc631e | refs/heads/master | 2022-11-20T22:57:52.676312 | 2020-07-16T13:03:18 | 2020-07-16T13:03:18 | 277,605,808 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,698 | py | from datetime import datetime
from flask import current_app as app
import requests
from beers.settings import Settings
class BeerClient:
def __init__(self, api_url=None):
self.api_url = api_url or Settings.FLASK_SERVER_NAME
def list(self):
url = 'http://{}/api/beers'.format(self.api_url)
... | [
"hristo.i.georgiev@gmail.com"
] | hristo.i.georgiev@gmail.com |
a92ff6aed160b8ba81e659701cf2093c1ef42302 | 187a6558f3c7cb6234164677a2bda2e73c26eaaf | /jdcloud_sdk/services/streamcomputer/models/Namespace.py | 7401dbf1cd24e0d952a524b8a717f8651ba9d04a | [
"Apache-2.0"
] | permissive | jdcloud-api/jdcloud-sdk-python | 4d2db584acc2620b7a866af82d21658cdd7cc227 | 3d1c50ed9117304d3b77a21babe899f939ae91cd | refs/heads/master | 2023-09-04T02:51:08.335168 | 2023-08-30T12:00:25 | 2023-08-30T12:00:25 | 126,276,169 | 18 | 36 | Apache-2.0 | 2023-09-07T06:54:49 | 2018-03-22T03:47:02 | Python | UTF-8 | Python | false | false | 1,818 | py | # coding=utf8
# Copyright 2018 JDCLOUD.COM
#
# 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 ... | [
"oulinbao@jd.com"
] | oulinbao@jd.com |
0431fc4c60c2e3808d81f4546cc607af77e8a283 | c4c7fa5a04b083ad6ca38933a1b261e627cdcc98 | /CNN/CNN.py | becd9dda6acd739352cf79d1feccc380f4dab699 | [] | no_license | MasatoNagashima/Lissajous_Curves | 636ac5a2001122cd26e7ff8c166ab5c76b0844a4 | a7b047e7796c8b5206c4f0dbf30cdcdd02eb2a80 | refs/heads/master | 2023-06-24T00:28:59.459382 | 2021-07-21T09:15:56 | 2021-07-21T09:15:56 | 388,049,518 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,221 | py | import numpy as np
import matplotlib.pyplot as plt
import torch
#data
def normalization(data, indataRange, outdataRange):
data = data.astype(np.float32)
data = ( data - indataRange[0] ) / ( indataRange[1] - indataRange[0] )
data = data * ( outdataRange[1] - outdataRange[0] ) + outdataRange[0]
return da... | [
"yuuoumaishin@akane.waseda.jp"
] | yuuoumaishin@akane.waseda.jp |
c0a7f4fd9d1be8d04249ec15c739c154577d96e7 | b1aab1ec361d7ac27f58a4ed1b73a28ffbd4ee75 | /omniWheelCareRobot/rosCode/src/carebot_navigation/nodes/paper.py | 4beb44481ea4005d54e55eb745db80d3c43d2b1f | [] | no_license | nkc3g4/ROS_Service_Robot | b98ad7443cba59a827d538cbf873c871923f3333 | c7aa68b628af522fd87181a2dc983bead98fb96c | refs/heads/master | 2023-03-15T21:11:08.067278 | 2023-03-13T08:16:59 | 2023-03-13T08:16:59 | 206,118,089 | 3 | 0 | null | 2023-03-13T08:17:00 | 2019-09-03T16:05:25 | HTML | UTF-8 | Python | false | false | 10,334 | py | #!/usr/bin/env python2
################################################
# Copyright(c): 2016-2018 www.corvin.cn
################################################
# Author: corvin
################################################
# Description:
# four destination postion auto navigation.
#############################... | [
"tianchang.li@ucdconnect.ie"
] | tianchang.li@ucdconnect.ie |
072d4ae4b97300e00616bfcfe2bf5f5bda776c67 | 4cb5bc85920617f0c99a0f417ab8cc8ca974dda6 | /controller/modules/UsageReport.py | b12acd5bef504060b4b8b5584f89f1986e426fe7 | [
"MIT"
] | permissive | saumitraaditya/modifiedControllers | 57d73be1a14859ad3d419dc1bb5f06ae4418db51 | ffd5078c64df2aa983c49be5a7f230196afe6ec3 | refs/heads/master | 2020-03-16T22:32:18.588196 | 2018-05-11T13:27:49 | 2018-05-11T13:27:49 | 133,042,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,238 | py | # ipop-project
# Copyright 2016, University of Florida
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, ... | [
"saumitraaditya@gmail.com"
] | saumitraaditya@gmail.com |
18148aac1e2cf76a8922cb4bf5e3b01d452bc36d | da6fd64b34a99eb1f40558354c13e657d77e110b | /TMalign_index.py | 301908d0c88527e3c9d5740cfc6b7b8ef1387cff | [] | no_license | uagaug/DeNovoHeterodimers | 35566625df94220a963d8b0ac6160f6e0f4f2295 | 0614c43f1b0500accef84cf24521cfde1464e61b | refs/heads/master | 2020-03-16T05:27:54.672811 | 2018-12-15T00:10:23 | 2018-12-15T00:10:23 | 132,532,839 | 8 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,056 | py | #!/usr/local/bin/python2.7
#get the alignment regions for TMalign of heptads
import os
from os import system,popen
import itertools
from sys import argv
import math
import numpy as np
import re
# import csv
# import matplotlib.pyplot as plt
#find indicies of all the letters, and deduce indicies of the starting points
... | [
"noreply@github.com"
] | noreply@github.com |
6b2624156474b14ccd1d1f09d73956b62ae4b0be | 3343c4e998f7748f6a5f9fb198baa798ede3cee0 | /python/video processing/chap11/header/paint_init.py | ae5a5a82e6242d6553fec55ab830174272aa20b9 | [] | no_license | jwo29/prj | c8bf028d63c255ba95814cdaf5a1303ee8c19256 | 6e7d5cefa36ae47ffea167e21f2ff926eda6008f | refs/heads/main | 2023-08-30T03:07:36.730416 | 2021-10-17T16:39:19 | 2021-10-17T16:39:19 | 406,631,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 883 | py | """
그림판 프로그램 > 그리기 상수, 일반 명령 상수, 팔레트 관련 상수 정의
"""
DRAW_RECTANGLE = 0 #사각형 그리기
DRAW_CIRCLE = 1 # 원 그리기
DRAW_ECLIPSE = 2 # 타원 그리기
DRAW_LINE = 3 # 직선 그리기
DRAW_BRUSH = 4 # 브러시 그리기
ERASE = 5 # 지우개
OPEN = 6 # 열기 명령
SAVE = 7 # 저장 명령
PLUS = 8 # 밝게 하기 명령
MINUS ... | [
"jwo2955@gmail.com"
] | jwo2955@gmail.com |
7869e3b06a1fe31f15537a98e1d56fe63d6bfa77 | 58141d7fc37854efad4ad64c74891a12908192ed | /config/hawaiikai/node_013.py | 029989029620006785eb18681f78af4d8275b9fa | [] | no_license | stanleylio/fishie | b028a93b2093f59a8ceee4f78b55a91bb1f69506 | 0685045c07e4105934d713a0fd58c4bc28821ed6 | refs/heads/master | 2022-08-14T13:08:55.548830 | 2022-07-29T01:32:28 | 2022-07-29T01:32:28 | 30,433,819 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,061 | py | name = 'Water Level'
location = 'Hawaii Kai, Miloli\'i'
google_earth_link = '#'
note = 'Ultrasonic tide gauge (XBee). 1Hz measurements; each transmission is average of 60 measurements. Firmware us11c, hardware v5.0.'
latitude = 21.287222
longitude = -157.717500
conf = [
{
'dbtag':'d2w',
'unit':'mm'... | [
"stanleylio@gmail.com"
] | stanleylio@gmail.com |
1a965afb565c818f80100ac349ddad05542bc987 | 9d4bde3947edc11ba87d06068581c6a91696e8e6 | /chapter_04/property_tax.py | 93861eceff88c33d202efb0d679faab2fd36f7a3 | [] | no_license | zanariah8/Starting_Out_with_Python | e6d8c6cbd187043160c6408fc4ac5f47c35e7c57 | 92751fde462683c9d62934409fa469ccddc1d519 | refs/heads/master | 2020-04-23T20:38:13.712144 | 2019-02-18T20:24:15 | 2019-02-18T20:24:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | # this program displays property taxes
tax_factor = 0.0065 # represents the tax factor
# get the first lot number
print("Enter the property lot number ")
print("or enter 0 to end.")
lot = int(input("Lot number: "))
# continue processing as long as the user
# does not enter lot number 0
while lot != 0:
# get th... | [
"noreply@github.com"
] | noreply@github.com |
78ee1babe2ac3fb5103e70a8b6f52a367f0ce41b | 2e3ab830367b0d2e0fe5020c440cb83b685bd0af | /day12/maoyan/maoyan/spiders/maoyan_spider.py | d859eb00c29712f746d713869dcda9aba72216a1 | [] | no_license | KD-huhu/py_spider | 9dfde678b814b9dcfd2452f8fb1266eeb3f7ce26 | e62dea6d2a7315d2160f44f45c4b368d85cea770 | refs/heads/master | 2022-06-10T10:31:20.646414 | 2020-05-08T08:59:52 | 2020-05-08T08:59:52 | 261,740,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,820 | py | # -*- coding: utf-8 -*-
import scrapy
from maoyan.items import MaoyanItem
class MaoyanSpiderSpider(scrapy.Spider):
name = 'maoyan_spider'
# allowed_domains = ['www']
start_urls = []
# 分页做法
for i in range(10):
base_url = 'https://maoyan.com/board/4?offset=%s' % (i*10)
start_urls.ap... | [
"1176315241@qq.com"
] | 1176315241@qq.com |
0378ca63bfa27a31cc8356cbe802518a596d4281 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5738606668808192_1/Python/Cerezo/2016QC-L.py | c1a1c48dc2ac38b824498c9448e21f605f802895 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,438 | py | from math import sqrt
def merge(ev, od):
return ''.join(item for tup in zip(ev,od) for item in tup)
def Next(N, J):
coins = []
# generate jamcoins with 6 | sum a_i and 21 | sum (-)^i a_i
# automatically divisble by 3, 2, 3, 2, 7, 2, 3, 2, 3, unless sum a_i divisible by 30 (then 5 replaces 7)
# so ... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
8c6af40819bd160ac8b36e5b40e2fac79332cb14 | bfca0915e74089d878ac8cd7dd7c85b785676cbd | /user.py | 88f0bcec4f47ae1006f4b9d58dc3c4e6b2845040 | [
"MIT"
] | permissive | Lourine/Password-Locker | c950464f508b0b073e6aae1f41864ed60899f5f0 | abacf65f15f09e778a74a506999735ee23ba589f | refs/heads/master | 2022-12-13T14:16:24.981747 | 2020-09-07T14:22:35 | 2020-09-07T14:22:35 | 292,849,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,023 | py | import pyperclip
class User:
"""
User class that generates new instances of a User
"""
user_list = [] #empty User List
def __init__(self, user_name, password):
self.user_name = user_name
self.password = password
def save_user(self):
"""
Save User Method saves ... | [
"lourine.millicent@gmail.com"
] | lourine.millicent@gmail.com |
0dc91839dcead6fd88a1235c61ea296a0e3aa682 | e162a2993d32bec5e479a30572e691ef958c5274 | /fiscalite/wizard/etat_report_wizard.py | 0df56e8f092843c5b6da2d7bdcb5dfa64ef307b7 | [] | no_license | ly2ly/declaration-ci | 221990a7e8eb92f17c1c308b992661563c99eba7 | 41deef161b5cab3b19794a9639b67a32ecf7db4a | refs/heads/master | 2020-03-22T02:26:33.226824 | 2018-07-01T23:50:59 | 2018-07-01T23:50:59 | 139,370,660 | 2 | 0 | null | 2018-07-01T23:44:58 | 2018-07-01T23:44:57 | null | UTF-8 | Python | false | false | 589 | py |
from openerp.osv import osv, fields, orm
class etat_report_file(osv.osv_memory):
_name = 'etat.report.file'
def default_get(self, cr, uid, fields, context=None):
if context is None:
context = {}
res = super(etat_report_file, self).default_get(cr, uid, fields, context=context)
res.update({'fi... | [
"noreply@github.com"
] | noreply@github.com |
6434bbf86cc1e36917716979de56e2265cda788e | 0186c056063e614fede210e242901dff9f16f64d | /pybo/urls.py | 516e4af8ba10eb77fc1f56f8a606bb2705240de8 | [] | no_license | DA-97/Django_Practice | 323606e3e2e9a13ea86101312aa89ef86acd6ba9 | d6dbdfd97f9165534f76437e169c079864f865cc | refs/heads/master | 2023-05-10T04:13:16.267700 | 2021-06-11T09:16:19 | 2021-06-11T09:16:19 | 375,540,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,583 | py | from django.urls import path
from .views import base_views, question_views, answer_views, comment_views
app_name = 'pybo'
urlpatterns = [
path('', base_views.index, name='index'),
path('<int:question_id>/', base_views.detail, name='detail'),
path('question/create/', question_views.question_create,... | [
"dong@gmail.com"
] | dong@gmail.com |
368ba6e4f4eac521b082474e8135226995779545 | fa21bc693911f21224fd6017b986407f236859de | /setup.py | 32679b1b16e7ae7619e5b0b9d144388b30b103d3 | [] | no_license | cessor/blockhosts | 1e6e5d220bc99498f8a9f893518f4f7d9c0b4563 | 5ed28cb54333cc4662c08d226d2b8425bdce0286 | refs/heads/master | 2020-03-18T08:39:04.963792 | 2018-07-21T14:54:16 | 2018-07-21T14:54:16 | 134,521,165 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | #!/usr/bin/env python
from distutils.core import setup
setup(
name='blockhosts',
version='1.0',
description='Blocks Hosts',
author='Johannes Hofmeister',
author_email='py_blockhosts@spam.cessor.de',
url='https://github.com/cessor/blockhosts/',
packages=['blockhosts'],
tests_require=[... | [
"github@account.cessor.de"
] | github@account.cessor.de |
8f5a220f757b3631c5b6e287696fadd3c2a710a4 | f3df657de524f61370be256b9d1f35c6fd48ec65 | /OA/urls.py | 0c6c3daefcb3dc6b94f64c2ed31c471fecc84205 | [] | no_license | caiwenshi/oa | b97cfa0e4f6c90732f72e50d534661f19a5b8b70 | 5d0690ebfb935eedddaf3415c831019e6a2ff830 | refs/heads/master | 2021-05-13T21:26:48.522716 | 2018-01-06T07:18:00 | 2018-01-06T07:18:00 | 116,461,075 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^login$', views.login, name='login'),
url(r'getemployeeinfo/(.+)', views.process_get_employee_info, name='process_get_employee_info'),
url(r'getprojectinfo/(.+)', views.process_get_project_info, name='process_get_project_info'),
... | [
"caiwen.shi@meritco-group.com"
] | caiwen.shi@meritco-group.com |
d86f9f29a7a306dccaa447abfb3f5d50184286c1 | dde9442399c78414c05f7f36803c861638065ca3 | /Comprehensions-Exercise/Capitals.py | e993ebdc1e709ca710b5f2339a4a29758b83b07f | [] | no_license | Vigyrious/python_advanced | 6778eed9e951b5a11b22f6c6d8ea5b160c3aa00d | 67db470e78b194aea1f9a35283d5a88b0f6ab94c | refs/heads/main | 2023-03-23T12:24:59.688699 | 2021-03-12T20:53:04 | 2021-03-12T20:53:04 | 347,192,305 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | countries = [i for i in input().split(", ")]
capitals = [i for i in input().split(", ")]
[print(f"{k} -> {capitals[i]}") for (i,k) in enumerate(countries)] | [
"73179295+Vigyrious@users.noreply.github.com"
] | 73179295+Vigyrious@users.noreply.github.com |
f0e6b87a9d4066e0b2e897ad0ea6fd098fd80122 | f4434c85e3814b6347f8f8099c081ed4af5678a5 | /sdk/servicebus/azure-servicebus/tests/mgmt_tests/test_mgmt_subscriptions.py | 4d64962b000f91e8a91eb2927f911d1ea20dad4a | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | yunhaoling/azure-sdk-for-python | 5da12a174a37672ac6ed8e3c1f863cb77010a506 | c4eb0ca1aadb76ad892114230473034830116362 | refs/heads/master | 2022-06-11T01:17:39.636461 | 2020-12-08T17:42:08 | 2020-12-08T17:42:08 | 177,675,796 | 1 | 0 | MIT | 2020-03-31T20:35:17 | 2019-03-25T22:43:40 | Python | UTF-8 | Python | false | false | 15,492 | py | #-------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#--------------------------------------------------------------------------
import loggi... | [
"noreply@github.com"
] | noreply@github.com |
142f5650121718ffc18771ecb419ce37ffd1262e | 2a82fc809097eae07e4eb036fbbaae5f652025db | /Task-3.py | 2706c1b444a44a02f22d870c8e22e1fed087ffbb | [] | no_license | Ashish7783073120/MyCaptainTestPython | 697c9ad18c152c366b5a153023987ca76f8b03c8 | 530091eb46019876860b4186b5a0ec5c4a69abc3 | refs/heads/master | 2020-07-12T04:23:34.853603 | 2019-08-27T15:11:06 | 2019-08-27T15:11:06 | 204,717,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | # Python-beginners-tasks
def longest_word(words):
word_len = []
for x in words:
word_len.append((len(x), x))
word_len.sort()
return word_len[-1][1]
print(longest_word(["Ashish", "Kumar", "Bhuwaniya"]))
| [
"noreply@github.com"
] | noreply@github.com |
bdd82bc7c06b92fde32cac64864d082cf2160e38 | 1fde4cf8f0c611d5424f1cc5d041974e8239edd7 | /frame_process.py | 490779ac05e060a27928d749b8174aa77f2dabbc | [
"Apache-2.0"
] | permissive | nmabhi/Webface | 1ab445ec797b46b05abe5218c20a68501393768b | 8833751f34973a9cb19df8e73313232c2eb426d4 | refs/heads/master | 2021-01-01T04:14:21.969211 | 2017-08-21T10:02:44 | 2017-08-21T10:02:44 | 97,146,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,159 | py | import os
import sys
fileDir = os.path.dirname(os.path.realpath(__file__))
sys.path.append(os.path.join(fileDir, "..", ".."))
import argparse
import cv2
import imagehash
import json
from PIL import Image
import numpy as np
import os
import StringIO
import urllib
import base64
from sklearn.decomposition import PCA
from... | [
"nmabhi42@gmail.com"
] | nmabhi42@gmail.com |
6bd8e351549e1cca30848b20b4a86f5949209d5b | afc4b25060e4f2f2a42080bcf2ec948128fb22e5 | /src/blog/urls.py | 47fab9faed284758d4c295af308552c97c464ec8 | [
"MIT"
] | permissive | samims/blog-api-tuto | 38c9530e4bf1e3a57ef45827a54ef51e1ad1e46a | 586cca3bbd43838de9ee3f30d8b6f95217644891 | refs/heads/master | 2023-01-20T12:31:53.627618 | 2019-11-06T07:26:13 | 2019-11-06T07:26:13 | 162,914,395 | 0 | 0 | MIT | 2023-08-11T07:29:46 | 2018-12-23T18:23:19 | JavaScript | UTF-8 | Python | false | false | 1,656 | py | """blog URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/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')
Class-based ... | [
"sam91v@gmail.com"
] | sam91v@gmail.com |
4a94954de8a7e6b418c50d5c8b725d578b55bc2e | 25540d76f6d47443027b01dd892116122b895587 | /km92/maliarenkoma/main.py | 4d83b31a8dfd9ff81810496d2d25d3cd7adef4e0 | [] | no_license | igortereshchenko/pandasplotly3 | 64c88bbf3a19f0a159fb8a473c81ced79c172cc3 | bc5410562873f3094e4baca0c595e9a13b586290 | refs/heads/master | 2022-12-24T13:29:03.976827 | 2019-12-26T15:36:13 | 2019-12-26T15:36:13 | 229,225,081 | 2 | 22 | null | 2022-09-23T22:32:24 | 2019-12-20T08:41:15 | HTML | UTF-8 | Python | false | false | 1,847 | py | import os
import pandas as pd
from bq_helper import BigQueryHelper
import plotly.graph_objs as go
from plotly.offline import plot
os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = "keys.json"
LIMIT = 100
bq_assistant = BigQueryHelper('bigquery-public-data', 'nhtsa_traffic_fatalities')
QUERY = """
SELECT state_nu... | [
"mykytamaliarenko@gmail.com"
] | mykytamaliarenko@gmail.com |
f15ca18e6fbc3fa18d367fc0d3e26030ca778a74 | da5972abb7e9f802d060a7b2840b9c385f44dab5 | /api.py | 02dfd15553f81019d3e1bfa25ced1911e328366b | [] | no_license | marcguo/tinder_bot | cecc18f80f6647fda4732b4f3adbcbb8a54072b0 | f85b5e93d4947dfaf296deaef72a8293d70cb067 | refs/heads/master | 2022-11-24T19:31:04.221219 | 2020-08-06T20:45:16 | 2020-08-06T20:45:16 | 285,662,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,327 | py | '''
API's are based on https://github.com/fbessez/Tinder.
'''
# To perform RESTful API requests.
import requests
# To assemble and parse JSON objects.
import json
from user import *
import config
from location import *
from log import *
# Common headers used for all API requests.
HEADERS = {'x-auth-token': config.X_A... | [
"marqueguo@gmail.com"
] | marqueguo@gmail.com |
936932bb79fdd1481f0240df944bcbdd104de800 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /qYrTDRY7AN2RHxvXg_16.py | ac0bec8269966da1b71c214e4852827b65159799 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 741 | py | """
Consider a right triangle. Its area and hypotenuse are known.
Create a function that returns the two missing sides. The first input is the
area and the second input is the hypotenuse. Return your answer as a list (the
shorter side first). If there is no such right triangle, return `"Does not
exist"`.
### Examp... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
3d3905f020430a87a54b4cd3c13ed122189a9fa6 | 63e2bed7329c79bf67279f9071194c9cba88a82c | /SevOneApi/python-client/swagger_client/models/top_n_settings_v1.py | 4f8ef27b278476432101e66db4523ed6741bfad7 | [] | no_license | jsthomason/LearningPython | 12422b969dbef89578ed326852dd65f65ab77496 | 2f71223250b6a198f2736bcb1b8681c51aa12c03 | refs/heads/master | 2021-01-21T01:05:46.208994 | 2019-06-27T13:40:37 | 2019-06-27T13:40:37 | 63,447,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,480 | py | # coding: utf-8
"""
SevOne API Documentation
Supported endpoints by the new RESTful API # noqa: E501
OpenAPI spec version: 2.1.18, Hash: db562e6
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
from swagger_client.models.a... | [
"johnsthomason@gmail.com"
] | johnsthomason@gmail.com |
afa2882b1eba013364b4905e4587d9b9659673af | b4c28049f1e3bc367d523f84f3816178e9e1d468 | /20170114/20170114.py | a70b49fd3c810e42076cb52f10b49cef44730f2b | [
"MIT"
] | permissive | JaeGyu/PythonEx_1 | 5f602274727722ddc352fcdd7b5f41b73d8aa784 | e67053db6ca7431c3dd66351c190c53229e3f141 | refs/heads/master | 2020-05-22T05:43:59.902893 | 2017-09-02T06:54:57 | 2017-09-02T06:54:57 | 50,916,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | print("-"*60)
def main():
print("hello")
v = [i for i in range(10)]
print(v)
v = [lambda x : x+1 for i in range(10)]
print(v)
if __name__ == "__main__":
main()
| [
"jpmlyr@gmail.com"
] | jpmlyr@gmail.com |
d7e1b702380217cdbf7e50d8d1f9c47f9d6dc0c7 | 8a04dffe7a45af171fa1f70bc1b7ae19a5cf14d9 | /venv/lib/python3.7/_weakrefset.py | f19be5dd359b9caf49c8ee8392c935fb388a1928 | [] | no_license | UmangKumar1/webscraper | 5f896f5c20172e952fe50f608f8457568c4086f0 | 67f690e167a9c7a0c297bebfec8891c34c1d6f38 | refs/heads/master | 2020-06-18T11:12:53.797857 | 2019-07-10T23:59:47 | 2019-07-10T23:59:47 | 196,284,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | /Users/mehakkumar/miniconda3/lib/python3.7/_weakrefset.py | [
"umangkumar1324@gmail.com"
] | umangkumar1324@gmail.com |
3d88a4a543b65debc1577203dd10287d92deac00 | b1e48374dcf0ea7f71e03663e457980ad5968333 | /python/email/urls.py | 2facb411fee41084496424f3c8be21557d6fce7c | [] | no_license | nlake44/sample-apps | 306ad3773ce66bc2d212a181f8cdd8bf88172ef5 | 619eff9f14f0416ff2cb3ee8efd1838f46337339 | refs/heads/master | 2021-01-15T19:39:57.064088 | 2014-01-06T03:33:36 | 2014-01-06T03:33:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | from django.conf.urls.defaults import *
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
urlpatterns = patterns('',
(r"^$","sendmail.views.root"),
# Example:
# (r'^testapp/', include('testapp.foo.urls')),
# Uncomment the admin/doc line below an... | [
"shatterednirvana@gmail.com"
] | shatterednirvana@gmail.com |
acfa537b578f6d76d25592188fdff1cef1a4d366 | 472943bcd41060072a8785e755102426521d175e | /9_plot_average_delays.py | 797be945a9c3680c9cff29972c0a172807da5ba0 | [] | no_license | Aausuman/Thesis | 8fef255a36123bdf3f5dbc090110e79ddc39fce9 | 8f2f5df32b0d9440007ffdcc77ae5136cc4b56e0 | refs/heads/master | 2023-01-24T20:06:33.659151 | 2020-11-01T21:02:47 | 2020-11-01T21:02:47 | 269,708,193 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,555 | py | from pyspark import SparkConf, SparkContext
from pyspark.sql import SQLContext
import matplotlib.pyplot as plt
# Initialising the Spark environment (Local machine)
conf = SparkConf().setMaster("local[*]").setAppName("Average_Delays")
sc = SparkContext(conf=conf)
sqc = SQLContext(sc)
raw_records = sc.textFile("/Users/a... | [
"aausuman.26@gmail.com"
] | aausuman.26@gmail.com |
1df7d9c4e2a2e778fe39a48af7db88135044a33d | 6885d145acec4027eb2527e1c23fe3530a0bcdbc | /mycoffeed/core/models.py | 780b792dda36217011dad32f5b5208a68c475f04 | [] | no_license | pamelamirelly/Coffeed | dbe8cd0d73010dc3af49fbc26b37eafdd4ab3c54 | 686606692cc3395ae2f2a0aac51d2260301e7594 | refs/heads/master | 2016-09-11T04:48:38.133076 | 2015-07-24T07:08:21 | 2015-07-24T07:08:21 | 39,566,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,769 | py | from django.db import models
from django.core.urlresolvers import reverse
from django.contrib.auth.models import User
from django.db.models import Avg
from geoposition.fields import GeopositionField
import os
import uuid
RATING_CHOICES = (
(0, 'None'),
(1, '*'),
(2, '**'),
(3, '***'),
(4, '****'),... | [
"pamelamirelly_286@hotmail.com"
] | pamelamirelly_286@hotmail.com |
ea95c7db4fb850cc6077673dd32f9a4f378b59e3 | 2bbf5e5e002f7a76a063f70fde58151d09e7a155 | /routepang/category/LocationCategory.py | abcfd231bfc1aec8c910ff11e749d5e70eebb29b | [] | no_license | jongwonleee/routepang_cwroller | a68de6b946763d84bf6f455e7f4f8b69dff6f076 | 8b7e453562719455b847e7dec7eca16c04d4f64a | refs/heads/master | 2022-03-13T10:15:58.933765 | 2019-11-18T08:31:00 | 2019-11-18T08:31:00 | 224,374,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,035 | py | # TODO ---------- 카테고리 목록 ------------
# UNKNOWN : 0
# ATTRACTION : 1
# FOOD : 2
# ACTIVITY : 3
# SHOPPING : 4
# TRAFFIC : 5
# RELIGIOUS : 6
# MEDICAL : 7
# PUBLIC : 8
# LODGE : 9
... | [
"an20171@naver.com"
] | an20171@naver.com |
2b48076d8241d82087750d770207f6e0920c5197 | 5cb637edf5dbe61b2619d0cc8cd5a45f02a4eed0 | /ApiZiDongHua/venv/Scripts/easy_install-script.py | 7546adc6b585a22a3a47e88c65618261b81173b8 | [] | no_license | cyl19920314/TestMode | af7bcce9c665f84d069fc61f82295b41d69f88f4 | 505bcb3f2edef3ce97f9e73668ea75ad19a12adc | refs/heads/master | 2020-08-27T23:15:41.497163 | 2019-10-25T11:57:24 | 2019-10-25T11:57:24 | 217,517,054 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | #!D:\pythonProject\demo1\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys... | [
"17600058592@163.com"
] | 17600058592@163.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.