blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fa28c117231d16bbe5db5e5da355985a37a13b78 | eb604a447e028af5351349ae4fc25aa475846be1 | /ABC51~100/ABC065/a.py | 7dd4c9593c7acac3674725efc75993feb41fe00b | [] | no_license | RuRey0310/Competitive_Programming | 2fe494410aa49c4d44e85f99530664afeb0e1d96 | e230cc4034ef3b2fe984b583add7a9e3449aa7f5 | refs/heads/master | 2023-04-17T22:16:25.130530 | 2020-06-14T13:43:33 | 2020-06-14T13:43:33 | 246,257,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | x, a, b = map(int, input().split())
if a >= b:
print("delicious")
elif a + x >= b:
print("safe")
else:
print("dangerous") | [
"58558604+RuRey0310@users.noreply.github.com"
] | 58558604+RuRey0310@users.noreply.github.com |
0e08023cfcde1510efd0f8e72737baf061c7dfb2 | 8b47042bb524b08f6923ca14b5a816cb04c4118c | /pyxhook.py | 9702d576a4b8df4e8fe339124ab12780e18fdff7 | [
"Apache-2.0"
] | permissive | adrijshikhar/keylogger | cc4bbe4d49b16f85e981cddfea75488e4c398826 | 3585faa41394093ea1fc241f222a4f3bd3ccbda5 | refs/heads/master | 2021-07-10T23:04:31.801941 | 2020-08-17T09:40:10 | 2020-08-17T09:40:10 | 184,454,728 | 1 | 0 | Apache-2.0 | 2020-08-17T09:40:11 | 2019-05-01T17:32:35 | Python | UTF-8 | Python | false | false | 18,470 | py | #!/usr/bin/python
#
# pyxhook -- an extension to emulate some of the PyHook library on linux.
#
# Copyright (C) 2008 Tim Alexander <dragonfyre13@gmail.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 Fr... | [
"adrijshikhar85@gmail.com"
] | adrijshikhar85@gmail.com |
f19e1692deea8813c50381d88104bc5c4c96bc22 | d964f0a98f5bfa5f71d23de2df2d32a07219cc1f | /students/Eliseev/TMS/HomeWork-6/Task-1.py | b08cb31240bfbdd09169731db0f71945664f22c4 | [] | no_license | AlexandrSech/Z49-TMS | cc8e3308e54c8e9f7ed03c6d7891da074e5c7c45 | d83200ff04c06772ef643b31569b37006420cd6b | refs/heads/main | 2023-07-28T02:40:17.355675 | 2021-08-15T16:54:27 | 2021-08-15T16:54:27 | 366,099,594 | 3 | 4 | null | 2021-09-08T16:52:11 | 2021-05-10T16:00:24 | Python | UTF-8 | Python | false | false | 443 | py | import random
size_x = int(input("Размер матрицы по x: "))
size_y = int(input("Размер матрицы по y: "))
a = int(input("Стартовое число: "))
b = int(input("Конечное число: "))
list_1 = []
for el in range(size_x):
list_1.append(random.randint(a, b))
for el in range(size_y):
i = 0
for el in list_1:
... | [
"alexseeffwork@gmail.com"
] | alexseeffwork@gmail.com |
023b579f0ad04b706b7b8fc678ff2abefea06615 | d0dcc43298a26c4799b7fb8dbf8a3d2843d59713 | /rpi_deep_pantilt/detect/util/label.py | 604dee11a0a771001116af273df325e2d0e2409b | [
"MIT"
] | permissive | timayy/rpi-deep-pantilt | 24b3904bc1b868cbd3599806d0b1a59e8c08e924 | 5173887dd88c31d08f3e2e802acd365dbf0daba9 | refs/heads/master | 2023-04-19T23:51:04.417680 | 2021-05-10T14:17:54 | 2021-05-10T14:17:54 | 365,947,036 | 0 | 0 | MIT | 2021-05-10T10:29:25 | 2021-05-10T06:56:40 | Python | UTF-8 | Python | false | false | 6,570 | py | # Copyright 2019 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... | [
"noreply@github.com"
] | timayy.noreply@github.com |
70ca9355a32a11f9c8c43216e644aff6d4ba1726 | 950ea6cf3d5b82141af484005ebff10da8d63d70 | /Clase3/desafio1/escape2.py | 00dd7754a3e7bcc04535b9d7ca0c12aced854fdc | [] | no_license | jrodriguezcorte/desafiopyton | 2879c9c631a7b1b9b2d7c64310af504851ce5d72 | 4ecc464eaa8247e84f2fb07f55e6741d28d6913f | refs/heads/master | 2020-07-15T14:36:37.748449 | 2019-10-03T00:22:35 | 2019-10-03T00:22:35 | 205,584,483 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | import sys
import math
g = sys.argv[1] # gravedad del planeta
r = sys.argv[2] # radio del planeta en kms
print(g)
print(r)
# pase de radio de kms a m y a float
r = float(r)*1000
# pase de gravedad a float
g = float(g)
# calculo de velocidad
velocidad = math.sqrt(2*g*r)
print(velocidad)
# impresión de resultado fi... | [
"jrodriguezcorte@gmail.com"
] | jrodriguezcorte@gmail.com |
67a841ac1879780cf4fb03786cd5b1d6924639eb | 93713f46f16f1e29b725f263da164fed24ebf8a8 | /Library/lib/python3.7/site-packages/sympy/physics/mechanics/system.py | b82288bed1b78b4314a676d5a08789aa26293f22 | [
"BSD-3-Clause"
] | permissive | holzschu/Carnets | b83d15136d25db640cea023abb5c280b26a9620e | 1ad7ec05fb1e3676ac879585296c513c3ee50ef9 | refs/heads/master | 2023-02-20T12:05:14.980685 | 2023-02-13T15:59:23 | 2023-02-13T15:59:23 | 167,671,526 | 541 | 36 | BSD-3-Clause | 2022-11-29T03:08:22 | 2019-01-26T09:26:46 | Python | UTF-8 | Python | false | false | 18,663 | py | from sympy.core.backend import eye, Matrix, zeros
from sympy.physics.mechanics import dynamicsymbols
from sympy.physics.mechanics.functions import find_dynamicsymbols
__all__ = ['SymbolicSystem']
class SymbolicSystem(object):
"""SymbolicSystem is a class that contains all the information about a
system in a ... | [
"nicolas.holzschuch@inria.fr"
] | nicolas.holzschuch@inria.fr |
46b39b7702a9141219f94da8c8bd28f61995ddac | 60c4255fb0cf7ed817ff09d8113bf404cde8e12b | /env/lib/python2.7/site-packages/django/db/models/fields/related.py | 097b33363a2c3931424d17747bbaba9e3fa56da9 | [] | no_license | adamjberg/finna-be-octo-ninja | 83aba13f619d4fbfb5308e48336917f0ada0459d | cf16bfcb3d7bb4e878ba0b99ad701b5cda8be34c | refs/heads/master | 2021-01-10T20:19:20.849476 | 2014-01-11T05:42:23 | 2014-01-11T05:42:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65,415 | py | from operator import attrgetter
from django.db import connection, connections, router
from django.db.backends import util
from django.db.models import signals, get_model
from django.db.models.fields import (AutoField, Field, IntegerField,
PositiveIntegerField, PositiveSmallIntegerField, FieldDoesNotExist)
f... | [
"ilikecattle@gmail.com"
] | ilikecattle@gmail.com |
1b3ba494b9274d8bfbf69baa03de441e184361f0 | a5d6b01c1966d443d9c459fa7d8a16ec9faed81b | /FundamentalAnalysis/ratios.py | 70d4c67ade62f34f123577f67500ce22f78f276e | [
"MIT"
] | permissive | Rizwan-Ahmed-Surhio/FundamentalAnalysis | 8f22053b371782ce63ac4bf90cf750317e61316f | cbb7eddb38ddabaaba40dbfe8d5f7a77a5277bcd | refs/heads/master | 2022-09-17T09:45:57.434250 | 2020-05-09T13:44:05 | 2020-05-09T13:44:05 | 265,997,489 | 0 | 0 | MIT | 2020-05-22T02:14:46 | 2020-05-22T02:14:46 | null | UTF-8 | Python | false | false | 3,115 | py | from urllib.request import urlopen
import json
import pandas as pd
def key_metrics(ticker, period="annual"):
"""
Description
----
Gives information about key metrics of a company overtime which includes
i.a. PE ratio, Debt to Equity, Dividend Yield and Average Inventory.
Input
----
ti... | [
"jer.bouma@gmail.com"
] | jer.bouma@gmail.com |
e3bd7407ac001b6c763f279a4f44f968e841749e | d4c18144c06765af02a9a7021f1d03861249dc27 | /IntegrationTests/_ProductData.py | c848b268cb9815da2adcc5f0b90ea27328745052 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | joerg-krause/ohPipeline | 4af73a4a61f708df001b6805439bfec434ca07bb | c788afd8c6ce76fdf0e228ccf984d31ee29f849d | refs/heads/master | 2020-12-03T06:35:45.734791 | 2017-06-28T11:15:02 | 2017-06-28T11:15:02 | 93,066,116 | 0 | 0 | null | 2017-06-01T14:29:34 | 2017-06-01T14:29:34 | null | UTF-8 | Python | false | false | 304 | py | """_ProductData - product specific data
"""
# Available source specified by type
ds = {'NetAux' : 'Net Aux',
'Playlist': 'Playlist',
'Radio' : 'Radio',
'Receiver': 'Songcast',
'Spotify' : 'Spotify',
'UpnpAv' : 'UPnP AV'}
kSrcByType = { 'SoftPlayer' : ds }
| [
"graham.douglas@linn.co.uk"
] | graham.douglas@linn.co.uk |
ae77048f197d299f0d4b63a385ef7e92c0a987d0 | 404735b549ade1756f4e6f4a0eb30a4c19da8692 | /SampleScripts/sample_3D_marked.py | 8df508c4f621905ac3d75c293a90dec4b08b5860 | [] | no_license | Jooyeop-Han/pyStereo3D | 3e7eddf79c05c55a6e49f972ebbe25d1a6237f35 | 33ac28e6d47fd867f73594f34c9e12853ac9be49 | refs/heads/master | 2022-10-06T09:26:38.976813 | 2020-06-05T13:35:41 | 2020-06-05T13:35:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,054 | py | from Stereo3D import Stereo3D, StereoCalibration
from Stereo3D.StereoCapture import *
camera_name = "deimos"
marked_image_filepath = "SampleData/deimos_left_marked.png"
stcap = StereoCapture("Image",["SampleData/deimos_left.png","SampleData/deimos_right.png"])
# define inout folder
folder = "SampleData/"
outputfolder ... | [
"benknight135@gmail.com"
] | benknight135@gmail.com |
06b7cb7a483e81e6402461f00e0f0f1d5bfff1f3 | 04eafeab701674f444c4044b3ba3e858267851d1 | /venv/Scripts/pip3-script.py | 3762478de869a5b68f3532c02b0d142f1acf426e | [] | no_license | srimathila/Codedaddies_list1 | 3e213fda5e1fc9d253035063d437039f081b0f21 | 1ffbd4d7001aa9f23eea18bff9030a2572177b2f | refs/heads/master | 2022-10-11T20:33:21.731309 | 2020-06-18T13:15:29 | 2020-06-18T13:15:29 | 273,242,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | #!C:\Users\Srimathi\PycharmProjects\Codedaddies_list1\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', ... | [
"srimathila@gmail.com"
] | srimathila@gmail.com |
c200fdab044077d5fee3c3a281b5d80d3f20d77c | 6503f1836a9402fe03f43d1a6d1fa8de29cc6f3d | /modulos/documento/migrations/0003_banner_tipo.py | ad5bb8fb9396202e9dc603d438a8b5d109d3021e | [] | no_license | eajahuanca/intra-port | 3b8c06f4449e9d34deefd3b780da7f15fc47a0be | 9bcea30f2307869ec18ff5c8a2ecd067e5b9ad39 | refs/heads/master | 2020-07-16T18:51:50.031003 | 2019-09-02T11:56:23 | 2019-09-02T11:56:23 | 205,846,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | # Generated by Django 2.2.4 on 2019-08-25 00:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('documento', '0002_banner'),
]
operations = [
migrations.AddField(
model_name='banner',
name='tipo',
fiel... | [
"edwinajahuancacallisaya@gmail.com"
] | edwinajahuancacallisaya@gmail.com |
b45974f3432a85b175e9e353766f728ea785d360 | d466e0e51197a1e4e40067f076c9be86400ab99a | /FaceRecognitionVideo.py | c08cf28ccb9b333d331ba5cf4da7cefcfe42a1c6 | [] | no_license | Codebugged-Research/Ikshana-Prem | f4c735e595a73fd631d622218cef62b6a0cbc432 | 65c2905fbd7201a82db1129f2dc3ddd2e992026a | refs/heads/main | 2023-07-31T01:18:26.107597 | 2021-09-15T09:14:41 | 2021-09-15T09:14:41 | 388,703,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,186 | py | import cv2
import numpy as np
import os
import face_recognition
from PIL import ImageTk, Image
class Face_Recognition_Video():
def __init__(self,cap,lmain):
self.lmain = lmain
self.path = './KnownFaces'
self.known_face_encodings,self.known_face_names = self.get_known_face_encodings()
self.cap = ... | [
"noreply@github.com"
] | Codebugged-Research.noreply@github.com |
30a9170ae768d8d884e539bb99808aeacba49d97 | e0b0dc4e5e694c2e104fb0cc4ff45a88f99ea5d1 | /sampling/pong_animation.py | 0b9044fe0416c877e69937bbeddafc56c1c5a495 | [] | no_license | mzenk/lif_pong | c4ff7cbb44d1a4ea71692db05fc9aab3d309ee01 | 1ea9ccf25bbb54f12b00b5acd9b4e471acdc6bf1 | refs/heads/master | 2020-12-24T00:09:55.249315 | 2018-05-16T11:28:03 | 2018-05-16T11:28:03 | 237,319,451 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,784 | py | # animation for pong
from __future__ import division
import numpy as np
import cPickle
import matplotlib
# matplotlib.use("Agg")
import matplotlib.pyplot as plt
from matplotlib import animation
import time
from util import get_windowed_image_index
def get_frames(rbm, image, winsize):
global img_shape
# uncove... | [
"maximilian.zenk@kip.uni-heidelberg.de"
] | maximilian.zenk@kip.uni-heidelberg.de |
ec945f1e5445ab9c62b7489307d152b9f35f5e91 | 91e5a14ad1cc2cb6e0787d79673bfa1d1299d707 | /flasksOfFantasy.py | 64f6c5244e5f0cc41e6182d6c053df846a475605 | [] | no_license | cSquaerd/flasksOfFantasy | 09f054b71f27c91ef3378ca9115ec1ae03e22c86 | c748cdf38753ade9f9dfbbba8bfbb0e919fe5503 | refs/heads/master | 2023-04-20T02:24:28.573510 | 2021-05-18T23:56:39 | 2021-05-18T23:56:39 | 344,361,794 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,769 | py | # IMPORTS
import os
import json
import time
import shutil
import flask as fl
import fofDB as db
import fofKEY as key
import fofSTR as strings
import defaultSheet as ds
# CONSTANTS
DEBUG = True
NO_CONFIG_MESSAGE = "Using default SSL and Host configurations " \
+ "(no https and localhost)"
SQL_WRITE_ERROR = "Failed to w... | [
"cook.char.p@gmail.com"
] | cook.char.p@gmail.com |
e51ce24cc9abf704617483f76ca2cd74285aeb65 | 5b93930ce8280b3cbc7d6b955df0bfc5504ee99c | /nodes/VanderPlas17Python/E_Chapter4/N_ThreeDimensionalPlotting/A_ThreeDimensionalPoints/index.py | 0b8df9722eaab651824247c3bb62acae5f54c7eb | [] | no_license | nimra/module_gen | 8749c8d29beb700cac57132232861eba4eb82331 | 2e0a4452548af4fefd4cb30ab9d08d7662122cf4 | refs/heads/master | 2022-03-04T09:35:12.443651 | 2019-10-26T04:40:49 | 2019-10-26T04:40:49 | 213,980,247 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,466 | py | # Lawrence McAfee
# ~~~~~~~~ import ~~~~~~~~
from modules.node.HierNode import HierNode
from modules.node.LeafNode import LeafNode
from modules.node.Stage import Stage
from modules.node.block.CodeBlock import CodeBlock as cbk
from modules.node.block.HierBlock import HierBlock as hbk
from modules.node.block.ImageBlock ... | [
"lawrence.mcafee@gmail.com"
] | lawrence.mcafee@gmail.com |
3a069bad015d28e46e4300891ad78a9a9a693361 | 18fe81edf8831f9ec3f7726e6fd43b89098b421b | /pure_tensorflow_implementation/eval_auc.py | fc3c5fb4b5661411886208a027bfa5a20fb06995 | [
"BSD-2-Clause"
] | permissive | IJDykeman/storm_damage_prediction | 04e62b9fa8533e4ff1b282ad93bab4e1ccd72f9a | 141a116f4f51148124c14135f4f03bf99f7f4f99 | refs/heads/master | 2021-04-22T12:53:22.567050 | 2018-03-23T05:28:55 | 2018-03-23T05:28:55 | 48,092,770 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,793 | py | # this is to make the environment compatible with the Atom Hydrogen
# interactive editor package. You can ignore this code if that doesn't mean
# anything to you.
PYSOLR_PATH = '/home/isaac/Desktop/storm_damage_prediction/pure_tensorflow_implementation'
import sys
if not PYSOLR_PATH in sys.path:
sys.path.append(PY... | [
"ijdykeman@gmail.com"
] | ijdykeman@gmail.com |
5315800005b6ab44c0b386e08171342f172705f5 | e21a9d931272309f872251b13296b88edbe36a10 | /tests/test_proto/columns/stringcolumn.py | bdc77eb14c8fb4080a8e5dfb394420ece87687d7 | [
"Apache-2.0"
] | permissive | ikrivosheev/asynch | 826332ac01f45facc4523d2a7011594be1aefb6a | 04503164653d3632f512b01aa12ad9b8926e751e | refs/heads/master | 2023-04-03T12:19:31.373445 | 2021-04-07T14:29:47 | 2021-04-07T14:29:47 | 349,327,087 | 0 | 0 | Apache-2.0 | 2021-03-19T06:45:25 | 2021-03-19T06:45:24 | null | UTF-8 | Python | false | false | 827 | py | import pytest
from asynch.proto.columns import get_column_by_spec
from asynch.proto.columns.stringcolumn import FixedString, String
@pytest.mark.parametrize(
"spec, expected_column", [("String", String), ("FixedString(10)", FixedString)]
)
def test_create_string_column(spec, column_options, expected_column):
... | [
"py.krivosheev@gmail.com"
] | py.krivosheev@gmail.com |
b86f83022aa6082e1105ad77b24b5ed44507e75e | baaf97917267619411686facf305333192035aa2 | /finalProject.py | d67b188e9645c06e822cd4ca0f3d480e81ac09ae | [] | no_license | RafaelDavisH/Restaurant-Menu-Application | a7516fb0dcc3a22dfd6009a435e16e5a4cd923f4 | f57c75619dd0b35068e12d697acc86890ce9a3bb | refs/heads/master | 2021-05-04T20:21:29.570771 | 2018-02-06T07:05:57 | 2018-02-06T07:05:57 | 119,789,446 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,382 | py | from flask import Flask, render_template, request, redirect, url_for, flash, jsonify
from sqlalchemy import create_engine, asc
from sqlalchemy.orm import sessionmaker
from database_setup import Base, Restaurant, MenuItem
from flask import session as login_session
import random, string
from oauth2client.client impor... | [
"thinkprintgrafx@gmail.com"
] | thinkprintgrafx@gmail.com |
2d0bc0fdced19617b4451c2751afe1792f346b1a | 5c5ef7572b9f7a74a1db2ba196425b5b8a2e1047 | /Day2/Day2.py | f3ace7485b82bb13fa59564ac324717444cab7e9 | [] | no_license | sorrowed/Advent-2017 | 7c1400099db43e567c3d5c5eac9c90793e716c5d | 7cffd98a37b26ce608ae0b9a843d3b8cc22d1044 | refs/heads/master | 2021-05-06T22:23:36.669810 | 2017-12-13T20:50:46 | 2017-12-13T20:50:46 | 112,791,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 547 | py | from itertools import product
sum = 0
file = open("input.txt","r")
for line in file.readlines():
values = [ int(v) for v in line.split() ]
sum += ( max(values) - min( values ) )
file.close()
print( sum )
sum = 0
def checksum( values ):
chk = 0
for p in values:
for s in values:
if... | [
"nospam@sorrowed.nl"
] | nospam@sorrowed.nl |
96b042d9766626f5006a855200a45007c0831b07 | f995dc624ff61bc7b93bdaa524326d61501e0e7a | /venv/Lib/site-packages/urllib3/util/timeout.py | 49740e66f387562578e30171c59dfa1981679050 | [] | no_license | nickpatten04/debt_exercise | 1f35705eedf5e9a25810aac44e9a0de3a01b14cf | 0501e4f77839739aaa268770a50079f6b21249e4 | refs/heads/master | 2023-03-06T08:45:34.420435 | 2021-02-22T00:52:31 | 2021-02-22T00:52:31 | 341,036,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,925 | py | from __future__ import absolute_import
import time
# The default socket timeout, used by httplib to indicate that no timeout was
# specified by the user
from socket import _GLOBAL_DEFAULT_TIMEOUT
from ..exceptions import TimeoutStateError
# A sentinel value to indicate that no timeout was specified by the user in
#... | [
"np164s@corp.wayfair.com"
] | np164s@corp.wayfair.com |
d1d94bfd142bcbf682859745100d6a1ea04dedc8 | 7b7cd5b2bd95c369e9edde4437a616be16399984 | /LCD3.py | 26c74fdcd413535d76ed55000c5260576a9e0133 | [] | no_license | estevaofv/Doorbell-6--final- | 6256d5594a8f92eea7803c60ceae0dbd32e1be21 | 27ec6a071c3a141b30113a17252521a01902d669 | refs/heads/master | 2021-01-14T18:41:47.450561 | 2016-02-25T18:18:14 | 2016-02-25T18:18:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,975 | py | #!/usr/bin/python
import urllib2
from time import sleep
from Adafruit_CharLCDPlate import Adafruit_CharLCDPlate
import RPi.GPIO as GPIO
import time
from time import gmtime, strftime
import os
import subprocess
EMAIL='in06khattab@gmail.com'
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
GPIO.setup(7, GPIO.IN, pull_up_... | [
"in06khattab@yahoo.com"
] | in06khattab@yahoo.com |
b4d1ae788f20363105ce0a7aee177ef372443f97 | b653fb369f4c89cd0799319a4ea81bc40382da73 | /pscloud_training/models/lesson.py | f2d427e58acecfbaeeeae37221a21ad70bb69455 | [] | no_license | Ud0209/LYX | de94055c58bcddcc89ace991a403785c048538fe | adb12a41c304fe812532c6522b7f6958cb1ca46b | refs/heads/master | 2020-04-10T03:41:50.673833 | 2018-12-13T14:48:16 | 2018-12-13T14:48:16 | 160,777,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,344 | py | # -*- coding: utf-8 -*-
from odoo import api, fields, models
from odoo.exceptions import UserError, ValidationError
import datetime
from odoo.tools import DEFAULT_SERVER_DATE_FORMAT as DATE_FORMAT
class TrainingLesson(models.Model):
_name = 'pscloud.training.lesson'
_description = "课程信息"
@api.multi
@... | [
"ud02009@163.com"
] | ud02009@163.com |
dd633f12b25d4c82a24b587931b3fc93e8651fa8 | 8566b1d2ac2032146861cd51640d61532b8461fb | /Studentor/users/views.py | 693deec2053579e96ac6450ce959d87bd16a151b | [] | no_license | marara02/Studentor | f0a93a3254ac2294afd48dca2eb885275983608a | e876c7f78bada5df12c00bf5bbff16751af89f2d | refs/heads/main | 2023-07-17T04:39:04.734374 | 2021-08-26T04:25:22 | 2021-08-26T04:25:22 | 369,729,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,397 | py | from django.contrib.auth.mixins import LoginRequiredMixin
from django.shortcuts import render, redirect
from django.views import View
from .forms import CreateUserForm
from django.contrib.auth import authenticate, login as dj_login, logout
from django.contrib import messages
from django.contrib.auth.decorators import ... | [
"57908460+marara02@users.noreply.github.com"
] | 57908460+marara02@users.noreply.github.com |
22c4f877c0e1c24e6f69a838483da63e95fe699b | 1767269b049080a4150e54e8bd8e02f282168162 | /300.py | 3d7e839e424c63108dd25b82ba7569810cc74f6f | [] | no_license | alfredo-svh/DailyCodingProblem | e4be74f83fad268e270e73b4bb07f62696537e2c | 75c84a8c09869bfa0ad059beaab71fd8a91be3ee | refs/heads/master | 2022-11-16T14:32:12.654717 | 2022-10-27T13:05:34 | 2022-10-27T13:05:34 | 220,365,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,593 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Aug 25 16:06:48 2020
@author: Alfredo
"""
# Daily Coding Problem #300
# Problem:
# On election day, a voting machine writes data in the form
# (voter_id, candidate_id) to a text file. Write a program that
# reads this file as a stream and returns the top 3 candi... | [
"noreply@github.com"
] | alfredo-svh.noreply@github.com |
10debb179a95e397fb72c6cffd3734fcaa6902a3 | a544830d355907a54610a69abab47344134a216f | /data/datasets/dukemtmcreid.py | 2fa7595809f484e23e1697a403e05a388850a890 | [] | no_license | youzunzhi/DFDGAN | 0529efcbea365eaa7ed3c0eb14c7417964f4a0df | e5855af9eb20b92c81fd89db5851fd595ec1ea54 | refs/heads/master | 2020-07-10T04:47:10.086186 | 2019-08-25T13:59:23 | 2019-08-25T13:59:23 | 204,170,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,605 | py | # encoding: utf-8
"""
@author: liaoxingyu
@contact: liaoxingyu2@jd.com
"""
import glob
import re
import urllib
import zipfile
import os.path as osp
from utils.iotools import mkdir_if_missing
from .bases import BaseImageDataset
class DukeMTMCreID(BaseImageDataset):
"""
DukeMTMC-reID
Reference:
1. R... | [
"youzunzhi@163.com"
] | youzunzhi@163.com |
cf4bc697e7860156204aee79bd65444202aabd62 | f84be0daae92f31d1658ce6384f29000e98f318a | /ShutdownClock/Project/Main.py | 82dfb4318e552c1d46be64398ceddaf48d436031 | [] | no_license | raulianos09/Personal-Projects | c6bba2296a2bc0ac38c425ffca32563ab1dfd747 | 1f46864176696e98e4a6e0857eed17ddd8bb6188 | refs/heads/master | 2023-08-13T20:33:53.909166 | 2021-10-05T08:56:53 | 2021-10-05T08:56:53 | 413,735,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,684 | py | import os
import subprocess
from tkinter import *
from tkinter import font as tkFont
HOUR_OPTIONS = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12']
MINUTE_OPTIONS = ['05', '10', '15', '20', '25', '30', '35', '40', '45', '50', '55']
class MainWindow:
def __init__(self):
self.__initializeWi... | [
"72858436+raulianos09@users.noreply.github.com"
] | 72858436+raulianos09@users.noreply.github.com |
e566a19661fd0f6eb08e8dc063f46dd7afcf2c8c | 8c79cb30e898e7d17f76644702f3971e591aaf36 | /python/groups.py | c2c777d674ec7adb7955688786ebf3f0316cd46e | [] | no_license | kmaroufi/DataBase-Project | 5268f704873acc1ed511cbc2e1f1d3df728ea9b1 | 965a09488c93e6c9fe26953e44f0515921914ce9 | refs/heads/master | 2020-09-24T02:08:08.771737 | 2019-12-03T14:26:50 | 2019-12-03T14:26:50 | 225,636,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,024 | py | from util import *
conn = None
cur = None
user_tel_number = None
def handle_groups(cmd, db_conn):
global conn, cur, user_tel_number
conn = db_conn
cur = conn.cursor()
tmp = cmd.split()
task = tmp[1]
if task == "addGroup":
return add_group(cmd) # /
if task == "alterGroup":
... | [
"kmaroufi76@gmail.com"
] | kmaroufi76@gmail.com |
8a501952490fa9d33985f24cf23aa7cb69298554 | 452be58b4c62e6522724740cac332ed0fe446bb8 | /src/starboard/android/shared/gyp_configuration.gypi | 12dd79875f4d6246ee3cd44f16732f163bbd4628 | [
"Apache-2.0"
] | permissive | blockspacer/cobalt-clone-cab7770533804d582eaa66c713a1582f361182d3 | b6e802f4182adbf6a7451a5d48dc4e158b395107 | 0b72f93b07285f3af3c8452ae2ceaf5860ca7c72 | refs/heads/master | 2020-08-18T11:32:21.458963 | 2019-10-17T13:09:35 | 2019-10-17T13:09:35 | 215,783,613 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,374 | gypi | # Copyright 2016 The Cobalt 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 applicable ... | [
"trofimov_d_a@magnit.ru"
] | trofimov_d_a@magnit.ru |
721f08dccc478beceef57cb2da3bc704a671c7d2 | 6d651544b744cd7a9ca6ddc7d86aa08e5f95d35e | /my_flask_app/venv/bin/easy_install | 8d88c36dcd8fa61214355d2f351debf5fcedf74f | [] | no_license | Matiwosb/lecture2 | 738b09b55184d7704d986e08fcf7f80215db4adb | 95b1b9124131bf08b75a9d78b4a02f37ddcd58fd | refs/heads/master | 2022-04-24T11:31:29.858594 | 2020-04-28T17:53:14 | 2020-04-28T17:53:14 | 257,146,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | #!/mnt/c/Users/worku/my_flask_app/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())
| [
"workubirbo@gmail.com"
] | workubirbo@gmail.com | |
6914467b4e480fb1fed13898dda10452a6241fef | 51b6d2fc53d5c632fcf01319842baebf13901e84 | /atcoder.jp/arc032/arc032_1/Main.py | 66bb6d66546bb0ff6cd9f30580c3f42ba9e3c722 | [] | no_license | mono-0812/procon | 35db3b2c21eff74fbd7b52db07f249380f6834ef | 68a4b53880a228a0164052b23d1326363efcbc20 | refs/heads/master | 2023-05-30T17:02:58.935074 | 2021-06-27T12:15:10 | 2021-06-27T12:15:10 | 345,896,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | n = int(input())
val = 0
for i in range(1,n+1):
val += i
for i in range(2,val//2):
if val%i == 0:
print("BOWWOW")
exit()
if val == 1:
print("BOWWOW")
exit()
print("WANWAN") | [
"frisk02.jar@gmail.com"
] | frisk02.jar@gmail.com |
fcc9505e88d02834c0fa710a05ca99a8fc847271 | 19b6d5b77e3c786865c99e8a73ab65189c86a7fb | /Day_03 | 80413438ed49c0c9867e4d8a4288026d49034b2f | [] | no_license | SatymSingh01/Myhackerankcodes | 5cc2e84d0d2cd2cd85a5e390590b0de00231def4 | c9850f2c3c08adee06f82793cc032226db3762eb | refs/heads/master | 2022-11-17T05:35:47.552320 | 2020-07-06T16:59:34 | 2020-07-06T16:59:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | #!/bin/python3
import math
import os
import random
import re
import sys
# Complete the solve function below.
meal_cost = float(input())
tip_percent = int(input())
tax_percent = int(input())
mealcost=meal_cost
tip=meal_cost*(tip_percent/100)
tax=meal_cost*(tax_percent/100)
total_cost=mealcost + tip +tax
print(roun... | [
"noreply@github.com"
] | SatymSingh01.noreply@github.com | |
3d95e5fb632eba6064ce77c398754fd32ea70c1d | 57f19247ea0fda41ca552f6f4b6b508a23a91aaf | /MyApp/storm/django/backend/base.py | 2a99ce91a0c2376ea60eb362f09f1c399d8f3acc | [] | no_license | marcosstevens2012/GPP | 4d68ad7b3123af425311657d4e0c2c7d0c327cb4 | 80e28bd51665846276123e46a963dabf353ffaf9 | refs/heads/master | 2020-07-01T03:47:36.733712 | 2016-11-25T21:56:50 | 2016-11-25T21:56:50 | 74,096,896 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,492 | py | __metaclass__ = type
__all__ = [
'DatabaseWrapper', 'DatabaseError', 'IntegrityError',
]
from django.conf import settings
import transaction
from storm.django.stores import get_store, get_store_uri
from storm.exceptions import DatabaseError, IntegrityError
class StormDatabaseWrapperMixin(object):
_sto... | [
"marcosstevens2012@gmail.com"
] | marcosstevens2012@gmail.com |
80f401ed7057e8821313fd47a93c30a01355e742 | f75e70f81d25c9b561561c28bedd03eb4a28c6f4 | /catch-of-the-day/node_modules/react-scripts/node_modules/chokidar/node_modules/fsevents/build/config.gypi | 930ba9e48099692769955f361e2d053be554517a | [
"MIT"
] | permissive | david82213/react-practice | 8298e8f8b1354b6ceb9cef58533fbac8275502fd | 6dffe9e82db343afe92245367958d9210521eb4a | refs/heads/master | 2021-01-11T17:53:17.137101 | 2017-03-01T23:32:20 | 2017-03-01T23:32:20 | 79,859,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,819 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"coverage": "false",
"debug_devtools": "node",
"force_dynami... | [
"david82213@hotmail.com"
] | david82213@hotmail.com |
d7a3fb5dd3e1c3722ef0445c7e9436013ba6190b | eb3303ac7984373c7cae844f66faaa3b9a2b3c5c | /Minimize_Easom_Function.py | 6e37a92bc71a6978054e21a9e1486b28ae6574a7 | [] | no_license | jefflai333/Cooperative-and-Adaptive-Algorithms | f4ed0568bd763f9fe1f8503fdbcafff9bb80544b | f4a43ab2c7410f356ee8b603c7c6edd1fb8e3adb | refs/heads/main | 2023-02-10T17:46:15.519568 | 2021-01-13T02:20:14 | 2021-01-13T02:20:14 | 329,169,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,233 | py | import math
from math import cos, exp, pi, sin
from random import uniform, random
def distance(point1):
return math.sqrt(pow(point1[0] - pi, 2) + pow(point1[1] - pi, 2))
def easom(x):
return -cos(math.radians(x[0])) * cos(math.radians(x[1])) * exp(-pow((x[0] - pi), 2) - pow((x[1] - pi), 2))
def temperatur... | [
"jefflai333@gmail.com"
] | jefflai333@gmail.com |
0f39d66ebd4ab22ab567a96706377d1a230fc119 | 0248d6ac543102f166e5cd1ec669ed782cd1c4ea | /parsival_movement_creator/movement_code_creator.py | ec36d703f9f4c675ccb9f2ad214212f23137c09f | [] | no_license | thar/parsival | 7139a4d269789bfc45cf9d8c3f8f209f4e6f3664 | 5a7a02902e1883250513c7f84a1b079ee77bfbbc | refs/heads/master | 2021-08-22T04:39:24.318965 | 2017-11-29T09:07:16 | 2017-11-29T09:07:16 | 111,677,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,587 | py | from mako.template import Template
from mako.lookup import TemplateLookup
import os
class MovementList(object):
def __init__(self):
self.movements = []
script_path = os.path.dirname(os.path.realpath(__file__))
mylookup = TemplateLookup(directories=[script_path])
self.movement_list_... | [
"miguel.a.j82@gmail.com"
] | miguel.a.j82@gmail.com |
2ff30e5f5ab39f63fc4ea4cb41695c90136d8d02 | db2e5b9e21ca0e65293044829287746de37f6361 | /runwebxmpp.py | 13555e368248a3c95552aca9d4330212f64a6219 | [] | no_license | pvicente/KatooServer | c0965fdc84475bb0fe61568c2c51d515dd2ed781 | 9076cfe5796fd203467f840524fa38a3eda52f12 | refs/heads/master | 2022-08-12T11:20:54.297183 | 2019-06-04T12:09:03 | 2019-06-04T12:09:03 | 190,035,062 | 0 | 0 | null | 2022-07-06T20:09:59 | 2019-06-03T15:43:32 | Python | UTF-8 | Python | false | false | 2,126 | py | '''
Created on Aug 7, 2013
@author: pvicente
'''
from katoo import KatooApp, conf
from katoo.apns.api import KatooAPNSService
from katoo.rqtwisted import worker
from katoo.supervisor import HerokuUnidlingSupervisor, MetricsSupervisor, \
XMPPKeepAliveSupervisor
from katoo.utils.applog import getLoggerAdapter, getLo... | [
"pedrovfer@gmail.com"
] | pedrovfer@gmail.com |
8e0ec5c953585aa962691f0bce2d260c8e78caa8 | 11c036911cf893325199d9e9a91a11cd1dca7c90 | /all-paths-from-source-to-target/solution.py | 1fd9a15570b8173bfb5bd501c9d9b6d36d73959b | [] | no_license | arpiagar/HackerEarth | 34f817f69e94d88657c1d8991a55aca302cdc890 | 4a94f1b11a353ab6b2837a1ac77bfbd7c91f91d2 | refs/heads/master | 2021-07-18T14:23:05.124943 | 2021-02-09T21:58:12 | 2021-02-09T21:58:12 | 19,204,412 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 640 | py | #https://leetcode.com/problems/all-paths-from-source-to-target/submissions/
class Solution:
def allPathsSourceTarget(self, graph: List[List[int]]) -> List[List[int]]:
adj_map ={}
for i in range(len(graph)):
adj_map[i] = graph[i]
start = 0
out = []
self.findpath(... | [
"arpit.agarwal@booking.com"
] | arpit.agarwal@booking.com |
f5851fc68cb29cd1cb3ca9369270cfd34a758271 | cf8f584ef11bfedea59b41476638520c9ae66c70 | /initial_project/selector_dt.py | 1e32ba75cccd5f1e0af331dd2bcaf77909e0d709 | [] | no_license | GustavoAC/machine_learning | 11f19d751dac0c05c761baf78b166916f6123b29 | 2afce182540363d05174b6c7b85cebd8c538160c | refs/heads/master | 2020-04-02T03:27:56.010486 | 2018-12-05T23:04:45 | 2018-12-05T23:04:45 | 153,967,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,114 | py | import pandas as pd
import numpy as np
from sklearn.tree import DecisionTreeClassifier
train_set = pd.read_csv('./dados/optdigits.tra', header = None)
test_set = pd.read_csv('./dados/optdigits.tes', header = None)
base_corr = train_set.corr()[64]
filter = [1 if np.abs(corr) > 0.1 else 0 for corr in base_corr]
print "... | [
"guga.a.carvalho@gmail.com"
] | guga.a.carvalho@gmail.com |
2f529daab804ec0cba2e66c17c9fb00762f77f1f | 0fccee4c738449f5e0a8f52ea5acabf51db0e910 | /genfragments/ThirteenTeV/MSSM_HiggsToMuMu/fragment_mhmodp_MA110_tb14_ggA.py | c41e893213325a4ae34cac52e2ac1bfb82a44725 | [] | no_license | cms-sw/genproductions | f308ffaf3586c19b29853db40e6d662e937940ff | dd3d3a3826343d4f75ec36b4662b6e9ff1f270f4 | refs/heads/master | 2023-08-30T17:26:02.581596 | 2023-08-29T14:53:43 | 2023-08-29T14:53:43 | 11,424,867 | 69 | 987 | null | 2023-09-14T12:41:28 | 2013-07-15T14:18:33 | Python | UTF-8 | Python | false | false | 16,290 | py | COM_ENERGY = 13000.0 # GeV
CROSS_SECTION = 1 # pb
PROCESS = 'HiggsBSM:gg2A3 = on'
SLHA_TABLE = """BLOCK SPINFO
1 FeynHiggs
2 2.12.0
2 built on ott 13, 2016
BLOCK MODSEL
1 0 # Model
2 1 # GridPts
3 0 # Content
... | [
"pietro.vischia@gmail.com"
] | pietro.vischia@gmail.com |
6416ddb447a7ceb30781bc3de024bd452393023a | 12c15c7ae150acaf8032f444db24440da2234b1a | /ArtificialIntelligence/DOCUMENTATION/Project2_Jimut/valueIterationAgents.py | 84b978c8e5c524d6638932a24ece1a152f975751 | [] | no_license | Jimut123/rkmveri-labs | 315ecd4607af72dd0851489e427a3ab09a8009ff | be19a453ea32460c454e3443798e3d8954fb084b | refs/heads/master | 2023-02-02T17:11:23.641187 | 2020-12-13T18:35:20 | 2020-12-13T18:35:20 | 201,784,550 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,614 | py | # valueIterationAgents.py
# -----------------------
# Licensing Information: You are free to use or extend these projects for
# educational purposes provided that (1) you do not distribute or publish
# solutions, (2) you retain this notice, and (3) you provide clear
# attribution to UC Berkeley, including a link to ht... | [
"jimutbahanpal@yahoo.com"
] | jimutbahanpal@yahoo.com |
43caf1de2da7fac86bcfdb234a60cee558ff0e0a | 7d23056a789ded9ff2b9e14f9c57e59295cdfd6d | /samples/src/com/zoho/crm/api/initializer/init.py | e6722a40d14a4971a467de5fc2f5fd8877382104 | [] | no_license | L1nuxFNC/zohocrm-python-sdk | 2e825fe4d7c6fb1374a5747cbd1e39b0dd4b706d | bba7328de07b137d2cb6e2aac31b8f57e0803026 | refs/heads/master | 2023-06-05T09:17:35.549980 | 2021-05-13T12:45:59 | 2021-05-13T12:45:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,893 | py | from zcrmsdk.src.com.zoho.crm.api.user_signature import UserSignature
from zcrmsdk.src.com.zoho.crm.api.dc import INDataCenter, USDataCenter, EUDataCenter, CNDataCenter, AUDataCenter
from zcrmsdk.src.com.zoho.api.authenticator.store import DBStore, FileStore
from zcrmsdk.src.com.zoho.api.logger import Logger
from zcrms... | [
"aswinkumar.m@zohocorp.com"
] | aswinkumar.m@zohocorp.com |
51c541e3289874f889b9d1f896171b0f5fc4aec5 | f67dd0bb606116e8200f8d9fa8239066b0f654d1 | /reports/urls.py | 4d2ff1e74f51b5b7b365f069b03474c5f9fde532 | [] | no_license | shireenrao/dj-visualizations | 4e2b470ae91da34a231e017c83a1328bd62ca0f4 | dea897c9eb9001e1db25876af8be757727b250fb | refs/heads/main | 2023-07-10T23:21:32.607136 | 2021-08-13T15:50:07 | 2021-08-13T15:50:07 | 394,478,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | from django.urls import path
from .views import ReportListView # noqa
from .views import UploadTemplateView # isort:skip
from .views import ( # isort:skip
ReportDetailView,
create_report_view,
csv_upload_view,
render_pdf_view,
)
app_name = "reports"
urlpatterns = [
path("", ReportListView.as_... | [
"shireenrao@gmail.com"
] | shireenrao@gmail.com |
804de891ad05b152cc545105549807dc0a719ebe | 9821fd0d137205ca3433c8d7563533a6adaa616d | /scrap kraken/box_making.py | e2a9e7c3d2e471e68da70183ba30c1b125aef545 | [] | no_license | Kraji/cryptoscience | 885c021a137971037412e216268970568f059e6a | 840c3335732c238f5961f536e98cf14a03a5cf0c | refs/heads/master | 2020-03-17T13:33:09.215443 | 2018-05-16T14:40:24 | 2018-05-16T14:40:24 | 133,636,175 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,114 | py | import numpy as np
import pandas as pd
# data_input: price, volume, time
def box_making(data_input, delta_t, initial_time,final_time):
dataShape = data_input.shape
(nRows, nCols)= dataShape
nb_data=nRows
price=data_input[:,0]
volume=data_input[:,1]
time=data_input[:,2]
if initial_time... | [
"krajenbrink.alexandre@hotmail.fr"
] | krajenbrink.alexandre@hotmail.fr |
8d2aae07189384c340c69ca3809b9dc1deba887b | b1e56ddec89316ff9dadd76ac80c8edc03338cfe | /pyearthquake/orchestrator/explorer.py | 0ae531a31147780e78c796a790af6831fe5ac70d | [
"Apache-2.0"
] | permissive | saeki-masaki/earthquake | ac118bdd8f4fd87216c069ca6fc7eb19ce2c12ec | 783e5ddea9edafa5cda3413690d9e1e2d25f9004 | refs/heads/master | 2021-01-21T07:19:41.835103 | 2015-06-16T08:42:58 | 2015-06-16T08:42:58 | 37,563,761 | 0 | 0 | null | 2015-06-17T00:41:16 | 2015-06-17T00:41:15 | null | UTF-8 | Python | false | false | 13,215 | py | ## FIXME: remove unused imports
from abc import ABCMeta, abstractmethod
import colorama
import copy
import eventlet
from eventlet.greenthread import sleep
from eventlet.semaphore import Semaphore
from eventlet.timeout import Timeout
from eventlet.queue import *
from greenlet import GreenletExit
import networkx as nx
im... | [
"suda.akihiro@lab.ntt.co.jp"
] | suda.akihiro@lab.ntt.co.jp |
5ed3bb65b560b99cfec6e558df1a9d101f8a2b02 | f5e4622951047792c630d22d5df3c511b3032f10 | /longest_consec_rep/main.py | 677583b9ef2279dba646532f722087c0e4fd9514 | [] | no_license | luke-iseger91/codewars | 26d439a1c18d9c2b09dbfb0ef262b29026aef970 | aa6b3bbc3cd87a83fbc773a967497be2fd88795e | refs/heads/master | 2022-12-27T09:38:01.683125 | 2020-10-13T15:36:05 | 2020-10-13T15:36:05 | 296,088,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,262 | py | # https://www.codewars.com/kata/586d6cefbcc21eed7a001155
# For a given string s find the character c (or C) with longest consecutive repetition and return:
# (c,l)
# where l (or L) is the length of the repetition. If there are two or more characters with the same l return the first in order of appearance.
# For empty ... | [
"luke.iseger@gmail.com"
] | luke.iseger@gmail.com |
b3023f6b673630ce35cb11a46be80d68f7356735 | 366559554e952e966df8bd4e5b53aec71a0bef97 | /tools/configen/tests/test_modules/expected/IncompatibleDataclassArg.py | a2c579064ae77c4369491cae041bf984154092e1 | [
"MIT"
] | permissive | roopeshvs/hydra | 501ac5cdb4d8e1bc59593df45afd5469ad5277d7 | 40ca449f266faa355a061caa0804e4248cfb1b57 | refs/heads/master | 2022-12-09T15:43:09.085401 | 2020-09-05T20:30:02 | 2020-09-05T20:30:02 | 293,149,009 | 1 | 0 | MIT | 2020-09-05T20:25:34 | 2020-09-05T20:25:33 | null | UTF-8 | Python | false | false | 496 | py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
# Generated by configen, do not edit.
# See https://github.com/facebookresearch/hydra/tree/master/tools/configen
# fmt: off
# isort:skip_file
# flake8: noqa
from dataclasses import dataclass
from typing import *
from omegaconf import MISSING
@da... | [
"omry@fb.com"
] | omry@fb.com |
72ba22a91588bf1a22d08ecacb33ec336da6f0d5 | 78d35bb7876a3460d4398e1cb3554b06e36c720a | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_12_01/operations/_vpn_server_configurations_operations.py | c68e670e8370ac82125f9b7a40a73e128c19f475 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | catchsrinivas/azure-sdk-for-python | e35f59b60318a31b3c940a7a3a07b61b28118aa5 | 596227a7738a5342274486e30489239d539b11d1 | refs/heads/main | 2023-08-27T09:08:07.986249 | 2021-11-11T11:13:35 | 2021-11-11T11:13:35 | 427,045,896 | 0 | 0 | MIT | 2021-11-11T15:14:31 | 2021-11-11T15:14:31 | null | UTF-8 | Python | false | false | 28,466 | py | # 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) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | catchsrinivas.noreply@github.com |
2c2642dbd3465024601d3957e2907b92c2db2440 | 102a652a37a5e2c302ddebee6daa10a5d543a9fd | /store/migrations/0002_auto_20210706_1519.py | 17c0a79cfe357e3d640a7c8a365bbeb64feac8e3 | [] | no_license | HDD10/Disquaire | bce93ba5fa21c87cbd396b1764b9fe185b955b01 | 5e1c19b078ae13bc01b3e7717dee78a188b9bc5a | refs/heads/main | 2023-06-14T20:44:37.650810 | 2021-07-12T23:44:30 | 2021-07-12T23:44:30 | 385,329,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | # Generated by Django 3.2.5 on 2021-07-06 15:19
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('store', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='album',
... | [
"hind.dekkan69@gmail.com"
] | hind.dekkan69@gmail.com |
6f81affffa39caa8ed5014aac07748adbc99c9c7 | fbea9961a5695e94d2532de3f1b70213131fe64b | /chap3/23.py | 8c409ef0fc5abfd3e0a9d340f0509599c7474b08 | [] | no_license | lethe2211/nlp100 | 094a528cf028060ce6294033f026cb740f0c853c | 547fdc83181a8e6811f946b5f56088c2e45f2ead | refs/heads/master | 2021-01-17T07:25:31.176173 | 2015-06-27T04:57:34 | 2015-06-27T04:57:34 | 35,734,702 | 19 | 3 | null | null | null | null | UTF-8 | Python | false | false | 645 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import itertools
import math
from collections import Counter, defaultdict
from jawiki_country_parser import JawikiCountryParser
import re
class Main(object):
def __init__(self):
pass
def solve(self):
'''
insert y... | [
"lethe2211@gmail.com"
] | lethe2211@gmail.com |
72e25a0371a3c9db8c9caba9cd141fe4cfcf5b8f | 2298f68bf08f31a57637f0bbb3014d2ac6c1b602 | /BasicPython/First_codes/While.py | a9b32e5156e6b3bedc295a748f8a3c7426d40a31 | [] | no_license | manelmengibar/EDX_Python_Codes | 5d6c793d2a229f49053f96367b40d1f9d44c0640 | 00d1f1a42dc216e82a238c98cef5dc716a380a36 | refs/heads/master | 2022-09-03T14:42:30.645837 | 2020-05-28T16:21:38 | 2020-05-28T16:21:38 | 264,144,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py |
#le pedimos al usuario que introduzca un número
m = input("write a number\n")
#convertimos el valor introducido a integer
n = int(m)
#hacemos una cuenta atrás desde el valor introducido hasta llegar a 0
while n > 0:
print (n)
n = n - 1
#Una vez el valor es igual a 0 se muesra en terminal lo siguiente:
pr... | [
"manelmengibar@gmail.com"
] | manelmengibar@gmail.com |
dd6398e4756bc1d70633d09a2c01a4591bf45d5a | dc99d95671170444cd7bf02e37da6ecda4a5f19e | /apps/courses/forms.py | 7c3607216ee4eed7c75516ebceebca0b96f618d5 | [] | no_license | bbright3493/python_real_war | 734d49ed9f7e1800d24dc754424a07b69d7d8c1f | 6e43bb7d814920222f3310bd6fd9f04cb3d5bbf1 | refs/heads/master | 2020-03-30T06:08:40.249185 | 2018-10-22T07:33:41 | 2018-10-22T07:33:41 | 150,841,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 18-5-7 上午10:05
# @Author : Ztsong
from django import forms
from .models import ProgramUpload
#
# class ProgramUploadForm(forms.ModelForm):
# class Meta:
# model = ProgramUpload
# fields = ['image']
class ProgramUploadForm(forms.Form):
... | [
"44704708@qq.com"
] | 44704708@qq.com |
1a1db6be65849e768485d90464d7ed25487e7256 | 30ecc6a26f736814151f54aa15d0170ea94c8ea1 | /Main.py | 88b87017b568084aa5d690b3394bbc7a75fad508 | [] | no_license | skyyeat/Intonation-Hero | 1112017c988f47b3ee5a5739901799528a63a526 | 6868fb25924a4a2d1f66fd19f18b49e279505b5f | refs/heads/master | 2020-03-26T15:58:36.577854 | 2018-12-03T02:01:04 | 2018-12-03T02:01:04 | 145,074,876 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,206 | py | from Mic import*
from Scene import*
class game (threading.Thread):
def __init__(self):
threading.Thread.__init__(self)
self.freq = 0.0
def run(self):
pygame.init()
screen = pygame.display.set_mode(DISPLAY, FLAGS, DEPTH)
Treble = pygame.image.load('Treble.pn... | [
"noreply@github.com"
] | skyyeat.noreply@github.com |
ec626fcce05227e389111ecdb0c34538cbe6e418 | 0090756d7a6eb6ab8389ad23b20e89cd68dbd0e4 | /배열insert.py | b895832beb6bb14ce872d0f5f7be1610194d477c | [] | no_license | ssh6189/2019.12.16 | 5c3093e03ac793d5f0a93cf99e78c6483fcee6d8 | c1021bb72b3fdc05d7f5e8ae350bbd6eee65b0d3 | refs/heads/master | 2020-12-13T19:19:04.558270 | 2020-01-17T08:47:04 | 2020-01-17T08:47:04 | 234,507,219 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | import numpy as np
a = np.arange(1, 10).reshape(3,3)
print(a)
#a 배열을 일차원 ㅐ열로 변환하고 1번 index에 99추가
np.insert(a, 1, 999)
#a배열의 axis 0방향 1번 인덱스에 추가
#인덱스가 1인 row에 999가 추가됨
np.insert(a, 1, 999, axis=0)
#a배열의 axis 1방향 1번 인덱스에 추가
#index가 1인 column에 999가 추가됨
np.insert(a, 1, 999, axis=1)
| [
"ssh6189@naver.com"
] | ssh6189@naver.com |
2dd51e433b8b72c118cd5ab02697d1acc729de11 | c7979f4f6435fe8d0d07fff7a430da55e3592aed | /AGC023/A2.py | 1cc626666ce7eb2d39610edc6e55643e3ba653a1 | [] | no_license | banboooo044/AtCoder | cee87d40bb98abafde19017f4f4e2f984544b9f8 | 7541d521cf0da848ecb5eb10ffea7d75a44cbbb6 | refs/heads/master | 2020-04-14T11:35:24.977457 | 2019-09-17T03:20:27 | 2019-09-17T03:20:27 | 163,818,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 75 | py | N = int(input())
A = list(map(int,input().split(" ")))
for i in range(N):
| [
"touhoucrisis7@gmail.com"
] | touhoucrisis7@gmail.com |
739903e438fef6c28869523b51671b9c9be9a949 | d7242e07cc79aa7a5e32a376de7e5a9d5f294cf7 | /0x03-python-data_structures/5-no_c.py | c34d3e30b9b1202e8354dcff72dd82e10e9e070c | [] | no_license | Jfprado11/holbertonschool-higher_level_programming | 87d921290b43202cc8507d898444df9455138d0f | f277a5ecd4dd349d94d9a26542cf9eca23f92fad | refs/heads/main | 2023-07-28T20:30:24.632598 | 2021-09-22T21:32:32 | 2021-09-22T21:32:32 | 361,762,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | #!/usr/bin/python3
def no_c(my_string):
count_lower_C = my_string.count("c")
count_upper_C = my_string.count("C")
if count_lower_C > 0:
my_string = list(my_string)
while count_lower_C:
my_string.remove("c")
count_lower_C -= 1
my_string = "" .join(my_string)
... | [
"jfpc11@misena.edu.co"
] | jfpc11@misena.edu.co |
6575dc9dbea13d6c4f884545b37ecae27ae02705 | 55f4dd7e511299a11c781c38e705e511425806d9 | /blog/migrations/0013_post_cost.py | 45c2fd5551e35daf997e9c4e4ee22a1742e03c53 | [] | no_license | MemexVUB/studenteats | 4025ebf3078826865850cfd3bb49a0f61683c406 | 10048d169bbbba6219a59a328e404064ddacdd77 | refs/heads/master | 2022-08-31T10:59:33.772886 | 2020-05-22T12:10:21 | 2020-05-22T12:10:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | # Generated by Django 3.0 on 2019-12-16 23:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0012_post_rating'),
]
operations = [
migrations.AddField(
model_name='post',
name='cost',
field=mo... | [
"57940767+killerz224@users.noreply.github.com"
] | 57940767+killerz224@users.noreply.github.com |
71ce738fc5b5a9df210c2e09bd532eeef0ec0612 | 7ea62e8309509b6c47fe9e28bdd5fe3eedd15ce1 | /sitioSGAE/manage.py | 7522e456dcc4f9b9800a6f6a26b59c8a4f094d5d | [] | no_license | dard/SGAE | 4b934bc7966c4308f1b70fd82a69366a56e35733 | e05c8ef44b09eefe0a5f905eb2f03752ea3c192c | refs/heads/master | 2023-07-16T04:14:44.989262 | 2021-08-27T19:20:54 | 2021-08-27T19:20:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'sitioSGAE.settings')
try:
from django.core.management import execute_from_command_line
except Im... | [
"eloydardo@gmail.com"
] | eloydardo@gmail.com |
a1dcbd819e23f9d97da27c733de1252c3186f37b | b562b6bd4ac7c55d0a3f7e8b0c494bd27c0ed1ec | /training/__init__.py | d7bc3add80997d7b8385767c51cc624613e9a7da | [
"Apache-2.0"
] | permissive | ik-park/ml-agents-hyperparams | 7b1821fd1fe806744a4ec8a7d6340dcad4af6112 | 9cde275f4bec01f004a98b83322133d16fabc23f | refs/heads/master | 2022-02-26T20:44:46.176847 | 2019-08-04T11:57:54 | 2019-08-04T11:57:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | from .trainer_controller import *
from .training_data import *
from .training_event import *
from .runner import * | [
"hello@baske.com"
] | hello@baske.com |
e600e79c9fc504e5f183372ad97999fdea844994 | 1bc3b85020260fbcd8b6f3978a9f5e7cca9ff01c | /project4/inference.py | 864aac51dce62255c7dbf7ec60c4e30a6fe5a216 | [] | no_license | lavenderxy/Pacman_AI_Python | f655ddc12afbec31788e92c31500630d332cd256 | 980961b23ecf8f7c3a7a10a952cc4fd8650ec8b7 | refs/heads/master | 2020-04-06T05:45:38.849526 | 2015-01-19T05:50:30 | 2015-01-19T05:50:30 | 29,455,076 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 22,525 | py | # inference.py
# ------------
# Licensing Information: Please do not distribute or publish solutions to this
# project. You are free to use and extend these projects for educational
# purposes. The Pacman AI projects were developed at UC Berkeley, primarily by
# John DeNero (denero@cs.berkeley.edu) and Dan Klein (klein... | [
"xinyu.yan1008@gmail.com"
] | xinyu.yan1008@gmail.com |
c65bde98d3e0942873c39c992230006faaff86b4 | 29e5717d4c18819eba7a835e68cec047cdf0361f | /pnnl/EconomizerRCxAgent/economizer/diagnostics/economizer_dx.py | 42d2deb0307cd52546cc8dd93de48adc679bd230 | [] | no_license | heliazandi/volttron-applications | 679969883bbe2c841986b0194d2cdf13c6a23d5a | 98f68a834e967b514af8d78fa86a5e7894d27ab5 | refs/heads/master | 2021-01-23T10:30:09.882360 | 2018-02-12T16:18:29 | 2018-02-12T16:18:29 | 93,069,041 | 1 | 1 | null | 2017-06-01T14:57:15 | 2017-06-01T14:57:15 | null | UTF-8 | Python | false | false | 15,942 | py | '''
Copyright (c) 2016, Battelle Memorial Institute
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of cond... | [
"robert.lutes@pnnl.gov"
] | robert.lutes@pnnl.gov |
11efba1ae3661c89193e56bf23e8ad669d33ab17 | f468922ed9484d2a8036cf2adedcb85b49473ee2 | /classifier_utils.py | 4fd7cd24b3955d06459ab9ebc0ab971996618efd | [
"Apache-2.0"
] | permissive | mizterbas/chemprotnew | 9e7102dc28b6ba13cfc389a50cc100a3943e6f39 | 78c6f913a91594349039c57d82d972d4dadddd86 | refs/heads/main | 2022-12-31T03:24:35.140745 | 2020-10-16T15:54:39 | 2020-10-16T15:54:39 | 304,673,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37,867 | py | # coding=utf-8
# Copyright 2018 The Google AI Team 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 applicabl... | [
"noreply@github.com"
] | mizterbas.noreply@github.com |
44685fe6f9efa4068a850e9767859e5f04694261 | 1564d12d61f669ce9f772f3ef7563167f7fe13bf | /codeforces/606/B.MakeThemOdd.py | 9c2d937efa9b206dced25914e93f323bacc2266a | [] | no_license | sakshamk6999/codingPractice | 73ec4873defb0f0d2e47173150a589ee12e5e0a1 | f727aac6d87448b19fc9d48660dc6978fe5edc14 | refs/heads/master | 2020-12-01T20:22:36.299535 | 2020-02-04T05:55:53 | 2020-02-04T05:55:53 | 230,757,937 | 0 | 0 | null | 2020-02-12T20:38:12 | 2019-12-29T14:00:22 | Python | UTF-8 | Python | false | false | 849 | py | from collections import defaultdict
import heapq
for _ in range(int(input())):
n = int(input())
rec = {}
rec = defaultdict(lambda : 0, rec)
a = sorted(list(map(int, input().split())))
e = []
l = 0
for i in a:
if i % 2 == 0 and rec[-1 * i] == 0:
e.append(-1 * i)
... | [
"sakshamkhatwani@gmail.com"
] | sakshamkhatwani@gmail.com |
2e3f4ff25ef42365bc0e0fb650aeacf29131316a | c21e238ba538b6d6084eebe8482c6a12355c3cac | /PycharmProjects/python-study/for/for-if-test.py | 61167fe50b470383bef0af5718a9327c7a2e92c0 | [] | no_license | jiyiyun/programing | 6ac0ad1d3050767e619d07ce6aea1f8f9305a503 | a85ae0ef1808c355df0d0c45472f4116b9db84ff | refs/heads/master | 2021-01-14T08:04:07.453615 | 2019-01-02T07:35:51 | 2019-01-02T07:35:51 | 81,915,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | #!/usr/bin/env python
a = int(raw_input("please the number of people\n"))
b=range(a+1)
while len(b) > 3:
b = b[::3]
if len(b)<3:
print b
break | [
"jiyiyun@gmail.com"
] | jiyiyun@gmail.com |
ce239e64d17fae9f37a851aa52a0294d745dd66e | 12b9f93bbb88cc7ba7be8d1a350d38e94339b5d4 | /Python-Chapter 7-quadratic75.py | 80d0b52fe2910b2a7b102a03910642c56c5a33d0 | [] | no_license | Rmahesh7/Python-Beginner-practice | 72280e37feb1a6e29baf4d787fba9b6c6d43f712 | d6082ec192c553aa8d4b2a76105a8632221eff8e | refs/heads/main | 2023-08-28T16:05:07.085048 | 2021-10-29T12:48:31 | 2021-10-29T12:48:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 572 | py | # quadratic75.py
import math # Makes the math library available.
def quadratic75():
print ("This program finds the real solutions to a quadractic.\n")
try:
a = float(input("Enter coefficient a: "))
b = float(input("Enter coefficient b: "))
c = float(input("Enter coefficient c: "))
... | [
"noreply@github.com"
] | Rmahesh7.noreply@github.com |
b216afaf441625a2413426f3a80c058f619f1924 | df1c29396006adca68841ecc5ac31082b9f9931a | /fet/tools/decorators.py | 76f632e8cb7dc9dc2c2b37c5dd83b17301f05af0 | [] | no_license | cangmean/fet | b7b6f960600f203958f567b925ae68221fe3032f | 10d5eb9f8d630b619c60e077061ef139643f73ec | refs/heads/master | 2021-07-07T00:36:27.210738 | 2020-07-19T08:19:41 | 2020-07-19T08:19:41 | 143,129,703 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,884 | py | # coding=utf-8
import hashlib
from functools import wraps
from flask import current_app
from flask import jsonify
from flask import request
InvalidSignature = 'InvalidSignature'
ServerError = 'ServerError'
InvalidIPAddress = 'InvalidIPAddress'
NotFoundAuthApp = 'NotFoundAuthApp'
def get_ip():
return request.he... | [
"changmin.jin@17zuoye.comm"
] | changmin.jin@17zuoye.comm |
e1cf41c5f7676c0a10f1bf2efbd1e6552ba57b1d | ce30e80439f841fd7869399ca1ba726fe778fe6c | /qt.py | 6c9d20c5b1bc5720f5c6ec104881761ac5cc2a52 | [] | no_license | oleglite/giis | d04edba7a66ae6ee8c92c9723a9453eee1ff5a10 | f48bc0466c2d79a6419d3af89094159faa3927de | refs/heads/master | 2016-08-06T00:36:11.280065 | 2013-12-23T10:18:36 | 2013-12-23T10:18:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | try:
from PySide.QtCore import *
from PySide.QtGui import *
except ImportError:
from PyQt4.QtCore import *
from PyQt4.QtGui import * | [
"beloglazov.oleg@gmail.com"
] | beloglazov.oleg@gmail.com |
63c42c8252a987d933a0cdd969dd663b8fa82454 | eaab7d4250f7987394361231cf2ceebe264c5ebf | /lazy_client_core/tests/__init__.py | ca58ee6535220445e0707d63d8c892e6986943c1 | [] | no_license | stevezau/lazy_client | 118eebc78a75753e23a781e97941a2de52001999 | 31d85a0cc3beb3aa5297a49b9a0ef69fd48bd1d6 | refs/heads/master | 2021-01-17T15:09:54.771174 | 2017-05-14T11:57:27 | 2017-05-14T11:57:27 | 14,830,114 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46 | py | from lazy_client_core.tests.downloads import * | [
"stevezau@gmail.com"
] | stevezau@gmail.com |
b10e77388a81a9751481c8cd18a9bd1d71383946 | b869ab00a927fb8f99f07940903370291923009a | /Project/gatt-server/venv/bin/pip | 367da5666e67185ebdf6b8c480d378c7eda825a0 | [] | no_license | MBillemaz/Ynov-IoT-Training | 11e9ed7af25b15b0cbd4b051700fb3f94eb8fa00 | f0c1fd8a94e1f69cd8aa9b9e38b41ba199e14ad1 | refs/heads/master | 2020-04-27T16:56:48.970749 | 2019-05-14T20:56:10 | 2019-05-14T20:56:10 | 174,498,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | #!/home/pi/bluetoothServer/bluez-5.43/test/venv/bin/python2
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"maxime.bill@hotmail.fr"
] | maxime.bill@hotmail.fr | |
39e6f93c12b8f033a74d722711c03e7cdeda73f8 | e5df6f614800210137a18312a248cf55d6c14c63 | /hw2/eval.py | 8b2b25c4a48f2360a48a2a9e04801d55d96871a2 | [] | no_license | gdoggg2032/ADL2016 | ae402ea88f61a1c76a08164dc45ad3dac1281025 | fb40f83ae201ce12350c7ec965dc37c94a931628 | refs/heads/master | 2022-11-04T16:46:08.824116 | 2016-12-28T11:42:14 | 2016-12-28T11:42:14 | 70,919,131 | 0 | 1 | null | 2022-10-20T13:52:55 | 2016-10-14T14:44:53 | Python | UTF-8 | Python | false | false | 3,491 | py | #! /usr/bin/env python
import tensorflow as tf
import numpy as np
import os
import time
import datetime
import data_helpers
from text_cnn import TextCNN
from tensorflow.contrib import learn
import sys
# Parameters
# ==================================================
# Eval Parameters
tf.flags.DEFINE_integer("batch_s... | [
"gdoggg2032@gmail.com"
] | gdoggg2032@gmail.com |
0d00be6ffa67dcb44dadf1e7fb59c96d3cefdc76 | dabc9c7ec7cce125a12c6243ff67fd91e620d636 | /tap/tests/test_pytest_plugin.py | c91e8b40631e9c79c21ada77df44a0db95c9ba65 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | Mark-E-Hamilton/tappy | 7634209c2862c9e837b58602d4b59636fd9a8e89 | 62c1a4ef1d9e724d3c7bbb31361c17c3bf071d04 | refs/heads/master | 2021-01-15T09:04:09.813683 | 2016-03-21T04:51:45 | 2016-03-21T04:51:45 | 53,630,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,332 | py | # Copyright (c) 2016, Matt Layman
try:
from unittest import mock
except ImportError:
import mock
import tempfile
from tap.plugins import _pytest
from tap.tests import TestCase
from tap.tracker import Tracker
class TestPytestPlugin(TestCase):
def setUp(self):
"""The pytest plugin uses module sco... | [
"matthewlayman@gmail.com"
] | matthewlayman@gmail.com |
3e24d2a7f20ab61e3e2fb2c5f3ee18a374a5c133 | acafefde785283830e1bfdbf385350d6d9c0dc47 | /read_dicom.py | 7553ed9659367194ded84ce18142f815e48e2e3d | [] | no_license | trevallion/MedicalImaging | 784a9fbba2e5cdf4172c302b1009def8c08a22ba | 3f4c2a25edaf01fdceb8b38338c208ca69c47367 | refs/heads/master | 2022-11-23T04:13:03.080193 | 2020-07-23T19:05:49 | 2020-07-23T19:05:49 | 280,210,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,227 | py | import matplotlib.pyplot as plt
import pydicom
from pydicom.data import get_testdata_files
def get_data():
files = get_testdata_files('CT_small.dcm')
print(__doc__)
filename = get_testdata_files('CT_small.dcm')[0]
dataset = pydicom.dcmread(filename)
# Normal mode:
print()
print("Filename.........:", ... | [
"896510+trevallion@users.noreply.github.com"
] | 896510+trevallion@users.noreply.github.com |
e36cba2db79f18ed6432af22f03c4f53dd4f61b1 | 2dfbb97b47fd467f29ffb26faf9a9f6f117abeee | /leetcode/242.py | 0b7a2589d14a456369352fe3820fb247d6675b0b | [] | no_license | liuweilin17/algorithm | 0e04b2d36dfb6b7b1b0e0425daf69b62273c54b5 | d3e8669f932fc2e22711e8b7590d3365d020e189 | refs/heads/master | 2020-12-30T11:03:40.085105 | 2020-04-10T03:46:01 | 2020-04-10T03:46:01 | 98,844,919 | 3 | 1 | null | 2018-10-05T03:01:02 | 2017-07-31T03:35:14 | C++ | UTF-8 | Python | false | false | 1,014 | py | ###########################################
# Let's Have Some Fun
# File Name: 242.py
# Author: Weilin Liu
# Mail: liuweilin17@qq.com
# Created Time: Fri Oct 19 00:40:47 2018
###########################################
#coding=utf-8
#!/usr/bin/python
# valid anagram
class Solution(object):
def isAnagram(self, s, ... | [
"liuweilin17@qq.com"
] | liuweilin17@qq.com |
818b20ac454ef8f772d87fb729b7474c68a5f9a6 | d024ccbb4cc04af3866a4db1ac1d8c1d7395d909 | /boj/1152.py | 8af0d3fc1c7b3184f1a6c89454aee7a18af2623a | [] | no_license | demetoir/ps-solved-code | ff0418dddd10f3b053c9b8d32af48027b10c8481 | f4d4fd2183176b083f2287c9d89c6d5a1e983cc5 | refs/heads/master | 2022-10-14T20:11:34.581439 | 2020-06-12T11:24:11 | 2020-06-12T11:24:11 | 68,782,768 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45 | py | print(len(list(map(str,input().split())))) | [
"wnsqlehlswk@gmail.com"
] | wnsqlehlswk@gmail.com |
7eacb9ca621e2a660599a473bfdbc1136d01a7a6 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_1/bbbeebun/codejam_01.py | 7a489d790a6fd40192e6c72e498da86daa2ff2b1 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 1,308 | py | def has_completed(mapping):
count = 0
for key in mapping:
count += mapping[key]
if count == 10:
return True
else:
return False
def update_mapping(current_n, mapping):
current_n_str = str(current_n)
for each in current_n_str:
if mapping[each] == 0:
mapping[each] = 1
def counting_sheep(n):
if n ==... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
f4b6779132fd1af173eb1ef6f7c5386930b2ff3b | 5f16e048917fe818b31d1bc424d178f8207378f0 | /File_handling/Series.py | 613281f492bff0c3e1ffed8da40d6e91ae718615 | [] | no_license | gan3i/Python_first | 71c8a30d2c8f1d21c9e64a633da0a6ef9fcbc6fa | d184e234694eb6724bc511afcfcbb4929ee4513f | refs/heads/master | 2021-06-06T23:52:55.691179 | 2021-05-28T08:28:57 | 2021-05-28T08:28:57 | 151,419,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | """ read annd print an integer series ."""
import sys
from pprint import pprint
def read_series(filename):
# try:
# f=open(filename,mode="rt",encoding="UTF-8")
# return[int(line.strip()) for line in f]
# # series=[]
# # for line in f:
# # a=int(line.strip())
# ... | [
"gnageshappa@aptean.com"
] | gnageshappa@aptean.com |
78be71c2e11ed6ee6f456a9a4c355cca5f58a026 | dfcadafb9b7aee820a6eebba7b67dc31c0cabda5 | /codeforces/1430/B.py | 0d937ff0e42b1fc8691e34097975a3f909c41fcc | [] | no_license | sainad2222/my_cp_codes | 0b631872e96ff84897dd498caf4a6ed5ba4f9c15 | 4621a2b6d80ea5dc36401481bba58096192e0822 | refs/heads/master | 2023-02-15T20:42:03.524179 | 2021-01-12T09:14:00 | 2021-01-15T07:45:41 | 324,394,919 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | for _ in range(int(input())):
n, k = map(int, input().split())
lis = list(map(int,input().split()))
lis.sort()
ans = lis[-1]
if n == 1:
print(lis[0])
i = n - 2
while k > 0 and i >= 0:
ans += lis[i]
i -= 1
k -= 1
print(ans) | [
""
] | |
e80955484513ccba86db2848360993c199ec20c9 | 00d49fd00fbe561c4e1a1b91c49a2883735656c2 | /TwoStackQueue.py | a5b6f4f47110a178ee3fc1a460ff76f994a985c0 | [] | no_license | zhuyanlong/SwordOffer | 65754becac490aa55a694a957b58329adccf3178 | 807e9a0ad1676f53a6ce7d862ec6591428194d5e | refs/heads/master | 2022-12-07T16:05:17.309975 | 2020-08-26T05:53:25 | 2020-08-26T05:53:25 | 289,850,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 818 | py | # https://www.nowcoder.com/practice/54275ddae22f475981afa2244dd448c6?tpId=13&&tqId=11158&rp=1&ru=/ta/coding-interviews&qru=/ta/coding-interviews/question-ranking
# -*- coding:utf-8 -*-
class Solution:
def __init__(self):
self.stack1=[]
self.stack2=[]
def push(self, node):
# writ... | [
"noreply@github.com"
] | zhuyanlong.noreply@github.com |
175fc28b8579856f45012ee0fc0cb42a65e8bce4 | 1258a24298c0ade60ee450a3575d8a49f5e5fbb6 | /Write Better Python/buggylogs.py | 26e72106302b3a1033fc8b08e3382e301e5fde86 | [] | no_license | chrisbeldam/TreeHouse-Python | 3abc8d44e0316a385ba43c01eda29b1bd45da023 | 90c03a2df853206d37ce826279127f40002188d3 | refs/heads/master | 2020-12-30T16:28:10.704947 | 2017-06-02T08:55:55 | 2017-06-02T08:55:55 | 90,992,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 309 | py | import pdb
# logging.warning("The french have the grail")
# logging.info("info")
#Python Debugger
my_list = [5,2,1,True,"abcdefg",3,False,4]
pdb.set_trace() # Debugger - Need to remove when done
del my_list[3] # Deletes True
del my_list[3] # Deletes String
del my_list[4] # Deletes False
print(my_list)
| [
"chrisgbeldam@gmail.com"
] | chrisgbeldam@gmail.com |
c74975ed871b1946d909bc0add8a2c87c9846246 | 5bd983aeb7fb90f4d9da36f4945a9a9fb034da57 | /node_modules/fsevents/build/config.gypi | 30e1fc44dcc86fc66149f2ccd570d86b4162e1da | [
"MIT"
] | permissive | nitishtripathi/React-Native-and-Redux-Stock-Manager-App | 8b6f5503ca77b265ed7ff7d326d1157b1a0a181e | dbf0ea35446fa2394e06a5e785d2adffca11200a | refs/heads/master | 2022-12-02T19:02:24.729175 | 2020-08-11T20:22:31 | 2020-08-11T20:22:31 | 286,832,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,685 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"build_v8_with_gn": "false",
"coverage": "false",
"dcheck_al... | [
"Nitish.trp.99@gmail.com"
] | Nitish.trp.99@gmail.com |
a6ac3722c39b122f6bdc51ff3f28a3da0a5a0c0d | 3dfc4543e5d353e13f8fccf87751f6152e5f2def | /aux/py_02_extract_user_data.py | 77a8b89381e1278e0c524df2a26a7aef17f06009 | [] | no_license | NetDem-USC/training | ba2d80101a953c3b8656958ebeacfeb80d9ff98b | 272ed3e4a9f59c6d5f3a5960bf92290a4242bd18 | refs/heads/master | 2021-01-11T23:12:36.230007 | 2017-05-02T16:32:28 | 2017-05-02T16:32:28 | 78,556,382 | 9 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,597 | py | import os, json, sys, re
'''
Usage:
cd ~/Dropbox/research/Social\ Media\ and\ ICs
python code/py_02_extract_user_data.py data/user-data.csv data/icourts-hashtag-tweets.json
'''
outfile = sys.argv[1]
filename = sys.argv[2]
user_data = {}
user_list = {}
filehandle = open(filename, 'r')
for line in filehandle:
... | [
"pablo.barbera@nyu.edu"
] | pablo.barbera@nyu.edu |
23c5ebd791f99f5b57e925ce96b37c3ab4fa5892 | b28e672b151a72a913f77bc7922268f10c9ab167 | /sarsa.py | 5dd2af190074112cd5da43f9bf8e2bc539ad9243 | [
"Unlicense"
] | permissive | Sanyam07/opengym | 048ac6295e5bc07a1afdfe07b34626d7f9bad866 | ce01211296efd87ebda96366c2dc46b904243eec | refs/heads/master | 2020-12-20T03:40:39.108344 | 2019-03-31T18:31:39 | 2019-03-31T18:31:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,284 | py | # SARSA
import json
from random import random
from random import choice
import math
import functools
def cloneJSON( item ):
return json.loads(json.dumps(item))
def setReward( weights, state, action, reward ):
state = json.dumps(state)
weights[state] = {} if state not in weights else weights[state]
... | [
"anton.panchishin@gmail.com"
] | anton.panchishin@gmail.com |
e83e880b8a2c1e1ce9f33320d28ba893539c7298 | 88cd3787b1c1b1fe119b4ed8b36c8909cb1210e9 | /testapp/migrations/0005_auto_20180603_1439.py | 0dc34e0a6f48cbabdee83c702fca2ce7604a2696 | [] | no_license | NullOnSpace/MysiteInitial | 039c63cae558af893d17afe206b53d7631168091 | 068f1e44547c6015b9ae183d463c9c0465323569 | refs/heads/master | 2020-03-26T20:18:34.103920 | 2018-09-03T15:14:31 | 2018-09-03T15:14:31 | 145,316,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,056 | py | # Generated by Django 2.0.4 on 2018-06-03 14:39
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('testapp', '0004_auto_20180531_1746'),
]
operations = [
migrations.RemoveField(
model_name='main',
name='icid',
... | [
"portuguese_d029@163.com"
] | portuguese_d029@163.com |
f8745d2bb25d904e2387a7880537875bab8cf88b | 9ab43bb940e7ba41f4eaebe0b9d99fda25dbeea2 | /pythia/SimulationMods/python/IntegrationData.py | 9b4c276ea8076696e3c377a22d36fa89208507d1 | [
"Apache-2.0"
] | permissive | iamaris/CDFCodes | 6c3b09ac437bd46d7b15a3a09152a6763847abe4 | fdb7e392831b35cbcf6b685111a601aee3ecb395 | refs/heads/master | 2021-01-17T11:59:36.341561 | 2014-01-06T21:35:59 | 2014-01-06T21:35:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,424 | py | #
# A simple class to represent the blob of quantities that is accumulated
# by the cdfIntegrate program.
#
from integ_utils import removeBrackets
# The following is needed for Python 1.5.2
import string
class IntegrationData:
"""The data structure representing all the information accumulated for
a single leg"... | [
"aris@cmu.edu"
] | aris@cmu.edu |
02217b2ac522c12b51097a9f17a901690b23d965 | 0769a4f6bed83d30d8e7394397328381dd9a0cf6 | /TP1cliente_echo.py | 0558ad31dfa1ea23f3d943148aa8cdb1b81c16cf | [] | no_license | ryacyna/Lab_Redes2018 | c7533903fb4a738417b7179360617a178928e311 | 5381ca2f8331bc50f842ec2d1afc2df933262eba | refs/heads/master | 2020-04-04T12:11:55.120771 | 2018-11-13T19:55:14 | 2018-11-13T19:55:14 | 155,917,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 897 | py |
import socket
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("-p", "--port", type=int, help="Puerto del servidor")
parser.add_argument("-s", "--server", help="Nombre del servidor")
args = parser.parse_args()
enqueport = 10000
servidor = "127.0.0.1"
if args.port:
print "Conectarse ... | [
"noreply@github.com"
] | ryacyna.noreply@github.com |
d20851286ef8b0a6b8ec5ac048c1b5e6e8369f6a | 703242f8dc1e260c24635e9e72aba492720ae32b | /skulpt/test/run/t17.py | d638a8dee9bc97bf74ddb3083291e83a6f3ce01f | [
"MIT",
"Python-2.0"
] | permissive | justyn/sr-sim-js | 0db24c4394b80490ff6f901bbc533466eff2d5ea | 8548af8d37e857ec681dd76fbe09da07cbd2686d | refs/heads/master | 2016-09-06T08:26:35.157310 | 2013-08-20T21:51:02 | 2013-08-20T21:51:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32 | py | if "a" is "a":
print "OK"
| [
"commits@justyn.eu"
] | commits@justyn.eu |
08d60b0fdf4f6abfda5e2ac10591021283fc44bf | 8e1be167066e30eff91c26c0757211cf3cf8b016 | /django/orm/book_authors_proj/apps/books_authors_app/migrations/0001_initial.py | 5818682c02c3c18e31b135482e2c1adb636304db | [] | no_license | dojo-solutions/online-ft-python | 074d0ba968f5a77eaec1bca0904232f2aa29051a | b4f6941d0bba376d121a40a6429b815d5b03c32f | refs/heads/master | 2020-04-21T11:52:31.390772 | 2019-03-02T01:27:54 | 2019-03-02T01:27:54 | 169,542,448 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,422 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2019-02-21 18:01
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Author',... | [
"wes@tao.team"
] | wes@tao.team |
2ba20372fe4994021d5cf6e43c9b163c1c106b64 | 05a9e0bb7e33099f94dfc8af53b4837bc5c9d287 | /python/ext_examples/torch/bench/linear.py | 1a840cbd0db9eba60313d59db7025e1b6a7852df | [] | no_license | HiroIshida/snippets | 999c09efadae80397cb82a424328bb1dbda4915f | f64dcd793184be64682b55bdaee7392fd97a0916 | refs/heads/master | 2023-09-01T08:18:42.523625 | 2023-09-01T04:08:20 | 2023-09-01T04:08:20 | 207,662,767 | 7 | 2 | null | 2022-08-01T23:20:42 | 2019-09-10T21:04:01 | C++ | UTF-8 | Python | false | false | 782 | py | import torch.nn as nn
import tqdm
import numpy as np
import matplotlib.pyplot as plt
import time
import torch
import threadpoolctl
def measure_perf(depth, with_grad: bool = False):
lst = []
for _ in range(depth):
lst.append(nn.Linear(40, 40))
lst.append(nn.ReLU())
lst.append(nn.Linear(40, 1... | [
"spitfire.docomo@gmail.com"
] | spitfire.docomo@gmail.com |
b5ed3013b2eafda68318a223d46dce0287cafaff | 32fdc94d1b8d98085db5d1e8caae4161d3e70667 | /3rd_party/python3.7/lib/python3.7/site-packages/mining-0.2.2-py3.7-linux-x86_64.egg/mining/utils/listc.py | 298f9060e40d10832fcab747bdea37497e80d1e6 | [
"Python-2.0"
] | permissive | czfdlut/ticket_proxy | fa0f1924a86babfa7ce96cf97e929f7bf78643b7 | 0d7c19448741bc9030484a97c1b8f118098213ad | refs/heads/master | 2022-12-23T05:25:58.207123 | 2019-11-20T03:58:31 | 2019-11-20T03:58:31 | 174,579,562 | 1 | 3 | null | 2022-12-18T01:18:07 | 2019-03-08T17:22:48 | Python | UTF-8 | Python | false | false | 310 | py | def __bootstrap__():
global __bootstrap__, __loader__, __file__
import sys, pkg_resources, imp
__file__ = pkg_resources.resource_filename(__name__, 'listc.cpython-37m-x86_64-linux-gnu.so')
__loader__ = None; del __bootstrap__, __loader__
imp.load_dynamic(__name__,__file__)
__bootstrap__()
| [
"czfdlut@163.com"
] | czfdlut@163.com |
60d6d2780c6ee5ec375dd631da6785483699b839 | c9e368329bb602233d7cd6449bd7db385c946078 | /week_1/lists_n_loops/driver.py | 194b18680bf6120ee29cb1ac09212af8c4949e7f | [] | no_license | ansabgillani/arbisoft-training | 55d9d350442a66c91d61b50f2d6ce6eb8d7701a9 | 4c04f02e5cacc78565c6d5f3e759b5741202693c | refs/heads/main | 2023-06-04T10:16:36.743531 | 2021-06-29T09:33:17 | 2021-06-29T09:33:17 | 379,847,820 | 0 | 0 | null | 2021-06-29T09:33:18 | 2021-06-24T07:56:38 | Python | UTF-8 | Python | false | false | 2,458 | py | import time
import random as rnd
import matplotlib.pyplot as plt
from index_search import (
search_key_while,
search_key_enumerate,
search_key_listed_for,
search_key_ranged_for,
search_key_comprehension
)
if __name__ == "__main__":
def calculate_execution_time(function):
start = time... | [
"syedansab@Ansabs-Mac.local"
] | syedansab@Ansabs-Mac.local |
32fb9a2a330ac6fa993cae29751e0c894fb2e922 | 1af44bdcbc3c15d3f6e436a7924dfd45f504ab3a | /01.jump to python/chpter 2/62em.py | 4db6566d344540379fdc05693d0ca4cb074461b8 | [] | no_license | wql7654/bigdata_exam | f57c8b475690cbc5978009dbf8008bedff602e2a | c07ee711bb84407428ba31165185b9607b6825e8 | refs/heads/master | 2023-04-07T00:50:59.563714 | 2021-05-25T02:46:43 | 2021-05-25T02:46:43 | 180,915,985 | 0 | 0 | null | 2023-03-25T01:08:09 | 2019-04-12T02:36:08 | Jupyter Notebook | UTF-8 | Python | false | false | 191 | py |
a=['life','is','too','hard']
re=" ".join(a)
print(re)
re=re.split()
print(re)
re=','.join(a)
print(re)
re=re.split(',')
print(re)
re.sort()
print(re)
re=" ".join(re)
print(re)
| [
"studerande5@gmail.com"
] | studerande5@gmail.com |
3a3ea60ad718a461be8d18cc3e2bd03af4794584 | 6b237224d6f771bd74691dbb717438972a79329a | /benchmark_pyvips_v2_nocache.py | beeb6f1c05c255665cece885dccaded095173307 | [
"Apache-2.0"
] | permissive | Geeks-Sid/stress-test | 6dd61ce6177df17c72c2758c69f2a143e92d143e | 07145c3780c553c1e31b2ef5cbf149d66ffa0efd | refs/heads/main | 2023-03-29T00:26:36.726667 | 2021-04-01T16:20:08 | 2021-04-01T16:20:08 | 352,326,401 | 0 | 1 | Apache-2.0 | 2021-04-01T16:20:09 | 2021-03-28T12:42:36 | Python | UTF-8 | Python | false | false | 6,305 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Mar 8 20:03:35 2019
@author: siddhesh
(Caleb helped and is super cool)
"""
from torch.utils.data.dataset import Dataset
from torch.utils.data import DataLoader
import numpy as np
import pandas as pd
import argparse
import os
import torch
from multipro... | [
"noreply@github.com"
] | Geeks-Sid.noreply@github.com |
877d2b03715d504aae165d9ee43a4910341d7eec | 0b18de87567514d723fdd031506ab35604d7e472 | /pkg/synthesis.py | 9b04e493e4930cd77a40f9721c6e6dadd2a2ca1d | [] | no_license | alexsevas/SimpleTTS | 8de6a8d86930a96fcbc7190935b19a5516a841a3 | a3fc17c952e25cad8536ee68d610fa86e2bbfb0d | refs/heads/master | 2022-02-24T11:25:18.392454 | 2019-10-15T17:13:42 | 2019-10-15T17:13:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,360 | py | import os
import torch
import numpy as np
import scipy.io.wavfile as wavfile
from pkg.train import load
from pkg.networks import Text2Mel, SuperRes
from pkg.utils import plot_spectrum, plot_attention, PrettyBar, spectrogram2wav
from pkg.hyper import Hyper
from pkg.data import process_text
def synthesis(text_list, plo... | [
"a.s.potapov@tinkoff.ru"
] | a.s.potapov@tinkoff.ru |
802903e97b7dc6a387a1b5cfe85aaaf3f929915f | 09c073981b41775781774fff10e1eb7a0da9f1be | /python_practice.py | 7dde9714e9c4ed1a0bc6b2ea919aa2c3fede7e2d | [] | no_license | Subodh2044/Election_Analysis | 872b3fddf53b6cbabdd4c49c39f4a2501ffeee4d | 6bfe11f7f1e0efe15b812f953b17ac165d043091 | refs/heads/master | 2022-12-25T07:09:23.511791 | 2020-09-21T02:57:44 | 2020-09-21T02:57:44 | 295,298,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py |
counties_dict={}
counties_dict["Arapahoe"] = 422829
counties_dict
| [
"byansubodh@gmail.com"
] | byansubodh@gmail.com |
c021b16e9e70d0d06c9a794e86bb55a587cbfb39 | 8481846f85f664fdfb02567e7b07ac7bf6251467 | /fill_IDs.py | ee06f9b0415aa14ac18c36379d0a1eef8e0c8746 | [] | no_license | serinachang5/bechdel | 1247cc2930c5bb8b94154899537a29224a171062 | 105d3ab8f1c0b0cd3106e0c0c03d4dcd77c32eaa | refs/heads/master | 2020-03-08T18:12:42.169571 | 2018-05-23T00:26:15 | 2018-05-23T00:26:15 | 128,290,679 | 3 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,051 | py | import csv
import imdb
import jellyfish as jelly
def getData(filename):
data = []
for row in filename:
data.append([row["Title"], row["Source"], row["File_path"], row["IMDb_id"]])
return data
def getMissingID(data, result_filename):
res = []
movie_db = imdb.IMDb()
for item in data:
if item[0] != '' an... | [
"navrajnarula@gmail.com"
] | navrajnarula@gmail.com |
90b679c74e2aa6adb56cdaf86a7a859d0a99bac9 | 334ea94a185fd48f5e8d4f6a321444c61b216a86 | /stream_configure.py | c05522f8adde8f23d701475693897efd199959d6 | [
"MIT"
] | permissive | brishtiteveja/Alive-CLI | 6e40d320846af5f4a9b1be0eaf1673ac33de09b0 | 305640534fd00b63900cb0ea7207f90034a97e1f | refs/heads/master | 2023-03-06T01:40:57.722688 | 2021-02-12T14:00:48 | 2021-02-12T14:00:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,566 | py | import sys
if len(sys.argv) != 7:
print('Usage: python3 ' + sys.argv[0] + ' <network> <api_node> <link> <alivedb_pubkey> <username> <private_key>')
sys.exit(0)
api = sys.argv[2]
link = sys.argv[3]
pub = sys.argv[4]
sender = sys.argv[5]
key = sys.argv[6]
if sys.argv[1] == 'dtc':
# Avalon
import json
... | [
"engtianxi@outlook.com"
] | engtianxi@outlook.com |
b9363339a258e9695ebce785436523f9a6e68cfc | 5d7c5fb6c9f067256de694f07f5db793d7c071b3 | /dianping.com/pachong/utils/getCodeImg_asSave.py | 657f64ca961766fc01cc8912f395aad130e23a60 | [] | no_license | asdfhalkehflkajdhf/utils-py | e2f0ed813f3f0ca3cb726e8da6d02858aac3a7fb | 6da43113c7ee1e7a77de097926f6e1719be3e403 | refs/heads/master | 2023-05-27T00:21:52.382590 | 2020-02-16T06:54:55 | 2020-02-16T06:54:55 | 144,437,420 | 2 | 0 | null | 2023-05-22T21:38:50 | 2018-08-12T04:23:23 | JavaScript | UTF-8 | Python | false | false | 2,833 | py | # 1、截屏,裁减
# 验证码位置选择
# 系统工具,元素位置
# location = img.location
# left = location['x']
# top = location['y']
# right = left + size['width']
# bottom = top + size['height']
# 2、右击另存为
# 另存为路径设置,和对话框处理,直接设置浏览器参数
# req = requests.get(url='https://verify.meituan.com/v2/captcha?request_... | [
"root@MiWiFi-R3-srv.(none)"
] | root@MiWiFi-R3-srv.(none) |
93e266b719d7e1c5ef5d818cc5b6c82aebc830e0 | 032fcfa68e5f60898414d691b4f1012ce95eb0d4 | /src/migrations/0005_bill_total_money.py | 5b3e9f18fed11401535dddfe36f4ecb7e91fbef9 | [] | no_license | codethoisinhvien/quanlynhahang | cefbf5c65dfd3c2a2c2972f525d61c7927665153 | 26c08a00b800ccb57fbf8f4b68b9a7ccf8814c58 | refs/heads/master | 2022-05-01T02:32:07.533397 | 2020-07-02T04:28:45 | 2020-07-02T04:28:45 | 237,424,713 | 0 | 0 | null | 2022-04-22T22:59:57 | 2020-01-31T12:22:14 | Python | UTF-8 | Python | false | false | 383 | py | # Generated by Django 2.2.11 on 2020-06-15 16:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('src', '0004_auto_20200607_1008'),
]
operations = [
migrations.AddField(
model_name='bill',
name='total_money',
... | [
"nguyentruonggiangptdq@gmail.com"
] | nguyentruonggiangptdq@gmail.com |
ef57d7fcd27a97d3e6735a48de43f28da2f7893b | dbd0ffd6169415943d63262f98f314543043c491 | /remote_transform.py | d31c5cd35d89808d8677f473609398293eebe114 | [] | no_license | eranheres/sagemaker-byom-example | b7e3ccdd80c9dbc5d52da17c9e9eadf4f04bed6d | cd6eec4e2d446ac85c2567340dbde1fa8de738a3 | refs/heads/main | 2023-02-24T18:53:59.899593 | 2021-01-26T12:55:38 | 2021-01-26T12:55:38 | 331,443,652 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,275 | py | #!/usr/bin/env python3
import sagemaker
import boto3
import pprint
pp = pprint.PrettyPrinter(indent=4)
try:
role = sagemaker.get_execution_role()
except ValueError:
iam = boto3.client('iam')
role = iam.get_role(RoleName='sagemaker')['Role']['Arn']
model_name = "sagemaker-example-fixed"
# getting our mo... | [
"eran.heres@gmail.com"
] | eran.heres@gmail.com |
eb9ff236f9d591cfb6a61d337418b89d5fa742b4 | 369b1b63bb639f5d7d0acec3a03dda7ed2ce5c7d | /restserver/common/response.py | 4b73b8ec7dcf116592b33638a34b6d274c7e09cb | [] | no_license | lafenicecc/chaincode-dev-env | 9787c32bf72cac89da7d41d4a56137a36c595abd | fe3ee08461840f089968cfa66f1390fba522ebca | refs/heads/master | 2020-05-29T11:02:08.582941 | 2017-08-20T12:55:38 | 2017-08-20T12:55:38 | 65,706,365 | 5 | 2 | null | 2017-07-24T07:39:56 | 2016-08-15T05:19:08 | Go | UTF-8 | Python | false | false | 860 | py | from flask import jsonify
CODE_OK = 200
CODE_CREATED = 201
CODE_NO_CONTENT = 204
CODE_BAD_REQUEST = 400
CODE_FORBIDDEN = 403
CODE_NOT_FOUND = 404
CODE_METHOD_NOT_ALLOWED = 405
CODE_NOT_ACCEPTABLE = 406
CODE_CONFLICT = 409
response_ok = {
"status": "OK",
"code": CODE_OK,
"error": "",
"data": {}
}
resp... | [
"ck-cc@hotmail.com"
] | ck-cc@hotmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.