blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d8391906f8bb05e5ab2dfe59b8402466d2ee2299 | c937ffde5434414f9ca37d8efa82a8419a8b5ff7 | /scikitlearn-tensorflow/bin/jupyter-migrate | 9b54c32c8528612148809c6baa8e148a1ef7c0d7 | [
"MIT"
] | permissive | mscienski/ScikitLearn-Tensorflow | 97c45f0bdcb95342ba18560e9f752ec5406fe91f | 9a10686c08e3b4cf0afe1da8f3a29e67148b6e51 | refs/heads/master | 2021-05-08T07:14:58.896983 | 2017-11-24T20:17:43 | 2017-11-24T20:17:43 | 106,726,721 | 0 | 0 | null | 2017-11-24T20:17:44 | 2017-10-12T17:52:30 | null | UTF-8 | Python | false | false | 293 | #!/Users/michalscienski/code/ScikitLearn-Tensorflow/scikitlearn-tensorflow/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from jupyter_core.migrate import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"michalscienski@workfront.com"
] | michalscienski@workfront.com | |
f3c25f57d7876d36705ee82b523352c7672cfbce | fd082e303f509d91b14d1a73304f58c9a8fdf1d6 | /street_parking_reservation/parking_reservations/migrations/0002_auto_20201207_1839.py | 1c1dea3006a1256259306e60f17d5bfdf7b8ea64 | [] | no_license | mihirsn/street-parking | 27f1fc930ad32cfc41c73ecae067c36112ac84db | 8cb3b8c0ca97bd48974bc3f4e889a143ae4716e9 | refs/heads/main | 2023-01-29T09:42:48.777284 | 2020-12-14T05:15:04 | 2020-12-14T05:15:04 | 318,709,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 718 | py | # Generated by Django 2.2 on 2020-12-07 18:39
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('parking_reservations', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='parkingspot',
name='status',... | [
"mihir_naik@ymail.com"
] | mihir_naik@ymail.com |
59126b8ece1459e9fd42f05f6d93addec62fcf95 | 8698757521458c2061494258886e5d3cdfa6ff11 | /word_embeddings/test/cross_validation_similarity.py | d138d4f193b83f117eac6f5e0a6ce69b794d605a | [
"MIT"
] | permissive | ricvo/argo | 546c91e84d618c4bc1bb79a6bc7cba01dca56d57 | a10c33346803239db8a64c104db7f22ec4e05bef | refs/heads/master | 2023-02-25T01:45:26.412280 | 2020-07-05T22:55:35 | 2020-07-05T22:55:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,995 | py | # export LC_ALL=en_US.UTF-8.
import pickle
from core.measures import evaluate_similarity_on_reverse_split
import numpy as np
import pandas as pd
import argparse
import os
def evaluate_cross_sim_and_org(dictionary, dataset, i_split, dataset_split, method, couples_data, ntop=1, cvcorrs={}):
p, I_inv, DV, I_norm, I... | [
"volpi@rist.ro"
] | volpi@rist.ro |
c9ea3706505e328d29c39892eea7aa6120d23b0d | c7aa86fc206ccdb91e89295704dd068892bda6f6 | /util.py | 9856587d7cdf0a52208fddc7d94f7018d3b5b3f8 | [] | no_license | ritobanrc/cryptopals | f2bb031f07de172f1f2735feae79a8f21dbc4e75 | 61c84db90516a915a24f4421d1216b4d2723579a | refs/heads/master | 2020-03-16T13:08:49.489344 | 2020-01-22T02:09:09 | 2020-01-22T02:09:09 | 132,682,310 | 0 | 0 | null | 2018-05-09T21:52:21 | 2018-05-09T00:59:52 | Python | UTF-8 | Python | false | false | 911 | py | #!/usr/bin/env python3
import binascii
import os
import sys
from math import ceil
def block_print():
sys.stdout = open(os.devnull, 'w')
def enable_print():
sys.stdout = sys.__stdout__
def print_split_blocks_b64(text):
print(b'|'.join([binascii.b2a_base64(text)[16*i:16*i+16] for i in range(0, ceil(len(... | [
"ritobanrc@gmail.com"
] | ritobanrc@gmail.com |
3230985ef9f2fafe228c5e3b1cd89a0fefb064cb | d5c8ca88c643492b95ca57e972b76bcc56aac251 | /maker/l18n_maker/mktrans.py | 9400be853f3388d9df62420c264846f9177cdd52 | [
"MIT"
] | permissive | olopost/l18n | b8462e6cd5eed0293e9e18cde23c850bc8553514 | c6ef71a94f32537d5c072b493b94d35ee06d9bf4 | refs/heads/master | 2020-03-19T16:14:17.737843 | 2018-06-09T09:12:34 | 2018-06-09T09:12:34 | 136,706,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,664 | py | import os
import codecs
from collections import defaultdict
from datetime import datetime
from copy import deepcopy
import re
from itertools import chain
import pytz
import polib
import six
from lxml import etree as ET
from .compat import configparser
from .settings import LOCALES, PO_PATH, PY_PATH
from .helpers impo... | [
"samuel@meyn.fr"
] | samuel@meyn.fr |
174fab88159917da005df7f544b51c6f69f9d901 | ef9ded4c36f812aafab8f9dcbe049bd7220da347 | /sum.py | 006d995e0efdb733a5c0a8084790e3560fc77475 | [] | no_license | willhyper/python_cuda_numba | 4bc0fd6dd0513979c64a0a05906aea63683752c1 | 324c6916b4a4b98cc76eee638206bad0fe452a4d | refs/heads/master | 2020-04-05T09:21:42.398129 | 2018-11-08T18:55:57 | 2018-11-08T18:55:57 | 156,752,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | #! /usr/bin/env python
import numpy as np
from numba import vectorize
import time
N = 1_000_000_000
@vectorize(['int16(int16, int16)'], target='cuda')
def vec_sum(a, b):
return a + b
def sum(a, b):
return a + b
def main():
A = np.ones(N, dtype=np.int16)
B = np.ones(N, dtype=np.int16)
... | [
"chchen@chchen-7250.adcorp.kla-tencor.com"
] | chchen@chchen-7250.adcorp.kla-tencor.com |
68b7e0edc2cb15f4a5795fc8fe8fd3ace39dfb3b | cde5600114cb9f1bbed0fc2ab387aac4f9a18c63 | /version.py | c8a2ef09f70534b9f3fa18d844c784c4abb7eb18 | [
"BSD-3-Clause"
] | permissive | RebeccaRrr/iVisDesigner | 3a6416946a39d6c4256b43754f14fa0e55340aa6 | 35435dc168d281de923cec5fcd1f21aa7380137a | refs/heads/master | 2020-03-22T10:39:51.288870 | 2018-02-16T22:31:05 | 2018-02-16T22:31:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | import commands
IV_version = "0.10alpha"
IV_rev = commands.getoutput("git rev-parse --short HEAD")
| [
"donghao.ren@gmail.com"
] | donghao.ren@gmail.com |
d46560cbc49c27ce3492bf33bcef835f61989a6b | d9edec82527fc8b0c98e1288f2161e496b984722 | /Regex_Sheet.py | 7fcc29c3ef753384a4ae43da3aeea8c8b325f9ab | [
"MIT"
] | permissive | HeyIamJames/PyGames | d8f1dfd13565945ac75959bc4a80a582f7efc8ed | ce2d667b0318a4c663933b2fce842d191f54bdc1 | refs/heads/master | 2020-05-21T23:34:07.415205 | 2018-06-21T06:26:48 | 2018-06-21T06:26:48 | 31,036,158 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | #cheet sheet = https://www.debuggex.com/cheatsheet/regex/python
#return all ints of len 6
import re
re.findall(r"\D(\d{6})\D", s)
#include 6+
only len 6 = /([\W\w])\d{6}
#only 6
^\D*\d{15}\D*$
#how to replace char
re.sub('[d]', ' ', x)
>>> str = "h3110 23 cat 444.4 rabbit 11 2 dog"
>>> [int(s) for s in str.split... | [
"noreply@github.com"
] | HeyIamJames.noreply@github.com |
85555f604a4c7310411f4bc0868e6122dbbf2275 | 03c3d78a80093cc27e421e758d27ac1ab88af28c | /dactyl/filter_link_replacement.py | 5f6e2dcc1869720e6d3cb42c72415ab5ab825824 | [
"MIT"
] | permissive | rippleclone/dactyl | aff6d244ea5a75422617924501f0f2661fffa33e | 4672bfb4d351657791dd7bb4e216437509db587d | refs/heads/master | 2021-04-28T08:30:27.724928 | 2018-02-17T01:26:09 | 2018-02-17T01:26:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,074 | py | ################################################################################
## Substitute Links filter ##
## Author: Rome Reginelli ##
## Copyright: Ripple Labs, Inc. 2017 ... | [
"mduo13@gmail.com"
] | mduo13@gmail.com |
389998e0016dfb745d0865cb2c25a7640c42ec89 | d4c1e34a07eebeaf1bce82ad860404373816caab | /loadXMLUI.py | b6a77755d6942c646d721508327777dd01384160 | [] | no_license | GiedreJursh/animation_importer-exporter_anim-blend | f245424d549b763400fe58bccb5146f4687d4422 | 8d0db13f054ad8257a98cf3dfa5da92449b12d46 | refs/heads/master | 2021-03-08T01:22:09.142790 | 2020-04-15T09:34:04 | 2020-04-15T09:34:04 | 246,308,669 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,444 | py | #==============================================================================
# Namn: Giedre Jursenaite ================
# Datum: 2018-12-04 ================
#============================================================================... | [
"noreply@github.com"
] | GiedreJursh.noreply@github.com |
2177c8bb67a563ce7dca172e126b7d7032796c68 | e27e5ef945ca30d50456ee366c662820dce4aee9 | /multiagent-particle-envs-master/multiagent/rendering.py | a80414a8b30c146d2a01f83f3f6a607be4f51ee7 | [
"MIT"
] | permissive | S4ltedF1sh/oodl-project | 399b862f49cc8180a0bfbd38e6998079096d5093 | b2a5f6e6e4d537fa2ce2cb2e1ceaf9d4bb300948 | refs/heads/master | 2023-01-21T13:10:07.820772 | 2020-11-30T12:51:08 | 2020-11-30T12:51:08 | 317,222,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,149 | py | """
2D rendering framework
"""
from __future__ import division
import os
import six
import sys
if "Apple" in sys.version:
if 'DYLD_FALLBACK_LIBRARY_PATH' in os.environ:
os.environ['DYLD_FALLBACK_LIBRARY_PATH'] += ':/usr/lib'
# (JDS 2016/04/15): avoid bug on Anaconda 2.3.0 / Yosemite
#from gym.util... | [
"minhvu.pham@stud.tu-darmstadt.de"
] | minhvu.pham@stud.tu-darmstadt.de |
61ed638564f28791b24b7cd7c21897b32fe62fd0 | c93080264201fe6d0c84a79ae435022981d8ccf6 | /panoptic/panoptic/doctype/facial_recognition_system/facial_recognition_system.py | 85576d855955e672d0df3ef2428a5befc108e3a5 | [
"MIT"
] | permissive | wisharya/panoptic | 100e733e9aad33d087851fc4ea9bd064e81954f2 | 7c9a0eeb6bd5d9032087ccb7c805a3e65a357ba8 | refs/heads/master | 2023-07-09T14:20:45.377441 | 2021-08-25T06:58:45 | 2021-08-25T06:58:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2020, Internet Freedom Foundation and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
# import frappe
from frappe.model.document import Document
class FacialRecognitionSystem(Document):
pass
| [
"scm.mymail@gmail.com"
] | scm.mymail@gmail.com |
9e2f3cbeefa98d81d8846f8b703e92cee46224ea | 8a707aacc9ecd999cb2a996f91a718ce02f6205c | /leetcode/CourseScheduleII.py | ede26c794c3d4748b777773929ba2f90dfd46583 | [] | no_license | seeyarh/interview-prep | e074f68f1c1c05b9ab0911f30b13dad69c7bbfb8 | 1af5f79ed9dcf334d2758e14a9c08e7880246a4f | refs/heads/master | 2022-03-13T12:26:59.441211 | 2019-11-14T19:35:31 | 2019-11-14T19:35:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,644 | py | '''
There are a total of n courses you have to take, labeled from 0 to n-1.
Some courses may have prerequisites, for example to take course 0 you have to first take course 1, which is expressed as a pair: [0,1]
Given the total number of courses and a list of prerequisite pairs, return the ordering of courses you shou... | [
"collinsrhuffiii@gmail.com"
] | collinsrhuffiii@gmail.com |
9366aeb52a075956515f6961f7209386098247ca | c6e8a4de46bfd8c355a4c443310594ce87ef9672 | /src/drift_plot.py | 55160aab7a8936f3cf3f21f0c11a20ca064b95c6 | [] | no_license | nuin/popgene.s2js | c9fac3df6803924fdcfce69506fa9e1d42da5852 | c66389f4d3bbd728cc6eae4a49f0ff8cf86794bf | refs/heads/master | 2023-02-25T20:48:43.147810 | 2021-01-27T02:33:10 | 2021-01-27T02:33:10 | 332,580,228 | 0 | 0 | null | 2021-01-27T02:33:11 | 2021-01-24T23:31:20 | Python | UTF-8 | Python | false | false | 1,520 | py | # Paulo Nuin Jan 2021
import altair as alt
import pandas as pd
import numpy as np
def plot_graph(json_file):
"""
:return:
"""
dataframe = pd.read_json(json_file)
dataframe.index.name = 'x'
dataframe = dataframe.reset_index().melt('x', var_name='category', value_name='y')
nearest = alt.... | [
"nuin@genedrift.org"
] | nuin@genedrift.org |
7703835a5b63c8526596eae2677539171409e3de | 78b4cb19770cf6cba794fcf336b0ab6f6c753e2e | /SRC/product/migrations/0014_product_prddescountprice.py | 550e0b9de019beeae3ec169787d499fb87251d7e | [] | no_license | medoosh79/Souq | b10be70342135585d068754246db16653bc7be31 | c01f84baee39c36def433bb3630e5bae8ce7e789 | refs/heads/main | 2023-04-01T06:11:22.250284 | 2021-04-09T22:55:00 | 2021-04-09T22:55:00 | 356,405,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | # Generated by Django 3.1.7 on 2021-04-04 19:02
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('product', '0013_auto_20210404_2136'),
]
operations = [
migrations.AddField(
model_name='product',
name='PrdDescountP... | [
"72854950+medoosh79@users.noreply.github.com"
] | 72854950+medoosh79@users.noreply.github.com |
2f418c58a6958c6e075720c48b9b2b0d5305095f | 41ee6c4358b09979a4a4373933752b04ebba2025 | /TP7/rl/cellular.py | 2f282439f5c0a9ef57ce550b0e1b8090c50269e8 | [] | no_license | sromany/Apprentissage | 897e3ec9df797fa171512e15d35f4aa12ea145f0 | a9233aa6fb5c2e42c3da5c4a0df6d49be2554057 | refs/heads/master | 2021-06-13T00:44:14.898081 | 2017-03-07T11:55:44 | 2017-03-07T11:55:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,852 | py |
# coding=utf-8
import random
import sys
neighbourSynonyms = ('neighbours', 'neighbors', 'neighbour', 'neighbor')
class Cell:
def __getattr__(self, key):
if key in neighbourSynonyms:
pts = [self.world.getPointInDirection(
self.x, self.y, dir) for dir in range(self.... | [
"sromany@a-018833.ups.u-psud.fr"
] | sromany@a-018833.ups.u-psud.fr |
218dd255791efaf0be22ffbadcd7b8aeb15ea68e | 133572e4bbe59a79a3cad64fa0de0500ca0d4a58 | /uri/1025.py | 444cba9e48b35aef76b9b4a2573942f1caae62b5 | [] | no_license | leandro-hbs/python-solutions | b8b74da52f466d613a62b480492cc1438db24eac | b3fa69b8f8d08610ddc6cb5b0114798e53d67c3d | refs/heads/master | 2023-05-14T14:59:19.901397 | 2023-04-25T16:32:52 | 2023-04-25T16:32:52 | 225,023,995 | 0 | 1 | null | 2020-01-11T12:16:39 | 2019-11-30T14:26:21 | Python | UTF-8 | Python | false | false | 739 | py | from bisect import bisect_left
def binary_search(array, item):
i = (bisect_left(array, item))
return i+1 if i < len(array) and array[i] == item else -1
cont = 1
while True:
num, con = list(map(int,input().split()))
if num == 0 and con == 0:
break
marmores = []
print('CASE# {}:'.format(... | [
"leandro.batista@academico.ifpb.edu.br"
] | leandro.batista@academico.ifpb.edu.br |
eb2a25ca1f321ccb18995a48ed60df38daeb05c7 | 7f3c09b2707fcd4f55ec1acccf94193e88b9ae33 | /coffee maachine/ipython.py | a776d4efcc3a367f63552710692050d76bf9956a | [] | no_license | regod10/my-python-projects | 6f8f632d94087bc4a6376a5c3b96a1d0ebcaebec | 83462a5357c0d79e23024419912d113dcb003847 | refs/heads/main | 2023-04-28T23:18:13.582599 | 2023-04-24T23:36:02 | 2023-04-24T23:36:02 | 311,811,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,390 | py | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'C... | [
"noreply@github.com"
] | regod10.noreply@github.com |
aff2e3d4a8b31eea14b1f27deb841c7f6fd6b5ff | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03139/s434904278.py | 34502437335082bac61aadf38d8e30ed218dbb86 | [] | 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 | 87 | py | n,a,b = map(int,input().split(' '))
print("{0} {1}".format(min(a,b),max(a + b - n,0)))
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
06f6074a20ddfa9793849de924eb5aac5f61a5bf | eddd90b807cff770b678f090b8fd9b32a9ced05e | /Madrid/July2022/smurf-busters/Interface/django_project/app/main/views.py | 7692a0a1eb625206913ad61b5eaf2cb0ac40ad62 | [
"MIT"
] | permissive | SaturdaysAI/Projects | ba26768c20ffb4a3f3c6bc26dd5dd71ee5065fdf | 99ab19f7896bc30cf059244962a7da318d4672bf | refs/heads/master | 2023-03-11T05:27:52.837311 | 2022-11-25T22:36:24 | 2022-11-25T22:36:24 | 188,530,455 | 35 | 36 | MIT | 2023-03-03T01:41:24 | 2019-05-25T06:41:09 | Jupyter Notebook | UTF-8 | Python | false | false | 963 | py | import json
import os
from django.shortcuts import render, HttpResponse
from django.http import JsonResponse
from django.contrib import messages
from django.urls import reverse
from django.http import HttpResponseRedirect
import hashlib
from functools import wraps
import logging
import copy
from django.template.load... | [
"noreply@github.com"
] | SaturdaysAI.noreply@github.com |
2738586937ed37c650c08c83414758db6e9f901a | d411824122cd250cd2c95302cf339426b0ee2ec6 | /ProblemSets/ProblemSet6/ps6.py | 477bbf3422d89b07b9dbb56c3e82d0c90c1812b0 | [] | no_license | paulwithap/MITx6.00x | da86e3b2fc5ec2d27655c451e68f05a7ab1066c5 | f34f59e0017a0a521e3b8779b236ea3532cc3581 | refs/heads/master | 2016-09-03T07:36:08.597909 | 2013-04-22T03:25:29 | 2013-04-22T03:25:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,508 | py | # 6.00x Problem Set 6
# RSS Feed Filter
import feedparser
import string
import time
from project_util import translate_html
from Tkinter import *
#-----------------------------------------------------------------------
#
# Problem Set 6
#======================
# Code for retrieving and parsing RSS feeds
# Do not ch... | [
"pjaworski27@gmail.com"
] | pjaworski27@gmail.com |
71227b941e2809759abccb685f70469423fba4e5 | 431a1f738b1edfba7dad8d10a6b7520d51d917cb | /Samples/UserSamples/2017/xH_Differential_Reco/xH_NJETS_0_Config.py | 4e0a6fdf11273f15866df7c41142cd35efb04132 | [] | no_license | aloeliger/DatacardCreator | 5ce702e46fbb77e843b44d8fe088c2645a4a8f66 | 5c7e890276a5be079ed3b677a471c1dcadcba52d | refs/heads/master | 2022-02-26T19:52:30.563747 | 2022-02-16T20:24:48 | 2022-02-16T20:24:48 | 215,602,523 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,623 | py | from Samples.SampleDefinition import Sample
from Samples.Uncertainties.UserUncertainties.TES import TESUncertainty
from Samples.Uncertainties.UserUncertainties.Signal_JES_17 import JES17Uncertainty
from Samples.Uncertainties.UserUncertainties.JER import JERUncertainty
from Samples.Uncertainties.UserUncertainties.MetRec... | [
"aloelige@cern.ch"
] | aloelige@cern.ch |
fbd24af153c52662384f7d7d5b93abab23dda9e1 | 2e126d8779c6d0123252a483611c035742d626da | /features/steps/obj_file_steps.py | 1f380d23f706082ecf1274f4922061e65d15220b | [
"MIT"
] | permissive | natehouk/ray-tracer | 1c250f624e202f9c17b120ac651efa672025a603 | 293eee036148e45b533431d13c3b6e375b4ca224 | refs/heads/master | 2023-03-01T03:53:22.824037 | 2021-02-14T09:42:23 | 2021-02-14T09:42:23 | 323,396,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,715 | py | from behave import *
from parser import parse_obj_file, obj_to_group
from tuple import point
@given(u'gibberish ← a file containing')
def step_impl(context):
context.gibberish = context.text
@when(u'parser ← parse_obj_file(gibberish)')
def step_impl(context):
context.parser = parse_obj_file(context.gibberish... | [
"nate.houk@gmail.com"
] | nate.houk@gmail.com |
8564fae4ea4edaef15f390a4f927ccfa825c49e8 | f45cc0049cd6c3a2b25de0e9bbc80c25c113a356 | /LeetCode/机器学习(ML)/plot_feature_transformation.py | c4a45b398f7482bac992a174a2f4a2381777a1fa | [] | no_license | yiming1012/MyLeetCode | 4a387d024969bfd1cdccd4f581051a6e4104891a | e43ee86c5a8cdb808da09b4b6138e10275abadb5 | refs/heads/master | 2023-06-17T06:43:13.854862 | 2021-07-15T08:54:07 | 2021-07-15T08:54:07 | 261,663,876 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,090 | py | """
===============================================
Feature transformations with ensembles of trees
===============================================
Transform your features into a higher dimensional, sparse space. Then train a
linear model on these features.
First fit an ensemble of trees (totally random trees, a rand... | [
"1129079384@qq.com"
] | 1129079384@qq.com |
58eb34d13830641c05a389e7f32d562c587efb98 | e79fb97c06e3a75bd0cf6135fbbd6c1ac08492cb | /cnn/vgg16net.py | 1c14e72e799125617b2cdc37f77caf322527616b | [
"MIT"
] | permissive | nocotan/chainer-examples | b1021e98654a6d377cc4669c7cedd57bca4f692d | d2b736231c6a6c2ba1effa3ddeb90770d7e020d9 | refs/heads/master | 2021-09-11T12:42:31.612581 | 2018-04-07T05:40:22 | 2018-04-07T05:40:22 | 78,973,921 | 13 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,288 | py | # -*- coding: utf-8 -*-
import chainer
import chainer.functions as F
import chainer.links as L
class VGG16Net(chainer.Chain):
def __init__(self, num_class, train=True):
super(VGG16Net, self).__init__()
with self.init_scope():
self.conv1=L.Convolution2D(None, 64, 3, stride=1, pad=1)
... | [
"noconoco.lib@gmail.com"
] | noconoco.lib@gmail.com |
b6064297dc58373f1ca18c6ddfb0b8c37d01e841 | 0a39aeb1ca9e124c818c86b55e169620aef74716 | /WithFlask/project.py | b29eaaa9c71b3cfc8498357900740f04c21b3c91 | [] | no_license | muhammet-mucahit/FullStack-Exercises | 72ffadd17d6df5ccd198568db5511c0678e28907 | 01699ab6cf86b6d7dd71a9c0462813a0da43e36a | refs/heads/master | 2020-03-11T21:41:00.639683 | 2018-04-19T21:05:44 | 2018-04-19T21:05:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,002 | py | from flask import Flask, render_template, request, redirect, url_for, flash, jsonify
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from database_setup import Base, Restaurant, MenuItem
app = Flask(__name__)
# Create session and connect to DB
engine = create_engine('sqlite:///restaurantm... | [
"mucahitaktepe@gmail.com"
] | mucahitaktepe@gmail.com |
fae2741b274219369d600210ca0936e5d0a71661 | 2e66469b5a1856bbc12b7038eab53c9e5b7f858e | /smoothing.py | 85d4ba71011ee69cb49f01a1b1c4b3b7a5c75092 | [
"MIT"
] | permissive | elaina03/Edge-preserving-Multiscale-Image-Decomposition-based-on-Local-Extrema | 62ec7eec62f17ea0d111e73f805a3ce99b852767 | 4304be64b44adb6b6a75f2ed2e2fd142e1f3a3ce | refs/heads/main | 2023-03-07T10:09:35.709817 | 2021-02-16T03:41:06 | 2021-02-16T03:41:06 | 335,565,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,481 | py | import numpy as np
from scipy.sparse import csc_matrix
from scipy.sparse.linalg import splu
import cv2
import sys
def getColorExact(localExtrema, ntscIm):
[n,m,d] = ntscIm.shape
imgSize = n*m
nI = np.zeros(ntscIm.shape, dtype=ntscIm.dtype)
nI[...,0] = ntscIm[...,0]
indsM = np.arange(imgSize).reshap... | [
"ellie931492@gmail.com"
] | ellie931492@gmail.com |
5788b3bbab2f799f304dbe17c00bef1aea0c7b18 | 9fdf64c2d07762cc71e99c9659437ec2f827975a | /Loop 9.py | ce131db5f2b98f65925fbe6aa8f646af548f3f79 | [] | no_license | Kome7a/automatebsp-tasks | bb72c41f0a678e67a377a7062150f5aed2e50cf1 | 583839d0c7e18a9cb189ba43049e59f25a3e2335 | refs/heads/master | 2022-04-24T20:09:05.867104 | 2020-04-23T12:15:59 | 2020-04-23T12:15:59 | 257,557,437 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | for i in range(0, 5):
print("*")
for b in range(0, 5):
b += 1
print(i, b)
| [
"e.kontilov@gmail.com"
] | e.kontilov@gmail.com |
8e01f44ae69c477fb05ba33df3c1be93d5e4bbc7 | a390bd7c0b1cf19f255913c03ad8c0231a0ea635 | /scrapy/Tencent/Tencent/untils/osdemo.py | ae208923f96b397ed7bc40b8b1532cbc8e136311 | [] | no_license | ChangfengHU/bigdata_notes | d03c736f29bc55f33b17c626b09de0a2fdcd5a17 | 67cbf66d83b2f1a7b182afa375069df237ca7506 | refs/heads/master | 2020-04-14T23:55:02.408530 | 2019-02-02T16:23:54 | 2019-02-02T16:23:54 | 164,221,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 86 | py | #encoding: utf-8
import os
path=os.path.dirname(os.path.dirname(__file__))
print(path) | [
"faker_322@outlook.com"
] | faker_322@outlook.com |
f3097de81d59a4155e526536d2ae31e634e087bb | ddaa20f2ff0aaed4c6beeba888c4213405fdd586 | /pypi_server/timeit.py | fe647520cadd0075e0453b61ab33572b87994218 | [
"MIT"
] | permissive | mosquito/pypi-server | 689fb84dd0cc56a70c7bfa6157b8defa76d774d8 | 825571aae6fd17616e404ad8a9b72ef791a4fc46 | refs/heads/master | 2023-08-17T14:17:50.177008 | 2021-11-14T17:11:52 | 2021-11-14T17:11:52 | 47,583,364 | 129 | 58 | MIT | 2021-11-14T17:11:53 | 2015-12-07T22:30:53 | Python | UTF-8 | Python | false | false | 899 | py | # encoding: utf-8
import logging
from functools import wraps
from time import time
from concurrent.futures import Future
log = logging.getLogger(__name__)
def timeit(func):
def log_result(start_time):
log.debug(
'Time of execution function "%s": %0.6f',
".".join(filter(
... | [
"me@mosquito.su"
] | me@mosquito.su |
1f6f414e833dcc2b69dc8ab9d2d28c1f6300c4d7 | 77c798d834efecff43bcb6d598e5d9a0370953ea | /store/urls.py | 963dfb667e86e79d6e41f00311c49cf399f5a4d2 | [] | no_license | Mohaned-Elfeky/Django_ecommerce | 2bd206eebb3853efde8cd445aec009f0e272fbfb | d816ecd3eb84fc2549e70b0f1581b8a0eb32856d | refs/heads/master | 2023-06-16T09:37:35.733354 | 2021-07-13T14:15:54 | 2021-07-13T14:15:54 | 329,772,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 637 | py | from django.contrib import admin
from django.urls import path,include
from . import views
urlpatterns = [
path('',views.store,name="home"),
path('cart/',views.cart,name="cart"),
path('store/',views.store,name="store"),
path('checkout/',views.checkout,name="checkout"),
path('update_cart/',view... | [
"Mohanedhassan1999@gmail.com"
] | Mohanedhassan1999@gmail.com |
85cda000e47e6c1d9a565c3a66425d714c4f4005 | 4f799c12c6e2a64d37e946f82caa3df60b941448 | /Basic Syntax and Commands/ex9.py | 733508cdfdb503734f2f950a2b7a58b15596cdf5 | [] | no_license | madhur3u/Python3 | 09725ac0ae702ce577806b7bebd885687d234415 | 49411964c405075817b02ba4d09d404908725dbe | refs/heads/main | 2023-09-06T04:21:04.583582 | 2021-11-01T11:42:37 | 2021-11-01T11:42:37 | 402,317,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | #use of \n and triple quotes in print
print('A\nB\nC\nD\nE\n')
#\n start a newline
print('''Hello
this can also be used rather than \\n
it will print as we write in code''')
# rather than single we can also use triple quotes """ like this """
| [
"noreply@github.com"
] | madhur3u.noreply@github.com |
542c19bcd75dbf4dbe3ce07f321301a0984f87a2 | 4600b1a9aa934ed67abae370c5e167d0b93f02f3 | /TTP/Exfiltration/data_encryption.py | 190876cc5dab40ada90b505c06c4b83c818d8e27 | [] | no_license | nallamuthu/RedTeam | c9141c6c5f4d0de1299dce5b9690294f1db4bde7 | 6f312b528263711c3fe9bd7c20b43d5dc49b3204 | refs/heads/master | 2021-04-11T12:53:05.205022 | 2020-07-04T08:27:20 | 2020-07-04T08:27:20 | 249,022,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,727 | py | import pyAesCrypt
from Crypto.Cipher import AES
import base64
import hashlib
from Crypto.Cipher import AES
from Crypto import Random
from arc4 import ARC4
from itertools import *
import sys
from cryptography.fernet import Fernet
'''
def write_key():
def load_key():
def decrypt_file_fernet(filename, key):
def encrypt_... | [
"nallamuthu.92@gmail.com"
] | nallamuthu.92@gmail.com |
06e6cc27001cefebe085879ad2f6c4cf3e09a305 | 19ef57b9fdca2c082add5191e5b623a4c25a1ffb | /Xml.py | 40a0cabbcaa308af4255a8876d4afe4c8db8e87f | [] | no_license | Sniper970119/Spider | 3ee7fc0f789bd14de10111aede4e6f8b58769ccf | d729a18b7000fe0e1bd9ca266206fa32d4fdc9ba | refs/heads/master | 2020-03-23T18:25:11.467156 | 2018-08-09T11:58:07 | 2018-08-09T11:58:07 | 141,907,508 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,691 | py | # -*- coding:utf-8 -*-
from lxml import etree
from bs4 import BeautifulSoup
import re
from pyquery import PyQuery as pq
# xml test -> tostring
# html = etree.parse('test.xml', etree.HTMLParser())
# result = etree.tostring(html)
# print(result.decode('utf-8'))
# xml test -> all
# html = etree.parse('test.xml', etree.... | [
"30463691+Sniper970119@users.noreply.github.com"
] | 30463691+Sniper970119@users.noreply.github.com |
a8ff9045b8723ec30df50533cea07324a8e8def4 | 6d92d6ce638b59ff1250ce39a55e672f905a0de0 | /analysis/utils.py | 1be344f004368d1331c60d6b98ab24be0e88ebde | [] | no_license | SaGagnon/gecode-5-extension | df3a17c3ef243a00facf9e96396cf096ee381b16 | 513b95f7b7996f69e7ea45191a44d68cfdedb823 | refs/heads/master | 2021-09-06T14:41:14.305373 | 2018-02-07T17:19:54 | 2018-02-07T17:19:54 | 92,327,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,434 | py | #%load /home/sam/gecode-5.0.0-extension/analysis/utils.py
#%%writefile /home/sam/gecode-5.0.0-extension/analysis/utils.py
from sklearn.linear_model import LogisticRegressionCV
import math
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.backends.backend_pdf import PdfPages
import seaborn as sns
impor... | [
"samuel.gagnon92@gmail.com"
] | samuel.gagnon92@gmail.com |
cb713521b660e4f2441b52912c4a2d4572fefc08 | d205918a6d47e8e3303fd105083c6cbdf94da3ad | /handOnRaspi/2servo.py | 6ff5ee06810ebb0ebd3a5d3caad10d2ad2821818 | [
"MIT"
] | permissive | tfrere/robot-repo | 08bf0080a6b262243a526aa7ef496277d4b7f2b2 | 66220f604991540f7d23148c524d41d775add263 | refs/heads/master | 2022-12-04T13:10:30.080067 | 2022-11-23T20:22:34 | 2022-11-23T20:22:34 | 33,684,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 548 | py | from Tkinter import *
import time
from RIPO import PWM
for i = 0 ; i ++ ; i < 2:
servo[i] = PWM.Servo()
servo[0] = GPIO.PWM(17, 100);
servo[1] = GPIO.PWM(18, 100);
class App:
def __init__(self, master):
frame = Frame(master)
frame.pack()
scale = Scale(frame, from_=0, to=180, orient=HORIZONTAL, command=self.... | [
"tfrere"
] | tfrere |
6f5fc191e7adbbfba9fe72f95be2821fb8e2cd90 | 384eb64b746b4e5e3d49c495bcc66925f81085cf | /contacts/views.py | a52c2c90673bc0246acc73f3cceb0d4edb4e434d | [] | no_license | julianodesenv/python-schedule | c650e87f4257ca929e7af4f7250c375a676436bb | e3727a80dc42df3c269100d4234be9d89c3a95cb | refs/heads/master | 2023-08-15T16:03:11.637381 | 2021-10-21T19:24:35 | 2021-10-21T19:24:35 | 419,715,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,631 | py | from django.shortcuts import render, get_object_or_404, redirect
from django.http import Http404
from django.core.paginator import Paginator
from django.db.models import Q, Value
from django.db.models.functions import Concat
from .models import Contact
from django.contrib import messages
def index(request):
conta... | [
"julianodesenv@gmail.com"
] | julianodesenv@gmail.com |
299affddd531b4f31bf702683ad0a1283bef8bcd | fd49e917e314c28dd7ad1aeea38f4d92adc3f616 | /Padding_with_Edge_Values/MNIST_Network_Stretch_Compress_Resize.py | 522589e3b892e636baf19ee0e8426f6472d50bac | [] | no_license | pulindur/MNIST_Image-processing | 0a6297b4a11fe56d98f797218691c475588e4056 | 763fdf2e37976e5f4a6a717d7037ac9bbd74fe6b | refs/heads/master | 2021-01-21T11:00:25.060937 | 2017-05-18T19:04:14 | 2017-05-18T19:04:14 | 91,719,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,740 | py |
'''Trains a simple convnet on the MNIST dataset.
Gets to 99.25% test accuracy after 12 epochs
(there is still a lot of margin for parameter tuning).
16 seconds per epoch on a GRID K520 GPU.
'''
from __future__ import print_function
import keras
from keras.datasets import mnist
from keras.models import Sequential
from... | [
"noreply@github.com"
] | pulindur.noreply@github.com |
0e57035ef99cbd34871be4fba11fd76ce12ba2a4 | 6d15bb2fdf7459e6fa738c5d99bff2c3c4c77bb5 | /five.py | fcadeac61986435a0ea293f4b25dc7f2544b3a4d | [] | no_license | roziana-rdrgs/Python | 84427b44138c3eaa30578465c02156a402db9427 | 829136a7fc0596a17d236b7b1bddc2b54459576e | refs/heads/master | 2020-07-04T04:02:15.838316 | 2019-08-19T14:21:07 | 2019-08-19T14:21:07 | 202,148,896 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | '''Escreva um algoritmo que armazene 20 valores em uma estrutura composta. Em seguida, troque
o primeiro elemento com o último, o segundo com o penúltimo, o terceiro com o antepenúltimo e
assim sucessivamente. Mostre os valores depois da troca.'''
list_one = []
for i in range(0,20):
list_one.append(i)
p... | [
"noreply@github.com"
] | roziana-rdrgs.noreply@github.com |
09bcf995025392e1643a1fa07ce77a9170e3ef38 | f1c9912377f94746fcc9066ae401cb52142122cb | /ABC081A-Placing_Marbles.py | 471510dc6cf50f539c26be402964e1042d37759a | [] | no_license | kkashieng/AtCoder_Beginners_Selection | e5aea5c5374d30520129dec97056c4d59ff4b08e | 5929abc8e9dd880c8d1fcbccf2cd7a65a9052bfc | refs/heads/master | 2023-05-12T14:52:22.600301 | 2021-05-29T02:57:12 | 2021-05-29T02:57:21 | 370,271,648 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | input_str = input()
s1 = int(input_str[0])
s2 = int(input_str[1])
s3 = int(input_str[2])
print(s1 + s2 + s3) | [
"kkashi.engineer@gmail.com"
] | kkashi.engineer@gmail.com |
a527639510ff821b91fe8501552ad4cc17f1ed59 | ff90ae8bdd9dbefb29f7345a221039b4e967f8d3 | /sign/views_if.py | 009b03d8450f69d9c3b92d3430426807f07b0860 | [] | no_license | long3ck/guest | ad5bd10b4d9914677bf186ea574a540e2d47744c | 5e43099de0fa43fa1c4622c3c5cc11f3f49a8a51 | refs/heads/master | 2020-12-02T07:54:51.267221 | 2017-07-10T06:50:52 | 2017-07-10T06:50:52 | 85,649,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,591 | py | #coding=utf-8
__author__ = 'Chenkun'
__date__ = '2017/06/16 14:47'
import time
from django.http import JsonResponse
from sign.models import Event, Guest
from django.db.utils import IntegrityError
from django.core.exceptions import ValidationError, ObjectDoesNotExist
# 添加发布会接口
def add_event(request):
eid = reque... | [
"long3ck@qq.com"
] | long3ck@qq.com |
60d6e65af9f944e832c385a6b61c4c17b8af6a39 | ca251e4375fcb48f12448d9cc096a2e3d1302859 | /scraper/course.py | 7f36a2ef443b0b5a81e6111b68256da2ce43bac4 | [] | no_license | kejinlu/itunesu-scraper | 0ebaebc67713d67d5fb7900dc9546dc20b44cb6e | db755e840324807a49a6d0e1960e613aece0129a | refs/heads/master | 2021-01-10T08:49:21.178384 | 2015-10-29T09:23:09 | 2015-10-29T09:23:09 | 45,172,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,032 | py | from urllib.request import urlopen
from urllib.parse import urlparse
from bs4 import BeautifulSoup
__author__ = 'Luke'
class Course:
def __init__(self, url):
html = urlopen(url)
bs_html = BeautifulSoup(html.read(), "html.parser")
self.title = bs_html.select_one("#title > div.left > h1").g... | [
"kejinlu@gmail.com"
] | kejinlu@gmail.com |
3325a09516701a4aa7c221f51bc6de2bc3ee490e | eae2ad130311853fb1e90b05312840e72f607da6 | /05_Scale_Factor.py | 5f878b107257b6adabaa1d70be88660a29b6d6b2 | [] | no_license | DCUniverse1990/01_Recipes | aedceb870517198ca17892b9a083803b02e28d62 | 52ce3ded879770fb266ec21090158c9acd08d06f | refs/heads/master | 2020-12-27T22:11:39.213183 | 2020-03-17T21:42:26 | 2020-03-17T21:42:26 | 238,078,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,452 | py | # Ingredients list
#
# Number Checking Function
def num_check(question):
error = "please enter a number that is more than zero"
valid = False
while not valid:
response = (input(question))
if response.lower() == "xxx":
return "xxx"
else:
try:
... | [
"51687475+DCUniverse1990@users.noreply.github.com"
] | 51687475+DCUniverse1990@users.noreply.github.com |
bcc61ff9bf262293e63ef856b9d30ee0a7801739 | e10a6d844a286db26ef56469e31dc8488a8c6f0e | /simulation_research/traffic/millvalley_simulation_script.py | 09200745ec84f13ebc4cef742e473e76859faf46 | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | Jimmy-INL/google-research | 54ad5551f97977f01297abddbfc8a99a7900b791 | 5573d9c5822f4e866b6692769963ae819cb3f10d | refs/heads/master | 2023-04-07T19:43:54.483068 | 2023-03-24T16:27:28 | 2023-03-24T16:32:17 | 282,682,170 | 1 | 0 | Apache-2.0 | 2020-07-26T15:50:32 | 2020-07-26T15:50:31 | null | UTF-8 | Python | false | false | 9,247 | py | # coding=utf-8
# Copyright 2022 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
e60b1bbebff2af542d443aeaabf3effd9c727c2e | 27fdb210daacc29a7031c2f8e0e2cf28f6e78e48 | /objects/_train_det.py | 9c568c8923d1d3bd1c61f75dcd6f9eba09120ab7 | [] | no_license | cubefreaker/webautomation | e79774bef554ce3b5796d3deefec3f41ea34ff69 | be86def2540ef72d84ca2a0281ac4e5f53b738ca | refs/heads/master | 2021-06-13T00:46:47.216292 | 2019-03-28T07:19:32 | 2019-03-28T07:19:32 | 178,146,195 | 0 | 0 | null | 2021-06-01T23:32:36 | 2019-03-28T07:06:41 | Python | UTF-8 | Python | false | false | 11,242 | py | import time
import names
import datetime
import random, string
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.common.exceptions import NoSuchElementException, StaleElementReferenceException, ElementNotVisibleException
from seleniu... | [
"hamzah_habibi@rocketmail.com"
] | hamzah_habibi@rocketmail.com |
e1192f20c1443a8b2576b6617f3bfc99a1cfd2ed | ece9d19165e8f8c4f302b94cd19c577c3618f819 | /collegelist1/urls.py | fa083cdb980eaa07757e7e7831a128926d8a7fa9 | [] | no_license | shreya3232/python_collegelist | 82ab1fcccee6cf213b6cc286833b9a4674292039 | 2ddaf2e65d65fd3e5a3490b57550081209bac1e8 | refs/heads/master | 2023-06-01T11:26:01.764270 | 2021-06-27T12:24:17 | 2021-06-27T12:24:17 | 380,731,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py |
from django.contrib import admin
from django.urls import path, include
urlpatterns =[
path('admin/', admin.site.urls),
path('', include('polls.urls'))
]
| [
"shreyasgowda2345@gmail.com"
] | shreyasgowda2345@gmail.com |
5832f7a40e054803e89e8aa6ce8edfbd875d9c18 | 0b6e079d5b24a49cad884d229c30af18b60a295c | /learning/unique_elements.py | ca50f046851145c855be3da42676d17b189c0ed5 | [] | no_license | ldocao/dataiku_census | c1b2bb362652250cad874eec9cdc3d5f50dd4a89 | ef9547cd1ae9b83119b56c0645751f2b5c2a5e82 | refs/heads/master | 2021-01-10T09:17:26.316478 | 2015-10-02T14:38:29 | 2015-10-02T14:38:29 | 43,143,691 | 0 | 0 | null | 2015-09-30T15:38:58 | 2015-09-25T13:25:10 | Python | UTF-8 | Python | false | false | 1,322 | py | import numpy as np
import pandas as pd
import load_data as ld
import feature_engineering as feat
import ipdb
import matplotlib.pyplot as plt
from constants import PREDICTION_COLNAME
import utils
training_file = "../data/census_income_learn.csv"
metadata_file = "../data/census_income_metadata.txt"
def unique_elemen... | [
"ldocao@gmail.com"
] | ldocao@gmail.com |
70af007d7f7ce4b7ee0a57b362e9ffa3749b1eb9 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /pAFxfge35bT3zj4Bs_24.py | fbbbfecf880247970104edc5a6cad8636470e2df | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 643 | py | """
Write a function that accepts `base` (decimal), `height` (decimal) and `shape`
("triangle", "parallelogram") as input and calculates the area of that shape.
### Examples
area_shape(2, 3, "triangle") ➞ 3
area_shape(8, 6, "parallelogram") ➞ 48
area_shape(2.9, 1.3, "parallelogram") ➞ 3.77
#... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
1a2055c82f8b2b3d858e86a5931e89220f739c3f | c3a84a07539c33040376f2c1e140b1a1041f719e | /wagtail-stubs/users/utils.pyi | 6e8f3c6034fd36111d79271ece10284a95e4e72c | [] | no_license | tm-kn/tmp-wagtail-stubs | cc1a4434b7142cb91bf42efb7daad006c4a7dbf4 | 23ac96406610b87b2e7751bc18f0ccd27f17eb44 | refs/heads/master | 2023-01-20T14:41:33.962460 | 2020-11-30T23:15:38 | 2020-11-30T23:15:38 | 317,332,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | pyi | from typing import Any
from wagtail.core.compat import AUTH_USER_APP_LABEL as AUTH_USER_APP_LABEL, AUTH_USER_MODEL_NAME as AUTH_USER_MODEL_NAME
delete_user_perm: Any
def user_can_delete_user(current_user: Any, user_to_delete: Any): ...
def get_gravatar_url(email: Any, size: int = ...): ...
| [
"hi@tmkn.org"
] | hi@tmkn.org |
5832177f7caf30f5ebbf643fdb28c66b5706991a | 6774b2eddc2d530a4d1a802f42ce81693bf8063d | /keplerian_classical_orbital_elements.py | 5bedeaea0d7adf571b0e5147c49c1b39d2c8f989 | [
"MIT"
] | permissive | jasonody/orbital-mechanics | eb8dbc240f868e851a2cc93e4fc407b982bc1fb0 | abe50da66c1598d1c31f6f3a4faf313e6cdebc7c | refs/heads/master | 2022-11-06T17:54:25.750415 | 2020-06-25T03:32:34 | 2020-06-25T03:32:34 | 270,379,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,181 | py | import planetary_data as pd
import tools as t
from OrbitPropagatorKep import OrbitPropagator as OP
tspan = 3600 * 24 * 1.0
dt = 10.0
cb = pd.earth
if __name__ == '__main__':
# coes: a (pd radius + average of perigee and apogee), e (eccentricity), i (inclination), ta (true anomoly), aop (arguement of perigee), raan... | [
"jasonody@users.noreply.github.com"
] | jasonody@users.noreply.github.com |
eec13eec5d10278982bc45147f08f50b093ed311 | dabc981714dd9297e811355fbb2f9f9a45c2281f | /board/views/_update_prices_form_save_view.py | f93a6b11355db636b1b5013068e659924677e47b | [] | no_license | pmisters/django-code-example | 4c9c8c7edb174875ae4df4d32ae73b0897fc2333 | 745ac9d0c89d8ee44885cc862882d6c4d13993a0 | refs/heads/master | 2023-01-07T11:55:55.670943 | 2020-11-14T11:14:19 | 2020-11-14T11:14:19 | 312,801,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,001 | py | import datetime
import re
from typing import Any, Dict, TYPE_CHECKING
from django import http
from django.views.generic import View
from board.permissions import Permissions
from board.usecases import UpdateReservationPrices
from board.value_objects import ReservationErrors, ReservationUpdateEvent
from common import ... | [
"pavel@knigun.com"
] | pavel@knigun.com |
67320410f535ebde71ef2996dbb812f555810d7e | 3550b8f2069f2f00d702012db6bd3c880a74abb8 | /Homework-2/get_job.py | 8751bc83269951ea5523596d827321f2f6630126 | [] | no_license | Donfa1con/PythonHse | 9bb2482b00a22ca561becca10b0eeba43bd0cb8e | 550edb788f2295a8020924409f5ccf9cc059d590 | refs/heads/master | 2020-03-27T19:14:46.957525 | 2018-09-01T07:17:07 | 2018-09-01T07:17:07 | 146,975,326 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | import requests
import json
from help_function import record_to_file
api_key = '???'
def load_data_from_url(method, api_key):
headers = { 'X-Api-App-Id' : api_key }
url = 'https://api.superjob.ru/2.0/%s' % method
params = {
'town' : 4,
'count' : 100,
'catalo... | [
"diziganshin@inbox.ru"
] | diziganshin@inbox.ru |
6a64acaaeff4af395c3f83589d246735caccd6a5 | b147cae100a830c0a026c1677fde8bf43eb641df | /reactdjango/frontend/urls.py | e2475b5e0938049d78b77b6aa4b5f3086f36accb | [] | no_license | wlawt/lead_manager | 382c6d0344778d2897df547397527b2d2dc01a60 | 2968773b0d929d0ebcd2dffd719e712601594546 | refs/heads/master | 2023-01-23T07:56:38.411678 | 2021-04-10T00:09:29 | 2021-04-10T00:09:29 | 206,666,216 | 0 | 0 | null | 2023-01-07T09:25:14 | 2019-09-05T22:16:18 | JavaScript | UTF-8 | Python | false | false | 138 | py | from django.urls import path
from . import views
urlspatterns = [
path("", views.index) # The views.py index method we just created
] | [
"horizon.william14@gmail.com"
] | horizon.william14@gmail.com |
e3a39fc46f0ee31bcf4cbf6f4eef75379c9eb87e | 8242f7c33e37db242a6a839cccd6a48b79ddbfa9 | /erase/main.py | 71861978925ebc25fc1531a3c889e94202072e29 | [] | no_license | elitan/open-kattis | d2be23868f3be6613bcbf4e9381a30f283199082 | 7bec84b054c639ed3d534671bfc0f57dee289d27 | refs/heads/master | 2021-01-17T08:51:46.340776 | 2016-10-10T19:17:52 | 2016-10-10T19:17:52 | 65,326,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | import fileinput
import sys
n = int(raw_input()) # we dont need this one
s_1 = map(int, list(raw_input().rstrip()))
s_2 = map(int, list(raw_input().rstrip()))
zero = (0 + n) % 2
one = (1 + n) % 2
converter = {0: zero, 1: one}
c = 0
s_len = len(s_1)
while c < s_len:
if converter[s_1[c]] != s_2[c]:
print... | [
"johan@eliasson.me"
] | johan@eliasson.me |
5ecce4c7bc6f82cb036331ca45fb67166154c4e5 | bbe53d0171efbc78ca43f409b4a5235df51f36fa | /learning/djangoLearning/django-start/mysite/dev_settings.py | 24dea2919335488abf7ac20fb0a273ed26c2b821 | [] | no_license | brianwang/gftop | 2758ec93e326ba5e801af48f951c73b5761bb25d | 12a48eafb5114da325515fce4b97e744638e6faf | refs/heads/master | 2021-01-12T08:16:43.816679 | 2012-12-12T16:25:29 | 2012-12-12T16:25:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 784 | py | from os import getcwd
MYSITE_BASE_DIR = getcwd()
DEBUG = True
TEMPLATE_DEBUG = DEBUG
SUPER_USER_NAME = 'admin'
SUPER_USER_EMAIL = 'admin@test.com'
SUPER_USER_PASSWORD = 'admin'
SITE_URL = '127.0.0.1:8000'
SITE_NAME = 'MySite'
DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' o... | [
"gaofeitop@0700f6e2-4af4-11de-a39b-05eb13f3dc65"
] | gaofeitop@0700f6e2-4af4-11de-a39b-05eb13f3dc65 |
d441dd65e1ae7d648ca833ebfdc5cc1f7de0ed35 | 05566ffcd009af2e862d531bd299e2e363d104a3 | /havi_task/settings.py | 6f5b267ddba9aff826948b30f7fffef106e5810c | [] | no_license | dhruv970331/havi_task | 97d996704853297ccc3edff5e90688ba0351e6f9 | 621ee4d188af5d2ab45d857ae2cfcbd016fab0c5 | refs/heads/master | 2022-09-07T22:42:01.681728 | 2020-05-21T18:44:33 | 2020-05-21T18:44:33 | 265,439,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,365 | py | """
Django settings for havi_task project.
Generated by 'django-admin startproject' using Django 2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
#... | [
"dhruvesh.malhotra@botreetechnologies.com"
] | dhruvesh.malhotra@botreetechnologies.com |
ef5c21aa5d3669148a72593a4b8121792c545794 | ca61417d925ce53b83d0767224d58cd3b2da57cc | /detector_api.py | a1487f12909e4d75a8b79e58ae62ed90c5899267 | [
"Apache-2.0"
] | permissive | qilei123/mmdetection_rop | 423ed5e63a84c8eeba1cb823b14d16ed906289f8 | cbdbb2b521c94c2f3eeebb2f2069663199f679bc | refs/heads/master | 2020-05-09T23:38:28.969119 | 2019-08-20T03:21:07 | 2019-08-20T03:21:07 | 181,505,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,210 | py |
# -*- coding:utf-8 -*-
import json
import argparse
import mmcv
from mmcv.runner import load_checkpoint
from mmdet.models import build_detector
from mmdet.apis import inference_detector, show_result, show_single_category_result
import cv2
import glob
import os
import time
import matplotlib.pyplot as plt
import numpy as... | [
"qileimail123@gmail.com"
] | qileimail123@gmail.com |
f6596548b7fa5559711759789d920ec0d921df4d | c30d4f174a28aac495463f44b496811ee0c21265 | /python/testData/inspections/PyChainedComparisonsInspectionWithConstantInTheMiddle/test.py | 528cf139bbeb40defe6d8ab5676c7da1bb0c5e48 | [
"Apache-2.0"
] | permissive | sarvex/intellij-community | cbbf08642231783c5b46ef2d55a29441341a03b3 | 8b8c21f445550bd72662e159ae715e9d944ba140 | refs/heads/master | 2023-05-14T14:32:51.014859 | 2023-05-01T06:59:21 | 2023-05-01T06:59:21 | 32,571,446 | 0 | 0 | Apache-2.0 | 2023-05-01T06:59:22 | 2015-03-20T08:16:17 | Java | UTF-8 | Python | false | false | 51 | py | # PY-16397
x, y = 2, 3
if x > 0 and y < 0:
pass | [
"valentina.kiryushkina@jetbrains.com"
] | valentina.kiryushkina@jetbrains.com |
8e9763cb78dec4a5b44a07cf246af0b20cd8087e | cf5b2850dc9794eb0fc11826da4fd3ea6c22e9b1 | /xlsxwriter/test/worksheet/test_write_sheet_views2.py | e53240875a8168457b6d934d3a2a907b87e127ae | [
"BSD-2-Clause"
] | permissive | glasah/XlsxWriter | bcf74b43b9c114e45e1a3dd679b5ab49ee20a0ec | 1e8aaeb03000dc2f294ccb89b33806ac40dabc13 | refs/heads/main | 2023-09-05T03:03:53.857387 | 2021-11-01T07:35:46 | 2021-11-01T07:35:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,446 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# SPDX-License-Identifier: BSD-2-Clause
# Copyright (c), 2013-2021, John McNamara, jmcnamara@cpan.org
#
import unittest
from io import StringIO
from ...worksheet import Worksheet
class TestWriteSheetViews(unit... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
eaddacbc2a44c1225dfdff93ef10b03dbe73735a | 50bd857f8869e76b1bb086e227a0eb2195e2a0ad | /2020/강의/06-탐색/새.py | 7c85df30ebf162f9fbea8e3b48a920ba04d1199f | [] | no_license | imacoolgirlyo/Algorithm | 0c64ad0286056ab53e2ae673e400be290d7490c6 | 9cfa897bb9eb8733b442b0f1d55a7d8ece8b8091 | refs/heads/master | 2022-12-07T12:20:06.167375 | 2022-12-02T14:10:06 | 2022-12-02T14:10:06 | 234,060,720 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | N = int(input())
rest = N
K = 1
result = 0
while rest > 0:
if K > rest:
K = 1
rest = rest-K # 14-1, 13-2, 11-3 , 8-4, 4-1 , 3-2, 1-1
K += 1
result += 1
print(result)
| [
"tjrud1438@naver.com"
] | tjrud1438@naver.com |
9f8d3ee17be567dc042a06d5bb1c4b7c7da85158 | cfdc0ace0ca25048d72e952481ca2a4efc01052e | /Synthetic_Unsup.py | 975cf05f77cb0238626b3c164157ab12a90d9893 | [] | no_license | cmimlg/CBMDWHA | 418291efd928e62831bec4961fac88d5992b2927 | 13c9667d033262acc080ce0a2d8a01af5c66bd7a | refs/heads/master | 2021-09-05T21:12:59.987983 | 2018-01-31T02:48:35 | 2018-01-31T02:48:35 | 119,619,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,873 | py |
from time import time
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.colors as colors
from itertools import cycle
import pandas as pd
from sklearn.decomposition import IncrementalPCA
from sklearn.cluster import DBSCAN
import os
import logging
from sklearn import metrics
from sklearn.cluster impor... | [
"noreply@github.com"
] | cmimlg.noreply@github.com |
8b7029f0ee977278cae4cbb89fb2abc357a8cf00 | 8cc4229dccec92c4143159bbbd567008095a2b27 | /backend/appengine/categoria/categoria_model.py | 7c2a5f1ab530b8dca88eb8ed10becc0c656f109f | [] | no_license | SamaraCardoso27/Projeto | 138f65a04f467bc4d7e71c236ff20bd30a5867b0 | 5269785c3cc023328d46e12b3b0373dd9d553d0f | refs/heads/master | 2016-09-01T22:01:34.408630 | 2015-04-19T18:56:02 | 2015-04-19T18:56:02 | 30,780,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from google.appengine.ext import ndb
from google.appengine.ext.db import IntegerProperty
from gaeforms.base import Form, StringField, IntegerField
from gaeforms.ndb.form import ModelForm
class Categoria(ndb.Model):
nome=ndb.StringPro... | [
"samaracardosodossantos@gmail.com"
] | samaracardosodossantos@gmail.com |
f0e31d42a89688c442c70186387712ca2f1e8ca3 | 2dc30a70bd995f1038d8a6f200de25a775153a82 | /accepted_codes/UJ-3685166-src.py | 2310f943b7fc3082373e7c6f6f2194642c799395 | [] | no_license | pratyush-nigam/spoj-stuff | ba57d37cf6cdaebf43202c2131f8ce806c5d416b | 0a6871ace91cd0dea67195127919ebb6c1817078 | refs/heads/master | 2020-06-01T04:16:16.183256 | 2013-04-07T06:26:35 | 2013-04-07T06:26:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | import sys
def fun():
s=raw_input()
a,b=(int(i) for i in s.split(' '))
flag=0
if(a==0):
if(b==0):
flag=1
while(flag!=1):
print a**b
s=raw_input()
a,b=(int(i) for i in s.split(' '))
flag=0
if(a==0):
if(b==0):
flag=1
return 0
fun()
sys.exit(0) | [
"pratyush.nigam@gmail.com"
] | pratyush.nigam@gmail.com |
8dfed265be1c06ea8f35ebbd00266dfe63dac901 | 78ddf555db358f9683db00bf49b3d1a45cd998a9 | /forum/migrations/0021_chatmessage_sort.py | d75812cc0e448e53e140658de19f30fed144c366 | [] | no_license | azeez010/AfriconnForum | 9e0aa7a6abb40f20ac0739b9cadc75da89e91110 | 1b597850208c3caef474b9412bdf02dfefd1a30b | refs/heads/master | 2022-12-19T12:49:09.389062 | 2020-09-19T14:40:48 | 2020-09-19T14:40:48 | 298,311,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | # Generated by Django 3.0.6 on 2020-08-11 18:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('forum', '0020_members_description'),
]
operations = [
migrations.AddField(
model_name='chatmessage',
name='sort',
... | [
"dataslid@gmail.com"
] | dataslid@gmail.com |
f76e89dc0176bd78e18083cf96494132976542a0 | fb38630bcb0e8d1acd8bdf559d6b19b3008122c7 | /1024.py | 155a7a07bd35104229c06ad7c99890d3f205affc | [
"MIT"
] | permissive | ossfile/1024-web-crawler | de14f4c2146fd9097a46da22d9e957054efc32bb | 83f939a53a921c49fbbacb5c5b8000c88b1da858 | refs/heads/master | 2022-04-03T12:46:56.238010 | 2019-12-25T03:33:24 | 2019-12-25T03:33:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,535 | py | import requests
import re
import os
from lxml import etree
try:
flag=1
while flag<=270:
base_url='https://t66y.com/'
page_url='https://t66y.com/thread0806.php?fid=16&search=&page='+str(flag)
get=requests.get(page_url)
article_url=re.findall(r'<h3><a href="(.*)" target="_blank" id... | [
"lzhengycy@outlook.com"
] | lzhengycy@outlook.com |
76659e18cdb1432d1c91a30be7eeb85f667e9f96 | 2befb6f2a5f1fbbd5340093db43a198abdd5f53b | /pythonProject/FBVPermission/FBVPermission/settings.py | a64ea42a4ed445c5878381f3f08aa7ccabac8eb3 | [] | no_license | JanardanPandey/RestAPI | 1956d3529782d18ef2118961f6286e3213665aad | 654933a4d9687076a00c6f4c57fc3dfee1a2c567 | refs/heads/master | 2023-06-14T07:02:31.702000 | 2021-07-02T07:50:59 | 2021-07-02T07:50:59 | 382,357,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,298 | py | """
Django settings for FBVPermission project.
Generated by 'django-admin startproject' using Django 3.2.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from p... | [
"janardanpandey0510@gmail.com"
] | janardanpandey0510@gmail.com |
00250e3d95d0f109cc7852e32d0a437133ebdc65 | 2c0377022f0d11df517b2addc00925f5763e7494 | /main.py | 1bdd1f2943d4caa8bee59db1f7c106d2e54b0050 | [
"MIT"
] | permissive | Sagu12/TextSummarizer | 7ecc1731abeb68baa1420cff0bef9f04824ae440 | 3c0f1f1c50f28c787eaf14f9c181a65dfd4af567 | refs/heads/main | 2023-02-09T14:50:43.199347 | 2021-01-07T09:37:10 | 2021-01-07T09:37:10 | 327,564,948 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,998 | py | from flask import Flask, render_template,request
import requests
from bs4 import BeautifulSoup
import nltk
import pandas as pd
#https://www.youtube.com/watch?v=h8fE_G9a_Oo
app = Flask(__name__)
def get_wiki_content(url):
req_obj = requests.get(url)
text = req_obj.text
soup = BeautifulSoup(t... | [
"noreply@github.com"
] | Sagu12.noreply@github.com |
7ef164e5244b594ae4e7f8f84113336ddbcda4e7 | a22da75b98315c688c84c87436aaf99eee67e9b7 | /visual_bar.py | ab7f3e4f5b3b0d54cbe6c270ad3a26270eae0d54 | [] | no_license | ArtemisWang/AutomaticVideoClipAndMixing | 57f08c9e30f4b5ce3ea88f1e6c0cb44490f09759 | 9679360cc110d4c9fab1596ee95c56e4e19f7a05 | refs/heads/master | 2021-10-24T18:23:03.817925 | 2019-03-27T10:49:01 | 2019-03-27T10:49:01 | 177,972,242 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,611 | py | # -*- coding: utf-8 -*-
import matplotlib.pyplot as plt
name_list = ['0.2', '0.4', '0.6', '0.8']
num_list = [0.0161, 0.009, 0.0089, 0.0135] ## p1
num_list1 = [0.0037, 0.0065, 0.0054, 0.0065]
num_list2 = [0.0247, 0.0151, 0.0133, 0.0199] ## p2
num_list3 = [0.0025, 0.0033, 0.0033, 0.0033]
num_list4 = [0.0197, 0.011, 0.0... | [
"noreply@github.com"
] | ArtemisWang.noreply@github.com |
696df3b6530b6d357c43a5714c1244e091b7a965 | 5a27d00e32e5be596b38eb6b2b735b2c94536513 | /codechef/SSEC2/hack_it.py | 3996933223a3c9dadf9bec3ab1e87a59a8b25ae4 | [] | no_license | vishk95/Challenges | dc29d28fce4ced044ce60874eb53c0713adb2558 | 047798af14a8b47608da975b1b578bee9736e7c7 | refs/heads/main | 2023-03-08T23:16:34.571460 | 2021-03-05T12:42:25 | 2021-03-05T12:42:25 | 336,181,123 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 341 | py | def correction(i):
res = ""
for digit in range(len(i)):
i[digit] = str(int(i[digit]) - 2)
print(int(res.join(i)))
if __name__ == '__main__':
n = int(input().strip())
passwords = []
for _ in range(n):
passwords.append(list(input().strip()))
for i in passwords:
... | [
"vishalat1994@gmail.com"
] | vishalat1994@gmail.com |
bf74aa88f5156a86b04175d222bc82650995a74d | a72402e6bfa6b06812d530443baa296f53355cc0 | /clos_get_dhcp_ip.py | 74082f6a065ed52862e9cd0f9efb1d2333013951 | [] | no_license | robertdigital/virtual-router-with-qemu | 41ac1061b36fa592d67668d4e708d93e0b6156fe | a34b53d0e2110abb42b393693e40fd8bb8080f4e | refs/heads/master | 2020-12-27T20:23:59.334606 | 2019-05-10T13:48:58 | 2019-05-10T13:48:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,059 | py | #!/usr/bin/env python
import os
import json
import sys
#dhcp_table file contain all IP and macaddress in <ip> <mac> format per line.
#cat upload/* > dhcp_table.txt
output_dir = "clos_test"
dhcp_file = output_dir+"/dhcp_table.txt"
clos_file = output_dir+"/nodes.with.vm.json"
def read_json_file(filename):
F = ope... | [
"rendo.aw@gmail.com"
] | rendo.aw@gmail.com |
695ea8c157f1aaf3380cd1020e37aa6fa63cde66 | 4540da66e67c3e8908f4aeedd49f2efdec21d110 | /python/animate.py | 2542b92183bf3c74ab3e98e552fc8cae4198eb33 | [
"MIT"
] | permissive | mayghalV/planets-sim | 6d2e7163955efe4b0cc006372e792b37ca24b560 | 7b52aa1804663d0764b6389783183a62a0655daa | refs/heads/master | 2022-11-30T00:25:54.527513 | 2020-07-28T07:32:28 | 2020-07-28T07:32:28 | 275,545,186 | 0 | 0 | MIT | 2020-07-06T07:22:27 | 2020-06-28T08:53:27 | Rust | UTF-8 | Python | false | false | 3,119 | py | """
Note to update planet_sim.pyd:
1. run 'cargo build --release
2. (on Windows) Copy target/release/planet_sim.dll to python/
3. Rename the extension .dll to .pyd
"""
from typing import Dict, List, Tuple
import numpy as np
import planet_sim
import matplotlib.pyplot as plt
import matplotlib.animation as an... | [
"mayghalvijapura@live.co.uk"
] | mayghalvijapura@live.co.uk |
8c63ae9a0ae5a2f7dad10eff114d3314b1fefcc5 | 452e027d23fa443c0ec54bc9dd9ef50dbe7820b9 | /grader/configfile.py | 220d3677e6e49282ab5504a78758acc8f392ee8a | [] | no_license | jakobj/grader | af3859b35a3e569d4dd841097d6a64e8162a5431 | c69b9a6d638cc4fe78986d7a0ec15bed512b98f6 | refs/heads/master | 2021-01-21T03:31:06.952052 | 2015-05-05T08:15:06 | 2015-05-05T08:15:06 | 35,836,901 | 0 | 0 | null | 2015-05-18T19:02:41 | 2015-05-18T19:02:41 | null | UTF-8 | Python | false | false | 2,341 | py | import configparser
import operator
import collections
class _Section:
def __init__(self, configparser, section, type=str):
self.cp = configparser
self.section = section
self.type = type
def __getitem__(self, item):
try:
value = self.cp.get(self.section, item)
... | [
"zbyszek@in.waw.pl"
] | zbyszek@in.waw.pl |
9a12029623af66c700d989ba7253121601a4f6d5 | 2d27444b26de173ed1b7454f72d102050c7a6b07 | /Tuples/tuples04.py | bfb1b4cb89f5c12608af7a77689cf38b9a60a51a | [] | no_license | imrishuroy/Python-Projects | 6b93454dcb30c307aece07d611855f8b718fb8e8 | f15a0e7da702a30618658ce4f4650807daaae759 | refs/heads/master | 2023-04-17T04:33:38.889592 | 2021-05-08T08:35:09 | 2021-05-08T08:35:09 | 335,221,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | # Tuples and Dictionary
d = dict()
d['Rishu'] = 91
d['Prince'] = 100
for k , v in d.items():
print(k,v)
tups = d.items()
print(tups) | [
"rishukumar.prince@gmail.com"
] | rishukumar.prince@gmail.com |
dc42acc3aeb1dbbb67aad2c35d110995714ba7eb | 8d943e4a4af2a08653988dba7f6a342eea113e9c | /awspy/ecs/__init__.py | 650f3cb335dd9ab6f2d98703cb6cd2618adb43a3 | [
"MIT"
] | permissive | ScholarPack/awspy | 1d7b7b2b427334590fac4d67a73a4b1ad575fdec | 750e38c5f3914dc4bb9d4536fad6a1af5c2bc4a7 | refs/heads/main | 2023-06-17T00:11:27.934590 | 2021-07-16T12:25:20 | 2021-07-16T12:25:20 | 385,636,223 | 0 | 0 | MIT | 2021-07-16T12:25:21 | 2021-07-13T14:40:03 | Python | UTF-8 | Python | false | false | 29 | py | from .fargate import Fargate
| [
"joe@scholarpack.com"
] | joe@scholarpack.com |
618f83793b61456aa8298f3a72b371b921d7f30a | 293db74378eb425d54ae2ea4735d442d594cc0b8 | /myapp/migrations/0004_auto_20160517_0559.py | 665ada23577a4d573d90b4f6498924033b5b5e4e | [] | no_license | ajithkjames/contactsmanager | 6c5944ee126411db71bcb43a274a6de92c5c236d | c546e4fd53e835d85f66aef0890f9a46e945d275 | refs/heads/master | 2020-07-03T00:33:56.353982 | 2016-11-19T12:48:18 | 2016-11-19T12:48:18 | 74,207,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-05-17 05:59
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('myapp', '0003_members_contact_member'),
]
operations = [
migrations.RemoveFi... | [
"you@example.com"
] | you@example.com |
63ecfb627b54627f1864d4e3a644988f45674628 | ebdd36e75bccc8c3f80e231b4b0409c2cceaea20 | /UPTEES/Detectors/StructureAnalyzer.py | 85f3374061f394ac23c202d43077c89987f2de19 | [] | no_license | MaximumEntropy/UPSITE | c9865dd675fe8dfd821de9d6af84aa74f224605d | 77b29ce00c3e0b35d566b6935871e4dda184ec79 | refs/heads/master | 2021-01-10T16:19:42.139505 | 2015-10-28T07:32:02 | 2015-10-28T07:32:02 | 45,011,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36,234 | py | #from Detector import Detector
import sys, os
sys.path.append(os.path.dirname(os.path.abspath(__file__))+"/..")
import Utils.ElementTreeUtils as ETUtils
from collections import defaultdict
import types
class StructureAnalyzer():
def __init__(self, defaultFileNameInModel="structure.txt"):
self.modelFileName... | [
"sandeeps@andrew.cmu.edu"
] | sandeeps@andrew.cmu.edu |
c8145d6c24dc99f140a89cac5e485e16c2be0d30 | 805b939113372eeed5b9597a75993f853bb1cdac | /数据挖掘/test039.py | f0e6c69bb0a150c844728c786d932aee7510f7b7 | [] | no_license | 840614476/my_test | 0fa9961656ad5c032c8f6396ea84991640ae722d | 7a86c47305824c4163579864d70da7a3c30cb0d4 | refs/heads/master | 2020-07-30T07:35:22.445181 | 2019-09-24T09:20:24 | 2019-09-24T09:20:24 | 206,029,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# author:TBH time:2019/9/10
import jieba.analyse
import jieba.posseg
#更改词频
#
text = "我喜欢上海东方明珠"
#jieba.add_word("上海东方", freq=700)
ci_1 = jieba.cut(text)
for item in ci_1:
print(item)
print("")
#分析关键词
#
text2 = "我喜欢上海东方明珠"
tag = jieba.analyse.extract_tags(text2, 3)... | [
"840614476@qq.com"
] | 840614476@qq.com |
cda213adb638250573fe948b2e2f4b4dddf419bd | 22415d4998b30ba01ba249463b19f051110feff0 | /fileserver/shared.py | 97d9e07d5b2b77f7fdc1247820ffa850511c56d3 | [] | no_license | dimchat/station-py | 9fcc0a3f2ef4383cc7da521db0ed9eee2f9ccfad | 64966a06aa10640f4f5af4327bd74d5db6467fe0 | refs/heads/master | 2023-08-20T21:56:07.313923 | 2023-08-13T06:35:21 | 2023-08-13T06:35:21 | 158,835,688 | 11 | 5 | null | null | null | null | UTF-8 | Python | false | false | 5,596 | py | # -*- coding: utf-8 -*-
# ==============================================================================
# MIT License
#
# Copyright (c) 2022 Albert Moky
#
# 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 ... | [
"albert.moky@gmail.com"
] | albert.moky@gmail.com |
ee4d0edf66d7a8c4ddce1c673e56b805bace6794 | 039c5187dd45b8dd2c960c1570369d6eb11eae83 | /soufang/config.py | efd983939f003ba81021d15df92d8a15a3eca8df | [] | no_license | huazhicai/spider | 5636951c1e0db4dc7b205cacfe8e881a08ff2015 | d72ce471b0388d6d594853120c8e8f93694015a6 | refs/heads/master | 2021-07-24T23:01:15.124742 | 2017-11-04T09:05:46 | 2017-11-04T09:05:46 | 107,860,473 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,411 | py | # 爬取房天下的楼盘的评论
# 获取城市名称
import re
import requests
from bs4 import BeautifulSoup
def get_city():
url = 'http://www.fang.com/SoufunFamily.htm'
html_content = requests.get(url)
# <a href="http://gaoling.fang.com/" target="_blank">高陵</a>
pattern = re.compile(r'<a href="http://(\w+)\.fang\.com/" target="... | [
"936844218@qq.com"
] | 936844218@qq.com |
5407f917a3df1126560376f7fd4e574c2a9a703d | 1e198980ecce4ff1e5e08d71d4127c9be19e6296 | /syntax/operator.py | 92155c9e9ebc0712debd2c71753d20cf2483301a | [] | no_license | rheehot/python101 | a2af8bb47dd5ecd792f262379e86cafaf04b3313 | a8be8b6796ea2b5375aeb7455a8715059ed44410 | refs/heads/master | 2023-02-20T18:36:17.105974 | 2021-01-26T18:03:13 | 2021-01-26T18:03:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,239 | py | # 파이썬은 7개의 연산자를 지원한다.
# 산술연산자
# 1) 사칙연산자 : + - * /(진짜 나누기)
# 2) 제곱 : **
# 3) 나머지 : %
# 4) // : 몫
print(3 ** 4) # 3의 4승
print(5 % 2) # 1
print(5 / 2) # 2.5
print(5 // 2) # 1
# 비교연산자(관계연산자)
# == != < > <= >=
# 비교에 의한 True / False 값 반환
# 할당연산자
# 변수에 값을 할당하기 위해서 사용
# = += -= *= /= %= //=
# 산술연산자를 모두 = 을 붙여서 할당연산... | [
"jjanmo07@hanmail.net"
] | jjanmo07@hanmail.net |
e6cfad498bd1578ed61cc72f6ff9f0afede40cf4 | c651ea919f24fcf51cbe27d1c336b9324fda74e6 | /crypto/500-john-pollard/solve.py | b84ac8258c6a01329b9083966cb61303ce369c20 | [] | no_license | paiv/picoctf2019 | 31f611b21bcab0d1c84fd3cb246c7dd58f6949df | 90b1db56ac8c5b47ec6159d45c8decd6b90d06d5 | refs/heads/master | 2020-08-11T03:38:55.580861 | 2019-10-11T20:48:44 | 2019-10-11T20:48:44 | 214,483,178 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | #!/usr/bin/env python
from Crypto.PublicKey import RSA
from Crypto.Util.number import inverse as modinv
def solve():
N = 4966306421059967
P = 73176001
Q = 67867967
E = 65537
assert N == P * Q
D = modinv(E, (P - 1) * (Q - 1))
key = RSA.construct((N, E, D, P, Q))
return key.exportKey().... | [
"pavels.code@gmail.com"
] | pavels.code@gmail.com |
cff6e57b065a2b0a1025d8fa362771af3f2d5a3f | 316e094af6a43cf1d1a50dc741583e166516fda1 | /lappd/spectra/pickle_data_lcwp_single_dir.py | ec92fd75796933aec04a7e564488a9e05428e9e6 | [
"MIT"
] | permissive | jbenito3/hyperk | 650fb9a12418b2bcdfeada076c98c8a748f12f00 | b75ca789d51b239d1d97221b024782c927aaa09a | refs/heads/master | 2020-05-21T02:28:49.065421 | 2017-02-22T17:00:45 | 2017-02-22T17:00:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,381 | py | #!/usr/bin/env ipython
import pandas as pd
import sys
import os
from scipy import signal
# Defaults come from TekTronix 'scope
def filter_signal(data, nSamples = 1000, frameSize = 40e-9):
'''Butterworth filter of signal.'''
fs = float(nSamples)/frameSize # sample rate (1000 samples in 40ns)
nyq = fs*0.5 # ... | [
"greig.cowan@gmail.com"
] | greig.cowan@gmail.com |
5a20c1124e3ec671a9fe3d3225fe84106e044deb | ef339cfc51184ecd95b92e198994f54ef3001656 | /section2/beautifulsoup/beautifulsoup1.py | 69e7338d6b2e521cfd9d35d785aecf233a9be875 | [] | no_license | akmris00/pythoncrowring | a03385e92fb276d3a87a703da9017de1e3ce0db1 | 6b676debce3acab9856f0b7411942218b11583e7 | refs/heads/master | 2020-05-05T13:21:09.069117 | 2019-04-29T02:18:03 | 2019-04-29T02:18:03 | 180,073,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 956 | py | from bs4 import BeautifulSoup
import sys
import io
sys.stdout = io.TextIOWrapper(sys.stdout.detach(), encoding = 'utf-8')
sys.stderr = io.TextIOWrapper(sys.stderr.detach(), encoding = 'utf-8')
html = """
<html><body>
<ul>
<li><a href="http://www.naver.com">naver</a></li>
<li><a href="http://www.da... | [
"31494886+akmris00@users.noreply.github.com"
] | 31494886+akmris00@users.noreply.github.com |
cd17da2be8e61707740541225e6128d3129b4caf | 7401d6ec2bf31b2235ba7a4504514689af796d21 | /tests/base_test.py | c9a4d54bc4cfc6721ba863c4bc64b8d09d9830ba | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | AbySagar/Twilio-flask-test-1 | 278df2d792b3a1c587a1e566a1e46ec8a53b3ff8 | 4d7f7f3837e4a7cbd17457c79e703ea17c1f16f8 | refs/heads/master | 2021-08-10T12:19:48.124403 | 2020-03-21T17:22:15 | 2020-03-21T17:22:15 | 249,019,053 | 0 | 0 | MIT | 2021-04-20T19:27:04 | 2020-03-21T16:47:12 | Python | UTF-8 | Python | false | false | 550 | py | import unittest
from models.appointment import Appointment
class BaseTest(unittest.TestCase):
def setUp(self):
from reminders import app, db
self.app = app
self.db = db
self.celery = app.celery()
self.test_client = app.flask_app.test_client()
self.app.flask_app.conf... | [
"jsantos@stackbuilders.com"
] | jsantos@stackbuilders.com |
29afa6286ed62ea50b6c5c7058b06d924626062a | f5c6c0a7036fae1878f17c1262469e8df0387391 | /polls/views.py | d2c56a57f5ab8689b91882cdac841cf8281c12bd | [] | no_license | Ilyabuk/django1 | 1733c6f469e5b7a7340b2ecb04df1f16c8c2d972 | 1bbf5bfc32969d5f004b431a3533a5a8337b6b2d | refs/heads/master | 2021-09-02T04:40:23.579808 | 2017-12-30T11:52:17 | 2017-12-30T11:52:17 | 115,792,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | from django.shortcuts import render
from django.http import HttpResponse
def index(request):
return HttpResponse("HttpResponse") | [
"ilyabuk@gmail.com"
] | ilyabuk@gmail.com |
44e421c442c37ca6f99ea92a51ed39af07a99133 | ee7ca0fed1620c3426fdfd22e5a82bba2a515983 | /dsn_product_category_etc/__openerp__.py | 1f8392a509a4099e8874d1954698391fad0dd020 | [] | no_license | disna-sistemas/odoo | 318d0e38d9b43bea56978fe85fc72850d597f033 | 0826091462cc10c9edc3cc29ea59c417f8e66c33 | refs/heads/8.0 | 2022-03-08T19:01:21.162717 | 2022-02-15T13:06:26 | 2022-02-15T13:06:26 | 99,210,381 | 0 | 5 | null | 2019-07-24T08:49:58 | 2017-08-03T08:36:55 | Python | UTF-8 | Python | false | false | 1,560 | py | ##########################################################################
# Copyright (C) 2014 Victor Martin #
# #
# This program is free software: you can redistribute it and/or modify #
# it under the terms... | [
"sistemas@disna.com"
] | sistemas@disna.com |
8b2ab66af68481455a92b01c01544ecda55282c0 | a8d4f5601272a7f3ced564ac822745ca460e77d8 | /learn_prophet/outlier.py | 13adf79c7421a190ce97e45f0dd70ca070938919 | [] | no_license | 631068264/learn_science | cc2962e54e61e7d2d5a338b19c2046aa92743edf | 6bf33da5d40b1d8d72bb63d4a7b11031dd74329b | refs/heads/master | 2022-10-08T18:14:08.281828 | 2022-09-24T13:00:53 | 2022-09-24T13:00:53 | 82,647,091 | 0 | 0 | null | 2022-09-09T17:58:48 | 2017-02-21T06:55:43 | Python | UTF-8 | Python | false | false | 865 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@author = 'wyx'
@time = 2017/6/22 11:20
@annotation = ''
"""
import numpy as np
import pandas as pd
from fbprophet import Prophet
from matplotlib import pyplot as plot
df = pd.read_csv('example_wp_R_outliers1.csv')
df['y'] = np.log(df['y'])
print df.head()
print df.tai... | [
"l631068264@gmail.com"
] | l631068264@gmail.com |
174b11fbdd2080049e4d7ea3c1f40dea127a2cd8 | 54bf243bd670576a53a3afb6c8b70e1cfa55d943 | /ScotlandPYard/spyengine/humanmrx.py | ec797a75899c8cffcfc716893aec0bcc73f88a37 | [
"CC-BY-3.0",
"MIT"
] | permissive | AhmadZakaria/ScotlandPYard | 20d13114815f2cc50e1525d6b5d6a4d1ee788c19 | 131e4b5c884319cb01a0c666dd54519986e515fa | refs/heads/master | 2023-08-10T17:06:56.013082 | 2020-11-01T13:47:48 | 2020-11-01T13:47:48 | 113,901,930 | 7 | 3 | MIT | 2023-09-01T15:01:37 | 2017-12-11T19:53:06 | Python | UTF-8 | Python | false | false | 151 | py | from .abstractmrx import AbstractMrX
class HumanMrX(AbstractMrX):
def play_next(self):
"""TODO: insert human prompt here"""
pass
| [
"ahmadz1991@gmail.com"
] | ahmadz1991@gmail.com |
3c797fe5b44b6c379bf7b9f24fb25eccdde31f0a | d700b9ad1e0b7225871b65ce0dafb27fb408c4bc | /students/k3342/kursoviks/Salnikova_Nadezhda/alpinism-server/Lr3/settings.py | a8a620419b2f15386ce6df96cc1499b273f97ca9 | [
"MIT"
] | permissive | TonikX/ITMO_ICT_WebProgramming_2020 | a8c573ed467fdf99327777fb3f3bfeee5714667b | ba566c1b3ab04585665c69860b713741906935a0 | refs/heads/master | 2023-01-11T22:10:17.003838 | 2020-10-22T11:22:03 | 2020-10-22T11:22:03 | 248,549,610 | 10 | 71 | MIT | 2023-01-28T14:04:21 | 2020-03-19T16:18:55 | Python | UTF-8 | Python | false | false | 4,929 | py | """
Django settings for Lr3 project.
Generated by 'django-admin startproject' using Django 3.0.6.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
# Bui... | [
"uninadia@yandex.ru"
] | uninadia@yandex.ru |
defaf6b765da9866005d5019a16256c7441117ed | ee263bbfcff49ef84e0e8eaa840be36406edfedf | /api/views.py | 5f6c1ecd5e15bfb164b6f69db9a181508d195903 | [] | no_license | JaySiu/Investment-Information-Feed-System | b8764e2f64c8e1f3695ffc90af7ec06979cb0111 | fceeacea717511240745a7dc9d0221dc5e5aa3ee | refs/heads/master | 2020-03-23T14:36:29.911624 | 2019-07-15T03:58:10 | 2019-07-15T03:58:10 | 141,687,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | from django.shortcuts import render
from rest_framework.views import APIView
from rest_framework.response import Response
from .models import TA
from .serializers import TASerializer
class TAPlots(APIView):
def get(self):
plots = TA.objects.all()
serializer = TASerializer(plots, many=True)
... | [
"jay.siu@ifshk.com"
] | jay.siu@ifshk.com |
fdea7829b90e545db6411ba84cdd2f00eaeccee9 | bb49872151e598a78116fa0a5faaa34de6ddafa8 | /functions/review-post.py | 4b7209348c944807b3a7e51a8441e86061a27cf7 | [
"Apache-2.0"
] | permissive | ChristelleJolly/agfzb-CloudAppDevelopment_Capstone | 1c1f5654ce26feb0d53224a031662fe24c460920 | e0f7352fbc1b19aab3d14b436cd6311dfbde3cbb | refs/heads/master | 2023-08-29T14:25:14.145562 | 2021-10-25T13:56:51 | 2021-10-25T13:56:51 | 417,084,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,458 | py | #
#
# main() will be run when you invoke this action
#
# @param Cloud Functions actions accept a single parameter, which must be a JSON object.
#
# @return The output of this action, which must be a JSON object.
#
#
from cloudant.client import Cloudant
from cloudant.error import CloudantException
from cloudant.result i... | [
"christelle.jolly@gmail.com"
] | christelle.jolly@gmail.com |
65ac40b9d3a1462ad37421ea9814fe2e10e98aee | 7a2782ace9c2f4d7c87c1c40049873db491a0600 | /FFX_Logs.py | f15f6e960076f9d9840e71add80daf3041f487e1 | [] | no_license | Inverted/FFX_TAS_Python | 44793f0cbd412adf3b0c033d739622a36ca3596e | d31280206eed045dc33dc0cc674dc8f44678466b | refs/heads/main | 2023-08-08T04:44:35.759031 | 2021-09-19T16:12:05 | 2021-09-19T16:12:05 | 408,278,174 | 0 | 0 | null | 2021-09-20T01:29:11 | 2021-09-20T01:29:10 | null | UTF-8 | Python | false | false | 2,731 | py | import datetime
import time
game = "FFX_"
ext = ".txt"
fileName = "none"
fileStats = "none"
filePlot = "none"
def writeLog(message):
global logFile
global fileName
logFile = open(fileName, "a")
logFile.write(message)
logFile.write("\n")
logFile.close()
def nextFile():
... | [
"noreply@github.com"
] | Inverted.noreply@github.com |
cdc4ca08ae44286d2d239b72735acddccf8aac07 | 350db570521d3fc43f07df645addb9d6e648c17e | /0338_Counting_Bits/solution_test.py | 7724ba269c5cf844f2d1619dfea305095cf3e247 | [] | no_license | benjaminhuanghuang/ben-leetcode | 2efcc9185459a1dd881c6e2ded96c42c5715560a | a2cd0dc5e098080df87c4fb57d16877d21ca47a3 | refs/heads/master | 2022-12-10T02:30:06.744566 | 2022-11-27T04:06:52 | 2022-11-27T04:06:52 | 236,252,145 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 360 | py |
'''
338. Counting Bits
Level: Medium
https://leetcode.com/problems/counting-bits
'''
import unittest
class TestSum(unittest.TestCase):
def test_sum(self):
self.assertEqual(sum([1, 2, 3]), 6, "Should be 6")
def test_sum_tuple(self):
self.assertEqual(sum((1, 2, 2)), 6, "Should be 6")
if __n... | [
"bhuang@rms.com"
] | bhuang@rms.com |
dc580277f4275a016c1fbbc518488290b5413fe6 | bb21aba4c5e445c00958aca1840338a300d93a0e | /blog/admin.py | af598b1dfa7f95bd6cf9a3169b7d5e81b79e5b27 | [] | no_license | mahdiazadipython/django-jajali-authenticated-by-github | 5ec90943046a90c78602dd52a0d36bc6b92bccbf | f66cf61949883128f5921fd1b9da0684229cd2d0 | refs/heads/master | 2023-02-05T08:05:58.090703 | 2020-12-20T21:41:19 | 2020-12-20T21:41:19 | 323,170,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | from django.contrib import admin
from .models import Post ,Comment
class PostAdmin(admin.ModelAdmin):
list_display = ('title', "author", 'publish')
admin.site.register(Post, PostAdmin)
admin.site.register(Comment) | [
"mahdi@gmail.com"
] | mahdi@gmail.com |
94cc5cee17c3a943c6200503898a5fee24c4b210 | 35e58fd370d26aa3b13a24e94f7f296a5a72e729 | /nfl_web_scraper_v1.py | 859dc797751387c39271794ad5b5551ddb3c6ec7 | [] | no_license | kanerhee/miscellaneous-code | 099ee09445238a306820c0928d62b89ccf3ce314 | b830122ffbf6509c7d478a69e7cc5042cde692c7 | refs/heads/main | 2023-05-07T11:43:00.367110 | 2021-05-26T03:03:31 | 2021-05-26T03:03:31 | 370,578,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,366 | py | import pandas as pd
import numpy as np
import time
import datetime
import html5lib
import requests
from bs4 import BeautifulSoup, SoupStrainer
import httplib2
pd.set_option('display.max_rows', None)
pd.set_option('display.max_columns', None)
pd.set_option('display.width', None)
pd.set_option('display.max_colwidth', -1... | [
"kanerhee@gmail.com"
] | kanerhee@gmail.com |
2915e90d9a68a5eec8ab00f6f90ee83d406d9ed0 | a5c29f0985f0a6bf64131928af0d732e5e3960a6 | /Map Matching/route_matching_quadtree.py | 36ade6394dfa14fe366bb2b90b6c75a17cb20cca | [] | no_license | JackSmith156403/KDD2021_guizu | 6c4379824fad1f151d4998a257d6f89e9c09e0a1 | bb6391cd65d013fcf13d0162fd566b599231b89a | refs/heads/main | 2023-07-26T17:12:16.007574 | 2021-09-12T11:49:05 | 2021-09-12T11:49:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,494 | py | from viterbi import run_viterbi
import numpy as np
import networkx as nx
import csv
import psycopg2
from geopy.distance import great_circle
from utils import reverse_coordinate
import osmgraph
import geog
import time
import sys
import math
radius = 50
states = 10
sigma = 5
dataset = "urecaTestData.csv"
output_matched... | [
"caochuntu@gmail.com"
] | caochuntu@gmail.com |
ca3c12f88f54fc83cd8fa7acc26917a0dd72e788 | 23768b6975dd0d34d732684d482f51ff24281288 | /trial/migrations/0006_auto_20210929_1133.py | ea1d61252675f9cadb92a05f84ee91137bf43dae | [] | no_license | LintaPaul/2021_IBM_Code_Challenge_Surround360 | 65b3bac21c068a557a1e5895780da69bcab3f638 | 11c5aaa3c27cadd63a4efb6b2073bd50dd4a9ac2 | refs/heads/main | 2023-08-14T16:26:53.582652 | 2021-10-01T07:06:46 | 2021-10-01T07:06:46 | 410,780,902 | 0 | 4 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | # Generated by Django 3.2.7 on 2021-09-29 06:03
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('trial', '0005_tourist'),
]
operations = [
migrations.RemoveField(
model_name='public',
name='id',
),
... | [
"lintapaultkr1107@gmail.com"
] | lintapaultkr1107@gmail.com |
641ddc30ca583d7d31b730a032de503e692c58cd | e580a8ccad49c20a6a8ca924369a7ed7c7b85274 | /nbgrader/preprocessors/base.py | 5fb73f68151a0649c54a0fc66fc10a07d3fe33bd | [
"BSD-3-Clause"
] | permissive | jdfreder/nbgrader | b06cec1ca7dc7633a36ee18859c9509fafbf63d5 | a6773f27ad2be44505071bbfbfacbbbffe1b0d0d | refs/heads/master | 2021-01-18T11:53:18.017422 | 2015-04-09T22:17:56 | 2015-04-09T22:17:56 | 32,471,870 | 1 | 0 | null | 2015-03-25T16:08:14 | 2015-03-18T16:53:33 | Python | UTF-8 | Python | false | false | 376 | py | from IPython.nbconvert.preprocessors import Preprocessor
from IPython.utils.traitlets import List, Unicode, Bool
class NbGraderPreprocessor(Preprocessor):
default_language = Unicode('ipython')
display_data_priority = List(['text/html', 'application/pdf', 'text/latex', 'image/svg+xml', 'image/png', 'image/jpeg... | [
"jhamrick@berkeley.edu"
] | jhamrick@berkeley.edu |
14697cc4414a8387a1626f00a4cb76d3282d340a | bbdf1680df26a74fe5a906715c6fc27055d0629d | /Gaurab/file.py | 2bc0d6fc281cb81fe4255ae0ed9e208949bc01ce | [] | no_license | LMS-Learnvista/LB_DSC_SEPT_WKND_20 | 49d85069db6e550331c8eee0bfba400144a04c50 | c7d05e892dbedcd70d47aee82572b62cd2de1cb9 | refs/heads/master | 2023-04-01T22:40:02.709136 | 2020-10-03T10:22:53 | 2020-10-03T10:22:53 | 298,772,998 | 1 | 81 | null | 2022-09-21T23:25:48 | 2020-09-26T08:42:36 | Python | UTF-8 | Python | false | false | 143 | py | a = 7
p = "PYTHON"
for x in range(a):
for i in range(x):
print(" ",p[i], end=" ")
print(" ")
print("\r\n\tHello World!!!\r\n")
| [
"gaurabdutta8@gmail.com"
] | gaurabdutta8@gmail.com |
f570a5c1b0ce18a9e2fa4a56a7c722c82e83f31a | 67d7d29a9d1ae9de131f8c6307b7401d69e7318f | /miscs/restore_dynamic_range.py | fea2bf4b3b736adf3deda6c9c67a04ca0ec7b70f | [] | no_license | YuelongWu/xradia_scripts | 966e6e09a97fb13ad2f0fbb5accb3e89ccd81bf7 | 10b192d79d90265797539600c96b72c299867930 | refs/heads/master | 2023-08-06T18:58:41.908799 | 2021-09-16T21:18:07 | 2021-09-16T21:18:07 | 357,687,575 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,307 | py | import os
import SimpleITK as sitk
import numpy as np
import h5py
import glob
rootpath = '/n/boslfs02/LABS/lichtman_lab/uct/P0_20210223/P0_02232'
ext = '.nrrd'
moveonly = True
if not moveonly:
max_file = os.path.join(rootpath, 'workdir', 'blk_max.h5')
max_scl = 0.60
with h5py.File(max_file, mode='r') as f... | [
"yuelongwu@fas.harvard.edu"
] | yuelongwu@fas.harvard.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.