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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fb02c790e807e4e0ff7b77e6c05b3c41d216d7d9 | 2f3ef2315da7277c0f236d87108de95f0b917adf | /Tetris/FastMonteCarlo.py | 81935c6be495626931992c91e7cabe44159847ef | [] | no_license | Andrew-Fryer/Games | da1567d41e5a9bc1e897022bffdd675143c352a4 | 2579dcc7b0aff3ad171f962e29624cbe4abeca7e | refs/heads/master | 2021-10-25T14:43:53.770963 | 2019-04-04T19:09:25 | 2019-04-04T19:09:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,348 | py | import sys
import Game
import Option
import pygame
import random
numTestGames = 200
numMoves = 3
class MCTSPlayer(object):
def playGame(self):
game = Game.Game(isRendered=True)
while game.isAlive():
bestOption = Option.Option(None, 0, 0, None, None, None, None)
bestNumLines... | [
"andrewtfryer@gmail.com"
] | andrewtfryer@gmail.com |
e2f0aa31dd82c3ab0ecd58a48bcae21024c0aee2 | 457f33c622d1f97f1c525cdf0b14e9019981d2fc | /maven/downloader.py | 33193417fe177eb051d1ea8d79a5636a3a7177a8 | [
"Apache-2.0"
] | permissive | IShamraI/corda-rpc-client | d480394569a07d9b7415d54142a91971244e8947 | b5ceff312dd3d1bb48e98066688687693d52d110 | refs/heads/master | 2021-05-26T23:55:14.370700 | 2020-05-07T14:33:25 | 2020-05-07T14:33:25 | 254,195,637 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,276 | py | import hashlib
import os
from .requestor import Requestor,RequestException
from .resolver import Resolver
from .artifact import Artifact
import sys
import getopt
class Downloader(object):
def __init__(self, base="https://repo1.maven.org/maven2", username=None, password=None):
self.requestor = Requestor(use... | [
"isshamray@gmail.com"
] | isshamray@gmail.com |
a1f4138c41e900107dbd27e714eb9b1f65240994 | 521611492b89ab9692c240542d7a01274af8fd4e | /lab7/task4.py | bbabb08ef47201e88771caf5795d35678d275b54 | [] | no_license | quinterojosuej/cst205Lab4 | 4f6a845f9c7212162982c8f359427c690a1ece38 | ae732e108c14a0077340819ae5f211a703f61f68 | refs/heads/master | 2020-04-20T23:38:31.843853 | 2019-04-13T21:24:04 | 2019-04-13T21:24:04 | 169,173,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,682 | py | from colormath.color_objects import sRGBColor, LabColor
from colormath.color_conversions import convert_color
from colormath.color_diff import delta_e_cie2000
#import math
from PIL import Image
def distance(color_1, color_2):
rgb_one = (color_1[0],color_1[1],color_1[2])
#print(rgb_one)
rgb_two = (color_2[... | [
"quinram@LAPTOP-P4UO3BRS.localdomain"
] | quinram@LAPTOP-P4UO3BRS.localdomain |
01ccbd3c81a8bd38aa1edfa4c45d575369d38eb0 | 5687de67e0ad7d7036457dc725e388f2322d72bc | /Fundamentals/test.py | 6258ab40c792a6981d3551730b499f1ea86071de | [] | no_license | Imranmkt/CodeBreakersCode | caa99c909493fc4e58720f0a5f3c1f92ba437453 | b9a5ad7cebf7757f0d25a98ab872f9bfce666278 | refs/heads/master | 2022-11-20T06:42:07.227844 | 2020-07-13T20:39:35 | 2020-07-13T20:39:35 | 266,943,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48 | py | def heelo_world():
print('Trying something new') | [
"imran@Mds-MacBook-Air.attlocal.net"
] | imran@Mds-MacBook-Air.attlocal.net |
2f32460151f3690b3107a110060359a2aff08a1e | adb956b716b64964b67b2dd288b85aff23585270 | /src/palmiche/umbrella/block_time_average.py | 3beec47cf5953b6341f99a2d1e7cad20f2889862 | [
"Apache-2.0"
] | permissive | ale94mleon/Palmiche | 2486e9a8b5e7cca6af8637c16739a2df9c279a9f | b79223b82da21fc12cb04aa9a7527a360e2fc090 | refs/heads/main | 2023-04-30T08:45:41.580009 | 2023-04-26T11:04:54 | 2023-04-26T11:04:54 | 547,183,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,765 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from palmiche.utils import xvg, tools
import matplotlib.pyplot as plt
import os
import tqdm
import multiprocessing as mp
import copy
import re
def cmdwham(it = "tpr_files.dat",
if_ = "pullf_files.dat",
is_ = "coordsel.dat",
unit = "kJ",... | [
"ale94mleon@gmail.com"
] | ale94mleon@gmail.com |
9f240e8ec2d7aa6bf90bc8e662f69dc153f7360d | ac32bac45df77083f4ef3115e747038a6753936c | /adapter-transformers-customs/adapter-transformers-stack/src/transformers/adapters/modeling.py | a60c3253fe706707b412edd06c27377ad4712857 | [
"Apache-2.0"
] | permissive | Yujin-Yujin/rexpert | 13e1d5c4ca55664dd9fbb9a765ea5157a2e0893f | ed8628dc053194fee40e593b1cc5ec45a26c8073 | refs/heads/main | 2023-06-22T05:58:42.269923 | 2021-07-23T06:35:43 | 2021-07-23T06:35:43 | 373,423,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,683 | py | import math
import torch
from torch import nn
class Activation_Function_Class(nn.Module):
"""
Implementation of various activation function.
"""
def __init__(self, hidden_act):
if hidden_act.lower() == "relu":
self.f = nn.functional.relu
elif hidden_act.lower() == "tanh"... | [
"yujin000731@yonsei.ac.kr"
] | yujin000731@yonsei.ac.kr |
79f5cd2344c6dc4fbea6b3a38bb221c0b66c5044 | 866b6fdda19b70bd9381f99ab4acde097ddbf9d4 | /lesson_4/task_4.5.py | 3f82e12d2396317736c868112a5eec8f7ff45864 | [] | no_license | yarikmik/geekbrains_homework | 6b8279d57e9e71eeef4c969b1ccbdca2359b147d | cc68a3ea1ce343bd4dc28d9d32b838558b53b691 | refs/heads/master | 2023-01-19T03:03:12.536035 | 2020-12-05T06:05:11 | 2020-12-05T06:05:11 | 301,085,631 | 0 | 0 | null | 2020-12-05T06:05:12 | 2020-10-04T09:11:25 | Python | UTF-8 | Python | false | false | 643 | py | """
Реализовать формирование списка, используя функцию range() и возможности генератора.
В список должны войти четные числа от 100 до 1000 (включая границы).
Необходимо получить результат вычисления произведения всех элементов списка.
Подсказка: использовать функцию reduce().
"""
from functools import reduce
def calc... | [
"yarik.mik@gmail.com"
] | yarik.mik@gmail.com |
4719319086089f102ad8ae04be753b9057594527 | c7521583847e8141109efce75a464236c994725c | /manage.py | 6e16ac9454131335f23c833874ac7468e1fae609 | [] | no_license | EquipeDevelopers/projeto_01 | 558aff390df3425cda0c8755467203edfab7fe27 | f8558b4fc5e0720ef439da1460d69b5a3c0039fb | refs/heads/master | 2016-08-12T23:52:09.268334 | 2015-12-11T16:03:13 | 2015-12-11T16:03:13 | 47,828,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "projeto_01.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"gguedes10@outlook.com"
] | gguedes10@outlook.com |
8057cdc545d53909b42c18954d86a19430ed7901 | 5867d16cf87b3c38160fc1b71e3147e1c4efa1d4 | /cities.py | d217357680ee43fd5f250465f0f0fbd8018d075a | [] | no_license | usr401/persona-generator | 4d93baf678310240dba3c8efc45368a6f9f8e806 | 5a50e9ca0aa9538cc1a60ec803ee8defc738413e | refs/heads/master | 2022-12-23T19:39:59.426401 | 2020-08-23T09:35:42 | 2020-08-23T09:35:42 | 287,795,826 | 0 | 1 | null | 2020-10-02T01:36:53 | 2020-08-15T17:41:49 | Python | UTF-8 | Python | false | false | 2,568 | py | city1m = ('boston','new york','new jersey','philadelphia','washington','baltimore','atlanta','miami','chicago','seattle','omaha','raleigh','columbus','jacksonville',
'los angeles','minneapolis','st. louis','portland','san francisco','san jose','oakland','sacramento','san diego','little rock','denver','las vega... | [
"l.hall@tutanota.com"
] | l.hall@tutanota.com |
516f74e95b919d711026e7833cbd8c43c03c3dcd | 36f1a2dbaed722cdfdc65c0e7f843c4f06415807 | /backend/backend/settings.py | 3d8319ec232ba47a807d5f738bd9a80198ec443b | [] | no_license | Hashem-Poya/django-react-todo-app | 9fbfb91dfa074e9ef62eb6b109800c6fd781e027 | 032d880984f3129d38694aaa5c30f7f861383f6f | refs/heads/main | 2023-06-05T04:36:05.167708 | 2021-06-15T11:59:08 | 2021-06-15T11:59:08 | 368,508,952 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,329 | py | """
Django settings for backend project.
Generated by 'django-admin startproject' using Django 3.2.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathlib... | [
"poya.kpu.2020@gmail.com"
] | poya.kpu.2020@gmail.com |
1bb4e6bb9cbf22ae6c4168b5ed9e9b700c6077f4 | ae7b262ecd72f2fac76c7fe2cff3b8efd7224cb9 | /Next Permutation.py | cdfab34762bb67edb7b6b358af83d64b0b3c6b4a | [] | no_license | FengFengHan/LeetCode | 02a8041f7413b14bed5ac17af1ba68237b159959 | c2d449f2a93815f31c432805a6b4b8008d09d3df | refs/heads/master | 2021-01-10T18:44:06.374304 | 2016-04-16T13:18:55 | 2016-04-16T13:18:55 | 56,384,615 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,145 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Nov 13 21:46:32 2015
@author: HAN
"""
class Solution(object):
def nextPermutation(self, nums):
"""
:type nums: List[int]
:rtype: void Do not return anything, modify nums in-place instead.
"""
if len(nums) == 0:
return
... | [
"HAN@HandeMacBook-Pro.local"
] | HAN@HandeMacBook-Pro.local |
0cf499645379170f62ded149ef94469fe24625b9 | 51bd78dadd37fe06c5b933c60b86d19f335adc73 | /submissions/5748bc2b63905b3a11d97cca/src/grabber.py | d0931a7d36c7f5233e45523da4095101e2cdafdc | [] | no_license | jsdelivrbot/challenge_word_classifier | f78202f3d91b2f69f4daca3ef6917970d9567b18 | cf80e6489c5310cdc90b25312603d6d47bf8c4dd | refs/heads/master | 2020-04-10T06:11:10.736995 | 2018-12-07T16:22:13 | 2018-12-07T16:22:13 | 160,847,871 | 0 | 0 | null | 2018-12-07T16:22:24 | 2018-12-07T16:22:23 | null | UTF-8 | Python | false | false | 1,354 | py | import urllib
import sys
import json
url = 'https://hola.org/challenges/word_classifier/testcase'
def Usage():
print 'Usage', sys.argv[0], '-i/-o', 'seedfile', '[n]'
def GrabData(f, seed):
obj = json.load(f)
fout = open('data/' + str(seed) + '.csv', 'w')
for k in obj:
fout.write(k + ',' + str... | [
"alexey@feldgendler.ru"
] | alexey@feldgendler.ru |
eb7d06aec0d93bef3f8423c94ae2c2c976d2796d | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /Fe6wvtjcNFwuANuLu_19.py | ea0dfdcba502e446d75aff8a616b5d1dcaafd878 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | """
A game of table tennis almost always sounds like _Ping!_ followed by _Pong!_
Therefore, you know that Player 2 has won if you hear _Pong!_ as the last
sound (since Player 1 didn't return the ball back).
Given a list of _Ping!_ , create a function that inserts _Pong!_ in between
each element. Also:
* If `win`... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
fe1204a3a03aa0707af12ab325f65c25e63bdf13 | b394bb6bd3e8848688b525f55e82962f152c1bb3 | /demos/upload/error_and_fp/Density of Floating Point Numbers.py | c901d4a9ab13acedb1a5355a3a4efcacb6c7c8ee | [] | no_license | lukeolson/cs450-f20-demos | 02c2431d7696348cf9ca1ab67bdd5c44a97ac38b | 040e7dfa15c68f7f426cf69655cb600926f9f626 | refs/heads/master | 2023-01-22T19:12:33.394521 | 2020-12-03T19:48:18 | 2020-12-03T19:48:18 | 288,542,898 | 5 | 10 | null | 2020-10-05T19:39:07 | 2020-08-18T19:13:52 | null | UTF-8 | Python | false | false | 762 | py | #!/usr/bin/env python
# coding: utf-8
# # Density of Floating Point Numbers
#
# This notebook enumerates all possible floating point nubmers in a floating point system and shows them in a plot to illustrate their density.
# In[ ]:
import matplotlib.pyplot as pt
import numpy as np
# In[ ]:
significand_bits = 4
... | [
"luke.olson@gmail.com"
] | luke.olson@gmail.com |
20c8f218f1668b24be6542df295e7cb324172941 | 08a0ef9d837c1e38facedd1b4e0e79185d607d68 | /linux_system_inspector.py | 2e4ec93479d37f2ef6a3b2dc028499cc8419c873 | [] | no_license | Yuweiluo1618/Python-Advanced-Project | 2aa7888a81280366a17d6a75981379e87792dfd0 | a372307a225af67f4f29063bca0c9daa19757053 | refs/heads/main | 2023-02-12T02:45:40.013414 | 2021-01-13T09:58:49 | 2021-01-13T09:58:49 | 309,018,737 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 903 | py | #import the module
import psutil
import datetime
#CPU usage info
cpu_per = psutil.cpu_percent(interval=0.5)
#Memory info
memory_info = psutil.virtual_memory()
#hard disk info
hard_disk_info = psutil.disk_usage('/')
#Network info
net_info = psutil.net_io_counters()
#obtain system time
current_time = datetime.dateti... | [
"yuwei.luo@alumni.ubc.ca"
] | yuwei.luo@alumni.ubc.ca |
e1ae328c44bfc6fb4a8b5699f3b23faaa960937e | 182589e45edfc256de5fab9a44edf09a5cbc5dae | /car_manager.py | 9a3476304521f6e56f87718d17115b980f9ef700 | [] | no_license | DEEPANSHURAJORA/Turtle_game | 26367a0dc417f23fd372c19980a1f86bccb2bd03 | e66810e84ddf9ed2b48bcd5c421f0066c7bb9b30 | refs/heads/main | 2023-07-28T18:35:43.288390 | 2021-09-09T08:57:09 | 2021-09-09T08:57:09 | 404,652,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 845 | py | from turtle import Turtle
import random
COLORS = ["red", "orange", "yellow", "green", "blue", "purple"]
STARTING_MOVE_DISTANCE = 5
MOVE_INCREMENT = 10
class Carmanager:
def __init__(self):
self.all_cars = []
self.car_speed = STARTING_MOVE_DISTANCE
def create_cars(self):
random_chance =... | [
"noreply@github.com"
] | DEEPANSHURAJORA.noreply@github.com |
7cccffff6414332630370bcd48fd3fa5b869cc08 | 3f6108f545068d106d895b5ee08619a2cae3b238 | /manage.py | 60adfb0dd63f25f5aa5a586d077508f23ffc7b5b | [] | no_license | PPPW/stock-portfolio-optimizer | c91c4dc6197e7c0c4acb6f6b00661781fb2f4fde | c4429b3ae499eae4ff4ee12df8e33d998ee99405 | refs/heads/master | 2022-12-09T01:54:55.383252 | 2019-10-22T01:34:22 | 2019-10-22T01:34:22 | 146,462,834 | 1 | 0 | null | 2022-12-08T02:47:43 | 2018-08-28T14:50:13 | Vue | UTF-8 | Python | false | false | 445 | py | from flask_script import Manager
#from flask_migrate import Migrate, MigrateCommand
from app import create_app
app = create_app('development')
#migrate = Migrate(app, db)
manager = Manager(app)
#manager.add_command('db', MigrateCommand)
@manager.command
def test():
import unittest
tests = unittest.Test... | [
"pei.wang.fudan@gmail.com"
] | pei.wang.fudan@gmail.com |
77531e6278a2da0e7e47e3a1e00b32e9cbe5e653 | 63cb74c1e014fd9ec7e6c3a701e11ff47e53cc50 | /redesocial/connectedin/connectedin/asgi.py | 449329060784c3f16c49d3aeff606e4c56509891 | [] | no_license | FelipeAlvesDeSouza/django_guilu_ | d8d578892ddad9bd4281e14b94cd8ee4f546aaa8 | ead744fd8bef33e7f6f16c34da0c8c6e066d1f00 | refs/heads/master | 2022-06-23T16:06:00.466276 | 2020-03-18T20:24:50 | 2020-03-18T20:24:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
ASGI config for connectedin 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_S... | [
"felipealvess_hpg_@hotmail.comgit config --global user.name F3lipefifa14"
] | felipealvess_hpg_@hotmail.comgit config --global user.name F3lipefifa14 |
94fa8f70532d78f37dd0a5165bf490e8c88f8571 | bc8d3c824eaa902f7a38f4467404bad7472c013a | /WordEmbed/seq2seq/seq2seq_translation.py | 9b8f260aaa52930aea4b676eb469d1df49e56711 | [] | no_license | gaoming96/TorchFlow | 217389dc71e94bc2f8276c0a587584051ddc837d | 3dc5d6e97cd9b5ef8ffe2ace17af83f907522b36 | refs/heads/master | 2020-04-10T11:45:55.492552 | 2019-01-18T05:34:58 | 2019-01-18T05:34:58 | 161,002,084 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,505 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals, print_function, division
from io import open
import unicodedata
import re
import random
import torch
import torch.nn as nn
from torch import optim
import torch.nn.functional as F
#device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
dev... | [
"noreply@github.com"
] | gaoming96.noreply@github.com |
a73a244ef78780197126b2f8728cd1b97833a737 | 611969b23cce6d1ab047474c5367f88e4edf8948 | /Switch Sort.py | cb346335ef27085b49d7d532e3e0fd8fccb797ad | [] | no_license | shilpipriya/coderbyte-codes | ca647fdf9ae5cdd410ecf05f97d6b575de25cf5e | 4f48d6deda62c84bb9ddff59f1bfc77403ffddd6 | refs/heads/master | 2022-03-04T08:57:20.373126 | 2019-10-22T05:36:54 | 2019-10-22T05:36:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | def SwitchSort(arr):
swap = 0
visited = [False for i in range(len(arr))]
for i in range(len(arr)):
j = i
counter = 0
while not visited[j]:
visited[j] = True
j = arr[j]-1
counter= counter+1
if counter!= 0:
swap=swap+(counter-1)
return swap
# keep thi... | [
"noreply@github.com"
] | shilpipriya.noreply@github.com |
ba31670426e646c45bbfebf7c72dcd32b857b4e8 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/cv/classification/Resnet50_Cifar_for_PyTorch/configs/repmlp/repmlp-base_delopy_8xb64_in1k.py | 8e11dcd2599322a1402464a2cd48c892e47c3243 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 667 | py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the BSD 3-Clause License (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://opensource.org/licenses/BSD-3-Clause
#
# Unless required by applicable law or agreed to in ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
8a12d754e6e3a5e1e5395d8edfd3c7272d264c6f | ac6e8799d1051c90bbba6275751b0cf096db2907 | /Practise_beginner/exp_notification_alert.py | afaeea4ea6fd5645f41dda2b6237c525e47c3855 | [] | no_license | Himanshu-jn20/PythonNPysparkPractice | 777e9e01df201cb8481a3dc5e1f27a406022be27 | 5ababff00089b8f432c4a28e1277e89009f7897f | refs/heads/main | 2023-04-18T05:31:47.448014 | 2021-03-30T18:14:15 | 2021-03-30T18:16:39 | 348,235,570 | 0 | 0 | null | 2021-03-21T18:52:06 | 2021-03-16T06:17:40 | Python | UTF-8 | Python | false | false | 764 | py | import math
nd=list(map(int, input().rstrip().split()))
n,d = nd
med=d/2
mod=d%2
med_val=math.floor(med)
exp_main=list(map(int, input().rstrip().split()))
exp=exp_main[0:d]
exp.sort()
notification=0
for i in range(n-d):
if i>0:
exp.pop(0)
k=0
for j in range(d-1):
... | [
"himanshu.jn20@gmail.com"
] | himanshu.jn20@gmail.com |
440ba0371a59b674d7017be9dd26afef0c14b450 | 597c6b8af2a674d927ff3b4f4958e1dc435b1634 | /gem/embedding/node2vec.py | 5b844d5596f8fbbdd55f49e7ced351d90a2a445e | [] | no_license | THUfl12/NETest | 4ec37a227ea668bc23b10657a41bda696fe5cdf0 | 227e803308a3c67b8cfa79b9ded7c57453c3a4a9 | refs/heads/master | 2021-09-18T20:27:48.967961 | 2018-07-19T11:39:18 | 2018-07-19T11:39:18 | 104,615,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,151 | py | disp_avlbl = True
from os import environ
if 'DISPLAY' not in environ:
disp_avlbl = False
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import matplotlib.pyplot as plt
import networkx as nx
import numpy as np
import scipy.io as sio
import scipy.sparse as sp
import scipy.sparse.lina... | [
"1027555983@qq.com"
] | 1027555983@qq.com |
d74d89c2f1de124ab345feb3df4608f09f295c99 | 27b8eba8387d741156c3c15d1534160da34b484c | /fqdemo/server/server/deviceServer.py | 9d7156a79afd80bc7f521d8faf1c799eda30cb10 | [] | no_license | Rose-Hulman-ROBO4xx/1415-Realbotics | a042d6b1c811bd09d4ebc957b382f1f61352cc2d | 7593c9ebaa9304f9e0d3d89a4626468a763c6999 | refs/heads/master | 2020-12-24T14:26:56.015056 | 2015-05-13T22:01:00 | 2015-05-13T22:01:00 | 24,424,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,602 | py | from wsgiref.simple_server import make_server
from ws4py.websocket import WebSocket
from ws4py.server.wsgirefserver import WSGIServer, WebSocketWSGIRequestHandler
from ws4py.server.wsgiutils import WebSocketWSGIApplication
import re
import threading
import time
Auth = {'testclient': 'testclienttoken', 'testclient2': ... | [
"dillonscroggin@gmail.com"
] | dillonscroggin@gmail.com |
1daf83bbf35823c60ee20b9cc222434d25f9ad0c | f5050aa0dd8971c25017473d2b540c0b0233b4d5 | /lec12/p7.py | ef0fa94f6f623423cd4b2ec2d185651ee479fed0 | [] | no_license | pranav1214/Python-practice | 718a33aedf798a2ec2326454e3125b48b3e66cb6 | 6f38b1b467c81306c5c340b8ac8ae5c9dc283396 | refs/heads/master | 2022-12-22T22:45:00.682611 | 2020-09-19T14:59:18 | 2020-09-19T14:59:18 | 296,891,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 709 | py | import socket
import requests
import bs4
import lxml
try:
google = ("www.google.com", 80)
socket.create_connection(google)
print("Connected ")
res = requests.get("https://www.brainyquote.com/quote_of_the_day")
print(res)
s = bs4.BeautifulSoup(res.text, 'lxml')
print(s)
data = s.find('img', {"class":"p-qotd"... | [
"pranav1214@gmail.com"
] | pranav1214@gmail.com |
9e360dc2ce19e2f083ad03c9b87ef880f1babd6a | 65f9576021285bc1f9e52cc21e2d49547ba77376 | /adsp_proc/core/kernel/qurt/build/adsp_link/qdsp6/670.adsp.prod/install/ADSPv65MP/scripts/island_analysis.py | d1ed28424d4ee4a89045987e1183f29e51048629 | [] | no_license | AVCHD/qcs605_root_qcom | 183d7a16e2f9fddc9df94df9532cbce661fbf6eb | 44af08aa9a60c6ca724c8d7abf04af54d4136ccb | refs/heads/main | 2023-03-18T21:54:11.234776 | 2021-02-26T11:03:59 | 2021-02-26T11:03:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,216 | py | #===============================================================================
# Copyright (c) 2013 by Qualcomm Technologies, Inc. All Rights Reserved.
# QUALCOMM Proprietary/GTDR
#===============================================================================
import os, s... | [
"jagadeshkumar.s@pathpartnertech.com"
] | jagadeshkumar.s@pathpartnertech.com |
6442dc019628b1f6ccbcfce58472f468079113da | dece3bc3e098a86cbfcddf66eb2cce27c21ff562 | /test/distributed/launcher/elastic_launch_test.py | 346cf5b3ec9d1a16f452c2378620c6d80d5013a5 | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | deltabravozulu/pytorch | 068e500b0b85bf3797a824458929112ba4d1c019 | c6eef589971e45bbedacc7f65533d1b8f80a6895 | refs/heads/master | 2023-04-09T00:04:51.686741 | 2021-04-21T00:55:54 | 2021-04-21T00:55:54 | 359,989,621 | 0 | 0 | NOASSERTION | 2021-04-21T00:53:37 | 2021-04-21T00:43:57 | null | UTF-8 | Python | false | false | 14,746 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
import multiprocessing as mp
import os
import shutil
import subprocess
import tempfile
imp... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
2953557cf58e2d6e0bb2ac7f71db2cda0c146708 | 5cfa0f98255fd5e23577371ef1e8b013cbb9e99f | /cgi-bin/upload_form.py | 5c2646874a217418e06f32592a6862d63e886539 | [] | no_license | jeffreytony/csci4140hw | 66cae44a57e0e45b6445d69397b24659abdd8321 | 28f7dd13e7f257b93b3335fb6ad67662cf50eddd | refs/heads/master | 2021-03-24T09:09:54.015184 | 2018-02-18T07:27:55 | 2018-02-18T07:27:55 | 121,765,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | #!/usr/bin/env python
print 'Content-type: text/html'
print
print"""
<html>
<body>
<form enctype="multipart/form-data" action="upload.py" method="POST">
Choose an image (.jpg .gif .png): <br />
<input type="file" name="pic" accept="image/gif, image/jpeg, image/png" /><br />
<input type="submit" v... | [
"noreply@github.com"
] | jeffreytony.noreply@github.com |
b52f6245ef6708b26bce4789e3f081ab908ad7a7 | d2b0ebbeedde3a1c14e343df73d171182009e4d2 | /Petri/initialize_world.py | 8e4d26bd4ee4dff15138a93472711e9a715d462f | [] | no_license | mynameisvinn/Petri | cf22289e5bc4351a3702a95bce0fefaaba1a82a5 | 22f03e8a13d76e45abb1636d116236f9fa537b84 | refs/heads/master | 2022-11-13T15:36:16.788308 | 2020-06-29T18:27:36 | 2020-06-29T18:27:36 | 273,346,618 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,888 | py | import random
import numpy as np
from .utils import _draw, _return_random_loc, _sample
def create_wind(n_rows, n_cols, n_force, n_kites):
world = {}
world['n_rows'] = n_rows
world['n_cols'] = n_cols
for _ in range(n_force):
i = random.choice(np.arange(n_rows))
j = random... | [
"vin.tang@gmail.com"
] | vin.tang@gmail.com |
0503c990b91b7e81374a3d8521bebb3f81f14347 | 887f4beeb3ba480f3bcc7dff1e9eb3d61d445f9b | /console/console/records/constants.py | 60ab0e3144af8381cc4f32f6fe8d848d40088939 | [] | no_license | wang-shun/console | ccaa8a1716e2ab6bf5ed6d1c4240cecd4e59f155 | 50425ff068c4795bf13bd178891da126f8677383 | refs/heads/master | 2020-04-04T18:15:14.382006 | 2018-07-09T14:42:42 | 2018-07-09T14:42:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,812 | py | # coding=utf-8
__author__ = 'huangfuxin'
from django.utils.translation import ugettext as _
from console.console.trash.constants import TRASH_RECORD_MAP
from ..instances.records import INSTANCES_RECORD_MAP
from ..backups.records import BACKUPS_RECORD_MAP
from ..disks.records import DISKS_RECORD_MAP
from ..ips.record... | [
"lhongzhan@126.com"
] | lhongzhan@126.com |
78acf0ac80b9e8b6f1a565314a6417fbe2020b14 | 7b6769ac9be0caa7dec225d35366c2c6e34b7c2d | /terra/video/fields.py | 54c6f356f237364674aef05a37c001e9371f6dc0 | [] | no_license | jhughsam/django-video | d4046732f8e6673a5778ae742c16e4e00d5f2d71 | a13c15651a13db00a8d0158f64054c6a1b6b4e02 | refs/heads/master | 2020-05-19T16:29:56.933252 | 2009-08-20T14:58:35 | 2009-08-20T14:58:35 | 32,493,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,694 | py | """
Copyright (C) 2008 Y-NODE Software
Author: Aleksey Artamonov <aleksey.artamonov@y-node.com>
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) an... | [
"Aleksey.Artamonov@2b9ea72e-b3cd-11dd-b680-ffd21d2dd7b0"
] | Aleksey.Artamonov@2b9ea72e-b3cd-11dd-b680-ffd21d2dd7b0 |
9a9eeeaaa1fb4bf0c62f6bc85af936a9d4432739 | 4cb4d94379344113519b9ae1d999fbfb62a3092e | /examples/context.py | afa786b74ac6c8305fe5bc2a78a94d1df7091dd1 | [
"MIT"
] | permissive | jreamy/dwt | 5cf9237086dafbb4a5218c517d47d298ff5b0490 | efbabf5fde56e522ab1f814ec1b6a03f6f174c14 | refs/heads/main | 2023-07-18T13:38:56.238279 | 2021-05-11T01:42:49 | 2021-05-11T01:42:49 | 361,247,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | import os
import sys
# Add the module directory to the path
sys.path.insert(0, os.path.abspath(
os.path.join(os.path.dirname(__file__), '..')))
import dwt # nopep8
| [
"jreamy17@goergefox.edu"
] | jreamy17@goergefox.edu |
4deeae533e3992970ba2d5720d9c7c5ba8dd9981 | 10a749dc6557afe0c277e2107ac41ee6ec36a60d | /venv/Scripts/easy_install-3.8-script.py | 27308fca5bcf00f7682d4790a90c19fdc062d287 | [] | no_license | YYeceJ/spiderDemo | 941a26719785b47961793352b967a02e4016dff9 | 412516f3c48cd07f3daf3a5de1bde726d94cf6d9 | refs/heads/master | 2020-12-01T18:22:44.922532 | 2019-12-29T08:59:05 | 2019-12-29T08:59:05 | 230,726,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | #!D:\myCode\PycharmProjects\spiderDemo\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.8'
__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?|... | [
"YYeceJ@163.com"
] | YYeceJ@163.com |
53130e0301f7236adf230fa9165248e0fc6b80c6 | ae7a61d270e81d619b7d96ab8489e4864a508a98 | /physics/harmonet.py | 16d00250d176255e508fc34efe4ca1603453d421 | [
"MIT"
] | permissive | charlesfry/MuZero | 32da6fcda7c1c5b330dd626e2a01f560c1aa7480 | 83a0412c721e7f911b81e24aecdf58ff621b2e92 | refs/heads/master | 2023-07-27T14:08:57.368566 | 2020-11-07T18:59:07 | 2020-11-07T18:59:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,582 | py | import sys
sys.path.append('../../../')
from physics.config import MuZeroConfig, make_chess_config
from physics.networks import SharedStorage
from physics.self_play.self_play import run_selfplay, run_eval
from physics.training import ReplayBuffer
from physics.training import train_network
def muzero(config: MuZeroCon... | [
"52051562+AmishWarlord@users.noreply.github.com"
] | 52051562+AmishWarlord@users.noreply.github.com |
9b60de734d4171341c27d3a1bb7378b3ad90b6fe | 275947f3b6263904a4dfbca79941a726650b4be0 | /orders/migrations/0001_initial.py | d26db8ccf7feb0c2f9a0237e85f4d4fb38f4980c | [] | no_license | tiagolch/e-commerce_GraphQL | dcd1c75efececa92cad7ca32228fd95043a4a7bb | 355086fecd952dbb244d4251570075de3af74e4d | refs/heads/master | 2023-04-04T18:47:40.588318 | 2021-04-11T02:40:28 | 2021-04-11T02:40:28 | 356,614,415 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,816 | py | # Generated by Django 3.2 on 2021-04-10 02:29
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('produc... | [
"tiagodevch@gmail.com"
] | tiagodevch@gmail.com |
f16d502fd39da13a55a8512d89f86969f8326832 | 29f47e8a07b8bccc778b0528e69d61f34a5e9500 | /Code/BaseMap.py | 0aefb4403ca2d9f647736704217b2d13956960f7 | [] | no_license | datagold2017/KaoPuRouting | ab4fc401fbfe184eedf5f39f7956d5238bee709d | 7cf1b0faf499d99876f6d583492c1456b3035bec | refs/heads/master | 2021-01-23T07:55:19.511461 | 2014-08-06T09:13:54 | 2014-08-06T09:13:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,169 | py | #!/usr/bin/python
#coding: utf-8
# ######################################################################
# This file is one of traffic map utility component files
# Created in 2013
# ######################################################################
from PosCoordsUtl import *
from Tkinter import *
from PIL import... | [
"stevewang@outlook.com"
] | stevewang@outlook.com |
3bc74f9601911439ac6431e531f6a47b4cf5f992 | 72cb3df94d1aa1347cd18334103523128ea064e8 | /U4/django_u4/django_u4/core/admin.py | d0527ef7997a5d40d4b57de6fced27cd8c28f99b | [] | no_license | slnowak/python-lecture | 4ef2e02ee5e8427207a1e79da4c80b00965ac5a2 | 52e6a12c7296651c795b20fddaeb06c4baa78c60 | refs/heads/master | 2020-12-11T06:08:07.542830 | 2014-01-22T09:50:37 | 2014-01-22T09:50:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | from django.contrib import admin
# Register your models here.
from django_u4.core.models import Foo
admin.site.register(Foo) | [
"cypreess@gmail.com"
] | cypreess@gmail.com |
6b6f6fe94a5349e9c5d12da6c1ac15edc70da0dc | 621fffffe7bf63826149dd6c6bcd882a751c2b19 | /capstone/animalproject/animalapp/signals.py | 0dade45299d974757f6cebb9772ef47775aeb04f | [
"MIT"
] | permissive | jastr945/PDXclass | ccbe2ccd646ed3c5f24667d5cd0e8983119b82b2 | f8bf97e03586a83c860845a383a32162b9bea74c | refs/heads/master | 2021-01-22T02:08:26.080633 | 2017-12-10T06:32:47 | 2017-12-10T06:32:47 | 92,336,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | # from .models import Animal
# from django.db.models.signals import post_save
# from django.dispatch import receiver
#
#
# # saving each new animal profile instance into Elasticsearch
# @receiver(post_save, sender=Animal)
# def index_post(sender, instance, **kwargs):
# instance.indexing()
| [
"polina.jastr@gmail.com"
] | polina.jastr@gmail.com |
719e5727f5943e326509daf86592303957e524c7 | 5f96ac76dd42e0349939520ddac15d4203da7630 | /dojoninjas/apps/dojo_ninjas/models.py | 7d5143608dd76cf59a33eee84095cedc68de6be3 | [] | no_license | pangyang1/Django-DojoNinjas- | e441c9145047edcf52a34177934fb16910b0bf7a | 14e0f762f3b3b31b1e98a7dae7a5effdac75493a | refs/heads/master | 2020-03-23T05:57:53.638128 | 2018-07-16T18:48:09 | 2018-07-16T18:48:09 | 141,179,849 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | from __future__ import unicode_literals
from django.db import models
class Dojo(models.Model):
name = models.CharField(max_length = 255)
city = models.CharField(max_length = 255)
state = models.CharField(max_length = 2)
desc = models.TextField(default = "")
created_at = models.DateTimeField(auto_n... | [
"noreply@github.com"
] | pangyang1.noreply@github.com |
1498491a3cf1af66a139a9ad13ccefd3ccd2f488 | d530a6067b8c23e2cda66e423c14d2d8add7ec43 | /dogs/serializers.py | bff117363e98708433c949f5c69109f72d2aca3b | [] | no_license | Shari87/python_django | bd15349cbfdf2c2876ad6814afeab442944c32c0 | 53d2c19d62cea5f5f30f2aacd66ab71d3005c2a5 | refs/heads/master | 2020-05-18T02:27:05.119253 | 2019-04-30T18:15:38 | 2019-04-30T18:15:38 | 184,114,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | from rest_framework import serializers
from .models import Dog
class DogSerializer(serializers.ModelSerializer):
class Meta:
model = Dog
fields = ('id','env','tests','name', 'age', 'breed', 'color', 'created_at', 'started_at','finished_at','status') | [
"Shari87"
] | Shari87 |
06d739396620861fadad44ed7bfabcc366d044d7 | dfe97a01b8f1cbb08dc91626193ee077c4277ab0 | /LateForWork/lateForWork.spec | 4c5b1e8af794780603cac0b31c05bdece40ce704 | [] | no_license | AdityaShandilyaS/PyProjects | 9d1d1ba0dba92946fc281f484f1609d59209a966 | eca7eb2549a3c008b57ff469057e8f0927b20227 | refs/heads/master | 2021-07-18T10:42:22.819724 | 2020-07-12T15:05:26 | 2020-07-12T15:05:26 | 193,763,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 856 | spec | # -*- mode: python -*-
block_cipher = None
a = Analysis(['lateForWork.py'],
pathex=['C:\\Users\\dell\\Python Files'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
... | [
"aditya.shandilya.2693@gmail.com"
] | aditya.shandilya.2693@gmail.com |
72a7197185f097f36b383efd9a5d4c4b390623bc | 38ed9af4ac273585d209b5ba605dad26367d7fa3 | /vnpy/trader/uiBasicWidget.py | f1f90dcfa5301a07de1fd54b4a643d43b4cf1d3c | [
"MIT"
] | permissive | tianhm/vnpy-beta | 633c9d1b55e6c9671d2904323071fedf3310354d | 51b4e963281e16589e8db0257086b9e856dbcee0 | refs/heads/master | 2021-01-01T19:38:06.509105 | 2017-05-16T08:32:35 | 2017-05-16T08:32:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48,683 | py | # encoding: UTF-8
import json
import csv
import os
from collections import OrderedDict
from PyQt4 import QtGui, QtCore
from qtpy import QtWidgets, QtCore #, QtGui
from vnpy.event import *
from vnpy.trader.vtEvent import *
from vtFunction import *
from vtGateway import *
import vtText
COLOR_RED = QtGui.QColor('red'... | [
"sonne.lu@hotmail.com"
] | sonne.lu@hotmail.com |
4712dc2ec92c5f2b55803a968c7ec2b86e8c19e4 | c4464ab60e0b465b5ae311990c4538f3c150f73b | /app/gamer.py | 78cab3736cd626a6709a77222f4d0bef8ba5a219 | [] | no_license | XavierBelletrud/NovaConnect4 | 1d8ecdf1369020be02194256d3d4b8b8e3691674 | 61c94957d0b4f34a09c887c5749068d5109b1acb | refs/heads/master | 2023-05-09T19:00:43.754934 | 2021-06-07T08:23:42 | 2021-06-07T08:23:42 | 374,589,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,808 | py | import numpy as np
from abc import ABC, abstractmethod
from keras.models import Sequential, load_model
from keras.layers import Dense, Dropout, Conv2D, MaxPool2D, Dropout, Flatten
from keras.optimizers import Adam
from keras.backend import clear_session
class Gamer(ABC):
def __init__(self, board, value=1):
... | [
"slyx@MacBook-Pro-de-slyx.local"
] | slyx@MacBook-Pro-de-slyx.local |
0e3aefafc95a297c27d744d0561007dbb15e0381 | c82f01f6618c9d533719db1eb182ba6680eada28 | /2014-2015/wulff_workspace/workspace/build/vision_opencv/cv_bridge/catkin_generated/pkg.installspace.context.pc.py | aaaedb409b63f9aeda33746afba39d64c40c9908 | [] | no_license | hajungong007/landingpad | e561fec000e42a54842450b311fd77b453cfebbe | c33e3ace8504290a6c8bafb7d6ebc7db0fc92525 | refs/heads/master | 2020-07-26T20:30:55.116505 | 2016-04-29T04:48:01 | 2016-04-29T04:48:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,441 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/cracker/workspace/install/include;/usr/include/opencv;/usr/include".split(';') if "/home/cracker/workspace/install/include;/usr/include/opencv;/usr/include" != "" else []
PROJECT_CATKIN_DEPENDS =... | [
"larry.pyeatt@sdsmt.edu"
] | larry.pyeatt@sdsmt.edu |
cf76e7a0493796a4d6b4af823b3a05f6eee88ba2 | 668f11da3e2fce7fdcbaab39e5f446c5ef36637b | /setup.py | dfa22549d3a6b93cf86abe0a77eb5f744c81c0c8 | [] | no_license | bsamseth/EigenNN | cab429ad900521d0285130a636d3bb390159cd4e | a0aac1585a9e172766275b5b9d3d00a972941158 | refs/heads/master | 2020-04-16T19:27:37.021830 | 2019-01-15T14:03:36 | 2019-01-15T14:03:36 | 165,860,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,926 | py | import os
import re
import sys
import platform
import subprocess
import unittest
from setuptools import setup, Extension
from setuptools.command.build_ext import build_ext
from distutils.version import LooseVersion
PACKAGE_NAME = "EigenNN"
def load_test_suite():
test_loader = unittest.TestLoader()
test_suite... | [
"b.samseth@gmail.com"
] | b.samseth@gmail.com |
0e38159c0248dd405ba7f688dd0d74309c7b49c2 | b7c054cf5ef54a039253e412c526e3352c571793 | /exam/exception/__init__.py | 0a5ffdd4d1ae2de657048608aa42decb5e9b7e56 | [] | no_license | choisoonsin/python3 | f587593edb19ea0e125541529e32afeeee54c9c3 | d417e2495bad88206f7b1ddde3400d30b901b369 | refs/heads/master | 2023-09-01T13:55:11.570100 | 2023-07-26T08:32:59 | 2023-07-26T08:32:59 | 161,561,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30 | py | f = open("C://test.txt" , 'r') | [
"cyh0214@gmail.com"
] | cyh0214@gmail.com |
65440b1030870cfe31732548952ceda8f36b86fa | 090af6997bac1dd6e27b4684be41d70ede0e8bb3 | /Week 5/deploy.py | 2f5384d214a7ca472966c438e9261617426dee2d | [] | no_license | amshumannsingh/Data_Glacier1 | 79cf55822403505484eb3544830d72ffa47ebfbc | 70c478950029e89913f7e173e43bb4c6f997939a | refs/heads/main | 2023-07-24T10:19:12.733018 | 2021-09-02T15:21:54 | 2021-09-02T15:21:54 | 403,010,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 877 | py | from flask import Flask, jsonify, request
import pickle
import pandas as pd
app= Flask(__name__)
@app.route('/', methods = ['GET', 'POST'])
def home():
if (request.method == 'GET'):
data = "hello world"
return jsonify({'data': data})
@app.route('/predict/')
def price_predict():
m... | [
"amshumannsingh@gmail.com"
] | amshumannsingh@gmail.com |
5c3a0b5ac9e4d361f4a28de00aacc7966a4d3eb8 | 95b613359c8976a17d2c10cfbdbf93fa500377b1 | /Django_Demo/venv/bin/django-admin.py | 7e5bba8bb3febd3834ba05385272652bfe3abc07 | [] | no_license | kaiyuean/Presentation_4 | 279b18e2e4c0729bb3e138a0c9cea7a452b73843 | dfb796d70d8bc992b8a980f85aa0496c325a11b6 | refs/heads/master | 2021-01-10T09:37:20.179804 | 2015-12-14T03:02:10 | 2015-12-14T03:02:10 | 47,285,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | #!/Users/kaiyuean/Desktop/Object-Oriented/project/project_folder/venv/bin/python
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"kaiyue.an@colorado.edu"
] | kaiyue.an@colorado.edu |
3cde92d4a724f9c48cca6451694fa1d40b659e5b | d787daff01449224dd6834ac38c5b6d5d576c906 | /venv/bin/easy_install-3.6 | 55331cda476121e3907c095c601601c254765b89 | [] | no_license | forza111/A_Bytte_of_Python | cc51e4176cebbe363d08e4fdb061165ce18b5e5a | d0aabfc6c75057846b546653e472c1e3987796ff | refs/heads/master | 2022-12-15T08:35:36.647326 | 2020-09-07T19:06:48 | 2020-09-07T19:06:48 | 293,608,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | 6 | #!/home/nikita/PycharmProjects/A_Byte_of_Python/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.6'
__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?... | [
"nikitos.ionkin@yandex.ru"
] | nikitos.ionkin@yandex.ru |
f1fad69576b6c0a8ba61f241efef3b08efe23954 | fc736e3cbc0bd960f2c7c4c275f631a6f484cd76 | /raw/backup/dssm_train.py | fcb3a3ff16aebee206d502039ec30973dcf86263 | [] | no_license | xubaochuan/mm_intern | b0779e164cc4f4472ee09d9790bfa431bc9fa2fa | bed961f4f5426a481016795464c375aad454ef14 | refs/heads/master | 2021-07-06T03:44:19.701952 | 2017-09-27T02:51:04 | 2017-09-27T02:51:04 | 103,612,057 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,599 | py | import random
import numpy as np
import tensorflow as tf
import text_reformer
import sys
reload(sys)
sys.setdefaultencoding('utf8')
flags = tf.app.flags
FLAGS = flags.FLAGS
flags.DEFINE_string('summaries_dir', '/tmp/dssm-400-120-relu', 'Summaries directory')
flags.DEFINE_integer('embedding_dim', 200+200+500, 'the dim... | [
"xu.baochuan@immomo.com"
] | xu.baochuan@immomo.com |
f2dbbabc6a8cac5070e8a12ab74f1a72f711378a | d440e9a427c3c594cd43fcdbeedcd36b6cb38b9d | /random_gen.py | 15b2e0e435e68d955c733ac35ec7e812dc526425 | [] | no_license | omariba/Python_Stff | 7e7d2c4ca7dab0ac50ca75660fd7db9386f64c52 | 3e55fb1b7cb45f00fed2bdf682fc8fadaac47075 | refs/heads/master | 2021-05-24T01:36:48.068838 | 2020-06-21T09:43:05 | 2020-06-21T09:43:05 | 83,025,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,023 | py | import random
import os
import time
#generate once
#name = ""
#li = []
#while name != "00":
# name = raw_input("Items: ")
# if name == "00":
# pass
# else:
# li.append(name)
#li = ['Gitonga','Mandela','Kevin','Kimani','Cetric','Robert']
#def gen():
# random.shuffle(li)
# for i in li:
# print i
#gen()
#randomise ... | [
"omariba5@gmail.com"
] | omariba5@gmail.com |
72bbb4fa95a412316afbdf8e94c4b6727eb7525a | 59f5fe9b183a576bd31fb8db667d9e6fb3dd4b85 | /v12_restricted_params/analyzers/analyze_hm_prevalence_by_density_bin.py | a146316825b58b001ca359c4a192e13b87c36fae | [] | no_license | JoRussell-IDM/malaria-hm | 639c4c958622581bd7dc24702e833805c3a18b63 | 0833ef444b74abe291c150773e8f3707532878ed | refs/heads/master | 2022-11-24T22:12:06.711560 | 2020-07-27T20:04:23 | 2020-07-27T20:04:23 | 197,273,629 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,882 | py | import os, re
import sqlite3
import pandas as pd
import numpy as np
import seaborn as sns
#Plotting
import matplotlib.pyplot as plt
from scipy.special import gammaln
from simtools.Analysis.BaseAnalyzers import BaseAnalyzer
from simtools.Analysis.AnalyzeManager import AnalyzeManager
from calibtool.analyzers.Helpers imp... | [
"jorussell@idmod.org"
] | jorussell@idmod.org |
db2dbb711547fe8932e6b1384e8f0ddf20b7b6e2 | 9df2fb0bc59ab44f026b0a2f5ef50c72b2fb2ceb | /sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2022_10_02_preview/operations/_managed_cluster_snapshots_operations.py | 780040b2d4d8d43f5d366c8651b8fa732b2c35c4 | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | openapi-env-test/azure-sdk-for-python | b334a2b65eeabcf9b7673879a621abb9be43b0f6 | f61090e96094cfd4f43650be1a53425736bd8985 | refs/heads/main | 2023-08-30T14:22:14.300080 | 2023-06-08T02:53:04 | 2023-06-08T02:53:04 | 222,384,897 | 1 | 0 | MIT | 2023-09-08T08:38:48 | 2019-11-18T07:09:24 | Python | UTF-8 | Python | false | false | 37,905 | py | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | [
"noreply@github.com"
] | openapi-env-test.noreply@github.com |
cd767082d5f04442dad3e1070b7c41a12bbccef7 | ae129b9f01d571bc4b31e7130a297af1ae1f5059 | /Problem1_to_Problem23_March19/day_1.py | 3e41b86176b386715a3f2259d3c4d0baac02774c | [] | no_license | NightFury13/Daily_Coding_Problem | 7ca720e937f00a78e0f3697205dc03f32ed73e88 | 2df97f0ef3cb3ffd3aa679b732e94c027ce0f96d | refs/heads/master | 2020-04-27T05:40:39.804629 | 2019-07-02T08:47:39 | 2019-07-02T08:47:39 | 174,087,025 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 774 | py | """
Given a list of numbers and a number k, return whether any two numbers from the list add up to k.
For example, given [10, 15, 3, 7] and k of 17, return true since 10 + 7 is 17.
"""
# If negative numbers are also to be handled, just add the smallest
# number of the set to all elements and carry on with below algo... | [
"develop13mohit@gmail.com"
] | develop13mohit@gmail.com |
4cfc520b257272b8130223ccec432db4bd8eb04e | 1c0a677b4be25e6be1ecd25c5115d49942c8e2d6 | /3_ create_laplacian_tiles.py | 518a5a68144f4243876d021fca4d4b245471f7ef | [] | no_license | daghb/MSFS2020_CGLTools | d0248a0d8cd686140fcebea985804767ed988863 | 9e131f67f14d1c9243c35e4d454dd8b71158a81e | refs/heads/main | 2023-02-03T13:10:12.633550 | 2020-12-13T21:29:23 | 2020-12-13T21:29:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,223 | py | import multiprocessing as mp
import numpy as np
import cv2
import os
import misc
import struct
import bingtile
from matplotlib import pyplot as plt
import math
def loadToNPArray(qkey):
beginningcoords = bingtile.QuadKeyToTileXY(qkey+'0')
xoffset = -1
yoffset = -1
loadingarr = np.zeros((1024, 1024), np... | [
"teemu.koskinen11@gmail.com"
] | teemu.koskinen11@gmail.com |
68a632e6d578d57dccf5339542c7e2ff1ba25375 | c9b1aee50b27fb6e761e044d913b6a988f748b07 | /parajo_api/crawler/migrations/0029_auto_20201019_1241.py | b3ff845eee1211e57507299ee9c22e0e54152718 | [] | no_license | namhyonwoo/crwaler_python | d7d27034482c8410031ce67724e9a8e280db8d98 | 0f4f7bae96ec86320bb784204c863a832f0a10bb | refs/heads/master | 2023-03-03T06:41:34.885000 | 2021-02-11T02:29:40 | 2021-02-11T02:29:40 | 337,906,979 | 0 | 0 | null | 2021-02-11T02:29:41 | 2021-02-11T02:04:28 | Python | UTF-8 | Python | false | false | 396 | py | # Generated by Django 3.0.4 on 2020-10-19 12:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('crawler', '0028_auto_20201019_1219'),
]
operations = [
migrations.AlterField(
model_name='carinfo',
name='regdate',
... | [
"cuya123@hotmail.com"
] | cuya123@hotmail.com |
00c6e73ae703d2a2d28f6d366926df631eb78844 | 89af3b0225044511936ef25ef90c4e9b152e29bf | /LoginScreen.py | 6dc881ed115c113d3ad319aec26edbeb840388eb | [] | no_license | zaheenrahman/EnterpriseDatabase | bd3b861b225d8e3f90a5fc6d97b52202c80ccc2c | 16d8c33a4edd4911bbb09bcfb932d4d41181e214 | refs/heads/master | 2020-04-02T15:02:36.391606 | 2018-10-24T18:35:14 | 2018-10-24T18:35:14 | 154,549,718 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,054 | py | import sqlite3
import sys
import re
import os
running = True
conn = sqlite3.connect('a3.db')
c = conn.cursor()
while running:
os.system('clear')
print("Welcome to Ride Services")
print("0 - Exit ")
print("1 - Login ")
print("2 - Register \n")
while True:
inp = input("Enter ... | [
"zaheen@ualberta.ca"
] | zaheen@ualberta.ca |
2832e0c72e4f9af8d41fd853db00b82738826edd | 95e9ec4b3b0d86063da53a0e62e138cf794cce3a | /python/20190427/demo02.py | c12c4e18e989e562f820361bdbf9f7e5309aa93b | [] | no_license | wjl626nice/1902 | c3d350d91925a01628c9402cbceb32ebf812e43c | 5a1a6dd59cdd903563389fa7c73a283e8657d731 | refs/heads/master | 2023-01-05T23:51:47.667675 | 2019-08-19T06:42:09 | 2019-08-19T06:42:09 | 180,686,044 | 4 | 1 | null | 2023-01-04T07:35:24 | 2019-04-11T00:46:43 | Python | UTF-8 | Python | false | false | 1,813 | py | # 生成器
y = (pow(a, b) for a in range(0, 6) for b in range(1, 3))
print(y)
# 常规函数生成斐波那契数列
def f(n):
# x 表示前前一个, y表示前一个, z表示当前的一个
x, y, z = 0, 1, 1
L = []
while len(L) < n:
# 前一个变成 前前一个
# 当前的变成 前一个
x, y = y, z
# 新的当前的等于新的前一个 + 新的前前一个
z = x + y
# 将新的前前一个放到列... | [
"18537160262@qq.com"
] | 18537160262@qq.com |
9040e40cc5434ee777a737e88216932abf411ca9 | 3845b4147d50e60d0c9caf8bf513ef37296f15f8 | /imobi/apps/imoveis/models.py | 0e3037985743590729d73cc51675a1dbf838a732 | [] | no_license | caiokeidi/imobi | e0480f22c0e9f0920119d4552541415ed87adad7 | 09f84d9ae49d67f547c9aea11db1ff1d6b412718 | refs/heads/main | 2023-03-06T14:38:42.363923 | 2021-02-18T00:23:30 | 2021-02-18T00:23:30 | 333,255,327 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,429 | py | from django.db import models
from django.contrib.auth.models import User
class Imoveis(models.Model):
corretor = models.ForeignKey(User, on_delete=models.CASCADE, default=1)
cliente = models.CharField(max_length=50)
cidade = models.CharField(max_length=50)
bairro = models.CharField(max_length=50)
... | [
"caiokeidi@gmail.com"
] | caiokeidi@gmail.com |
bb00304ff79b59c42cd647344afc669f7c319ea0 | ace463d620bddab8a547d9f944786025766307e4 | /zeets/migrations/0007_zeet_users_like.py | 89a83b9b19685f385f48422e7abc45785cdf23b8 | [] | no_license | raul-jr3/zitter | 2cfba13fd15c9e9dcd53106e665dae6c51a9612c | da0b7c0a32f112a320b6df1360a4274a0ba10bb6 | refs/heads/master | 2020-12-02T19:27:26.133636 | 2017-07-11T10:22:45 | 2017-07-11T10:22:45 | 96,343,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-07-11 07:09
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
... | [
"rahul.srivatsav1995@gmail.com"
] | rahul.srivatsav1995@gmail.com |
fd640754b23fe8942350bbf848a5afa02c5a4a50 | 2a2ef2d0b9b0a10c016a2f3ecb0b40a1a87d50b2 | /Look n Say/look_n_say.py | 479b67417877c9e7c0dc439baececc8e3095f5f6 | [] | no_license | Delpire/daily-programmer | 0f8b000d431eb2847a7884a74f039be08a5e1ca7 | 573d49191045f1c9c99c61383b020e4914930839 | refs/heads/master | 2020-04-06T04:55:05.442997 | 2014-09-16T03:37:45 | 2014-09-16T03:37:45 | 22,363,605 | 0 | 0 | null | 2015-09-10T21:53:35 | 2014-07-29T01:27:20 | Python | UTF-8 | Python | false | false | 791 | py | import sys
import re
seed = ""
try:
N = int(sys.argv[1])
if len(sys.argv) > 2:
seed = str(sys.argv[2])
except:
print("usage: look_n_say.py N [--seed]")
print("\npositional arguments:\n N\t number of iterations.")
print("\noptional arguments:\n --seed\t starting seed.")
sys.exit()
if see... | [
"chrisdelpire@gmail.com"
] | chrisdelpire@gmail.com |
f74d2e50f0b9251508a3ba77f471021c10df8b75 | 03fa19025a75815a55618bffad4021080bdefcdd | /tello_drone.py | 3b22621991331ff113de12d336a706875521b9d4 | [] | no_license | Iscaraca/Tello_Workshop | 90fd8667023a6ea960c0a4546427887419932f56 | 046470919dcb2a432f24ab7ef01336bdf4a502fe | refs/heads/main | 2023-01-21T07:00:44.549121 | 2020-11-27T00:57:59 | 2020-11-27T00:57:59 | 314,851,198 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 9,133 | py | import socket
import threading
import cv2 as cv
class Tello:
"""
Handles connection to the DJI Tello drone
"""
def __init__(self, local_ip, local_port, is_dummy=False, tello_ip='192.168.10.1', tello_port=8889):
"""
Initializes connection with Tello and sends both command and... | [
"noreply@github.com"
] | Iscaraca.noreply@github.com |
d4edb863c7e252634120243537e4f30cf8a810a3 | 08615c64a62fc364a802bb92314cf49080ddbcee | /django学习/5.3/test5/test5/urls.py | 5764ca7d2367edae908e79907eeb63a3f4d95cf1 | [] | no_license | xiangys0134/python_study | afc4591fca1db6ebddf83f0604e35ed2ef614728 | 6ec627af7923b9fd94d244c561297ccbff90c1e9 | refs/heads/master | 2023-02-24T01:24:45.734510 | 2022-10-29T02:11:20 | 2022-10-29T02:11:20 | 143,358,792 | 2 | 0 | null | 2023-02-08T03:07:26 | 2018-08-03T00:43:46 | Python | UTF-8 | Python | false | false | 807 | py | """test5 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based v... | [
"you@example.com"
] | you@example.com |
9f128b640f5e7e4f27ef05a3b485831b2a0a90fa | 5fcdfdd75ba66cee5601740ddc8f18740da93b2f | /blogs/models.py | bd684fe27559c5582032509cb47717da0404758d | [] | no_license | pioneerwxf/markpro | 90a28782f7ca66f793d80fc3d0a7969741446c19 | 76a879674f0cf118661fdf3b9622ccd0210f4681 | refs/heads/master | 2021-01-10T01:00:50.411973 | 2012-07-14T03:07:21 | 2012-07-14T03:07:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | from django.db import models
from brands.models import Brand
class Blog(models.Model):
type = models.CharField(max_length = 50)
url = models.URLField()
brand = models.ForeignKey(Brand, related_name="blogs") | [
"wangxianfeng.me@gmail.com"
] | wangxianfeng.me@gmail.com |
e35cc9abc13e861286e4f0ba696aa7a0b9075f80 | 8600ea155f279e5a8dfe5a1926038511f6b6a7ea | /account_date_check/__init__.py | d134542ed13c49ec8b2c6bdf6d51c316a2c308f2 | [] | no_license | MarkNorgate/addons-EAD | c2fff89ab16fce3ba19fbe433ee5863705a6f4e5 | 840f28642b5d328e4b86839c413e5164622295a5 | refs/heads/master | 2020-04-23T22:11:00.164438 | 2015-07-22T12:24:53 | 2015-07-22T12:24:53 | 39,501,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,218 | py | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved
# $Id$
#
# This program is free software: you can redistribute it and/or modify
#... | [
"mark.norgate@affinity-digital.com"
] | mark.norgate@affinity-digital.com |
19039e3383073a51120c30ccb9ea6ccd87e2ed02 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /7soAnzpZToSxztnDr_8.py | 8da9146cad5d4051a555f2260572b45848bad196 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,141 | py | """
The **shift left** operation is similar to **multiplication by powers of
two**. This can also be achieved with repetitive addition, thus, the process
can be done **recursively**.
Sample calculation using the shift left operator `<<`:
10 << 3 = 10 * 2^3 = 10 * 8 = 80
-32 << 2 = -32 * 2^2 = -32 * 4 = -12... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
eefc1b93a13d6621a047c11086793e12600144b1 | cbbff22cf94f7a38926213a0c703fb45444ab292 | /TSP/TSP_lookup.py | 45ee5978d49897c07fa7cbd0f086217452fde22f | [] | no_license | netninja7/ducking-octo-hipster | 5999fdcee48e036983e79aebc5d1341cfee406f8 | c28f6e8aae39677550cf33cbd4b6fe465f35f088 | refs/heads/master | 2016-09-10T08:23:33.776826 | 2013-10-03T22:46:14 | 2013-10-03T22:46:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 746 | py |
def get_xy (city) :
if city == 1 :
return [0,0]
elif city == 2 :
return [0,1]
elif city == 3 :
return [0,2]
elif city == 4 :
return [0,3]
elif city == 5 :
return [0,4]
elif city == 6 :
return [1,4]
elif city == 7 :
return [1,3]
elif city == 8 :
return [1,2]
elif city == 9 :
... | [
"netninja1000101@gmail.com"
] | netninja1000101@gmail.com |
7a8121096a6b913873e161a5f8bc001e89956272 | 0527aea33ec57704edbc2e1ec9943f009590a924 | /myvenv/bin/gunicorn | de922a350c7222771209cba25cca67f6d2b5b992 | [] | no_license | hyeonJeongByeon/Wordcount_Deploy_Heroku | 1d17d5b8085cbe1c6db70d981c0fc33007e73c41 | 9434d04e88279df46ef162ec1acd4e0c184390ee | refs/heads/master | 2023-04-28T20:22:12.400867 | 2019-07-31T01:51:19 | 2019-07-31T01:51:19 | 199,744,658 | 0 | 0 | null | 2023-04-21T20:34:38 | 2019-07-30T23:57:23 | Python | UTF-8 | Python | false | false | 279 | #!/Users/byeonhyeonjeong/Downloads/wordcountsession-master/myvenv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from gunicorn.app.wsgiapp import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"jungjung1218@gmail.com"
] | jungjung1218@gmail.com | |
462cff217a50798d3667a263c07b6f97f12a4ff2 | dacb257a90310eba03f3128221120a7d54b894ba | /pysmartnode/components/switches/remote433mhz.py | 9aa9b0303e31540327de81626b17cfe2feccf6e5 | [
"MIT"
] | permissive | SiChiTong/pysmartnode | 92351efa02e52aa84185a53896957c453b12540a | a0998ad6582a28fe5a0529fb15dd4f61e254d25f | refs/heads/master | 2023-01-05T10:00:14.907988 | 2020-09-01T10:07:45 | 2020-09-01T10:07:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,123 | py | # Author: Kevin Köck
# Copyright Kevin Köck 2020 Released under the MIT license
# Created on 2020-03-31
"""
example config:
{
package: .switches.433mhz
component: Switch433Mhz
constructor_args: {
pin: 21 # pin number or object
file: "filename" # filename where the ca... | [
"kevinkk525@users.noreply.github.com"
] | kevinkk525@users.noreply.github.com |
592753e6010898e998d131b59d51fb3be41cb4d4 | 65a645430d1dec1506338e21be7625dd3af9f18e | /main.py | ae4e3b3b43fbc5f04330ccefea901a3796fd461d | [] | no_license | Obamzuro/cassandra_lab1 | 8e1d74b5e39c01d97791923fc480d7e384180514 | 95c3c66ef2e25a07128d38bb13fd07fba4e7cbab | refs/heads/master | 2020-11-27T21:43:04.764774 | 2019-12-23T07:05:07 | 2019-12-23T07:05:07 | 229,612,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,536 | py | from cassandra.cluster import Cluster
from cassandra.query import SimpleStatement
from cassandra import ConsistencyLevel
cluster = Cluster(['127.0.0.1'], port=9042)
session = cluster.connect('obamzuro', wait_for_all_pools=True)
session.execute('USE obamzuro')
query = SimpleStatement("""INSERT INTO obamzuro.st... | [
"noreply@github.com"
] | Obamzuro.noreply@github.com |
689f2cd033a78cfe62d22d97c033a050baf5e09b | 7bd5ca970fbbe4a3ed0c7dadcf43ba8681a737f3 | /2017/halfmarathon/final/A/a.py | d022308db43a50e6c81737f162cf302c8e1cc84c | [] | no_license | roiti46/Contest | c0c35478cd80f675965d10b1a371e44084f9b6ee | c4b850d76796c5388d2e0d2234f90dc8acfaadfa | refs/heads/master | 2021-01-17T13:23:30.551754 | 2017-12-10T13:06:42 | 2017-12-10T13:06:42 | 27,001,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,588 | py | # -*- coding: utf-8 -*-
import sys,copy,math,heapq,itertools as it,fractions,re,bisect,collections as coll, random
N = 8
LOOP = 1000
MIN_D = 1
MAX_D = 50
MIN_T = 1
MAX_T = 50
def flush(s):
print s
sys.stdout.flush()
def fill(i):
flush("fill %d" % (i + 1))
def move(i, j):
flush("move %d %d" % (i + 1... | [
"roiti46@gmail.com"
] | roiti46@gmail.com |
09dadd77d06fc29c5cb436f64dfc953aac760332 | fc5e0be02478b3aed1a7cc70181024e194df259f | /studentpro/student/migrations/0006_auto_20170926_0558.py | a3af317f5706f8071428a09a4bec9f019843a393 | [] | no_license | Trupti4/my-first-blog | 93a0bb6c8cb5c5f417fdf48f1fc9cd2bcf63db11 | 60f923f57511c0a6a5a97c1025db60987b18b9d6 | refs/heads/master | 2021-08-15T02:40:49.947565 | 2017-11-17T05:49:27 | 2017-11-17T05:49:27 | 111,067,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 759 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-09-26 05:58
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('student', '0005_class_division'),
]
operations = [... | [
"truptibjagtap95@gmail.com"
] | truptibjagtap95@gmail.com |
44ee678a2b4d31c2bcc76b9488ba66b930e43aa7 | 0c656371d4d38b435afb7e870c719fe8bed63764 | /vehicles/models.py | bbde423644f83ef32dd331b95d2c926c3acce45c | [] | no_license | enias-oliveira/parking-lot | cfbe5ca91dcb949e60f04cd26137260f5a9dba36 | a54f5ca7b7d78bfc1a9b3c389729da14899d4048 | refs/heads/master | 2023-05-07T08:48:59.288672 | 2021-05-18T19:52:46 | 2021-05-18T19:52:46 | 369,363,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | from django.db import models
from levels.models import Space
class Vehicle(models.Model):
license_plate = models.CharField(max_length=255)
vehicle_type = models.CharField(
choices=Space.VarietyChoices.choices,
max_length=1,
)
arrived_at = models.DateTimeField(auto_now_add=True)
p... | [
"eniasoliveira27@gmail.com"
] | eniasoliveira27@gmail.com |
4bafa5098d0401cf955571e176bcaca041310536 | 9f71e50de671c0ab6f649b02d1b42b75d8f594d3 | /lab05/lab_2.py | b18a4736437f75d26dce4195ab2ecd8230eaeee9 | [] | no_license | kodingkoning/cs344 | a00a2327902d5e8cdbfed05bc71b4b06cb2f8ef3 | d54a4237153a32675918daab528ad493afd4d99e | refs/heads/master | 2020-04-20T03:03:08.484414 | 2019-05-13T18:56:30 | 2019-05-13T18:56:30 | 168,587,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,570 | py | """
CS 344: Lab 05
Elizabeth Koning, February 2019
Exercise 5.2
"""
from probability import BayesNet, enumeration_ask, elimination_ask, gibbs_ask
# Utility variables
T, F = True, False
cancer = BayesNet([
('Cancer', '', 0.01),
('Test1', 'Cancer', {T: 0.9, F: 0.2}),
('Test2', 'Cancer', {T: 0.9, F: 0.2}),... | [
"koningelizabeth@gmail.com"
] | koningelizabeth@gmail.com |
a375a95d7c91dcc149c50ecaf7a3eb816d4db3e8 | cc8a7e3129e403bef8f6e28edc5602b64798c807 | /ui/student/__init__.py | 61b6891d4d0497a02e4cd6cf2f7958e2a70d76fb | [] | no_license | tameTNT/lucahuelle-wjecgce-compsci-unit5 | 0e86a87479ba8bb238e48012865c2099ee9f3de7 | e12e54b3b6d47ab68e8b13660d4d2480edb7494a | refs/heads/master | 2023-05-12T11:08:44.504621 | 2021-06-04T12:40:41 | 2021-06-04T12:40:41 | 283,845,001 | 1 | 0 | null | 2021-05-16T12:52:22 | 2020-07-30T18:09:40 | Python | UTF-8 | Python | false | false | 9,606 | py | import logging
import tkinter as tk
import tkinter.ttk as ttk
import ui
import ui.landing
import ui.student.enrolment
import ui.student.section_info
from data_tables import data_handling, SECTION_NAME_MAPPING
class StudentAwardDashboard(ui.GenericPage):
page_name = 'STUDENT_USERNAME - Award Dashboard'
def _... | [
"30503695+tameTNT@users.noreply.github.com"
] | 30503695+tameTNT@users.noreply.github.com |
f824ea27891db1c68d9afda49cef3f0acb44e804 | daa0e9d968884202e2d4cc6769a8a1fe060e5e84 | /Python/bannergraber.py | 4c4a0be5f39510d4c578baec62f1fb9f2e2404bd | [] | no_license | Ankit1dubey/Hacktoberfest-Accepted | 03ecab59d10f934b8b5ed6f2d65c9a64692e2cff | cd2d8a55b7c62d8d56165a74e717ab4733bcdae7 | refs/heads/main | 2023-08-22T07:24:14.105087 | 2021-10-30T16:42:51 | 2021-10-30T16:42:51 | 422,935,434 | 2 | 0 | null | 2021-10-30T16:36:39 | 2021-10-30T16:36:39 | null | UTF-8 | Python | false | false | 268 | py |
import socket
def banner(ip, port):
s = socket.socket()
s.connect((ip, int(port)))
s.settimeout(5)
print(s.recv(1024))
def main():
ip = input("Please enter the IP: ")
port = str(input("Please enter the port: "))
banner(ip, port)
main()
| [
"noreply@github.com"
] | Ankit1dubey.noreply@github.com |
ce600169865d3e60fa5828726f44e90608919b67 | 55cf0aa3e9795dd769a7cce18d1816fa960f9eb6 | /blog/migrations/0001_initial.py | 0b7bbe4ec64b92ec8a4582604dab8b1b366ebb11 | [] | no_license | apascolo1/my-first-blog | 2cd15642c91cc024bedd9d858ce32c36ee4f1d42 | d1da1510ee6840d670cefa00579eea34130b3615 | refs/heads/master | 2021-01-02T22:48:58.179116 | 2017-08-05T05:56:30 | 2017-08-05T05:56:30 | 99,399,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,051 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-08-05 03:58
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
depe... | [
"apascolo@hotmail.com"
] | apascolo@hotmail.com |
999ce221a1abf46e5d54a633af2e8f9a66c8a6a6 | b382a88e68988e88725f183a197692592f29665a | /codepython/StatistiqueY/statistical_analyse.py | a2165cc63ca2cadc14195bca4145723c9a24490b | [
"BSD-3-Clause"
] | permissive | gdeside/LEPL1506_Projet4 | 0e97c4ad66a9cfdfba005170e6ed56337624229a | 02b9833fedbadd79bf8fdcd7026d2ee8b7925cc2 | refs/heads/master | 2023-04-22T15:34:22.596361 | 2021-05-08T18:57:17 | 2021-05-08T18:57:17 | 354,288,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,248 | py | from os import path
import numpy as np
import statsmodels.stats.weightstats as sm2
from scipy import signal
from scipy import stats as sc
import coda_tools as coda
import processing_tools as tool
# %% Comparaison variance
markers_id = [6, 5, 8, 7]
ntrials = [2, 3, 4] # /!\ changer noms de fichiers
positions = ['UR'... | [
"guillaume.deside28@gmail.com"
] | guillaume.deside28@gmail.com |
1920681762c2334cb1bce7fbbef9a9b4912ac7ca | b7a79f6187ddd8d6f0c7f20dbf28a375b3d5a83b | /tools/format-conversion/output-from-py-to-graph.py | e047173d86caebb00ea15ddfc696bd079b778cc6 | [
"ISC",
"CC-BY-4.0"
] | permissive | gracesc7/irc-disentanglement | 542ddee388cfb31b2107251e1a4e52ed76f94cd8 | a94d2992bce7648bc79881ed95b34eaac9d62383 | refs/heads/master | 2020-08-25T00:00:16.892953 | 2019-09-25T20:14:54 | 2019-09-25T20:14:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 539 | py | #!/usr/bin/env python3
from __future__ import print_function
import argparse
import logging
import sys
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='Convert the output from a run of the python system into content that can be evaluated.')
args = parser.parse_args()
done_trainin... | [
"jkk@berkeley.edu"
] | jkk@berkeley.edu |
6f07ea6ec7b1081eb1cd3ffb088fd7b9cc491c95 | fe42bdcb32937a477f7cebb184771f05a9f6a7d9 | /tiny.py | 189f6f1e9d07e269ce7bc0d0e116559399f3170d | [] | no_license | ozamodaz/tinypng | 81ca1ab22f0d65aa45bbee6df917cdaad46876e7 | fb9ac925924d51330172047cd077c4255505276f | refs/heads/master | 2020-12-02T22:36:36.253055 | 2017-07-21T13:12:25 | 2017-07-21T13:12:25 | 96,156,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,345 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import tinify
import os, sys
from datetime import datetime
from concurrent.futures import ThreadPoolExecutor
max_workers = 4
tinify.key = 'API_KEY'
in_path = os.path.dirname(__file__)
out_path = os.path.join(in_path, 'compressed')
log_file = os.path.join(in_path, 'error.l... | [
"horen@colocall.net"
] | horen@colocall.net |
d0441941e779a89f285dae8308b27bcbcc5c567b | 15c2d706e2e4e4826f3f3c8cb43646e8fbc0de30 | /testboringthings.py | 1f42792192194547db3d9b896a6083d81b33e1fb | [
"MIT"
] | permissive | Widdershin/PyGM | 9bcc8d40c796f74ea0aeb0f7df94cd6948cc4a87 | 3cb898c29bcb20589f2f8ed3f93036c1bd49cf2d | refs/heads/master | 2021-01-01T15:29:52.553756 | 2013-07-02T11:16:01 | 2013-07-02T11:16:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | import core
import core.maths
class Player(core.PyGMObj):
def __init__(self, x, y, sprite=None):
super(Player, self).__init__(x, y, sprite)
class Nick(Player):
"""docstring for Nick"""
def __init__(self, x, y, sprite=None):
super(Nick, self).__init__(x, y, sprite)
self.x = x
self.y = y
self.sprite = sp... | [
"ncwjohnstone@gmail.com"
] | ncwjohnstone@gmail.com |
c2e0f9527762406a4d6c13564971bac0124e2b62 | 4c513075de5af0f450268cef78d81a2a8e7a7929 | /django/guofubao/cmdb/urls.py | eb486ed852bba35be1fd9a62d997df627995b038 | [] | no_license | zaishuiyixia911/python2017 | 436a38aa82efaf74b706eaeb6ec9e76eed7d1f1c | 9ef6864d2a42da4bb68ab3df0a0d686817bb34fb | refs/heads/master | 2021-01-19T21:50:37.420642 | 2017-09-22T19:24:16 | 2017-09-22T19:24:16 | 88,710,787 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,040 | py | #!/usr/bin/python
#_*_coding:utf8_*_
"""cmdb URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', ... | [
"894197954@qq.com"
] | 894197954@qq.com |
51ee7c36e58334f7b2f630af3aea0ba3fa79108d | e5ff36a263b22a9759175531b4fb0ff319d2ef4e | /fib-sphere.py | 5e05fc950617f6f3bdd95af3c7565b193bc3bfbb | [] | no_license | caseprince/rhino-python-scripts | 95d74b2ee02130fd8c5e36c378831c87817da342 | 2778cda65aa7169b29b5f546805ed2538ecbb5b2 | refs/heads/master | 2021-04-29T04:02:50.691805 | 2019-03-18T20:31:20 | 2019-03-18T20:31:20 | 78,032,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,271 | py | import rhinoscriptsyntax as rs
import Rhino.Geometry as rg
import math, random
def fibonacci_sphere(samples=1, randomize=True, radius=2.5):
rnd = 1.
if randomize:
rnd = random.random() * samples
points = []
offset = 2./samples
increment = math.pi * (3. - math.sqrt(5.));
for i in range... | [
"caseprince@gmail.com"
] | caseprince@gmail.com |
f77a395cdd517abbc3e9116f21cedf8191c7153f | afc8fb99b86de4a639ef7bd50835c6dfef22d66a | /lg_common/test/offline/test_helpers.py | 7d81ecd093ed6ac55bb81cc3c0b7998837ed0b94 | [
"Apache-2.0"
] | permissive | carlosvquezada/lg_ros_nodes | e5d373a59fa990aac5d0a97a3ee705e7aec141b4 | 7560e99272d06ef5c80a5444131dad72c078a718 | refs/heads/master | 2020-04-08T13:49:19.622258 | 2018-11-24T00:21:30 | 2018-11-24T00:21:30 | 159,408,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,742 | py | """
Test module for all helper functions from the helpers.py module
"""
import os
import pytest
import rospy
import rospkg
import rostopic
from interactivespaces_msgs.msg import GenericMessage
from lg_common.helpers import extract_first_asset_from_director_message
from lg_common.helpers import load_director_messag... | [
"zdenek@endpoint.com"
] | zdenek@endpoint.com |
a762e6fd60f036c8ce198f59b5a134d32805574f | 87bc21c7ec2aaaa86ae1cb76efc4f182b6f86a33 | /blog/migrations/0001_initial.py | 0fbf71e4892bce8d6f4e80fa2ecd3fc197022759 | [] | no_license | malcbwilson/my-first-blog | 195c080c667a88e97fcb35e02f7f53b07f920e67 | 6030d53206ddc9a36c5d0a6d435df7ac4fc1871a | refs/heads/master | 2021-04-06T19:28:52.026610 | 2018-03-15T08:48:51 | 2018-03-15T08:48:51 | 125,335,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,052 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2018-03-14 13:08
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dep... | [
"verysillymalcolm@btinternet.com"
] | verysillymalcolm@btinternet.com |
db3d75e52ba527d65b71fa69000fb4bf8b0d4d19 | 12412a9d3f3434d9a0f9d6db099a6cb75a35a77f | /bgx/validator-bgx/sawtooth_validator/server/network_handlers.py | 7719d562eb6795e2a966b6ec493a48ad999f9ef5 | [
"Zlib",
"MIT",
"Apache-2.0"
] | permissive | DGT-Network/DGT-Mississauga | 3cf6d79618d2b076ac75b771910cabc5bdd6431a | fb0a558f1304696cdf4278b8009001212ee17cb9 | refs/heads/master | 2023-03-05T08:58:09.141087 | 2022-05-10T15:48:04 | 2022-05-10T15:48:04 | 241,790,384 | 0 | 0 | Apache-2.0 | 2023-03-02T17:42:45 | 2020-02-20T04:10:38 | Python | UTF-8 | Python | false | false | 12,397 | py | # Copyright 2016, 2017 NTRLab
#
# 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,... | [
"sparsov@sinergo.ru"
] | sparsov@sinergo.ru |
e2b674451ac2cc1a67893c942d74e7393622b16e | 1e6d47e228afe6343a577e71cb18f05b74ffcc18 | /app.py | 55024ab1e4bb53ac4d26a8f1cc4a04076ba3bdd4 | [] | no_license | MuhweziDeo/maintainaceTrackerApi | cf14af6651067b312a550c8eefa2ea32c9f970d5 | 5261d9f3f723e66d55079219c0915ddb4c0d6e6d | refs/heads/master | 2020-03-23T19:28:06.481753 | 2018-07-24T15:25:37 | 2018-07-24T15:25:37 | 141,979,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,573 | py | from flask import Flask, request,jsonify,render_template,flash,session
from werkzeug.security import check_password_hash,generate_password_hash
from flask_sqlalchemy import SQLAlchemy
from functools import wraps
# import jwt
import uuid
import datetime
app = Flask(__name__)
app.config['SECRET_KEY']="thisisecreys"
d... | [
"aggrey256@gmail.com"
] | aggrey256@gmail.com |
1426fe5efd18a006fb26d6b93e7099cb59991d46 | e10a6d844a286db26ef56469e31dc8488a8c6f0e | /rrlfd/data_utils/compress.py | bd4473ba68f6110f8afbc835fef1bfa587f81a86 | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | Jimmy-INL/google-research | 54ad5551f97977f01297abddbfc8a99a7900b791 | 5573d9c5822f4e866b6692769963ae819cb3f10d | refs/heads/master | 2023-04-07T19:43:54.483068 | 2023-03-24T16:27:28 | 2023-03-24T16:32:17 | 282,682,170 | 1 | 0 | Apache-2.0 | 2020-07-26T15:50:32 | 2020-07-26T15:50:31 | null | UTF-8 | Python | false | false | 1,024 | py | # coding=utf-8
# Copyright 2022 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
26d28491c05fe3675ba6b8ef2b5237750238c9b4 | ba58ab7abe5e790a43ad013d39f8471912bab519 | /【03】分布式多进程/【2】处理对象/Master.py | 37ad67ea0f668f554b294100271855f40134b8d3 | [] | no_license | simpleweiwei/Python.ParallelFramework | 6015621883cd7268d190058e3c3a7b0caa497fc6 | 25b3ea09225fdd826451024285303f86213b9f56 | refs/heads/master | 2021-01-12T16:15:13.602830 | 2016-11-29T05:22:12 | 2016-11-29T05:22:12 | 71,961,055 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,620 | py | from queue import Queue
from multiprocessing.managers import BaseManager
from Job import Job
class Master:
def __init__(self):
# 派发出去的作业队列
self.dispatched_job_queue = Queue()
# 完成的作业队列
self.finished_job_queue = Queue()
def get_dispatched_job_queue(self):
return self.di... | [
"coderweiwei@outlook.com"
] | coderweiwei@outlook.com |
13a92e52791f944fe5b8eb4651c491e58442eb57 | a9c01bacd3d54f66a34f0f51bf0883cf067199f9 | /karaoke_views.py | ab9693f6b9339a60a4c797aee170451055ab0421 | [] | no_license | alxpck/django_basics | 75108dbe1586a53b118776cfbd4d8b9058c19ad4 | 602b748e351a5c12c26fbe032a1d71224734f5dd | refs/heads/master | 2021-01-15T09:23:47.292722 | 2015-07-31T17:31:19 | 2015-07-31T17:31:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | from django.shortcuts import render, get_object_or_404
from .models import Song, Performer
def song_list(request):
songs = Song.objects.all()
return render(request, 'songs/song_list.html', {'songs':songs})
def song_detail(request, pk):
song = Song.objects.get(pk=pk)
return render(request, 'songs/song_detail.h... | [
"alex@alexmilesyounger.com"
] | alex@alexmilesyounger.com |
68a8ff0f5d7cc5447729ba87c02dd93eb7b8ea0f | 3a9f2b3d79cf214704829427ee280f4b49dca70a | /saigon/rat/u/snmp/zd/verify_negative_input_v2.py | 63a9f15ffe39a1c233ba5dbb722ba25e5740a8e8 | [] | no_license | jichunwei/MyGitHub-1 | ae0c1461fe0a337ef459da7c0d24d4cf8d4a4791 | f826fc89a030c6c4e08052d2d43af0b1b4b410e3 | refs/heads/master | 2021-01-21T10:19:22.900905 | 2016-08-20T03:34:52 | 2016-08-20T03:34:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,836 | py | '''
@copyright: Ruckus Wireless, Inc. - 2011
@since: 2011.04.10
@author: cherry.cheng@ruckuswireless.com (developed)
@summary:
Verify negative input for readwrite nodes which support snmpv2: system information [basic and snmp], ZD AP.
Commands samples:
tea.py u.snmp.zd.verify_negative_input_v2
tea.py u.snmp.zd.ve... | [
"tan@xx.com"
] | tan@xx.com |
4d5ec47dc34b9214083ba2b459ff61eb354ac78b | f07c98898c51551a50d96a33e86c4f4f9a797ae7 | /Image Processing/code.py | 68c79de1c738d5635f5b55633cb8ccfa566f046f | [] | no_license | dhruvgoel99/GLADIATOR_Signature-Detection | 26d4714bc10a667b982d15cd9904eeafd130462f | 6b16b3ec4f33306c589a68cc6bf16c2485319bab | refs/heads/master | 2022-11-15T01:14:51.310884 | 2020-07-05T10:10:49 | 2020-07-05T10:10:49 | 277,273,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | import numpy as np
import cv2
face_cascade=cv2.CascadeClassifier("cascade.xml")
img=cv2.imread("picture.jpg",1)
gray_img=cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)
faces=face_cascade.detectMultiScale(gray_img,scaleFactor=1.05,minNeighbors=5)
for x,y,w,h in faces:
img=cv2.rectangle(img,(x,y),(x+w,y+h),(255,0,0),2)
... | [
"noreply@github.com"
] | dhruvgoel99.noreply@github.com |
77555503dd0d9f21308f63ce1579ee889c92d9a3 | c10858b59cef322e31d8f19e32264fde7ae9fd1c | /venv/bin/easy_install | 80c7c00758a874acd859c1baaa8603971178ae94 | [] | no_license | arunmastermind/genReportViaDB | 57f79f9075b09829e479bb25bd61df2e9bb120d7 | ba9bec07e3560c1db4d44605ca836d719874ae79 | refs/heads/master | 2020-12-27T13:41:17.827651 | 2020-02-03T11:30:47 | 2020-02-03T11:30:47 | 237,920,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | #!/Users/arunkumar/genReportViaDB/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"arunkumar@azuls-MacBook-Pro.local"
] | arunkumar@azuls-MacBook-Pro.local | |
443466ea482adaece843f1cafd4b56e975fcc554 | c3b77a364f943b1aa14099b84c4b69910d44b075 | /test/test_oneview_switch_type_facts.py | bb902bd6c526a56110bdc3a81fc2d5b6ac316ba5 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | bsouza/oneview-ansible | f711caa3d17bb62eeaf567945d237cc97d065881 | 0f784a8332af842273e699881a3a2655138fe0c6 | refs/heads/master | 2020-12-07T00:38:08.614405 | 2016-10-07T20:15:48 | 2016-10-07T20:15:48 | 66,856,976 | 0 | 0 | null | 2016-08-29T15:42:59 | 2016-08-29T15:42:59 | null | UTF-8 | Python | false | false | 3,997 | py | ###
# Copyright (2016) Hewlett Packard Enterprise Development LP
#
# Licensed under the Apache License, Version 2.0 (the "License");
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"mariana.kreisig@hpe.com"
] | mariana.kreisig@hpe.com |
9ec162c356d7febbb1f3a98336c7305e9452bc15 | 8069e993efd9b0c6a2b073844f1dea4d7b2b3230 | /notebooks/Users/michael.mengarelli@databricks.com/NLP/04_sarcasm_classifier_tf_idf.py | a4dacc4e06cdd7a2809fd4796e6fee1593ea73ff | [] | no_license | mmengarelli/notebooks | 07f7f8e3ab4cc2d642518c6620cea75f68ee6c33 | 2dea4b533f304fdce0d0df8b83ca5ffeae855527 | refs/heads/master | 2023-05-13T20:00:51.558080 | 2023-04-27T13:15:43 | 2023-04-27T13:15:43 | 148,656,794 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,571 | py | # Databricks notebook source
# MAGIC %md-sandbox
# MAGIC # Detecting Sarcasm with Databricks
# MAGIC
# MAGIC <div class="markdown-converter__text--rendered"><h3>Context</h3>
# MAGIC
# MAGIC <img src="https://memesbams.com/wp-content/uploads/2017/11/sheldon-sarcasm-meme.jpg" style="float:right; height: 450px; marg... | [
"mengam01@gmail.com"
] | mengam01@gmail.com |
0c839ddf6a512a13731cc6c2ca44d1c993d473fb | e414ec62afaa75d187d68831df6c91919c5bad56 | /build/husky/husky_viz/catkin_generated/pkg.installspace.context.pc.py | 11d298fe4f110b2bfc9fd657581ff1ea86fb2156 | [] | no_license | mark2n/tianbao-robtech | 1458a9aca3d20adb0f62e92de271d7aa968be7da | 771cd5ad9194d30fa358e65d3609ede3b643d332 | refs/heads/master | 2021-01-19T22:07:45.969245 | 2017-05-26T09:09:38 | 2017-05-26T09:09:38 | 83,771,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "husky_viz"
PROJECT_SPACE_DIR = "/home... | [
"tianbao.zhang@yahoo.com"
] | tianbao.zhang@yahoo.com |
cdd784e36f7228a590923cbf364b8aad4f0b3360 | 518ed159ee612b9803c7e803e0387a2736c56621 | /tests/test_datastructures/test_stack.py | cd809b2b8270cb229359954dba04b1fe89147203 | [] | no_license | varskann/datastructures_and_algorithms | dd87b33bfda64d87a5dd609bc5514034ffa3bf5b | bc7b8c011c9c7d2cd6ed682aeff5a34281ec925e | refs/heads/master | 2022-12-24T17:19:16.268396 | 2020-10-10T17:59:37 | 2020-10-10T17:59:37 | 261,686,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | import pytest
from datastructures_and_algorithms.datastructures.stack import Stack
def test_stack():
q = Stack()
q.push(1)
q.push(2)
assert q.pop() == 2, "Stack didn't return last element"
q.push(3)
q.push(4)
assert q.traverse() == [4, 3, 1], "Stack storage corrupt"
def test_stack_char():... | [
"varskann1993@gmail.com"
] | varskann1993@gmail.com |
d8b6a3e17bd2c120e11b114a24b107ea372dd24a | cf5da5a84359b9fa163cd6810c3b0857220da002 | /R/RProjectURLProvider.py | 138f28caa3e0f72c2b7e148f54b565c7caa8f602 | [
"Apache-2.0"
] | permissive | nstrauss/homebysix-recipes | a21aff6c0d0115f0aaf428d8aaf94609dc2ecaa9 | e75aed4f6ae44baa1313f8f45b41ee6e1b759df7 | refs/heads/master | 2023-01-09T20:27:14.009885 | 2023-01-03T18:22:24 | 2023-01-03T18:22:24 | 201,100,832 | 0 | 0 | null | 2019-08-07T17:51:19 | 2019-08-07T17:51:18 | null | UTF-8 | Python | false | false | 2,771 | py | # -*- coding: utf-8 -*-
#
# Copyright 2022 Elliot Jordan
#
# 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 l... | [
"homebysix@users.noreply.github.com"
] | homebysix@users.noreply.github.com |
9b2c682f2ffd0fc52a85cf406d2b07b7f25f23d8 | 2df46cfdd985906dafdef119d1aa5a01a59c6563 | /shortly/shortlink/migrations/0002_link_visited.py | d6c1d3622ec71bb122bf4c86cd3b027d314b4222 | [] | no_license | KayafasKain/djangoshory | f7e0a166b92db646f8556b3b3abe532d678d8aef | eb9ab0bd921e096fb981a992a6f9532ab04d8497 | refs/heads/master | 2020-03-19T22:37:23.002564 | 2018-06-16T16:56:35 | 2018-06-16T16:56:35 | 136,975,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | # Generated by Django 2.0.6 on 2018-06-11 18:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shortlink', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='link',
name='visited',
fi... | [
"bismark9988@gmail.com"
] | bismark9988@gmail.com |
9390e7777516dd16c02fa641d3a058bc8f151466 | f5bf67a840af96182fafaf9528fac2b83fed62fa | /homework/day5/problem10.py | ce122dff503ec794da8389e42c37826792f276ba | [] | no_license | vedantshr/python-learning | 4a6d4e2d230d8db4b4370a7ef9375bf4c4dc96c2 | 637efb29f2f13c47cd3d9b402735b15657392835 | refs/heads/main | 2023-06-28T04:24:25.215630 | 2021-07-28T15:13:11 | 2021-07-28T15:13:11 | 281,611,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,378 | py | class FoodItem:
def __init__(self, item_id, item_name, item_category, item_price):
self.item_id = item_id
self.item_name = item_name
self.item_category = item_category
self.item_price = item_price
def provideDiscount(self, discountPercentage):
return (self.item_price - (... | [
"vedantsharma@GIRISHs-MacBook-Pro.local"
] | vedantsharma@GIRISHs-MacBook-Pro.local |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.