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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9f97c3ea0bbe2352686a45e16d7aefe21da6a52b | 6e6d84af8ed3722237021ae4041299edc01f37a4 | /src/libary/secure.py | 481d56fcea57633c91a0326b3f8e97bd04765589 | [] | no_license | XBMC-Addons/script.game.snake | 3831cfbf0e4cbf3c2849658a65f94c63675baf0e | a82734b59244656aa6ee24c7025a4745af68671a | refs/heads/master | 2021-01-13T01:37:01.309832 | 2013-10-18T18:34:58 | 2013-10-18T18:34:58 | 13,685,950 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,058 | py |
import os
class Secure:
def check_level(self, path):
self.all_walls = 0
self.the_speed = 0
if os.path.exists(path):
self.aefile = path
else:
return -1
f = open(self.aefile, 'r')
self.xmldata = f.read()
f.close()
self.walldata ... | [
"mcm.kaijser@gmail.com"
] | mcm.kaijser@gmail.com |
4e5cf2859bc47856fc6afbf3e6b4155ba52f7699 | 524b2ef7ace38954af92a8ed33e27696f4f69ece | /montecarlo4fms/problems/reverse_engineering/models/__init__.py | 91381dc8abcd561b7131ac0ef6fc8c47867e8c6c | [] | no_license | jmhorcas/montecarlo_analysis | ebf9357b0ede63aa9bcdadb6a5a30a50ad7460eb | 2319838afb0f738125afc081fc4b58a0d8e2faee | refs/heads/main | 2023-06-24T19:05:36.485241 | 2021-07-20T08:24:06 | 2021-07-20T08:24:06 | 363,059,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53 | py | from .fm_state import FMState
__all__ = ['FMState']
| [
"miguelijordan@gmail.com"
] | miguelijordan@gmail.com |
d79f6da6679e3021c09281d19ab8ea23b125c80e | 4723f7b2908c90f8b2430f7c500efc42be6c348b | /Python/tool/remote.py | 232e8713c2eb1b8b1352f38cbf87f5fc2a3b8f8e | [] | no_license | rheehot/tool_public | 776ab3ac25d9b7950ced6452d5a9395f6ee0faa0 | 9f60048ead83630fb310cd214b082cf0a895fd2d | refs/heads/master | 2022-11-08T01:40:58.056350 | 2020-06-23T08:35:46 | 2020-06-23T08:35:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,392 | py | import struct
from .definition import ArrayTypeDefinition, TypeDefinition, PointerTypeDefinition, ClassDefinition, ForwardedObject
def unpack(size, data, unsigned = False):
if size == 8:
fmt = '<q'
elif size == 4:
fmt = '<i'
elif size == 2:
fmt = '<h'
elif size == 1:
fm... | [
"dlunch@gmail.com"
] | dlunch@gmail.com |
210ea9a60a611db409d76c3c0405210c78d2cfcc | 2b7cd8141d6c17572c05d4d70e3e616e02449e72 | /python/GafferSceneUI/CollectScenesUI.py | 341298801206215eb7677d5fcea14b99ce048bf9 | [
"BSD-3-Clause"
] | permissive | gray10b/gaffer | 45aefd4ebbf515d5b491777a3bfd027d90715114 | 828b3b59f1154b0a14020cbf9a292c9048c09968 | refs/heads/master | 2021-01-02T09:11:13.137347 | 2017-08-04T05:07:31 | 2017-08-04T05:07:31 | 99,158,553 | 0 | 0 | null | 2017-08-02T20:34:13 | 2017-08-02T20:34:13 | null | UTF-8 | Python | false | false | 3,233 | py | ##########################################################################
#
# Copyright (c) 2017, Image Engine Design Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistrib... | [
"thehaddonyoof@gmail.com"
] | thehaddonyoof@gmail.com |
3a3694b3fc5cfb0ae2e8710bfd56f996e65c15f2 | eaf3682788bfc946e2d1b36696fb973cc547ef37 | /Layouts/Dialogs/Ambulances/ambulancesList.py | f96aed95f6fb555f3c8e82b8d124ae556881b15a | [] | no_license | bits-magnet/MDTouch | 6096bdc365ca6f6577bb56920a431c9df072baf7 | 5ad053667febb825332bbca96603ae9f3d1a304e | refs/heads/master | 2020-04-13T05:32:06.971336 | 2019-01-10T08:43:26 | 2019-01-10T08:43:26 | 162,994,938 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,746 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'ambulancesList.ui'
#
# Created by: PyQt5 UI code generator 5.11.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Form(object):
def setupUi(self, Form):
Form.setObjec... | [
"abhishek197770@gmail.com"
] | abhishek197770@gmail.com |
f2dbfe14a65b0edc19d892ddcc7a57467691b220 | f87f51ec4d9353bc3836e22ac4a944951f9c45c0 | /.history/HW01_20210624144937.py | b9d45c1f373833420f3987ed361ba22bbc6b3abd | [] | 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 | 2,177 | py | """
Georgia Institute of Technology - CS1301
HW01 - Functions and Expressions
Collaboration Statement:
"""
#########################################
"""
Function Name: bake()
Parameters: cakes (int), cupcakes (int), cookies (int)
Returns: None
"""
def bake(cakes, cupcakes, cookies):
cake_time = cake... | [
"sanjay.mamidipaka@gmail.com"
] | sanjay.mamidipaka@gmail.com |
b0d09acd0e702f673fb1ff31437facf784297199 | bd160713e32095321417ee93e3c325229bf3dcbb | /bucketlist/__init__.py | 28c871a03291231678fb17fcb9bc687ee48ab29a | [] | no_license | maquchizi/flask-bucket-list-api | 50875d884e32d5276260352f0fd04a5f19b36924 | e5963ce9f10b00796f895821c4afd3766138100f | refs/heads/develop | 2021-01-12T06:32:35.150776 | 2017-02-24T08:40:49 | 2017-02-24T08:40:49 | 77,377,921 | 0 | 2 | null | 2017-01-05T12:31:03 | 2016-12-26T10:53:24 | Python | UTF-8 | Python | false | false | 31 | py | from bucketlist.app import app
| [
"maqnganga@gmail.com"
] | maqnganga@gmail.com |
e13da53d74b2d69b0e1d895cee7feb246e1d7403 | 2e178225f8b7e00f050617ac5e407a0beeba6396 | /apps/monitoring/ssh/tasks.py | ba8b0d8d169ebce761e6c4e3640a8cd9d0596eac | [
"Apache-2.0"
] | permissive | madrover/pyscaler | 413c24437c2c1f56de3391f12089b9373263a111 | e3633bd062561b49c5ac2d7c3e061272a8256b1b | refs/heads/master | 2021-01-16T21:18:45.898797 | 2013-06-24T15:52:10 | 2013-06-24T15:52:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,222 | py | """
The **apps.monitoring,ssh.tasks** module contains the Celery tasks for the **ssh** app.
"""
from djcelery import celery
from django.core.cache import cache
from apps.monitoring.ssh.models import SshCounter
from celery.utils.log import get_task_logger
import datetime
import paramiko
import sys
#Get celery logger
l... | [
"miquel@adrover.info"
] | miquel@adrover.info |
1a0570a9e48405efaaa47a4ef2947c14ef0f7688 | 8f9fdc8730aa11f5f0a29b0399fa73a53d9530ca | /upprifjun fyrir próf/stöðupróf/dæmi2 hangman.py | 6faf7b5dd912d59e778bae131287633f21dc5096 | [] | no_license | ballib/Forritun1 | 0048aa41dbd4a829814232df9d653ef6e845b549 | 7f4041a5ac974d5622f005498efffcfc452b3f1a | refs/heads/master | 2020-07-20T05:21:24.022182 | 2019-12-13T19:10:08 | 2019-12-13T19:10:08 | 206,579,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,101 | py | random_words = ["lion", "umbrella", "window", "computer", "glass", "juice", "chair", "desktop",
"laptop", "dog", "cat", "lemon", "cabel", "mirror", "hat"]
import random
def random_choice():
random.seed(int(input("Random seed: ")))
def characters(word):
print("The word you need to guess has "+str(len(word))... | [
"baldurb2@gmail.com"
] | baldurb2@gmail.com |
0596320d1f64afee66f172c4d4144c9e6f41e088 | dcd9d550464642275f41d105c0fa0b8a6a535d46 | /python/bill_pay.py | b5e7d0948f8a78df2603afde127923379684be50 | [] | no_license | ckanafie/ck | 8ae96a5cd90e3a2d20846119cd401ac865230423 | ebd8ccd145fe2697f1f5940b919a7ace81e64cca | refs/heads/master | 2022-07-02T13:42:30.786880 | 2020-05-15T11:34:04 | 2020-05-15T11:34:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,142 | py | #!C:\Python34\python.exe
import cgi
import cx_Oracle
print('Content-type: application/json\r\n\r\n')
con=cx_Oracle.connect('cbs/apss@localhost/xe')
cur=con.cursor()
data=cgi.FieldStorage()
amount=float(data.getvalue('amount'))
sts=-2
rid=0
cid=0
bid=0
bill_status=""
bill_amount=0
sql="SELECT ID FROM SESSIONS WHERE T... | [
"noreply@github.com"
] | ckanafie.noreply@github.com |
105e96e11106d7e013e883ea5ba59bd59045edf9 | d03f0c0073f0b445c6fa495785e7c1ff0d7f93de | /PGGendoNL/models.py | 2f4da596859e257a713a723d141eedc28327aa4b | [] | no_license | xu003822/oTree-PGG | 49da4850975742834434a525da6223445dc9b4f4 | 499145ae78d7db7ad08bcc89f1d2d2954360b13e | refs/heads/master | 2021-06-22T21:00:27.374525 | 2017-08-30T16:37:15 | 2017-08-30T16:37:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,362 | py | from otree.api import (
models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer,
Currency as c, currency_range
)
import random
doc = """The Dutch version of Public Goods Game with endogeneous threshold
"""
class Constants(BaseConstants):
name_in_url = 'PGGendoNL'
players_per_group = 4
... | [
"bowiegoossens2@hotmail.com"
] | bowiegoossens2@hotmail.com |
65e5532f41c19901974348a70018748a98d53dfa | 4aefd6f36f5fc9e194896ce39b683b2093013cf7 | /manage.py | b8b5e6b17f23e5b9e68db7a3d58527e336218a67 | [] | no_license | Angeloem/jwtoly | 316174ddc0c81183ec7229755939811d57ae948e | ebd3a11311835c58c14b3893dec8f217fd29c7b0 | refs/heads/master | 2020-07-24T20:00:47.690343 | 2019-09-12T15:37:44 | 2019-09-12T15:37:44 | 208,033,095 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 626 | 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', 'jwtoly.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportE... | [
"esanga530@gmail.com"
] | esanga530@gmail.com |
73bc81ef4065a43a74837bc0c87e2164cb2162f1 | 56ac4146d8c1f3c4a066a06cbd96a883228e623b | /examples/cifar10/async_trainer.py | 0d6cf6bf92f2308e1bda8146a116267d60d3bebb | [] | no_license | qingzew/tfcluster | 0893dafd52813cdb4cc601160a8008096e837bcc | 6d99e981e1de3393ed4bc9a73afb60d10d34065b | refs/heads/master | 2021-01-17T20:18:36.155762 | 2018-01-21T15:59:28 | 2018-01-21T15:59:28 | 79,696,887 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,554 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2016 qingze <qingze@node39.com>
#
# Distributed under terms of the MIT license.
"""
"""
import os
import time
import tensorflow as tf
import logging
from datetime import datetime
def setup_logger(logger):
logger.setLevel(logging.DEB... | [
"qingzew@gmail.com"
] | qingzew@gmail.com |
d7ef00f6761c5aa5604699ffe74a1241d4afc934 | d606b32f409fe21a742e6e7cc964913e09276837 | /mputest/imutest.py | 0b67a48bf1f75c681637e860b36b8934d69aaa4f | [
"BSD-2-Clause"
] | permissive | yycho0108/Elecanisms_Final | 057258e4233d65ec64e0a0d8d6f18e78813159ed | 5837e8481e2e224b250ac533d170ca3cf7fe2846 | refs/heads/master | 2021-01-21T07:08:33.523016 | 2017-05-04T15:19:09 | 2017-05-04T15:19:09 | 83,324,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 826 | py |
import mputest
import sys, time
foo = mputest.mputest()
foo.mpu_init()
while 1:
sys.stdout.write('\x1b[2J\x1b[1;1f')
accel = foo.mpu_read_accel()
gyro = foo.mpu_read_gyro()
mag = foo.mpu_read_mag()
print 'Accelerometer:'
print ' x = {0:+05.3f}g'.format(accel[0])
print '... | [
"noreply@github.com"
] | yycho0108.noreply@github.com |
28ce163f3b9cf5eb8781bca648c833347a56180a | 47b4d76e9c87e6c45bab38e348ae12a60a60f94c | /Mutation_Modules/ILE_VAL.py | 1febf610cbd99aa48137a62bd7106f55e86ea931 | [] | no_license | PietroAronica/Parasol.py | 9bc17fd8e177e432bbc5ce4e7ee2d721341b2707 | 238abcdc2caee7bbfea6cfcdda1ca705766db204 | refs/heads/master | 2021-01-10T23:57:40.225140 | 2020-10-14T02:21:15 | 2020-10-14T02:21:15 | 70,791,648 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,858 | py | # ILE to VAL Mutation
import Frcmod_creator
import PDBHandler
import Leapy
from parmed.tools.actions import *
from parmed.amber.readparm import *
def parmed_command(vxi='VXI', lipid='No'):
bc = {}
with open('Param_files/AminoAcid/ILE.param', 'r') as b:
data = b.readlines()[1:]
for lin... | [
"pietro.ga.aronica@gmail.com"
] | pietro.ga.aronica@gmail.com |
e8e556220a6cf463cb98d6d2d2aa7f443f80c37c | 5a3ed55e95b6031105e8030116642d15513446ed | /foodsite-application/foodsite-application/settings.py | 80b5c021c0b0275fbe49977c14111cf02ac3cf65 | [] | no_license | yxni98/Development-Projects | 7ba5a7894ac78064dade35833242ebb53fd38f00 | b0a79aed7d9dbcf5512dd951dc72f93b71e3443d | refs/heads/master | 2022-12-29T10:36:10.415031 | 2020-02-06T03:03:00 | 2020-02-06T03:11:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,847 | py | """
Django settings for foodsite-application project.
Generated by 'django-admin startproject' using Django 1.11.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"... | [
"niyongxin2016@email.szu.edu.cn"
] | niyongxin2016@email.szu.edu.cn |
7898ec57cd787e2f254f7c7793876dd708e2496d | 29a4f419841959381db2d8ba035d6b1f5d2d67a9 | /blink.py | 6144191b71ddad09c60b0ecde2b286a8d9558b68 | [] | no_license | becorey/ME592 | 31d7af758f82424404529381adeb5b6ea9b04de3 | 0b022127fda188fde43dbef5d059c98f893c3b88 | refs/heads/master | 2021-04-28T03:28:41.746464 | 2018-02-20T00:53:26 | 2018-02-20T00:53:26 | 122,140,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 748 | py | #!/usr/bin/python
#import GPIO to access the pins
import RPi.GPIO as GPIO
#import time to use time.sleep
import time
#pins will be accessed from physical location on board
GPIO.setmode(GPIO.BOARD)
#we are wired to GPIO 26, which is physically pin 37
ledpin=37
#set our LED pin as an output to send current to it
GPIO.s... | [
"coreymberman@gmail.com"
] | coreymberman@gmail.com |
6bef768f4b5fe36e599eaa13f5c58cd2211f134c | 7d95ba5003636509b957f4695bb4c72c9fcb76a9 | /radio_data/src/TDL_channel.py | 7c09f044a48b1f86e9a0aa3b95e68155ae1d6b15 | [] | no_license | xiaogaogaoxiao/LinkAdaptationCSI | ce46253c789685384d22218e7b24ca64fd595d2b | c351bc2718775291cde69d1f1e54a97a85162a4b | refs/heads/master | 2023-05-03T11:54:15.956390 | 2021-05-23T20:11:33 | 2021-05-23T20:11:33 | 420,411,198 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,000 | py | import itpp
def channel_frequency_response(fft_size,
relative_speed,
channel_model,
nrof_subframes):
carrier_freq = 2.0e9 # 2 GHz
subcarrier_spacing = 15000 # Hz
sampling_frequency = subcarrier_spacing * ... | [
"lissy.pellaco@gmail.com"
] | lissy.pellaco@gmail.com |
3646911498cba7627ec5d93654ca853de8b3da0d | 3416d7c865a2bead6361df57aa3cc22a4e58628f | /catkin_ws/src/control/src/test.py | 0189a0c0b20fea51b3811dd4cc383ade3166adc9 | [] | no_license | scottsuk0306/rcCarEndtoEnd | 9546e48d2fe53ad3dcbb54798084ec9587a6edfc | ad4bb5b4f85cc89af253e14a954bafa1955405f6 | refs/heads/main | 2023-03-06T13:00:23.827406 | 2021-02-23T06:37:24 | 2021-02-23T06:37:24 | 333,681,183 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | #! /usr/bin/env python
from curtsies import Input
def main():
with Input(keynames='curses') as input_generator:
for e in input_generator:
if e=='w': print("go front")
if e=='s': print("go back")
print()
if __name__ == '__main__':
main() | [
"39263767+scottsuk0306@users.noreply.github.com"
] | 39263767+scottsuk0306@users.noreply.github.com |
d7440e71113a64188e10129584a6781b9645ee82 | d562027a4a5b2d64c776a3c394c88d8e278b664b | /lianxi.py | fe1ae4a043bde74fbbe420e0e533198292e8073e | [] | no_license | wft111/gittest_1 | 97f0916d37c4a5decff5355d3a92380d8049d3e8 | f622918ed68f37686e67c9d51287a64cf0721b01 | refs/heads/master | 2020-07-30T05:52:35.441667 | 2019-09-22T08:21:43 | 2019-09-22T08:21:43 | 210,109,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,524 | py | #/usr/bin/python
#-*-coding:utf-8-*-
#a='hello,python'
#print(a)
#a= ' hello,python '
#b=a.strip()
#print(b)
#b=a.lstrip()
#print(b)
#b=a.rstrip()
#print(b)
#a='%s是%s个超级大国'%('中国',1)
#print(a)
#a=[12,121,12122,122]
#a.sort()
#print(a)
#a.reverse()
#print(a)
#a=[123,1212,1445]
#b=a.index(123)
#print(b)
#=[1223,233,65,... | [
"13525038273@163.com"
] | 13525038273@163.com |
9e0dcbef25fe0a97778094ddff84c585d45852b6 | 5d64bc5b5fa503e2276279701dab095e1e3373b1 | /bitwise/s4_8-reverse_digits.py | 1652da0fcf3e7cc29046720a24955a62a2701cba | [] | no_license | mknguyen1202/DataStructures_Algorithms | a8fe44fa2f665f3ef4d77a3f86e61f474a3457e6 | 2a120fa2a59e7a5faca024cb9c295e9912f1d5d8 | refs/heads/master | 2023-01-27T22:21:50.266975 | 2020-12-03T22:51:27 | 2020-12-03T22:51:27 | 298,703,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | '''
Write a program which takes an integer and returns the integer corresponding to the digits of the input
written in reverse order. For example,
input: 42
output: 24
input: -314
output: -413
'''
def reverse_bf(x: int) -> int:
# TODO
def reverse(x: int) -> int:
# TODO
| [
"mknguyen1202@Kiets-MacBook-Pro.local"
] | mknguyen1202@Kiets-MacBook-Pro.local |
80366beb358b095b23c59e971c685289297d05e2 | 240cef6123b0ab2a8320258a0f5163d8834b9a16 | /py10.py | cee6cbb788456f7119be5117bb208fd5a335d750 | [] | no_license | Sankeerth0214/OCR-FR-1 | 814133520a38aa3c2879507ab1d1090b89dda1d5 | 4d612729d7c3296db4b06d26bea23b8d08fee031 | refs/heads/master | 2021-01-01T16:56:58.553656 | 2017-07-10T08:06:39 | 2017-07-10T08:06:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | n=input("enter a range")
a=[]
for i in range(n):
b=input()
a.append(b)
print("maximum number in")
print a
print "is"
print(max(a)) | [
"noreply@github.com"
] | Sankeerth0214.noreply@github.com |
f5b9309479e7f2a7355c5b529b91f4d3fd8116df | bb21d28495eb6c53ccef823fa1bdcf1ff1d9b57e | /JDMR_Ischool/urls.py | f3ab8e7425acd5d6292f6b04214d36f46b53ede8 | [] | no_license | hostingdemo/demo110-master | 9b9ea6026abf019a1dcf074e6e21b572dcb842a5 | 3ae2bd84f46fa766bc860b0a63cbcb3674ece838 | refs/heads/master | 2023-07-04T08:37:24.570492 | 2021-07-28T12:00:56 | 2021-07-28T12:00:56 | 388,441,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
path('admin/', admin.site.urls),
path('accounts/', include('allauth.urls')),
path('', include('users.urls')),
path('api/',include('rest_api... | [
"hostingtask@gmail.com"
] | hostingtask@gmail.com |
6f3c9299f5b03491e4aa0a69f391ff86c4f62761 | ce670c59c0464aea06d53c8fa752402405543b06 | /migrations/versions/1121a6f0c8de_no_update_become_date.py | 9ae2b41ae3fada062139d9db54f83309d3d2d6ca | [] | no_license | gbarre/capsule-api | 23548b8e8af8c563df12fc7a04a75d7f9136c906 | 52d4e648851a24515052e5597d3322e3029c3c52 | refs/heads/master | 2023-03-08T10:24:21.685406 | 2022-06-01T07:46:38 | 2022-06-01T07:46:38 | 247,653,584 | 2 | 2 | null | 2022-12-08T07:44:45 | 2020-03-16T08:53:52 | Python | UTF-8 | Python | false | false | 1,032 | py | """no_update become date
Revision ID: 1121a6f0c8de
Revises: a0141c36b7c0
Create Date: 2021-03-05 11:48:49.709201
"""
from alembic import op
import sqlalchemy as sa
import models
from sqlalchemy.dialects import mysql
# revision identifiers, used by Alembic.
revision = '1121a6f0c8de'
down_revision = 'a0141c36b7c0'
bra... | [
"guillaume.barre@ac-versailles.fr"
] | guillaume.barre@ac-versailles.fr |
19e5b00f91bf0b3b5006b61638f0eaf93703a415 | cbfb679bd068a1153ed855f0db1a8b9e0d4bfd98 | /leet/facebook/strings_arrays/implement_trie(prefix_tree).py | d2417b0002dda188bd8067925406649cf3692fca | [] | no_license | arsamigullin/problem_solving_python | 47715858a394ba9298e04c11f2fe7f5ec0ee443a | 59f70dc4466e15df591ba285317e4a1fe808ed60 | refs/heads/master | 2023-03-04T01:13:51.280001 | 2023-02-27T18:20:56 | 2023-02-27T18:20:56 | 212,953,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,538 | py | # this solution is slow but looks right
# we declared TrieNode. It store list of TrieNodes inside of length 26
class TrieNode:
def __init__(self):
self.links = [None] * 26
self.end = False
def get(self, char):
return self.links[ord(char) - ord('a')]
def contains(self, char):
... | [
"ar.smglln@gmail.com"
] | ar.smglln@gmail.com |
74a441c692613e5f6d9340f57bc795abc62143c4 | c959e6f17c2b4c1e40dc6169a53cf422cdc60242 | /tools/recording/features.py | 81828562d038cb042ff1d904d5fb10d2cb9043de | [
"Apache-2.0",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | geoffxy/habitat | 7931d6272973d028fc01abc94d2643718d870d72 | 5f01e523a1dc30dbfbaaa39cf4880a534c7781a2 | refs/heads/master | 2023-05-23T19:56:47.430514 | 2022-11-26T04:46:14 | 2022-11-26T04:46:14 | 372,279,560 | 48 | 9 | Apache-2.0 | 2022-11-26T04:46:15 | 2021-05-30T17:45:52 | Python | UTF-8 | Python | false | false | 640 | py |
conv2d = [
'bias',
'batch',
'image_size',
'in_channels',
'out_channels',
'kernel_size',
'stride',
'padding',
]
bmm = [
'batch',
# (batch, left, middle) x (batch, middle, right)
'left',
'middle',
'right',
]
lstm = [
'bias', # 0 or 1, represents the bias flag
... | [
"gxyu@cs.toronto.edu"
] | gxyu@cs.toronto.edu |
bd99ee4471270f22b8beb7ca1b17ae9959c13aaf | 5b39000731517e9e77db789f2d253fd8dd1bbcda | /gamesapi/gamesapi/urls.py | e87a1ec8d70bd1ded577a1eb37dcf1bfc7176ec9 | [] | no_license | bunnycast/RestAPI | 831a01c592ff91bebb410f060aaa8f19c7b40361 | 1f2b6837342a04c59752119eebb16a7eeeecaa4c | refs/heads/master | 2022-11-16T21:25:26.485393 | 2020-07-20T03:12:52 | 2020-07-20T03:12:52 | 276,662,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 910 | py | """gamesapi URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/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-base... | [
"berzzubunny@gmail.com"
] | berzzubunny@gmail.com |
37c1b77dd3586311b40f194e2b54e9d3196a58e6 | f874b3bffdf98ea52a12f9cd08566557e33d4c98 | /extract_info.py | 661aedd6a01faa476fa02e92316332480fa98e79 | [
"Apache-2.0"
] | permissive | lmorillas/recursoscaa | 8e567246f722a38a7fb61dd6a884fd0d153cd338 | bac2ff39d67028ca8d4969d23f5061f09be59a0e | refs/heads/master | 2018-12-28T00:24:31.042017 | 2015-08-29T08:13:23 | 2015-08-29T08:13:23 | 32,229,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,684 | py | from amara.bindery import html
from amara.lib import U
from urlparse import urljoin
doc = html.parse('http://es.slideshare.net/JosManuelMarcos/presentations')
doc2 = html.parse('http://es.slideshare.net/JosManuelMarcos/presentations/2')
links = []
datos = []
def extract_links(doc):
return doc.xml_select('//ul[@... | [
"morillas@gmail.com"
] | morillas@gmail.com |
b22d43086123ed1fc379168323a312a3f843dbb6 | da8a01889163fc0438bd53cf94547383379a1be8 | /social_network/tests/test_views.py | f90aa642c613588f631512b716e830b8ca0abc32 | [] | no_license | t1m4/social-network-with-jwt-authentication | 853df6001ca93aa52e87524d986b28094acd89fb | 3153db80335bd851512b83bddc5b67f7ce591892 | refs/heads/master | 2023-06-29T06:57:00.233578 | 2021-07-21T04:51:04 | 2021-07-21T04:51:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,866 | py | from datetime import datetime, timedelta
from django.urls import reverse
from django.utils.timezone import make_aware
from rest_framework import status
from rest_framework.test import APITestCase, APITransactionTestCase
from authentication.models import User
from social_network.models import Post, Like
class Create... | [
"50275532+t1m4@users.noreply.github.com"
] | 50275532+t1m4@users.noreply.github.com |
59e26cb7170ffa57c95ffefd8600b4a5dd800ddb | 9335ca6cdc25b6adc87300d1714325463b6aad76 | /polls/admin.py | 500a68f0dac52db1a99565b334094fd6ae85f41d | [] | no_license | Anna159/Polls | cfea9450a77ea9dd5ac7bf6b4c736a0a54949eba | 2531be9d9c3a7a2ddac160ad1239f346a2dce647 | refs/heads/master | 2021-02-08T16:34:08.249986 | 2020-03-01T15:26:19 | 2020-03-01T15:26:19 | 244,172,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,063 | py | from django.contrib import admin
from .models import Choice, Question, Tag
class QuestionAdmin(admin.ModelAdmin):
fieldsets = [
(None, {'fields': ['question_text']}),
('Date information', {'fields': ['pub_date']}),
('Tags', {'fields': ['tags']}),
]
list_filter = ['pub_... | [
"noreply@github.com"
] | Anna159.noreply@github.com |
71bacaaa1f126e95abfa5f4e50e72c7bf3c92afe | 54db7b3015b01378ccf28de6419010835e3cb93b | /secret_words.py | 0dac7b95b71ad8185e7d45aef247d0ee9e6aee72 | [] | no_license | Mortisanti/Hangman | 173344683a00904439eaeb4011377eb35b0c41e2 | f232c3eaceca5dfe20bda056dd58b7033beec645 | refs/heads/main | 2023-05-28T07:24:39.261420 | 2021-06-09T01:01:50 | 2021-06-09T01:01:50 | 323,566,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,003,192 | py | import random
eng_dictionary = [
"aachen",
"aardvark",
"aardvarks",
"aaron",
"aback",
"abacus",
"abacuses",
"abaft",
"abalone",
"abandon",
"abandoned",
"abandoning",
"abandonment",
"abandons",
"abase",
"abased",
"abasement",
"abases",
"abash",... | [
"moltigamer@gmail.com"
] | moltigamer@gmail.com |
68f34fa40edddcc36ab7197801e2a409f62c0f53 | f0955458860c11c9fda9bea0ae7defde57cf4169 | /软件杯/源码/华云监控系统/后端代码/web/instance_io_read_monitor.py | a1524467bb9886767c8e4c0b2eafe6c9010fe05d | [] | no_license | WongHunter/huayun | 056d0b8338afb6c9dd0b4e1e9a062a4143145594 | 0fac21949311a05cf6c6a951ee5fd7bcda54de5f | refs/heads/master | 2020-06-03T12:06:29.415167 | 2019-11-18T13:09:37 | 2019-11-18T13:09:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,256 | py | #coding:utf-8
from flask import Flask,render_template,url_for
import json
from flask_cors import CORS
from tool.conf import id,region_id,access_key_id,access_secret
from instance.instance_io_read_monitor import InstanceIoReadMonitor
import time
import datetime
# 生成Flask实例
app = Flask(__name__)
CORS(app, suppo... | [
"1829107965@qq.com"
] | 1829107965@qq.com |
516a5a03cda5ccb39245511c83691598d71b309b | b19768d7ef7d55cbc3c1f2aba2d6de30fb6328cd | /arguments.py | 3eb9b16fd21ffcad1423b58f2437bd0f6f670af1 | [] | no_license | MalarSankar/demo | 6e62e5bd76e3793a1e80d8e6347351d359f1b879 | 125ce2e949a89d50724033824e2c1488f5aab07d | refs/heads/master | 2023-02-18T13:18:26.330249 | 2021-01-18T07:30:43 | 2021-01-18T07:30:43 | 267,773,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | def grade(name,*args):
c=0
for i in args:
c=c+i
avg=c/len(args)
print(name,"-",avg)
grade("ram",80,96,84,70,56)
| [
"smalar1998@gmail.com"
] | smalar1998@gmail.com |
2e9aa08846f96c2e9fca115396f47f66018acf19 | bfc81cb2fcb5e0fd839672be9d0439e41201ccf9 | /maltego/example/client.py | 1d016ae1adfabc46cc4a5402fa907578273e59ba | [] | no_license | cameronepstein/transforms | ab26b0ec187b4b1ccf95ee7b4d27d15be431760e | c2d9d95642f863edfa106f1a0cf30d60d4801b4a | refs/heads/master | 2021-01-18T01:26:56.158833 | 2016-09-22T13:38:34 | 2016-09-22T13:38:34 | 68,206,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,698 | py | #!/usr/bin/env python
import maltego
import sys
import optparse
class Client(object):
def __init__(self, url):
self.client = maltego.Client()
self.client.connect( url )
def do_list(self):
for k,v in self.client.transforms.items():
print " %s (%s) -> %s" % (k, v.input, v... | [
"cameron.a.epstein@gmail.com"
] | cameron.a.epstein@gmail.com |
8390aa51eac8e217edaa97a5517a3e6869fa5f8a | cf737d6f8bb3d2db9eb5756fd11cecb612f5694b | /pype/tests/lib.py | 85b903283608a7fbd8538fb043cc27f54089bb19 | [
"MIT"
] | permissive | jrsndl/pype | 7e04b9eaeadb339008a70dbab74864d5705a07ea | 47ef4b64f297186c6d929a8f56ecfb93dd0f44e8 | refs/heads/master | 2023-08-16T09:20:30.963027 | 2020-09-15T15:59:53 | 2020-09-15T15:59:53 | 297,372,053 | 1 | 0 | MIT | 2020-09-21T14:53:08 | 2020-09-21T14:53:08 | null | UTF-8 | Python | false | false | 1,897 | py | import os
import sys
import shutil
import tempfile
import contextlib
import pyblish
import pyblish.cli
import pyblish.plugin
from pyblish.vendor import six
# Setup
HOST = 'python'
FAMILY = 'test.family'
REGISTERED = pyblish.plugin.registered_paths()
PACKAGEPATH = pyblish.lib.main_package_path()
ENVIRONMENT = os.env... | [
"annatar@annatar.net"
] | annatar@annatar.net |
6d0fdc2be8a40dc423859b9ca2808614fc3e68c6 | 4c3f1090ed8289fbcbeb3d79cb0c3e36581fc543 | /users/forms.py | 780de3406c3fa1fa4e466069d2957547f4ad9b52 | [] | no_license | Isarangn/dj_blog | 9f32b08f31718eb9783a614380f08297846a6d8b | c3217c58a7bc880b450d3ce8e4210bd80762d841 | refs/heads/master | 2022-11-30T03:40:30.757952 | 2020-08-09T08:07:05 | 2020-08-09T08:07:05 | 286,167,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | from django import forms
from django.contrib.auth.models import User
from django.contrib.auth.forms import UserCreationForm
from .models import Profile
class UserRegistrationForm(UserCreationForm):
email = forms.EmailField()
class Meta:
model = User
fields = ['username', 'email', 'password1', '... | [
"sarangn.code@gmail.com"
] | sarangn.code@gmail.com |
08f3b5ba9fe21c57410e380fd96f897ce4adceef | 0eedd7193ee460e93806ddca3a2d7afe18bdc22b | /carlotproject/carlot/apps.py | 50c910065e3c1f0677ce8c0001085008e2be2cd0 | [] | no_license | shashankpatibandla/Carlotsprint1project | 6ffe4a3b6bea0b3a9dbe081294394167cdcc2b20 | 4f5190544bec972f9d0a94cd26cf6fed558cf549 | refs/heads/master | 2020-04-03T23:49:21.949031 | 2018-10-31T22:35:08 | 2018-10-31T22:35:08 | 155,631,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 86 | py | from django.apps import AppConfig
class CarlotConfig(AppConfig):
name = 'carlot'
| [
"spatibandla@unomaha.edu"
] | spatibandla@unomaha.edu |
884b47d8925a554b76d35fe01d1cb5cb9d8b90b6 | c92734057a4735ec2754c4b25cd958a2328657b2 | /social_site/forum/views.py | 542371dfa5414e89b60f0d31872aa6dcfcd6652c | [
"MIT"
] | permissive | arol-varesi/social_site_project | 207d2f2fe63fa65ff3dde6b32288279eeeb8dfcc | 427269815a89875d21a22a688b491878015c7199 | refs/heads/master | 2021-10-13T00:37:52.445144 | 2021-10-02T19:19:13 | 2021-10-02T19:19:13 | 148,545,893 | 0 | 1 | MIT | 2021-10-03T20:39:39 | 2018-09-12T21:46:00 | JavaScript | UTF-8 | Python | false | false | 3,743 | py | from django.contrib.auth.decorators import login_required
from django.core.paginator import EmptyPage, PageNotAnInteger, Paginator
from django.http import HttpResponseRedirect, HttpResponseBadRequest
from django.shortcuts import render, get_object_or_404
from django.views.generic.edit import CreateView, DeleteView
from... | [
"alv67.web@gmail.com"
] | alv67.web@gmail.com |
d7043a83bf47e5a0fc3d1216e5b5cab408f81ede | 11a246743073e9d2cb550f9144f59b95afebf195 | /advent/2017/day8.py | 6b9e3586e8658bcf41dbd5263b00183231315b58 | [] | no_license | ankitpriyarup/online-judge | b5b779c26439369cedc05c045af5511cbc3c980f | 8a00ec141142c129bfa13a68dbf704091eae9588 | refs/heads/master | 2020-09-05T02:46:56.377213 | 2019-10-27T20:12:25 | 2019-10-27T20:12:25 | 219,959,932 | 0 | 1 | null | 2019-11-06T09:30:58 | 2019-11-06T09:30:57 | null | UTF-8 | Python | false | false | 574 | py | from collections import *
import itertools
import random
import sys
def main():
d = defaultdict(int)
ans = -19
for line in sys.stdin:
words = line.strip().split()
d_reg = words[0]
sgn = 1 if words[1] == 'inc' else -1
amt = int(words[2])
reg = words[4]
e = wo... | [
"arnavsastry@gmail.com"
] | arnavsastry@gmail.com |
ef5631e014a978f3699b26c20792af4d65ded2c5 | c6c002d37878c78f9199e30a6d0c2127257552e0 | /ctrls/Goal6_8/G6_8Pos7_1Ori2.py | ffd26bb34a11c4d3f06839ccabb29ad14464f64e | [] | no_license | carrilloec12/FireUAVs | 900a79810a5d610dc467fe82fa276bb14b7ffe9d | 019f12a947fa4d5bcc99d20ccb85925160430370 | refs/heads/master | 2020-03-21T08:03:10.478162 | 2018-06-22T15:09:50 | 2018-06-22T15:09:50 | 138,316,479 | 0 | 0 | null | 2018-06-22T15:06:54 | 2018-06-22T15:06:54 | null | UTF-8 | Python | false | false | 24,090 | py | class TulipStrategy(object):
"""Mealy transducer.
Internal states are integers, the current state
is stored in the attribute "state".
To take a transition, call method "move".
The names of input variables are stored in the
attribute "input_vars".
Automatically generated by tulip.dumpsmach... | [
"jshaffe9@terpmail.umd.edu"
] | jshaffe9@terpmail.umd.edu |
ac0f764daad78adf59a5a4d76ef3847794467db5 | a86dd51331fe333d2ad5ad6e88cec8e2993b1b56 | /nodeconfeu_watch/convert/__init__.py | 63c2729139fbef6bd859bc44be1c6c337840f758 | [
"Apache-2.0"
] | permissive | paulcockrell/nodeconfeu-gesture-models | 792c5ae6ce0153964c05372ccf14d579922c5976 | db645fa914bdc634d5888d40b2d5d75262506ccd | refs/heads/master | 2022-08-28T21:10:17.452641 | 2020-05-15T15:47:30 | 2020-05-15T15:47:30 | 264,165,155 | 0 | 0 | NOASSERTION | 2020-05-15T10:29:57 | 2020-05-15T10:29:56 | null | UTF-8 | Python | false | false | 40 | py |
from .export_tflite import ExportModel
| [
"amwebdk@gmail.com"
] | amwebdk@gmail.com |
c4be8136390f4e7e426d7e243900e46f94dbf093 | d12ef690860a96681e182b3004508f884bb76a3a | /Capitol carcteritzar nodes/Caracteritzacio sensors Temp/boot.py | d73fdcc07d28d6f44ce8aaa7673ba4f3260388f2 | [] | no_license | mponsnieto/TFM_LinealLoRa | 82e8d526802e033bf1baed0437fabfccf5a133c4 | 3b6ea27d28795bf7048f277651d1a4d97ed3ecc2 | refs/heads/master | 2022-12-27T16:21:38.275852 | 2020-10-02T09:19:14 | 2020-10-02T09:19:14 | 215,236,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 950 | py | import time
from machine import Pin, I2C
import pycom
import machine
from ustruct import unpack as unp
import math
import Camera as cam
import SensorHumT as sensH
import MCP9808 as adafruit_mcp9808
from bmp085 import BMP085
import HumedadSuelo as HS
import Comunication as com
import QAire as QA
from network import LoRa... | [
"48806151+mponsnieto@users.noreply.github.com"
] | 48806151+mponsnieto@users.noreply.github.com |
d1e1ea3ca62fa8c7eee1ea56bcf21143db9db802 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03962/s618919847.py | 7c3073e9045ef040a154ec5d8acb94554d03edf5 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | import sys
import math
from functools import reduce
import bisect
def getN():
return int(input())
def getNM():
return map(int, input().split())
def getList():
return list(map(int, input().split()))
def input():
return sys.stdin.readline().rstrip()
# input = sys.stdin.buffer.readline
def index... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f2b5ff460e1f890c8bb67ed8e9b8c30bb31b64c3 | 2bd7278c75707c6656201b1a036ed39faab51d84 | /102 labs/Week10-depth_range.py | b0f0a2d4189becdfb5643fd6ee05ba0745c27c69 | [] | no_license | madnight12/csci-101-102-labs | fe65d37641d7080f62c7d8085fe08c1c7f55402f | 4598bc051415ff0bac442ff9f329095767570790 | refs/heads/main | 2023-04-23T15:49:01.830916 | 2021-04-27T05:38:24 | 2021-04-27T05:38:24 | 361,874,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | # Madeleine Nightengale-Luhan
# CSCI 102 - Section A
# Week 10 Lab
# References: No One
# Time: 75 minutes
import csv
file = open('formations.csv', 'r')
reader = csv.reader(file, delimiter= ',')
with open('formations_parsed.csv', 'w') as csv_file2:
writer = csv.writer(csv_file2)
head_list = ['Depth', 'Start... | [
"82845063+madnight12@users.noreply.github.com"
] | 82845063+madnight12@users.noreply.github.com |
0db12e6c770742bb8e40005583ed870d968e58bc | f95a07c17de3f5e33ba5ac059525d0c78dc63a6e | /apps/inicio/migrations/0001_initial.py | ed23b1871a1435cf62fe5c6240d0fba5069e4e03 | [] | no_license | Marko-lks/practica18 | a9c277372f2bcc51813864d63d0aafbe2b0b039b | 32f3fa7587d413e13db7364255e256575b5dcbc7 | refs/heads/master | 2020-06-05T17:40:23.916070 | 2015-04-07T17:20:22 | 2015-04-07T17:20:22 | 33,519,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 728 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='alumno',
fields=[
('id', models.AutoField(verbo... | [
"marko142221@gmail.com"
] | marko142221@gmail.com |
c41471d7211c7cfc328fcf0c8db053441c203f99 | 17cb5c1ab291f43622b29fbe2c263a0891c02140 | /py_fluent/leetCode/234.py | a9a75d059a39ad4dd9bd772a95195b02c49af45b | [] | no_license | RownH/MyPy | 97f0d89cd7d9e16497130557685dbd0217f8cf28 | 50542d832096420f0a2661fa8af26dc216c08636 | refs/heads/master | 2020-06-20T16:53:12.547836 | 2020-05-23T16:03:52 | 2020-05-23T16:03:52 | 197,184,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,293 | py | '''
请判断一个链表是否为回文链表。
示例 1:
输入: 1->2
输出: false
示例 2:
输入: 1->2->2->1
输出: true
方法:快慢指针确定中间值
后面指针逆转
'''
# Definition for singly-linked list.
class ListNode(object):
def __init__(self, x):
self.val = x
self.next = None
class Solution(object):
def isPalindrome(self, head):
"""
:... | [
"799698579@qq.com"
] | 799698579@qq.com |
5d5231457c9981f727e1dacf2bcb8006413b98ee | c92fe7e2898c10001928bf8c3dc07dc1587b6575 | /CO2/8_findlongestword.py | d6062b272dae7cf3238f38917ac276c06d75a956 | [] | no_license | NithinNitz12/ProgrammingLab-Python | 1b2a59961d99a10ea3d4ac9f073b68ceff1bc5ce | 17c29e125821f20bc0e58986592e57237dbee657 | refs/heads/main | 2023-03-22T18:22:08.381848 | 2021-03-18T11:58:50 | 2021-03-18T11:58:50 | 315,343,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | num=int(input("enter number of words to be stored : "))
longest = 0
for i in range(num):
word = input("enter a word : ")
length = len(word)
if(length>longest):
longest=length
print("Longest word is : "+str(longest)+" letters long.")
| [
"nithinraj10@hotmail.com"
] | nithinraj10@hotmail.com |
c81711a0721f4c0b3af10c8d370c5eca1fb7fbf0 | b6c880fd23a3ed309fd4e70ad13045138cf96d6c | /WhatsYourName.py | 8a1b99c005659cd46d0f237f9fe27e6606628af6 | [] | no_license | H-Madhav/pythonCode-HackerRank | fa560efde6c69eb17883efafade47b55a0569139 | 0ca9c2a051cf15ce1f011b82d9e0cac315148aef | refs/heads/master | 2022-01-27T01:43:44.300941 | 2017-08-28T19:23:36 | 2017-08-28T19:23:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79 | py | print "Hello %s %s! You just delved into python." % (raw_input(), raw_input())
| [
"noreply@github.com"
] | H-Madhav.noreply@github.com |
ab821f35148bb313f0dd2d439acdc21be3a9f6b0 | 94ac3bc86980264da76cdd4e0b6741cb92a13cba | /ex1a.py | 5199378c83317c0608a3241e318e88cbdcdf78b4 | [] | no_license | tank7575/Mycode | 56d0769a85c66e0833fc474a3d0677ef4171e175 | b5669db103151c1c0038daddd745f3910114c5e8 | refs/heads/master | 2020-04-18T20:18:43.326455 | 2019-02-24T20:18:09 | 2019-02-24T20:18:09 | 167,734,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | name = input("Give me your name: ")
age = int(input("How old are you: "))
year = str((2019 - age)+ 100)
print(name + "will be 100 years old in the year " + year)
| [
"gtanke@gmail.com"
] | gtanke@gmail.com |
92275752bbea081287f13884cac8c5b556fa1fd2 | 5c58587ebfbf56192b3dc6ed6f43bc002c8e2cff | /payments/migrations/0026_auto_20180906_1023.py | bb3127132c77be7ffde946ce16ac96b8870c7008 | [] | no_license | hossamelneily/nexchange | fb9a812cfc72ac00b90cf64d6669a8129c2d2d4b | 6d69274cd3808989abe2f5276feb772d1f0fa8b4 | refs/heads/release | 2022-12-13T09:20:47.297943 | 2019-02-12T08:20:34 | 2019-02-12T08:20:34 | 210,064,740 | 1 | 2 | null | 2022-12-09T00:54:01 | 2019-09-21T23:19:34 | Python | UTF-8 | Python | false | false | 4,388 | py | # Generated by Django 2.0.7 on 2018-09-06 10:23
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0066_remove_transactionprice_type'),
('payments', '0025_auto_20180822_1537'),
]
operations = [
... | [
"noreply@github.com"
] | hossamelneily.noreply@github.com |
c1c4ca481cc8eb43fa586007bb3b57bbb15de5b5 | 09c84ed0d83addb7c602ffe24b935b2b07b9c74f | /YOLOv4/tool/utils.py | 1cbabf86fddca04af99ad2621bbaccc96fe8f2a4 | [] | no_license | paul-pias/Object-Detection-and-Distance-Measurement | b8050ba1beac2d5e8524b6be6991e28c7faf1f27 | 98a42696c935b8691c7ba222e3d4777c679554d3 | refs/heads/master | 2023-07-09T10:29:51.001546 | 2023-06-25T19:42:40 | 2023-06-25T19:42:40 | 205,520,090 | 283 | 104 | null | 2023-06-25T19:42:41 | 2019-08-31T08:51:59 | Python | UTF-8 | Python | false | false | 6,968 | py | import sys
import os
import time
import math
import numpy as np
import itertools
import struct # get_image_size
import imghdr # get_image_size
import win32com.client as wincl #### Python's Text-to-speech (tts) engine for windows, multiprocessing
speak = wincl.Dispatch("SAPI.SpVoice") #### This initiates th... | [
"paul.pias@northsouth.edu"
] | paul.pias@northsouth.edu |
e958fa2dbb0ad377d57b00e4297bdcaca7286794 | d35d8f860e0d9edc3480f6ac9c83333472db3bc0 | /env/bin/django-admin | 8fe57c2369f8c70d1164ecf5ac043813e8099590 | [] | no_license | grewal25/shop-april30 | 29e76997f339ec97dfc8943416ed077964314f48 | 1243c58905578ce8b7cceb33f97cb476bd73c02e | refs/heads/master | 2022-12-15T00:41:34.646309 | 2019-07-26T18:55:27 | 2019-07-26T18:55:27 | 184,339,826 | 0 | 0 | null | 2022-12-08T05:55:45 | 2019-04-30T22:27:31 | JavaScript | UTF-8 | Python | false | false | 317 | #!/Users/saran/Desktop/Web_trade/july_26/shop-april30/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"grewalele@gmail.com"
] | grewalele@gmail.com | |
549275e873f106430ed837c7a06752d2258c7bdc | 66a672f802a1d59efaffb9b11dc2f508ccd024e6 | /parse_LN_to_JSON_old.py | 76896c08c8d5f0e0acfb96e9d2a426415a0207d4 | [
"Apache-2.0"
] | permissive | dallascard/LN_tools | 3b7af1a6b064f5b7dc540a04d4fae1a0b2e8f805 | 66be00f1fd11517f7bbf2949cc70f9552f3af4f4 | refs/heads/master | 2021-01-12T16:02:17.130400 | 2019-10-26T00:05:00 | 2019-10-26T00:05:00 | 71,923,543 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,161 | py | """
parse_LN.py
Parse a single file or a directory of raw files from Lexis-Nexis,
which come as text files containing a block of news articles concatenated into one file.
Objective is to split articles into individual files and extract relevant
information
In general, the articles have:
a source (newspaper name)
a w... | [
"dcard@andrew.cmu.edu"
] | dcard@andrew.cmu.edu |
c8253844306b003c358799d563b43b8caa9ec92c | 89b6bfbd4dfa81930d407bd9e7886f81dac8c73f | /SysLog.py | c855062d2e47dfdd3debbb6de5cd0e7668668617 | [] | no_license | amclaug7/SysLogEvaluation | 3e810e0d17f18846d6c4af542c0c5e3da1e04498 | f21e9692052ed38c396d961ab0ac3bc0df8f5e99 | refs/heads/master | 2020-06-06T01:23:02.258523 | 2019-06-18T19:26:01 | 2019-06-18T19:26:01 | 192,600,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | #Andrew McLaughlin
#28Oct18
#SysLog
import re;
def readFile():
input = open("C:\\Users\student\Desktop\sysLog.txt", "r")
exeCount = illegalCount = guestCount = 0
exeTest = re.compile("exe")
illegalTest = re.compile("illegal")
guestTest = re.compile("guest")
for line in input:... | [
"noreply@github.com"
] | amclaug7.noreply@github.com |
0e8bd7dffdbe4b37e4c4527a5e2b050f6f894bda | 63fc96c38ec0522bb0002b19344578e4b3630aa9 | /item_to_item_CF.py | 3f127246ca8dba576a6082fc21a99d6229fe59c9 | [] | no_license | yutthana/DataMining | 47ea5f6a09f33d0c9309129429e779a08d8b0f3e | ece88b8b987d5492b9aef2e034c87554116dcf1c | refs/heads/master | 2020-12-27T15:27:41.296914 | 2016-04-08T21:58:42 | 2016-04-08T21:58:42 | 55,811,570 | 0 | 0 | null | 2016-04-08T21:45:30 | 2016-04-08T21:45:30 | null | UTF-8 | Python | false | false | 1,484 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Apr 05 12:05:43 2016
@author: Yutthana
"""
import pandas as pd
from pandas import *
from scipy import spatial
import numpy as np
#read data from csv
def readcsv(path):
return pd.read_csv(path, iterator=True, chunksize=10000, skip_blank_lines=True)
#norm... | [
"yut.mmm03@gmail.com"
] | yut.mmm03@gmail.com |
7b10bae824de4ead5ffbb387b689114066ec431d | 5d304c6ec0f01edee73e3b612f84307060c0da54 | /letter_combinations_of_a_phone_number.py | 089f3c0c2377b7e620e80a61fbd5b12517d716e8 | [] | no_license | xartisan/leetcode-solutions-in-python | cfa06b9e02f7ec0446cf6b71df4ea46caa359adc | 7e3929a4b5bd0344f93373979c9d1acc4ae192a7 | refs/heads/master | 2020-03-14T17:10:07.957089 | 2018-07-29T10:11:01 | 2018-07-29T10:11:01 | 131,713,447 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | class Solution:
def letterCombinations(self, digits):
"""
:type digits: str
:rtype: List[str]
"""
keys = ["", "", "abc", "def", "ghi", "jkl", "mno", "pqrs", "tuv", "wxyz"]
rv = []
for d in digits:
d = int(d)
tmp = []
for c i... | [
"codeartisan@outlook.com"
] | codeartisan@outlook.com |
d3f0f22a9f875992c367e7fce63ee8366b08f220 | 5254c3a7e94666264120f26c87734ad053c54541 | /Revision de Pares/Semana N°5/Caso 2/05-0-gin-fileparse.py-vir-2020-09-08_19.44.49.py | c1df151428fe518671cc730320bf9ea5a29de07f | [] | no_license | ccollado7/UNSAM---Python | 425eb29a2df8777e9f892b08cc250bce9b2b0b8c | f2d0e7b3f64efa8d03f9aa4707c90e992683672d | refs/heads/master | 2023-03-21T17:42:27.210599 | 2021-03-09T13:06:45 | 2021-03-09T13:06:45 | 286,613,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,352 | py | #fileparse.py
import csv
def parse_csv(nombre_archivo, select = None, types = None, has_headers=True):
'''
Parsea un archivo CSV en una lista de registros.
Se puede seleccionar sólo un subconjunto de las columnas, determinando el parámetro select, que debe ser una lista de nombres de las columnas a conside... | [
"46108725+ccollado7@users.noreply.github.com"
] | 46108725+ccollado7@users.noreply.github.com |
7cd784758941fdaddfc4f4813a364aa657bacadf | 7f108151d95b49bdcaec90e7b1978859f603d962 | /source/map/map_image.py | c1a0ef2173b42c8f51487752622362033c7b2077 | [] | no_license | thydungeonsean/Shinar | 205b20bf47ace29dde14ef2822449ee31ceeeca0 | 5bbb42aafe4ea1f54a69649a242241c3ca96926c | refs/heads/master | 2021-04-29T10:08:17.300934 | 2017-04-04T12:06:48 | 2017-04-04T12:06:48 | 77,847,893 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,839 | py | from ..constants import *
import pygame
import os
from ..images.image import Image
class MapImageGenerator(object):
instance = None
@classmethod
def get_instance(cls):
if cls.instance is not None:
return cls.instance
else:
cls.instance = cls()
... | [
"marzecsean@gmail.com"
] | marzecsean@gmail.com |
d166efba1b856be50405a92ae83a975ace2eba5c | a20d1bade0ada81344519467d185c117579c48c6 | /sourceCode/scrapyRestaurantes/limpiezaDataSetRestaurantesCom.py | 77298bf120930d7441e6a2e9465a6c2638436af5 | [] | no_license | KevinOrtiz/An-lisis-Exploratorio-de-datos | 04dc8d0c990221526fedfc933789c5f6f487d041 | c361a58bc254ec93333ca208fda2825bcc56bb34 | refs/heads/master | 2020-04-06T07:11:25.029012 | 2016-09-08T06:23:24 | 2016-09-08T06:23:24 | 61,229,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,566 | py | import json
import csv
import string
def getDataJson():
with open('salidaRestaurantePrueba.json') as file:
data =json.load(file)
csvRestaurantes = open('restaurantes_col.csv','w')
head_restaurantes = 'name,longitude,latitude,rating,NoReviews,tags,ciudad_usuario,Pais,Nvotos_restaurantes,Nvotos_utiles,fecha_opinio... | [
"kevanort@espol.edu.ec"
] | kevanort@espol.edu.ec |
f148103dc0836fefd8dc31e0b55522bfe42817c1 | 5b183ee0d3ed736174d7c2cc6324c4202106f2f4 | /OldSpaghettiCode/Simulation_Graphing.py | 64ea33675336baa87d1cec7d055dd58cab009930 | [] | no_license | Halberd63/PoolMiningSimulationModel | 75759d95ddeffa072d498886831dc698f647af75 | 07d53d3af9bd98966bbb9e6ddc6a5fed2e29387a | refs/heads/master | 2021-01-20T05:34:39.285153 | 2017-11-02T12:46:43 | 2017-11-02T12:46:43 | 101,452,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,835 | py | import plotly
plotly.tools.set_credentials_file(username='karlerikoja', api_key='tJQ6g692vFMVs89glb3v')
import plotly.graph_objs as go
import plotly.plotly as py
#This graph is mostly used to prove our algorithm works correctly
def graphBlocksFoundOverTime(model):
#Code for proving that the block finding is calcu... | [
"hwboy2@student.monash.edu"
] | hwboy2@student.monash.edu |
77646e2ec0616be8c2082741e2ca6efa9902dd3a | ef457162d79be971f52ee96b1891764a2d230e8b | /demo.py | 0b61466993849c1bffa5dd4056ad7be10ebc7073 | [] | no_license | LuoJiaji/modularCNN | f2239f6b4ed378fede4401f6e90d9b1d5acc8c70 | b8591c3924abeccaebfad56289a185f904da8608 | refs/heads/master | 2020-06-18T12:57:59.192061 | 2019-07-11T13:20:08 | 2019-07-11T13:20:08 | 196,309,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,242 | py | import random
import numpy as np
import matplotlib.pyplot as plt
from keras.datasets import mnist
from keras.preprocessing import image
from keras.models import Model, load_model
from keras.layers import Input, Flatten, Dense, Dropout, Lambda
from keras.layers.convolutional import Conv2D
from keras.layers.pooling impor... | [
"lt920@126.com"
] | lt920@126.com |
5c600af87d1fb032f6713acce45a97f493b221e6 | b350379667e9d67b436a0a70bdf45ea58776ccb5 | /imdb_sentiment.py | 58e24d14489bc0c5772e7e4deb346be0f7454b03 | [] | no_license | Balakishan77/Sentiment-Analyis-of-IMDB-dataset | 30227b4151bf04ab56f445f4742a0b14d87d6b72 | 0e0b3e289f7a9c177d904afdc97e1606fad97a5a | refs/heads/master | 2020-04-14T06:21:17.207182 | 2018-12-31T17:32:05 | 2018-12-31T17:32:05 | 163,684,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,474 | py | # -*- coding: utf-8 -*-
"""
@author: Balakishan
"""
import os
import random
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.feature_selection import SelectKBest
from sklearn.feature_selection import f_classif
... | [
"noreply@github.com"
] | Balakishan77.noreply@github.com |
613558e1f0a6f4199d62e2feae12a2ba06b09eba | 66e45a2760db8a1fc580689586806c2e3cce0517 | /pymontecarlo/options/model/base.py | 8951f563fdc581a862298aeec9784c0e6a2631d2 | [] | no_license | arooney/pymontecarlo | 4b5b65c88737de6fac867135bc05a175c8114e48 | d2abbb3e9d3bb903ffec6dd56472470e15928b46 | refs/heads/master | 2020-12-02T18:01:42.525323 | 2017-05-19T16:44:30 | 2017-05-19T16:44:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | """
Base models.
"""
# Standard library modules.
import abc
import enum
# Third party modules.
# Local modules.
from pymontecarlo.options.base import Option
# Globals and constants variables.
class ModelMeta(enum.EnumMeta, abc.ABCMeta):
pass
class Model(Option, enum.Enum, metaclass=ModelMeta):
def __init... | [
"philippe.pinard@gmail.com"
] | philippe.pinard@gmail.com |
ea7ed569fb1fafbdfffbca680baa18955f712a97 | 734bedda61c301048855fdf66d9e572cce7f5a97 | /week9/queue.py | 4832ab418db4cf33d45088be20f83cbd253954ab | [] | no_license | Jason9789/Python_Study | 265e844f13c877a338919636e7dbcaf0a73ffaac | bd92b8c8b0a9321b86f21486a72260db834b0a24 | refs/heads/master | 2022-11-20T06:38:01.974391 | 2020-07-17T15:32:32 | 2020-07-17T15:32:32 | 275,503,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 867 | py | # 큐 과제
# 과일 목록을 큐에 저장하고 삭제
# 초기 메뉴에서 삽입/삭제/종료 선택
# 종료시 프로그램 종료
# 삽입
# 과일 이름 입력받음
# 큐에 삽입 append() 이용
# 큐 출력
# 삭제
# 큐에서 과일 삭제 pop() 이용
queue = []
flag = True
while flag:
keyWord = input('삽입/삭제/종료 : ')
if keyWord == '종료':
flag = False
elif keyWord == '삽입':
fruit = input("과일 이름 : ")
... | [
"lifebook0809@gmail.com"
] | lifebook0809@gmail.com |
4b87e3ca5cad6b2300de2110e17a5bfcf92f12cc | 2c4d4ff5f4f0984fdbf33c6fbc34b50caeaafdf0 | /torchattacks/attacks/cw.py | cba813abfff0e3e3a3fe0adab9fda06e2435195e | [
"MIT"
] | permissive | LiGuihong/adversarial-attacks-pytorch | f9fbbb0244034380d000f4ebf82cd576a22587cb | a3fd4ab2bd93e9dea3532ee46e6b99615b16127a | refs/heads/master | 2023-01-24T09:29:11.273149 | 2020-12-07T13:48:26 | 2020-12-07T13:48:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,406 | py | import torch
import torch.nn as nn
import warnings
import torch.optim as optim
from ..attack import Attack
class CW(Attack):
r"""
CW in the paper 'Towards Evaluating the Robustness of Neural Networks'
[https://arxiv.org/abs/1608.04644]
Distance Measure : L2
Arguments:
model (nn... | [
"41545927+HarryK24@users.noreply.github.com"
] | 41545927+HarryK24@users.noreply.github.com |
bbb0e5789cc95e133b10dc78292d1330aa319f50 | 09d349155446f2f32519cfc7deb7f79b1138a158 | /kraft/actions.py | d7a5fba1e5bcf34353359243e9c51f253c87c7e3 | [] | no_license | marcin-/pardususer.de | 632d7fb4c5a9252dbcf82711a5da126523d3b8e8 | 1d4bb1d1f9da113cf2b8cbcc6b544ec9b9616862 | refs/heads/master | 2016-09-05T23:22:38.726769 | 2012-10-08T20:40:39 | 2012-10-08T20:40:39 | 6,114,809 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 810 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from pisi.actionsapi import cmaketools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
def setup():
shelltools.makedirs("build")
shelltools.cd("build")
cmaketools.configure("-DCMAKE_INSTALL_PREFIX=/usr \... | [
"marcin.bojara@gmail.com"
] | marcin.bojara@gmail.com |
7a331d049d6b0b74c4e4b7cc0d73a04d5ca44133 | c74fa5319da7d126c5ac2bdcc2fb4e51816d50f6 | /students/migrations/0008_alter_student_college_rollno.py | 712737655f8d42791628de5d35ba9052fe52ad96 | [] | no_license | Abhishek1210ak/Git-tutorial | 3694f7ab4b462ee0063cce6ee209586b3f50e82d | da4fda579d49148e015f04bccffae289d7c749ad | refs/heads/master | 2023-08-21T18:27:27.572936 | 2021-09-17T19:52:15 | 2021-09-17T19:52:15 | 407,427,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | # Generated by Django 3.2.4 on 2021-06-20 14:27
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('students', '0007_alter_student_college_rollno'),
]
operations = [
migrations.AlterField(
model_name='student',
name=... | [
"itsmeabhishek8289@gmail.com"
] | itsmeabhishek8289@gmail.com |
acf29bf544ce054a92c4359cc51c434d34463548 | 6cdaab9935f717e1022c20a3e38cac185f3e6780 | /cotaAtivos/admin.py | ca8cde6eeacada3461a3443838e005567c3f1798 | [] | no_license | TeaH4nd/desafioInoa | e19048e3cae0c35b47a3c4cf3238734c3ea6363a | 3f6a3272dc31aef34893ec606d363b03183a5227 | refs/heads/main | 2023-02-17T12:50:17.885127 | 2021-01-12T16:27:11 | 2021-01-12T16:27:11 | 326,695,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | from django.contrib import admin
from .models import Acao, Preco, Perfil, Salvo
#adicionando modelos para a pagina de admin
admin.site.register(Acao)
admin.site.register(Preco)
admin.site.register(Perfil)
admin.site.register(Salvo)
| [
"alexchamon@poli.ufrj.br"
] | alexchamon@poli.ufrj.br |
6bd27be7e362aff648fa0239eaaf657a2957fe0b | 855b8dd8999f46c26ab59f6719f81c70c47e7853 | /build/turtlebot_apps/turtlebot_calibration/catkin_generated/pkg.installspace.context.pc.py | 53f19eb87ae99ac2788a29d0a3b92cc9298c5061 | [] | no_license | aefrank-hrlab/hw5-hri-2018-ucsd | b11779c41d9ad4903101ccf49906b4129b946eba | 36073251eb120c54da4f792f15cc7073f1dc36b8 | refs/heads/master | 2021-05-09T00:50:27.976750 | 2018-02-01T01:31:00 | 2018-02-01T01:31:00 | 119,758,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/turtlebot/andi_ws/install/include".split(';') if "/home/turtlebot/andi_ws/install/include" != "" else []
PROJECT_CATKIN_DEPENDS = "std_msgs;message_runtime".replace(';', ' ')
PKG_CONFIG_LIBRARIES... | [
"rinsurbs@gmail.com"
] | rinsurbs@gmail.com |
37ee4f71fd846e04a83add6178cd7ed794308806 | 8de12fa0a5ce377f8ad245ebe213daa1e7ee1ca6 | /src/indexTableChanged.py | 35f055950d4a89a5107b082c2e52fafce62322e4 | [] | no_license | aakashpany/Stock-Index-Summary | 03bb58686043b26910d8df6438fb4a97f278ee81 | a15eb5be12245bd1e4db5c5dcff1d0d9ffb813b0 | refs/heads/main | 2023-06-25T23:35:12.491063 | 2021-07-30T05:39:40 | 2021-07-30T05:39:40 | 389,770,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 664 | py | import requests
import json
import pandas as pd
import streamlit as st
import datamethods
response = requests.get("https://indexapi.aws.merqurian.com/index?type=test%2Cprod")
data = json.loads(response.text)
url = ''
dataList = []
dataList2 = []
for result in data['results']:
print(json.dumps(result))
prodD... | [
"noreply@github.com"
] | aakashpany.noreply@github.com |
b157b90e3f21c14cfced38265c681923ac6be643 | 08ab7793989d9f426188902cbd47d95385cdba81 | /sidia_project/djangoconfig/asgi.py | 195af33603fd27f43b159f6a3678549f5ea306bb | [] | no_license | robsongcruz/programming-challenge | 30a342395e37de91a1a571778b7bf53a728447f3 | 4036fda81e235f4f91d83384c44d99077450366e | refs/heads/master | 2020-12-08T06:53:03.528142 | 2020-01-18T03:51:26 | 2020-01-18T03:51:26 | 232,917,722 | 1 | 1 | null | 2020-01-09T22:25:00 | 2020-01-09T22:24:59 | null | UTF-8 | Python | false | false | 401 | py | """
ASGI config for djangoconfig project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_... | [
"robson.cruz@grupoqs.net"
] | robson.cruz@grupoqs.net |
0238148a0fb3b23bc6f9deca8adea9f39aeaf387 | ef4eb70950ade53520f44fefd2477de962647c6d | /The_gift.py | 492f22874e00f91b197da178efc601865b144585 | [] | no_license | dldms1345/Algorithm | e53f7f99b1d2e7d9d85d80f3e45850e9f6364c7c | 2fd20026846fd4ca6a5a2bf42c3a008738892fb3 | refs/heads/master | 2021-07-30T08:13:50.904879 | 2021-07-21T16:53:33 | 2021-07-21T16:53:33 | 212,076,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 640 | py | import sys
import math
# Auto-generated code below aims at helping you parse
# the standard input according to the problem statement.
n = int(input())
price = int(input())
budgets = [int(input()) for i in range(n)]
budgets.sort()
if sum(budgets) < price:
print("IMPOSSIBLE")
exit(0)
num = n
for budget in... | [
"dldms1345@gmail.com"
] | dldms1345@gmail.com |
5005cb8e54066070f254014fede0db6ecb90ed09 | b6df7cda5c23cda304fcc0af1450ac3c27a224c1 | /nlp/preprocessing.py | 441402923997d2e7d7041d50ca10938068282e69 | [] | no_license | vieira-rafael/py-search | 88ee167fa1949414cc4f3c98d33f8ecec1ce756d | b8c6dccc58d72af35e4d4631f21178296f610b8a | refs/heads/master | 2021-01-21T04:59:36.220510 | 2016-06-20T01:45:34 | 2016-06-20T01:45:34 | 54,433,313 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 287 | py |
class PreProcessing:
def __init__(self):
stopwords = ["and","del","from","not","while","as","elif","global","or","with","assert","else","if","pass","yield","break","except","import","print","class","exec","in","raise","continue","finally","is","return","def","for","lambda","try"];
| [
"thaisnviana@gmail.com"
] | thaisnviana@gmail.com |
4d44015b1186cdeefbacd181fe4acf9db95a1fb3 | ffcecdf573e18e7d11bc8181658f9f6c045bc8b2 | /Techgig_codes/graph_nodes.py | 6379185ce5ef2f9fd1e3c2779680ac151f71fd34 | [] | no_license | prabakaran1477/PythonScripts | 0fb025b1316686e3677b4aae01e7431ea569dba4 | e510e7b25fcc5fbaf8ff92eeb2c908ba01c328d9 | refs/heads/master | 2021-03-30T21:09:13.838205 | 2019-03-21T14:10:01 | 2019-03-21T14:10:01 | 125,012,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,542 | py | graph = {'A': ['B', 'C'],
'B': ['C', 'D'],
'C': ['D'],
'D': ['C'],
'E': ['F'],
'F': ['C']
}
'''
def find_path(graph, start, end, path=[]):
print(' =:= ',graph[start])
path = path + [start]
if start == end:
return path
if start not in graph:... | [
"prabakarand@meritgroup.com"
] | prabakarand@meritgroup.com |
f9c2e895848e29de025d232cc5c22a9f8636eaab | 8612c9a33ecf63a668d3e63572e2c9fbbdec969f | /rover.py | 06835c9eb549f95de7a2c69d13003d1210430985 | [] | no_license | rickhenderson/rover | f4c1203d45a56f6ca77a6a34fb5053f460f9f0b4 | b01aebd677d6a8a005a80000e4da97f967fead0f | refs/heads/master | 2021-01-21T13:26:12.283479 | 2016-05-17T02:25:45 | 2016-05-17T02:25:45 | 45,221,716 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,259 | py | """ rover.py
Module to store functions to control an autonomous rover.
Created by: Rick Henderson
Created on: April 18, 2016
Notes:
April 18, 2016
* Added clean up routine because GPIO isn't exposed in
user programs.
* Turns OK on smooth surface. Use 1 sec for 90 degree turn.
* Wil... | [
"rick.henderson.blog@gmail.com"
] | rick.henderson.blog@gmail.com |
e5edea763ca70912e923ffe5f7aec21187b17bea | ec57255f8eca5e869ad9537448df8ec4af05ace5 | /Q5_FloydWarshall.py | d4ca8bf2876566463ac73689837da29a5782cf42 | [] | no_license | EduardoLussi/INE5413_A1 | 399b47ff12e0fc425ebb2f1390f3cf4f9ee2eda6 | 40a4a9c2c2c423b3b43a20d67c21f8dee1684ff5 | refs/heads/master | 2023-06-26T20:25:42.119488 | 2021-08-06T00:10:57 | 2021-08-06T00:10:57 | 378,901,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | from Q1_Grafo import Grafo
def printSolution(D): # Exibe solução
for i, vDist in enumerate(D):
text = f"{i+1}:"
for dist in vDist:
text += f"{dist},"
print(text[:-1])
def FloydWarshall(grafo):
D = []
for u in grafo.vertices: # Monta matriz D de adjacências
... | [
"eduardolussi@gmail.com"
] | eduardolussi@gmail.com |
d425739853edd3970661241960467b810be5829e | ab5731ae6e190a9b44b1cddbd11af89277302de9 | /read_json/data_json.py | 686c168a2ed574d935bcf65b3bbd202919f755d4 | [] | no_license | MachineLP/py_workSpace | e532781aab51c54a87602c387acd3199f9a75140 | 7937f3706e8d2d8a0e25ba0648bee6d1fcb27234 | refs/heads/master | 2021-08-29T02:56:02.415509 | 2021-08-23T10:38:59 | 2021-08-23T10:38:59 | 117,516,956 | 22 | 18 | null | null | null | null | UTF-8 | Python | false | false | 607 | py | # -*- coding: utf-8 -*-
"""
Created on 2017 10.17
@author: liupeng
"""
import sys
import numpy as np
import json as js
class load_image_from_json(object):
def __init__(self, json_file):
self.json_file = json_file
def __del__(self):
pass
def js_load(self):
... | [
"noreply@github.com"
] | MachineLP.noreply@github.com |
5ef7b4cea460a62d8436af126e6c3999e86174ac | fca84273984ec2805817caa4a3de34862a6a6d1c | /pytorch/convert_tf_checkpoint_to_pytorch.py | 3ecaab0f9e118820ac7c7b346251eda933a9e3dd | [
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | whaleloops/bert | a2fb5fdb785328630379965dcae3efe63608021f | 33804ccd32e6b1599629ceaf7bdaef7916c05270 | refs/heads/master | 2020-04-04T11:02:02.191243 | 2019-01-07T21:31:15 | 2019-01-07T21:31:15 | 155,876,385 | 0 | 0 | Apache-2.0 | 2018-11-02T14:21:36 | 2018-11-02T14:21:35 | null | UTF-8 | Python | false | false | 5,475 | py | # coding=utf-8
# Copyright 2018 The HugginFace Inc. team.
#
# 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 ... | [
"yzc315@qq.com"
] | yzc315@qq.com |
a7bdff8f69ddd94725909603406c96e8774ecbfa | ae2308622f2801e78ee4348fba2c650dcec5f340 | /venv/lib/python3.6/site-packages/alembic/util/compat.py | d0e6672c5cf2ba19788dd6906357214507873138 | [] | no_license | formika92/PyQtApp | 425e49923312b35ef549ef58e8bf73361a54018d | 460c6ba336fdb964d208585b3afab0d3ad829ea0 | refs/heads/main | 2023-08-01T05:33:29.130245 | 2021-09-12T13:22:50 | 2021-09-12T13:22:50 | 403,931,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 994 | py | import io
import os
import sys
from sqlalchemy.util import inspect_getfullargspec # noqa
from sqlalchemy.util.compat import inspect_formatargspec # noqa
is_posix = os.name == "posix"
py39 = sys.version_info >= (3, 9)
py38 = sys.version_info >= (3, 8)
py37 = sys.version_info >= (3, 7)
string_types = (str,)
binary_... | [
"formika92@gmail.com"
] | formika92@gmail.com |
dcb7f041c57fee79d04bba5bbd702f3f2f745b55 | d304239374ec8a8da2ac961d9cd00e5446536c3d | /KodleAI3.py | caa556dd8ec586df67ac965e7931bf560a9d9d5c | [
"MIT"
] | permissive | Zahidsqldba07/CodinGame_GitC | c4f010a7c737458c1860d5782d9d8bded6b8c9b8 | f55db74dc53d8f2e8d71bc652dc792e6d005adf2 | refs/heads/master | 2023-03-16T15:51:48.940119 | 2018-05-01T05:15:18 | 2018-05-01T05:15:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 62,000 | py | import sys
import math
import random
###################
# Debugging Flags #
###################
MSG_CONTENT = ""
MSG_MAXLEN = 42
MSG_RATE = 12
MSG_RANDIDX = -1
MSG_DELAY = MSG_MAXLEN
MSG_START = 0
MSG_END = MSG_MAXLEN
MSG_OUTPUT = True
SHOW_RESOLUTION = False
SHOW_ENEMY_ATTACKS = False
#########################
# Hi... | [
"devyaoyh@gmail.com"
] | devyaoyh@gmail.com |
d5fcb9b809cc8fb4258e72d8c48de1fa360a2a87 | 572e4478e5f8edc308e41e5f801d89528653e1f0 | /temp/test_data.py | 5bf4b5442e335372e4aec5bcbf21fdcf6b328595 | [] | no_license | dbwodlf3/image_albar_skew | facb8f3e830b276c343853e4b4e1d3e8d1fcfe83 | d24bda1e563b81c74e3cd83260afb93fa03e76ef | refs/heads/master | 2020-09-10T21:46:48.240551 | 2019-11-15T09:39:23 | 2019-11-15T09:39:23 | 221,843,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48,858 | py | import cv2
import numpy as np
kernel = np.ones((5,5), np.uint8)
img = cv2.imread("test2.png")
img_gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
img_gray_blur = cv2.GaussianBlur(img_gray, (5,5), 0)
img_canny = cv2.Canny(img_gray, 50, 200)
img_canny_dilation = cv2.dilate(img_canny, kernel, iterations=3)
test_data = \
[... | [
"dbwodlf3@naver.com"
] | dbwodlf3@naver.com |
d2b5a47ddc782506bfba00b7042c810354ca91ce | 828ae8d9936b735c6ecb13514fae76dde59199f2 | /src/sync/page_down.py | aeed2cf1cbe0432a5cc806ebd04192ff49ec4302 | [] | no_license | KenJi544/async_training | a8630e2c3d090a68ee467c86d7ed5d7302221830 | a9b02536c7661b4003eeb5cf911cc4ba78972481 | refs/heads/master | 2020-03-28T21:11:29.295064 | 2018-10-19T06:57:53 | 2018-10-19T06:57:53 | 149,136,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | import requests
from .util.loggin_util import logger
def download_page(url):
logger.info("downloading the page")
page = request.get(url)
logger.debug(f"page status : {page.status_code}")
if page.status_code == 200:
logger.info("page downloaded with succes")
else:
logger.warning("pa... | [
"grigori@smartsoftdev.eu"
] | grigori@smartsoftdev.eu |
b35422cbf3d8501bfd9d006f2035134b3d022010 | 327a8fe2743bde7f49b19914e4d62091cb7c79d6 | /upload/wsgi.py | d97d7643e5921ed05ee7ec9f48320185ec321262 | [
"MIT"
] | permissive | danrneal/raft-drf-exercise | 3de78d115e02a3739911feb30e1b96f482b873e0 | f62d2f05cd085f7a8d9b89f4ecee2c76feb4b47e | refs/heads/main | 2023-08-03T17:04:14.583022 | 2021-09-22T19:53:08 | 2021-09-22T19:53:08 | 312,690,985 | 0 | 0 | MIT | 2021-09-22T19:53:09 | 2020-11-13T21:47:48 | Python | UTF-8 | Python | false | false | 389 | py | """
WSGI config for upload project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTIN... | [
"dan.r.neal@gmail.com"
] | dan.r.neal@gmail.com |
1c007a72ebede5a6f4735902bc08972873a7d79c | 07841d4b6497028f651b9fb7a028322875e08e9c | /src/ftc_scoring.py | 82b5cdbb3ffdc7ef75802320b898411f1cde2825 | [] | no_license | JIceberg/Raider | e1e922b158577595fc6695ad2e7bb5ccaa2df4c2 | d829c1f4df362c688546be5bce2f2ab9fb0c3ac2 | refs/heads/main | 2023-03-20T20:40:21.229978 | 2021-03-16T04:15:59 | 2021-03-16T04:15:59 | 328,736,742 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,968 | py | import requests
from bs4 import BeautifulSoup
def lookup_team(team):
values = {}
url = "http://www.ftcstats.org/2021/index.html"
with requests.Session() as s:
with s.get(url) as page:
soup = BeautifulSoup(page.content, 'html.parser')
rows = soup.findAll('tr', class_="trow")... | [
"jisenberg3@gatech.edu"
] | jisenberg3@gatech.edu |
d87050e9f0620d49c9b7e96014c4fa531605ba4a | 64ab5b65afdf8d950c4b56ad2259133b95fc2fec | /zeus/migrations/e373a7bffa18_unique_build_failures.py | c118ddf8f86aee0ea630a9b38be70d3beae61969 | [
"Apache-2.0"
] | permissive | getsentry/zeus | 3e88895443b23278fdb4c25121422ee214630512 | 6d4a490c19ebe406b551641a022ca08f26c21fcb | refs/heads/master | 2023-09-01T14:20:11.396306 | 2021-04-30T17:08:33 | 2021-04-30T17:08:33 | 96,131,433 | 222 | 27 | Apache-2.0 | 2022-06-01T03:17:16 | 2017-07-03T16:39:35 | Python | UTF-8 | Python | false | false | 897 | py | """unique_build_failures
Revision ID: e373a7bffa18
Revises: 54bbb66a65a6
Create Date: 2020-03-13 09:25:38.492704
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = "e373a7bffa18"
down_revision = "54bbb66a65a6"
branch_labels = ()
depends_on = None
def upgrade():
... | [
"dcramer@gmail.com"
] | dcramer@gmail.com |
a1ebf96d93a3e1ae78d6189b078630bb4fcf8d52 | 7f90f49237b30e404161b4670233d023efb7b43b | /第二章 python核心/HX02_linux系统编程/01进程/test/jc10_子进程多种方式小结.py | a42c62f02979b3b07ae8548d92ebb3d3b86fd1b6 | [] | no_license | FangyangJz/Black_Horse_Python_Code | c5e93415109699cc42ffeae683f422da80176350 | 34f6c929484de7e223a4bcd020bc241bb7201a3d | refs/heads/master | 2020-03-23T01:52:42.069393 | 2018-07-14T12:05:12 | 2018-07-14T12:05:12 | 140,942,688 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | # !/usr/bin/env python
# -*- coding:utf-8 -*-
# author: Fangyang time:2018/3/31
# (1) fork, 只用于linux (不推荐)
ret = os.fork()
if ret == 0:
# 子进程
else:
# 父进程
# (2) Process(target=xxx), 还有一个 class Xxx(Process):
p1 = Process(target=func)
p1.start()
# 主进程也能干点活
# (3) pool (推荐)
pool = Pool(3)
pool.apply_async(xxxx)... | [
"fangyang.jing@hotmail.com"
] | fangyang.jing@hotmail.com |
f95e001f83ea29c873d684224d81e484c9e2fcf7 | 7ae88e7e37fe4f472d3ab9bf2533a8b0e1b20e78 | /mozilla_l10n/convert_from_github/screenshots-monorepo-convert.py | dc908cd81b7a3e5f9ea5aeac459cc63334b480d3 | [] | no_license | mathjazz/scripts | 753cfa08c02c9bcb6a0df7fe938e0fb98d13c456 | 2e32220fd6449079b0f9520913c977c2be5e8fcc | refs/heads/master | 2020-12-04T00:51:38.906775 | 2019-12-18T12:58:00 | 2019-12-18T13:01:56 | 231,544,375 | 0 | 0 | null | 2020-01-03T08:23:33 | 2020-01-03T08:23:32 | null | UTF-8 | Python | false | false | 4,022 | py | #!/usr/bin/env python3
# Example:
# ./screenshots-monorepo-convert.py ~/github/screenshots-hg/ ~/mozilla/mercurial/l10n_clones/locales
# Add --push to push to remote repository
import argparse
from concurrent import futures
import json
import os
import subprocess
import sys
from tempfile import mkstemp
from functools... | [
"flodolo@mozilla.com"
] | flodolo@mozilla.com |
61c00f543bd77b38fc7b8a2418e3931bac1010e2 | ef7760e3d51ab8991a1bdd41b4bf4de178cf8ad9 | /sp500_app.py | 4edfd2be3b14f8b6ff94c66aa911785e25952366 | [] | no_license | tundao912/datascience | e7dfb31322073100d118652d7558ff05df02a202 | cc67f5a21bd21f3a38aeb1c04d1b042a4d4f927e | refs/heads/master | 2023-05-29T10:35:29.172968 | 2021-05-19T15:45:34 | 2021-05-19T15:45:34 | 368,921,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,276 | py | import streamlit as st
import pandas as pd
import base64
import matplotlib.pyplot as plt
import yfinance as yf
st.title('S&P 500 App')
st.markdown("""
This app retrieves the list of the **S&P 500** (from wikipedia) and its corresponding stock closing price (year-to-date)
* **Python libs:** base64, pandas, streamlit
... | [
"tung.dao912@gmail.com"
] | tung.dao912@gmail.com |
72c0b00f5161bc813e48b07068412ddbfebac6fd | 4e61fbe0f0d4b667b665a53b9ff65e15ce6decb6 | /ImageSelectionGUI_v9.py | 733fd24636b09559d32a298acf17980ef5c3dc84 | [] | no_license | sgkuntz/OxygenCode | 79b48a5d12ed1d5ab811614546cd6124ea866130 | 47504538535d32fa96ddde29fbe2452fcc5d4ab5 | refs/heads/master | 2021-01-10T04:16:30.665508 | 2015-10-16T09:19:27 | 2015-10-16T09:19:27 | 44,127,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,311 | py | # try writing a gui for image analysis (select the image that is at the right time point)
# python ImageSelectionGUI_v7.py 5 -m -e cephalic_furrow_formation
# python ImageSelectionGUI_v7.py 5 -e cephalic_furrow_formation
from Tkinter import *
from PIL import Image, ImageTk
import os, re, sys, string
# select events
ev... | [
"sgkuntz@berkeley.edu"
] | sgkuntz@berkeley.edu |
f432773e59e03334229c89d8eeec0a82cddd3d78 | feca7fb4e8baddfaeee72c3df03a84ba9645e87a | /working/brouillon.py | afb2607188625e251bdfe2c10e3991e1b1018a35 | [] | no_license | sherr3h/Gaming-Text-Analysis | f2a9b3944465b5fa9464dfce2562e47af2711a99 | 7aa4e1f4d1daf9627f92cbf84fd9f05c4c6e6917 | refs/heads/master | 2020-08-07T22:09:37.382541 | 2019-12-06T15:47:03 | 2019-12-06T15:47:03 | 213,599,544 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,021 | py | import pandas as pd
import datetime
from datetime import timedelta
import numpy as np
import re
import os
from Parser import info
from Parser import parser
from Parser_Financial import parser_financial
from Parser_Financial import price_variation
from textblob import TextBlob
from datetime import timedelta
from datetim... | [
"noreply@github.com"
] | sherr3h.noreply@github.com |
c99877be4297fa99c457ac8168b09170931dda91 | c9bffb231a577c349804540cfa3c727e809ea5b2 | /com/utils/log.py | 5b9762a7654a00c47d5b89f04099e62d6b2931fc | [] | no_license | laowng/Binance-News-Getting | 2d8c71615aac54b70f59ec828dde384c5028041e | 223467c76cef116a3bd1a0f5993cebc56cfbb0d1 | refs/heads/main | 2023-01-28T02:30:01.483134 | 2020-12-09T12:20:05 | 2020-12-09T12:20:05 | 319,312,491 | 4 | 1 | null | null | null | null | GB18030 | Python | false | false | 2,024 | py | import time
import os
import logging
class Log():
def __init__(self,log_dir):
if not os.path.exists(log_dir):
os.mkdir(log_dir)
self.log_path=os.path.join(log_dir,"log.txt")
def write(self,*args):
with open(self.log_path, "a",encoding='utf-8') as log:
log.writelin... | [
"wangwen@snnu.edu.cn"
] | wangwen@snnu.edu.cn |
1dc34a70d54fe0218a1f36925c42925187f60b1a | 506adfb65627e1ac8dc65bdd18ae0f4318d5e3cd | /docs/Solvers_Raymond_Hettinger/python/einstein.py | 9079b40a26ea0bd33f091641efb351d3cfec71af | [
"MIT"
] | permissive | winpython/winpython_afterdoc | d6d9557c12bc6cbf615b3d85ba02df7b794ea1f6 | 7e417462c243f9aaa11c2537249bd88355efd1c5 | refs/heads/master | 2023-06-27T22:55:23.430067 | 2023-06-11T09:57:31 | 2023-06-11T09:57:31 | 23,197,567 | 16 | 10 | MIT | 2023-08-20T11:43:58 | 2014-08-21T18:06:42 | null | UTF-8 | Python | false | false | 2,499 | py | from sat_utils import solve_one, from_dnf, one_of
from sys import intern
from pprint import pprint
houses = ['1', '2', '3', '4', '5' ]
groups = [
['dane', 'brit', 'swede', 'norwegian', 'german' ],
['yellow', 'red', 'white', ... | [
"stonebig34@gmail.com"
] | stonebig34@gmail.com |
dab5e2c2641d2c78be9cee19f9c5cd8c9caa4572 | bf1bc5bfba2d8b50b7663580dfddd71da7dcab61 | /codingame/code-of-the-rings/complex3.py | 01163a82b8b5b47a706ddc64c1ff636d0b0c30a6 | [] | no_license | kpbochenek/algorithms | 459a4377def13d5d45e3e0becf489c9edd033a5e | f39d50fe6cd3798a8a77a14b33eecc45412927fa | refs/heads/master | 2021-05-02T09:35:54.077621 | 2016-12-27T18:45:13 | 2016-12-27T18:45:13 | 38,165,785 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,145 | py | #!/bin/python
import sys
import math
MOVE_LEFT = '<'
MOVE_RIGHT = '>'
INCREASE = '+'
DECREASE = '-'
SPELL = '.'
START_LOOP = '['
STOP_LOOP = ']'
A0 = ord('A') - 1
Z0 = ord('Z') + 1
ALPHABET_LEN = Z0 - A0
ZONES_LEN = 30
def letter_distance_move(l1, l2):
l1o, l2o = ord(l1), ord(l2)
if l1 == l2:
retu... | [
"krzychosan@gmail.com"
] | krzychosan@gmail.com |
bdd2cca9bb9cdeb0136d0359b5e5d4f9724f3dfe | e1a4fcdff2fc92650b161da9dd1a81f44a73cb42 | /shop_engine/models.py | 89f526445d46aaf5fe74a5f14a7ff2b32071480c | [] | no_license | djcors/inmersa | f7c228fb80aa6a0014ec0cde2d6aa2ad5563d0b0 | 386d6882ba5dda2e2be39817520c9934912f21e4 | refs/heads/master | 2021-01-12T11:02:36.018720 | 2016-11-08T00:59:12 | 2016-11-08T00:59:12 | 72,796,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 756 | py | # -*- coding: utf-8 -*-
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.contrib.auth.models import User
from products_engine.models import Plato
class Compra(models.Model):
usuario = models.ForeignKey(User, related_name='apps_compras',
... | [
"djcors@gmail.com"
] | djcors@gmail.com |
c3db9b0dd06cc6a056e6642d2f5ecbfb6276af25 | 73817d7de7c8f6b245505bf9572c62e57aa155dc | /emotiondetection/emotiondetection/manage.py | 281b6205c613759ef48c9d88a53ba93b6aed180c | [] | no_license | jainaagam96/Song-sonic | 1fa02b47e5ceb5707cf323b357918dda5cb602a6 | fc4605f7e5200b2d47a2fdd255f45d39b32fa100 | refs/heads/main | 2023-07-26T12:59:53.033809 | 2021-08-31T11:15:10 | 2021-08-31T11:15:10 | 401,451,015 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | 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', 'emotiondetection.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
rai... | [
"44803762+jainaagam96@users.noreply.github.com"
] | 44803762+jainaagam96@users.noreply.github.com |
b73f43953012ddb423295001500745fc93163534 | 20eaefe7d45fdff08bfc4f365775503c5a772c86 | /tests/dev-basic-cosmic-rocky | 89a7b864fb9cfb2f1a50f6f0445c836ea5d82638 | [
"Apache-2.0"
] | permissive | jayk-canonical/charm-rabbitmq-server | 6becbbff3125816e8dc4292f976fb10afe5713e4 | a388bf52c89ba2a890a81353fe4210e5bfa4e487 | refs/heads/master | 2020-04-21T10:28:24.682207 | 2019-01-21T16:23:59 | 2019-01-21T16:29:45 | 169,487,309 | 0 | 0 | NOASSERTION | 2019-02-06T22:34:23 | 2019-02-06T22:34:23 | null | UTF-8 | Python | false | false | 830 | #!/usr/bin/env python
#
# Copyright 2016 Canonical Ltd
#
# 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... | [
"ryan.beisner@canonical.com"
] | ryan.beisner@canonical.com | |
2729f90f81f677b774814ae668f71f955e24f147 | 4846b5a8687bed9481f7ac67d2c90f3329cee7a3 | /docs/conf.py | 2b50c694beed64a3daae0f0f62000f85181cb51c | [
"MIT"
] | permissive | athiwatp/pygtfs | b9018293d4972e2c7f083b1ca15409df1287a187 | 6cf075a304efb8bed09659e80aabbaf36c88c97c | refs/heads/master | 2021-01-16T17:42:53.193525 | 2014-01-22T19:31:55 | 2014-01-22T19:31:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,314 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# pygtfs documentation build configuration file, created by
# sphinx-quickstart on Wed Jan 22 11:52:42 2014.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# aut... | [
"jarondl@server.fake"
] | jarondl@server.fake |
463df5265956ce8f9be95db8cb4e136e5a16db5e | e3cbf8a625b266839cfb56285a5e625f01ae8cbf | /testNumPy.py | f385fa8a77611413b6c7c158070702690b418226 | [] | no_license | zjscsdn/cheat-engine-QQSpeed-By-python | a561eeae66e6968f4c8cd7cf63ca6c7d1a8692bd | b09b76fd67274a30f85998754f842725ce4ff3ee | refs/heads/master | 2023-07-12T22:20:43.502149 | 2021-08-19T05:50:38 | 2021-08-19T05:50:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 587 | py | import numpy as np
def first_subarray(full_array, sub_array):
n = len(full_array)
k = len(sub_array)
matches = np.where([(
full_array[start_ix] == sub_array[0]
and full_array[start_ix + 2] == sub_array[2]
and full_array[start_ix + 3] == sub_array[3]
) for start_ix in range(0, n... | [
"xudazhu.z"
] | xudazhu.z |
3a8df5bd1ae0bae4ca755a9613765b60c5e7f2fd | 07d3442cb612ed574de3f13577fda3b9cbca34b8 | /Archive Formats/fmt_laserlight_res.py | cbf558e6ba39cd8c301a6f94443c2909e0ecca7c | [
"MIT"
] | permissive | TheDeverEric/noesis-scripts | 3153f879fe51faf10b98f7ce022e1ed6336082e5 | 0a96ccbcac304c91dc21d252e0e4c6f10e0aaa16 | refs/heads/master | 2020-03-23T17:11:37.850054 | 2018-07-21T22:11:28 | 2018-07-21T22:11:28 | 141,847,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,223 | py | #-------------------------------------------------------------------------------
# Name: Laser Light *.RES
# Purpose: Extract Archive
#
# Author: Eric Van Hoven
#
# Created: 01/09/2017
# Copyright: (c) Eric Van Hoven 2017
# Licence: <MIT License>
#-------------------------------------... | [
"noreply@github.com"
] | TheDeverEric.noreply@github.com |
6a27ab74d53e5ac53d5734c115cad15d4de6af08 | a16ffedb5a456fe46e1a105b26f81a5eefe682a7 | /flyte/pack/errors.py | 9e5964f191760d18c973751b4e8596958a9a3360 | [] | no_license | ExpediaGroup/flyte-client-python | 1faabceb6a44261517944799a3ff26d891cd5e0a | 94ec7727a99a22e824632db9541df42dfe57b553 | refs/heads/master | 2023-04-13T03:17:01.095604 | 2020-08-25T13:30:07 | 2020-08-25T13:30:07 | 212,380,902 | 0 | 2 | null | 2023-04-10T07:17:57 | 2019-10-02T15:49:32 | Python | UTF-8 | Python | false | false | 472 | py | class PackError(Exception):
"""Base class for pack errors"""
def __init__(self, msg, original_exception):
super(PackError, self).__init__(msg + (": %s" % original_exception))
self.original_exception = original_exception
class SendEventError(PackError):
"""
Error raised when send event... | [
"isaac.asensio@gmail.com"
] | isaac.asensio@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.