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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
90229bbbe4785a5b999ee5d8722e20f28827c56f | c05ed32f1ef7e1eb7d73efd674e7d1fd710ad171 | /daily-coding-problems/problem395.py | bf3a13cf875b08ed3da6182d02891d6d297eafa6 | [] | no_license | carlhinderer/python-exercises | c8367517fdf835fa1117f96dbfee3dccc596afa6 | 4e09bbb4c4e2bd5644ed50e997db9f3c289a18f7 | refs/heads/master | 2021-06-01T16:17:00.389134 | 2021-02-09T18:21:01 | 2021-02-09T18:21:01 | 150,902,917 | 0 | 0 | null | 2021-04-20T20:33:11 | 2018-09-29T21:03:36 | Python | UTF-8 | Python | false | false | 275 | py | # Problem 395
# Medium
# Asked by Robinhood
#
# Given an array of strings, group anagrams together.
#
# For example, given the following array:
#
# ['eat', 'ate', 'apt', 'pat', 'tea', 'now']
#
# Return:
#
# [['eat', 'ate', 'tea'],
# ['apt', 'pat'],
# ['now']]
# | [
"carl.hinderer4@gmail.com"
] | carl.hinderer4@gmail.com |
d0fef2d94f8411e57c496414edeb71b0f95bd2ac | 4d7611375ff9830a07b770387f0549b33f3f485f | /andromeda/migrations/0007_auto_20170521_0931.py | dc4010927c29e969603aa9db883ccda6eac2cbb3 | [] | no_license | enriqueao/andromedaWeb | 2b7c2220f2c144b4a097a6795bf4c1c2772eedc5 | 95c6175c6df52e64ec7e971abaa0a65d4bbd441f | refs/heads/master | 2021-01-19T23:03:28.273191 | 2017-06-02T01:39:49 | 2017-06-02T01:39:49 | 88,916,284 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-05-21 14:31
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('andromeda', '0006_auto_20170521_0930'),
]
operations = [
migrations.AlterFiel... | [
"enriqueao96@gmail.com"
] | enriqueao96@gmail.com |
efec59e8370e4f56814a2820c890bc9dc2fff0bd | 659836ef3a9ac558538b016dbf4e128aa975ae7c | /backend/ingredient/migrations/0001_initial.py | 4f51e388822ee86c8a34ae068419dd993474fd70 | [] | no_license | zzerii/save_your_ingredients | fda1c769d158bca9dfd3c28ac9ff34ed7ae4e6a3 | 5ebde82255c1a6edf0c19d9032015d05c9d0abc9 | refs/heads/master | 2023-02-21T22:19:28.954594 | 2021-01-22T11:39:16 | 2021-01-22T11:39:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 610 | py | # Generated by Django 3.1.3 on 2020-11-13 05:52
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Ingredient',
fields=[
('id', models.AutoFie... | [
"jinsoo941010@naver.com"
] | jinsoo941010@naver.com |
a8a418bc8d2ae874ec81e8db1ab0cbdc2af5858f | bf5870962b7129d8b57e1269d8ddb16b8731dd9d | /home/migrations/0019_auto_20200526_0650.py | d4eb5129e285bc05c04ff583a462cd1151f6c1da | [] | no_license | MesutCanpolat/DjangoProje | 3acecd5af13522234dc5bd6328bce2ba49fb1081 | 70bdff89db706a95ef2248a57f652fb5b32406f7 | refs/heads/master | 2022-09-20T05:02:39.986648 | 2020-06-04T15:09:54 | 2020-06-04T15:09:54 | 250,898,737 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 681 | py | # Generated by Django 3.0.4 on 2020-05-26 03:50
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('home', '0018_auto_20200525_1906'),
]
operations = [
migrations.AlterField(
model_name='contactformmessage',
name='st... | [
"mesutcanpolat06@icloud.com"
] | mesutcanpolat06@icloud.com |
a38024493930e1128039afc22b9a7268e1a23872 | 30310c27c45f5129572503fa2e48832b5bc2be45 | /auto_slack.py | 187232e73e66290ac032a34a62847bcaeef1fce9 | [] | no_license | sikyung/officePython | bd0d5731a9161438d24342e1c924c44470794e98 | 15e160cbc51851345778b59522b6d0b907ef74f8 | refs/heads/master | 2023-04-04T06:04:56.307811 | 2021-04-08T17:00:50 | 2021-04-08T17:00:50 | 355,909,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,836 | py | import json
import requests
from bs4 import BeautifulSoup
import pprint
# 웹사이트 신규 기사 링크 템플릿
def crawling_template(url, css_selector):
return_data = list()
res = requests.get(url)
soup = BeautifulSoup(res.content, 'html.parser')
datas1 = soup.select(css_selector)
for item in datas1:
return_... | [
"sikoung0129@naver.com"
] | sikoung0129@naver.com |
61b4081b28ae6a8a0b66826389ed5b2bf8f6a8bd | 82b728e805d887102c0b8c415731b353877690cd | /samples/generated_samples/aiplatform_generated_aiplatform_v1_job_service_list_data_labeling_jobs_async.py | ff63ecabec79d5b44b37a6226ced8498752c4070 | [
"Apache-2.0"
] | permissive | geraint0923/python-aiplatform | 90c7742c9bdbde05b9688b117e8e59c0406d6f85 | 7ab05d5e127636d96365b7ea408974ccd6c2f0fe | refs/heads/main | 2023-08-24T05:30:38.519239 | 2021-10-27T20:38:25 | 2021-10-27T20:38:25 | 370,803,114 | 0 | 0 | Apache-2.0 | 2021-05-25T19:15:47 | 2021-05-25T19:15:46 | null | UTF-8 | Python | false | false | 1,627 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | noreply@github.com |
58e241c009aa3f3206cf9cf353ba9ec094a87366 | 532a409b9bc21bd2b9bf9b22d73eb99f5d93e5c8 | /httpd/modules/ssl/update_policies.py | 02ca860307513183f13543b82a68862af34953c2 | [
"Apache-2.0",
"Beerware",
"RSA-MD",
"LicenseRef-scancode-zeusbench",
"LicenseRef-scancode-rsa-md4",
"HPND-sell-variant",
"metamail",
"LicenseRef-scancode-other-permissive",
"LicenseRef-scancode-rsa-1990",
"Spencer-94",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-publi... | permissive | tyekx/musa-thesis | 0d3febcaf388659fdddc5256344f6c825b6eb0d1 | 11e6ae92b8e726cc28523d0237663fbed4cdec8f | refs/heads/master | 2020-03-18T16:45:22.642009 | 2018-05-26T18:16:05 | 2018-05-26T18:16:05 | 134,956,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,843 | py | #!/usr/bin/env python
import json
import os
import sys
from httplib import HTTPSConnection
# The location were Mozilla defines the *current* TLS Security in JSON format
#
MOZ_TLS_CONF_SERVER = "statics.tls.security.mozilla.org"
MOZ_TLS_CONF_PATH = "/server-side-tls-conf.json"
MOZ_TLS_CONF_URL = "https://%s%s" %... | [
"musa.benedek@gmail.com"
] | musa.benedek@gmail.com |
25974e1152d226c60a3e26aeaa123e258f09f894 | b260b3584fbd7bc03d7138c781050928838d03d4 | /wsmanclient/model.py | fc34efe81d59e9c170a05de154ae0ce4c5226e03 | [
"Apache-2.0"
] | permissive | intelsdi-x/python-wsmanclient | 68383932ea2fe6c8b895d474091e17b54ea36071 | d17c8e9b57055c562eb502434f754839f414e69b | refs/heads/master | 2022-11-24T11:54:19.063833 | 2022-11-07T23:05:07 | 2022-11-07T23:05:07 | 63,767,398 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,741 | py | import json
class StatusedResource(object):
"""
An interface defining resource with an id and health status ('HealthStatus')
"""
def __init__(self, id, status):
self.id = id
self.status = status
def __repr__(self):
return json.dumps(self.__dict__)
class CPU(StatusedResourc... | [
"antoni.rosciszewski@gmail.com"
] | antoni.rosciszewski@gmail.com |
c97da6f4cbe2fab9d85310007193f7f9c0e31396 | add74ecbd87c711f1e10898f87ffd31bb39cc5d6 | /xcp2k/classes/_guess_vectors1.py | dc797ddfb00b810b4621cc8d73f069c7cf32de02 | [] | no_license | superstar54/xcp2k | 82071e29613ccf58fc14e684154bb9392d00458b | e8afae2ccb4b777ddd3731fe99f451b56d416a83 | refs/heads/master | 2021-11-11T21:17:30.292500 | 2021-11-06T06:31:20 | 2021-11-06T06:31:20 | 62,589,715 | 8 | 2 | null | null | null | null | UTF-8 | Python | false | false | 688 | py | from xcp2k.inputsection import InputSection
from xcp2k.classes._each591 import _each591
class _guess_vectors1(InputSection):
def __init__(self):
InputSection.__init__(self)
self.Section_parameters = None
self.Add_last = None
self.Common_iteration_levels = None
self.Filename... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
789ac7373b25ef7b3b22383cd1e9ba10d138e7be | baad748abf51be00f10fdcd440ac26fa0be73894 | /tools/miktex-pkg-explore.py | 24447ba4b28d5c42c65e659195755f13f2e84823 | [
"MIT"
] | permissive | MiKTeX/miktex-packaging | ca71d1b963e639390b7f06823747967503517429 | 263cdb35ae73c610574815c16a0b27f9142fefb6 | refs/heads/master | 2023-08-31T06:42:44.725988 | 2023-08-22T15:58:37 | 2023-08-22T15:58:37 | 62,953,341 | 28 | 4 | MIT | 2023-04-13T10:54:06 | 2016-07-09T14:31:45 | Python | UTF-8 | Python | false | false | 998 | py | #!/usr/bin/env python3
#
# Licensed to you under the MIT license. See the LICENSE file in the
# project root for more information.
"""
For a given package, view the contents of
a) the package staging directory, and
b) the CTAN directory
in two system file viewer windows.
"""
import os
import sys
from miktex.packagi... | [
"cs@miktex.org"
] | cs@miktex.org |
5544e9531b2e8c6bf4a08b09d9bb41b5f73d5202 | 769f11278134cec4cf6b7458fe19e01ae3a49074 | /bots/train/trainbot_list.py | 35c6d01f5c35a606cfa7af5ed8f5a88387de30ae | [] | no_license | pxldrm/chatbot | b6b570a312cc10325da4894886c5fbb6ca86e71a | 158fb612fbef93ad4155050ef2c875e8e306b8df | refs/heads/master | 2020-03-12T13:13:40.371077 | 2018-04-23T03:47:08 | 2018-04-23T03:47:08 | 125,763,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | from chatterbot import ChatBot
from chatterbot.trainers import ListTrainer
import os
# choose set to train from
path = './assets/train/data/'
training_set = 'training_data'
# create and train bot
bot = ChatBot(
"List Bot",
database="./assets/bots/database/list.db",
trainer="chatterbot.trainers.ListTrainer... | [
"dmeyer017@gmail.com"
] | dmeyer017@gmail.com |
6ea8d87f4043296a4cc62e53fd9effbbff89bc02 | 23307f8e889f232724756bb26b1def1f0ba3323b | /fairseq/tasks/translation.py | eb8f1152748737cafa5b8b528dcc64d926689108 | [] | no_license | krisjeong/fairseq_data | 9395cb574d91147c95b6f08eecd814e4cb2fdad8 | f29e7dae3c2be3a908e795bfc952cc845b80280d | refs/heads/master | 2023-07-12T22:21:22.349970 | 2021-08-18T06:20:11 | 2021-08-18T06:20:11 | 397,152,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,421 | py | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import itertools
import json
import logging
import os
from argparse import Namespace
import numpy as np
from fairseq import metri... | [
"krisjeong00@gmail.com"
] | krisjeong00@gmail.com |
bd430172c43db40a3cfd313c52d65ea2a81006a5 | 22968abaf7f89531e419bef3981c86620e2d7354 | /home_control/lib/server/apc_ctl.py | 707c50f7b119865a064c59fb05ce848b6e2b32da | [] | no_license | gwendalg/home_control | 0efb09cbf12260b4fe61a8a5cf0f6cc206c71767 | af75525a06f239e2080de109d5547a77dfaac596 | refs/heads/master | 2020-04-22T01:08:49.870256 | 2015-03-17T07:47:18 | 2015-09-06T15:50:54 | 12,675,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,474 | py | """Class for APC controller"""
import logging
import sys
import base_ctl
from pb import control_pb2
from pysnmp import debug
from pysnmp.proto import rfc1902
from pysnmp.entity.rfc3413.oneliner import cmdgen
# Configure logging
log = logging.getLogger(__name__)
logging.basicConfig(level=logging.DEBUG)
#debug.setLogge... | [
"gwendal@gmail.com"
] | gwendal@gmail.com |
0299fa943ea756cff5200b50f21d343cc15151ff | d37e8826f51cc8ee6048424a2cc8c1cdfb1b2572 | /doc/annotate.py | ef9b537625754b858198b4f15584c9839e49423f | [
"BSD-3-Clause"
] | permissive | mhoffma/bob.extension | 63721fb62b86e77c1b549fc1d1ee90649725a529 | 40a520518131cb4b49739d1baf81e5c3bca4b5db | refs/heads/master | 2020-04-18T03:33:04.962220 | 2019-01-16T14:36:48 | 2019-01-16T14:36:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,761 | py | """A script to help annotate databases.
"""
import logging
import click
from bob.extension.scripts.click_helper import (
verbosity_option, ConfigCommand, ResourceOption, log_parameters)
logger = logging.getLogger(__name__)
ANNOTATE_EPILOG = '''\b
Examples:
$ bob bio annotate -vvv -d <database> -a <annotator> ... | [
"amir.mohammadi@idiap.ch"
] | amir.mohammadi@idiap.ch |
52d784be45f707cdb24b323d41c7b164e64a242d | db57dff874351c5ea62881321e33d0d862259b58 | /basic/graphmaker.py | 97b9131a21db621b284cb0f8e75d8ca108b83a0b | [] | no_license | jrogge/IGLDisjointMatchings | 01daaa3e901affd0d849d3267e3c5412834bab75 | 88d12998d2513a54dd62aeb4b01f2ef51e362418 | refs/heads/master | 2020-04-25T13:03:28.122212 | 2019-04-17T21:06:30 | 2019-04-17T21:06:30 | 172,797,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,317 | py | import networkx as nx
from tkinter import *
import gutils
import basic.states as st
import config
# TODO: wrap up into a config file
radius = 3
MATCHING_COLOR = 'yellow'
# TODO: wrap up into modes file
ADD_NODE = 0
ADD_EDGE = 1
ADD_PATH = 2
REMOVE_NODE = 3
REMOVE_EDGE = 4
class GraphMaker(object):
'''Interactive... | [
"jwilrogge@gmail.com"
] | jwilrogge@gmail.com |
9d3910846e3df24765f8519257acb89a5d473d10 | 14d5ff61929ed18ad052370d6b4320e8bab516cc | /datasetformat.py | 494f72a480c2de951efda11bd42cce6269a897cf | [] | no_license | ywq12/knn-tutorial | a55fe427dd589e03733b27580292026c26eccb8e | 8a589dd407b237f5e52600b518159a69d749f445 | refs/heads/master | 2022-03-06T23:42:10.169363 | 2019-11-10T01:50:05 | 2019-11-10T01:50:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 886 | py | def str_to_float(dataset, column):
for row in dataset:
row[column] = float(row[column])
return dataset
def output_to_dict(dataset, column):
output_dict = dict()
output_set = set([row[column] for row in dataset])
for num, output in enumerate(output_set):
output_dict[output] = num
... | [
"54068165+Michaelqq@users.noreply.github.com"
] | 54068165+Michaelqq@users.noreply.github.com |
f41c4f062e270f9d6279c01876ade52fc7bd26a4 | 3bc564dc6ffb7e9dcd45ac29438864fb59765e7f | /test/resume2-api.py | d57c025326ec62253627e4b5503cda20d8936b60 | [] | no_license | ttiaga/resume | 430a647e0dcd2f3e22e3df1f7f5214ebe51a7e11 | b16a3d6c1a6398e5514dfcff46c3a4156fd09cd3 | refs/heads/master | 2021-01-22T08:38:11.415591 | 2017-05-31T08:38:24 | 2017-05-31T08:38:24 | 92,625,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | from bottle import run, route
from bottle import static_file
@route('/static/<filename>')
def server_static(filename):
return static_file(filename, root='')
run(host='10.0.0.4', port=8080, debug=True)
| [
"ttiaga@gmail.com"
] | ttiaga@gmail.com |
463dd6d4ce7832d679db8d5c312d57e5dca0800a | 64f5373afd890e98f5bd593847d28423556c9606 | /backend/project/jobs/migrations/0001_initial.py | 154ffab5afabc39cd8900be5a4d9cb3ab7e5ee3c | [] | no_license | Dar0n/trackapps | aa50a5737660ca6479fdce1f66a12e2eced344d9 | 391f62e14ae5271393fd1c6602a0846d97483caa | refs/heads/master | 2021-07-15T19:34:30.033393 | 2018-12-06T08:44:35 | 2018-12-06T08:44:35 | 141,711,675 | 0 | 0 | null | 2018-10-01T16:47:14 | 2018-07-20T12:52:43 | Python | UTF-8 | Python | false | false | 1,612 | py | # Generated by Django 2.0.7 on 2018-07-20 13:52
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('user', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Job'... | [
"shatuncheg@gmail.com"
] | shatuncheg@gmail.com |
a151f15578260c6246fa532d91a39e1ae25d102d | f7bc9ff51518d11d0d21249e57cdbd7277091e18 | /0x02-python-import_modules/2-args.py | 7ed9bebdf1babd5e74b51714354869b8faf4b092 | [] | no_license | veeteeran/holbertonschool-low_level_programming | 578fd521de625e47406b9141920a531c0483f042 | ff2f79942eb282ae485deda7d9598eda50723c3f | refs/heads/master | 2020-12-29T04:41:46.509414 | 2020-12-27T14:49:57 | 2020-12-27T14:49:57 | 238,458,078 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | #!/usr/bin/python3
if __name__ == "__main__":
from sys import argv
length = len(argv)
if length == 1:
print("{:d} arguments.".format(length - 1))
elif length == 2:
print("{:d} argument:".format(length - 1))
else:
print("{:d} arguments:".format(length - 1))
for i in rang... | [
"vietnamtran@gmail.com"
] | vietnamtran@gmail.com |
f1b5867c9472c7915554e078e4080ce1c5a4c3b1 | 2b7ea4e7fe5b4b95f8907d1e02633a4fd7b1a18c | /src/config_manager/config_schema.py | ba4defdffeb32afa68af16524b1dfe836dc1ed2d | [] | no_license | bk-cva/Car-Virtual-Assistant | 166aac9fb21225286189e7f4ed8a789fcc66ea0d | 411b05cfcfe2bfdbdaa09dd276113dca9dc4007f | refs/heads/master | 2023-01-08T06:13:07.565307 | 2020-07-27T13:54:10 | 2020-07-27T13:54:10 | 236,927,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | class ConfigSchema:
def __init__(self,
here_api_key,
nlu_url,
cva_db_url,
calendar_id,
do_call_external_nlu,
schedule_api_dry_run,
timezone):
self.here_api_key = here_api_key
self.n... | [
"duyisking1060@gmail.com"
] | duyisking1060@gmail.com |
f578942ae02808cbc752a8676ff55984f7c4b053 | d8dab78c27dbcb8aa4a8e2e02b092559b3c1104c | /bin/pip3 | 5e83b1542d6ab9c69519d423ef188a5015db69f2 | [] | no_license | djoshi0613/text-matcher-tool | fab43b8d5b49a23de696f1db2cd33e46ebe9337e | dfb12b318515e8396b34f2f86a9476917ca917b8 | refs/heads/master | 2021-07-14T08:58:22.973431 | 2020-02-18T19:14:45 | 2020-02-18T19:14:45 | 241,246,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | #!/Users/ssheth/text-matcher-tool/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(
... | [
"d.joshi@sap.com"
] | d.joshi@sap.com | |
65b28ee3513376fdfc19b0ce3e8b4f8543856013 | d737fa49e2a7af29bdbe5a892bce2bc7807a567c | /software/qt_examples/src/pyqt-official/webkit/formextractor/ui_formextractor.py | 518bb9cef3ef753de6499455d980501f40903ab0 | [
"GPL-3.0-only",
"MIT",
"CC-BY-NC-SA-4.0",
"GPL-1.0-or-later"
] | permissive | TG-Techie/CASPER | ec47dfbfd6c3a668739ff4d707572e0b853518b4 | 2575d3d35e7dbbd7f78110864e659e582c6f3c2e | refs/heads/master | 2020-12-19T12:43:53.825964 | 2020-01-23T17:24:04 | 2020-01-23T17:24:04 | 235,736,872 | 0 | 1 | MIT | 2020-01-23T17:09:19 | 2020-01-23T06:29:10 | Python | UTF-8 | Python | false | false | 4,813 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'formextractor.ui'
#
# Created: Tue May 14 17:59:08 2013
# by: PyQt5 UI code generator 5.0-snapshot-b0831183bf83
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Form(object):... | [
"TGTechie01@gmail.com"
] | TGTechie01@gmail.com |
dbcaa3b6e4cd749b2fac3e0598398d0999be30a1 | a8c296eb1240b24b0cd75baeeff0bf05128355bf | /utils/ScriptPayToAddressCF.py | 0b9e6f5a9b356ff1e61188433e2ae8c470c5c472 | [] | no_license | fnfxy2017/cfcoin | b80fe3d762e9e4f62fc6ed3ea95ff5c9e7f39868 | 64a8c6ce5bb04a21b1ff1a428e11ccd8378e31b9 | refs/heads/master | 2021-01-20T06:38:39.150001 | 2017-05-14T09:55:35 | 2017-05-14T09:55:35 | 89,905,408 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | '''
Created on 2017年5月2日
@author: Administrator
'''
from pycoin.tx.pay_to import ScriptPayToAddress
class ScriptPayToAddressCF(ScriptPayToAddress):
'''
classdocs
'''
def __init__(self, params):
'''
Constructor
'''
| [
"Administrator@2013-20140427UN"
] | Administrator@2013-20140427UN |
1b712ee759d33f04670b53e77ad5c21d0879808e | 2ff9fc2f6ed64c235a579192da0f94f1a44ea874 | /Test.py | 35eb5d8e779b1883b312818d040b5fb2d3eeaa5b | [] | no_license | cocolico14/Chess-Engine | d5db3a40cd7ba8109c81d7f392f73ec7d92caabc | b07e895dd6f0756c207572578bba554074da11a9 | refs/heads/master | 2020-03-25T09:06:23.747267 | 2018-08-06T09:36:10 | 2018-08-06T09:36:10 | 143,647,778 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,177 | py | from Board import *
from Move import *
b = Board(Board.initializeBoard())
notation = ["a8", "b8", "c8", "d8", "e8", "f8", "g8", "h8",
"a7", "b7", "c7", "d7", "e7", "f7", "g7", "h7",
"a6", "b6", "c6", "d6", "e6", "f6", "g6", "h6",
"a5", "b5", "c5", "d5", "e5", "f5", "g5"... | [
"cocolico12@gmail.com"
] | cocolico12@gmail.com |
48f34b285c3a42820f4e3bf5f2b94ac439f7e851 | 40127b66a492d0c52e70b50bfde2a8a2f7290fd8 | /get_starred.py | b304083dd35c127b8a51fc79a4bb9f5461e2faad | [] | no_license | guilhermeresende/Crawler | 90bd96ae7a2b6b70f8e8515db2da268e6e3d4983 | 962af7e953602b43968de6d843bd57cdfc6029a1 | refs/heads/master | 2020-05-30T15:09:26.043373 | 2019-06-10T15:49:44 | 2019-06-10T15:49:44 | 69,659,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,568 | py | #get starred repositories (at commits.txt)
from crawler_lib import *
def write_num_starred(url,fstarred):
(result,num_pages)=do_req(url)
if(num_pages==1):
num_starred=result['stargazers_count']
stargazers_url=result['stargazers_url']
if num_starred>0:
fstarred.write(url+" "+str(num_starred)+"\n")
retu... | [
"guilherme.resende.borges@gmail.com"
] | guilherme.resende.borges@gmail.com |
7895bc6f05fa2ffe545d4e7681d7f5b92e24a4af | cd634ce14b8a57c02976d5bb9ed5ea5bba1ba906 | /fetch.py | e16395d4f85a6c63b364a4468411172219df815d | [
"Apache-2.0"
] | permissive | sdm1230/swpp-hw1-sdm1230 | e066b7db8fb7172a25bfa9edd577c1cec06b0f8b | 9e5d12c038d56d10907c42d08927deee2fa58f40 | refs/heads/master | 2022-12-08T19:07:45.614249 | 2020-09-10T16:08:03 | 2020-09-10T16:08:03 | 292,584,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,460 | py | import urllib
import urllib.request
import urllib.error
import os
from functools import wraps
class BabyFetchException(Exception):
"""
A custom exception for the cases where it fails to fetch the html file from the internet.
"""
pass
def safe_internet_fetch(func):
"""
(1 point)
A decorat... | [
"sdm369@naver.com"
] | sdm369@naver.com |
89b67883ebcd8de23a776dbd9494efa9148a7989 | 397227bdcb3e7d8986dd8b0153c2a2b26d79d74b | /atracoes/migrations/0003_atracao_observacoes.py | 2f5b3de25c57b511192d5d48d2f84457376f7b96 | [] | no_license | ag-castro/api-tour-drf | 377e9f4400fd0467c67d7ff1cb9f683e0057d633 | 9ab69b1952eca7d27c15bf365af838df8f962103 | refs/heads/master | 2023-08-10T18:06:41.332185 | 2019-01-24T19:10:27 | 2019-01-24T19:10:27 | 222,954,042 | 0 | 0 | null | 2021-06-10T22:17:25 | 2019-11-20T14:19:30 | Python | UTF-8 | Python | false | false | 408 | py | # Generated by Django 2.0.5 on 2018-12-08 12:16
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('atracoes', '0002_atracao_foto'),
]
operations = [
migrations.AddField(
model_name='atracao',
name='observacoes',
... | [
"agcastro.py@yahoo.com"
] | agcastro.py@yahoo.com |
fe867ebcaf1a3ec97e9654456972c2d988c61215 | 3e27ddb402465e92e627ec251f9c5f5f693de8a4 | /hw/明明的排序/HJ03.py | e59a9f812e3bdf11cd6850dee93e516442806d97 | [] | no_license | louielolo/LeetCodeFMH | c25ee80ade15daf327a215035efc8ae52a9be629 | 69a417001036d33efbf035be61bbf1956a7899df | refs/heads/main | 2023-06-17T03:13:29.882197 | 2021-07-13T06:09:23 | 2021-07-13T06:09:23 | 350,028,176 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | import sys
if __name__ == '__main__':
getline = lambda: sys.stdin.readline().strip() #利用lambda定义读取数据函数
line = getline()
while line:
s = [int(getline()) for i in range(int(line))] #获取随机生成的数字
a = sorted(list(set(s))) #去重并排序
for i in a: print(i) #输出多行
line = getline() | [
"yanting.lu@nio.com"
] | yanting.lu@nio.com |
f8e4c0092f6077c43d4d66d93ce88ef8f11b1b77 | f1bf57391dbb249e0c1d4d68c9c87d9592deb5ea | /app/models.py | 8f892e0fbb313b1a9c95d727e69e3a04f789d319 | [] | no_license | jcopley/charlottetheatre.org | 95d813ef6142dd072b347e3abb95dd2eb3ecb38b | 3ff06679c154a362cb11d4b9cbe0abeefc01da11 | refs/heads/master | 2021-04-28T19:09:01.917890 | 2018-02-20T02:59:49 | 2018-02-20T02:59:49 | 121,889,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,761 | py | from werkzeug.security import check_password_hash, generate_password_hash
from itsdangerous import TimedJSONWebSignatureSerializer as Serializer
from flask import current_app, request
from flask_login import UserMixin, AnonymousUserMixin
import bleach
from markdown import markdown
from . import db, login_manager
from d... | [
"32344409+jcopley@users.noreply.github.com"
] | 32344409+jcopley@users.noreply.github.com |
25c20fdddfb3b6a9a8654381f8f2a0f5d7f1be1a | 0e1cbcf4f05e6ddd498f6b334014106f5734bfa4 | /backend/bin/elbadmin | ebaace8a1f684454e7e59b8e022e57f4975abdf8 | [
"MIT"
] | permissive | rcmiskin10/mem_landing_page | 33e9b448dcc2ff7de566044d6f81adf465f0c561 | 892e5f57a6359f39e4edd13de848cf4d0ec6344a | refs/heads/master | 2020-04-01T00:04:35.525714 | 2018-10-12T02:12:58 | 2018-10-12T02:12:58 | 152,680,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,721 | #!/home/rcmiskin/Desktop/mem/backend/bin/python3
# Copyright (c) 2009 Chris Moyer http://coredumped.org/
#
# 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
# wit... | [
"rcmiskin@gmail.com"
] | rcmiskin@gmail.com | |
c54b2df01396cbaef435da03f9149f379bb82bf3 | 007bf290736440b1506c3d31e3fd802f6ef49774 | /SequencesIMDBSentimentAnalysis/IMDB/imdbAnalyseMitGloVe.py | 4cad537825384dd954b5275e92e666be6d2bf0ed | [] | no_license | Ibrahemalkurdi/IntelligenteSysteme | 8c8536cf3eebfb30c1e98bddba98f3c62cad2f64 | 6c99b7aac63f0216a0efb8840990aa4b2e163279 | refs/heads/main | 2023-02-17T06:20:55.968347 | 2021-01-20T00:51:43 | 2021-01-20T00:51:43 | 331,150,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,960 | py | import os
from keras.preprocessing.text import Tokenizer
from keras.preprocessing.sequence import pad_sequences
from keras.models import Sequential
from keras.layers import Embedding, Flatten, Dense
import numpy as np
import matplotlib.pyplot as plt
imdb_dir = '../aclImdb'
train_dir = os.path.join(imdb_dir, 'train')
... | [
"Ibrahem.alkurdi@haw-hamburg.de"
] | Ibrahem.alkurdi@haw-hamburg.de |
49fd434f3ea49979274e68b7b8e77b3e40b1b6bf | 136965b1b2c1d946dcdb9db83ca3426831f0debc | /20200924_Find the Difference.py | 1fd50d5f79431e6a78ebb8e8e3c06d40d68a4885 | [] | no_license | lichr3/leetcodeDaily | cfeffb912665f6033682e4d78263d72f6fdcb02b | 10767a484c5493986739a77d9c5d577a2f6f8c36 | refs/heads/master | 2023-02-03T16:03:08.600923 | 2020-12-23T00:58:43 | 2020-12-23T00:58:43 | 297,825,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | class Solution:
def findTheDifference(self, s: str, t: str) -> str:
"""返回字符串t中比字符串s中多出的那个小写字母
思路:
由于全是小写字母,且只有一个字母的区别。
可将s和t的字母全都转换为ascii码后相加,再作差,
得到的数字就是多出那个字母的ascii码。
"""
sum_s = sum([ord(c) for c in s])
sum_t = sum([ord(c) for c in t])
... | [
"1012284851@qq.com"
] | 1012284851@qq.com |
0655f52f92254bcd3ff50900db39115840797e6b | 8a94ed3ae996f0c8e780dd78b91ad2269363575d | /midterm 2562-1/seqence.py | 9a54602e7b6e0e500fed7dcb53c626d981a5e496 | [] | no_license | thitimon171143/MyPython | 30fd44d571005d5f979c34c7356cd755eead760f | d1be644a703e211f14c138179ab79890a7095ecd | refs/heads/master | 2022-08-16T14:53:01.006440 | 2019-09-17T09:01:22 | 2019-09-17T09:01:22 | 192,525,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 72 | py | a = 0
b = 0
num = int(input('Enter : '))
if num >== 2:
print('1,1') | [
"Python@Admins-iMac-5.local"
] | Python@Admins-iMac-5.local |
c863145ec7b15f57935a5bb915ee4d49b469a359 | d94680b533df31e003fbec26628d12c5a50c14f2 | /run.py | f37f327e65078014e62f51cc1be2b17bb9c9a5d9 | [] | no_license | 1o11o/corona_maps | a1f2ce101d34a8bd4aa66ffc4a3ab8edebab22f2 | aaaaa402b885956b1afb749ffa37dea4c151f6a1 | refs/heads/master | 2023-07-27T17:06:01.581941 | 2021-09-09T10:34:50 | 2021-09-09T10:34:50 | 404,671,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | from streamlit import bootstrap
real_script = 'main.py'
bootstrap.run(real_script, f'run.py {real_script}', [], {}) | [
"lorenz.reiter@posteo.at"
] | lorenz.reiter@posteo.at |
3675a86d85cef18c914d7ab8aa8bdf5bad823de2 | d61803131d0d911f8640f127160b16752839ca72 | /old_models/score.py | b05a8a89ce3ee2fdf4b4f0ff020b574564c3c7eb | [] | no_license | tlarkworthy/gun-violence-independent-study | a7898f9276c461301954422c64b7e229eb5247d8 | 86dccdb41aded75cba279de6691ed958de78ddf3 | refs/heads/master | 2022-03-31T20:51:02.103037 | 2020-02-03T17:44:59 | 2020-02-03T17:44:59 | 222,856,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,274 | py | import json
import argparse
import warnings
from sklearn.metrics import f1_score, precision_score, recall_score
parser = argparse.ArgumentParser()
parser.add_argument('--goldfile', type=str, required=True)
parser.add_argument('--predfile', type=str, required=True)
parser.add_argument('--verbose', '-v', action='store... | [
"tlarkwor@seas.upenn.edu"
] | tlarkwor@seas.upenn.edu |
b1003c9f3eb736372a9ffe723b538d3cc3f0e38b | c03528dbc7991a622736ea8dc4396111bb8fa5c3 | /api/nodes_handler.py | f2121b98375a4f00fa116bb857cee9804f745d9c | [
"Apache-2.0"
] | permissive | collectivesense/aucote | b9da9a94cedf940752bcb9776f235e02fb4ee250 | bb21ff02965ed0cca5a55ee559eae77856d9866c | refs/heads/master | 2020-11-24T21:49:03.310379 | 2019-11-08T16:44:32 | 2019-11-08T16:44:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 901 | py | """
Handler responsible for returning aucote's nodes
"""
from api.storage_handler import StorageHandler
class NodesHandler(StorageHandler):
ENDPOINT_NAME = 'nodes'
def list(self, limit, page):
return {
'nodes': [self.pretty_node(node_scan) for node_scan in self.aucote.storage.nodes_scans... | [
"noreply@github.com"
] | noreply@github.com |
24a8a1490c365ca966e1856820620e2f864eb7c2 | feb3103642dcdd686a0c341d45fd498f902b40eb | /Flourish_cleanup.py | a8958fc14972867d29ef86e8c693620821a2d32c | [] | no_license | GrishamNathan/Statistical-Analysis-for-Mental-Health | 4ede6b4a372d7e98b458bb38b5286f716e6f6881 | fd9ce9738a402c3ae752d92cba777d3a4b784146 | refs/heads/master | 2020-04-22T08:49:06.086858 | 2019-02-12T04:34:47 | 2019-02-12T04:34:47 | 170,252,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 980 | py | import os
import pandas as pd
os.chdir('C:/Users/grish/Desktop/Workstudy/Rashid_workstudy/Stress/')
blank_99=pd.read_excel('Flourish_Data_For Grisham_N_Jan 2018..xlsx')
blank_99_removed=blank_99
unique=blank_99.externalid.unique()
for k in unique:
store=blank_99[blank_99['externalid']==k]
dates=sto... | [
"grish@DESKTOP-PM7EVPM.localdomain"
] | grish@DESKTOP-PM7EVPM.localdomain |
bdb8f13e9fbc077dbe3d7433f38846a7e81f3246 | 12abe02e205d3e8dabe78fb5a93ccca89e2c42c4 | /otp/level/LevelSpec.py | 921ec08b942508c5f2208dfbb93a095d690be079 | [] | no_license | nate97/toontown-src-py3.0 | 55092b2973b76e6b6d566887f44c52822684394c | f76c515801ae08c40b264b48365211fd44b137eb | refs/heads/master | 2022-07-07T05:23:22.071185 | 2022-06-22T16:36:10 | 2022-06-22T16:36:10 | 187,682,471 | 15 | 8 | null | null | null | null | UTF-8 | Python | false | false | 15,137 | py | from pandac import PandaModules as PM
from direct.directnotify import DirectNotifyGlobal
from direct.showbase.PythonUtil import list2dict, uniqueElements
import string
from . import LevelConstants
import types
import importlib
if __dev__:
import os
class LevelSpec:
notify = DirectNotifyGlobal.directNotify.newC... | [
"nathanielfuhr@gmail.com"
] | nathanielfuhr@gmail.com |
bfd72fd941fff38ea12a297515382dd0696e3759 | dd34d53e22d3628cfa14cb2e79a943003d0bf503 | /slots.py | f2bdb940a71b3e39976336bfe41f3dc716b87e43 | [] | no_license | jiangxr/python-learn | 46e4604f543618af9b7024512fba23cc1edce0de | 911d2a145ca9c70363f88d6374dbe368b1ae7b26 | refs/heads/master | 2020-12-03T04:14:39.906946 | 2017-07-08T12:46:54 | 2017-07-08T12:46:54 | 95,838,269 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | class A(object):
__slots__ = ('name', 'age', 'method1')
def __init__(self, name):
self.name = name
# def method1(self):
# print('i am method1')
def method2():
print('i am method2')
| [
"1693996285@qq.com"
] | 1693996285@qq.com |
fc2ed8667c5e08173a1f812fcab97f9e828a78b8 | 1703b169d3ee767f35475c8c334ca9d22843fd78 | /M1T1_watts/M1T1_watts.py | 7d312462e2dca4487729a8b46ef63586874c178f | [] | no_license | JesseWatts/CSC-221-Adv-Python | d0ea14a3cb5a1f405a52ebbfcf5b1d109614174a | 567d455f481c72955d2602e380c25e6e3b383f4c | refs/heads/master | 2020-04-17T20:22:56.514155 | 2019-02-04T14:04:53 | 2019-02-04T14:04:53 | 166,903,190 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,123 | py | # -*- coding: utf-8 -*-
"""
CSC 221
M1T1_Watts
Goal: Gold
16 Jan 2019
"""
def main():
"""
Author: Watts, Jesse
This program will calculate the
largest fishing pole that can
for diagonally in a box.
"""
poleLength = 0;
boxLength = 0;
boxWidth = 0;
# Determ... | [
"noreply@github.com"
] | noreply@github.com |
da0d45782c6a4779670dc273d240a181a5df95a1 | 91954c571599a523ab7fa88e253928edd2f724d1 | /tests/3test.py | 2fb5f31eb1af00efc02623c4141f7f499e2c8851 | [] | no_license | labryga/rhino | 3522a98850bb88d6e236b88b3a8cc4f6f3f99769 | 041fe843df221b8ab5c6feec92d4adbd6de4be9a | refs/heads/master | 2020-04-13T16:34:35.366575 | 2019-01-19T19:18:24 | 2019-01-19T19:18:24 | 162,615,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | import rhinoscriptsyntax as r
import math as m
p01 = [(m.cos(i), m.sin(i), m.cos(m.sin((i)) * 1.57))
for i in r.frange(0.00, 12.560, 0.0785)]
p02 = [(m.cos(i), m.sin(i), m.sin((i)))
for i in r.frange(0.00, 6.280, 0.157)]
r.AddInterpCurve(p01)
map(r.AddPoints, p01)
| [
"martin@labryga.ch"
] | martin@labryga.ch |
fc5d5c19443553ca22b501fda493ab868bea440c | 976c3810261a974f4ce633ab75f4e7d91f1c4eb5 | /SBC NT-M-NP.py | dc464ae3b4f8e6504e576ea6b4b9d4380cc3e19b | [] | no_license | SajidAhmeduiu/KMUI | a4ba09e4713c18193939f67096b5b8b3b4cf4d63 | 994b46753d5a7519a5f0c4966f51aafac7a60a5a | refs/heads/master | 2020-12-01T13:41:36.848946 | 2019-12-28T18:02:08 | 2019-12-28T18:02:08 | 230,644,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,742 | py | print("NO TEST MINORITY NO PCA")
import numpy as np
import pandas as pd
import math
from sklearn.cluster import KMeans
from sklearn.model_selection import StratifiedShuffleSplit
from sklearn.ensemble import AdaBoostClassifier
from sklearn.preprocessing import LabelEncoder
from sklearn.preprocessing import Norma... | [
"noreply@github.com"
] | noreply@github.com |
5f7d300cc1324a721a56fe6a19f116c4b8a824cf | f76750504b60a8c46a05b89850b49825dc01c3ad | /en/enviews.py | 24287885470f761325c45895d73439c8bbc28fbc | [] | no_license | depark/ruiyang | 79216243679f68b7fb160841ac96a3d16ebdf514 | 89abd9afa29a4a5a3269fce78aeb19fd608afa8b | refs/heads/master | 2020-06-16T21:42:30.567268 | 2018-10-22T09:52:45 | 2018-10-22T09:52:45 | 75,065,001 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,341 | py | # -*- coding: UTF-8 -*-
from django.contrib import *
from django.shortcuts import *
from en.models import *
from django.http import JsonResponse
from django.contrib import staticfiles
import json
import logging
logger = logging.getLogger(__name__)
#全局变量
def index(request):
banner_images = Banner.objects.all().or... | [
"925161259@qq.com"
] | 925161259@qq.com |
131a37bcbeb6f5cc0400283c41e4affd297f981f | 2af0ffd16c246908bcaaf82f604806b2d09834de | /paperparse/sxpTestStringEncode.py | 8232cd7de8a15d6fe19963aa101874b36d20ab3b | [] | no_license | philipsun/summarization | f3936a0a8dc1b0c50be016b8e8f8eec7d4ac48e3 | 924ec101abf34b9c17a57fa4096d6d91460f0c1b | refs/heads/master | 2020-03-18T08:29:49.836289 | 2019-11-20T07:12:56 | 2019-11-20T07:12:56 | 134,513,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,669 | py | #-------------------------------------------------------------------------------
# Name: sxpTestStringEncode
# Purpose:
#
# Author: sunxp
#
# Created: 23-03-2015
# Copyright: (c) sunxp 2015
# Licence: <your licence>
#-------------------------------------------------------------------------------
... | [
"xiaopingsun@gmail.com"
] | xiaopingsun@gmail.com |
6dd98b7831f5feee90d9df6b5301c0257eb2e665 | b972faf032590c9722dc240c45fc60157d5a1bee | /(구현)주사위네개.py | a7b250ef8517e21ed6b5335a12dac1288a5381af | [] | no_license | kih1024/codingStudy | 3a91b628bc301d1777d954595e93bf1f9246aca3 | 3e8a6fe86d3861613a85d3e75991f4bc7cd1e716 | refs/heads/master | 2022-12-09T04:58:55.264433 | 2020-09-22T07:29:44 | 2020-09-22T07:29:44 | 269,874,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | # https://www.acmicpc.net/problem/2484
def dice():
li = sorted(list(map(int, input().split())))
temp = set(li)
if len(temp) == 1:
return li[0] * 5000 + 50000
elif len(temp) == 2 and li[1] == li[2]:
return li[1] * 1000 + 10000
elif len(temp) == 2 and li[1] != li[2]:
return (li... | [
"rladlsgh654@naver.com"
] | rladlsgh654@naver.com |
ffd7a469bbe16a8252af0d0bc72e1f384a69197a | 61a2d0c31d024586b366c379383727eef7cf6651 | /dongbinNa youtube/basic python/28강.py | 1814be069bed96450389ae42328fe836e18af258 | [] | no_license | junghyeonsu/algorithm-python | 7b6c794c422bcf8ecbc50c405217b834756fb02d | 07a3acf66e0ee35adb0c68f2a4239ca3434c103c | refs/heads/main | 2023-03-01T21:43:03.166922 | 2021-02-11T12:50:51 | 2021-02-11T12:50:51 | 325,808,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | # import는 예약어이다.
# for, True, None 예약어라서 변수명으로 사용못함
# 예약어들 확인가능
import keyword
print(keyword.kwlist)
'''
여러 줄에 대한 주석처리
''' | [
"jung660317@naver.com"
] | jung660317@naver.com |
8808e97d00638498d75fa4dbb88784b7ca9ec14a | 048cbcfe1d32c30ba0393ca4f1d662ecfd554479 | /getch.py | 8bc20e622583f705e0f1a3fe8e6f64c0e66e29b4 | [
"MIT"
] | permissive | runeksvendsen/btcdice | ca33f77441754e7a8385838c79b7f8c914754846 | 6adc17e4b084738e94ed52db746b437ed9fdf967 | refs/heads/master | 2016-09-06T08:42:51.132515 | 2013-09-06T22:23:58 | 2013-09-06T22:23:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | class _Getch:
"""Gets a single character from standard input. Does not echo to the
screen."""
def __init__(self):
try:
self.impl = _GetchWindows()
except ImportError:
self.impl = _GetchUnix()
def __call__(self): return self.impl()
class _GetchUnix:
def __init__(self):
import tty, sys
def __call__(... | [
"runesvend@gmail.com"
] | runesvend@gmail.com |
9444db399f0e4b0e4d353b25bb043f2c6adb88b7 | 27e342572a52177b24363a708a39b13f0a8408d4 | /src/Pages/homePage.py | 74adb6fc9591d13f810061ab57a6fe10c161c470 | [] | no_license | ksgaurav/Selenium_Python_PyTest | bf5e3a433a5ab9054f05cf3e312a97d7018f4b09 | 97a1d75513b383c2e2a2b525c7667dd7bf7a0550 | refs/heads/master | 2021-05-18T04:35:47.983642 | 2020-03-29T19:38:25 | 2020-03-29T19:38:25 | 251,110,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 522 | py | class HomePage():
def __init__(self, driver):
self.driver = driver
self.LoggedIn_As_xpath="//*[@id='logout-form']/div[2]/label/preceding-sibling::*[1]"
self.Log_Out_button_xpath="/html//input[@id='logout-form:logout']"
def click_log_out_button(self):
self.driver.find_element_b... | [
"ksgaurav.101@outlook.com"
] | ksgaurav.101@outlook.com |
93576199922965b76e6aae451eccce45bfffccf8 | 47175228ce25812549eb5203fc8b86b76fec6eb9 | /API_scripts/dfp/dfp_python3/v201408/custom_targeting_service/update_custom_targeting_values.py | ff879dd7d5d7d8f3c1653d851a0c2fe2b2a727d5 | [] | no_license | noelleli/documentation | c1efe9c2bdb169baa771e9c23d8f4e2683c2fe20 | a375698b4cf0776d52d3a9d3c17d20143bd252e1 | refs/heads/master | 2021-01-10T05:41:30.648343 | 2016-02-13T05:46:31 | 2016-02-13T05:46:31 | 51,477,460 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,604 | py | #!/usr/bin/python
#
# Copyright 2014 Google Inc. 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 b... | [
"noelle@makermedia.com"
] | noelle@makermedia.com |
450f36afe4320e63dcccb16ae96f07b209098fe8 | 6d5e56178bd0a6011951fcb55d9193ea6f6c0398 | /app/views.py | a15ff82e30c0aa2b278328a7fc774bbe30d2eb15 | [] | no_license | sirenita23/modulo-de-promotores | f6c92df0b862f7e4c6449fe238b4288a253369c8 | 443bdd8183b7f66cff7820197e653ea0418af144 | refs/heads/master | 2020-05-17T11:31:45.913771 | 2014-07-11T15:38:30 | 2014-07-11T15:38:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,848 | py | from django.views.generic import TemplateView,FormView
from django.shortcuts import render_to_response,get_object_or_404
from django.template.context import RequestContext
from forms import *
from django.http import HttpResponse,HttpResponseRedirect, HttpResponseForbidden
from django.contrib.auth.decorators import log... | [
"Tatiana_Zarate@hotmail.com"
] | Tatiana_Zarate@hotmail.com |
80e2733127aad16247c9ffaf9a42ab90ad898a57 | 3285a96f8d614fed0679111806041477ebfb6e9f | /models/dcnranking.py | 29dd557cd0cb670eb6fe0ceb4c4413d20cdb44d5 | [] | no_license | Clytzes/learning2rank | af0cfd2e37a0551f1a501d07fad933b9e76e1f21 | 22c2139b98427a0834e93800e9bd299d1d48dc81 | refs/heads/master | 2023-06-02T18:13:27.240744 | 2021-06-20T13:44:25 | 2021-06-20T13:44:25 | 378,601,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,640 | py | """
Reference:
[1] Guo H, Tang R, Ye Y, et al. Deepfm: a factorization-machine based neural network for ctr prediction[J]. arXiv preprint arXiv:1703.04247, 2017.(https://arxiv.org/abs/1703.04247)
"""
from deepctr.layers.interaction import CrossNet
from .baseranking import BaseRankingModel
_PRIMARY_HEAD = "primar... | [
"244792484@qq.com"
] | 244792484@qq.com |
b7357d3d9f27879e28802a35644380b9f54435bc | d16ea92cbce673b427da0d87c9017ae1fc50cc06 | /flask/config.py | 92ba0fb849e145423a515de46e648620e5c673b1 | [
"MIT"
] | permissive | sbilge/ClinVAP_api | da76f56e0a25118f5d384cdb1d4b2d550031d22a | b1319e73af3e718a09a66e2f5e1eea20794bfd1f | refs/heads/master | 2023-03-21T07:49:53.078628 | 2021-03-17T13:53:43 | 2021-03-17T13:53:43 | 257,304,253 | 0 | 0 | MIT | 2020-11-18T09:32:51 | 2020-04-20T14:20:32 | Python | UTF-8 | Python | false | false | 865 | py |
class Config(object):
DEBUG = False
TESTING = False
SESSION_COOKIE_SECURE = True
EXTENSION_SOMATIC = ["json", "vcf"]
EXTENSION_CNV = ["json", "tsv"]
SECRET_KEY = "throw-away-key"
UPLOADS = "/app/app/static/input/uploads"
DOWNLOADS = "/app/app/static/output/downloads"
NF_CONF = "/app... | [
"bilgesurun@gmail.com"
] | bilgesurun@gmail.com |
a8140ac64131df0e94f7c4b4e3daa8d4fbc87dbf | 6d60ac89ee9c14bfc62342f7b33da3932f4eb564 | /mini_build.py | 8b0881434026fcc7a4ba9e7ec6986b0b8a269d1d | [
"MIT"
] | permissive | samuelcolvin/donkey-simple-old | dda5b3c41387231b755965fa982bbb4c845e24c1 | 765810076c01d3677819e4f5a03aefd05300fbda | refs/heads/master | 2021-05-28T19:49:45.269978 | 2014-05-30T17:04:33 | 2014-05-30T17:04:33 | 14,808,774 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,039 | py | from DonkeySimple.DS.download import download_libraries
import os, re
lib_static_dir = os.path.join('DonkeySimple', 'WebInterface', 'static', 'libs')
libs_json_path = 'static_libraries.json'
try:
download_libraries(libs_json_path, lib_static_dir)
except Exception, e:
print 'ERROR: %s' % str(e)
print 'Probl... | [
"s@muelcolvin.com"
] | s@muelcolvin.com |
d8e46935378d3ea8504b94446ae4238683bd9df4 | ba6d202d3a758b6a46f93e13b76c229ef11a350c | /lpeManager/forms.py | 676487a800dbaf6ca2f365b0856befc57ae0562e | [] | no_license | yobuntu/cotiz-counter | e7ab0a5e327a6ec2d5873cf0922755b01f2eb4c8 | 0fa8db0e2df69586e5e9aab27ed21de39e60b117 | refs/heads/master | 2021-01-13T02:08:58.133190 | 2014-01-28T18:21:01 | 2014-01-28T18:21:01 | 14,698,427 | 2 | 0 | null | 2014-01-28T18:06:27 | 2013-11-25T21:05:56 | Python | UTF-8 | Python | false | false | 581 | py | from flask.ext.wtf import Form, TextField, PasswordField
from wtforms import validators
from wtforms.ext.sqlalchemy.orm import model_form
from lpeManager.db import db, Member, Contribution
class LoginForm(Form):
username = TextField('username')
password = PasswordField('password')
MemberFormBase = model_form... | [
"yohann@rebattu.fr"
] | yohann@rebattu.fr |
27f40c9a440d1403f493d2750d39f60eefbb88dc | 4c690b473a2fd8baa53377195933c2b996a01244 | /contrib/python/examples/python3/ldns-mx2.py | 9c8b103bf135f0f1582291d8ab97e80aec05921f | [
"BSD-3-Clause"
] | permissive | NLnetLabs/ldns | 77bdf4bf6f814fe8d7e274a1754e9bbf23ae0a4a | 67b9f0ae98910df882ca77f503673929a9e1db9b | refs/heads/develop | 2023-08-28T07:19:23.088018 | 2023-06-03T13:08:41 | 2023-06-03T13:09:04 | 72,740,793 | 248 | 103 | BSD-3-Clause | 2023-09-14T14:40:58 | 2016-11-03T11:57:12 | C | UTF-8 | Python | false | false | 562 | py | #!/usr/bin/python
#
# MX is a small program that prints out the mx records for a particular domain
#
import ldns
resolver = ldns.ldns_resolver.new_frm_file("/etc/resolv.conf")
pkt = resolver.query("nic.cz", ldns.LDNS_RR_TYPE_MX,ldns.LDNS_RR_CLASS_IN)
if (pkt) and (pkt.answer()):
for rr in pkt.answer().rrs():
... | [
"willem@NLnetLabs.nl"
] | willem@NLnetLabs.nl |
65ddfb41416fb179f3be9fdb9e2b69d06c5ea359 | 4ff779c1065f9212867ccd124b5d0eea0a66bbd6 | /Quiz3bCode.py | c4cf5396c2fd2361082fc3c53f5f8fef3605fcaf | [] | no_license | yanniey/InteractivePython | a9b5bbcaa977c367a2dc4c6bcc356542aa56dac3 | 36aee1653ecf245caf430a02f62b1065f98b6b1e | refs/heads/master | 2021-01-10T22:07:33.590327 | 2015-03-19T02:14:57 | 2015-03-19T02:14:57 | 31,241,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,690 | py | # Q6 Find epoch time
import time
time.gmtime(0)[0]
# Q8 Collatz conjecture
Given any initial natural number, consider the sequence of numbers generated by repeatedly following the rule:
divide by two if the number is even or
multiply by 3 and add 1 if the number is odd.
The Collatz conjecture states that this seque... | [
"happypineapple3@hotmail.com"
] | happypineapple3@hotmail.com |
899dd3cbaa0bd29426c51c1d29aec2b46a76b525 | 594cf130dd2d7bb67b6a2f49b2d4fea46b5b15b7 | /clientms/urls.py | 7f570ac1ba258cffd38f9318bb1d92d253fa259e | [] | no_license | jasminesmit1/ISQA8210-CMSAPP | 5f632e9b0ca39245390b8e0a21c63ede8966b69a | f7b46df958720f93f7a1f0b7de94d460fa359aef | refs/heads/master | 2020-12-28T16:35:49.630767 | 2020-02-05T09:11:06 | 2020-02-05T09:11:06 | 238,407,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,707 | py | """clientms URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-base... | [
"jasminesmit1@unomaha.edu"
] | jasminesmit1@unomaha.edu |
a40ab2dbce7300afcd86166710c810b3a538e662 | f63c4eb29ce57319441f5469d1d049b63bc220de | /swu_cycle_variance/run909.py | 93ff56deac66a626022dba5caebd6cc9b16e0c7d | [] | no_license | a-co/diversion_models | 0237642153668b16035699e9e734ff0538568582 | 69eed2687b1cd2b48f5717d15919eccd24a0eabc | refs/heads/main | 2023-05-02T19:04:26.333677 | 2020-06-18T20:50:18 | 2020-06-18T20:50:18 | 216,904,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,241 | py | SIMULATION = {'simulation': {'agent': [{'name': 'deployer_civilian', 'prototype': 'civilian_deployer'}, {'name': 'deployer_shared', 'prototype': 'shared_deployer'}], 'archetypes': {'spec': [{'lib': 'cycamore', 'name': 'DeployInst'}, {'lib': 'cycamore', 'name': 'Source'}, {'lib': 'cycamore', 'name': 'Sink'}, {'lib': 'cy... | [
"acaldwel@wellesley.edu"
] | acaldwel@wellesley.edu |
33d9a5f14e08e91b0a36cea7796270daf9f6d3fc | 71f19c14de97846193972830fbc9a4ec972d0ca9 | /website/management/commands/tweet_something.py | 9c69a942adf0593825c1b90f2c1043deb803ba42 | [] | no_license | wbt/govtrack.us-web | 87790050aaba83ca6cca16e26ec796603317e7da | c94c0dfdc809ad506a54108802a2328cc26ca97d | refs/heads/master | 2021-01-25T06:25:24.943845 | 2017-07-26T13:55:01 | 2017-07-26T13:55:01 | 93,572,164 | 0 | 0 | null | 2017-09-24T03:54:30 | 2017-06-06T23:15:59 | Python | UTF-8 | Python | false | false | 7,400 | py | #;encoding=utf8
from django.db.models import F
from django.core.management.base import BaseCommand, CommandError
from django.conf import settings
from django.utils import timezone
from django.template.defaultfilters import truncatechars
from collections import defaultdict
import json, os, sys
from datetime import time... | [
"jt@occams.info"
] | jt@occams.info |
facf2c950edb298be4b5858aceabe7db2bcc7958 | 3ffe3f73486a2648d02a4b8a8f1b8afeed49640c | /happyfridge/urls.py | 1c2082fa70bfa0542adb70ca7fb5045f3af016cf | [] | no_license | itsmurfs/happymate | d01a8cc6fbf3195f0602a6954031418aaf8200e4 | 9b9fbca888436a6184fcc07ec7a52b1d8106a506 | refs/heads/master | 2020-03-26T05:00:02.448284 | 2015-06-11T19:07:54 | 2015-06-11T19:07:54 | 37,278,711 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | from django.conf.urls import patterns, url
from happyfridge.views.rest import GetItemPool, CheckItem
urlpatterns = patterns('',
url(r'^$', 'happyfridge.views.views.home', name='home'),
url(r'^new-shopping-run/$', 'happyfridge.views.views.new_shopping_run', name='new_shopping_run'),
#TODO new file urls for res... | [
"blog@itsmurfs.it"
] | blog@itsmurfs.it |
defbbdf5962d84ec0bbfba2169060872f5f557fb | ed19a4048ae5d29e08548bbcbf5b68040248a47a | /emitter.py | 291dfb3f11a5006612b698921d13328e9aeaf716 | [] | no_license | auto-contest-kookmin/RPi-Laser-Emitter | 99bd49a5fe56471fb0e38c50418a2278066a71b5 | 2bcd0cae0e3bf8b2015aefb33aea8cb480476402 | refs/heads/master | 2020-09-22T08:32:45.682143 | 2019-12-01T11:34:38 | 2019-12-01T11:34:38 | 225,122,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | import RPi.GPIO as GPIO
import time
class LaserModule(object):
def __init__(self, channel):
self._channel = channel
# Setup GPIO
GPIO.setmode(GPIO.BOARD)
GPIO.setup(self._channel, GPIO.OUT)
def laser_on(self):
GPIO.output(self._channel, GPIO.HIGH)
def laser_off(s... | [
"xcm1321@gmail.com"
] | xcm1321@gmail.com |
87ecc7ac007f5c969b2bd1b877ba3d448bf3d058 | 542d5e2a2038c8c00d680024d601f66b1aeb01a2 | /run.py | 946f78b24637a291a2a2acf4176c6a0371268f54 | [
"MIT"
] | permissive | VyachAp/Sanic_explore | 902fc008953cc45d9d74ec9ac1063510949a943f | 45fd2b7f8efba148e50afb565cfd416aa6528de4 | refs/heads/master | 2020-08-05T01:47:20.886586 | 2019-10-02T13:48:38 | 2019-10-02T13:48:38 | 212,352,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66 | py | from app.main import start
if __name__ == '__main__':
start() | [
"apasov.v31@gmail.com"
] | apasov.v31@gmail.com |
da723470a028da5ef6065fb0d4d0e9b3f77b0420 | 1e6bea409acfe159d10346bda054a296abff38f6 | /.idea/first1.py | d4b5525d3ee96ca00ed2702733f0efcfaeb98e5a | [] | no_license | tangsong-ming/shangweiji | c07b0a9ed18403772f71411400ceab907c2b68fe | 1f5dfbf0cc3df9fdd97886dd94a1709ce29a9c88 | refs/heads/master | 2022-11-07T11:34:29.140261 | 2020-06-24T06:09:04 | 2020-06-24T06:09:04 | 274,589,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,244 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'first1.ui'
#
# Created by: PyQt5 UI code generator 5.11.3
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindo... | [
"452987852@qq.com"
] | 452987852@qq.com |
dc297c0b5e6036c2ea15e34e99425db785dd32f1 | f4434c85e3814b6347f8f8099c081ed4af5678a5 | /sdk/databoxedge/azure-mgmt-databoxedge/azure/mgmt/databoxedge/v2019_03_01/aio/operations/_operations.py | 00d071f258156e1def7090b7a8e641437310f9b5 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | yunhaoling/azure-sdk-for-python | 5da12a174a37672ac6ed8e3c1f863cb77010a506 | c4eb0ca1aadb76ad892114230473034830116362 | refs/heads/master | 2022-06-11T01:17:39.636461 | 2020-12-08T17:42:08 | 2020-12-08T17:42:08 | 177,675,796 | 1 | 0 | MIT | 2020-03-31T20:35:17 | 2019-03-25T22:43:40 | Python | UTF-8 | Python | false | false | 4,665 | 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"
] | noreply@github.com |
2c00eb254a63fa9c163f39d0639a77191228bd16 | e6eea901ac0b3350562ed21531675077c0cd3f8f | /0x10-python-network_1/6-post_email.py | f83a1672bcd85f8458f3dfcb800e1f0b35851f5d | [] | no_license | samscislowicz/holbertonschool-higher_level_programming | b614f2416a67fa13378ad9a8234dd628b44d2bbd | a9f27b3bdcd9dfe61fc9cfa9bc3bc6fd32ea17c5 | refs/heads/master | 2021-04-29T11:15:49.570773 | 2017-03-23T22:44:04 | 2017-03-23T22:44:04 | 77,852,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | #!/usr/bin/python3
import requests
import sys
if __name__ == "__main__":
url = sys.argv[1]
email = sys.argv[2]
payload = {'email': email}
r = requests.post(url, data=payload)
print(r.text)
| [
"samantha.scislowicz@gmail.com"
] | samantha.scislowicz@gmail.com |
cfd2398944de6b6983a74e0ad9c463b9ddd00a87 | 1ea4a27577095214f74d49e844bd145fdbfce894 | /L7Q2_Stamps.py | ff7dd61fc1a7b08bc7ff07be71fa68f1a87ef241 | [] | no_license | buchananwp/Udacity_CS101 | 6914a52754e63b48eedd64e440e66cbc74932cfa | 131916bc76ba027b018658ccb2edee42720f677b | refs/heads/master | 2021-09-07T17:37:20.515609 | 2018-02-27T00:10:26 | 2018-02-27T00:10:26 | 115,367,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,179 | py | # Define a procedure, stamps, which takes as its input a positive integer in
# pence and returns the number of 5p, 2p and 1p stamps (p is pence) required
# to make up that value. The return value should be a tuple of three numbers
# (that is, your return statement should be followed by the number of 5p,
# the number of... | [
"will@buchananwp.com"
] | will@buchananwp.com |
07e3482d6cbdc88ff97d535e249b4cdba6536028 | 3b594c97d3a83a863a1603b8ec89c9c76b39fc10 | /Calculating Mechanical cost of transport of the Dynamic Platform walking wheel/STRIDE_5-12-Adv.py | 8208e810c1d5809053fc87f651e660d14b47ec15 | [] | no_license | Ana-Maria-Smith-03/Ana-Maria-Smith-03 | f21e3f33195ad21c76f56e0082fb64a9fd71732f | f5a1ee16921921acee256ee55a8eda44ac5d397a | refs/heads/main | 2023-07-17T06:16:36.867482 | 2021-08-11T17:34:26 | 2021-08-11T17:34:26 | 395,063,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,724 | py | import pandas as pd
df = pd.read_csv('WM-NEW-12-CURVED-FEET (2).csv')
velocity_x = df[df.columns[1]]
velocity_values = velocity_x[7010:8194].values.astype('float64')
velocity_y = df[df.columns[2]]
velocity_y_values = velocity_y[7010:8194].values.astype('float64')
velocity_pairs = []
for num in range(len(velocity... | [
"noreply@github.com"
] | noreply@github.com |
3b1d6dec03293efd9bdbed97ea34210432f2cbb3 | 228ebc9fb20f25dd3ed2a6959aac41fd31314e64 | /schema/predict/instance/google/cloud/aiplatform/v1beta1/schema/predict/instance_v1beta1/types/image_classification.py | aac9e2bc91fc75d16de26dfd01bb98512f260f25 | [
"Apache-2.0"
] | permissive | orionnye/python-aiplatform | 746e3df0c75025582af38223829faeb2656dc653 | e3ea683bf754832340853a15bdb0a0662500a70f | refs/heads/main | 2023-08-03T06:14:50.689185 | 2021-09-24T03:24:14 | 2021-09-24T03:24:14 | 410,091,957 | 1 | 0 | Apache-2.0 | 2021-09-24T20:21:01 | 2021-09-24T20:21:00 | null | UTF-8 | Python | false | false | 1,593 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | noreply@github.com |
c15effebd2a032c284b6b1deacda207998aa2402 | a63a974653f2a035963501c6a6e52d4197411f8b | /problem-03/solution.py | 29bb6f230ba8bd949e7640a02632a0e516343937 | [] | no_license | hmleal/euler | 8c2ef1a585b32fa235c8e5bf3b30f35eac2e78f0 | 8a5be50761f6d0e59ea18c22bb6d693bdde29ec7 | refs/heads/master | 2023-01-24T03:33:55.851110 | 2023-01-13T19:57:34 | 2023-01-13T19:57:34 | 81,589,555 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | #!/usr/bin/env python
def prime_factores(number):
"""
Generate a list of prime factores below number.
"""
n = 2
factores = []
while n * n < number:
while number % n == 0:
number //= n
factores.append(n)
n += 1
if number != 1:
factores.append... | [
"hm.leal@hotmail.com"
] | hm.leal@hotmail.com |
8a31fb2658e068c346166523f70684bc6035c3fc | 410f0d66049ca881dfdeb9b7f784bd70b1c3f6e7 | /bootea/bootea/pipelines.py | 1bcd7524443c973b2ed7217b2a7ddcccda6d3f42 | [] | no_license | ans2human/Scrappers | 1bdf5a1a4a34752c58fb18d45ac01e3cb54b5fe1 | cb2183d25a8af08284f2a6c1311b8da24c720b96 | refs/heads/master | 2020-03-19T20:41:01.244911 | 2018-06-11T11:27:17 | 2018-06-11T11:27:17 | 136,911,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,934 | py | from scrapy import log
from twisted.enterprise import adbapi
import time
import sys; sys.path.append("/users/user/appdata/local/programs/python/python36-32/lib/site-packages")
import MySQLdb.cursors
from bootea.items import test
class MySQLStorePipeline(object):
def __init__(self):
print ('init')
s... | [
"ans2human@gmail.com"
] | ans2human@gmail.com |
5387d2b42affe2f5cf1126dabf8ea7c72b344820 | 18da0a2e0add449faa18bb19fbd2df7c77675c91 | /FlaskServer/flaskserver/blueprints/public/models.py | 17e13ac708bd1a2bb6d7c949960788ffdab6fb32 | [] | no_license | TheOfficialPu/PuBot | 8c4aaf104749a4d8996ef6e8530804568386b866 | 3bbb48ceb325aed02f8f5622562734ad0c07f063 | refs/heads/master | 2021-06-25T17:58:41.888806 | 2017-09-13T02:44:13 | 2017-09-13T02:44:13 | 103,343,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 819 | py | """defines the models for the public pages
"""
from datetime import date
from flaskserver.extensions import db
class BetaSignUps(db.Model):
"""stores the emails for users who sign up for the closed beta
"""
__tablename__ = "beta_sign_ups"
id = db.Column(db.Integer, primary_key=True)
email... | [
"noreply@github.com"
] | noreply@github.com |
082e73da48e7aafe9074dd2daa5a5aeb6d571994 | 1b5327565942d95ec0d0fd283b7a16bb3aeb5faf | /service/dbhandler.py | 5d3899ff144a35ecce84a4ecfa7af0b2101ae256 | [] | no_license | olavgg/FlaskIO | 62e477169964298fec2254f7bda43d8c19520222 | b119038857047663a54612297d841f8a17208b6d | refs/heads/master | 2016-09-06T11:21:14.113527 | 2013-04-11T14:20:34 | 2013-04-11T14:20:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,390 | py | import sqlite3
class DBHandler:
def __init__(self, dbname):
self.connection = sqlite3.connect(dbname,check_same_thread = False)
self.cursor = self.connection.cursor()
self.connection.row_factory = sqlite3.Row
self.execute("DROP TABLE file")
self.execute("""
crea... | [
"olav@olav-VirtualBox.(none)"
] | olav@olav-VirtualBox.(none) |
4e68d6993b53a2ddd25f70df5669610a0df20cf0 | 952762035d7ffa7c46a2c7dc85063f08b1c4a975 | /2019/23/intcode.py | be46113b6662b2f5f65c6203efea2182ca7f225a | [] | no_license | pjot/advent-of-code | c8a59df25b3c1afa0e14fd22139b9ac3b789ff4d | 4b8b5c55c44dc8325caa2aeea7aa064a98738fd7 | refs/heads/master | 2023-03-10T20:22:44.724300 | 2023-03-04T21:01:02 | 2023-03-04T21:01:02 | 225,183,593 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,708 | py | def parse_file(filename):
with open(filename) as f:
code = f.readline()
ints = code.split(',')
program = [int(i) for i in ints]
return program
def parse_instruction(instruction):
full_instruction = '{:05d}'.format(instruction)
return (
instruction % 100,
int... | [
"peter.bergstrom@trioptima.com"
] | peter.bergstrom@trioptima.com |
f745deca3f8bab4ea141b85d67a953beab121496 | 025fa245d4cbffdaa422287ed2f31c4d0442ee28 | /orders/api/serializers.py | 15a4a1cf958d28696d037af645fde921fd646007 | [
"MIT"
] | permissive | elcolie/zero-to-deploy | 01f346ca50b8ccb271faef23934abe6a487baca6 | 6191a33ef55af7c550c0e529a4e373bfe40bc014 | refs/heads/master | 2022-02-08T23:22:17.008555 | 2018-06-15T19:39:06 | 2018-06-15T19:39:06 | 137,083,690 | 0 | 0 | MIT | 2022-01-21T19:35:33 | 2018-06-12T14:28:01 | Python | UTF-8 | Python | false | false | 1,228 | py | from rest_framework import serializers
from menus.models import Menu
from order_items.api.serializers import ShortItemSerializer
from order_items.models import OrderItem
from orders.models import Order
class OrderSerializer(serializers.ModelSerializer):
url = serializers.HyperlinkedIdentityField(view_name='api:o... | [
"sarit@elcolie.com"
] | sarit@elcolie.com |
149851cab0efe1df5420e4e5a5ed8968a71970f2 | 2b224080f819e83a0efb6a9cdadd9a1ad017a3b6 | /checker.py | 88d3b352d1cab0affee3a1520d699fa661de04f8 | [
"Unlicense"
] | permissive | Kr0nuzz/simple_checker | 064d12a20eb241aba80c8d0cd251891f40fc1a42 | 37c6fb33ff7f36fdf39bef843d201af4050f7a9c | refs/heads/main | 2023-02-17T07:09:13.916201 | 2021-01-18T11:35:45 | 2021-01-18T11:35:45 | 330,646,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,741 | py | import os
import requests
from time import sleep
import sys
def banner():
print ("""\033[1;32;40m _________.___ _____ __________.____ ___________ _________ ___ _______________________ ____ __._____________________ """)
sleep(0.1)
print (""" / _____/| | / \\______ \ | \_ _____/ \_ ___... | [
"noreply@github.com"
] | noreply@github.com |
7b07636c3c7bb911375af6bdece5352c14ca99d0 | 8306804d7f7805e5940cba4ce74c4fbd0ee5f2e2 | /TSP_veroviz.py | 0cb5cf63eb629dc8b6044b0f160a525a8545f79a | [] | no_license | Abhisheks2253/Travelling-Salesman-Problem | 3328eb56d9cdf046da220b9f97e65b63226a463f | e4290e411ce621006caa1644fa24d0c35443c05a | refs/heads/master | 2022-12-15T07:40:17.244472 | 2020-09-02T21:23:44 | 2020-09-02T21:23:44 | 289,111,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,249 | py |
import pandas as pd
import numpy as np
import csv
import random
import math
import time
import veroviz as vrv
vrv.checkVersion()
# Bounding Region:
# [There is no bounding region defined]
#Nodes selected here are the house locations of UB students in south campus
# Nodes:
nodesArray = [
{'id': 0, 'lat': 4... | [
"noreply@github.com"
] | noreply@github.com |
b652bbf07e425bd9481d1d655e332026544a5a6b | 14038cadd26336299b26ded06f0220cac281b2aa | /Archiv/Uebung/UE22/UE22_1.py | 7a9a79153065fc39b11ec2a827e4cd5b3c9ca132 | [] | no_license | KerberosHD/sj20_5ahit_ki_steiner | 85b01e68504692234d380d08f0b7f43f0534eaa9 | 54bcdc02468d4edfb32389f4cba57e937c11b6fa | refs/heads/master | 2023-08-15T22:01:22.744389 | 2021-09-30T20:06:10 | 2021-09-30T20:06:10 | 412,208,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,574 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
# imports
import numpy as np
from sklearn.metrics.pairwise import cosine_similarity
# In[2]:
cosine_similarity(np.array([4,0,5,3,5,0,0]).reshape(1,-1), np.array([0,4,0,4,0,5,0]).reshape(1,-1))
# Task 1
# In[3]:
cosine_similarity(np.array([4,0... | [
"t.steiner@htlkrems.at"
] | t.steiner@htlkrems.at |
3f263a2f1abc45d83649b00dfc604ebb900b4cbd | fa7deca280e1443d5ca79e9910f295a668be14b0 | /compile.py | bc770262d10363c06f9b6fdd5e15420b7d681620 | [
"Apache-2.0"
] | permissive | tomas-cliqz/ichnaea | e210ba419eb2a69553594e3dd4dba2c56c88753a | 1e49cc694b1e9c850417ac093e81849b1886b19e | refs/heads/master | 2021-01-12T20:00:27.455686 | 2016-01-27T14:00:22 | 2016-01-27T14:00:22 | 49,965,385 | 0 | 0 | null | 2016-01-19T16:17:23 | 2016-01-19T16:17:22 | null | UTF-8 | Python | false | false | 1,686 | py | """
This script is used as part of the "make release" command used as part of
building an rpm of this entire virtualenv.
The rpm building process compiles all *.py files found anywhere in the
source tree, independent of whether or not these would actually be used.
It finds some Python files which aren't meant for the ... | [
"hanno@hannosch.eu"
] | hanno@hannosch.eu |
84e3e88069624040064a50112d49a323593a3c36 | 40f80ef6a0f3004c76e8d9ac837ce4c894e83cbb | /023.py | b6e69825e05d5043f821f58cfdaee3dafa9d2039 | [] | no_license | unixwars/euler | f552a3f57e28d9f6bd218da82179524d5e52b679 | 634bf89d2420eb0ff81f0e8283324a353034b805 | refs/heads/master | 2016-09-11T12:00:09.351035 | 2012-01-08T20:41:38 | 2012-01-08T20:41:38 | 3,131,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,306 | py | #!/usr/bin/env python
# A perfect number is a number for which the sum of its proper
# divisors is exactly equal to the number. For example, the sum of the
# proper divisors of 28 would be 1 + 2 + 4 + 7 + 14 = 28, which means
# that 28 is a perfect number.
# A number n is called deficient if the sum of its proper div... | [
"taher@unixwars.com"
] | taher@unixwars.com |
5ad0c6eda5d683bce7781bcc42c0c0b1409f4e3c | d258e840cf369ed140644d3d60058726e4040931 | /src/datasets/common/dataset_source.py | 58435a332f055ec88e516732b5b84d8b0906fb37 | [
"MIT"
] | permissive | amirunpri2018/SSD-Algorithm | bb311f816e83c83e91d171a7fe10e44878e5a890 | 778c8be06ad75c6dfbe98660fb32ef4cacb7ce4a | refs/heads/master | 2021-01-09T19:33:48.374320 | 2019-08-15T04:17:24 | 2019-08-15T04:17:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,268 | py |
import numpy as np
import os
import shutil
import sys
import tensorflow as tf
from abc import ABC, abstractmethod
from tqdm import tqdm
__exec_dir = sys.path[0]
while os.path.basename(__exec_dir) != "src":
__exec_dir = os.path.dirname(__exec_dir)
sys.path.insert(0, __exec_dir)
from utils.common.archives import ext... | [
"leletinger@gmail.com"
] | leletinger@gmail.com |
8c8128f4440d14c061e7ea63a3571cec1e9d6714 | 6f7dcc12e1f2c9d2646e2e73c88ce3ee2ec84413 | /setup.py | ea51ff7f3eaaafd18f3908d1de3341043380a4b0 | [
"MIT"
] | permissive | TJREVERB/iridium-cli | ebe9c9a45d82d8965d618433e8dc530c36bde95b | 5007688c8601eda0ba71c246af363b7653156b67 | refs/heads/master | 2020-05-21T01:58:57.512928 | 2019-05-11T00:26:15 | 2019-05-11T00:26:15 | 185,866,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | from setuptools import setup
setup(
name='iridium-cli',
version='0.1',
py_modules=['main'],
install_requires=[
'click',
],
entry_points='''
[console_scripts]
iridium-cli=main:main
''',
)
| [
"akashbbhave@gmail.com"
] | akashbbhave@gmail.com |
4a34314cf3ab3799f0e9db22f7bf9934c45a1f33 | d0ff9af885dc01de43ae7bdd2d26d6370c7b7ab5 | /unsup_vvs/neural_fit/brainscore_mask/compute_rdms_from_activations.py | 6d62b4160899f47a41da16e2251033e1f396d3d0 | [] | no_license | augix/unsup_vvs | a09f89c7d002006f59ffbe223c9469e959949e04 | 168ed0d068d27b7a7ca1dd5c1ebc28fbe84f8c7c | refs/heads/master | 2023-07-17T05:55:27.630844 | 2021-06-24T01:27:28 | 2021-06-24T01:27:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,860 | py | import pickle
import argparse
import os
import sys
import pdb
from tqdm import tqdm
import numpy as np
RESULT_CACHING_DIR = '/mnt/fs4/chengxuz/v4it_temp_results/.result_caching'
DEFAULT_SAVE_DIR = os.path.join(RESULT_CACHING_DIR, 'computed_rdms')
ACTIVATION_DIR = os.path.join(
RESULT_CACHING_DIR,
'model... | [
"chengxuz@node07-ccncluster.stanford.edu"
] | chengxuz@node07-ccncluster.stanford.edu |
fa003de4ee3de4e7bedcf10266cdb6a8c9a3f183 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02576/s945264148.py | c54a359be369f17e4f7c755d919335e3b79d3522 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 81 | py | n, x, t = map(int, input().split())
ans = t * (n//x)
print(ans+t if n%x else ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c71f7e03b5b575a44ab8dd19ebb66dc7e75e3cb3 | 8accbf963d943f513b78c10abf27bc6dc7a3ca3a | /Assignment3/MillerRabin.py | 5edd0b24200ddf4f3e985573ce72839a06cca7b8 | [] | no_license | huizhu912/Miller-Selfridge-Rabin-s_Primality_Test_Python | 25218813029f1933139db8582790de26b69996ac | 9ddafc29b95884e337f49e0d94b9b5ee8089b031 | refs/heads/master | 2021-01-10T18:53:39.447217 | 2014-06-27T01:12:39 | 2014-06-27T01:12:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | def MillerRabin1(input, base):
global n, result
n = input
A = base
result = False
k = 1
q = int((n - 1) / pow(2, k))
x = j = 0
if n == 2:
result = True
return result
if (n > 1) & ((n % 2) != 0):
while (q % 2) == 0:
k = k + 1;
q = int((... | [
"hzhu@scu.edu"
] | hzhu@scu.edu |
ecbbe380ee06e59502cd568e0d8911e8ee387e8b | ef72a7df3c39c215dd90ac5e72b164eb9d7da892 | /rpg/heroes/exp.py | 8580678d1bd1cda8e1e24f9779c8fce251493dcc | [] | no_license | thebmo/messing_around | d49a87fc1ff722428ea67bc710ca99ad287098bd | 4cb12e0b224cf7d1f93cb4ae6ff7603619fb7aa9 | refs/heads/master | 2021-01-13T02:18:50.799898 | 2015-04-08T01:12:41 | 2015-04-08T01:12:41 | 28,570,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,220 | py | exp_to_next_level = [
0,
29,
87,
174,
304,
499,
792,
1232,
1891,
2880,
4364,
6218,
8534,
11428,
15045,
19114,
23690,
28837,
34627,
41141,
48468,
56711,
65983,
76413,
88147,
101347,
116196,
132901,
151694,... | [
"bmosier@gmail.com"
] | bmosier@gmail.com |
b5066d93b89dbe531f0d1d7db8afd9b68a9f2054 | 0fccee4c738449f5e0a8f52ea5acabf51db0e910 | /genfragments/EightTeV/TprimeTprime/TprimeTprimeToTGluonTgammainc_M_1500_TuneZ2star_8TeV-madgraph_cff.py | bca53a40e08e1ac7eb68e154614e26312a4e4d4b | [] | 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 | 5,304 | py | import FWCore.ParameterSet.Config as cms
#from Configuration.Generator.PythiaUEZ2Settings_cfi import *
from Configuration.Generator.PythiaUEZ2starSettings_cfi import *
generator = cms.EDFilter("Pythia6HadronizerFilter",
pythiaHepMCVerbosity = cms.untracked.bool(False),
maxEventsToPrint = cms.untracked.int32(0)... | [
"thomas.peiffer@cern.ch"
] | thomas.peiffer@cern.ch |
b65f08fa09dc28c5be2310a1cdafa3089b999084 | c1fabce1f3e4df317db0884cbb5507b381f5e8f0 | /Code/graphes/make_logo.py | 6691773cecde879b56aa9068ad7242e9ae296066 | [] | no_license | fbunel/Geo_Project | 65694cd9da07c92fa1fa3e03fb576d5258c8a4e9 | b692f9ad5aab90547ecab376bc4f65c70ba2bdd0 | refs/heads/master | 2021-01-12T10:42:50.179858 | 2017-02-09T17:08:36 | 2017-02-09T17:08:36 | 72,648,230 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,608 | py | from sim2 import terre
#from sim2_v2 import terre
import matplotlib.pyplot as plt
from mpl_toolkits.axes_grid.axes_grid import Grid
import numpy as np
from datetime import datetime
#on va calculer T à t=+infini(~20My) pour 4 CI différentes :
# 1. t0 = 0My , avec fusion des materiaux
# 2. t0 = 1My , avec fusion des... | [
"hadriman@live.fr"
] | hadriman@live.fr |
c82c76d61b5bb9ccc114333c8fcc399283bb3db2 | b612c1af17e0297d845fc213e80f8749ca1d3720 | /sha1.py | b3f148babda3d14a7d6f36271f409c3435881d57 | [] | no_license | nikofil/mycrypto | 5c42e2981eee3bbd5b41fef1a8d4bd2c0929aaa6 | 75b26e96c4903f65cbb17cbef91dce6a20610f8f | refs/heads/master | 2021-01-24T11:27:37.184585 | 2018-01-25T13:19:49 | 2018-01-25T13:19:49 | 70,232,185 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,013 | py | #!/usr/bin/env python
from __future__ import print_function
import struct
import io
try:
range = xrange
except NameError:
pass
def _left_rotate(n, b):
"""Left rotate a 32-bit integer n by b bits."""
return ((n << b) | (n >> (32 - b))) & 0xffffffff
def _process_chunk(chunk, h0, h1, h2, h3, h4):
"... | [
"nikolaos.filippakis@cern.ch"
] | nikolaos.filippakis@cern.ch |
ec853b092a4c7f85ffba41a2fa671fb4db5f0ec6 | e22807c554060f78d9333634ac9785687e38d794 | /gerrit-data-export/gerrit-export.py | a5366fc2b7888eadaa4021d7fdf2d7a8c14c83db | [
"Apache-2.0"
] | permissive | firebird519/python | bfb74766977d042d825d7afc3db2d7db7ba8b6b4 | d61b0d4e7c9d7fa36cd6d6bdd7e82c7e5de5fed1 | refs/heads/master | 2021-07-18T11:15:47.518327 | 2017-10-20T03:17:20 | 2017-10-20T03:17:20 | 107,625,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,204 | py | #!/usr/bin/env python
# pythond version: 2.7.10
import os
import sys,urllib,string,re
import urllib2
import webbrowser
from time import localtime, strftime
global DEBUG
DEBUG = 0
FILENAME_SCRIPT_START_DAYTIME = '.script_starttime.conf'
# KEY name list
SUBJECT_KEY = 'subject'
_NUMBER_KEY = '_number'
OWNER_KEY = 'ow... | [
"liyong.wu.x@gmail.com"
] | liyong.wu.x@gmail.com |
a72c34303dffb1d5dddf345e398b5b060e778603 | 68267b2894f655918b6f054cf95a6ead101d1e04 | /gamebase.py | cffe378ba829982f5b862d5d8763bc1c7d80aeed | [
"MIT"
] | permissive | MrValdez/pictionary-clone | 8b59488237735c149ea39979c90b074da1cbcda2 | 214ed00664c7880e7f8da0e0ae394c59d97ab937 | refs/heads/master | 2021-01-19T21:08:26.374927 | 2017-05-06T13:09:38 | 2017-05-06T13:09:38 | 88,609,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,448 | py | import pygame
class Action:
packet_name = None
network_command = False
data_required = True
def __init__(self, data=None, target_id=None):
# target_id is the id of the player to send this packet to
if not self.packet_name:
raise TypeError("packet_name not initialized")
... | [
"shunyvaldez@gmail.com"
] | shunyvaldez@gmail.com |
2dda0a832905a822ac647d1b15cd616464ea8868 | 94062944af78a4bce491a00f8b4e4319bd316b31 | /24GameSolver/Greedy/src/frontend1.py | 4972bc1400ddb7a567c1c41d8575d8380a3e3492 | [] | no_license | Harisalghifary/24GameSolver | 07492285bf84689f1227cf5019528fdef3bd4673 | 61778ccf165611ef264d9c55241b2256641afa42 | refs/heads/master | 2020-05-07T18:34:26.861918 | 2019-04-11T11:22:20 | 2019-04-11T11:22:20 | 180,773,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,353 | py | import sys
import file as f
import cardGUI as cgui
import backend as engine
import random
#Inisiasi operator
listOp = ['+','-','*','/']
def generateCards():
hand = []
for i in range(4):
while True:
num1 = random.randint(1,13)
num2 = random.randint(1,4)
if num2 == 1... | [
"haris.solo68@gmail.com"
] | haris.solo68@gmail.com |
087488ff388007bc22c3fc44730051eb340a7776 | f9b45fd409384de3c69d68c62c0f21d9196e6927 | /python_tools/test/profile_mem_engine_record.py | 7e919bce20db8df7eb99dd3b72aca21e32525aaa | [
"MIT"
] | permissive | ultimatezen/felix | 04799eb666b54e2eeea961dc983cf3721f5182de | 5a7ad298ca4dcd5f1def05c60ae3c84519ec54c4 | refs/heads/master | 2020-04-08T14:21:02.872525 | 2016-02-16T01:18:11 | 2016-02-16T01:18:11 | 159,433,144 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,583 | py | #coding: UTF8
"""
Unit tests of Python translation record COM server
"""
import unittest
import socket
from FelixMemoryServes import MemoryEngine
from win32com.client import Dispatch as d
HOST = socket.gethostbyname(socket.gethostname())
PORT = 8765
BASE_URL = "http://%s:%s" % (HOST, PORT)
def ... | [
"software@ginstrom.com"
] | software@ginstrom.com |
047f80690a5099e9f1505b2dd7da347d7bd2adc1 | 04ae1836b9bc9d73d244f91b8f7fbf1bbc58ff29 | /378/Solution.py | 2933a83513c07b54670ecbf4838330642d1675d9 | [] | no_license | zhangruochi/leetcode | 6f739fde222c298bae1c68236d980bd29c33b1c6 | cefa2f08667de4d2973274de3ff29a31a7d25eda | refs/heads/master | 2022-07-16T23:40:20.458105 | 2022-06-02T18:25:35 | 2022-06-02T18:25:35 | 78,989,941 | 14 | 6 | null | null | null | null | UTF-8 | Python | false | false | 2,165 | py | """
Given a n x n matrix where each of the rows and columns are sorted in ascending order, find the kth smallest element in the matrix.
Note that it is the kth smallest element in the sorted order, not the kth distinct element.
Example:
matrix = [
[ 1, 5, 9],
[10, 11, 13],
[12, 13, 15]
],
k = 8,
return 1... | [
"zrc720@gmail.com"
] | zrc720@gmail.com |
3c415b6254a6a1dfd67e5c564bbeeab602bbbac5 | c3432a248c8a7a43425c0fe1691557c0936ab380 | /Greedy/1744_수묶기*.py | cb76fdcd5d14a3364ec30819632212850e7c8292 | [] | no_license | Parkyunhwan/BaekJoon | 13cb3af1f45212d7c418ecc4b927f42615b14a74 | 9a882c568f991c9fed3df45277f091626fcc2c94 | refs/heads/master | 2022-12-24T21:47:47.052967 | 2022-12-20T16:16:59 | 2022-12-20T16:16:59 | 232,264,447 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 670 | py | import heapq
n = int(input())
sm = 0
plus = []
minus = []
zero = 0
one = 0
for _ in range(n):
val = int(input())
if val == 1:
one += 1
elif val > 0:
heapq.heappush(plus, -val)
elif val == 0:
zero += 1
else:
heapq.heappush(minus, val)
if len(plus) % 2:
heapq.hea... | [
"pyh8618@gmail.com"
] | pyh8618@gmail.com |
738b16a565050ab5bf94008fc00fd77340922a1e | 2f25c34258cfc278bb69a8973201e4daca7e5392 | /douban/douban/settings.py | d686915e2f62b7a16bb3712ffc3f39481028bf06 | [] | no_license | flypandaaaaaaaaaa/spider-douban250 | e47cd846ca2b0fe0610e8dc10bc395bc498f7035 | c42e592c6f28d47850771f00737d5f3f33ed659a | refs/heads/master | 2020-03-23T22:11:21.930903 | 2018-07-24T16:05:02 | 2018-07-24T16:05:02 | 142,159,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,147 | py | # -*- coding: utf-8 -*-
# Scrapy settings for douban project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://doc.scrapy.org/en/latest/topics/settings.html
# https://doc.scrapy.org/en/latest/topics... | [
"fllypanda@outlook.com"
] | fllypanda@outlook.com |
71a26a87ecee866c893700324d40a1a2572e4a99 | 6eb58e32b469c37428185ab4456184905a5b4fb5 | /analysis_code/parse_ICD.py | c9e4102115862dbdf62d0a5bc4cdcd1bf75b3e03 | [] | no_license | rchenmit/mht_analysis | 0b8bfff7730df835975c7c41d65f007ad269e3a9 | 678d4419bdaed9ed9d0041df3a2cd8638074590f | refs/heads/master | 2020-04-06T03:40:41.577209 | 2015-01-12T00:14:48 | 2015-01-12T00:14:48 | 19,548,658 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,113 | py | ## Robert Chen
## Monday 5/12/2014
##
## read and process BMI file
##
##
import datetime as dt
import scipy as s
## options
input_folder = '../../data/new_data_20140416/Data_20140409/'
output_dir = '../../data/new_data_20140416/Data_curated_RC/'
pickle_dir = '../analysis_output/pickle/'
bool_make_count_matrix_ALL = 0... | [
"robchen401@gmail.com"
] | robchen401@gmail.com |
abe52341576e209dbcf82c74244b0d909a3703fd | 3f67ebc7c3590c79c52270cbda0b04f1c376d11a | /accounts/migrations/0003_auto_20181026_1230.py | 0bbeec7575c7d7b2305503eed056216b3738fa48 | [] | no_license | ndolocr/stmarysack | 7459bbc1e505d2888e7f4f07453753782f210942 | 82b90ab1ce85f118db58f9e18ae566388943ad90 | refs/heads/master | 2020-04-02T14:39:46.596732 | 2018-10-26T20:12:32 | 2018-10-26T20:12:32 | 154,533,677 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | # Generated by Django 2.1.2 on 2018-10-26 09:30
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('accounts', '0002_member'),
]
operations = [
migrations.AlterModelOptions(
name='member',
options={'verbose_name': 'Member', ... | [
"ndoloraphael@gmail.com"
] | ndoloraphael@gmail.com |
3042f2d03444d4ec8ed65c9bcad199f8c3f11f73 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2536/60761/235389.py | 3dece7a79508610db4ccd9b65cff8208cc2b29f7 | [] | 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 | 412 | py | airlines=input("")
airlines=list(map(str,airlines[2:-2].split("],[")))
result=[]
result.append("JFK")
i=0
while(0<len(airlines)):
destination=[]
for airline in airlines:
if(airline.startswith('"'+result[i])):
destination.append(airline[7:-1])
destination.sort()
airlines.remove('"'+re... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
581ff3c3ff8eac75bf2c32be001fe3da752ff030 | 87bbeac699af7fa4dc76592acecef52dead1f436 | /Adelphi Academic Calendar/skill/skill_env/Lib/site-packages/docutils/parsers/rst/languages/it.py | ad6085c6d6d78353bca04e8d50786cae5b9e5628 | [
"MIT",
"OpenSSL",
"bzip2-1.0.6",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"Python-2.0",
"TCL",
"LicenseRef-scancode-newlib-historical"
] | permissive | EnriqueGambra/Amazon-Alexa-Skill | 79ec8848605a0e1e13092a1f6163dd63573322ec | 198ed51bef555eee006041fef0bcbf5c955142d5 | refs/heads/master | 2022-12-02T01:01:48.419524 | 2019-10-23T21:45:49 | 2019-10-23T21:45:49 | 214,226,014 | 0 | 2 | MIT | 2022-11-27T06:15:00 | 2019-10-10T15:58:16 | Python | UTF-8 | Python | false | false | 3,267 | py | # $Id: it.py 7119 2011-09-02 13:00:23Z milde $
# Authors: Nicola Larosa <docutils@tekNico.net>;
# Lele Gaifax <lele@seldati.it>
# Copyright: This module has been placed in the public domain.
# Beware: the italian translation of the reStructuredText documentation
# at http://docit.bice.dyndns.org/static/ReST, ... | [
"gambra7@gmail.com"
] | gambra7@gmail.com |
cc0f0201d837b9a6f3875538885dceae3cf9396e | c013b50cac54e74f9d36a9385a291828bba09e01 | /updated_t_test_qn.py | 29db54fce3dac3966f04c6fe89f1e8a3eb646b47 | [] | no_license | wsdhrqqc/BUL-project | 6aa8938f556cdb7ca3443c3f208a43f9e8871de4 | d5771d76d6671b96a2b875d4bcf17ed85445154d | refs/heads/master | 2022-12-15T16:17:41.541794 | 2020-09-14T21:34:41 | 2020-09-14T21:34:41 | 295,541,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39,130 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Sep 13 18:02:32 2020
This has been done with Ondemand interactive interface (Spyder4).
Script will be uploaded on Github.
@author: Qingc
"""
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon May 25 15:14:19 2020
@author: vicki
"""
# P... | [
"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.