blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
73e8ef99e53d2aaeeb1ea03125982542a67cbd7b | 0c027ff203fc3d109f927639642c28f5ec37632b | /robot/video.py | bcace3cd4968c0ab69d7bcf4ed13020a075bde16 | [] | no_license | mcbianconi/reddit_scrapper | 5200705473116205770da9d1a6723e225891a4c2 | 447d38eee0190214be108483619d28493cfacfb5 | refs/heads/master | 2022-02-19T06:02:45.739192 | 2019-09-21T14:57:45 | 2019-09-21T14:57:45 | 207,712,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,047 | py | import os
import shutil
import subprocess
from robot.config import (IMG_HEIGHT, IMG_WIDTH, OUTPUT_DIR,
RESIZED_VIDEO_SUFFIX)
VIDEO_FILE_NAME = "video_input_list"
AUDIO_FILE_NAME = "audio_input_list"
def make_files(comment_list):
submission_folder = os.path.join(
OUTPUT_DIR, com... | [
"murillo.bianconi@gmail.com"
] | murillo.bianconi@gmail.com |
ec4f8c6ba276514b62e7887ae58142eafdba83b9 | ade85b6086c4775b673b94fb39dd2cab6965e48d | /loudblog_just_for_git_purposes/imi_to_cgnet_recordings/IMI_to_CGNet.py | eadd7edd1dfbdc8245981777c45c07e8f436b15f | [
"MIT"
] | permissive | rulebreakerdude/MobileSatyagraha_Backend_aws | dde4c0d6294269275609c2631281859d93440a96 | af8658e5ab4c1593f56d38196c1b872655d70977 | refs/heads/master | 2022-12-21T22:46:56.628832 | 2020-04-19T03:17:07 | 2020-04-19T03:17:07 | 155,894,774 | 2 | 3 | MIT | 2022-12-08T04:51:04 | 2018-11-02T16:43:48 | Python | UTF-8 | Python | false | false | 1,861 | py | import ftplib
import subprocess
from db_repo import *
import smtplib
#from string import Template
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from email.mime.base import MIMEBase
from email import encoders
from mutagen.mp3 import MP3
mydb=database_flaskr()
MY_ADDRESS... | [
"rulebreakerdude@gmail.com"
] | rulebreakerdude@gmail.com |
5599bacd9c46473647fe8b163053d8f159092557 | 7515ed0821b925d08b31c4acb7efc2e0c0f8c8d6 | /copla_search_reply_bot.py | d1d2e453e9448e447a968ff155733c7c1e99d614 | [] | no_license | himanshu-irl/covidplasma_bot | 271895e107d83cbd1fecfd5eef083b96f7de80d7 | a32f604fc0d0dbf2ae209ff93b174dfeed7a29b2 | refs/heads/main | 2023-09-01T23:17:43.774502 | 2021-11-19T21:22:50 | 2021-11-19T21:22:50 | 360,315,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,375 | py | # -*- coding: utf-8 -*-
"""
@author:
Verma, Himanshu
"""
#If account is locked
#https://twitter.com/account/access
import tweepy
import time
import random
import datetime as dtm
import logging
#ud-modules
from covidplasma_bot.input import keys, paths, tweet_parameter as param
from covidplasma_bot.replier import t... | [
"himanshuverma1516@gmail.com"
] | himanshuverma1516@gmail.com |
5bd77a1c3d522e951f3792bdc26ad0123792bc50 | b3a3ff13bae2f2597cf1e4f1ca74845ff34cbd08 | /apps/goods/migrations/0013_images_classify_two.py | c649add75a59df8c6eca2e9e6ea86ca7ba2a9d79 | [] | no_license | mkcc581130/MkOnline | b6593c973f958105dfdee92b3063231e9d7e6b97 | b39cc48a05abe7340cbd8b59f77f21dc1b12bb23 | refs/heads/master | 2020-04-06T21:04:07.391589 | 2018-11-16T09:11:16 | 2018-11-16T09:11:16 | 157,791,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-08-31 15:22
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('goods', '0012_auto_20170831_1513'),
]
operations =... | [
"575151723@qq.com"
] | 575151723@qq.com |
bbafe5cb079e010686f81c3f97e3da672521a8e1 | eaedf6de025b1d04fddaae2c80556ec9791d15a6 | /website/contactkeep/models.py | 435c315da64642a75b39bd47d4f9322ac882e742 | [] | no_license | sherlock6147/contact-keeper | 54ed02565c806b8e5d8a49eb9e9a9b2f77ec8256 | 38c0516aa62cbcc5ff89f307944ae98640bd96c4 | refs/heads/master | 2023-04-26T18:43:59.764527 | 2021-05-23T16:31:41 | 2021-05-23T16:31:41 | 365,991,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,702 | py | from django.db import models
from django.db.models.query_utils import select_related_descend
from django.utils import timezone
# Create your models here.
class Event(models.Model):
name = models.CharField("Event Name",max_length=150)
start_date = models.DateField("start date")
end_date = models.DateField(... | [
"tooshort9541@gmail.com"
] | tooshort9541@gmail.com |
c8ca91810328f7cdb73e19a3734869b5ba021ea3 | e5521f8544c63da113859eb9356828a0e7edd652 | /blog/migrations/0016_auto_20171222_1657.py | 5c89db310681999cb3c8a55df918c7eab6886577 | [] | no_license | E0han/photography-web | c906967faa91efeae640e3759d46f41610410547 | ba8fcaa0bc45918ea06ede0e38703d3453cba6dc | refs/heads/master | 2021-09-02T09:40:29.267390 | 2018-01-01T14:43:00 | 2018-01-01T14:43:00 | 112,300,685 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 838 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-12-22 16:57
from __future__ import unicode_literals
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('blog', '0015_auto_20171222_0916'),
]
operations = [
... | [
"ethan@YAMdeMacBook-Air.local"
] | ethan@YAMdeMacBook-Air.local |
fb62ce0017de691177ebd7cac0b9e7d400b3b23d | 88c453eebfd506926560787d2e964132cc6150a6 | /accounts/admin.py | 33bb6ab7d054bef7ca02fbe4ed6ed014b8f859bb | [] | no_license | ashish2/PySite | ecbde977a5195adefe7fe9065a909b87a95c46e1 | a1513090568de3a0eade4d0f7df3d67d1992cbe2 | refs/heads/master | 2018-09-27T17:56:57.045095 | 2018-08-19T15:26:54 | 2018-08-19T15:26:54 | 12,662,322 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from django.contrib.auth.models import User
from models import UserProfile
class ProfileInline(admin.StackedInline):
model = UserProfile
fk_name = 'user'
max_num = 1
class CustomUserAdmin(UserAdmin):
inlines = [ProfileInline,]
... | [
"vickyojha2@yahoo.com"
] | vickyojha2@yahoo.com |
9622f9ca09bff14c0d6cf590fd551ff732c036e1 | 6bf9e20aa0521fa9a153ddf754fe558e701b077e | /Flask/main.py | a889af48f0b4f2e818c3633c76d0f68e09cc1d4a | [] | no_license | Santhosh-A-K/Flask | 0b04baaf08c4d393727a695b8aa383e23ecf0c2f | 33eb7b45f69d3c50969e7617ebfa29bc0cca50b3 | refs/heads/master | 2022-08-26T05:40:11.289824 | 2020-03-12T03:34:22 | 2020-03-12T03:34:22 | 244,713,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,156 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Mar 3 22:26:46 2020
@author: santhosh
"""
import logging
logging.basicConfig(filename='app.log', filemode='a',level=logging.DEBUG)
from flask import Flask,redirect,url_for,request,render_template
from mongoConnection import mongoConnect
app=Flask(__name_... | [
"noreply@github.com"
] | Santhosh-A-K.noreply@github.com |
1b548a161e569b32fa70ab178b597b67048e8363 | a6edb3c29d06abf46f657963fcb8716eb370aabe | /wiki/urls.py | 709aff20082fdbe0934395e004bdbfd35faff7f0 | [
"MIT"
] | permissive | ellojess/makewiki | 5ecd2b05e11906f2e7ce8ee4160620f8c925c95d | 353352ef71f395c0246b3757006bbafcc9bffa6d | refs/heads/master | 2023-05-01T19:25:49.618312 | 2020-02-21T19:57:57 | 2020-02-21T19:57:57 | 238,797,725 | 0 | 0 | MIT | 2023-04-21T20:46:34 | 2020-02-06T22:27:23 | Python | UTF-8 | Python | false | false | 319 | py | from django.urls import path
from wiki.views import PageListView, PageDetailView, NewPageView
urlpatterns = [
path('', PageListView.as_view(), name='wiki-list-page'),
path('new-page/', NewPageView.as_view(), name='wiki-new-page'),
path('<str:slug>/', PageDetailView.as_view(), name='wiki-details-page'),
] | [
"jtjessicatrinh@gmail.com"
] | jtjessicatrinh@gmail.com |
bc03d3213f757b64b9f4f8f296e4c26d3787b6b0 | cb39dedfab9ce07fa0dd7fc0efed625f71a23cda | /passbucket/users/migrations/0001_initial.py | 1424e01acc7c376b72b97d47d0578beca0e9f5e9 | [] | no_license | neotrons/passbucket | 25fb5fcccab6d6a2fe181cf0a98fe7dabad37d68 | 8845cfd2fdad04df0a68c62f9f5a1b0eeb60d585 | refs/heads/master | 2020-03-30T20:14:09.332629 | 2019-05-09T22:17:58 | 2019-05-09T22:17:58 | 151,579,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,868 | py | # Generated by Django 2.0.4 on 2018-10-04 23:39
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0009_alter_user_last_name_ma... | [
"jcramireztello@gmail.com"
] | jcramireztello@gmail.com |
c327fdbb3cdba0853e6eed11b3727dd273c92dd2 | aadfb150c0b662c9cb7ec763bddfdb3e3a7333b2 | /Mono_Encrypt.py | ecae4b47cd1fb51a4fae7a108d82cc0855566bb0 | [] | no_license | xue-yuan/Classic_Crypto | 7edbf40831f08e67b9303a7bf89e08ea3ca6edcc | 88c475ca7cd4f055842b890a081c11de00c23539 | refs/heads/master | 2022-03-30T07:49:42.711728 | 2019-12-21T04:27:24 | 2019-12-21T04:27:24 | 183,240,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py | def monoCipherEncrypt(plain, key):
keymap = {}
cipher = []
for i, e in enumerate(key):
keymap[chr(i + 97)] = e
for i in plain:
if i < 'a' or i > 'z':
cipher.append(i)
continue
cipher.append(keymap.get(i))
return cipher
whi... | [
"g00se.9527@gmail.com"
] | g00se.9527@gmail.com |
fe14c1c48dec9e54e0e8fb37472870b424569383 | 87ba51b22a7f42c24e3c5364bccf460390f79655 | /rain.py | af3fb913db82fc77c3a5f42e8ea1f0bc3e066faa | [] | no_license | cjturne6/weatherstation | 4406f779dd0395be2ca8cd8445d8df1b9be6fc70 | 007d6473a9341e290b51344f5814804402f9bebf | refs/heads/main | 2023-04-10T10:30:54.355120 | 2021-04-25T14:24:03 | 2021-04-25T14:24:03 | 360,980,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | #!/usr/bin/env python3
import RPi.GPIO as GPIO
BUTTON_GPIO = 26
if __name__ == '__main__':
GPIO.setmode(GPIO.BCM)
GPIO.setup(BUTTON_GPIO, GPIO.IN, pull_up_down=GPIO.PUD_UP)
while True:
GPIO.wait_for_edge(BUTTON_GPIO, GPIO.FALLING)
print("Button pressed!")
| [
"turner.collin@gmail.com"
] | turner.collin@gmail.com |
095895835303bf63e55c209087016bcd47a53900 | c6de42be3b8d3952ac4f970a410eb5ee7afbd580 | /firstProgram_oct.py | e64f5038b01ccc5a540402d3f4949fed17ed6d9c | [] | no_license | kaiyaprovost/algobio_scripts_python | f0ac802b3a92ad514f69745984089ae69634c1e3 | d273974127d6651621a3bb854036436d6e42444d | refs/heads/master | 2021-01-21T13:53:15.826050 | 2016-05-06T21:54:28 | 2016-05-06T21:54:28 | 51,173,508 | 0 | 0 | null | 2016-05-06T21:54:28 | 2016-02-05T20:57:01 | Python | UTF-8 | Python | false | false | 136 | py | import turtle
teddy = turtle.Turtle()
for i in range(8):
teddy.forward(100)
teddy.right((360/8))
turtle.exitonclick()
| [
"klp2143@columbia.edu"
] | klp2143@columbia.edu |
49bb51e9b948d124b3a1f776df7bbddf90d813b7 | dade24dd3f1144878a87e7b27eef3b90b9ebdfb4 | /api-clients/python/test/test_inline_response_200_5.py | f0521f14c0bb2aaccb6e75fb36ab3117f75ac0b6 | [] | no_license | lucaslmmanoel/otreeba-api-clients | f076144ff013071628cca179592b9713fba1b094 | 355e0635b4ffc651df7eb7cf2b23ea62d39280c1 | refs/heads/master | 2021-07-12T18:32:25.169618 | 2017-10-13T20:30:31 | 2017-10-13T20:30:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,289 | py | # coding: utf-8
"""
Otreeba Open Cannabis API
This is an open, canonical database of cannabis seed companies, strains, brands, products, retailers, and studies from [Otreeba](https://otreeba.com). It is written on the OpenAPI Specification AKA Swagger. You can find out more about the Open API Initiative at [h... | [
"david@randomdrake.com"
] | david@randomdrake.com |
8d06548df5f6398354e80696bdcd4de55ab84d3a | f44e4485385296f4d1de2032c64c76de37ec5007 | /pyatv/mrp/protobuf/DeviceInfoMessage_pb2.py | f18237f3e98c6570af7c0facc2de477cda9de067 | [
"MIT"
] | permissive | kdschlosser/pyatv | 370d0a35e39623b8e8e6a087c675ec47aa50fb16 | fa32dab9ad3c4adffdc944ed78427f6c724074f5 | refs/heads/master | 2022-06-20T06:58:13.608441 | 2020-05-11T04:57:55 | 2020-05-11T06:22:23 | 264,143,600 | 1 | 0 | MIT | 2020-05-15T08:48:06 | 2020-05-15T08:48:05 | null | UTF-8 | Python | false | true | 17,207 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: pyatv/mrp/protobuf/DeviceInfoMessage.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import... | [
"pierre.staahl@gmail.com"
] | pierre.staahl@gmail.com |
ba0a3db81be17cc3f350086bd34cecc5073b54ac | 935911dbf5c7ec43e3525ed000fc60d8efff0d9e | /find_anagram/anagram_checker.py | 743a9041dcb73c7980fc1f063753b47521b81c8f | [
"MIT"
] | permissive | mattsgit/anagram_finder | 653fdfe2fd0400a16acb7744fca2826fd12915d3 | da5352d0881563522c3710f3ca880f512dd02748 | refs/heads/master | 2021-08-19T19:39:42.657063 | 2017-11-27T08:28:56 | 2017-11-27T08:28:56 | 111,863,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,275 | py | import sys
class AnagramCheck:
def __init__(self):
pass
def is_anagram(self, a, b):
# remove all non alphanum chars in string
new_a = "".join([x for x in a.lower() if x.isalnum()])
new_b = "".join([x for x in b.lower() if x.isalnum()])
if len(new_a) != len(new_b):
... | [
"matthewradams22@gmail.com"
] | matthewradams22@gmail.com |
83b3e4af3c41afb8fa6ab9c832651bb33e8752e4 | 6f56e9496eca4ce758bfd9b3f9d8180929851e2b | /cmp_dirs.py | 3098ae8ea3df252c4cc9cc817d781cb30e10bbf1 | [] | no_license | yoramzarai/py_tools | b231fc3ad3d41876359eafa0143aef6cc26880b7 | 0d5386f9034bdcea423137433c50af9e04ae73bf | refs/heads/master | 2020-04-13T15:01:18.962746 | 2018-12-27T10:08:24 | 2018-12-27T10:08:24 | 163,278,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,139 | py | #!/opt/local/bin/python3
'''Compares the content in two directories'''
import argparse
import os
from termcolor import colored
import filecmp as fcmp
# Command-line parsing information
def parse_in_args():
''' Defines input arguments '''
# place description
parser = argparse.ArgumentParser(description='Com... | [
"noreply@github.com"
] | yoramzarai.noreply@github.com |
551479db553cc38ade33fc01b941a3b7ba4c94bb | 06a0e768da8fae660652a7de477e13f8be9a0708 | /QuantumDiscreteFourierTransform/classic_dft_example.py | 84030076af85b3b0efc62d3bf5992731bc7bcec9 | [
"MIT"
] | permissive | ettoremessina/quantum-experiments | d5dc1e94cc32a3de2f3f40a25208cfb2b9667301 | 0a06dd5bdde1c3831625147f96348a3d8dfb0533 | refs/heads/master | 2022-11-05T06:40:58.822685 | 2022-10-30T20:41:10 | 2022-10-30T20:41:10 | 218,624,888 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,800 | py | import numpy as np
import matplotlib.pyplot as plt
#signal generation
duration = 2. #in seconds
sampling_rate = 100. #per seconds
sampling_period = 1./sampling_rate
discrete_times = np.arange(0, duration, sampling_period)
num_of_samples = len(discrete_times)
frequency = 5. #in Hz
amplitude = 1.4 #in Volts, for examp... | [
"et.messina@gmail.com"
] | et.messina@gmail.com |
c05700dbe86d74616c8013fd8d430433417ac148 | f7f66d1327238f34d0b3b85c1e221616a95aae8c | /memex_dossier/web/search_engines.py | d91e55479ba651492f015a4e32ee8074f1624841 | [
"MIT"
] | permissive | biyanisuraj/memex-dossier-open | 820d5afc8a5cf93afc1364fb2a960ac5ab245217 | 43bab4e42d46ab2cf1890c3c2935658ae9b10a3a | refs/heads/master | 2020-06-07T01:34:51.467907 | 2018-10-09T15:44:58 | 2018-10-09T15:44:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,270 | py | '''memex_dossier.web.search_engines
.. This software is released under an MIT/X11 open source license.
Copyright 2012-2014 Diffeo, Inc.
'''
from __future__ import absolute_import, division, print_function
from itertools import ifilter, islice
import logging
import random as rand
from memex_dossier.fc import Spars... | [
"jrf@diffeo.com"
] | jrf@diffeo.com |
a0bbf4695e7ad752b16be83f1631a7babdea7f3a | c9293ab68d0235a1830a3634a41a5b65b4eb5d6a | /Lessons/Section-03/lesson_0081/lesson_0002.py | 05b0ca33ab0b45e7283839c5a790fda630138775 | [] | no_license | lipegomes/python-django-udemy-studies | 4f836497ee10ece7ee5b40af1b636bb1c03deb75 | 938fa6a05f9505b8eaf6e7e6bc1c5e199b670432 | refs/heads/master | 2023-01-07T01:22:16.855346 | 2020-11-03T13:49:54 | 2020-11-03T13:49:54 | 283,852,942 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | from newcalc import multiply, double_the_list, PI
from sayhai import say_hi
print(multiply([10, 5]))
say_hi()
numbers1 = [5, 4, 8]
print(double_the_list(numbers1))
print(PI)
| [
"61765381+lipegomes@users.noreply.github.com"
] | 61765381+lipegomes@users.noreply.github.com |
b6a7c8bb7b0ea4447d1bfa3f5e4bfaf58671e05a | 770586dc530756e179ae9db9ae8b30ffa9664e7c | /dataset/mnist.py | 1928dda8769e7e0c038a2e28a7dba134ac64c244 | [
"MIT"
] | permissive | mseif2016/private_objective_perturbation | 0f4c242aa473b57e309fdaf3b07ccceb06e3ca4e | ce0e881f9115c1d07df535261b4b7c6ee650325c | refs/heads/master | 2022-11-14T02:42:35.958656 | 2020-06-30T15:02:08 | 2020-06-30T15:02:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,275 | py | import os
import sys
import numpy as np
from sklearn import preprocessing
from tensorflow.examples.tutorials.mnist import input_data
from utils.utils_preprocessing import convert_to_binary, normalize_rows, format_output
FILENAME_X = 'mnist_processed_x.npy'
FILENAME_Y = 'mnist_processed_y.npy'
def preprocess(cache_lo... | [
"giusevtr@gmail.com"
] | giusevtr@gmail.com |
a562ea5925bb853287c30692e331db3ad17821e2 | 8c42964a29af1d5a2f4541ab634b54e25a90b9f4 | /Example2/configuration.py | 5a64a7d9aada01e4a7e1e383119cbc7d566d617f | [] | no_license | lenzip/CMSDataAnalysisSchoolPisa2019ScalarToWW | a21dc572ae2e152410a867ae5013703c886e4bbf | 8cff1dea08887b78a9efc26a142609ba1b7ba296 | refs/heads/master | 2020-04-14T21:13:03.028961 | 2019-01-23T16:22:23 | 2019-01-23T16:22:23 | 164,121,564 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 803 | py | # example of configuration file
tag = 'Inclusive'
# used by mkShape to define output directory for root files
outputDir = 'rootFile'
# file with list of variables
variablesFile = 'variables.py'
# file with list of cuts
cutsFile = 'cuts.py'
# file with list of samples
samplesFile = 'samples.py'
# file with lis... | [
"piergiulio.lenzi@cern.ch"
] | piergiulio.lenzi@cern.ch |
e3e0ff71c09f66324bba160b6a4edccc40d93fff | ddc5aa77203bf76cd789c173dffbc382ed8ef004 | /test/app_test/master.py | f1fe1995de473cf239f7fc143c31029ce2d5bca1 | [] | no_license | phroiland/FinBiotic | 0b8183ce9f97c3fc4b1f7e20decc3472bffe8800 | a30ef2e979b230e5424fd25ef7dd1fb49bbd5245 | refs/heads/master | 2023-08-18T15:26:15.948262 | 2023-08-15T15:13:23 | 2023-08-15T15:13:23 | 93,895,989 | 2 | 2 | null | 2023-03-01T20:08:37 | 2017-06-09T20:52:02 | Python | UTF-8 | Python | false | false | 4,105 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Mon May 29 13:30:38 2017
@author: jonfroiland
"""
import sys
import argparse
import oandapyV20
import oandapyV20.endpoints.positions as openPos
# Data, Price, and Strategy Imports
import settings
import common.config
import common.args
from stream.stream... | [
"jon.froiland@gmail.com"
] | jon.froiland@gmail.com |
4449a9ba1f7077329a5da7221fd2c951aa9a4573 | ebcea394905df8222c257c8c6c469627a6e48095 | /PyQt5/object_detection/inputs_test.py | cc79131e3a02e54893093a7c803e84b4cb10687c | [] | no_license | valiok98/Python-Qt5-Tensorflow | 2773cfc2a0e569ed53cf3d90066885f17abe8c6a | e03ccc2884b687a36fbe47f5ff320837be3e217a | refs/heads/master | 2021-09-17T20:41:01.908602 | 2018-03-31T12:42:25 | 2018-03-31T12:42:25 | 103,644,683 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,083 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"valentin1998v@gmail.com"
] | valentin1998v@gmail.com |
b5183ff595872d8796cab1c531e0e8ca9453123d | 0ca0bbb58378d9e73b69ca605a8ea8a82b6617da | /src/tag_add.py | c81c4cedf93a1f6da82c33a48c734fcdae582776 | [
"MIT"
] | permissive | tws0002/footage-importer | e1f14447ae4489ad300edd92f459f2776e9a0a4d | a797b79efa184167ca472369b07d1a029dd86cbd | refs/heads/master | 2020-03-28T17:40:47.444278 | 2018-09-19T07:47:05 | 2018-09-19T07:47:05 | 148,812,988 | 0 | 0 | MIT | 2018-09-19T07:47:06 | 2018-09-14T16:10:24 | Python | UTF-8 | Python | false | false | 438 | py | from PyQt5.QtWidgets import QDialog
from PyQt5 import uic
from PyQt5.QtCore import Qt
import os
ui_path = os.path.join(os.path.dirname(__file__), 'tag_add.ui')
class TagAddInput(QDialog):
def __init__(self):
super().__init__(None, Qt.WindowTitleHint | Qt.WindowCloseButtonHint)
uic.loadUi(ui_path... | [
"mrhchief@gmail.com"
] | mrhchief@gmail.com |
55249766cbf2b635521c31509e0f05dbd5aa83cb | 4310528fa617bf1fd498535858bd02e40eb45834 | /venv/bin/easy_install | 73392ec6d584aeeff44e80c7e4d72d15dafafa5d | [] | no_license | lgergelyo/DHT11 | d6f38df38e57b5ac6b2570373a18f6879a859852 | b531722281f29fdaa954bd89fb4333ec49346362 | refs/heads/master | 2020-07-11T08:11:29.105044 | 2019-08-26T14:14:50 | 2019-08-26T14:14:50 | 204,485,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | #!/home/gergely/PycharmProjects/DHT11/venv/bin/python
# 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)?$', ''... | [
"leandrotecnico@terra.com.br"
] | leandrotecnico@terra.com.br | |
44f6551cecf87e0cc64db8a41ab7784033adc958 | 586e60b4bbf80e3da9c1051182a42cb81bb2ea1b | /scripts/generate-demo-users.py | 787052a0fab94bece1059cc3565abb512a20e0bd | [
"Apache-2.0"
] | permissive | DD-DeCaF/caffeine-bootstrap | daa0cb844fd694b87430451baee664d816e366a7 | ec65cd5f135f86c7bf2faeb96930637e910c380f | refs/heads/master | 2021-07-09T15:18:56.476754 | 2020-08-18T11:16:37 | 2020-08-18T11:16:37 | 161,489,310 | 1 | 0 | Apache-2.0 | 2020-08-18T11:16:38 | 2018-12-12T13:03:41 | Shell | UTF-8 | Python | false | false | 409 | py | from iam.models import User, db
from iam.app import app, init_app
init_app(app, db)
app.app_context().push()
print("Adding user: demo@demo")
user = User(email="demo@demo")
user.set_password("demo")
db.session.add(user)
for i in range(40):
print(f"Adding user: demo{i}@demo (password demo)")
user = User(email=f"d... | [
"ali@kvikshaug.no"
] | ali@kvikshaug.no |
3c7c5139a5cd6dd8e33834de89b98fdd8bba4a33 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/length_20200529113854.py | 76b776e2932e64a11975284ff9a772f9332ca676 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | def removeDuplicates(nums):
i = 0
while i <len(nums):
print(nums[i])
if nums[i] == nums[i+1]:
nums.remove(nums[i])
else:
nums.add(nums[i])
# for i in range(length):
# print('i--------->',i)
# for j in range(i+1,length):
... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
30980eca76f9208b779a5f3c5e0e65affab9eb1c | 5e4897b32cd19d145cefc4451ced910313cde0bb | /sphinxextra/phpdomain.py | 4380ed3ab6981611f85ff56abfe6880149f92879 | [] | no_license | Tinkerforge/doc | 7e87edcf8d8b67d1edce749c4a3106f431a77585 | 19e49bad70fbe644aa9b4af4d64f99aa0cf71d7f | refs/heads/master | 2023-08-20T22:10:37.363910 | 2023-08-17T13:33:28 | 2023-08-17T13:33:28 | 2,262,338 | 6 | 8 | null | 2023-07-24T13:46:27 | 2011-08-24T15:21:34 | Python | UTF-8 | Python | false | false | 34,922 | py | # -*- coding: utf-8 -*-
"""
sphinx.domains.php
~~~~~~~~~~~~~~~~~~
The PHP language domain.
:copyright: Copyright 2007-2010 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import re
from copy import deepcopy
from docutils import nodes
from sphinx import addnodes
from... | [
"matthias@tinkerforge.com"
] | matthias@tinkerforge.com |
4dcb1a63e7effceb8e87d2579849844a5dcaecbe | d9eb21a408a449918ed431f760b6a61292869de6 | /Workshops/custom_list/test_custom_list.py | ba4bb2591f76ff8946987ea4c1a7891db8355939 | [] | no_license | zhyordanova/Python-OOP | 5c73ab851848c969beb50b774b67bc9e4c102610 | aad42e108b676de119ac99bef632b76ac595d49a | refs/heads/main | 2023-05-27T06:09:23.524422 | 2021-05-06T22:00:18 | 2021-05-06T22:00:18 | 349,583,825 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,477 | py | from unittest import TestCase
from lists.custom_list import ArrayList
class TestArrayList(TestCase):
def setUp(self):
self.al = ArrayList()
def test_append__when_list_is_empty__expect_append_to_the_end(self):
self.al.append(1)
values = list(self.al)
self.assertEqual([1], val... | [
"zhyordanova88@gmail.com"
] | zhyordanova88@gmail.com |
026745467476e61080f1b8483e76fc80ed91ca82 | 8f337d7a1477eb9878bd252f45fadd967ba5dbbe | /run_galfit_disk_only.py | 62c3df5903da86c2f2a4574520757cfb091c1fa8 | [] | no_license | bpRsh/b1_research_lib | bd4c293946329ea96d0fb37d8769aaa83d1ca15d | 1de77f683b3ba18a1ab142b0fe86114c7a67791a | refs/heads/master | 2021-01-15T19:04:32.177465 | 2020-11-23T19:55:34 | 2020-11-23T19:55:34 | 99,805,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,674 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-#
#
# Author : Bhishan Poudel; Physics Graduate Student, Ohio University
# Date : 26-Oct-2016 13:10
# Last update : Dec 15, 2016
# Est time : 3 min for one galaxy one filter.
# Main commands : rm -r imgblock.fits subcomps.fit ; galfit expdisk_devauc.sh
# ... | [
"bhishantryphysics@gmail.com"
] | bhishantryphysics@gmail.com |
b3d9caa16e9c29665a7edb9b7efabb1a3531e91d | e6f1e23409bfcba563dcfc9dbf6d19c5c99fc0d5 | /linear regression.py | 07283088d68c33d1727f08a7efb0b7811af865cf | [] | no_license | AmiraHmd/gdML | 4378fae056f5ff88cdd1a7d86c68c28f5d16e80d | a4e6c3f495d02c2b0c43700843290c89c30f2fc1 | refs/heads/master | 2022-10-24T01:13:48.355828 | 2020-06-24T10:12:35 | 2020-06-24T10:12:35 | 272,714,651 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,909 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
import numpy as np
from sklearn.datasets import make_regression
import matplotlib.pyplot as plt
# In[2]:
x,y = make_regression(n_samples=100, n_features=1, noise=10)
plt.scatter(x,y)
# In[3]:
print(x.shape)
y=y.reshape(y.shape[0],1)
print(y.shape)
# In[4]:
#... | [
"hamadiamira2@gmail.com"
] | hamadiamira2@gmail.com |
0d345e0ccd73dd5b9c1f651ef05e860db671f8e1 | 76c5a7c8428387d83c0ac11e907997e12a27f8ef | /handler/base.py | bf5c39efa6fe59fccfd439a7b6d8d170d2e92587 | [
"MIT"
] | permissive | northfun/godeyes | 13fd52ce1030899f8d4f015c8a10b63e23d90447 | 5afffa52701e61514aa9935df2806f1804e4a43f | refs/heads/master | 2020-09-12T22:54:03.929993 | 2019-11-27T15:56:45 | 2019-11-27T15:56:45 | 222,584,998 | 0 | 0 | null | 2019-11-19T01:54:23 | 2019-11-19T01:54:22 | null | UTF-8 | Python | false | false | 257 | py |
class Base:
instance = None
client = None
def __new__(cls, *args, **kwargs):
if cls.instance is None:
cls.instance = super().__new__(cls, *args, **kwargs)
return cls.instance
def __init__(self):
pass
| [
"chenenquan@qutoutiao.net"
] | chenenquan@qutoutiao.net |
8097d71b8ebae32d7fdc01e7873b5ee6d6ad0fb4 | c01ab71f681efdeb9f4e7d52ed083745b6d42590 | /old/6th sem/cpp/TRIKA/test_modules/testCases.py | 96b35814c7b3c3e9a1a25b8848bf226225f18b05 | [] | no_license | anant-pushkar/competetive_programming_codes | 398a39c85a761c8d242f42f368933239a438ac06 | 127c67d7d4e2cef2d1f25189b6535606f4523af6 | refs/heads/master | 2021-01-20T11:57:07.528790 | 2014-11-14T08:29:21 | 2014-11-14T08:29:21 | 23,577,655 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | import testTemplate
'''number of test suites'''
nSuites=1
def getTests():
tests = []
suite=testTemplate.testSuite("Sample 1")
testcase = testTemplate.testInstance("4 4\n1 1\n100 55 10 2\n20 10 90 1\n60 20 22 4\n1 30 70 5" , "Y 23" , "")
suite.add(testcase)
tests.append(suite)
suite=testTemplate.testS... | [
"anantpushkar009@gmail.com"
] | anantpushkar009@gmail.com |
adbbdfada5b469d69539163f64be0df3954710d1 | 00af94d633b29adb849409a264caa49d4702822e | /examples/18_rgb_encoding_mobilenet.py | ec73d90363b79e1d647bf484a89e5213631038a9 | [
"MIT"
] | permissive | gromovnik1337/depthai-python | bcc0fe5aff3651a698ee86daf07a5a860f3675d4 | 2b17444aba2f94a236222934e1572c4dd06062dc | refs/heads/main | 2023-03-28T00:34:03.525543 | 2021-03-27T15:28:09 | 2021-03-27T15:28:09 | 348,476,293 | 0 | 0 | MIT | 2021-03-20T08:20:56 | 2021-03-16T20:01:17 | null | UTF-8 | Python | false | false | 3,589 | py | #!/usr/bin/env python3
from pathlib import Path
import sys
import cv2
import depthai as dai
import numpy as np
# Get argument first
mobilenet_path = str((Path(__file__).parent / Path('models/mobilenet.blob')).resolve().absolute())
if len(sys.argv) > 1:
mobilenet_path = sys.argv[1]
pipeline = dai.Pipeline()
cam... | [
"lukpila29@gmail.com"
] | lukpila29@gmail.com |
6660b8d4d207c68d1ac096de1ccd5270579c84c5 | cbe790c67841f82102b54d4e7ff9d9bfbae5435d | /GDash/GDash-Min/GDash-Min/urls.py | e532f05450bc7971f1c55fab5d0759c621db5488 | [] | no_license | Lance-Gauthier-CSC/GenomeDashboard-Django | 69fa35cd026492ca8fd0208a502a55cd7e709a85 | 0d644f83f01d04f444d65e22e0b7a2c1f8362ff0 | refs/heads/master | 2022-11-27T10:33:12.331828 | 2020-07-28T11:35:07 | 2020-07-28T11:35:07 | 270,015,615 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 888 | py | """GDash-Min 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-bas... | [
"lance.gauthier.csc@gmail.com"
] | lance.gauthier.csc@gmail.com |
6b7a698ab1b77b1c68ff89692d00593e418f7d31 | 7f62cf6037d0c6a0e79a0e197519f6404bc0d930 | /bookBrowser.py | 6f2ec69f728637bd7fd475914ddc0c60079da309 | [] | no_license | stpCollabr8nLstn/book-browser | d6d25f346320f44169442514d06d25a66270d445 | 099463df504a4df2a3f4e54bcc0d31edab134110 | refs/heads/master | 2021-01-09T20:18:50.344789 | 2016-06-30T03:27:57 | 2016-06-30T03:27:57 | 62,276,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,331 | py | import flask
import json
app = flask.Flask(__name__)
# returns the index of an id you are searching for in a list
def get_index(general_list, key, value):
general_index = None
for i in range(len(general_list)):
if value == general_list[i][key]:
general_index = i
break
retu... | [
"amrios@us.ibm.com"
] | amrios@us.ibm.com |
15fc22e8fd23bf75543afca8ce167e6017251fa0 | fb1e852da0a026fb59c8cb24aeb40e62005501f1 | /decoding/GAD/fairseq/dataclass/constants.py | 93bc6d03cb81618c47a58009dc22f7953a106eb3 | [
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.1-or-later",
"LicenseRef-scancode-free-unknown",
"Apache-2.0",
"MIT"
] | permissive | microsoft/unilm | 134aa44867c5ed36222220d3f4fd9616d02db573 | b60c741f746877293bb85eed6806736fc8fa0ffd | refs/heads/master | 2023-08-31T04:09:05.779071 | 2023-08-29T14:07:57 | 2023-08-29T14:07:57 | 198,350,484 | 15,313 | 2,192 | MIT | 2023-08-19T11:33:20 | 2019-07-23T04:15:28 | Python | UTF-8 | Python | false | false | 1,626 | py | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from enum import Enum, EnumMeta
from typing import List
class StrEnumMeta(EnumMeta):
# this is workaround for submitit pickling leading ... | [
"tage@microsoft.com"
] | tage@microsoft.com |
4b79a3eb38897d261f00134058fddc49fa3acc84 | f8de6503a34902e5f12d1a0ea22be54c342fbc9c | /translator/__init__.py | ebea33dce6b355697575aa5d6ceb801be7d612e4 | [] | no_license | ethanhjennings/didnt-even-know-it | 2e6b14ad598a8e5f66584e7172cc53c0aa0c551e | 207b737597966b77409f58b13be3a1bf2bef7ee4 | refs/heads/master | 2021-01-20T12:44:48.875354 | 2013-09-24T01:27:21 | 2013-09-24T01:27:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | from translator.translate import translatePoem
from translator.exceptions import TranslatorSyntaxError
| [
"ethan@cs.utexas.edu"
] | ethan@cs.utexas.edu |
048eb7259bc442fe98c5f467df45c137bb3725cd | 4fb8939db0fac64cca6e8414b75353cc6f89b89c | /venv/Lib/site-packages/jedi/evaluate/compiled/subprocess/__init__.py | 9cc8704a457e1919212c066ec733eb538301e8b1 | [
"MIT"
] | permissive | BDubon/Wander | 2c303e09524d84c455171dfe2926e15f87b3bd3c | 12c7e5a9c18b0445a01a61fa1e05f2681bf884df | refs/heads/master | 2022-12-11T20:30:40.468109 | 2019-11-15T03:18:17 | 2019-11-15T03:18:17 | 131,355,054 | 1 | 0 | MIT | 2022-11-22T04:32:15 | 2018-04-27T23:59:07 | Python | UTF-8 | Python | false | false | 11,703 | py | """
Makes it possible to do the compiled analysis in a subprocess. This has two
goals:
1. Making it safer - Segfaults and RuntimeErrors as well as stdout/stderr can
be ignored and dealt with.
2. Make it possible to handle different Python versions as well as virtualenvs.
"""
import os
import sys
import subprocess
... | [
"33406715+BDubon@users.noreply.github.com"
] | 33406715+BDubon@users.noreply.github.com |
a29864449dba920011f6794ab0dfac0a7a45a45b | d5b95e229c5c21ff3c25e828838aed1dc5ca9c1c | /prueba.py | 13bc402c7d03354e6f93fd3460b7881ddc0942d7 | [] | no_license | jmvazz/ds_desafio1 | d3c89dbd82cace3eed65976ee0909a89bd1aac33 | b16f0898f367f6e4e9e828a56d8e901ae32b7db6 | refs/heads/master | 2020-03-26T17:01:52.841600 | 2018-09-05T20:13:57 | 2018-09-05T20:13:57 | 145,138,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20 | py | def prueba():
pass
| [
"jm.vazzano@gmail.com"
] | jm.vazzano@gmail.com |
3e6ea47accbdc339c75b3939b92eac58902b0157 | 203243793e32405778c18d27a32088c806da8ee1 | /DataStructuresAndAlgorithms/DataStructures/ArrayQueue.py | ec38702b77cf625219811099c8312d9e536bc7f9 | [] | no_license | jonnysassoon/Projects | bf9ff35f71b5583d9377deb41a6aa485eec313ac | 3a96ee7800dbdf1c08cdb6c4e5534c4db019ee4a | refs/heads/master | 2021-10-15T23:14:38.053566 | 2019-02-06T16:14:53 | 2019-02-06T16:14:53 | 109,350,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,301 | py | """
Author: Jonny Sassoon
Program: Queue
Implementation of FIFO Data Structure
"""
class Empty(Exception):
pass
class ArrayQueue:
INITIAL_CAPACITY = 10
def __init__(self):
self.data = [None] * ArrayQueue.INITIAL_CAPACITY
self.num_of_elems = 0
self.front_ind = 0
def __len__(self):
return self.num_of_elems... | [
"jonny.sassoon@nyu.edu"
] | jonny.sassoon@nyu.edu |
8b336856ca278bdb4d36904fd1587cee0e315585 | da6e23ae4623a4c975f37257ab8a22e0bdf0e67e | /File-Encrypt/file-encrypt.py | c147cd3b3076c4fa7bd467bc153e87c3e31d15c1 | [] | no_license | unbin/Python | e7946d31774fed6bc88618e70be3cac58c650261 | 4e73c0ae1bb1ec934831eaff8efabb79b64adb84 | refs/heads/master | 2020-08-03T10:45:43.171974 | 2020-04-04T01:40:29 | 2020-04-04T01:40:29 | 211,724,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,189 | py | # File Encrypt.py
# ===============
# XOR Encrypts a file with
# the supplied key.
#
from sys import argv, exit
import sys
import os
DEBUG = True
# DEF
def usage():
print("Usage: " + argv[0] + " <File Path> <Key>")
exit(1)
# Read blocks from file_in, xor encrypt, and write to file_out
def e... | [
"unbin1234@gmail.com"
] | unbin1234@gmail.com |
30d076a33b413db6d98a89853257711172247372 | 60f067710243089ea5a09c676f8092232904ed40 | /ltp/task_segmention.py | bfd04d9af9f685de08e23778fb8c48e4e00e5b95 | [] | no_license | liyang-2401/ltp | cfc5386fe9cebc78f828431b1c04d8288d450678 | 5d26093f2e2bbec76a892dd25e206d9e7dacc13e | refs/heads/master | 2023-01-22T14:43:16.871839 | 2020-12-04T08:00:23 | 2020-12-04T08:00:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,058 | py | import types
import numpy
import torch
import torch.utils.data
import os
from tqdm import tqdm
from argparse import ArgumentParser
from ltp.data import dataset as datasets
from ltp import optimization
from ltp.data.utils import collate
from seqeval.metrics import f1_score
from ltp.transformer_linear import Transformer... | [
"ylfeng@ir.hit.edu.cn"
] | ylfeng@ir.hit.edu.cn |
6878d0f840206e6156c0f635965e8608c7f7bd8e | 4ddb1cb60794f75b7f72074fee6002f4f7367043 | /day22.py | e682b2491ffcafe21b85d17927c4bd51a18b548b | [] | no_license | shamayn/aoc2020 | 25032c84843e5ccb4472bb762ea88ab91b04f249 | 3a81253f0825180615d64dd6dae57a8a1ca9d28c | refs/heads/main | 2023-02-15T08:54:59.214285 | 2021-01-18T02:39:40 | 2021-01-18T02:39:40 | 330,533,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,613 | py | from collections import deque
TEST_INPUT = [
"Player 1:",
"9",
"2",
"6",
"3",
"1",
"Player 2:",
"5",
"8",
"4",
"7",
"10",
]
TEST_INFINITE_INPUT = [
"Player 1:",
"43",
"19",
"Player 2:",
"2",
"29",
"14",
]
def playCombat(input):
playerdecks = parseDecks(input)
while len(playerdecks[1]) > 0 and len(playerdec... | [
"shamayn@gmail.com"
] | shamayn@gmail.com |
226980fdf20772f3a2d26e3b993584790ded886b | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/303/usersdata/299/100769/submittedfiles/testes.py | b90b88a3a2fbbabb9a6af0cc8e965ec6c94201cb | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,871 | py | from minha_bib import verificar_vitoria
from minha_bib import sorteio
from minha_bib import sorteio2
from minha_bib import maquinainteligente
import time
c=0
tabuleiro=[[1,2,3],[1,2,3],[1,2,3]]
for i in range(0,3,1):
for j in range(0,3,1):
tabuleiro[i][j]=" "
print('---------------------------------------'... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
cf36801b7f70c2544b64f279314e448ea314e413 | 231684cab7d5254a1c41b797768989757d6f7359 | /0x06-python-classes/4-square.py | d615b4952f77703977f1cd9a7ae017bf3d843a46 | [] | no_license | gavazcal/holbertonschool-higher_level_programming | c937b224177f0101bcfcc0ee9183c782772ebfe9 | a7ad9de29acf4c0cc837eaf4b8ab753f3a779fdb | refs/heads/master | 2023-08-10T19:43:06.215169 | 2021-09-22T21:28:58 | 2021-09-22T21:28:58 | 319,359,143 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | #!/usr/bin/python3
"""defines a square class"""
class Square:
"""square class"""
def __init__(self, size=0):
"""creates instance size"""
self.__size = size
def area(self):
"""calculates square area"""
return self.__size ** 2
@property
def size(self):
"""s... | [
"2392@holbertonschool.com"
] | 2392@holbertonschool.com |
5f6797cbc576bcd2cab29cfca37c302d8329420f | 9afc5ffde1488d718ac8dec9acd0c5b2dddf390d | /src/mask.py | c3597754fb985b12f27837ca9a15aad361ec8b59 | [] | no_license | pypaut/dobble-player | 1b0b7255986dd08942014c2ff20b547f23aa4838 | 499a9d21dd61a2a6710cca7f42ae3e6b60b56461 | refs/heads/master | 2023-06-10T13:59:42.139290 | 2021-07-05T08:12:54 | 2021-07-05T08:12:54 | 383,062,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 844 | py | import cv2 as cv
from src.utils import show_image
def cards_mask(image, debug=False):
"""
Generate 2D mask for card presence on @image
"""
# Threshold
gray = cv.cvtColor(image, cv.COLOR_BGR2GRAY)
threshold = cv.inRange(gray, 170, 255)
if debug:
show_image("Threshold", threshold)
... | [
"pypaut@hotmail.fr"
] | pypaut@hotmail.fr |
a9b62fc19004fc5b0e65d895afed852291ef136d | 9742f49edd518a3e053c363d8b09d1899b1b59d3 | /VOCdevkit/makeTxt.py | 006730baf3813a8181061b24c6793ea1d4adcb9f | [
"MIT"
] | permissive | 1306298019/YOLOV4 | 7000a68917481d8974cfd65548e3ad213af250ed | 5b790f036a94a30ea6337a3eebd83e8ea8023da4 | refs/heads/main | 2023-04-22T17:48:46.718475 | 2021-05-12T03:30:24 | 2021-05-12T03:30:24 | 366,579,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 787 | py | from sklearn.model_selection import train_test_split
import os
name_path = r'.\data\VOCdevkit2007\VOC2007\JPEGImages'
name_list = os.listdir(name_path)
names = []
for i in name_list:
# 获取图像名
names.append(i.split('.')[0])
trainval,test = train_test_split(names,test_size=0.5,shuffle=10)
val,train = train_te... | [
"noreply@github.com"
] | 1306298019.noreply@github.com |
af47c1a7f6ae89919ffdb24bffc208cb913e6ee9 | f24543d25294be7802fd78eb58697f0b223a00ae | /flask_setup_example/flaskr/__init__.py | 02c4a17c33f1fad50a3b5093b4e1a3aebcbea0c1 | [] | no_license | blt1339/udacity_full_stack_web_developer | 606e5fbff53b8b6ef5f7984c708b2d42fd052101 | 3a7c103a2bffce5b5e9f01c2b7c4f09510be403d | refs/heads/main | 2023-07-08T23:24:05.694066 | 2021-08-03T00:08:21 | 2021-08-03T00:08:21 | 359,160,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | # Import your dependencies
from flask import Flask, jsonify
# Define the create_app function
def create_app(test_config=None):
# Create and configure the app
# Include the first parameter: Here, __name__is the name of the current Python module.
app = Flask(__name__)
@app.route('/')
def hello_world(... | [
"blt1339@gmail.com"
] | blt1339@gmail.com |
a7cd0c227a128b7a39f4db49d9085443bd6a2ca1 | ef23a265f03c21c192707ebada89a4587c351a5e | /client/PeopleCounter.py | 550eea656eff5c88b43ef874be170643d15907d0 | [] | no_license | hadasg-vayyar/Walabot-MeetingRoom | 73cb9c0845a58f13d0c6292467c0f73524d21d78 | 6191f8bbe18fcbb9dbedd1fd76c7f530efbaae80 | refs/heads/master | 2021-07-11T18:39:20.769223 | 2017-10-15T08:38:06 | 2017-10-15T08:38:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,861 | py | from __future__ import print_function, division
from datetime import datetime # used to the current time
from math import sin, cos, radians, sqrt # used to calculate MAX_Y_VALUE
import socket
import WalabotAPI as wlbt
try:
input = raw_input
except NameError:
pass
R_MIN, R_MAX, R_RES = 10, 60, 2 # SetArenaR ... | [
"noam.hoze@gmail.com"
] | noam.hoze@gmail.com |
1b8532d3421a9dd5536b1e0debfc39c16e37a6c3 | 1bccf7d57c7aa8d48b84fff187de4b6ff2599cb6 | /pandora_common/state_manager/scripts/state_manager/__init__.py | 6d30fa3d4c6b665f9f74250df0145ce48aae504d | [] | no_license | skohlbr/pandora_ros_pkgs | 733ed34edb5b6d46e59df4acb01288f28ef3b50f | eecaf082b47e52582c5f009eefbf46dd692aba4f | refs/heads/indigo-devel | 2021-01-21T18:06:14.967943 | 2015-11-04T15:08:03 | 2015-11-04T15:08:03 | 53,413,573 | 0 | 1 | null | 2016-03-08T13:19:40 | 2016-03-08T13:19:40 | null | UTF-8 | Python | false | false | 37 | py | from state_client import StateClient
| [
"pandora@ee.auth.gr"
] | pandora@ee.auth.gr |
c519b85a50ace53148b8cf5fe0eafb56d732355b | 4a683a1ee801d0ee05d4ac44407be162e70cbc06 | /creat_key.py | 45eb43722976f44e24146bfc9a7576408497f0f5 | [] | no_license | aakash10897/aviation-using-neo4j | 8b585dfca4166192aa558566b642c38b60ab6974 | 1d475bae042bb2ea2f9a6afa8788bd3d7cc260db | refs/heads/master | 2020-07-01T18:17:06.888416 | 2019-08-23T18:57:47 | 2019-08-23T18:57:47 | 201,252,791 | 0 | 1 | null | 2019-08-14T09:19:08 | 2019-08-08T12:23:18 | JavaScript | UTF-8 | Python | false | false | 321 | py | import csv
import sys
def createKey():
inputfile = 'data2/routes.csv'
outputfile = 'data2/routes_key.csv'
with open(inputfile,'r') as inut, open(outputfile,'w') as oput:
r = csv.reader(inut)
w = csv.writer(oput)
counter = 0
for row in r:
counter =counter + 1
w.writerow(row+[str(counter)])
createKey()... | [
"aakash.10897@gmail.com"
] | aakash.10897@gmail.com |
5b86d1ba8124f7ae022306cd7979e8aa97754314 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /HdrqkdT4r9DeKPjCM_15.py | b8f9cf3d649052ff9b6b798b8d9e233d02626467 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py |
def is_polygonal(n):
if n==1:
return "0th of all"
if n <= 3:
return False
list = []
for k in range(3, n):
i=1
current=k+1
while current < n:
i+=1
current += k*i
if current == n:
i = str(i)
i += "th" if i[-2:-1]=="1" else {"1":"st","2":"nd","3":"rd"}.get(i[-1],"th... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
e3cb93d8809d1c926a15fdd21eca2bccf5ba4ac2 | f7411485d2603aa8c2841f88bf5bfb2e1930951e | /Labs/Lab10/actor.py | 76ab8c0f4c37c402d0f769ebec6983b93dd48568 | [] | no_license | Johnspeanut/Computer_science_fundation_course | 156e03e8cf6fcca4ddcbfaa837b8c55f95083045 | 79a13f3152c7e61d8d6cc10da2213a15c8a364e5 | refs/heads/master | 2023-05-13T01:55:10.171165 | 2021-05-31T07:00:31 | 2021-05-31T07:00:31 | 372,412,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py |
class Actor:
def __init__(self, lastname, show_collection):
'''
Constructor -- creates an object of actor
Parameters:
self -- the current piece object
firstname -- first name of actor, String
lastname -- last name of actor, String
show_collect... | [
"pengqiong2015fall@hotmail.com"
] | pengqiong2015fall@hotmail.com |
083c357cb60f0627ddb64b67ee8260e13ee2414f | 67db81532a2ee0281d901b47a8ffdcfbb8a8199d | /interface/teacher_interface.py | 0ad75f4dfd8939002e08f92167972ed6600d2c31 | [] | no_license | liuqingzheng/courseSelection | a829df3c9948d127556b1adcc35068ff05ab92ab | a18d636a1899f72171c2e8bd463942d68f1a0b06 | refs/heads/master | 2020-03-11T06:19:58.805019 | 2018-05-26T10:42:11 | 2018-05-26T10:42:11 | 129,827,176 | 16 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,431 | py |
import os
from conf import setting
from db import models
from lib import common
def check_course(teacher_name):
'''
查看教授的课程
:param teacher_name:
:return:
'''
teacher_obj = models.Teacher.get_obj_by_name(teacher_name)
teach_course_list = teacher_obj.get_teach_course()
return teach_cou... | [
"306334678@qq.com"
] | 306334678@qq.com |
68dcb318fb7daab562bcb76eb37a28ff7014fe59 | 4e7c688741975346b277fdaa113fbe48563d4288 | /main.py | cd381e078413f986c2e4af0f982093ba27f7db2a | [] | no_license | nathankong/deep_net_sparse | 6d2aedfeb6b653d9be808af4ca987620ae415b9d | 94bfb9e44a33ba8bc9774ad297eef73a1145b08a | refs/heads/master | 2022-03-31T16:07:03.170324 | 2019-12-10T22:27:54 | 2019-12-10T22:27:54 | 225,716,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,639 | py | import matplotlib
matplotlib.use("Agg")
import matplotlib.pyplot as plt
import pickle
import os
os.environ["TORCH_HOME"] = "/mnt/fs5/nclkong/deep_models/"
import numpy as np
import collections
from functools import partial
import torch
import torch.nn as nn
from torchvision.datasets import ImageFolder
from ModelInf... | [
"kongnathan@gmail.com"
] | kongnathan@gmail.com |
c3abe5035eada595291caa229e664159b4743cb2 | e9ef3cd143478660d098668a10e67544a42b5878 | /Lib/corpuscrawler/crawl_thk.py | f49f58ce0e90e3a983f847f9a2de5a9de94840a2 | [
"Apache-2.0"
] | permissive | google/corpuscrawler | a5c790c19b26e6397b768ce26cf12bbcb641eb90 | 10adaecf4ed5a7d0557c8e692c186023746eb001 | refs/heads/master | 2023-08-26T04:15:59.036883 | 2022-04-20T08:18:11 | 2022-04-20T08:18:11 | 102,909,145 | 119 | 40 | NOASSERTION | 2022-04-20T08:18:12 | 2017-09-08T22:21:03 | Python | UTF-8 | Python | false | false | 809 | py | # Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"sascha@brawer.ch"
] | sascha@brawer.ch |
5acbbf066b8de964068c4efea6f60aa5238e4b13 | 62c7898fe58fdfa18fc6c445d7145fb625cd4412 | /source/process_spatial_data.py | a9afed907e5c8e9e289324dd95a921bda0c65bfc | [] | no_license | xziyue/MCCNN-Playground | b9fa5cd2c530605f55db0d5bed4b2f99fc787122 | f807d3164237bcb14fbeab3f7ea55a7073351ef7 | refs/heads/master | 2020-12-03T10:57:57.891328 | 2020-01-05T19:12:20 | 2020-01-05T19:12:20 | 231,290,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,324 | py | import os
import subprocess as sp
from source.rel_path import rootDir
import re
from shutil import copy2, move
def _recursive_search_target(path, result):
assert os.path.exists(path)
allFiles = os.listdir(path)
for filename in allFiles:
fullname = os.path.join(path, filename)
if os.path.i... | [
"xziyue@qq.com"
] | xziyue@qq.com |
5eea65897e3ff96532bb28a2c4f116df82eb09cc | c3317daf3ded8b4c793e779075632b3d0bc748bb | /touch_file.py | d287577d3537240b6d4896b9d7e3f2f1929274be | [] | no_license | AarashFarahani/watching-directory | f68557c92788c9151b09ad8ca1c807df0310ac8e | c9b1f72c8f823951ed07f1e48b28052916261009 | refs/heads/master | 2020-12-20T03:22:09.520508 | 2020-02-03T08:16:14 | 2020-02-03T08:16:14 | 235,945,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,468 | py | import os
import pyinotify
from pathlib import Path
import log_handler
class MyEventHandler(pyinotify.ProcessEvent):
def __init__(self, source, destination):
self.source = source
self.destination = destination
def process_IN_CLOSE_WRITE(self, event):
log_handler.info("%s has been added... | [
"noreply@github.com"
] | AarashFarahani.noreply@github.com |
d2d771a77a5dabb499ec5f9b80115f57636340f4 | fd4b76bac768ad313e0ca12cdcbe6918c5dd1233 | /list/views.py | 236166ef935d670ab55f1f2283923111129d7431 | [] | no_license | PsalmsGlobal/ToDoApp | ebd95fec8f7ad704448dedd4c2299660101ebbfb | ae51b14d6bfc2e64a551d935ba9ad9b34bd3ca27 | refs/heads/master | 2023-04-14T15:28:46.501922 | 2021-04-15T14:46:05 | 2021-04-15T14:46:05 | 336,938,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,648 | py | from django.shortcuts import render, redirect
from .models import MyList
from .forms import MyListForm
from django.contrib import messages
from django.http import HttpResponseRedirect
def home(request):
if request.method == 'POST':
form = MyListForm(request.POST or None)
if form.is_valid():
... | [
"noreply@github.com"
] | PsalmsGlobal.noreply@github.com |
efc34d950ca51f5ceeb25007b700dbcb9a79a6bc | f7e4b3e8010241b31aa9c772a7d6bfec3454dcf2 | /ipcs.py | e34d276efc73cd3d126afcd8f861c9ed76837cc3 | [] | no_license | MR414N-ID/IPCS | 74294500cc6d0daf4d38f27d058b39588c319225 | f233e21c00e0fddce54da2797d8782ea666db3c9 | refs/heads/master | 2022-11-23T02:38:22.451130 | 2020-07-24T12:26:38 | 2020-07-24T12:26:38 | 278,318,219 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,111 | py | #Jangan ganti author , hargai creator cape loh buat nya
import LIST
from LIST.id import *
from LIST.it import *
from LIST.jp import *
from LIST.us import *
from LIST.fr import *
from LIST.kr import *
from LIST.de import *
from LIST.tr import *
import requests,re,os
b="\033[0;34m"
g="\033[1;32m"
w="\033[1;37m"
r="\033... | [
"noreply@github.com"
] | MR414N-ID.noreply@github.com |
2f8b6c78d6f72f8ff2235dd0556ce46aafda9f3b | 2a7224df36ea68c5ece24d410d97a9c336baa0a8 | /dags/utils/db.py | 98967c56ec1a74279db58cf4865b7e5939817885 | [
"MIT"
] | permissive | jsmithdataanalytics/house_price_tracker | aaa7bc12a45caa4dc1fe26963ad0539264ac8b83 | a4795db21c25c014f45ff6742c5bb30ad26ded75 | refs/heads/master | 2023-05-08T22:24:00.764398 | 2020-04-29T06:28:51 | 2020-04-29T06:28:51 | 257,061,766 | 1 | 0 | MIT | 2021-06-02T01:32:12 | 2020-04-19T17:32:27 | Python | UTF-8 | Python | false | false | 1,859 | py | import sqlite3
from typing import List, Dict, Iterable
from os import environ
db_filename = environ['DATABASE_URL'][10:]
def select_all(table_name: str):
connection = sqlite3.connect(db_filename)
connection.row_factory = sqlite3.Row
with connection:
cursor = connection.execute(f'SELECT * FROM `{... | [
"jsmithdataanalytics@gmail.com"
] | jsmithdataanalytics@gmail.com |
1c00d1285fb51001a7306edf2f7a7c849d622ad2 | e072275351f45031c2f30235864a471e689280c5 | /shipping_addresses/forms.py | d78428382c70d689f7fec35ac54be09dfc8ef13e | [] | no_license | nluiscuadros24/Exportellus | 764dbca7e0fda0d80b92661801d7a8c2a9f9cd0a | 9a3b01af51d02c09f89bba2b9b180a484e89d6aa | refs/heads/master | 2022-11-27T01:57:28.461546 | 2020-08-06T05:44:42 | 2020-08-06T05:44:42 | 285,472,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,369 | py | from django.forms import ModelForm
from .models import ShippingAddress
class ShippingAddressForm(ModelForm):
class Meta:
model = ShippingAddress
fields = [
'line1', 'line2', 'city', 'state', 'country', 'postal_code', 'reference'
]
labels = {
'line1': 'Calle 1... | [
"luiscuadrosa@gmail.com"
] | luiscuadrosa@gmail.com |
779a502f8d520ab2b65985fd08af1a4fb8b521d9 | d17616959f48f6438ed95d62e6f8cfbd17f4451e | /KerasRFCN/Utils.py | 53e0c2d39c7f39fbec30caa95a6b47b878559842 | [
"MIT"
] | permissive | mitulrm/FaceRFCN | 8365df0690303502ec44fde5182be8def3141d65 | 5e1fdaf197b3a93c22a82d9476a3f9a1c804e398 | refs/heads/master | 2020-05-15T20:35:54.496866 | 2019-08-20T02:41:35 | 2019-08-20T02:41:35 | 182,484,924 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,603 | py | """
Keras RFCN
Copyright (c) 2018
Licensed under the MIT License (see LICENSE for details)
Written by parap1uie-s@github.com
"""
import sys
import os
import math
import random
import numpy as np
import tensorflow as tf
import scipy.misc
import skimage.color
import skimage.io
import urllib.request
import shutil
import ... | [
"mitulmodi15@gmail.com"
] | mitulmodi15@gmail.com |
dd8266083726914414d608f3cacd125395994324 | 7ef29543c9e8305f181084cede03d8cec50508f1 | /docker_vnc_immutable/immutableworkstation3.py | 61d3ee59bb7a0be59a34ef246f878368298cc05d | [
"MIT"
] | permissive | mikadosoftware/workstation | 6168ba7f8f8357d73e7792a3c65c0daec37222e7 | 9c8b19bc5d6c596843da30f58f1dad6a60c7e989 | refs/heads/master | 2023-02-21T03:45:54.209770 | 2023-02-08T08:41:36 | 2023-02-08T08:41:36 | 138,070,951 | 477 | 29 | MIT | 2023-02-07T21:53:32 | 2018-06-20T18:28:07 | Python | UTF-8 | Python | false | false | 13,917 | py | #!/usr/bin/python3
#! -*- coding:utf-8 -*-
"""
ImmutableWorkstation
====================
This is a single entry point for the `immutableworkstation` project.
The project is pretty simple - I want to have a consistent, immutable
workstation on any host machine I am developing on - so I am using a
docker instance on a... | [
"paul@mikadosoftware.com"
] | paul@mikadosoftware.com |
d18f96dd0867f55e3239dacad3182148cccd426e | d02aac5fd9864b2f446c048a48c0370292cdf148 | /captcha_data.py | 6d919a12f192429da318e56f35e7c9d435ee5262 | [] | no_license | sayaadit/captcha_breaker | 81677018be269d3a82162f48e3bf0ad91bd03270 | 827274a5d8f6054b11242b50d4284039f6550152 | refs/heads/master | 2020-05-24T04:00:18.114397 | 2019-05-16T18:49:56 | 2019-05-16T18:49:56 | 187,083,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,713 | py | import glob, os
import numpy as np
import cv2
import random
class OCR_data(object):
def __init__(self, num, data_dir, num_classes, batch_size=50, len_code=5, height=60, width=180, resize_height=24,
resize_width=88, num_channels=1):
self.num = num
self.data_dir = data_dir
s... | [
"sayaadit9@gmail.com"
] | sayaadit9@gmail.com |
a3a738a23827197ecf696191edae4ca0e4645061 | 3f9aff869095b986e99b50b996b172ea946ee667 | /python_code.py | ffc6055f970c7256040159792f1d5b4980c8ce90 | [] | no_license | ssmitha21/repo_1 | a0a822c256b56df2fbfed1da41008aa4ff0db2e5 | 905f11b4ca6948baf54a9bbb708b2692be21c761 | refs/heads/master | 2020-11-26T02:03:48.325768 | 2019-12-19T20:33:59 | 2019-12-19T20:33:59 | 228,931,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23 | py | print("Hello Githib!")
| [
"ssmitha_21@yahoo.com"
] | ssmitha_21@yahoo.com |
3d32dcf93fd427ca48693b5eae480d0cd2609d04 | b295b72d3f9471e1badf2d1568fa4748007403bd | /api-examples/impala/create_impala_datasource.py | 092e3b637a3045ad3fe15126b6422e37d2521d04 | [
"Apache-2.0"
] | permissive | Zoomdata/zoomdata-tools | ed4fa11ebc83697bb0cd75087d718117d1d7e824 | a411396e29cea5198dce4f389d30fa5ebf86effa | refs/heads/master | 2022-05-02T17:56:39.215640 | 2022-04-05T09:06:58 | 2022-04-05T09:06:58 | 70,515,227 | 3 | 10 | Apache-2.0 | 2022-04-05T09:06:59 | 2016-10-10T18:07:58 | Python | UTF-8 | Python | false | false | 1,872 | py | #!/usr/bin/env python
from base_classes.zoomdata_api_base import ZoomdataRequest
from base_classes.zoomdata_api_impala import ImpalaDatasource
zoomdataBaseURL = raw_input("Enter the Zoomdata instance URL (https://<server>:<port>/zoomdata): ")
adminUser = raw_input("Enter the Zoomdata administrator username (typically ... | [
"boyd@zoomdata.com"
] | boyd@zoomdata.com |
a4807335c903336469b5249d53ae61d78e699610 | a21131c2ef7cd2a4a6a27d3fcef132ba3fdc9756 | /path_context_reader.py | c9424ebf391dca42abf666c0be8f79024f41cfd6 | [
"MIT"
] | permissive | eladn/code2vec | 3cfb9a14bc3f720720a0cdb933832778dd04d7a7 | 32dabfa21200be35f0e7beeb0dc536edb549f021 | refs/heads/master | 2020-04-28T05:31:16.767427 | 2019-09-18T08:53:33 | 2019-09-18T08:53:33 | 175,023,515 | 0 | 1 | MIT | 2019-03-11T14:58:18 | 2019-03-11T14:58:17 | null | UTF-8 | Python | false | false | 11,627 | py | import tensorflow as tf
from typing import Dict, Tuple, NamedTuple, Union, Optional, Iterable
from config import Config
from vocabularies import Code2VecVocabs
import abc
from functools import reduce
from enum import Enum
class EstimatorAction(Enum):
Train = 'train'
Evaluate = 'evaluate'
Predict = 'predic... | [
"eladnah@gmail.com"
] | eladnah@gmail.com |
29a911f8facee7df9b6c2801468794f26212fdd0 | 542323b41107b68e1e4ee910817beca684439497 | /pjViz/Visual/node.py | e8a96e500ca55dae8a3a717a0f50375edbf71438 | [] | no_license | Twoods01/programVisualization | 08ef1778353535272db0937233e035f3348b64ac | c1f86de13380c71c4b734dc3eb4c785b63ad1c3f | refs/heads/master | 2016-08-03T21:43:13.670679 | 2015-06-11T18:07:17 | 2015-06-11T18:07:17 | 30,376,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,422 | py | __author__ = 'twoods0129'
import operator as op
import pyglet
from pjViz.constants import Constants
import pjViz.Utils.vectorMath as vm
import pjViz.Utils.spline as spline
init_radius = 150
node_height = 70
node_width = 114
x_offset = node_width / 2
y_offset = node_height / 2
node_vertices = {}
class Node:
text... | [
"twoods0129@gmail.com"
] | twoods0129@gmail.com |
132f9d82eb8b31115fe7d76fe9d57fb3439e4fa5 | cba6b7debfa923fc05e97dce02584f579d4fcba6 | /gremlin-python/src/main/jython/gremlin_python/process/traversal.py | 1afaa6c5d8081c3097a421e5f5843ff6fffa6c3e | [
"Apache-2.0",
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | sri-desai/TinkerPop | 74367e39051c24815203b1588f4d1464f1a061fa | 06902258499cf62e82c5661dd21091bfa8b875ae | refs/heads/master | 2021-07-25T22:28:09.089307 | 2017-11-09T03:17:24 | 2017-11-09T03:17:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,013 | py | '''
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this ... | [
"srinivas.desai491@gmail.com"
] | srinivas.desai491@gmail.com |
a2a3823e6435408a754b473b37f7233309d5ef3f | 4754d6b05b7eb255983f58474164d8690f4d8684 | /figurines/tests/test_views.py | 4ad1ab56cb491358a3a1c8c3bb9812ce62ef1085 | [] | no_license | pythonmentor/benjamin-p13 | 4f629be3cd9b2e8af6934fb69dfca63d6a294346 | ada744761d3a3c6ecde1aec5db20770960cb2146 | refs/heads/master | 2023-01-24T17:10:30.235330 | 2020-11-30T17:29:09 | 2020-11-30T17:29:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,155 | py | from django.test import TestCase
from django.urls import reverse
from figurines.models import Category, DidYouSee, Figurine
from users.models import User
class FigurineTestViews(TestCase):
def setUp(self):
self.user_test = User.objects.create_user(
username="UserTest", password="Paswo... | [
"benjamin.rejaud@gmail.com"
] | benjamin.rejaud@gmail.com |
2e33e0e16030e96cb4126bce18cbe60adc5220f1 | 4adc5b30bdd5ed6388746f9822d9b0e6f1879a69 | /geeksforgeeks_ArrayInsertEnd.py | 0ae2df6e160a0b16f7f498110c8e80577ff5559f | [] | no_license | praveengadiyaram369/geeksforgeeks_submissions | 1a69a609ef27819e60174aad4709a8b11d7b10ab | f546faedf048a57e8cee34cb141dd13c377b7ba5 | refs/heads/master | 2022-12-27T15:40:39.692379 | 2020-10-03T07:03:39 | 2020-10-03T07:03:39 | 286,435,728 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 108 | py | # _Array insert at end
def insertAtEnd(arr, sizeOfArray, element):
arr.append(element)
return arr
| [
"praveengadiyaram@gmail.com"
] | praveengadiyaram@gmail.com |
0ea64af5b9f481b06e417b65c708cd5668bc733a | 1f71eac5d7514e24def7e5e231c5ef7487bf9c0a | /links/schema_registry.py | ba9ea8977c623da1050e5118badb9dd80b1347f3 | [] | no_license | stefanfoulis/Arkestra | b68f212c4c83ab2c66ea98313c5f1291f897e56d | bddd11ae98b633b5e7bfaf2fa98ae6f98b039130 | refs/heads/master | 2021-01-15T18:45:57.398106 | 2011-03-07T12:52:03 | 2011-03-07T12:52:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,986 | py | from django.http import HttpResponse
from django.utils import simplejson
from django.db.models import get_model
from django.db.models import Q
from django.db.models.query import QuerySet
from django.db.models import ForeignKey
from django.utils.safestring import mark_safe
from django.utils.encoding import smart_str, s... | [
"daniele@apple-juice.co.uk"
] | daniele@apple-juice.co.uk |
891cf68c8f2e5a2d7b2c3c9baf3fd45f36ba1c93 | 3e3a835ee885eb9a71fd35ea58acd04361f72f47 | /python基础/复习.py/石头剪刀布.py | df86dfa2ef1429a31cb3268c524f245a54ab4e82 | [] | no_license | hanfang302/py- | dbb259f24e06fbe1a900df53ae6867acb8cb54ea | dd3be494ccef5100c0f06ed936f9a540d8ca0995 | refs/heads/master | 2020-03-16T01:59:57.002135 | 2018-05-07T12:02:21 | 2018-05-07T12:02:21 | 132,454,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | player = int(input('请出拳 石头(1),剪刀(2),布(3):'))
computer = 2
if ((player == 1 and computer == 2) or
(player == 2 and computer == 3) or
(player == 3 and computer == 1)):
print('电脑输了')
elif player == computer:
print('心有灵犀,再来一局')
else:
print('不行,我要和你决战到底')
| [
"hanfang123@aliyun.com"
] | hanfang123@aliyun.com |
92d3f6d6dc1e477f6b89f1665b180bf5ab4360da | 968913bda3879ef316100410cdb2b01333ac14a8 | /004_Algorithm_Implementations_In_Python/data_structures/queue/queue_on_list.py | 898ffac3a9c7c1fda92bb8b75af1826ee7ec17f0 | [
"MIT"
] | permissive | sm2774us/2021_Interview_Prep | 02b6a81ee52f3cb14d9e060839a01aadd84e231f | c6689411a4334d53c88581a296e57c314b50f46c | refs/heads/main | 2023-03-02T05:30:17.156821 | 2021-01-26T04:31:02 | 2021-01-26T04:31:02 | 332,603,676 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,213 | py | """Queue represented by a python list"""
class Queue():
def __init__(self):
self.entries = []
self.length = 0
self.front=0
def __str__(self):
printed = '<' + str(self.entries)[1:-1] + '>'
return printed
"""Enqueues {@code item}
@param item
item to enqueu... | [
"sm2774us@gmail.com"
] | sm2774us@gmail.com |
0e3d3dd2945ef2e53a134724fa8bbc66d98afb65 | 0e96dde7517fbbccffcb93a3c4bd324fefcbed0a | /index/migrations/0002_auto_20210708_1042.py | 064bb0952af48b0b143c1aad29c85a803f9eff67 | [] | no_license | phoby20/heatmap-analytics | b70c5c45674f0f3928f7b3c07954e558490fa263 | 38366d05a3480eee884c50dc1791660985acb659 | refs/heads/master | 2023-06-18T22:07:51.562849 | 2021-07-14T05:43:16 | 2021-07-14T05:43:16 | 385,824,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 590 | py | # Generated by Django 3.2.3 on 2021-07-08 10:42
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('index', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='movehistory',
name='id',
... | [
"phoby20@hotmail.com"
] | phoby20@hotmail.com |
7d8b5b232c28c669043a2e65a6cbec7643049db9 | 3fc53a89ff5d9fc8643255b36887db17085cbdc8 | /penguinlifelines/settings.py | a80156f0db44c2a401a709f068316931ab6842f0 | [] | no_license | eamonnmag/PenguinLifelines | 9dd94396b8f706c9d68dacc8aca84583a38a2bae | a88ecb8b032479fd74420f72ee602ef79fb27a8a | refs/heads/master | 2021-01-23T07:34:37.058261 | 2014-09-17T09:11:17 | 2014-09-17T09:11:17 | 14,091,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,847 | py | # Django settings for penguinlifelines project.
import os
DEBUG = True
TEMPLATE_DEBUG = DEBUG
PROJECT_ROOT = os.path.join(os.path.abspath(os.path.dirname(__file__)), '')
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sq... | [
"eamonnmag@gmail.com"
] | eamonnmag@gmail.com |
b2493c69029aa36ecfe9427d2df847afc4e33904 | 687c0094ea4f20a7d779f6b50e44e86ee6b9dd51 | /hadoop/client.py | d931c6db8daf62344bfa024c6ce73a44274cb02d | [] | no_license | d0r1h/Aut0Infra | aa90f65aa292a2924e5ba118dedeb79f016a3ae9 | ad2f475400ebb97d352d1e68d4c62d565504d5ed | refs/heads/master | 2023-01-28T11:06:17.056688 | 2020-12-10T03:38:46 | 2020-12-10T03:38:46 | 311,212,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38 | py | def client():
print('I am client')
| [
"59r@protonmail.com"
] | 59r@protonmail.com |
6ad1ec33ed60cb67164cba8e6c216bf23b7eff14 | 09592939eaf88d46f7d2d760d9587cb9fc22707e | /entity/cards/LETLT_083/LETLT_083.py | c575c2ef97600aa10d16c30ba708043ebfac001e | [
"MIT"
] | permissive | fulln/lushi_script | 5deb2fb99956988ee4884836443f74277b361939 | f2c5250f6ce7e3ea2b8d3ba280d999ae8c7beb8b | refs/heads/main | 2023-09-04T16:50:24.696142 | 2021-11-24T03:44:41 | 2021-11-24T03:44:41 | 431,565,901 | 0 | 0 | MIT | 2021-11-24T17:04:06 | 2021-11-24T17:04:05 | null | UTF-8 | Python | false | false | 470 | py | # -*- coding: utf-8 -*-
from hearthstone.entities import Entity
from entity.spell_entity import SpellEntity
class LETLT_083(SpellEntity):
"""
剧烈爆发
对本回合中已经行动过的敌人造成10点伤害。在下一场战斗开始时,重复此伤害。
"""
def __init__(self, entity: Entity):
super().__init__(entity)
self.damage = 0
... | [
"gg48@qq.com"
] | gg48@qq.com |
09b392b45aef0ce2b082eaa210be15285a463e0c | 45015c94a4376a4af66e4134f0552288cd15a2d8 | /services/authentication_service.py | ee9f1e65813dcf31637b0a0974cb9c00e4c7b390 | [] | no_license | Anubhav722/trello | 971111af8cbc1f6c344ace200e2741e809e9a1fa | 600b5410cde7fd2a51720fa4ca7cc2ecfbff322e | refs/heads/master | 2023-07-13T18:24:51.937539 | 2021-08-21T13:22:17 | 2021-08-21T13:22:17 | 398,563,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py |
class AuthenticationService:
def __init__(self, ttl):
self.tokens = {} # Map<token_id, user_obj>
def renew_token(self, token_id):
pass
def authenticate_request(self, token_id, timestamp):
pass
def register_user(self, ):
pass
| [
"anubhavs286@gmail.com"
] | anubhavs286@gmail.com |
52cf3aac7e139b3a4d760b80cc223a9bd88e323d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03496/s023860422.py | 3418e271fe6d39c5afd0834fa668eb6252fedf15 | [] | 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 | 553 | py | n = int(input())
a = list(map(int,input().split()))
mi = a[0]
mii = 1
ma = a[0]
mai = 1
for i in range(n):
if a[i] > ma:
ma = a[i]
mai = i+1
if a[i] < mi:
mi = a[i]
mii = i+1
if mi >= 0:
print(n-1)
for i in range(1,n):
print(i,i+1)
elif ma <= 0:
print(n-1)
for i in range(n,1,-1):
pri... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
295327d0390c539e66194d54fcb18c86e0801f85 | a13b01ff29782857a4d14e771da58e10601648af | /first_look.py | 327512e724057a78b67efb887a4dea43171022a2 | [] | no_license | HappyLantern/DeepLearningWithPython | d6c8f4d088982dd95b4f417ecf9cf65621d0b6db | 2f3cacfed7b0261927c074bc77024edabad83df8 | refs/heads/master | 2020-08-14T06:47:25.540771 | 2019-10-14T18:23:40 | 2019-10-14T18:23:40 | 215,116,435 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,066 | py | # Solving the classification problem of the MNIST dataset.
# Digits of 28x28 pixels that belong to 0,..,9
from keras.datasets import mnist
from keras import models
from keras import layers
from keras.utils import to_categorical
(train_images, train_labels), (test_images, test_labels) = mnist.load_data()
network = mod... | [
"Kevinjohansson1995@gmail.com"
] | Kevinjohansson1995@gmail.com |
538b671955b4ac1fa9cf8fb82d290212541efada | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /djDJHv3nwWsRM9mtu_15.py | d8d00d9f36be6af88a931dc7bc4cd7cb6aa76d74 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py |
def validate_spelling(txt):
return "".join(txt.split(". ")[:-1]).lower() == txt.split(". ")[-1][:-1].lower()
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
6f541be782c903bc9b6347e681942a1e1f3f53a9 | d7c9f9ff75fabfcd4e42fedfc594ed38e4258481 | /ExperimentalModels/demo_pySSA.py | ad594053ae28f6ada2e5247277675df83f182d8a | [
"MIT"
] | permissive | johnabel/circadian_tools | b034b78bd716007659b61f257977f39abd3ff6b3 | d7ec5f798e2215331761857f5138941b764c03a8 | refs/heads/master | 2021-03-22T00:12:47.705529 | 2018-05-22T16:00:37 | 2018-05-22T16:00:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,235 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Apr 19 12:19:48 2014
@author: john abel
"""
import numpy as np
import casadi as cs
import pdb
import stochkit_resources as stk
import modelbuilder as mb
import pylab as pl
import circadiantoolbox_raw as ctb
import Bioluminescence as bl
EqCount = 11
ParamCount = 46
modelve... | [
"j.h.abel01@gmail.com"
] | j.h.abel01@gmail.com |
a4fab23437c5dd0c8fbf1273ea1ba4a8c0b3042a | 54ba669ca04cf7422134b7183787f86caccb5516 | /TeslaStationRoute.py | e39308e6a37b9d9b4165578ee78ca66bd9826b45 | [] | no_license | aakashparwani/ConsumerComplaints_VisualizationReport | 4757968526970330e94453fc45c6d72fa71105fc | 90604dc2529c42f35f12e6c769dee05df39e1836 | refs/heads/master | 2021-01-12T04:13:29.658738 | 2017-06-17T00:23:51 | 2017-06-17T00:23:51 | 77,546,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,206 | py |
# coding: utf-8
# 1. Find route between two Tesla Supercharging Stations "55 Parsonage Rd. & 150th Ave and 147th St" -- Google Maps API
#
# In order to use the Google Maps - Directions API, you need to create an account with Google and get your API key, go to: https://developers.google.com/maps/documentation/directi... | [
"noreply@github.com"
] | aakashparwani.noreply@github.com |
c5beb6a5ce0818e96720a154c9ed0db1dcb62b79 | d344a8c6872d6b906e7d32a7ea9b210cd76a7ae5 | /venv/Scripts/pip3.7-script.py | 5feb926f753ba8c8ebdc097707b785bc570735df | [] | no_license | hardikmaru193/TextUtils | 9988c155d6fedcf75823a28b5263dc01e35ea03e | 557356fee3ca8cd1d2ca40dbdbb3f382b8c08e9b | refs/heads/master | 2020-07-17T16:04:53.316466 | 2019-09-03T10:54:50 | 2019-09-03T10:54:50 | 206,050,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | #!C:\Users\hardi\PycharmProjects\TextUtils\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.7'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.a... | [
"hardikmaru.job@gmail.com"
] | hardikmaru.job@gmail.com |
83c14b747a531d75e73f4488a2e4d14b5ade425f | 8569401c096695c5c8b8f3c6c75fb23d2fc3b753 | /contextual_bandit.py | e9a8649c698e7f0e7933b0d6699ae608e6e46b9e | [] | no_license | stabbysaur/reinforcement | 2d3ede1012217789088075340708c08863385a9d | ac46a5c9caca2e5f11c4dd67917f0151dca0be71 | refs/heads/master | 2020-03-30T21:58:37.044978 | 2018-10-19T00:38:41 | 2018-10-19T00:38:41 | 151,649,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,864 | py | """
2018-10-16
Exercise from Arthur Juliani's RL tutorial (adapted for Pytorch)
Part 1.5: Contextual bandits!
"""
import numpy as np
import torch
import torch.nn as nn
from torch.autograd import Variable
import pdb
"""
CONTEXT BLOCK:
There are now contexts!!
Each "context" refers to a different bandit.
Each ban... | [
"vicious.narcoleptic@gmail.com"
] | vicious.narcoleptic@gmail.com |
d4dc403b25d1c1e99ae62c8c28e7834c02eab079 | 90e52dabd2e5450a46f61896b8b53bf3b6353e18 | /Python/Python_day2/ex4.py | 56673ac871a9e25c372b5cc52165ce24bf42b8b8 | [] | no_license | ATzitz/Main-Github | 0c20ebb04be6e99c8130462e900a1060cb287fd4 | 2d065c8f6efc2daa8a965cc1b8f52000d4ad1aac | refs/heads/master | 2021-05-03T22:53:18.422192 | 2016-11-29T13:38:39 | 2016-11-29T13:38:39 | 71,696,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | a=input("Enter 10 digit Number :" )
la=list(x for x in a)
lz=[]
lm=[]
lk=[]
count=0
b,c,d,=0,0,0
for x in la:
if int(x)%3==2:
lz.append(x)
strz = ' '.join(str(e) for e in lz)
if int(x)%3==1:
lm.append(x)
strm = ' '.join(str(e) for e in lm)
if int(x)%3==0:
lk.a... | [
"a.tzitzeras@gmail.com"
] | a.tzitzeras@gmail.com |
b3afdc5ed5a2cd8de578e1fd31eb490f17a5db95 | 2455062787d67535da8be051ac5e361a097cf66f | /Producers/BSUB/TrigProd_amumu_a5_dR5/trigger_amumu_producer_cfg_TrigProd_amumu_a5_dR5_499.py | 14a070c95d6dc5d7822dce37415383786cbf8e82 | [] | no_license | kmtos/BBA-RecoLevel | 6e153c08d5ef579a42800f6c11995ee55eb54846 | 367adaa745fbdb43e875e5ce837c613d288738ab | refs/heads/master | 2021-01-10T08:33:45.509687 | 2015-12-04T09:20:14 | 2015-12-04T09:20:14 | 43,355,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,360 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("PAT")
#process.load("BBA/Analyzer/bbaanalyzer_cfi")
process.load("FWCore.MessageLogger.MessageLogger_cfi")
process.load('Configuration.EventContent.EventContent_cff')
process.load("Configuration.Geometry.GeometryRecoDB_cff")
process.load("Configuration.St... | [
"kmtos@ucdavis.edu"
] | kmtos@ucdavis.edu |
2b2498877b3efcf756b777b0a07744d9728de1a6 | fcf3db349562825a7f8d6713a3092cefa03e6d3d | /fastdtwtest.py | 2c3ca15200519570b9937304ee31e692c98e8e91 | [] | no_license | nhorcher/final_project498rc3 | 12728316d2a8dcb2d9b302c42eaf01f643faf636 | 157dafe297f289bfb45aa2ea604ddb8922499300 | refs/heads/master | 2020-03-12T08:53:39.831445 | 2018-05-08T20:21:12 | 2018-05-08T20:21:12 | 130,539,027 | 0 | 0 | null | 2018-05-06T19:41:55 | 2018-04-22T05:45:41 | Python | UTF-8 | Python | false | false | 1,775 | py | import numpy as np
from scipy.spatial.distance import euclidean
from scipy.interpolate import spline
import scipy.fftpack
from scipy.signal import savgol_filter
from fastdtw import fastdtw
import matplotlib.pyplot as plt
import sys
import os
import pandas as pd
folder = sys.argv[1]
file = 'gyroscope.csv';
path = os... | [
"nick.horcher@gmail.com"
] | nick.horcher@gmail.com |
bdcfdb621e28558b0c8a4dc4927343f24aa750cc | 84010059524cbf5229a872aa2b857735e0bbd2b6 | /locallibrary/locallibrary/locallibrary/urls.py | c86f12cdb2e2ff9c8337d579036f3ab3e832557a | [] | no_license | sergeykool37/web_site_django | 976aa61317dc14fa358129af18aaf0b965e14f9a | 4b340f8c80fb78b2c83c99180bba8619b204b506 | refs/heads/master | 2022-10-28T10:59:44.729695 | 2020-06-21T10:54:31 | 2020-06-21T10:54:31 | 273,824,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,141 | py | """locallibrary 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-... | [
"sergeykool37@gmail.com"
] | sergeykool37@gmail.com |
94fbe3b06ebbbbfc7744c597c80accaa9f252602 | 10565593bd79c3a86ee074b7e08dc1cd35885e24 | /ds_validation_viirs.py | 8b12b313ac5320b9f20b7cb10edcb2c61d57784d | [] | no_license | fangbin08/SMAP | 528e3995692eef87731f5fc010687dc4fc9dfd60 | d2b196f9af0ee8158a5380fbe23a2206546eded8 | refs/heads/master | 2022-10-18T01:51:45.804054 | 2022-10-07T07:00:29 | 2022-10-07T07:00:29 | 190,057,817 | 11 | 5 | null | null | null | null | UTF-8 | Python | false | false | 44,764 | py | import os
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.ticker as mticker
plt.rcParams["font.family"] = "serif"
import h5py
import calendar
import datetime
import glob
import pandas as pd
import rasterio
from scipy import stats
from statsmodels.graphics.tsaplots import plot_acf
import skill_metri... | [
"noreply@github.com"
] | fangbin08.noreply@github.com |
abd8712565c86b38cf0f645f8ce46f74fa9d024c | f5af6d2d6f63ff5fcd985fee19043b181316f7e3 | /models.py | 59f89672061266d541052ba261689c4c9125b1a1 | [] | no_license | xnuray98s/FSND-capstone | bb3c7bff887093c53e909bda0be528dd2787fc2c | 9528366e6e7a4e980770009f09e1b066e950acc2 | refs/heads/main | 2023-07-24T06:56:40.200989 | 2021-09-06T11:16:04 | 2021-09-06T11:16:04 | 403,443,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,656 | py | import os
from sqlalchemy import Column, String, Integer, create_engine
from flask_sqlalchemy import SQLAlchemy
import json
database_name = "casting"
database_path_locally = "postgresql://{}:{}@{}/{}".format(
"postgres", "postgres", "localhost:5432", database_name
)
db = SQLAlchemy()
"""
setup_db(app)
binds ... | [
"66944976+xnuray98s@users.noreply.github.com"
] | 66944976+xnuray98s@users.noreply.github.com |
9eebd51cd8523865c63b5ea9bc13a91b30809bd9 | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/I_w_M_to_Wxyz_focus_Z_ok/wiColorJ/pyr_Tcrop255_pad20_jit15/Sob_k15_s001_EroM_Mae_s001/pyr_5s/L5/step10_a.py | e6c87465892d874e7e738fd489c714ca918ab17a | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140,087 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
0433f6b760f294fc900f09f2cf37f4c06fc0cd3d | d4aae842e09692196df8004d0eac18cfc76b57ed | /catch for main loop.py | 35c648717e44a36775b4d24f81bb600fed422656 | [] | no_license | Jeffwuzh/Morse-Code-Interpreter-with-Blink-Recognition | 3ae6d626873f583dbb51f1a89b4200cfacc18344 | 9ee049b1404efe05e9fc789887e444811607f9b1 | refs/heads/main | 2023-05-30T09:40:58.835335 | 2021-06-11T12:29:35 | 2021-06-11T12:29:35 | 376,014,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,030 | py | # -*- coding: utf-8 -*-
"""Copy of catch.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1XWI48mjxp9aONWMYfVUcqJQ_dvPGcWYm
"""
from google.colab import drive
drive.mount('/content/drive')
!pip install catch22
!pip install -U scikit-learn
pip i... | [
"noreply@github.com"
] | Jeffwuzh.noreply@github.com |
439a97a92d842d7709709585d9ab7de7ba40a8fc | 015dd47b2fdf23fd6bab8281686e1fee22057a38 | /apps/articles/models.py | 7862afacd7d2e1ed2affe02fa4ca24620d2a0871 | [] | no_license | Simonskiii/backGround | d3b8929ea0db09552dad58e220d8229fbc97636d | bf4d396a71ecd001245bad2cf3644cd42fce69e7 | refs/heads/master | 2023-03-17T11:20:48.913256 | 2019-11-19T13:11:32 | 2019-11-19T13:11:32 | 222,699,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,579 | py | from django.db import models
from datetime import datetime
from ckeditor.fields import RichTextField
from django.contrib.auth import get_user_model
import factory
from faker import Factory
User = get_user_model()
fake = Factory.create()
# Create your models here.
class ArticleCatergory(models.Model):
name = model... | [
"3017209256@tju.edu.cn"
] | 3017209256@tju.edu.cn |
f86f1440c1dfce4772c26f8bd9d40aeb6c368956 | 27a066c48096e30e3cf4a795edf6e8387f63728b | /mysite/django_vises/runtimes/misc.py | dbb4cc342ce1012cbf1a9397f2dea0e09cf202d4 | [] | no_license | 26huitailang/django-tutorial | 2712317c3f7514743e90fb4135e5fe3fed5def90 | 28a0b04ee3b9ca7e2d6e84e522047c63b0d19c8f | refs/heads/master | 2023-01-07T11:55:37.003245 | 2019-09-04T09:19:50 | 2019-09-04T09:19:50 | 113,199,279 | 1 | 0 | null | 2023-01-03T15:24:01 | 2017-12-05T15:27:52 | Python | UTF-8 | Python | false | false | 2,885 | py | #!/usr/bin/env python
# coding=utf-8
# import glob
import os
import operator
from django.utils.six import text_type
# copy from rest_framework
# Header encoding (see RFC5987)
HTTP_HEADER_ENCODING = 'iso-8859-1'
def get_request_client_ip_address(request):
"""获取 request 请求来源 ip address, 支持 nginx 使用 X-Real-IP/X-FO... | [
"26huitailang@gmail.com"
] | 26huitailang@gmail.com |
f1674b141e3d17158f2bb2d03ed0e3b467a50143 | 59c9c2286af3be35a3deb50c1eed0c75a2169bc2 | /Server/app/api_helper.py | 764fa7aed31126b49dd7e5d03fa9d77b9c9ea1cb | [
"MIT"
] | permissive | chauandvi4/Kid-friendlyThingTranslator | e0252bd6363429eed89a2042a15ed91b33a3b165 | 685bd5cb3d1dd3b4c39a35d5f7fc96c45ad1aa75 | refs/heads/main | 2023-05-31T01:02:20.926999 | 2021-07-05T02:40:56 | 2021-07-05T02:40:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,916 | py | import decouple
from yolov3.yolo import ImageLabeler
from yolov3.image_converter import string_to_image, to_rgb
from word_definition.memory_dictionary import MemoryDictionary
from word_definition.database_dictionary import DatabaseDictionary
from env_access import env_accessor
from app.model import *
from fastapi ... | [
"phu.nguyenpfoem@hcmut.edu.vn"
] | phu.nguyenpfoem@hcmut.edu.vn |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.