blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3f667962450527567e81e790a4e54ed9f1945d73 | 68566fa69aadfa95aab72005ed406d281ebfad33 | /tic toc .py | 506058068ebf6079a8bd59780e2c4b3aba5295da | [] | no_license | Sankalpa7/Tic-toc-toe | ded24e7708f669ae80f49f84e80b60fad0cbcf9e | 2a5293875bdcf00a84bfc7b8f78ddeb3f9623605 | refs/heads/main | 2023-04-18T03:18:56.856835 | 2021-05-03T14:54:47 | 2021-05-03T14:54:47 | 363,964,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,088 | py | #!/usr/bin/env python
# coding: utf-8
#This file only works in Jupyter Notebook.
from IPython.display import clear_output
def display_board(board):
clear_output()
print(' | |')
print(' ' + board[7] + ' | ' + board[8] + ' | ' + board[9])
print(' | |')
print('-----------')
print... | [
"noreply@github.com"
] | noreply@github.com |
1c3ed83904694220567ea86e128fa406f7106b47 | 53530c982e4ac3c643f92dc0945965be76a13731 | /migrations/versions/e12cc5ad7900_.py | 95770fdd99d1e57303a73c2543511d301659290c | [] | no_license | odbalogun/my-wishlist | 71f997c7acb9b633a607a967bd18e71430f79452 | 8fd8ca9c137232f9bd53443c256a8a3bc87a8f9b | refs/heads/master | 2022-12-10T22:50:13.867335 | 2020-02-21T06:18:40 | 2020-02-21T06:18:40 | 227,097,937 | 1 | 0 | null | 2022-12-08T03:21:57 | 2019-12-10T11:04:53 | JavaScript | UTF-8 | Python | false | false | 804 | py | """empty message
Revision ID: e12cc5ad7900
Revises: ba1745921ed4
Create Date: 2020-02-19 18:49:14.726131
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'e12cc5ad7900'
down_revision = 'ba1745921ed4'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"15163838+odbalogun@users.noreply.github.com"
] | 15163838+odbalogun@users.noreply.github.com |
a338d271ec0923802c40201490bc836120bf8437 | fe13ea3ee2944ff387756741f91dbaee66be71d7 | /code/OLD_WORKING/version_without_fading_reverse/regex_blaster_13.py | 2dabbc0df26ce4d5fa39abb8629e0bf90f52ab8a | [] | no_license | brannerchinese/regex_blaster | 2c9f1523e28b8b01d4d8435943566eb74bc9db19 | 6a5fcda8b1928f8a11431e3455e24b76664edab8 | refs/heads/master | 2020-04-14T04:02:43.909556 | 2014-06-14T01:20:45 | 2014-06-14T01:20:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,285 | py | #! /usr/bin/python
# regex_blaster_13.py
# David Prager Branner
# 20140408
"""Arcade game to help user practice regular expressions. Curses version."""
import sys
# Not necessary: appears to work in Python 2.
#if sys.version_info[0] != 3:
# print('Python 3 required.')
# sys.exit()
import curses
import random
im... | [
"brannerchinese@gmail.com"
] | brannerchinese@gmail.com |
c8c15219af67880c2aef5d6e365ccc85d9c4fe02 | 73d9480df1e4d137ec03b985d1eae6810a63a325 | /Exercicios-Mundo2/ex037.py | 69588bd6bb0b7da84bb30212dde18530d3990770 | [
"MIT"
] | permissive | WeDias/RespCEV | 335bc4dd0ade352205056b4007e6d127f6484d69 | 3cf0918c5c90e3b2d6dc7e57f2824436c639c04c | refs/heads/master | 2020-08-19T05:17:49.971950 | 2020-04-29T19:13:24 | 2020-04-29T19:13:24 | 215,882,465 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | num1 = int(input('Digite Um Numero Inteiro: '))
print('''Escolha Uma Das Bases Para Conversão
[1]CONVERTER PARA BINÁRIO
[2]CONVERTER PARA OCTTAL
[3]CONVERTER PARA HEXADECIMAL''')
opcao = int(input('Sua Opcção: '))
if opcao == 1:
print('{} Convertido para Binário é: {}'.format(num1, bin(num1)[2:]))
elif opca... | [
"noreply@github.com"
] | noreply@github.com |
f4d523bf8b922bf42041001ffdc30993d9ab3efc | d6780d2a5126bff23d0a46c7376f5085063a3a4e | /backend/chat/api/v1/viewsets.py | 211c8f530ed018dec88234b4bfad728e6cf050ca | [] | no_license | crowdbotics-apps/test-25190 | 2721890ce00a97b8168e1188fe5d96ff86e1b6e4 | 48ce90fb307e5d98963a73e8c07a9a631b370f59 | refs/heads/master | 2023-03-24T23:43:59.659900 | 2021-03-22T15:53:21 | 2021-03-22T15:53:21 | 350,400,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,983 | py | from rest_framework import authentication
from chat.models import (
Message,
ThreadMember,
MessageAction,
ThreadAction,
ForwardedMessage,
Thread,
)
from .serializers import (
MessageSerializer,
ThreadMemberSerializer,
MessageActionSerializer,
ThreadActionSerializer,
Forwarded... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
7e9302d32787862d768a2e2a3a7eeea66f8a542c | fc2fb2118ea02867d559bf8027e54e3c6b652cfd | /devItems/spring-2020/SEEAccuracyImprove/jirasoftware/step1_vectorize_text.py | 80e2c2b832ef7448c32e352447bb35267dbcc71c | [] | no_license | pdhung3012/SoftwareStoryPointsPrediction | 2431ad599e0fba37617cfd467de1f4f1afed56cc | 520990663cb42adcac315b75cd4eb1150c3fc86c | refs/heads/master | 2023-08-29T15:16:30.413766 | 2021-09-18T17:12:20 | 2021-09-18T17:12:20 | 254,596,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,611 | py | from sklearn.feature_extraction.text import TfidfVectorizer
import pandas as pd
from nltk.tokenize import word_tokenize
import os
import numpy as np
import gensim
from sklearn.decomposition import PCA
from sklearn.random_projection import GaussianRandomProjection
nameSystem='jirasoftware'
fopVectorAllSystems='vector_t... | [
"pdhung3012@gmail.com"
] | pdhung3012@gmail.com |
77af388de4287b2c3af68359cd2a590aa575d956 | c9cf1fa3b9a6268368c50f60b55e4ae98b68e88a | /yass/yass.py | 4bfbca63299208fe9a8f7efcf05cacb7aa690c08 | [] | no_license | viveshok/yass | 8d80bb0fc8c526d4dc8aad01f6ff1c98690c72ff | 2e124895fd20ff20e2797604fa9b2b259b86cc02 | refs/heads/master | 2021-05-26T17:40:11.389245 | 2013-09-01T08:29:36 | 2013-09-01T08:29:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,241 | py |
import re
import copy
def explode(puzzle):
"""
take a list of list of chars representation'
of a sudoku puzzle and replace any '0' it
encounters with '123456789'
"""
assert(is_valid(puzzle))
result = list()
for row in puzzle:
result.append(['123456789' if cell=='0' else cell fo... | [
"abeaulne@eclipseoptions.com"
] | abeaulne@eclipseoptions.com |
1cd0c886be0252be92dd2e66dc2f2d576323d251 | d4bbc9ee15604106a6f67912bfabab32508e0ffc | /make.py | 2aea63d9688d848fa2a1adf4574050379e8d9a1b | [] | no_license | jiazycat/oracleAnalyze | 71afbdef915d3b5c07fbf5eadb36fd3f05e06c0c | ec280674346c0138d1b77267c5c699063156747f | refs/heads/master | 2020-03-19T23:55:48.459244 | 2018-06-08T08:52:47 | 2018-06-08T08:52:47 | 137,025,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | from distutils.core import setup
import glob
import py2exe
setup(windows=[{"script":"Analyze.py","icon_resources":[(1, u"OracleAnalyzeBig.ico")]}],data_files=[("bitmaps",["OracleAnalyze.ico"])]) | [
"1136919179@qq.com"
] | 1136919179@qq.com |
0fa2c1ed41206d28353413910d65f5c9d9938701 | 39c8f0c0018f19a00ae7dfec8774e7a105822504 | /evaluate.py | 102fa32099bd91a6c1e41b38c220ca8ab5b30052 | [] | no_license | darshanbangera/3D-Change-Detection | 5e086ffd85d41bf413abcbd5789393f5b74a3587 | 45f49d546faf8cd6f7d7710475666c932b2701f1 | refs/heads/main | 2023-03-15T16:09:29.809254 | 2021-03-02T08:22:31 | 2021-03-02T08:22:31 | 343,514,031 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,849 | py | import os
import torch
from train import Net
import pickle
import numpy as np
labels = {'nochange': 0, 'added': 1, 'removed': 2, 'change': 3, 'color_change': 4}
import argparse
parser = argparse.ArgumentParser()
parser.add_argument(
'--Mode', type=str, default="train_val", help='train_val or test ')
opt = parser.... | [
"noreply@github.com"
] | noreply@github.com |
0666b14fb707a76d1147e80c03ad63ed6061ec52 | e9d8d83f5d5ada2de0d8b9c3c8aece3ac51d2e3d | /openstack/sshtest2.py | 0741916eb370a340aec57ef1a7f80e6c98614b64 | [] | no_license | bhanum2/python | 55c23d991e15190046575526939d70de296fa893 | 81549c52e5a97d0e2c2e1fc6f987e1934e5dd51d | refs/heads/master | 2022-10-11T01:27:23.059746 | 2020-06-12T13:18:33 | 2020-06-12T13:18:33 | 271,778,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,258 | py | from __future__ import print_function
import os, socket, sys
from novaclient.client import Client as NovaClient
def isOpen(ip, port):
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.settimeout(5)
try:
s.connect((ip, int(port)))
s.shutdown(socket.SHUT_RDWR)... | [
"bhanuxkiran@gmail.com"
] | bhanuxkiran@gmail.com |
35c0536489dccd74fd4e596488a184fadc9bdfcb | 5f93816a128dcb92e9f4380c3d153f8fcbdb67b2 | /call_normal_computation.py | 8061c7105e36587ab160a413be4f55ad45892358 | [] | no_license | fatemehyb/welling_scale | 983de7328817c6bbb7b81be7c7af12a752a46d20 | 68ba4c4b5c1e5fc95e749941d8feacccd065c4a1 | refs/heads/master | 2020-09-06T04:59:18.277737 | 2019-11-07T21:16:31 | 2019-11-07T21:16:31 | 220,330,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,387 | py | # mesh created with
# verts, faces = skimage.measure.marching_cubes(volume, level, spacing=(1.0, 1.0, 1.0))
from mayavi import mlab
# import os
# import argparse
# import itk
# import SimpleITK as sitk
# import numpy as np
# import read_image_m as RIM
import glm
from skimage.measure import marching_cubes_lewiner
X_2... | [
"noreply@github.com"
] | noreply@github.com |
d1673dfbc274511726ff488dff0cf54974f5953f | 44588b44409b5ab11ab10ae220b5c4295c40007e | /silver-authorize/silver_authorizenet/tests/conftest.py | fc7f985783e5f827fa37f817fa14b286803b3d22 | [] | no_license | Dynamicic/silver | 480398fe8955f5473c3f8aa8d602380b807dc87f | dfa1e04338d495e5b3ebbd5225f4f4bed9d007dd | refs/heads/master | 2020-04-10T10:55:57.471984 | 2019-04-01T23:25:33 | 2019-04-01T23:25:33 | 160,979,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11 | py | asdf = "1"
| [
"ryan.david.hayes@gmail.com"
] | ryan.david.hayes@gmail.com |
954763b560cb63e28c271b6e2a24d6a704bd272c | b1e6b5bdeae01f9cf2a5d68e181ed74960d246b1 | /utls.py | ef1089b38f5ffba5aad4483a4dbea079a2e73035 | [] | no_license | TheLukaDragar/SuperTabelar3000 | bb3ccf84a924d64c056d1349105a78c99b05a69f | 32c35d44b01f63c3e66ec101ff615f830f4670d0 | refs/heads/master | 2023-08-14T11:16:23.534977 | 2021-10-13T11:24:38 | 2021-10-13T11:24:38 | 309,352,023 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,137 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
import itertools
class Term():
def __init__(self, term='', source=None, flag=False):
if source is None:
source = []
self.term = term
self.source = source
self.flag = flag
self.length = len(term)
def __eq__(se... | [
"luka.dragar3@gmail.com"
] | luka.dragar3@gmail.com |
748188ed28fde4abc2b26a91c727a0d58176ac3f | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2484/60691/284691.py | e7ae022ea8ced39460e70e67ef7cc820c09dc498 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | def union(s1, s2):
l = s1.split(' ')
l1 = s2.split(' ')
if l1 == ['']:
return len(l)
for i in range(len(l1)):
if (not l1[i] in l) and (l1[i] != ' '):
l.append(l1[i])
print(l)
return len(l)
n = int(input())
useless = []
arra = []
arrb = []
for i in range(n):
u... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
d884b328280e8d6ca9f596e780fc457db9adce87 | aff385e5ea88e119df8bd57741ac82e7bbb383aa | /NLPs/experiments/Hybird_tVAE_test.py | 5d3db79ec3752a986185e7917bf6c0ef0a4d5ebc | [] | no_license | threefoldo/MyResearchCodes | 2ab34b1cbb7f7925c03674647109da1d571260dc | 3dd18e431d40b7c4dae5c183e8964d84340c2889 | refs/heads/master | 2021-09-03T21:28:04.333755 | 2018-01-12T05:03:31 | 2018-01-12T05:03:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,838 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
import utils.DataLoader as D
# 查看随机生成的情况
def infer_by_normal_test(model, sess, data_loader):
sentences = model.infer_by_normal(sess, data_loader)
for ix in ... | [
"yxue3357@163.com"
] | yxue3357@163.com |
e4e5b5b777d0c2876ccd93f0e0687824c3d9acc0 | 53706aea0f1358c3589b9afa8a94f1c902c2c494 | /algorithms/tmax/apps/record_trajectory_manually.py | 29adb24df33967fa011df4579ea3ccccb99c3b98 | [
"MIT"
] | permissive | alex-petrenko/landmark-exploration | 6df0eae63ba501c3509e1264f8f99101ff0df345 | faaeff84176de34e2ab4c18b24ee022bd069299e | refs/heads/master | 2021-06-28T16:43:41.299431 | 2019-06-02T00:09:09 | 2019-06-02T00:09:09 | 164,031,073 | 4 | 1 | MIT | 2021-06-18T20:53:45 | 2019-01-03T22:53:03 | Python | UTF-8 | Python | false | false | 3,668 | py | import datetime
import pickle
import sys
import time
from os.path import join
from threading import Thread
from pynput.keyboard import Key, Listener
from algorithms.utils.algo_utils import main_observation
from algorithms.utils.env_wrappers import reset_with_info
from algorithms.tmax.agent_tmax import AgentTMAX
from ... | [
"petrenko@usc.edu"
] | petrenko@usc.edu |
0089fdff188b76a31794493a8f9da2712c9a0278 | be629ba40bafc2ec34b1243c9a916594643be4b1 | /exUnit17.py | f4b8d48be1b6e8e278a715fe722bf3ab54bbf173 | [] | no_license | rovm/python | bd2b04aaee49d9106b705b14a83ec9665243de79 | 922ed20e30bad5573a7e7aba12f38e33dba6c051 | refs/heads/master | 2022-07-28T08:08:24.895053 | 2020-05-22T04:41:27 | 2020-05-22T04:41:27 | 259,561,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | #while 반복문 출력
i = 1
while i <= 10:
print('Hello, world! ', i)
i += 1
i = 10
while i > 0:
print('Hello, world! ', i)
i -= 1
import random
i = 0
while i != 3:
i = random.randint(1,6)
print(i)
dice = ... | [
"rovm92@naver.com"
] | rovm92@naver.com |
f4e19f1c69aa5d30c88ef2c6058d170ce86c5ff0 | e2d2eeb0fa15696d5e0d212521426b5dd1d66822 | /lectures/migrations/0007_auto_20200328_1749.py | 1116b48fe36e8503aa782b091abe748b2f97d43d | [] | no_license | Adampatryk/attendance-tracking-web-portal | 223b629efb8d9528ecf48e79140470e66f7645b0 | 77c08429b7fae9ab3d54a1fc1f7bc7cc31706904 | refs/heads/master | 2022-06-06T15:07:21.250538 | 2020-05-04T04:26:58 | 2020-05-04T04:26:58 | 242,003,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 361 | py | # Generated by Django 3.0.3 on 2020-03-28 17:49
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('lectures', '0006_auto_20200328_1746'),
]
operations = [
migrations.AlterUniqueTogether(
name='allocation',
unique_together={... | [
"psyak12@nottingham.ac.uk"
] | psyak12@nottingham.ac.uk |
a2f15e0547de1995865418308a7aa46fce26847b | f90112cacd5623d2f55ff76eccee691e1e84dc59 | /venv/bin/gunicorn_paster | 2448ddfe24e7641a942820b67d964ea2e7e3806c | [] | no_license | wsankey/wsankey | 9e92daa477d2a6b8a3d283dd8112c37acaa3567e | 6394df2b35ad9a71a80b7ae3635d7f75563754a6 | refs/heads/master | 2023-01-10T04:11:51.105060 | 2015-09-12T16:19:45 | 2015-09-12T16:19:45 | 29,715,116 | 0 | 0 | null | 2022-12-26T19:47:05 | 2015-01-23T03:40:31 | CSS | UTF-8 | Python | false | false | 269 | #!/Users/cenchen/Documents/Code/personal_flask/venv/bin/python2.7
# -*- coding: utf-8 -*-
import re
import sys
from gunicorn.app.pasterapp import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"WSankey@gmail.com"
] | WSankey@gmail.com | |
4f53fca6de83c3e1a1350e96ab8c05885220e402 | a5fabc6d6341925b587fecb082dc70c0d1b95619 | /py_FPA/FPA_Fil.py | 0e0dabdbc7f14bd77822cefddf3a45b70a4ed9d5 | [] | no_license | illuminous/pythonScripts | fcfef9c0fb9bd3155edcf02b56bbec563ff08b2a | 1bb69a1bb1e10f6041274c027cc0ab06c7a9efed | refs/heads/master | 2022-10-22T09:35:48.088907 | 2022-09-28T22:35:32 | 2022-09-28T22:35:32 | 120,963,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,844 | py | import glob, arcgisscripting
import os
# Create the Geoprocessor object
gp = arcgisscripting.create()
gp.CheckOutExtension("spatial")
gp.AddToolBox
gp.toolbox = "management"
zones = ['RM_WY']#'EA_IL', 'EA_IN', 'NW_WA', 'SA_PR','NR_MT','CA_CA', 'EA_IA', 'EA_MI', 'EA_MN', 'EA_MO', 'EA_NH', 'EA_NJ', 'EA_OH', 'E... | [
"noreply@github.com"
] | noreply@github.com |
5152b34d823d6a11128d9e66f1e9e53e70047cb9 | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/model_control/detailed/transf_BoxCox/model_control_one_enabled_BoxCox_PolyTrend_NoCycle_AR.py | b8ab652e2b3ff4f4365950f4e030704063914475 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jmabry/pyaf | 797acdd585842474ff4ae1d9db5606877252d9b8 | afbc15a851a2445a7824bf255af612dc429265af | refs/heads/master | 2020-03-20T02:14:12.597970 | 2018-12-17T22:08:11 | 2018-12-17T22:08:11 | 137,104,552 | 0 | 0 | BSD-3-Clause | 2018-12-17T22:08:12 | 2018-06-12T17:15:43 | Python | UTF-8 | Python | false | false | 151 | py | import pyaf.tests.model_control.test_ozone_custom_models_enabled as testmod
testmod.build_model( ['BoxCox'] , ['PolyTrend'] , ['NoCycle'] , ['AR'] ); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
3c134724ea40b06d4fde5cf44e935e8671b6f11e | b6eff8973b7b9921668f6cb4a019d483e6f05282 | /request/urls.py | 6839af2369fd721fdfb14e74c1ab2872b681b820 | [] | no_license | Allinka1/helpdesk | fff15d65d4a1cea1adc4c68dbba98db6a0a5b209 | 6f13ce678f6867b65fa51094f3049c145a53b14d | refs/heads/master | 2023-06-26T04:41:10.398570 | 2021-07-14T13:51:12 | 2021-07-14T13:51:12 | 383,216,360 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 664 | py | """
Purchase Application URLs Configuration
=======================================
"""
from django.urls import path
from request.views import (RequestCreateView, RequestDetailView,
RequestListView, RequestUpdateView,
FormUpdateView, )
app_name = "request"
urlpa... | [
"alishasergeeva94@gmail.com"
] | alishasergeeva94@gmail.com |
3595629e040ecabb0010cfa549841f3d56c5d3b3 | 3b4a31b59c0585bce03914e3b7c5635b516ac5fb | /Tests/2_test.py | 7e1d63b231e337099a10729e6b9d6c1fcccb9e5c | [] | no_license | Norddan/Homework_share | d9f2b0cb57cc5dff1c30563ba07f308b16dbaae9 | 5856c1599fb15ce2b7527faa028038b8944f7bf8 | refs/heads/master | 2020-08-07T13:03:55.225441 | 2019-11-10T16:14:56 | 2019-11-10T16:14:56 | 213,461,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 864 | py | import unittest
import codecs
import urllib.request
from bs4 import BeautifulSoup
class Second_test(unittest.TestCase):
def test_crawler(self):
urllib.request.urlretrieve("https://stopgame.ru/news", "test.txt")
with codecs.open("test.txt", "r", encoding="utf-8") as outfile:
t... | [
"noreply@github.com"
] | noreply@github.com |
522b229ed5441f337e5ffaf6d29ee042868dfd53 | f48512f1f42d55fabc9ab46f448138e771b78c68 | /sphinx/conf.py | d3bc27682716395cd7e2c284cb4cb038eaed7629 | [] | no_license | HussainAther/chipseq | 07871167f894ba612d6ca476b5a6fb37440c682a | 6d12752c15a0368a5d4b40af6f5916d2c04c767f | refs/heads/master | 2020-03-08T07:49:44.997059 | 2018-04-04T03:58:42 | 2018-04-04T03:58:42 | 128,004,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,167 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# snakemake documentation build configuration file, created by
# sphinx-quickstart on Thu Jul 27 17:54:40 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# ... | [
"shussainather@gmail.com"
] | shussainather@gmail.com |
1b6234992670a05ecdb188d90b42a17c134b3d07 | 79eb0792873fa3d7895b96f26952c5dc13118f14 | /tf/migrations/0017_migrate_team1_team2.py | 96d584df1c92e77cbdd14737e45b49e5c37ce269 | [] | no_license | amr2393/occ_elo_rankings | 95adbaa5b0fd7c93ea778e2059bc088c2842dd5a | 13d0984bfee4d3c9925b005827c7794f440efdd7 | refs/heads/master | 2021-01-21T04:38:49.132824 | 2016-07-09T09:52:57 | 2016-07-09T09:52:57 | 48,841,505 | 1 | 2 | null | 2016-01-12T20:16:09 | 2015-12-31T08:22:32 | JavaScript | UTF-8 | Python | false | false | 719 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-07-09 06:20
from __future__ import unicode_literals
from django.db import migrations
def migrate_teams(apps, schema_editor):
Matches = apps.get_model("tf", "TfMatch")
for m in Matches.objects.all():
if m.team1.id < m.team2.id:
m.te... | [
"philipp.g.deutsch@gmail.com"
] | philipp.g.deutsch@gmail.com |
aa9e6743da5a6d295eb5a80872d2ad62f8545fe2 | 981eccc782894bd46c4d223ae18afda8b4e4ef9d | /Self-taught programming/Chapter 13/No.2 add change_size method.py | 6d4e2dc1e82c838f6447357da3b55267ea6b6507 | [] | no_license | kannkaku0406/Book | 22e04bf340288cbc09b7ac5fa96b17c506f9fcff | 6326f1325e1ec188a2f700b0e669e30d6e7aeb8c | refs/heads/main | 2023-03-18T16:28:15.915997 | 2021-03-14T08:26:29 | 2021-03-14T08:26:29 | 342,724,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | class Square:
def __init__(self, side):
self.side = side
def calculate_perimeter(self):
self.perimeter = self.side * 4
print(self.perimeter)
def change_size(self, change):
self.side += change
print(self.side)
square1 = Square(5)
square1.change_size(1) | [
"noreply@github.com"
] | noreply@github.com |
2b243f3967ce7af8ef166cfe9108bcddac30959f | 31ec71df06ed3b7114aa2e6ef6dd945655a6329d | /oku.py | 94227a3bb5f5d1c9c553e55676cf18669e10f3bb | [
"Apache-2.0"
] | permissive | mzuvin/bol-parcala-yonet | 043336beaf23158463c6ac4391c2fbf9ab91eebd | 4b5e1ddb405d4eb9a767fd5b03aa6f98f1e62a77 | refs/heads/master | 2020-04-11T07:41:17.070645 | 2018-12-13T09:57:12 | 2018-12-13T09:57:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,670 | py | #python ile büyük dosyaları satır satır okuma işleme arama yapma
import os,time,re,sys,random,threading
#regex desenimiz
regex = r"[0-9]+"
dosyaYolu='data.txt'
def oku(boyut):
bas=boyut.split('/')[0]
son=boyut.split('/')[1]
f=open(dosyaYolu)
f.seek(int(bas))
lines=f.read(int(son)).spli... | [
"noreply@github.com"
] | noreply@github.com |
bf48d99032b71025a6866216f93638dade663ca6 | 10d09408c25e0d41230a3e952f8eca466fd8ccda | /schemas.py | 1bea189b856a48caf12c4dbefaee8af7af57a241 | [] | no_license | Loosper/telemetry | ea0077490b4f21091cf9aa7ea1c3fd28e44c976b | b040c4553c4ceab5333cfc2d4d3a27ea76ec8cf8 | refs/heads/master | 2021-01-13T07:29:26.072081 | 2017-07-24T14:16:32 | 2017-07-24T14:16:32 | 71,283,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 955 | py | from voluptuous import (
Schema, Required, MultipleInvalid, All, Any, Number, In,
Date, Match
)
company_mapping = {
-1: None,
0: 'Maverick Cardio-Telemetry',
1: 'Maverick Water-Telemetry'
}
providers = ['Amazon', 'NewEgg']
device_types = ['cardio', 'medical', 'telemonitoring']
carriers = ['Mtel', '... | [
"boian4o1@gmail.com"
] | boian4o1@gmail.com |
ec8f221cde5fdf597b6c8d7493464006d316c717 | d2dda11e125068512c5c0db0f24b80bc53c94ce3 | /LeetCode/Ex0/Ex88.py | 730a58387b0e8f11def225a9734664b6064cfec2 | [] | no_license | JasonVann/CrackingCodingInterview | f90163bcd37e08f6a41525f9f95663d5f42dd8e6 | 8f9327a1879949f61b462cc6c82e00e7c27b8b07 | refs/heads/master | 2021-09-02T09:28:34.553704 | 2018-01-01T12:05:12 | 2018-01-01T12:05:12 | 110,519,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | class Ex88(object):
def merge(self, nums1, m, nums2, n):
"""
:type nums1: List[int]
:type m: int
:type nums2: List[int]
:type n: int
:rtype: void Do not return anything, modify nums1 in-place instead.
"""
k = m + n - 1
i = m - 1
j = n -... | [
"jasonvanet@gmail.com"
] | jasonvanet@gmail.com |
68c51d1866bc0265a7be5a7a8f911c0c0a1e7eda | a636f4eb15d85e7bb5c3a1ac431b0d107f8b49eb | /code/01_Daten_Merge.py | a99495600ade908e7207f51bf4a395b2ed4ebaa8 | [] | no_license | DS1-ATeam/covid-19 | 5056603fcf11c0fc8d19e7949176a21926fb87c6 | 52efde5c84756a6786b4dc8e00de5c27dbce705a | refs/heads/master | 2022-11-10T05:46:16.632421 | 2020-06-26T14:24:54 | 2020-06-26T14:24:54 | 273,921,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,107 | py | # -*- coding: utf-8 -*-
"""
@author: ATeam
"""
################
# Daten mergen #
################
############################
# Bibliotheken importieren #
############################
import pandas as pd
import sqlalchemy as db
##################
# Daten einlesen #
##################
kreise_sterberate = pd.read_cs... | [
"stefanklug95@web.de"
] | stefanklug95@web.de |
9de4328c990241cfbf7d1d75a9cfce27d3959d8e | 81b90328f11b42736f4a2313f87ca704d660879e | /neuralgas/examples/example_train_on_iris_kfold.py | 37c25513e0d2c7372a6aee19f8f1183c7c4b2149 | [] | no_license | pietromarchesi/neuralgas | b3deb1f0373dd26bd37ba6b329c1b9e6dfb83477 | 37769203fe30897a8cdbb3dac5e052cd2b1acadc | refs/heads/master | 2021-06-15T23:30:25.920418 | 2017-05-11T15:36:01 | 2017-05-11T15:36:01 | 82,312,094 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | import numpy as np
import logging
import sklearn.datasets
import sklearn.metrics
import sklearn.model_selection
from neuralgas.oss_gwr import oss_gwr
iris = sklearn.datasets.load_iris()
X = iris.data
y = iris.target
kf = sklearn.model_selection.KFold(n_splits=10)
acc = []
for train_index, test_index in kf.split(X):... | [
"p.marchesi@uva.nl"
] | p.marchesi@uva.nl |
69934e8bb364518dc2211b8437956f41afedb242 | fc98d6ba7da477e38840edf00e5b1a8552c14924 | /my_module.py | 1f5890243c3f5aa0b2cb97360b3ff6fbec7ed2ff | [] | no_license | Hitvardhan-Singh-Solanki/python-bootcamp | f599450238e55f3c952cfdc9012fa47fbae70f44 | 1ec2473c6a3256676c249d8d60f3c8f545e4686f | refs/heads/master | 2020-04-16T13:44:07.018930 | 2019-01-18T09:09:44 | 2019-01-18T09:09:44 | 165,640,376 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | def myfunc():
print("FROM MODULE!")
return "from module"
| [
"Hitvardhan.Solanki@gds.ey.com"
] | Hitvardhan.Solanki@gds.ey.com |
6f353343ebfd3b1bb1b40a1c028e27b4db514c59 | 7a550d2268bc4bc7e2fec608ffb1db4b2e5e94a0 | /1401-1500/1475-Final Prices With a Special Discount in a Shop/1475-Final Prices With a Special Discount in a Shop.py | 4b181402e0898044f9b11bafe9ab82e4848e82b7 | [
"MIT"
] | permissive | jiadaizhao/LeetCode | be31bd0db50cc6835d9c9eff8e0175747098afc6 | 4ddea0a532fe7c5d053ffbd6870174ec99fc2d60 | refs/heads/master | 2021-11-05T04:38:47.252590 | 2021-10-31T09:54:53 | 2021-10-31T09:54:53 | 99,655,604 | 52 | 28 | MIT | 2020-10-02T12:47:47 | 2017-08-08T05:57:26 | C++ | UTF-8 | Python | false | false | 362 | py | class Solution:
def finalPrices(self, prices: List[int]) -> List[int]:
n = len(prices)
result = [0] * n
St = []
for i in range(n - 1, -1, -1):
while St and prices[i] < St[-1]:
St.pop()
result[i] = prices[i] - (St[-1] if St else 0)
S... | [
"jiadaizhao@gmail.com"
] | jiadaizhao@gmail.com |
930ecbf87a7438ad4356edae2d94461dcdcc3d1f | 0666e1fad716ada85d175a844e61fd3bae068318 | /GoogleOutput/parser.py | fb732fd6791807c8b2055d298d9a8b72bf65ddc1 | [] | no_license | erzaliator/word2vec-curiosity | ef9cc6d4a3c745a83825600e568ed3adfc998274 | 8fa177a83f37b7ff822f602350b7569c25b3cd5b | refs/heads/master | 2021-01-18T23:14:53.741107 | 2016-11-04T04:25:02 | 2016-11-04T04:25:02 | 72,683,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 744 | py | mapping=dict()
temp=""
plain=open('unigrams','w')
unique_values=[]
with open('curiosity_output') as f:
for line in f:
line=line[:-1]
# print line
# print "---------------------------------------"
try:
#it is the list
fruits = eval(line)
# print "fruits",fruits
mapping[te... | [
"comethalley61@gmail.com"
] | comethalley61@gmail.com |
f0475f552f3189f8e821832b8f4615014a10222b | df77c7431f2576b1810938e750fe3b77110b73ed | /resize-images.py | 4781696671357959ea47968d113ec616c72a95df | [] | no_license | Korbisch/image-resize | 3bac2df68b34ce47297ee54de5306fe4185aa956 | f9fc8289d3bdfdf567914b145d6494242c6a3777 | refs/heads/master | 2023-01-30T15:26:54.602064 | 2020-12-14T18:46:35 | 2020-12-14T18:46:35 | 321,437,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 653 | py | # python script to resize images
# overwrites all the images in the same
from PIL import Image
import os
import sys
# set path to directory here
directory = "Path"
for file_name in os.listdir(directory):
print("Processing %s" % file_name)
try:
image = Image.open(os.path.join(directory, file_name))
... | [
"korbinian.schleifer@gmail.com"
] | korbinian.schleifer@gmail.com |
e879014372eba55f1488cb5d2e545eeb90fac00e | 68aabdfc01678012b0635f7c954af04491592fbc | /src/matejc/myportal/tests/test_setup.py | 241d6819855efc1493fe834897577849a9ddb258 | [] | no_license | matejc/matejc.myportal | 23a701061422ec52431faa8f571adb9342eb7535 | 220163383514465444a7e81425933108f293653e | refs/heads/master | 2016-08-04T00:19:05.340043 | 2014-05-24T21:36:59 | 2014-05-24T22:25:14 | 8,150,110 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,176 | py | # -*- coding: utf-8 -*-
"""Setup/installation tests for this package."""
from matejc.myportal.testing import IntegrationTestCase
from plone import api
class TestInstall(IntegrationTestCase):
"""Test installation of matejc.myportal into Plone."""
def setUp(self):
"""Custom shared utility setup for te... | [
"matejc@kiberpipa.org"
] | matejc@kiberpipa.org |
3ea9a191dc1591e06c4a01ad61eaae4a8fc32fe3 | 925f1c159e2809d9505a1bd8dd343c7123506261 | /arm_kinematics_tools/scripts/create_ikfast_moveit_plugin.py | ff098b68c7c0e591732ad1aa81fc864ae28634f4 | [] | no_license | rethink-rlinsalata/kaist-ros-pkg | 3bdbdafd20380011c2d98d3c6b14823dfc279ab9 | 7679ac314ed412a115294ead8c00a4ddbcd31acc | refs/heads/master | 2021-01-17T11:59:05.099748 | 2013-03-14T07:42:10 | 2013-03-14T07:42:10 | 42,735,053 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,032 | py | #! /usr/bin/env python
'''
IKFast Plugin Generator for moveit
Creates a kinematics plugin using the output of IKFast from OpenRAVE.
This plugin and the move_group node can be used as a general
kinematics service, from within the moveit planning environment, or in
your own ROS node.
To use, you should have created y... | [
"davidb@kaist.ac.kr"
] | davidb@kaist.ac.kr |
430824462729548581bdc19129e9be54edd89a74 | ea3ae95eb504e09529ec3d6b05230a466479fa7e | /ApplicationLogger/logger.py | 10fdaca7615ca2565ca6d78ae0545b0293527440 | [] | no_license | motheesh/tweet | f172ebb00a18be53edf8c426d3ac3113cd435783 | aede8c7e0a26d71480992fca6c0eb71bdee1104a | refs/heads/main | 2023-08-18T18:20:11.647785 | 2021-10-02T13:49:03 | 2021-10-02T13:49:03 | 412,808,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 980 | py | import logging as lg
import time
import logging.config
from os import path
class logger:
def __init__(self,path="./ApplicationLog"):
self.logPath=path
self.log_file_path="./ApplicationLogger/logging.config"
def log(self,errorType,error):
filename=time.strftime("%m_%d_%Y")
... | [
"motheesh96@gmail.com"
] | motheesh96@gmail.com |
4d8f17adb5adc19acf2d26d281bb5cad1e75b509 | 325b8e1688b818a4dbf947e87e931dba8b9003f6 | /build/lib/juneau_extension/jupyter.py | 750cc4e3797457fd7080732e69892a3cc2c64d5b | [] | no_license | peterbaile/jupyter-extension | 301721a01caacb05ea29f7b786d1976330da81f5 | 3111caba4af7f732971378e5f0d25d9d02d3aa1b | refs/heads/master | 2022-11-16T16:39:06.269422 | 2020-07-15T00:14:15 | 2020-07-15T00:14:15 | 269,253,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,704 | py | from jupyter_client import find_connection_file
from jupyter_client import MultiKernelManager, BlockingKernelClient, KernelClient
import logging
from queue import Empty
import sys
import site
import subprocess
import json
import juneau_extension.config as cfg
from juneau_extension.file_lock import FileLock
logging.ba... | [
"peterchenwflms@gmail.com"
] | peterchenwflms@gmail.com |
0315c96e5abc1d9431a14f6e69cc73e0f1086007 | 5864e86954a221d52d4fa83a607c71bacf201c5a | /eve/client/script/ui/station/lobby.py | 23ab9fb309b4ecb67c73b5253ea850ec54d24f23 | [] | no_license | connoryang/1v1dec | e9a2303a01e5a26bf14159112b112be81a6560fd | 404f2cebf13b311e754d45206008918881496370 | refs/heads/master | 2021-05-04T02:34:59.627529 | 2016-10-19T08:56:26 | 2016-10-19T08:56:26 | 71,334,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47,461 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\eve\client\script\ui\station\lobby.py
import blue
from carbon.common.script.util.format import FmtAmt, CaseFoldCompare
from carbonui.control.basicDynamicScroll import BasicDynamicScroll
from carbonui.control.scrollentries import SE_Base... | [
"le02005@163.com"
] | le02005@163.com |
e02885b6cd8708e0cc8a5c11902ad7c189c28a49 | 4c67dfb8e7c4f16c138aa4625a5bac2a3a99c48c | /hw7.py | 6f6651cda6d2ef87b86fdb0d2bf9be35b46da416 | [] | no_license | maryblack/intro_to_ML | b07bd6117e5f6c86a3323390a2e02be37ad29bb6 | eaf2b5add1bc1e16bb1691df64f5fd4a93b6bd32 | refs/heads/master | 2020-06-16T17:28:48.372453 | 2019-07-28T17:02:01 | 2019-07-28T17:02:01 | 195,650,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,866 | py | import pandas as pd
import numpy as np
import math
from sklearn.metrics import roc_auc_score
def scalar_prod(w1,w2):
s = 0
for i in range(0,len(w1)):
s+= w1[i]*w2[i]
return s
def r_exp(x_i1, x_i2, y_i,w1,w2):
return 1 - 1/(1+math.exp(-y_i*(w1*x_i1+w2*x_i2)))
def a_sigma(x, w):
return 1/(... | [
"maniya.chernova@gmail.com"
] | maniya.chernova@gmail.com |
62e04bbd95a7026917581159582cad7cf4093504 | 5a99abab42b690ef5e71a72d16243e3497d940bc | /tp_purchase/models/__init__.py | 3ac324efa58021cc8b65959f415ab23203f20272 | [] | no_license | arRki1/odoo_module | e48a0992f7f2293cfd2ae8b0f768c125ea12daba | 5c8b55ed94ae67916df0459f56220133781a60ab | refs/heads/master | 2023-01-29T05:07:34.947364 | 2020-12-08T08:46:47 | 2020-12-08T08:46:47 | 314,103,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | # -*- coding: UTF-8 -*-
from . import purchase_stage
from . import purchase_order
| [
"arrki1_git@163.com"
] | arrki1_git@163.com |
97e4f586954b32923cee09c942c961dc8c127c0e | b2f48d7bb94df04ee32f27d5d2b0d5954a4e52b0 | /tests/fetcher.py | 832ac2e857616edbd3d216c1d4d409479098e4ed | [] | no_license | tp6vup54/myStock | f195fee1c2aa1a60fdf63559085b1001e8cae121 | e2a4caf0d27ae458a363dfd773b001b9723e5b3b | refs/heads/master | 2022-12-12T03:39:23.301005 | 2020-09-17T12:33:18 | 2020-09-17T12:37:11 | 290,576,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,470 | py | from bs4 import BeautifulSoup
import unittest
from fetcher.id import StockIdFetcher
class TestFetcher(unittest.TestCase):
def setUp(self):
self.test_raw_text = """
<body>
<h2><strong><font class="h1">本國上市證券國際證券辨識號碼一覽表</font></strong></h2>
<h2>
<strong>
... | [
"genius091612@gmail.com"
] | genius091612@gmail.com |
109befbc05f0567fd884dabebd24fff19c8a95f7 | a46a1f35e096ccb1659222e92ba84666724f8058 | /grad-descent.py | 0f2eb72438896e54de3afb8d8dd2d33079ae8650 | [] | no_license | Felix660/wustl-math449 | d82da335defe48ef5cf13a75731838e385d59412 | b5f6aada9c36aa2000f634054e15e44be673d989 | refs/heads/master | 2023-03-19T23:23:17.651831 | 2020-12-11T23:22:54 | 2020-12-11T23:22:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,207 | py | #%%
import numpy as np
import matplotlib.pyplot as plt
from utils import *
# %%
# f = lambda x,y: x**2 + 2*y**2 + 4*x + y + 6
f = lambda x,y: 100*(y-x**2)**2 + (1-x)**2 # Rosenbrock
# print(f(0., 2))
# %%
plot_coutour(f, box=(-2,2), scale='log')
#%%
plot_surface_2d(f, box=(-2,2),scale='log');
# %%
h = 1e-8
gradhx = lam... | [
"scao.math@gmail.com"
] | scao.math@gmail.com |
77ceb0223c09fd8f4e1e20c731296bf4051c99b9 | f4fce41f2b3cba606d2a36075de356434602d1c0 | /xwing_rulebook/rules/migrations/0005_auto_20170114_1838.py | dacc057a40679a2cab8dc474b609d6614fdb0e31 | [] | no_license | lvisintini/xwing-rulebook | 24a392c12a2b13027e7cf65b9cc41e8a21585e3c | 6dc7ac58f962a4928843364dcfc077638384dc16 | refs/heads/master | 2021-01-22T19:41:32.960048 | 2018-07-25T10:53:35 | 2018-07-25T10:53:35 | 85,224,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-01-14 18:38
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('rules', '0004_auto_20170114_0010'),
]
operations = [
migrations.AlterField(... | [
"lvisintini@gmail.com"
] | lvisintini@gmail.com |
0908c1c55776df89765d3329e0a557520ade0b93 | d0528ac86cfbb323e3e0e2a667ac3fb29396b3b2 | /robosumo-tf1.1/model.py | 52d685916f89d597f5a3e542ee9d334f2002192d | [] | no_license | debajit15kgp/multiagent-competitive | 32223ec2d74d53556120b992c1a2b8e898957df7 | b54a4e1628909638f1110a94657dde2a4bd9ead9 | refs/heads/main | 2023-04-14T23:12:21.883586 | 2021-04-27T13:37:42 | 2021-04-27T13:37:42 | 362,123,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,104 | py | import tensorflow as tf
import joblib
import os
from baselines.common.tf_util import get_session
from baselines.common.tf_util import initialize
class Model(object):
"""
We use this object to :
__init__:
- Creates the step_model
- Creates the train_model
train():
- Make the training part ... | [
"c.debajit15@gmail.com"
] | c.debajit15@gmail.com |
319656fe921f03e471c8106c0cb1e344301332fc | 2e17f6cc87dbc13bd76b4ab16f0d51d17c5066ef | /mridc/collections/segmentation/models/idslr_unet.py | 3013e73a6bd13e992f78d5b824dcbe5e6ef3fffa | [
"Apache-2.0"
] | permissive | wdika/mridc | f91756778472f3313f2aedb962ecab19cee9832f | 6d15dd55ca5ed6fc9fbfd31d8488ee7bab453066 | refs/heads/main | 2023-08-17T16:57:30.676993 | 2022-12-16T17:09:53 | 2023-01-23T09:43:32 | 433,172,120 | 40 | 14 | Apache-2.0 | 2023-08-31T18:01:35 | 2021-11-29T19:32:33 | Python | UTF-8 | Python | false | false | 10,171 | py | # coding=utf-8
__author__ = "Dimitrios Karkalousos"
from abc import ABC
from typing import List, Tuple, Union
import torch
from omegaconf import DictConfig, OmegaConf
from pytorch_lightning import Trainer
import mridc.collections.common.parts.fft as fft
import mridc.collections.common.parts.utils as utils
import mri... | [
"noreply@github.com"
] | noreply@github.com |
84d9955c742dab4d794893ed7783d6440bd8ce9c | 8e79d715f44068226048d6957a6fd5f3d587977c | /_1327/documents/templatetags/num_revisions.py | c0bbb8ad569f63e74a82cecc1cf4cf2708d5a2d5 | [
"MIT"
] | permissive | PFischbeck/1327 | 73990e77a98ac4487b7e709fc83fecbb7530c607 | 96ba119390e5166fa722a63259cb245d3d791c5a | refs/heads/master | 2021-01-18T01:24:24.113677 | 2017-01-04T15:35:38 | 2017-01-04T15:35:38 | 33,887,428 | 0 | 0 | null | 2015-04-13T18:54:53 | 2015-04-13T18:54:53 | null | UTF-8 | Python | false | false | 208 | py | from django import template
from reversion import revisions
register = template.Library()
@register.filter
def num_revisions(document):
versions = revisions.get_for_object(document)
return len(versions)
| [
"christian.bartz@student.hpi.uni-potsdam.de"
] | christian.bartz@student.hpi.uni-potsdam.de |
85f2ca2dc3e54d1d6bd9647dad7d3cbe14a37fcb | 3f7d5999bb7e5a75454c8df2c5a8adcd1a8341ff | /tests/unit/mock/procenv.py | a97081a52d2332cb01f5d0017c20c9c3ff26917c | [] | no_license | ansible-collection-migration/ansible.fortios | f7b1a7a0d4b69c832403bee9eb00d99f3be65e74 | edad6448f7ff4da05a6c856b0e7e3becd0460f31 | refs/heads/master | 2020-12-18T13:08:46.739473 | 2020-02-03T22:10:49 | 2020-02-03T22:10:49 | 235,393,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,735 | py | # (c) 2016, Matt Davis <mdavis@ansible.com>
# (c) 2016, Toshio Kuratomi <tkuratomi@ansible.com>
#
# This file is part of Ansible
#
# Ansible 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 3 of ... | [
"ansible_migration@example.com"
] | ansible_migration@example.com |
9402a28531a151b5fd11fcfe2386ccbbfc1caea8 | affdede1070ccabed6390f9e0f17af65044bc8fa | /Douyu/settings.py | d0bf4225b2d05dc45ad6a0b0fe63e110f9a4b222 | [] | no_license | nenyah/Douyu | fb253af7ebfcb5fb89e02642bf9ce865af28f0dd | 9dc0a93aa141620d7f957c15d41e558a54c8812c | refs/heads/master | 2020-03-07T08:57:18.862040 | 2018-03-30T07:16:16 | 2018-03-30T07:16:16 | 127,393,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,298 | py | # -*- coding: utf-8 -*-
# Scrapy settings for Douyu project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
# http://scrapy.readthedocs.org/en/latest/t... | [
"steven@nenyah.com"
] | steven@nenyah.com |
523701e4b1c0dde83404b46ab63526d1ed263308 | 7b4b31a8b736db18995474ac109cfbee868cca7a | /interface/user_login_online.py | d77555321638ec80cad8000b9b971a2b88496131 | [] | no_license | morainwang/yqt | d727cf61c481943b61eef67af44ce91651d675e5 | 390e5f8b50df046f4c02be5461f3fc0be55cef34 | refs/heads/master | 2021-01-10T06:47:14.763655 | 2016-02-04T06:02:15 | 2016-02-04T06:02:15 | 51,055,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,109 | py | #!/usr/bin/env python
# coding=utf-8
from multiprocessing import Process, freeze_support
import socket
import time
import msgserver_login
def login(uid):
msgserver = msgserver_login.Login(uid)
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect((msgserver[0], 8888))
def ke... | [
"945999681@qq.com"
] | 945999681@qq.com |
547e79d647115309955394e12606923465f9ea83 | 59b7d7000c21dfb4f55cffde2e53249627c9e028 | /11_ContainerWithMostWater/container_with_most_water.py | 2536ce2ad28b7718b5111d981d1c1217ff573d5d | [
"MIT"
] | permissive | xiaowei1118/leetcode-python | 5d95bca7367456c0ec99ece294ea9086295cd2dc | 24d4ccbbf9643100dd2de91afd5d30dca9b7ffe1 | refs/heads/master | 2022-02-18T18:41:59.896822 | 2019-09-10T02:45:54 | 2019-09-10T02:45:54 | 106,224,695 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,113 | py | # coding: utf-8
# 给定 n 个非负整数 a1,a2,...,an,每个数代表坐标中的一个点 (i, ai) 。
# 在坐标内画 n 条垂直线,垂直线 i 的两个端点分别为 (i, ai) 和 (i, 0)。
# 找出其中的两条线,使得它们与 x 轴共同构成的容器可以容纳最多的水。
#
# 来源:力扣(LeetCode)
# 链接:https://leetcode-cn.com/problems/container-with-most-water
class Solution(object):
# 递归做法
def maxArea1(self, height):
"""
... | [
"zhengzhihao@thundersdata.com"
] | zhengzhihao@thundersdata.com |
841788cb2b9f1b192dd965780e12d2fb0f4b6501 | de7e12d132900a7d1e45ece28c804a68d68f452e | /author/thinkstats2.py | fb28823a5bd0225f50a2be7cb4f2648732e67e37 | [] | no_license | Kira1108/ThinkStats_impl | 7c40d811b9127a00d7e295eef5ec4b1a9b19919b | c1b34cfb651ce5302a1364f68516269af3fba05c | refs/heads/main | 2023-01-23T23:20:04.700260 | 2020-12-08T08:18:55 | 2020-12-08T08:18:55 | 319,367,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69,821 | py | """This file contains code for use with "Think Stats" and
"Think Bayes", both by Allen B. Downey, available from greenteapress.com
Copyright 2014 Allen B. Downey
License: GNU GPLv3 http://www.gnu.org/licenses/gpl.html
"""
from __future__ import print_function, division
"""This file contains class definitions for:
H... | [
"327485253@163.com"
] | 327485253@163.com |
60478f86d50f53b1d361c8a21deef2a43bb1ef65 | 6c33e4baeda15398a910382ed64f646825591dd0 | /run_project/02_Pima_Indian.py | 893c61f5e55315aec58778663dd56e783fb4b587 | [] | no_license | ss820938ss/pythonProject_deeplearning | 0ad26797299df1eb5b549bd2a5309502d58a495c | baa55f492f07da955b45573ac52d7f61f2d0ee0d | refs/heads/master | 2023-07-09T15:50:37.319896 | 2021-08-10T05:15:46 | 2021-08-10T05:15:46 | 391,771,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,308 | py | # pandas 라이브러리를 불러옵니다.
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
# 피마 인디언 당뇨병 데이터셋을 불러옵니다. 불러올 때 각 컬럼에 해당하는 이름을 지정합니다.
df = pd.read_csv('../dataset/pima-indians-diabetes.csv',
names=["pregnant", "plasma", "pressure", "thickness", "insulin", "BMI", "pedigree", "age", "cl... | [
"ss820938ss@gmail.com"
] | ss820938ss@gmail.com |
c83f7444ebca5692c7791e84d42cf962c4f62073 | a0ea3ba271a1a668314c5b66ad6c5c7eb1ecac50 | /WebPractice/NetworkProgramming/urlopen_retrieve.py | 2bb6bedd2fcb9976ba7c7980c92435f77234a041 | [] | no_license | jihaibo/workspace | b99f4cf2305ef57073d764b4ada7f78eb21a895c | 7377238b71d7e757f9b5c7f8f3ae8ddc0e97c073 | refs/heads/master | 2020-12-13T19:13:57.440147 | 2018-08-02T10:44:51 | 2018-08-02T10:44:51 | 90,354,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | # -*- coding:utf-8 -*-
author = 'haibo'
time = '2018-7-28'
"""
获取远程文件
"""
import urllib
urllib.urlretrieve('http://www.itzcn.com','D:\\workspace\\WebPractice\\NetworkProgramming\\python_webpage.html') | [
"1038726264@qq.com"
] | 1038726264@qq.com |
7d538662625104748e0d8ce3db20225b2e8cb6a1 | 30ec40dd6a81dbee73e7f14c144e20495960e565 | /kubernetes/test/test_v1_persistent_volume.py | 3f2fe9cff5949e5488c0fb3e07e8efbe740227a8 | [
"Apache-2.0"
] | permissive | jonathan-kosgei/client-python | ae5a46968bcee19a3c62e1cefe227131ac9e7200 | 4729e6865d810824cafa312b4d06dfdb2d4cdb54 | refs/heads/master | 2021-01-20T14:59:10.435626 | 2017-05-08T16:55:51 | 2017-05-08T16:55:51 | 90,700,132 | 1 | 0 | null | 2017-05-09T03:50:42 | 2017-05-09T03:50:42 | null | UTF-8 | Python | false | false | 883 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.6.3
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
im... | [
"mehdy@google.com"
] | mehdy@google.com |
f9d70260ccb5d6e5df08bf64912526f78e6915f3 | 9693bf86a08fff02617273ed12371cf144edd045 | /n1_baseTensorNN.py | 7870c5eb5dac4daa22b51ea6479995158a4194e9 | [
"MIT"
] | permissive | Leticia-Han/PythonMachineLearningExamples | 07d3749f97a864aeba36393d0fd0f5ce6db47a05 | 1ebc7f59ae01897d3cb516e87d308a4ef0022299 | refs/heads/master | 2021-10-10T21:44:23.816963 | 2019-01-17T17:57:15 | 2019-01-17T17:57:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,149 | py | import tensorflow as tf
import numpy as np
from collections import namedtuple
import datetime
import ocr_utils
'''
# To see the results in Chrome,
# Run the following in terminal to activate server.
# tensorboard --logdir '/tmp/ds_logs/'
# See results on localhost:6006
'''
c... | [
"richard.r.lyman@gmail.com"
] | richard.r.lyman@gmail.com |
fc6f4873dd90721d5e4783320ce22debaab6d6c1 | 70670a7fecbc053c323f4368d8cda8383bf4cae7 | /dl/utils/pp.py | 07bdc2ea90df210c20120c72f9815c2066adb32a | [] | no_license | YujunLiao/CV202009 | a23d9cb973869eee062ccc0b3551521e5a4a543e | a4b5cc20aa9790e58810e89125547ccbeebbc8ec | refs/heads/master | 2023-01-20T12:05:06.210596 | 2020-11-27T02:31:51 | 2020-11-27T02:31:51 | 298,990,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | import torch
def pretty_print(data):
print('----------------------------------------------')
if isinstance(data, str):
print(data)
if isinstance(data, list):
data = [str(_) for _ in data]
print(' '.join(data))
if isinstance(data, dict):
for _ in data.items():
... | [
"18916108830@163.com"
] | 18916108830@163.com |
07997779e8cb092d9e00990c2bf7bdcbb19f1282 | 0a48cf58d634c61edc28650588cced7957d5f552 | /main.py | 30619cdaaf2000ad21899ffac95a481022ba17c6 | [] | no_license | LakshyAAAgrawal/Polyplotter | 19a8318db0069d8d5ac18ac1f229543c8398fa59 | 5f7da7a6cacc67bc62e515c9eb3e6b1277606cd1 | refs/heads/master | 2020-04-30T18:06:32.399874 | 2019-03-21T18:31:41 | 2019-03-21T18:31:41 | 177,000,384 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,377 | py | # Author : Lakshya A Agrawal
'''
This is a wrapper program for the Polygon class, which initiates a Polygon object, and gives an interace to visualize the transformations by issuing commands.
Usage:
after running the program, type the type of object to be created
polygon
fo... | [
"lakshya.aagrawal@gmail.com"
] | lakshya.aagrawal@gmail.com |
6effd0d2562d816e58d889808b24eb4eba7e3903 | 77900cdd9a815caf1cd04705321ca93f5072179f | /Project2/Project2/.history/blog/models_20211114171729.py | abf6466b64bc0655018e82ba7b33ac84f8f2a026 | [] | no_license | Bom19990111/helloword_python | 717799d994223d65de5adaeabecf396ff2bc1fb7 | 2ee2e67a60043f03c1ce4b070470c7d2dcdc72a7 | refs/heads/master | 2023-09-06T04:17:02.057628 | 2021-11-21T20:00:46 | 2021-11-21T20:00:46 | 407,063,273 | 0 | 1 | null | 2021-11-21T20:00:47 | 2021-09-16T07:18:35 | Python | UTF-8 | Python | false | false | 378 | py | from django.db import models
# Create your models here.
class Blog(models.Model):
title = models.CharField(max_length=250, blank=True)
slug = models.SlugField(max_length=250, blank=True)
author = models.ForeignKey(User, on_delete=models.CASCADE)
description = models.TextField()
date = models.Date... | [
"phanthituyngoc1995@gmail.com"
] | phanthituyngoc1995@gmail.com |
01291b9539d87fe62322d381ccc05afde2868cde | ce631cf6b27273ca54359b09f6cb5677bc6a6846 | /final_project.py | 3d993c078d1b451c41cda46ad1986cfd8a604d93 | [] | no_license | lyzlisa/ud088-restaurant-webapp | 13449fa146c465d8b310582a1cce2072cf999858 | 8c53c123a401dcd693a8e316e444154e70f17c0f | refs/heads/master | 2023-03-12T17:48:30.261669 | 2021-03-04T01:40:21 | 2021-03-04T01:40:21 | 334,025,482 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,980 | py | import os
from flask import Flask, render_template, request, redirect, url_for, flash
from db import DBSession
from models import Restaurant, MenuItem
from api import api
app = Flask(__name__)
app.url_map.strict_slashes = False
app.register_blueprint(api)
@app.before_request
def clear_trailing():
rp = request.... | [
"lisa.y.zhu@gmail.com"
] | lisa.y.zhu@gmail.com |
98d4948b986f60c3d4fb60f286e763e24192f924 | 71b11008ab0455dd9fd2c47107f8a27e08febb27 | /09、UI自动化测试及黑马头条项目实战/day08/03代码/等待操作.py | 2c49f02ff15dd038da5d5fa6df7401ffbae20dc0 | [] | no_license | zmh19941223/heimatest2021 | 49ce328f8ce763df0dd67ed1d26eb553fd9e7da4 | 3d2e9e3551a199bda9945df2b957a9bc70d78f64 | refs/heads/main | 2023-08-25T17:03:31.519976 | 2021-10-18T05:07:03 | 2021-10-18T05:07:03 | 418,348,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,090 | py | import time
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.webdriver.common.by import By
from utils import get_element, input_text
des_cap = {
"platformName" : "android" , #表示的是android 或者ios
"platformVersion" : "5.1.1", #表示的是平台系统的版本号
"deviceName" : "****"... | [
"1780858508@qq.com"
] | 1780858508@qq.com |
ceca97e44c6e4f36718d127abad5c6a5009920ff | 95a11241714d3827987a0129f99b9330c867144b | /app_risco.py | 9ddaee5a34046ad108eef3884a4cc134b53bc037 | [] | no_license | demetriusengdados/CienciadeDadosRaizNotebooks | 9c120133a6dffe7e9ee0b2cf030d6f325596d4a5 | 2246513edbc77e0e0136e82ce05368cd9c6efd6a | refs/heads/main | 2023-03-26T17:50:07.547937 | 2021-03-26T15:05:29 | 2021-03-26T15:05:29 | 348,371,668 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,521 | py | import pandas as pd
import streamlit as st
import plotly.express as px
# função para carregar o dataset
@st.cache
def get_data():
return pd.read_csv("risco.csv")
# função para treinar o modelo
def train_model():
data = get_data()
data = data.drop(columns='id_cliente')
#Separando o... | [
"noreply@github.com"
] | noreply@github.com |
8f8b2ff559b6f1e0ee2e881dea34b83106c2a870 | f8436949ae6fb4eb42bf1badfaf3cb63dbdba61c | /pnt.py | b82ebf2a38f70af148b2e902fede58acc3867119 | [] | no_license | reulan/google_foobar | 6e4e3175fd7f7ebf09e4f636e77041c64f699c64 | 14e64252e709c1707c7ffd309e4b7d1c25e6ea85 | refs/heads/master | 2021-06-05T09:36:47.516030 | 2016-09-29T22:41:11 | 2016-09-29T22:41:11 | 69,091,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 980 | py | class Point(object):
"""Creates a point class matching a coordinate and including prisoner_id."""
def __init__(self):
"""Default constructor if point is given no values."""
self.x = 0
self.y = 0
self.pid = 0
def __init__(self, x, y):
"""Default constructor if point ... | [
"os@mpmsimo.com"
] | os@mpmsimo.com |
d4bf4a1ce5dd148cbf4958b5c7e17972349dca8f | c3ba17469ae8ac091a86bf43a8e6d7a90d55c891 | /card/opt_p.py | ca124f9fe2ca248f7eda8cfe8701f2a979059145 | [
"Apache-2.0"
] | permissive | joakimzhang/qa_study | 05f0ce2954654e51c3af5182334b906fbb467929 | ff8930e674d45c49bea4e130d14d73d17b090e48 | refs/heads/master | 2020-05-21T17:55:07.845016 | 2017-03-28T02:54:06 | 2017-03-28T02:54:06 | 64,127,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | # coding:utf8
import optparse
import sys
parser = optparse.OptionParser()
parser.add_option('-a', action="store_true", default=False, help="the a option")
parser.add_option('-b', action="store", dest="b", help="the b option")
parser.add_option('-c', action="store", dest="c", type="int", help="the c option")
parser2 =... | [
"joakimzhang@163.com"
] | joakimzhang@163.com |
77e29b57c17461c94d1d533825481c6e5bcde110 | 7e1b095e5b16987e2e9871f7b48e492aacc4d14a | /python/days/day_08.py | 8525628c30ec8edbcfbf39d5ef7acfb351f57ae1 | [] | no_license | dfinninger/advent-of-code-2018 | 10315e85d6d18020518b9f0725fd1d182d80f2fb | ccdf9e57de55b9e728d2c3eb4037249997e4d503 | refs/heads/master | 2020-04-08T22:18:22.089953 | 2018-12-14T01:03:39 | 2018-12-14T01:03:39 | 159,781,421 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,391 | py | #!/usr/bin/env python3
"""Advent of Code, Day 08"""
class Node:
def __init__(self):
self.children = []
self.metadata = []
def _get_data():
with open("../data/d08p1.txt", "r") as f:
data = f.read().split()
return [int(x) for x in data]
def _to_tree(data):
num_children = dat... | [
"dfinninger@tesla.com"
] | dfinninger@tesla.com |
e46bcceeb1e79b9edce031b21c399f957deb42c3 | 1843fd5ccb4377240e664acd21ba5a9369eca2ab | /bluebottle/cms/migrations/0052_auto_20171027_1419.py | f9984292ed4b5065b5abffe1a367865208d217c1 | [
"BSD-2-Clause"
] | permissive | raux/bluebottle | ba2e576cebcb6835065004c410b22bd8a6b9ee29 | 49d92b5deb289c1539f99122abc20f845577b879 | refs/heads/master | 2020-03-27T03:20:11.465491 | 2018-08-23T13:09:25 | 2018-08-23T13:09:25 | 145,854,614 | 0 | 0 | null | 2018-08-23T13:05:00 | 2018-08-23T13:04:59 | null | UTF-8 | Python | false | false | 513 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2017-10-27 12:19
from __future__ import unicode_literals
from django.db import migrations, connection
from django.core.management import call_command
def migrate_homepage(apps, schema_editor):
call_command('migrate_homepage', tenant=connection.tenant.schema... | [
"ernst@onepercentclub.com"
] | ernst@onepercentclub.com |
28a7e0db120d3e16175e66ba2ffce1d63cb186b4 | 1051634f6475f8c2d919299f2222b289f2637167 | /Website/src/Blog/admin.py | e703a32602e5249ec37cedf51c5e597a5bdae528 | [] | no_license | taobupt/books-management | 823e7a9fffa19e7e576c7247be28d5b79ad93282 | cc2d2cc9419ed3e779e2535117cd5474de953930 | refs/heads/master | 2021-01-22T07:10:31.544499 | 2015-09-22T17:29:13 | 2015-09-22T17:29:13 | 42,905,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | from django.contrib import admin
from Blog.models import*
# Register your models here.
admin.site.register(MyUser)
admin.site.register(Book)
admin.site.register(Img) | [
"wangtaoo665@gmail.com"
] | wangtaoo665@gmail.com |
d285852497f8dd653f851867560b85abbab342a3 | 7d51eafd48d7af25ffb32f7f082e8ebad7d66dd7 | /dags/notebook_dags.py | b98c47ff8f9787ec838cad37310d34551bf86069 | [
"MIT"
] | permissive | glomero-maker/dromic-covid19-sitreps | e0abba3ad9145f7836579a40738c0466bfe5f62c | 6acff95d78ced8e6498d2fd263ec6c0994562de9 | refs/heads/master | 2022-04-24T16:49:33.517907 | 2020-04-29T02:56:58 | 2020-04-29T02:56:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,022 | py | import airflow
import boto3
import json
import logging
from airflow import DAG
from datetime import timedelta
from airflow.contrib.hooks.snowflake_hook import SnowflakeHook
from airflow.utils.dates import days_ago
from airflow.operators.python_operator import PythonOperator
from airflow.contrib.operators.snowflake_ope... | [
"111378+altcoder@users.noreply.github.com"
] | 111378+altcoder@users.noreply.github.com |
6d3dadff4855df7f95cecccfdac26225156b7255 | ef0ac2b1ab46e28cb2fa81162f9404caf700f7fa | /Lesson3_2.py | b668cb388e194f8bd2ef35577c7b539646d62a59 | [] | no_license | Krugger1982/practica | 00166553993ac9fd58a40aeb4943d478f82b6a25 | 07d0e647ca1460f439757f68201504e74d399e2d | refs/heads/master | 2023-01-22T17:14:09.000523 | 2020-11-19T21:37:31 | 2020-11-19T21:37:31 | 260,732,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | import random
summ = 0
for i in range(2):
x = str(random.randint(1, 10)) + '.txt'
print(x)
with open(x, 'tr') as a:
try:
s = a.readline()
while s!= '':
summ += int(s.rstrip())
s = a.readline()
except TypeError:
print ('В фай... | [
"noreply@github.com"
] | noreply@github.com |
2ecea5979db6133aff502b578a67fbd1acff5827 | 753a71b1c61f941e9b5c689beb5c9af0f69cbee1 | /setup.py | 8d843b025215c66e8dde44fb0c9bd0fe9a3e420b | [
"MIT"
] | permissive | ChadiHelwe/PyArabicNLP | 65ab0c50ff6c177fa996166c6553ccfd693b394c | 10e6450d322261e173cde4e6111d117656f9607c | refs/heads/master | 2023-02-13T04:04:28.035580 | 2021-01-01T20:33:46 | 2021-01-01T20:33:46 | 109,909,430 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 972 | py | from setuptools import find_packages, setup
def read_requirements():
"""parses requirements from requirements.txt"""
install_reqs = open("requirements.txt", "r").readlines()
reqs = [str(ir).strip() for ir in install_reqs]
print(reqs)
return reqs
with open("README.md", "r") as fh:
long_descri... | [
"chadi.helwe@gmail.com"
] | chadi.helwe@gmail.com |
0e2b44f859aca64bd367487dd794d1647916cfd0 | 732379c72dba2c2156a2c7e83e7169862831106d | /wtfforms/wtfforms/__init__.py | cdaaeb69eeefd17ea164c862fdc6ccea078ac2ad | [] | no_license | ktamas8/flask | ed096c529ccf6036da54d1e402221dd314264659 | dd57d2463c33a00b35013a9518831a76b5626489 | refs/heads/master | 2021-06-24T08:20:30.334354 | 2020-08-05T21:28:59 | 2020-08-05T21:28:59 | 213,634,974 | 0 | 0 | null | 2021-03-20T04:57:57 | 2019-10-08T12:23:09 | Python | UTF-8 | Python | false | false | 314 | py | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__, instance_relative_config=False)
app.config['SECRET_KEY'] = 'you-will-never-guess'
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:////home/nisz/flask/wtfforms/wtfforms/site.db'
db = SQLAlchemy(app)
from wtfforms import routes
| [
"KapolnasiT@kopdat.local"
] | KapolnasiT@kopdat.local |
eab63fbe82bca57625621d55524aca8e205a8fe3 | 3be1558230788f86a2ae3d9b7225e8b122673fcc | /forum1/asgi.py | 397397e94b670787304eae1ad0e95d0d4f7ec2db | [] | no_license | IlhomDavletov/hackaton1 | f68a8b1a9470ef1aa3af354ed0f1ab8457a1ebe7 | 66f4592fadc73067daf5e95a45d933e5bd3dbd8f | refs/heads/master | 2023-04-06T23:24:01.164776 | 2021-04-08T08:53:19 | 2021-04-08T08:53:19 | 355,830,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
ASGI config for forum1 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.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTIN... | [
"ilhomdavletov1994@gmail.com"
] | ilhomdavletov1994@gmail.com |
06d17a35cbc21975766a435d689cf485b870cecd | e8f7fdf81ed393bda363873b15bfdb835a944237 | /src/contest/problem_298.py | bae71ff6caa7d25b798ab2237437e7e539b02eea | [] | no_license | pantonioletti/python_hacking | 29393b6e30d629c5ffb671a4f569908414864c47 | ebd0a66d73fab605579a98378ae1d1abf220316e | refs/heads/master | 2021-01-11T02:28:47.604685 | 2016-10-14T20:51:24 | 2016-10-14T20:51:24 | 70,937,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,402 | py | '''
Created on Jul 22, 2010
@author: pantonio
'''
from sys import argv
from random import seed
from random import randint
from math import fabs
from threading import Thread
from time import sleep
import threading
class Multi_th_counter:
def __init__(self, val, lock):
self.counter=int(val)
... | [
"pablo.antonioletti@gmail.com"
] | pablo.antonioletti@gmail.com |
292922df67460ad972dc699f4fa57e221a7864d9 | 219abeecea273a9bff3110e16e90ef42d066f43b | /src/das/kapre/__init__.py | 1a27b16700500f81dcb923212b19b57f1fe98748 | [
"MIT"
] | permissive | janclemenslab/das | 255d68b90346c80200e50a9a26611fd5ed5ff82f | 77414b3ab685f080e187196164249f00aaa4a382 | refs/heads/master | 2023-09-04T23:34:50.999891 | 2023-08-28T09:47:28 | 2023-08-28T09:47:28 | 211,163,695 | 23 | 6 | null | 2023-01-04T11:58:53 | 2019-09-26T19:11:24 | Python | UTF-8 | Python | false | false | 237 | py | from __future__ import absolute_import
__version__ = "0.1.4"
VERSION = __version__
from . import time_frequency
from . import backend
from . import backend_keras
from . import augmentation
from . import filterbank
from . import utils
| [
"clemensjan@googlemail.com"
] | clemensjan@googlemail.com |
34658482aa9d8626eb276359c525914171603812 | 9f96edc222fbd016e3664803fb8932bbc2158b86 | /MCNPtools/to_temperature.py | b9ae94bb9cc52423574a73b4372768f9defd629a | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | mpinilla/MCNPtools | 65e6194827939c74d1dc033d3b190ffe82e7764b | 5192111910328bc2220d8fa421d5928d93305ced | refs/heads/master | 2021-09-24T08:11:37.826781 | 2018-10-05T12:41:57 | 2018-10-05T12:41:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | def to_temperature(E_in):
### assumes MeV, gives kelvin
import numpy
return numpy.multiply(11604.50520 , 1.0e6*E_in) | [
"ryan.bergmann@psi.ch"
] | ryan.bergmann@psi.ch |
715184433e0880b06cffd93aafcb0ed70d537c8d | 930822ded3de346524648244a6f8edc3e7a2a038 | /leetcode/maxProfit.py | 876984ef35022d6239ba77600de1160b2c0cb8db | [] | no_license | xy2333/Leetcode | 4ad317fa21d3b3c37859e76b25a87993c22ca1b2 | 5915e039868527d624ee4f0ad431d23c6ed2d8bd | refs/heads/master | 2020-06-19T13:30:14.755534 | 2019-08-12T02:12:03 | 2019-08-12T02:12:03 | 196,726,468 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | class Solution:
def maxProfit(self, prices):
if len(prices) <= 1:
return 0
maxprofit = 0
minrise = prices[0]
for i in range(1,len(prices)):
if prices[i] < minrise:
minrise = prices[i]
else:
maxprofit = max(maxprofit,prices[i]-minrise)
return maxprofit | [
"2531188679@qq.com"
] | 2531188679@qq.com |
a6d78ff474fd1580df292d9f8a1c8a5d5115120e | 9cd4ffc8b5f0bb4238444805e9f02e585885babc | /python-wot/things/mock_MovementSensor.py | 7c59b8af782a23a578978433b254acc9dbab94eb | [
"MIT"
] | permissive | marbirg/secure-iot-dashboard-prototype | 2a86304b34f34fe95fd362a1198c9cf603766c3c | 03c8410539c41a427bdb208257a18929bae8fb85 | refs/heads/main | 2023-09-03T06:14:54.856150 | 2021-11-05T16:22:25 | 2021-11-05T16:22:25 | 401,725,302 | 0 | 0 | null | 2021-11-05T16:22:25 | 2021-08-31T14:04:27 | Python | UTF-8 | Python | false | false | 2,082 | py | from webthing import (Action, Event, Property, MultipleThings, Thing, Value,
WebThingServer)
class FakeMovementSensor(Thing):
"""A sensor that detects movment."""
_instance_number = 0
_MIN_VALUE = -20
_MAX_VALUE = 50
def __init__(self, classification='private'):
... | [
"marcus.s.birgersson@gmail.com"
] | marcus.s.birgersson@gmail.com |
29d01b80c275af77e63f5fcd122ffecdf2cc0a5c | e4839f9c32cb57a2b907f2b3eb05f87b7cdcd9e5 | /templates/login/kamran.py | d2b1b5983fde4557ae6b6f00fd9127123f826e74 | [] | no_license | kalantarlikamran2/ali | 4fe900cfa67f40b3db1e2b850383871505e5249f | 413ece9ed5c3c45281dfbf3d5ce17af1da787e4a | refs/heads/main | 2023-01-03T15:51:35.826027 | 2020-11-04T20:46:29 | 2020-11-04T20:46:29 | 308,950,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | `
class ilkUygulama(App):
def build(self):
return Label(text='Merhaba Dünya!')
ilkUygulama().run() | [
"you@example.com"
] | you@example.com |
aee4e79f290b3fd40d4a7b48ee183e9474ecd328 | 83d3b73ed8e2eb75e1b8500b778c1a95bb0eab24 | /test/hard.py | 79eeec6f12b0e5b78e3e7ded7d20ff462e5885c8 | [
"MIT"
] | permissive | eaybek/hard | 46a6448124500304bfdaabe57f0887c74d4cdd30 | 35bddfbd24e0ab5c6d50d0d6bf6cb1d44b82f05b | refs/heads/master | 2020-08-13T21:34:37.343743 | 2019-10-14T13:39:02 | 2019-10-14T13:39:02 | 215,041,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | import unittest
class HardTest(unittest.TestCase):
pass
if __name__ == "__main__":
unittest.main()
| [
"eaybek@gmail.com"
] | eaybek@gmail.com |
061769634cf5b55cc3c09ac9f10dae2a954ef737 | edc6868a6066eddad37ca46a8716b3916c5036e0 | /MapLib/Tests/ParseJsonTest.py | 0cd01c957a95c74cdccc9a63aad63abb0dbaaeb5 | [] | no_license | Gawainus/CSAir | ba1adcf819895c5d5e873dde613fc9abf4f7b426 | 512f5942a28676b1deac494f487f32f8d3e87d5f | refs/heads/master | 2021-01-10T17:24:22.124255 | 2015-11-10T18:23:36 | 2015-11-10T18:23:36 | 45,931,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | __author__ = 'yumentsao'
import unittest
from MapLib import ParseJson
class TestParseFunction(unittest.TestCase):
networkDict = ParseJson.parse("../Data/Input.JSON")
def setUp(self):
print("Setting up")
def tearDown(self):
print("All Tests Run")
def testKeyType(self):
self.... | [
"yumentsao@Yumens-MacBook-Pro.local"
] | yumentsao@Yumens-MacBook-Pro.local |
f9425ef439778a58fc21d6e63b234d775c01c852 | 30fd1c0d6fbf9729b7cfcce83304271917b83f13 | /bloch_dressed_states.py | f95f222e9ba80de2c40ae9e1d50612e7f8a363e0 | [] | no_license | GautierLKB/Cavities_state_prediction | 14f39f665ab90509a3b594b572acb9883e77d189 | ec3864353ed499d722fcdc7f16056f58c40f63b3 | refs/heads/master | 2020-03-22T21:23:45.947779 | 2018-07-12T10:36:01 | 2018-07-12T10:36:01 | 140,683,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,637 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jan 29 15:04:12 2018
@author: valentin.metillon
"""
from numpy import*
import qutip as qt
import matplotlib.pylab as plt
from qutip.solver import Options
#NH = 3
#psi_e = qt.basis(2,0)
#vac = qt.fock(NH,0)
#
#psi0 = qt.tensor(psi_e,vac)
#Form of th... | [
"noreply@github.com"
] | noreply@github.com |
4fe953b347177ae6fed8e7472e954e208a94074c | 4984a934467631ffe35dd277594184671284d5f6 | /Python: Create a Grid/Create a Grid 05/graphics_environment.py | 9a989e310b7cb8d3e4ba4501dd2d8cd2254679c0 | [
"MIT"
] | permissive | poly451/Tutorials | 8ce2a9d1166f7d63b1ce1e92bded2da16a7d29ef | 27ca5dc09bc69d2bced44cddbe4e7fd201c0e66f | refs/heads/master | 2022-05-17T06:42:16.833986 | 2022-05-10T02:24:54 | 2022-05-10T02:24:54 | 183,793,357 | 16 | 24 | null | null | null | null | UTF-8 | Python | false | false | 56,529 | py | import sys, os
import pygame
import constants
import utils
# -----------------------------------------------------------
# class Event
# -----------------------------------------------------------
class Event:
def __init__(self, mydict):
# print("mydict: {}".format(mydict))
sel... | [
"noreply@github.com"
] | noreply@github.com |
857012b87df7c8b0cfaf1ee3ee2ab6abf975f424 | 2e5235a37f273de1c9853ee23ea62544ffd34d7b | /src/test/resources/expressions/slice/slice_list.py | 014b220a923c4037942aab68056c8711fc2c58bc | [
"Apache-2.0"
] | permissive | oxisto/reticulated-python | 535c939d28cd605c3a53443549cff4a0e19033e5 | a38c8bd9c842be4f4c8ddc73c61c70aeceb07248 | refs/heads/master | 2022-05-31T00:13:42.170678 | 2021-03-12T14:45:31 | 2021-03-12T14:45:31 | 223,569,455 | 4 | 3 | Apache-2.0 | 2022-03-07T13:35:09 | 2019-11-23T10:17:12 | Kotlin | UTF-8 | Python | false | false | 74 | py | import numpy
a = numpy.array([ numpy.array([ 1, 2, ]) ])
print(a[:, ::,])
| [
"noreply@github.com"
] | noreply@github.com |
3fbbc5c0f26e5caddce1e220e7e5e9422ca33c8c | 6b8366581101e183592ff5d65ba6c228223ef30d | /mp/tokenizer.py | 086a0397d2c952e98301d843c4d9d4c387465260 | [
"MIT"
] | permissive | BPI-STEAM/mpfshell-lite | a3af795502d20f990d2a084a106f3964beb94392 | e603c2abb942bf45c18519883e1b72760c4db04f | refs/heads/master | 2020-07-22T13:11:57.651653 | 2019-08-27T03:58:41 | 2019-08-27T03:58:41 | 207,213,197 | 3 | 1 | MIT | 2019-09-09T03:06:46 | 2019-09-09T03:06:46 | null | UTF-8 | Python | false | false | 2,163 | py | ##
# The MIT License (MIT)
#
# Copyright (c) 2016 Stefan Wendler
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy,... | [
"junhuanchen@qq.com"
] | junhuanchen@qq.com |
e1df0d13cf768984ca538d33767ed366c6c4e5bb | 9990119b6538b6b79241af6163203f0aba5c6231 | /code/dlgo/networks/small.py | e26931d9164adb7930c0df605c266bba60c5e9d2 | [
"MIT"
] | permissive | hirasaki1985/hirasar_go | 04dc32c55b80dd5af8e3c5a99089d57868dff9c7 | 35231e7e829ee4521dada1ca5ff5400a1b805376 | refs/heads/master | 2020-06-01T23:30:44.864936 | 2019-07-21T07:00:46 | 2019-07-21T07:00:46 | 190,965,695 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,331 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
# tag::small_network[]
from keras.layers.core import Dense, Activation, Flatten
from keras.layers.convolutional import Conv2D, ZeroPadding2D
def layers(input_shape):
return [
# ゼロパディングして入力画像を拡大する
ZeroPadding2D(padding=3, input_shape=... | [
"hirasaki1985@gmail.com"
] | hirasaki1985@gmail.com |
7d952b7e8998224a2f02a2747b5562bfa08b3c73 | 670b4549020aa2eb674c533d1778c50cec65771d | /pos_speed_up/models/change_detector.py | c3a24493bab79d712594b7ef73d58450ca4d1e23 | [] | no_license | sm2x/Smay | 819691d2208a461e214e429575ad158cc6d7744b | ae40e4ef570cc7638842ce14810a4d69666db380 | refs/heads/master | 2022-01-10T21:50:15.330496 | 2019-04-27T16:00:47 | 2019-04-27T16:00:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,688 | py | # -*- coding: utf-8 -*-
from odoo import api, fields, models
class ChangeDetector(models.TransientModel):
_name = 'change_detector'
def broadcast(self, message):
self.env['bus.bus'].sendone((self._cr.dbname, 'change_detector'), message)
class Product(models.Model):
_inherit = 'product.index'
... | [
"gerardo.reyes.preciado@hotmail.com"
] | gerardo.reyes.preciado@hotmail.com |
ecfe31db402831bcdcc7b0c56e691aeca1488d68 | cc3da133ce2fd30501de7d705ac43c8851d96f26 | /travello/models.py | 7079682d0a579e1b719869667ee0dc50cdd98c24 | [] | no_license | RSRajendra/django_mongo | 90bcb562b15be17ac732349a75d463864d459396 | c75ae7ef1a57836e157b2388507e89c07574c36b | refs/heads/master | 2022-11-27T09:39:25.676756 | 2020-07-26T03:23:52 | 2020-07-26T03:23:52 | 282,456,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | from django.db import models
# Create your models here.
class Destination(models.Model):
name = models.CharField(max_length=100, null=False, blank=False)
description = models.TextField(null=False, blank=False)
price = models.FloatField(null=False)
image = models.ImageField(upload_to='pic')
offer ... | [
"rajendrasinghrana79@gmail.com"
] | rajendrasinghrana79@gmail.com |
6dfa0629704030039c0bb51faacc94cde5fa2a2a | f1330ad06f86455a6b7ae61f5617f78a4647cb18 | /dailyfresh/user_module/urls.py | 68ba6f3ce64a2dd82c6b36b56b098fb6cef2dcca | [] | no_license | pythonchuang/dailyfresh | 0d37c2a4db53527b9e2e2b7988be1bc8427440d7 | 64720733c14d845a89624169c263e4e8902df68b | refs/heads/dev | 2021-07-03T13:34:53.967419 | 2017-09-24T10:14:39 | 2017-09-24T10:14:39 | 104,314,992 | 0 | 1 | null | 2017-09-24T10:14:40 | 2017-09-21T07:20:43 | HTML | UTF-8 | Python | false | false | 649 | py | from django.conf.urls import url
from .views import *
urlpatterns = [
url(r'^register/$', register),
url(r'^register_handler/$', register_handler),
url(r'^check_name/$', check_name),
url(r'^login/$', login),
url(r'^checkloginstatus/$', check_login_status),
url(r'^login_handler/$', login_handler)... | [
"786355997@qq.com"
] | 786355997@qq.com |
f1add283acde54d4ea54d2a3738a0fea719817d2 | 7c087701201c61e56f0b8537f63aaf5a65152df9 | /23kk.py | 0fce76c8c4e0ef97fff8fb2a787bed4462841c84 | [] | no_license | kaush4l/Euler | d42ca5d9c410feaeed91e3fabbe294e0535288b0 | 8f614d5b76956e531076ebd5f0368014a62fdacb | refs/heads/master | 2022-08-13T08:18:31.572629 | 2020-05-24T22:16:39 | 2020-05-24T22:16:39 | 261,652,384 | 0 | 0 | null | 2020-05-10T22:36:51 | 2020-05-06T04:34:01 | Java | UTF-8 | Python | false | false | 248 | py | def fib(n):
a = 0
b = 1
index = 1 # starting with 1 as we are checking for b which is 1 extra
while True:
a, b = b, a + b
index += 1
if len(str(b)) == n:
return index
print(fib(1000))
| [
"kaushal.beyblader@gmail.com"
] | kaushal.beyblader@gmail.com |
9c8d47dea52c56f1f7c05c852e7faee0eb03d3ab | b9644ad6ba64622fe006cd28c3af4304d5a979cb | /catalog/admin.py | f2f1eed213a396c5947b4c8de887c0d0cb44abae | [] | no_license | kaustubhkk47/apis | c43df252fc6c070d38181480da66041726608cc2 | eba15d49b6959c00c65f34587661cec17c69b2d0 | refs/heads/master | 2021-03-30T17:35:49.981391 | 2017-03-31T07:53:20 | 2017-03-31T07:53:20 | 56,096,306 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | from django.contrib import admin
from .models.product import *
from .models.productLot import *
from .models.productData import *
from .models.category import *
admin.site.register(Category, CategoryAdmin)
admin.site.register(Product, ProductAdmin)
admin.site.register(ProductLot)
admin.site.register(Product... | [
"kausthegreat@gmail.com"
] | kausthegreat@gmail.com |
5a09b3f85242bf0316d4ff9527728d2eccc6fbce | f6dd6e7dbb57fce70a56983f0dc50550c1b5c3bf | /2/2_13.py | 90513884aa347ba71e787aee77311033e447c707 | [] | no_license | hiyuricu/NLTK | 42dec3a6e0b09e5489e8f843fb6904cb038b4acf | e96958d82017ac33484db7e52198e9009e64379a | refs/heads/master | 2021-01-10T21:00:37.129510 | 2014-07-10T08:05:07 | 2014-07-10T08:05:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
import string
import nltk
from nltk.corpus import wordnet as wn
total, count = 0, 0
for syn in wn.all_synsets('n'):
if syn.hyponyms() == []:
count += 1
total += 1
print '%d/%d' % (count, total) | [
"tachibanaryuichi@tachibanaryuuichi-no-MacBook-Air.local"
] | tachibanaryuichi@tachibanaryuuichi-no-MacBook-Air.local |
3de9fa6c8d1864b50c9021330adba2eff465ccbc | 82c5cf483ca568c79afd131353c57c3113481759 | /vast/cli.py | c81a9d0d9976a529c838086103cd16251ba8baed | [] | no_license | rckoepke/vast-python | 72fecd5b4ffdb0cd12bae615bb1f8c71bf96f430 | fa50ead8c60d9db4d3fd2b73c99014acf05de6c3 | refs/heads/master | 2020-12-02T07:39:07.882095 | 2020-01-01T02:40:10 | 2020-01-01T02:45:13 | 230,936,892 | 0 | 0 | null | 2019-12-30T15:18:38 | 2019-12-30T15:18:37 | null | UTF-8 | Python | false | false | 896 | py | # from argh import ArghParser
#
# from .api import VastAPI
#
#
# def vast():
# vast = VastAPI()
#
# functionality = [
# vast.change_bid,
# vast.create_instance,
# vast.destroy_instance,
# vast.label_instance,
# vast.list_machine,
# vast.remove_defjob,
# va... | [
"koepke@gmail.com"
] | koepke@gmail.com |
36c89e82ed8b20baea5b08b67397103fe99e9772 | 48694c4312c6be6a5ef6b0152dc13b489b55252a | /code/measurement/absolute/mean_absolute_error.py | 90c62e8adfba298c135a373db7dd372afca64c56 | [] | no_license | maximshcherbakov/Framework-for-machine-learning-based-researches | 15befe930f0352cd8d102a121f68e0d2e9a0cb9f | 66756b9dacccf6b763c6a64b8a2291be38c3a22c | refs/heads/master | 2021-01-12T11:32:48.843684 | 2016-11-05T19:19:05 | 2016-11-05T19:19:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | from code.measurement.base import base_measurement as bm
class mean_absolute_error(bm.base_measurement):
def calculate(self, actual_set, forecasted_set):
measure = 0
for actual, forecasted in zip(actual_set, forecasted_set):
measure += abs(actual - forecasted)
return measur... | [
"konstantin.zadiran@gmail.com"
] | konstantin.zadiran@gmail.com |
1fced1f8cce087c0bbfdd61d98a7820b2eeef5ec | 419637376e445ec9faf04c877d5fb6c09d15903f | /steam/user/order/userCancelOrderActivityTest.py | 76c1e3a715c556e511a7af0fd3bc03f9bc9ddcd7 | [] | no_license | litaojun/steamOmTest | e4203df30acafaa5e282631d77429c0e4483fb88 | 86f84dbd802d947198823e02c2f1ba2695418a76 | refs/heads/master | 2020-04-02T21:48:55.115389 | 2019-07-11T06:08:27 | 2019-07-11T06:08:27 | 154,812,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,340 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@version: v1.0
@author: Lieb
@license: Apache Licence
@contact: 2750416737@qq.com
@site: http://blog.csdn.net/hqzxsc2006
@software: PyCharm
@file: userCancelOrderActivityTest.py
@time: 2018/7/11 10:09
"""
from steam.util.steamLog import SteamTestCase
from opg.b... | [
"li.taojun@opg.cn"
] | li.taojun@opg.cn |
2eaff4c0a947d923f02ef3bdabca7291afd10e81 | f518506fb620fd29a2db876c05de813508eda519 | /Project19/manage.py | e4a8f6d8ec98276420722e54947fecad37d976b3 | [] | no_license | Niharika3128/Django5-6 | 07435ae9088659e2d192cda60542aee5214e0637 | be3055ca91da45c37f9ec1adb626eea335477746 | refs/heads/master | 2020-06-02T04:28:37.016405 | 2019-06-09T17:28:33 | 2019-06-09T17:28:33 | 191,035,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Project19.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Ar... | [
"niharika5475@gmail.com"
] | niharika5475@gmail.com |
01d8f69feee44111de91dbbc538d70ceb10bf5d5 | b4b19a444fb008fa1c37578c6381bd89abf2305d | /metnum-tp2-1C2021/tp2-alu/tp2/tp2/bin/jupyter-labextension | 0d5dd0b790b7072aa16f3c0f4fa5226889522ba8 | [] | no_license | ddrenteria/MNtp2 | 1192915a724580eb18d319c10774506bcb6f4022 | 66eb7fa9d700a9680348137510991fcf6167fefb | refs/heads/main | 2023-05-04T08:06:58.437115 | 2021-05-30T15:44:57 | 2021-05-30T15:44:57 | 365,571,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | #!/home/dago/Desktop/Facultad/MN/MNtp2/metnum-tp2-1C2021/tp2-alu/tp2/tp2/bin/python3.7
# -*- coding: utf-8 -*-
import re
import sys
from jupyterlab.labextensions import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"dago.derenteria@wearepsh.com"
] | dago.derenteria@wearepsh.com | |
37d6d32fcd278ad2b712650d14763c502eaffa31 | 0b454f8c1e6165507fca78b691a2137a249f5820 | /24_swap_nodes_in_pairs.py | 0dedcf02704f7a78918a97d06da3ffda4b6901e4 | [] | no_license | freephenix/LeetCodeAnswers | cf97416f2323e25fc1fe3a698ba3a9d15393565e | 9ffd0974dc325cec0fcf210943e9873069e64fe6 | refs/heads/master | 2020-04-15T09:36:24.092307 | 2019-11-26T02:50:43 | 2019-11-26T02:50:43 | 164,557,814 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 978 | py | # Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
class Solution:
def swapPairs(self, head: ListNode) -> ListNode:
if not head or not head.next:
return head
pHead=head
pHeadNext=head.next
pHead.n... | [
"zhangyi04@baijiahulian.com"
] | zhangyi04@baijiahulian.com |
ea8ec56d5cc9a488d617fbdf6dc2d3066ff0f0db | cd5f0ec9e3d738c9270aae8b368b0cb9ab8ebd6f | /neo4j/documentation/source_code/task3.py | 71cc1de0ecb4f586e69cdd1a5ea844de70885466 | [] | no_license | jakubowiczish/database-systems | 8f1d8ba47b30ce104d4646db0216af4b922ede7e | 3af1402115650851141c6a2b00d8c6adf485e558 | refs/heads/master | 2022-12-20T16:08:00.967244 | 2020-02-23T00:45:26 | 2020-02-23T00:45:26 | 214,160,363 | 0 | 0 | null | 2022-12-11T21:44:02 | 2019-10-10T11:05:06 | Java | UTF-8 | Python | false | false | 383 | py | def execute_task3(tx):
title = "Cloud Atlas"
print(f"\nDirectors of \"{title}\":")
for record in tx.run("MATCH (person)-[:DIRECTED]-(movie) WHERE movie.title = $title "
"RETURN person.name", title=title, ):
print(f"- {record['person.name']}")
# Result
# Directors of "Clou... | [
"jakub77plotnikowski@gmail.com"
] | jakub77plotnikowski@gmail.com |
7f38490afde55aa9951bbab0fc7f49dd987bf4a1 | 28bcd4456f6d8bee84a9083702c97f66e25c6a66 | /milestone2/milestone2/codebase/fusetest.py | 9f5df9a88531c13504319281ba4fd1f9766db2e3 | [] | no_license | alexmoncion/COMP4000 | 0f743f5fda22ee14bd950f377a79903bd4b7a761 | b6bcf45cf8ff8871268657cc6aab359280af68a5 | refs/heads/main | 2023-04-11T00:06:43.843717 | 2021-04-25T00:25:09 | 2021-04-25T00:25:09 | 361,294,106 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | from __future__ import print_function
import passthrough
p = passthrough.Passthrough("/home/student/Documents/test/")
print(p._full_path('/admin/'))
| [
"noreply@github.com"
] | noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.