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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d3d3d66018bc1a27bb0354f4666316c75e3a19aa | cb9da041c1ec6ffe828ae5f1d8fb5daae0191300 | /RL/agents/dqn/dqn.py | e5925374221328fce2c0304476cd96544ad21da1 | [] | no_license | YigitDemirag/NN-warmup | 05d705c529f8ed19683527144f7f35e7495e6c58 | b2b1490a809985f090b867598ef0c28f66c3bdfc | refs/heads/master | 2020-03-25T12:21:45.960181 | 2019-04-15T00:27:31 | 2019-04-15T00:27:31 | 143,772,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,443 | py | import sys
import gym
import time
import numpy as np
import torch
import torch.nn as nn
import RL.agents.model as model
from RL.utils.logx import EpochLogger
from RL.utils.mpi_torch import average_gradients, sync_all_params
from RL.utils.mpi_tools import mpi_fork, mpi_avg, proc_id, mpi_statistics_scalar, num_procs
fr... | [
"yigitdemirag@protonmail.ch"
] | yigitdemirag@protonmail.ch |
1de70a66375477e65b9edda9ec69c9883eb50beb | c8b9d0b2d8990f01d03323f90cd54c9aad4287d6 | /sensor/migrations/0003_auto_20210910_1251.py | 992c3c2127234ea81c22f07a6ca17bf6402eccfd | [] | no_license | nairutis21/storeline | c94a9ef5ef72eb75956cbd1951927ff2de21fe4a | 3a3a3be068f8fa015d91f65e5a609e05e5137640 | refs/heads/main | 2023-07-27T05:45:03.980313 | 2021-09-14T06:14:15 | 2021-09-14T06:14:15 | 405,722,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | # Generated by Django 2.2.13 on 2021-09-10 12:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('sensor', '0002_auto_20210910_1213'),
]
operations = [
migrations.RemoveField(
model_name='sensor',
name='pressure',... | [
"nairuti6198@gmail.com"
] | nairuti6198@gmail.com |
db43fe454604d69166d774bdd838652f589799d9 | 12c35198e53154b398372fce93c17ff90e3fa362 | /tutorial/spiders/SiteContent.py | 4f9a90ba0bc02c90fd33de458c49e5974ed3eb04 | [] | no_license | wuzh1014/NormalSpider | 0ef490e588943e88290cadeaed041461da908191 | aaf654724fa7d7f253d842136dd0f2d5fbd50817 | refs/heads/master | 2020-03-19T10:54:40.574035 | 2018-07-02T16:22:29 | 2018-07-02T16:22:29 | 136,411,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 137,226 | py | # coding:utf-8
html_url = 'http://iguba.eastmoney.com/3610113626703842'
html_str = '''
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=11,IE=10,IE=9,IE=8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>
一个投资者的告白的个人主页
</title>
<link rel="stylesheet" type="text/... | [
"357096630@qq.com"
] | 357096630@qq.com |
bb4fdb43e2b76e739fb4f7701b97875ae73d1d24 | e62536c732c6773f83e5f76507f9aeeb18b15663 | /instantpaintestimate/views.py | 527389a2cb016e695ca894276baa8ea055cd5b2c | [] | no_license | 79fatemeh1999/instant-paint-estimates | c7fa3eee27ecb85ef70c574865aff3fbd3f252fa | 899fed9868387d99a21148c2b419cd561ebcaeb9 | refs/heads/master | 2021-09-19T21:14:18.115127 | 2018-07-31T15:48:55 | 2018-07-31T15:48:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,434 | py | from django.http import HttpResponseRedirect, JsonResponse, HttpResponse
from django.shortcuts import get_object_or_404
from .models import PaintEstimate, PaintEstimateUser
from .forms import PaintEstimateForm
from .helpers import cleanPaintValues, calculatePaintEstimatePrice, sendEmail
from instantpaintestimate import... | [
"bmisljen@gmail.com"
] | bmisljen@gmail.com |
e1b1868d804ba8bd5d7700debafa0a87b49a39ef | caaf1b0754db1e676c37a6f1e58f19183754e654 | /sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2021_09_01/operations/_private_endpoint_connections_operations.py | 78db6ee6160edab569f105e1ee00ec65560d434c | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | rdomenzain/azure-sdk-for-python | 45dfb39121a0abda048c22e7309733a56259f525 | 58984255aeb904346b6958c5ba742749a2cc7d1b | refs/heads/master | 2023-07-07T06:53:12.967120 | 2023-07-04T16:27:37 | 2023-07-04T16:27:37 | 258,050,134 | 0 | 0 | MIT | 2020-04-23T00:12:14 | 2020-04-23T00:12:13 | null | UTF-8 | Python | false | false | 28,374 | py | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | [
"noreply@github.com"
] | noreply@github.com |
2d0a1fb71863a3ca279a1dce87f86a5ea512cdb8 | 3749aceeae14fd389c609d5e1ca0a5df6c7cc190 | /RLBotPack/VirxEB/VirxEB.py | 2bc97e0778e3f0ad2443eb907ab6b69fcdd4f017 | [
"MIT"
] | permissive | FormularSumo/RLBotPack | d95e672a2021b386ba95998d8edc898983bb4919 | 923d1c040753f5065572f8a0eab20f72de31d559 | refs/heads/master | 2022-12-05T20:54:59.109609 | 2020-08-24T10:21:09 | 2020-08-24T10:21:09 | 256,999,139 | 0 | 0 | MIT | 2020-04-19T13:10:45 | 2020-04-19T12:55:20 | null | UTF-8 | Python | false | false | 22,703 | py | from traceback import print_exc
# from rlbot.utils.game_state_util import BallState, GameState, Physics
# from rlbot.utils.game_state_util import Vector3
from rlbot.utils.structures.quick_chats import QuickChats
from util.agent import math, VirxERLU, Vector
from util.routines import goto, goto_boost, recovery, short_... | [
"noreply@github.com"
] | noreply@github.com |
6172d900389a3c4f4ceb5fddef7c2c98ca2c76bd | 4e51ffe24f006dfa45be743e0ee5871bdfe682f8 | /OldVersions_Nere/PruebaThreads.py | 20fe7a4171ab1f9ac0fb326ef90bbf9922c3e37a | [] | no_license | kmm764/ThePythonMenace | 9330234b44a800f39685043e4403e50cdbee323c | e7b299806fae263e7f76961f475762e0f70b909b | refs/heads/master | 2020-04-05T08:25:34.547407 | 2018-12-12T14:59:02 | 2018-12-12T14:59:02 | 156,714,911 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 641 | py | from pynput.keyboard import Key, Listener
def listen_to_keyboard():
def on_press(key):
try:
print('alphanumeric key {0} pressed'.format(
key.char))
except AttributeError:
print('special key {0} pressed'.format(
key))
def on_release(key):
... | [
"NBM883@hotmail.com"
] | NBM883@hotmail.com |
69243a7cdba328a30bcc68799ccdaf96c2af7d79 | e2f9483f2436ce3393819473498796173fef3700 | /BellCurve-Normal_Distributrion/bellCurve-normal_distribution.py | ba1740ee0d3a91d0cdacae9b7be2d5a52e0b6c4a | [] | no_license | arnavshroff/BellCurve-Normal_Distribution | 9d4a96bf241cb8e8edc1b2195b1995ed008fd7ac | 0976d19a08a58d79cba0d24db2b0b37bc7e56dba | refs/heads/main | 2023-06-18T23:44:42.349751 | 2021-07-09T11:52:15 | 2021-07-09T11:52:15 | 384,421,465 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | import pandas as pd
import plotly.figure_factory as ff
data = pd.read_csv('data.csv')
fig = ff.create_distplot([data["Avg Rating"].tolist()],['Average Rating'],show_hist = True)
fig.show() | [
"noreply@github.com"
] | noreply@github.com |
df404f3b8ffb691f89f96c0f76927a6c6e7be13b | c85238daac6141efea2895485b9b18fc08cf4cf2 | /PathTracking/lqr/unicycle_model.py | 6e55e37b422e9be8ec8346a25d0b4cf7a5720654 | [
"MIT"
] | permissive | RyoheiTakahashi/PythonRobotics | 6543529ff677a68792cfc0a336aa9992d163ec96 | bee232e84dedcfe0b1dc494ce86c67130b42a8c8 | refs/heads/master | 2021-01-02T09:00:24.091192 | 2017-07-31T06:50:07 | 2017-07-31T06:50:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,167 | py | #! /usr/bin/python
# -*- coding: utf-8 -*-
"""
author Atsushi Sakai
"""
import math
dt = 0.1 # [s]
L = 2.9 # [m]
class State:
def __init__(self, x=0.0, y=0.0, yaw=0.0, v=0.0):
self.x = x
self.y = y
self.yaw = yaw
self.v = v
def update(state, a, delta):
state.x = state.x... | [
"asakai.amsl+github@gmail.com"
] | asakai.amsl+github@gmail.com |
0c43464a092781b053ba6f390a0d89f441be63a6 | 1e443dfdef40efb753d3846ccd8fd46bceb00f26 | /arduino/file.py | 93016491cbd0cf978b441808cbf8cb507c816fc1 | [] | no_license | Higoramaro/CarteiraNacionalONE | ad0fc30795c03a42a0ebdff1eac0848e841eba8e | a009a07f919ac48fbdb4caea093784886468bb0f | refs/heads/main | 2023-07-05T12:02:23.488320 | 2021-08-31T19:22:41 | 2021-08-31T19:22:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | from mysql.connector import cursor
import serial
comport = serial.Serial('COM3', 9600)
print ('Serial Iniciada...\n')
retorno = comport.read(8)
print(retorno)
comport.close() | [
"frrssatto@gmail.com"
] | frrssatto@gmail.com |
2a28a4e994f2d3b3830cbdc59416207affed85b7 | 2eb644ed16d476ea013b137c1dd360b7c3d53de4 | /Unit 2/hw2.1.py | 4bd9c15293530f7ed720c8d3e23d5f114aee59d7 | [] | no_license | vampireneo/CS101-course-work | 5cb5deb65636fb17a1e40a4029578388b9571822 | 5e57046d515804cb97bdfd70dae5f3b884aebacc | refs/heads/master | 2021-01-10T20:39:46.807259 | 2012-03-20T07:39:14 | 2012-03-20T07:39:14 | 3,647,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | # Define a procedure, udacify, that takes as
# input a string, and returns a string that
# is an uppercase 'U' followed by the input string.
# for example, when we enter
# print udacify('dacians')
# the output should be the string 'Udacians'
# Make sure your procedure has a return statement.
def udacify(t):
re... | [
"neo.choi@gmail.com"
] | neo.choi@gmail.com |
e2b0f482758bb84ddbec091acbaebe456770b0e5 | 59074f5f46c46ae74ad8ddea1d4cd7bd4e7ed06e | /vis_utils/simple_3dviz/simple_3dviz/behaviours/trajectory.py | 4f7f126a556ddd0d8e77d850f5e4c87a5fa9ebca | [
"MIT"
] | permissive | mbaradad/my_python_utils | 0fed19abe2ec8aef706b10e36d220ca99144674d | 721c4f3461ea6898d4bd7f86bc8fdebdd3f934e8 | refs/heads/master | 2023-08-21T13:05:53.019546 | 2023-08-14T19:28:49 | 2023-08-14T19:28:49 | 122,513,270 | 0 | 1 | null | 2023-02-07T20:54:46 | 2018-02-22T17:43:47 | Python | UTF-8 | Python | false | false | 6,720 | py | """This module defines and implements the Trajectory interface which provides a
way to generate a sequence of values for use with behaviours. For instance we
can generate quadratic bezier trajectories for moving the camera or lights."""
from bisect import bisect_right
import numpy as np
from pyrr import matrix33
cl... | [
"mbaradad@mit.edu"
] | mbaradad@mit.edu |
0a58cf2911a659203311090431b380b9748431c3 | 90574ae9759f98f8687cd3e842a6b4301578baea | /batbelt/utils.py | fddd41a996904a6a1cf6a42f8e2d5dc3ff6eefd7 | [
"Zlib"
] | permissive | sametmax/Bat-belt | 88a52a1d89e5dac8bfd69e26a0f106bc0520fdea | 372117e3876328f84804a296ee9636dee1e82206 | refs/heads/master | 2021-05-16T02:29:13.264688 | 2015-09-18T16:59:26 | 2015-09-18T16:59:26 | 6,219,068 | 19 | 3 | null | 2017-05-18T06:03:15 | 2012-10-14T22:55:42 | Python | UTF-8 | Python | false | false | 2,792 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# vim: ai ts=4 sts=4 et sw=4 nu
"""
The infamous utils.py module filled with functions you don't where else
to put.
"""
import sys
import os
from datetime import datetime
CLASSIC_DATETIME_FORMAT = '%Y-%m-%d %H:%M:%S.%f'
CLASSIC_DATETIME_PATTERN = r'\d{4}-\d{2}... | [
"lesametlemax@gmail.com"
] | lesametlemax@gmail.com |
5c3b9b74c55deab254e0887e9fea2aeae8bef597 | aa3c4e721297e11fd1f9f93b0fa037d4aaa96470 | /scraping/parl/parl/spiders/parl_spider.py | 2e57fc237d6bf29e9239674b3f264a9d7280f170 | [] | no_license | bennyschudel/Parlament | cc67af25e04400205d8f729afc365b045ed97110 | cc5aa550c4d0095ab910b582a4f92bd76b421306 | refs/heads/master | 2021-01-01T15:36:05.945471 | 2011-09-30T15:28:45 | 2011-09-30T15:28:45 | 2,488,683 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,602 | py | from scrapy.spider import BaseSpider, Request
from scrapy.selector import HtmlXPathSelector
from parl import items
import re
import sys
# http://www.parlament.ch/ab/frameset/d/n/4820/361145/d_n_4820_361145_361319.htm
# http://www.parlament.ch/ab/toc/d/n/4820/361145/d_n_4820_361145_361319.htm
class ParlSpider(BaseSpid... | [
"stefan@bitwise.ch"
] | stefan@bitwise.ch |
85c7e5ba6d5bcb96e638eaf266dab2b7d0e8173b | 53b4b9189152f93fb9ceb6abb99e2d6680b1f857 | /rebuild_tool/logger.py | a0c59c3a3f2455af90292c7738b572c5282958cc | [
"MIT"
] | permissive | mcyprian/rebuild_tool | dd46cae9c1cfb9b68eca9b636791d816e7365168 | 064b36d49ce0b19b244d8853550bca1533ac8bea | refs/heads/master | 2020-04-10T15:54:15.537375 | 2017-10-26T20:45:15 | 2017-10-26T20:45:15 | 41,744,165 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 686 | py | import logging
import os
logger = logging.getLogger('rebuild_tool')
logger.setLevel(logging.DEBUG)
file_formatter = logging.Formatter(u'%(name)s::%(levelname)s::%(message)s')
def register_file_log_handler(log_file, level=logging.DEBUG, fmt=file_formatter):
dirname = os.path.dirname(log_file)
try:
if ... | [
"mcyprian@redhat.com"
] | mcyprian@redhat.com |
16a211c171b197fac8281ce6fa826d216b8534b8 | 3af6960c805e9903eb27c09d8bc7ebc77f5928fe | /problems/0173_Binary_Search_Tree_Iterator/solution.py | 7f652418a02ce3af736afa21f1de7714c75c320d | [] | no_license | romain-li/leetcode | b3c8d9d4473eebd039af16ad2d4d99abc2768bdd | 5e82b69bd041c2c168d75cb9179a8cbd7bf0173e | refs/heads/master | 2020-06-04T20:05:03.592558 | 2015-06-08T18:05:03 | 2015-06-08T18:05:03 | 27,431,664 | 2 | 1 | null | 2015-06-08T18:05:04 | 2014-12-02T12:31:58 | Python | UTF-8 | Python | false | false | 567 | py | # Definition for a binary tree node
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class BSTIterator:
# @param root, a binary search tree's root node
def __init__(self, root):
# @return a boolean, whether we have a nex... | [
"romain_li@163.com"
] | romain_li@163.com |
0e9b9f28e5ea820d594eeddc3f6fe26f712a794d | a12ec17da95377890ac4aa4973a39807c1bc440b | /manage.py | b24e7af689a5e11f7772d3bb61b95048abf2cf5b | [] | no_license | the-vagab0nd/projectX | f903b5704b199019941435ff3fd309dbab89ee4b | 2eb2e16f810774ae7aab10b3260c3f4c52eb8faf | refs/heads/master | 2022-12-12T09:38:27.721625 | 2020-09-06T15:18:20 | 2020-09-06T15:18:20 | 292,652,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'ed_tech.settings')
try:
from django.core.management import execute_from_command_line
except Impo... | [
"lit2018008.ac.in"
] | lit2018008.ac.in |
77b771ee2684379d2b32f08ae11c62237deadb89 | 2fc0b19f30920d822ea4c3012fac4a9979c56f8d | /DOS_Orbital.py | 657902c53673cf505380039bfe0efb7d8e309c26 | [] | no_license | TiestoDJ007/Mg2C-Gr_Promgram | f6e23b7fd199f1009edae45d794f86d7a65622ea | 444132ba92fd5cca61e1c2f46e11d25bf7e29dc9 | refs/heads/master | 2020-04-26T23:28:46.365016 | 2019-07-08T13:06:49 | 2019-07-08T13:06:49 | 173,903,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,204 | py | #!/usr/bin/env python
# -*- coding=utf-8 -*-
import matplotlib.pyplot as plt
import numpy as np
from matplotlib.ticker import MultipleLocator
from pymatgen.electronic_structure.core import Orbital, Spin
from pymatgen.io.vasp.outputs import Vasprun
EMIN = -2
EMAX = 2
vasprun = Vasprun('/mnt/c/Users/a/OneDrive/Calculat... | [
"jackxiao007@outlook.com"
] | jackxiao007@outlook.com |
2baac0d491abbc6f0a20d95fff26e51c955ff07e | d9caa3aa4cd7e8ee0caf1e9ac38735d3c0b51089 | /data_manager.py | a9c447fee3d046eeb40bc1dc156f7772cfee5f62 | [] | no_license | MaximeVives/where_is_iss | a63410f5c394fe042d174e45fed078d900432762 | 44076c54b25a20a9de993d92192f14b5e06171d8 | refs/heads/main | 2023-07-12T04:28:32.248901 | 2021-08-14T12:02:44 | 2021-08-14T12:02:44 | 395,812,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | from requests import get
from constantes import iss_url
def api_data(url, parameter=None):
if parameter is None:
response = get(url=url)
else:
response = get(url=url, params=parameter)
response.raise_for_status()
return response.json()
def iss_pos():
iss = api_data(iss_url)
... | [
"44499746+MaximeVives@users.noreply.github.com"
] | 44499746+MaximeVives@users.noreply.github.com |
75f0cc9ced2b0b3b7f516afcd8b9a89bfbef64ea | d4a8bedc9c1c9897b3e07a3c9067f7c89c63be5f | /python_builtins/sort_by_size.py | cf8b0e967cb9cab9f931467b0f72881a53f9bdbd | [] | no_license | udoyen/python_refresher | 816fe6264dbc21ce7a3697eb0f96aa8f9f402032 | 8e542d8e6221b041fc945f5770f25d5da03d8f6a | refs/heads/master | 2023-05-25T19:51:55.938397 | 2019-11-19T17:22:30 | 2019-11-19T17:22:30 | 222,283,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 791 | py | from .sort_on_length import lensort
n = [1, 2, 3, 5, 6, 4, 10, 11, 12, 13, 14]
s = ['python', 'perl', 'java', 'c', 'haskell', 'ruby']
def sort_by_size(n):
state = False
for i in n:
if isinstance(i, str):
state = True
if state:
lensort(n)
else:
for i in range(len(n))... | [
"datameshprojects@gmail.com"
] | datameshprojects@gmail.com |
05297da59c8dfa9824b8284de359353b5ce477a1 | d926c87644a2861d3c4edf36c1e1692acec38fb5 | /src/api/forms.py | fca77e5fde7cb8423ea759b5d0b4c6fcd89f62d6 | [] | no_license | mainhith97/AG-BE | 1058aee4bce0888da07a30fa44802115851b5e6e | 908b6e542a3219a233417f8f061241985265c777 | refs/heads/master | 2023-01-09T02:54:12.888094 | 2019-12-12T04:09:03 | 2019-12-12T04:09:03 | 213,387,121 | 0 | 0 | null | 2022-12-27T15:36:51 | 2019-10-07T13:13:13 | Python | UTF-8 | Python | false | false | 1,265 | py | #!/usr/bin/env python
from django import forms
from django.contrib.auth import get_user_model
from django.contrib.auth.forms import ReadOnlyPasswordHashField
User = get_user_model()
class UserAdminChangeForm(forms.ModelForm):
password = ReadOnlyPasswordHashField()
class Meta:
model = User
f... | [
"you@example.com"
] | you@example.com |
3549f90d7b101b2118ff612c4fe503a21f99d31b | 238702bd275d9a8171c6e479c6ad1bbaa1ee3158 | /app/blog/models.py | 4dec50a6791965d9f31409b8992f01e302a8a1d8 | [] | no_license | maro99/djangogirls_pt_for_test | aebf03672741786ea74686efac21303961bf3987 | 4400aed75640273d8adbe7b1592607ccb23b42c2 | refs/heads/master | 2020-03-19T17:46:27.767327 | 2018-06-10T15:02:17 | 2018-06-10T15:02:17 | 136,775,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 566 | py | from django.conf import settings
from django.db import models
from django.utils import timezone
class Post(models.Model):
author = models.ForeignKey(settings.AUTH_USER_MODEL,on_delete=models.CASCADE)
title = models.CharField(max_length=200)
text = models.TextField(blank=True)
created_date = models.Da... | [
"nadcdc4@gmail.com"
] | nadcdc4@gmail.com |
528aed1567e2ceb4c1c3064f860abc45e142857c | 09f01be709d38bd6b3dc544f92c51e686d763ea2 | /blob_v2.py | a1b6d237d51ba226be74da9fc9f7e6dc9fa603c4 | [] | no_license | kachergis/blobs | ea1ffbf7ca77037509b00adf8386edd33bae6fe4 | fa065316708078f84056a00e7feb11a675db219e | refs/heads/master | 2021-01-10T09:35:19.186384 | 2016-02-27T21:39:35 | 2016-02-27T21:39:35 | 52,689,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,786 | py | # RL World Drop
# Description: all objects value of +10, 1 or 2 categories of blobs
# George Kachergis & Greg Cox, Sep 14, 2011
# modified from Ian Mallett's Objects 2: The Vector! - v.2.0.0 (asteroids2.py)
# http://www.pygame.org/project/649/ http://www.geometrian.com/
# Up Arrow, ENTER = Fire, Left Arrow = Go Left... | [
"george.kachergis@gmail.com"
] | george.kachergis@gmail.com |
9098d56de3e2d84cc24bdd401adb9e0bfcc42d49 | 2fc90b2f91006e55917c3c318c914f2640a3a208 | /algorithm_study/week1/200110/InJae/[SWEA]4837 부분집합의 합.py | f2412db7487bca471d2e513386bd17c62a4cd4b2 | [] | no_license | jurogrammer/studying | ec73dc28dee5f4eef56996c51f71372b36cfb253 | 0b01f345c51e2c8225bce5de9436c8f82ed936f8 | refs/heads/master | 2021-07-26T13:02:53.592586 | 2021-04-06T10:43:58 | 2021-04-06T10:43:58 | 246,736,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 969 | py | '''
문제 이해
1~12까지 숫자를 가진 집합 A {1,2,3,...,12}
문제 목표
집합 A의 부분 집합 중 N개의 원소를 가지고 있고, 원소의 합이 K인 부분집합의 갯수를 구하라.
point.
N개의 원소를 가지고 있는 부분집합 구하기.
110111
111111
110111 1<<(i&j)
'''
test = int(input())
rstList = []
A = [1,2,3,4,5,6,7,8,9,10,11,12]
for _ in range(test):
N,K = map(int,input().split())
rst = 0
f... | [
"57349658+jurogrammer@users.noreply.github.com"
] | 57349658+jurogrammer@users.noreply.github.com |
9538737de1675e3a3124e5e10f51eac9c9db50e4 | 0a34747e5a9b94fbb12baebfa2452d15abebcc26 | /191212/venv/Scripts/pip-script.py | 9745a77b688257eee314c2e5d033bb4e9d461c36 | [] | no_license | GyuReeKim/PycharmProjects_winter-vacation | 51772407f19a6f2a9e308be884d80b787aa006d0 | 1cc9e66ea5819a1b2ea5fdbda0257a2314e3ec95 | refs/heads/master | 2020-10-01T08:56:38.413469 | 2019-12-22T23:58:59 | 2019-12-22T23:58:59 | 226,757,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | #!C:\Users\student\PycharmProjects\191212\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip'
__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[... | [
"starkim96@naver.com"
] | starkim96@naver.com |
4d5a9ee70f5c70544b426c2af67a35114e51267b | d712293b5e0886de6ed925c168b424d5d1454ec7 | /migrations/versions/3cba7b887199_associate_tables.py | 1973920971be68db689110ee73d8ac60659aaec5 | [] | no_license | LukeArenas/NFTy | e2ca1e07debdb159f07583b4daeb1603a5032368 | 8a472ca289386a99f6ec27739db1a4e6ccc81ca7 | refs/heads/main | 2023-04-02T16:29:45.981499 | 2021-04-09T21:05:47 | 2021-04-09T21:05:47 | 356,023,656 | 1 | 0 | null | 2021-04-09T21:05:48 | 2021-04-08T19:17:30 | JavaScript | UTF-8 | Python | false | false | 785 | py | """associate tables
Revision ID: 3cba7b887199
Revises: ec2350f21d32
Create Date: 2021-04-09 10:22:38.988800
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '3cba7b887199'
down_revision = 'ec2350f21d32'
branch_labels = None
depends_on = None
def upgrade():
... | [
"sschuc@saic.edu"
] | sschuc@saic.edu |
d5fef58dfc8e0c84f0b9e5a0a6eabbca770df512 | f5123238cc6ee764361bfa1c084ef5594302f59f | /secops/monitoring/tikimon/examples/deauth.py | 4f853cc2488e58cfa92229fccfc4db7dc7545c0a | [] | no_license | nelsocs/project_smalls | 57f990cbacb36337763edd210aa9a7dcfcc552f7 | 521a72558141088fbbcca8966557fcdb74915d42 | refs/heads/master | 2016-09-15T05:49:45.360769 | 2014-06-16T16:35:05 | 2014-06-16T16:35:05 | 12,512,558 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,250 | py | #!/usr/bin/python
########################################
#
# This code is part of the SANS/GIAC Gold Paper titled
#
# Programming Wireless Security
#
# by Robin Wood (dninja@gmail.com), accepted May 2008
#
# For more information you can find the paper in the "Wireless Access" section of the
# SANS Reading Room at ht... | [
"github@cryptzero.net"
] | github@cryptzero.net |
462257ae93be97cf1249ece1488ef941daa72a98 | 9f64ada4239e0af2a6f7ab040c43b3bfc2a64733 | /testMQTTplusModbusForHorses.py | a914c26d6fe51dc59ffce0ff14317bc4c4f484a9 | [] | no_license | glarionenko/horses | 09aa2ada345cfe3c0bf800697c4f5100b68789aa | b4cf7e74a1909b99ea39d2924cc46f4484ce6cd8 | refs/heads/main | 2023-01-18T18:00:54.961631 | 2020-11-25T22:49:16 | 2020-11-25T22:49:16 | 313,061,989 | 0 | 0 | null | 2020-11-25T15:21:13 | 2020-11-15T15:31:21 | Python | UTF-8 | Python | false | false | 7,973 | py | #!/usr/bin/env python3
import paho.mqtt.client as paho
import minimalmodbus
from time import *
import sys
import serial
import serial.tools.list_ports
from gpiozero import Button
button = Button(26, True)
button_counter=0
button_long_hold_time=3
button_decision_time=2
#
ports = serial.tools.list_ports.comports() #auto... | [
"glarionenko@gmail.com"
] | glarionenko@gmail.com |
25c0c24d7cce0e75b26179b2e39d7eec45666bb9 | b05d274d0e90b7835cd6708974befd9b968055a2 | /oop/cards.py | 873de6e73a08c3eac628686f3317f4a2dee8449c | [] | no_license | ammarion/Complete_Python_Developer | 3cb420d0eb57067033b426fb0840d451cfaafceb | 1564e108e87f5292f4c050cabf0d2fb311e5d90c | refs/heads/master | 2021-06-25T15:28:41.374040 | 2019-11-11T23:52:34 | 2019-11-11T23:52:34 | 210,448,573 | 0 | 0 | null | 2021-03-20T02:10:26 | 2019-09-23T20:42:22 | Python | UTF-8 | Python | false | false | 1,647 | py | from random import shuffle
class Card:
def __init__(self, value, suit):
self.suit = suit
self.value = value
def __repr__(self):
return f"{self.value} of {self.suit}"
class Deck:
def __init__(self):
self.cards = []
suits = ["Hearts", "Diamonds", "Clubs", "Spades"]... | [
"ammar.alim@nordstrom.com"
] | ammar.alim@nordstrom.com |
a466328f675d05531ab0713a6dafb6c78b0f3ff7 | c6ae1b415c5de367677dceaecd5cd983365609e0 | /Atividades/Roteiro 5 - While/Programas/Roteiro 5 Questão 7.py | 0e3f5b5b3eb25ddead15c1c27823d585c58d4985 | [] | no_license | JardelBrandon/Algoritmos_e_Programacao | 8f00548ed9706cfeb3ad2b2ac6db0b9d2eb0f13c | 66784a567d85cf340d50400a14ea6915779a1304 | refs/heads/master | 2021-07-11T14:36:09.260443 | 2017-10-12T20:55:41 | 2017-10-12T20:55:41 | 106,738,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 831 | py | #7. Escreva um programa que leia números inteiros da entrada padrão até que seja informado um
#número negativo ou par.
while True :
num = int (input ("Digite um número inteiro aleatório :"))
print (num)
if num < 0 :
print(num, "Digito negativo, fim !")
break
if num % 2 == 0 :
... | [
"jardelbrandon@hotmail.com"
] | jardelbrandon@hotmail.com |
7d62230ee2d0e84a7519a3790281dbda25c16b59 | 86898436b49e411fd4a06f13d74a54cf9bda07e3 | /naiveBayes/test.py | 2cf39cfac2d35515e443a0b151b454f78c6b0496 | [] | no_license | zhaone/LiHangSta | 4a17dcae89f874e6c7c26b6396095556121ef12e | 6ab26d7dba6342868c5fefe32d1be1ebcfe759c9 | refs/heads/master | 2020-04-14T19:02:41.627961 | 2019-05-30T08:15:30 | 2019-05-30T08:15:30 | 164,042,582 | 0 | 0 | null | 2019-05-30T07:37:17 | 2019-01-04T01:40:29 | Python | UTF-8 | Python | false | false | 409 | py | """
主要用来验证正态分布函数是否正确
"""
import numpy as np
from scipy import stats
def gaussian(_mean, _std, x):
coefficient = 1 / (_std * np.sqrt(2 * np.pi))
square_std = 2 * _std * _std
print(x, _mean, _std, coefficient * np.exp(-np.square(x - _mean) / square_std))
if __name__ == '__main__':
gaussian(4.9615, 0.3... | [
"smzhgle@gmail.com"
] | smzhgle@gmail.com |
78d0879d94181fd01651e04f648a10bce0e425af | 7e01c039f2427d434a4ef44a1b9dc0ea21db65ba | /venv/lib/python3.8/site-packages/django/db/models/indexes.py | 972bc52b46db22cea0eb15a3e5064bdecbd5302e | [] | no_license | dmfranz/Spike-exercise | 09f8051163d2a63dfbc3f75da2de0a1bbbbb122d | 83971e95a72d504f629778fece2cdfb953e5d08b | refs/heads/main | 2023-08-23T04:18:43.934471 | 2021-10-11T04:54:28 | 2021-10-11T04:54:28 | 413,568,735 | 0 | 1 | null | 2021-10-11T04:36:22 | 2021-10-04T20:10:01 | Python | UTF-8 | Python | false | false | 11,548 | py | from django.db.backends.utils import names_digest, split_identifier
from django.db.models.expressions import Col, ExpressionList, F, Func, OrderBy
from django.db.models.functions import Collate
from django.db.models.query_utils import Q
from django.db.models.sql import Query
from django.utils.functional import par... | [
"marmara@wisc.edu"
] | marmara@wisc.edu |
903148007e98a1ef036858f32c70f8c06f05e03c | 44af8a5f186a80ede77774f5403be267c7fe146d | /Design/python/leetcode/web_crawler_multithreaded.py | bbb80b607bd21c3fea19390c6d30c442f25156b9 | [] | no_license | sankeerth/Algorithms | d77d91b6af948a59f71e44bf306e967c13078dda | 6b24724da055a08510c83c645455eaa4ed201298 | refs/heads/master | 2021-10-28T01:53:21.166980 | 2021-10-15T08:11:11 | 2021-10-15T08:11:11 | 103,606,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,746 | py | """
1242. Web Crawler Multithreaded
Given a url startUrl and an interface HtmlParser, implement a Multi-threaded web crawler to crawl all links that are under the same hostname as startUrl.
Return all urls obtained by your web crawler in any order.
Your crawler should:
Start from the page: startUrl
Call HtmlParser.g... | [
"noreply@github.com"
] | noreply@github.com |
aba586cb3ca22113abdae1daa0dc0d3f18ed5138 | 8ee651aa63277b61b957e43665d0d50ed4ccd725 | /0027_Remove_Element/0027_Remove_Element.py | b345ebb07f0e00733a106a8f7a39756b8597d265 | [] | no_license | Samuel0413/LeetCodeExcercise | d2bf2aad8f38153e2e6949b63cfc13b652ff282a | 584f4436b10f3657d4086be0b039729505e65e43 | refs/heads/main | 2023-09-04T08:01:13.941617 | 2021-10-19T00:17:37 | 2021-10-19T00:17:37 | 319,783,767 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,117 | py | """
Given an array nums and a value val, remove all instances of that value in-place and return the new length.
Do not allocate extra space for another array, you must do this by modifying the input array in-place with O(1) extra memory.
The order of elements can be changed. It doesn't matter what you leave beyo... | [
"samuel.0413kb@gmail.com"
] | samuel.0413kb@gmail.com |
3fd21e47f53f0ff1f5ccd0b839aa3290c34a3ff3 | 705e1ec609ef731056f814bb52cf03db3c5d84e2 | /socialauth/asgi.py | e220410890c4b41e406d87829d8b70a765288ace | [] | no_license | techwebdev/djangosociallogin | 3bc838f1246a6dd4257b88434bcabf0efcd9d859 | 5567553c70c28659e141c802a5202d6146c40843 | refs/heads/master | 2023-01-02T01:36:48.810252 | 2020-10-25T19:24:14 | 2020-10-25T19:24:14 | 255,660,539 | 0 | 2 | null | 2020-10-25T19:24:15 | 2020-04-14T16:18:34 | Python | UTF-8 | Python | false | false | 397 | py | """
ASGI config for socialauth project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SE... | [
"amitk@webmob.tech"
] | amitk@webmob.tech |
fd390457a4aac19d5bd28797f326a07eec0991ac | f8a843b8c940041baeefeb4ab730f9e44a56a0f2 | /rasp/device/regressor_device.py | effd412755d1fdf5671a9edf936e5761e1a522f5 | [
"MIT"
] | permissive | liu09114/RASP | 7cb1ce0f3a1a1c56ec171635984d2a14c3f8a0a5 | 912c3410a3bc1e165f3d359abb54ce0002e14c1f | refs/heads/master | 2022-04-22T03:43:51.451203 | 2020-04-21T04:59:45 | 2020-04-21T04:59:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,500 | py | # -*- coding: utf-8 -*-
from ..utils.reporter import report
class RegressorDevice():
def __init__(self, regressor):
self.tape = []
self.reg = regressor
def reset(self):
self.tape = []
def add_node(self, node):
self.tape.append(node)
def run_node(self, node):
p... | [
"linyunfeng@sjtu.edu.cn"
] | linyunfeng@sjtu.edu.cn |
0e638c9b8bce398d591e706a10c4edc5486c3773 | 3389c87a101ab3314b96bc0f8714aa87bbbdddc6 | /libs/cherrypy/wsgiserver/ssl_pyopenssl.py | ed7e16f2cb34057038fceac7e0d7adf58014d080 | [
"BSD-3-Clause",
"MIT"
] | permissive | xjsender/haoide | 2b7d97a3ef4e772eb730ccbed8e2017f4c272a07 | 586a0bda433030e6db11b20752bc70cb985c6618 | refs/heads/master | 2022-04-29T15:14:11.096405 | 2022-03-30T05:06:05 | 2022-03-30T05:06:05 | 29,422,645 | 241 | 63 | MIT | 2022-03-30T05:06:06 | 2015-01-18T10:40:07 | Python | UTF-8 | Python | false | false | 9,609 | py | """A library for integrating pyOpenSSL with CherryPy.
The OpenSSL module must be importable for SSL functionality.
You can obtain it from http://pyopenssl.sourceforge.net/
To use this module, set CherryPyWSGIServer.ssl_adapter to an instance of
SSLAdapter. There are two ways to use SSL:
Method One
----------
* ``s... | [
"mouse.mliu@gmail.com"
] | mouse.mliu@gmail.com |
6afbaf54ffdc4093b56b5c2cb8ad9c256686c91d | 1439962d87931e7f1162bf42513e5f250913c282 | /skabenproto/helpers.py | 5547fef6eed0f52fc21a83d31855f82ea537e73b | [] | no_license | skaben/skabenproto | 40f7a9686cc330d368c40c32ee553e72332a889e | 29b4bd54e6b76f82cd8b814190efefd0452990c2 | refs/heads/main | 2023-06-27T04:11:38.235989 | 2021-07-25T10:33:59 | 2021-07-25T10:33:59 | 284,449,618 | 0 | 0 | null | 2021-07-25T10:34:01 | 2020-08-02T11:39:03 | Python | UTF-8 | Python | false | false | 150 | py | def set_destructive(payload: dict) -> dict:
"""CUP packet rewrites client config from scratch"""
payload.update(FORCE=True)
return payload | [
"26793601+zerthmonk@users.noreply.github.com"
] | 26793601+zerthmonk@users.noreply.github.com |
65a3424eb666d1b95d64e170a548eba3ee06e8ea | 1bd3076902117867ec048210905195ba2aaaaa6b | /exercise/leetcode/python_src/by2017_Sep/Leet081.py | 031e578b7c55dcfc5b24e1ee98786a96056655d6 | [] | no_license | SS4G/AlgorithmTraining | d75987929f1f86cd5735bc146e86b76c7747a1ab | 7a1c3aba65f338f6e11afd2864dabd2b26142b6c | refs/heads/master | 2021-01-17T20:54:31.120884 | 2020-06-03T15:04:10 | 2020-06-03T15:04:10 | 84,150,587 | 2 | 0 | null | 2017-10-19T11:50:38 | 2017-03-07T03:33:04 | Python | UTF-8 | Python | false | false | 196 | py | class Solution(object):
def search(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: bool
"""
return target in set(nums)
| [
"ziheng_song@126.com"
] | ziheng_song@126.com |
2e40de7513fc011c50e49c3924ac2541ee9dec3b | 399ca5f0c81ab3719d411856b31ff9efc7482509 | /test_train_data_set.py | ca2353250e0c926e75b9bf42bbf68d940fa3a128 | [] | no_license | VianneyC/INF442P5_python | b0bd398cda13c03887c4c06cf914315bcdc3d348 | 3271f0285cb0e909917aea6378b599712a57e5af | refs/heads/master | 2020-03-23T19:37:24.763008 | 2018-08-02T10:06:45 | 2018-08-02T10:06:45 | 141,991,671 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,916 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Fri Jul 27 14:38:45 2018
@author: vianney
"""
import numpy as np
import matplotlib.pyplot as plt
import progressbar
#returns the pixels sum in the given rectangle on the n-th image
def sum_rect(x, y, w, h, n) :
x, y, w, h = int(x), int(y), int(w), int(... | [
"vianney.choimet@gmail.com"
] | vianney.choimet@gmail.com |
4c05e2be63b355c4b1e20763ff2b62cee65c0990 | 2ef5b78a1a750ee33d86f36bba176796163e3933 | /demo5/forms.py | 4f222179f56bc614355a243b4e1381dc87a68970 | [] | no_license | LIZEJU/flask-demo | 08f8419757dc4902239b89b3df9ea71ce918ad26 | 6ae201e3cc078b7a3fd18fb6d114b0b83f1b4b41 | refs/heads/master | 2020-09-27T05:58:09.742198 | 2020-01-30T11:04:41 | 2020-01-30T11:04:41 | 226,445,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,203 | py | #encoding:utf-8
# 引入form基类
from flask_wtf import Form
# 引入form元素父类
from wtforms import StringField , PasswordField ,FileField
# 引入form验证父类
from wtforms.validators import DataRequired,Length
from wtforms.validators import InputRequired
from flask_wtf.file import FileRequired , FileAllowed
from flask_wtf.form import ... | [
"m18611694189@163.com"
] | m18611694189@163.com |
31404902b27fdb152d6280d2618358c91f58c56e | 6b791247919f7de90c8402abcca64b32edd7a29b | /lib/coginvasion/gags/Geyser.py | 49fb02d48689e8123aa8b4780d597b0a706f7552 | [
"Apache-2.0"
] | permissive | theclashingfritz/Cog-Invasion-Online-Dump | a9bce15c9f37b6776cecd80b309f3c9ec5b1ec36 | 2561abbacb3e2e288e06f3f04b935b5ed589c8f8 | refs/heads/master | 2021-01-04T06:44:04.295001 | 2020-02-14T05:23:01 | 2020-02-14T05:23:01 | 240,434,213 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,238 | py | # uncompyle6 version 3.2.4
# Python bytecode 2.7 (62211)
# Decompiled from: Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit (AMD64)]
# Embedded file name: lib.coginvasion.gags.Geyser
from lib.coginvasion.gags.SquirtGag import SquirtGag
from lib.coginvasion.gags.ChargeUpGag import ChargeUpGa... | [
"theclashingfritz@users.noreply.github.com"
] | theclashingfritz@users.noreply.github.com |
a422adb8377e27145052c403040b4814541e9b36 | f60b964dc39ba54bb84f1c4949be3b91a92b8346 | /order_api/views.py | e3feee2c73e66f7674f853b4df1efd45d9a9edbb | [
"Apache-2.0"
] | permissive | jiejiang/courier | 4b0b4fc56c5510228ffcc4de51b074c7aff9502f | 6fdeaf041c77dba0f97e206adb7b0cded9674d3d | refs/heads/master | 2022-11-30T14:24:53.950502 | 2019-12-06T16:42:00 | 2019-12-06T16:42:00 | 195,387,643 | 0 | 0 | Apache-2.0 | 2022-11-22T01:22:33 | 2019-07-05T10:08:19 | Python | UTF-8 | Python | false | false | 14,754 | py | # *- coding: utf-8 -*
import urllib, PyPDF2, sys, os, json
from cStringIO import StringIO
from wsgiref.util import FileWrapper
from decimal import Decimal
from django.conf import settings
from django.db import transaction
from django.http.response import StreamingHttpResponse
from django.utils import timezone
from dja... | [
"mail.jie.jiang@gmail.com"
] | mail.jie.jiang@gmail.com |
f59576e84f7ea29af8679e9e3cc8f1dd93b936f5 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/minWindow_20200618160003.py | 227eef656edcd857940c47b680c4c4aa56bf8fce | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 614 | py | # for this question we have two pointers
# left pointer
# right pointer
# we move the right pointer and maintain the position of the left pointer
# when we find the word we move the left pointer
# store that word its shortest form
# we keep moving the right pointer
# sz,azjskfzts
def minWindow(str1,str2):
le... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
cb2695bfe55ceb17985a3f106669fd7541112535 | 84e3a9c52cf0338b7b7136dd7dd857162af3e4b0 | /static/BGG-analysis/scraper_and_data/boardgamegeek_scraper/get_game_info.py | 53dbcda749c189340459e28b7fb659a3c1d36ef5 | [] | no_license | dvatvani/dvatvani.github.io | 765fa4567d8228ceb160dd8c08e98a676501441d | 20687b29cce94933cb4340c35d1e44527ec3437e | refs/heads/master | 2023-04-29T08:27:15.117736 | 2023-04-16T00:21:31 | 2023-04-16T00:21:31 | 22,491,935 | 23 | 13 | null | 2019-04-22T00:07:30 | 2014-08-01T01:51:50 | Jupyter Notebook | UTF-8 | Python | false | false | 2,440 | py | import csv
import time
import requests
from bs4 import BeautifulSoup
def get_val(tag, term):
try:
val = tag.find(term)['value'].encode('ascii', 'ignore')
except:
val = 'NaN'
return val
base = 'http://www.boardgamegeek.com/xmlapi2/thing?id={}&stats=1'
with open('ids.txt') as f:
ids =... | [
"dr.mirpuri@gmail.com"
] | dr.mirpuri@gmail.com |
2f6d03026c09a7ce173a67c3e1969dc363abb6b6 | e6bc1f55371786dad70313eb468a3ccf6000edaf | /Extras/matrix/Correct/s030.py | c58235fbf2b318bd0371e500ca863583fa7ce813 | [] | no_license | prateksha/Source-Code-Similarity-Measurement | 9da92e3b22c372ed6ea54d8b6ab2c5921e8c41c0 | fb371b837917794d260a219a1ca09c46a5b15962 | refs/heads/master | 2023-01-04T07:49:25.138827 | 2020-10-25T14:43:57 | 2020-10-25T14:43:57 | 285,744,963 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,303 | py | #!/usr/bin/python3
# MatrixError
# Your code - begin
class MatrixError(Exception):
# Your code - end
class Matrix:
def __init__(self, m):
# check if m is empty
if (len(m)==0):
raise:
except :
"List Empty"
# check if all rows are lists
# check if all rows ... | [
"pratekshau@gmail.com"
] | pratekshau@gmail.com |
3eef1f70c610157641b40e13380d2c84987e133a | de1bbcd2c19469514ba0a4edecbc7a515598dcb7 | /python/game_of_life.py | 8d18b9641f818b4ef28c6582e18a4ecf62a682b1 | [] | no_license | aikikode/game_of_life | 6b351e2cfc0275e2011b4d133c275a6ee7476eb1 | 1470e79e4fbba165ddfb27f9b44f61e67f476ae0 | refs/heads/master | 2016-09-06T07:57:18.895497 | 2012-10-14T23:24:40 | 2012-10-14T23:24:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,474 | py | import sys
from PyQt4 import QtGui, QtCore
import time
__author__ = 'aikikode'
ROWS = 24
COLS = 20
STEP = 0.2
class PopulationWidget(QtGui.QWidget):
def __init__(self):
QtGui.QWidget.__init__(self)
self.layMain = QtGui.QVBoxLayout()
self.setWindowTitle("Life Game")
self._generator... | [
"Denis.Kovalev@dataart.com"
] | Denis.Kovalev@dataart.com |
258a53f464b086d6376a2d16b7735c366aeb24f1 | 7f83e3011aba2c9f0f93a78f3ab6b5d5b514d347 | /tacker/tests/unit/vm/nfvo/drivers/vim/test_openstack_driver.py | 92698d1d43e4528a1fd30aa65e6ec1d648fff3c1 | [
"Apache-2.0"
] | permissive | cliles/tacker | ab944a4a181429a97b9dff439737a618cf9bd122 | 492796465f535285823e7df5edc56a2d8ce1e5b7 | refs/heads/master | 2021-01-18T12:58:53.508798 | 2016-08-18T17:14:59 | 2016-08-18T17:14:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,665 | py | # Copyright 2016 Brocade Communications System, 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
#
# Un... | [
"sseetha@brocade.com"
] | sseetha@brocade.com |
e167f1d901b3a0f05c0bec72f14e8051a336b548 | 7bdbac897e5180915d925acc7e14414bc02e3c5a | /Zhaoping/computeCrowdingCrossCorr.py | 6aaeaa5dc1cf3662ebd926839b60c2869b521207 | [] | no_license | adriendoerig/beyond-boumas-window-code | 8c7dc16b8cfc5645b8f8e3e8fe44f5ac05b681bc | 3375a61a76925862c964cacf1cb861b66c5a7416 | refs/heads/master | 2021-06-28T00:24:15.265732 | 2019-04-27T15:44:21 | 2019-04-27T15:44:21 | 126,459,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,414 | py | import numpy as np
from scipy import signal
import os
from readAndCropJPG import readAndCropJPG
import matplotlib.pyplot as plt
from makeHumanData import makeHumanData
# choose what you want to plot ; can be ['circles', ...]
for condition in ['circles', 'gestalts', 'hexagons', 'irreg1', 'irreg2', 'malania', 'octagons'... | [
"doerig@intranet.epfl.ch"
] | doerig@intranet.epfl.ch |
c40619572967c0e761432aa57aa5d7a10d0ee58d | 21243b5091d7ed6a47c4d685bc1bf1c01748d392 | /backend/controllers/user.py | 80fb0b5addb9e9add60fa4ded3eb2d8f48dff662 | [] | no_license | Abdeljelil/restful_api | 1a6ff51d2b3f647fcbb263c21f6535591c6062e6 | fe98a84d54e9b750897f7f43a19a130d7755bcd1 | refs/heads/master | 2021-01-20T17:10:00.558393 | 2016-08-21T16:46:49 | 2016-08-21T16:46:49 | 64,055,870 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | from backend.controllers.base import ControllerBase
from backend.models.user import UserModel
class UserController(ControllerBase):
model = UserModel
primary_keys = ["name"]
| [
"abdeljelil.mohamed@gmail.com"
] | abdeljelil.mohamed@gmail.com |
c76fd2abb0335f2285ebe8ce9d24f83e5316523c | 77a1a0e25a4e20422cca70edb4bde066f9fed901 | /flavonoids/experiment_variables.py | 9510e30f9eec657718e3c06b54edbe8708468d7b | [] | no_license | jen-fong/flavonoids | 47b281dd833f6858029635c89404f5792362ffbd | 2b1036518f015b18ec90aeaaf392f039f20ed524 | refs/heads/master | 2021-01-01T06:23:36.871707 | 2017-09-05T11:28:42 | 2017-09-05T11:28:42 | 97,418,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,738 | py | import graph
def get_header(wavelength='', flavanoid=''):
if wavelength == '570':
return ['wavelength',
'buffer control',
'buffer experiment',
'liposomes control',
'liposomes + {}'.format(flavanoid),
'cyt c control',
... | [
"jennyfong1015@gmail.com"
] | jennyfong1015@gmail.com |
461617ca9b6d8b4f0dd1e75aa79e23d745ea150f | 5c9d78fd84ee1156b4c2603b3e4f142e26b4734e | /setup.py | f2ca293da148f7b8dd6d2fba2b5e864d8dba2eb9 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | handloomweaver/gevent-zeromq | dfc1775d66eda73458d1105b29b6e5d29e19e6bf | 37aae89314888da01c2d39c7247a6392cb623aaa | refs/heads/master | 2020-04-05T23:44:13.657099 | 2011-06-09T16:18:19 | 2011-06-09T16:18:19 | 1,929,945 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,583 | py | import os
import sys
from distutils.core import Command, setup
from distutils.command.build_ext import build_ext
from traceback import print_exc
cython_available = False
try:
from Cython.Distutils import build_ext
from Cython.Distutils.extension import Extension
cython_available = True
except ImportError,... | [
"travis.cline@gmail.com"
] | travis.cline@gmail.com |
a571417c07c90468e66f3fe061b4ef73200b1501 | efd1886a56cfb95114d2953cd2349b5bd408ad02 | /python/django/mysite/polls/migrations/0001_initial.py | b4a17405fa456f71e267ed140976f3c74bd51f36 | [] | no_license | sesn/rnd | 3b0a5fb46846f2dcd27fb136352cf1efa5fea1c7 | 2c431f989905f09c1979247db3b476299e0c2040 | refs/heads/master | 2020-06-19T08:37:16.389536 | 2016-12-14T06:55:04 | 2016-12-14T06:55:04 | 68,186,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,230 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-11-01 07:06
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Crea... | [
"sesankar11@gmail.com"
] | sesankar11@gmail.com |
571263cd2d185dd5d88b845fbe58adeb9cadc30f | 9f32fe89400fcc0714231406d5298ac579a1d30a | /middleware.py | d8eff803e10fb4a3765ee85ffb6c410f0a739b0a | [
"BSD-2-Clause"
] | permissive | wd5/timemanager | 4fda280666f236898c5c964e5c00baf139a56145 | accfe5d945ad6023a197ac0fdf0f4bd880aa64eb | refs/heads/master | 2021-01-18T18:18:26.705742 | 2012-07-24T13:27:32 | 2012-07-24T13:27:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | from django.conf import settings
from django.http import HttpResponse
from django.shortcuts import get_object_or_404, render_to_response
from django.template import RequestContext
def index(request):
return render_to_response('html/index.html',
{},
conte... | [
"alex@alex.(none)"
] | alex@alex.(none) |
a1ffe5b6cb5b995928f1848d75f52f9929ff2e74 | f17f1cc3ea5c3f9477ba1bf52b787ddab3b8fb53 | /src/rest/serialisers/__init__.py | f9cbba5bdf9174b521b97791b692094a322309e2 | [] | no_license | kenigteh/flexit | 193c041d7284172b484bf301b0bb49377a66a7dc | df925f081f7d650146d9a95409f3b2a65a179091 | refs/heads/master | 2022-12-13T12:20:23.260746 | 2019-09-22T07:14:59 | 2019-09-22T07:14:59 | 210,032,342 | 0 | 0 | null | 2022-04-22T22:24:01 | 2019-09-21T18:10:26 | Python | UTF-8 | Python | false | false | 149 | py | from .bonus_serialiser import BonusSerializer
from .user_serializer import UserSerializer
__all__ = [
'BonusSerializer',
'UserSerializer',
] | [
"artemon1002@gmail.com"
] | artemon1002@gmail.com |
aaedf01fbb66858f490511f4ed6d16ac4528e6ba | 4ef03e96ff3fd7a041f110858364ac14705ec66a | /lab_3/src/region.py | 6150a5098f04637d7a1bdc125a78818c9ab99d02 | [] | no_license | leins275/fem-labs | 73599cb92d79da2e1391c5bf6c15e720dd714ea0 | 9b19cb9c91816e708780e960aec9c7944c860907 | refs/heads/master | 2022-11-26T04:40:56.666159 | 2020-05-02T09:20:57 | 2020-05-02T09:20:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 988 | py | from abc import ABC, abstractmethod
import matplotlib.pyplot as plt
import matplotlib.tri as tri
import numpy as np
class Region(ABC):
triangles = []
x_coords = []
y_coords = []
shape = []
def __init__(self, shape):
self.shape = shape
def triangulate(self, n):
self._flatten(n... | [
"leins275@gmail.com"
] | leins275@gmail.com |
b96ac1eb8024992f0b224485416d49af4bfde378 | 8da91c26d423bacbeee1163ac7e969904c7e4338 | /pyvisdk/do/host_virtual_nic_spec.py | c946f61307dcc38838e49156a3cc38c9e730a3f0 | [] | no_license | pexip/os-python-infi-pyvisdk | 5d8f3a3858cdd61fb76485574e74ae525cdc7e25 | 1aadea0afbc306d09f6ecb9af0e683dbbf961d20 | refs/heads/master | 2023-08-28T02:40:28.789786 | 2020-07-16T04:00:53 | 2020-07-16T04:00:53 | 10,032,240 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,173 | py |
import logging
from pyvisdk.exceptions import InvalidArgumentError
########################################
# Automatically generated, do not edit.
########################################
log = logging.getLogger(__name__)
def HostVirtualNicSpec(vim, *args, **kwargs):
'''This data object type describes the Virt... | [
"jmb@pexip.com"
] | jmb@pexip.com |
d76e6f3737bdee2b53555ac7828bf8da82c92e22 | 672bd6eda56beea67386a14dcf4e2909f6dd7bfd | /roman/Roman_num_test.py | 05ca5f4427337568a23756d023f3c8157f87ccbe | [] | no_license | Victorla/Thursday-Katas | 681f193395c79a8f1348794d887f4fe535fab413 | c041fdd1c2e1b3a9b531e08573335684d17859c8 | refs/heads/master | 2020-04-21T20:07:26.538766 | 2019-04-12T06:12:21 | 2019-04-12T06:12:21 | 169,831,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | import unittest
from NumberToRoman import numbertoRoman
from ValidateDate import validate
class RomanTests(unittest.TestCase):
def test_1 (self):
self.assertEqual(numbertoRoman(1), "I")
def test_50 (self):
self.assertEqual(numbertoRoman(50), "L")
def test_1234 (self):
self.assert... | [
"noreply@github.com"
] | noreply@github.com |
e041bdce669ae3735ff6776de4fddce2f3964a29 | bc8a5cea5981d58ddc155ac072168af399f87c1d | /utils.py | aab18df44fd2730e5088b3abd80c3531efb9682f | [] | no_license | luoqingyu/OCR | 1f31baca23547bf4650689e3947ff75fad207fbc | dadc98246ff158ce3945d77215cc978240aedd5f | refs/heads/master | 2021-05-09T23:10:48.306939 | 2018-01-24T15:01:24 | 2018-01-24T15:01:24 | 118,775,702 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,835 | py | # -*- coding: UTF-8 -*-
import os
import numpy as np
import tensorflow as tf
from skimage import io
from skimage import transform
maxPrintLen = 100
tf.app.flags.DEFINE_string('checkpoint_dir', './checkpoint/lstm_3', 'the checkpoint dir')
tf.app.flags.DEFINE_integer('rnn_layers', 3 ,'number of rnn layers')
tf.app.... | [
"noreply@github.com"
] | noreply@github.com |
277b48d1b51412c165a2af29f6a16408fff1b737 | 8de1c1d8d2a6347bd684fd112bd700a7af2a3a65 | /manage.py | be643c694443da0cb0008d94e55b5dc53e624e58 | [] | no_license | brdhunga/Nepal-Crowd-Funding | 0f18aaadedae9303ae363ecb126274679d55e092 | 674af5adba72d72a617b56e4e1aafc91db06330f | refs/heads/master | 2021-01-11T14:23:55.519470 | 2017-02-11T18:34:32 | 2017-02-11T18:34:32 | 81,372,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | #!/usr/bin/env python
from __future__ import absolute_import, unicode_literals
import os
import sys
import environ
env = environ.Env()
environ.Env.read_env()
try:
DJANGO_SETTINGS_MODULE = env('DJANGO_SETTINGS_MODULE')
except KeyError:
print("****\n" * 3)
print("Warning !!!, make sure to change settings i... | [
"brdhunga@gmail.com"
] | brdhunga@gmail.com |
af60566d04eed5c59d3aae368d54e4d705f54aab | b3045a883c3726f4162e9e618054e037ba04ac2c | /neural network/backward_propagation.py | 19f46b4928414d1bc2d3c2dae348fe8468d78674 | [] | no_license | Wakingupdream/pytorch_learn | 6c0c22bf0e9d304fb4e42fff32f2a39c50bc5106 | bbfd8865c482decbf1ad54bd352608ca0efe5a57 | refs/heads/master | 2023-04-06T23:18:41.917772 | 2021-04-21T08:22:05 | 2021-04-21T08:22:05 | 355,242,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | # -*- coding: utf-8 -*-
# !/usr/bin/env python
import torch
data_x = [1, 2, 3, 4]
data_y = [2, 4, 6, 8]
w = torch.Tensor([6])
w.requires_grad = True
def forward(x):
return x * w
def loss(x, y):
y_pre = forward(x)
return (y - y_pre) ** 2
for epoch in range(200):
for x, y in zip(data_x, data_y):... | [
"154351097@qq.com"
] | 154351097@qq.com |
7a0ea9a4ce285d53447a77d81cb4d94407b04210 | 901c663f5f1f14725c1d5542e11cba390057dd7a | /jiranapp/resident/urls.py | 9f8eef339a62781acdf3f80385401ef78552b20a | [] | no_license | TanHawYong/Group-1-Jiran | 1bf805daf9dac1dc6540f92f0e2231154e0d816a | 9783b7ef290460cfd5c6aa37900d0722296799d3 | refs/heads/master | 2023-02-09T19:13:05.822515 | 2021-01-07T09:08:06 | 2021-01-07T09:08:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,642 | py | from django.urls import path, include
from django.views.generic.base import TemplateView
from .views import *
urlpatterns = [
path(r'home', resident_home, name='resident_home'),
path(r'visitors', visitors_resident_view, name='resident_visitors'),
path(r'visitors/register', RegisterVisitorResidentView.as_vi... | [
"a.hakeem.y@gmail.com"
] | a.hakeem.y@gmail.com |
d4b95ac7eb2b29dd8d737aed9ed3f2ef6766e308 | 67c957b74e22bb191b9941cd753642516f32f27d | /name_uniq.py | bec11f03d47fcfd69317da3b4e58ddeaa4ccd673 | [] | no_license | chenchiyuan/jobeasy | a1ddc567901234b96d69658791f280bdfca43215 | 0a9cb465e1f8b4068069330b58f418890bde407b | refs/heads/master | 2016-09-05T20:58:11.679848 | 2014-04-08T07:18:27 | 2014-04-08T07:18:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,301 | py | # -*- coding: utf-8 -*-
# __author__ = chenchiyuan
# 通过POI名来判重, 必须内网跑
from __future__ import division, unicode_literals, print_function
import requests
import json
import base64
class ExcelHelper(object):
@classmethod
def write(cls, path, data, encoding="utf-8"):
import xlwt
workbook = xlwt.W... | [
"chenchiyuan03@gmail.com"
] | chenchiyuan03@gmail.com |
1f689af674e578ea6f20095df42ff3477884d73d | ee2a0b854d662368160650bdebc58e6b3b752033 | /Resolução D1/Atividade 01.py | 41672019057c4d604093eb6d3aad2b90554a598e | [] | no_license | JoaoRicardoRaiser/PythonHbsis | f9f3619b99b8cfc6b77bb79eb298eed2f8c9893f | d1743c60f0db8970fc23d8e1a30c03140a73d08f | refs/heads/master | 2020-08-03T18:44:22.225126 | 2019-10-04T20:08:32 | 2019-10-04T20:08:32 | 211,850,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,008 | py | #1. Leia uma frase digitada pelo usuário.
#2. Leia uma letra digitada pelo usuário.
#3. Informe para o usuário quantas vezes aparece na frase (passo 1) a letra (passo 2).
#4. Informe para o usuário a posição em que a letra aparece a primeira vez na frase.
#5. Informe para o usuário a posição em que a letra aparece pela... | [
"joaorraiser@gmail.com"
] | joaorraiser@gmail.com |
0c708aa7731e0845288916df910173d7240ce581 | 4560d7e3aa3be65ffaf102e780b44d6fab51cfd7 | /fastapi_pagination/bases.py | c2726bfa5e3f5b2dd7437896047d9906fa145ce4 | [
"MIT"
] | permissive | mathbeal/fastapi-pagination | 55235bcfb72feebdd0bad7e6bc7fcd3ba028e0bd | 485acf9862316d4ca58657fa6896a9469e419387 | refs/heads/main | 2023-03-17T22:45:19.649532 | 2021-03-01T08:07:59 | 2021-03-01T08:07:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 826 | py | from __future__ import annotations
from abc import ABC, abstractmethod
from typing import TYPE_CHECKING, Generic, Sequence, Type, TypeVar
from pydantic.generics import GenericModel
from typing_extensions import Protocol
if TYPE_CHECKING:
from .params import LimitOffsetPaginationParams # pragma no cover
T = Typ... | [
"1998uriyyo@gmail.com"
] | 1998uriyyo@gmail.com |
f46c0d42a1b014a532d6d37256150393003385ca | ea543687f8d740d4a228728d5b12f29a23d07f28 | /main.py | ea44487a83f2d82f249612c0b8721474847424c2 | [] | no_license | markoc1120/Stock_Trading_Alert | 88548cebe2e4511d1866a7423b046dd2f1b20186 | 7df149e425e1fd2c841a1d9400b11ba627d49a68 | refs/heads/master | 2023-08-14T00:29:22.898014 | 2021-09-18T17:20:07 | 2021-09-18T17:20:07 | 402,707,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,828 | py | import requests
import datetime as dt
import os
from twilio.rest import Client
STOCK = 'EDIT'
COMPANY_NAME = 'Editas Medicine'
TWILIO_ACCOUNT_SID = os.environ.get('TWILIO_ACCOUNT_SID')
TWILIO_AUTH = os.environ.get('TWILIO_AUTH')
client = Client(TWILIO_ACCOUNT_SID, TWILIO_AUTH)
NEWS_API_KEY = os.environ.get('NEWS_API_K... | [
"markoc1120@gmail.com"
] | markoc1120@gmail.com |
5ab9f533edd3366b5f611708dc5b6eb8004b0626 | 7bededcada9271d92f34da6dae7088f3faf61c02 | /pypureclient/flashblade/FB_2_3/models/bucket_s3_specific_performance.py | eb1e8397e06d6a677cb0d00173e040eaf24a5570 | [
"BSD-2-Clause"
] | permissive | PureStorage-OpenConnect/py-pure-client | a5348c6a153f8c809d6e3cf734d95d6946c5f659 | 7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e | refs/heads/master | 2023-09-04T10:59:03.009972 | 2023-08-25T07:40:41 | 2023-08-25T07:40:41 | 160,391,444 | 18 | 29 | BSD-2-Clause | 2023-09-08T09:08:30 | 2018-12-04T17:02:51 | Python | UTF-8 | Python | false | false | 9,447 | py | # coding: utf-8
"""
FlashBlade REST API
A lightweight client for FlashBlade REST API 2.3, developed by Pure Storage, Inc. (http://www.purestorage.com/).
OpenAPI spec version: 2.3
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
import typ... | [
"ashahid@purestorage.com"
] | ashahid@purestorage.com |
81275d22f206c3038bdae232f2bba33ef5bf0d0f | d9b223bf8a03c69d4ca8bc3380136ced00dfabc2 | /ising/single/single_ising.py | 943b6f7914c9d0d08810306b0bca4383b09b7919 | [] | no_license | xikasan/quantum | d1abc9d42220319487919948e1e73dcc6d572ace | 8bb874bb6fa4095abc69913738aecd3cb5879a2a | refs/heads/master | 2020-06-03T17:54:53.956127 | 2019-06-13T10:47:16 | 2019-06-13T10:47:16 | 191,673,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,040 | py | # coding: utf-8
import numpy as np
from absl import app, flags
FL = flags.FLAGS
flags.DEFINE_float("magnetic_field", 1., "Magnetic field [T]")
flags.DEFINE_float("temp", 10, "Temperature [K]")
flags.DEFINE_integer("iteration", 300, "")
kB = 1.38064852e-23
def entry(_):
sigma = np.random.randint(2) * 2 - 1
... | [
"xika0907@gmail.com"
] | xika0907@gmail.com |
09c281547bab37969802ef1d51bf8015310e0e23 | 66c40b180e7ad5b10b49d1159dc4a6d8e53131d7 | /code/record/code_record/middleware.py | 3edf01026ef9a29b9bc3bb841dbe7f8c66503bbd | [] | no_license | risent/little_project | 6b2ebeb4ae380fec554b2684792ef7e4fd607ecb | 74792d57d680e343ab4aab7b41dd27fd38a4ef01 | refs/heads/master | 2020-08-14T03:01:10.085798 | 2019-10-14T05:55:58 | 2019-10-14T05:55:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | from django.utils.deprecation import MiddlewareMixin
class CorsMiddleware(MiddlewareMixin):
def process_response(self, request, response):
response["Access-Control-Allow-Origin"] = "*"
response["Access-Control-Allow-Headers"] = "Content-Type,"
response["Access-Control-Allow-Methods"] = "POS... | [
"690412124@qq.com"
] | 690412124@qq.com |
d7d8fac1b15945baf35ea16116071791e9493324 | 62a5b12c4d8d90aa1565d88b845c09686070997f | /models/model_derived.py | 0e587db696dac3c4b0c0264692d59e3dd51bd62c | [
"Apache-2.0"
] | permissive | mileswyn/med_seg_nas | 2d3c1f054e7f414e19087cc141d230671dcbc987 | eb52c0f4a40e3ed3a3fed0b3b5a7fb96365cd920 | refs/heads/master | 2023-07-16T06:26:32.043761 | 2021-09-06T08:04:30 | 2021-09-06T08:04:30 | 403,521,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,288 | py | import math
import torch
import torch.nn as nn
import torch.nn.functional as F
from .operations import OPS
from tools.utils import parse_net_config
class Block(nn.Module):
def __init__(self, in_ch, block_ch, head_op, stack_ops, stride):
super(Block, self).__init__()
self.head_layer ... | [
"mileswyn@163.com"
] | mileswyn@163.com |
b4042d7908987a6e57c8771fe67d0261db53c838 | c9d1acce461994f4ec233607a7f53c798a0e8344 | /srnn_pfc/lmu.py | 9d55f26b061f2c80a3b5dd9e563b0c4cac0e43fd | [
"MIT"
] | permissive | tanvirarafin/grill-srnn-pfc | 213cde8a6860c046d9aab33f4645b0ff56a13495 | d8532c13a144bf5bf0f03d27d7deda9fd0f10017 | refs/heads/master | 2022-12-12T19:59:41.626696 | 2020-08-28T01:20:33 | 2020-08-28T01:20:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,289 | py | # AUTOGENERATED! DO NOT EDIT! File to edit: notebooks/04_lmu_dms.ipynb (unless otherwise specified).
__all__ = ['LDN', 'make_ldn_B_A', 'make_lmu_dms']
# Cell
import numpy as np
import nengo
import scipy.linalg
class LDN(nengo.Process):
def __init__(self, theta, q, size_in=1):
self.q = q # n... | [
"chadwick.boulay@gmail.com"
] | chadwick.boulay@gmail.com |
d9af4923de594b2e0bb4ec24d659486c75c731d4 | da445582081de8ec8b29826ec746fbfdc9918ba2 | /monzo/bin/jupyter-kernel | c807ed75a20b808a93bfae425e623accd4bc086b | [] | no_license | sunnyMiglani/MonzoDataVis | 6c16097a3f13488d562bb4eeb3e94711a48454b7 | 7a5449f13014b4593fdbb5ae906cb8a87678779f | refs/heads/master | 2020-03-27T07:14:45.793902 | 2018-08-31T23:16:37 | 2018-08-31T23:16:37 | 146,168,907 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | #!/home/sunny/Documents/my_projects/monzoDataViz/monzo/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from jupyter_client.kernelapp import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"sm15504@my.bristol.ac.uk"
] | sm15504@my.bristol.ac.uk | |
a790c6943386786aae833472be8053839a916284 | 9bf9b105722427dc58413b027b866cfccd85fb80 | /strava_api_v3/models/detailed_gear.py | c982c2e1fc50076624cde8c312a34403ab92fd11 | [] | no_license | cagnulein/strava-api-v3.1 | db68f34062ea4d1dcb2cbad1cf8714643e61affd | 8c7cb192d4bf92f67a1117aac2901ebc5067b387 | refs/heads/master | 2020-06-23T08:46:54.231901 | 2018-04-15T18:30:44 | 2018-04-15T18:30:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,368 | py | # coding: utf-8
"""
Strava API v3
Strava API # noqa: E501
OpenAPI spec version: 3.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
from strava_api_v3.models.summary_gear import SummaryGear # noqa: F401,E501
class De... | [
"sergeis@zillowgroup.com"
] | sergeis@zillowgroup.com |
7a37f9de88fe68db01df683493e45dc8d159e3ff | ee80bcdf19afed23d51b39a17590abe3eb521bfa | /practical04/q01_sum_series1.py | ac9ccf430ec4d6e3818a74634e9d4f810e7a7c2e | [] | no_license | elijahsk/cpy5python | ff23449cbb843f106efd57acecfaec0594749874 | 41b089a93c959753e672fa56fd4ddec64d796ea6 | refs/heads/master | 2020-05-03T19:06:28.812281 | 2013-03-01T01:50:14 | 2013-03-01T01:50:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | # Name: q01_sum_series1.py
# Author: Song Kai
# Description: Compute the series using recursion
# Created: 20130215
# Last Modified: 20130215
# check whether the string can be converted into a number
def check(str):
if str.isdigit():
return True
else:
print("Please enter a proper number!")
return ... | [
"song.kai@dhs.sg"
] | song.kai@dhs.sg |
278b071490c4e17a33f2d92ad9f1d0dc7b72e18b | d027378ad1adab4794d61227f5469495c639abfe | /pysched_lightning/__init__.py | 5abe49ad11a8325a104948896914341dcf8efc77 | [
"MIT"
] | permissive | euxintius/PySched-Lightning | 764ff0b11ab99ef67396efdcbbea69fb78477fdf | 161bbca14b9f94697526560ca8738d03fa9f7753 | refs/heads/main | 2023-03-26T12:39:22.956311 | 2020-12-15T06:56:48 | 2020-12-15T06:56:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from .task import task
from .executor import ThreadPoolExecutor, ProcessPoolExecutor
from .scheduler import BackgroundScheduler as Scheduler
__all__ = [task, ThreadPoolExecutor, ProcessPoolExecutor, Scheduler]
| [
"yizhang.dev@gmail.com"
] | yizhang.dev@gmail.com |
5e6ea555417a42668ecb38cf31dd4a8f1d228bb1 | 36ab589a300490d8ded287c6baa224b9cbea2d32 | /components/lab-mlflow-manager/lab-mlflow-server/mlflow-mllab-plugin/setup.py | be98fc3dde9b23dc6a25e053de10f9bb48c87a6b | [
"Apache-2.0"
] | permissive | SAP/machine-learning-lab | 06894f786bd98a18b46b3c9f317424dc33efc97c | eb701e5c6d8d1fb4428b0ad1ea6195601758fa97 | refs/heads/main | 2023-08-24T01:54:39.691617 | 2023-03-06T21:10:03 | 2023-03-06T21:10:03 | 290,998,762 | 64 | 23 | Apache-2.0 | 2023-09-11T01:21:01 | 2020-08-28T08:53:12 | JavaScript | UTF-8 | Python | false | false | 790 | py | from setuptools import setup, find_packages
setup(
name="ml_lab_plugin",
version="0.0.1",
description="Plugin for ML Lab's ML Flow component",
packages=find_packages(),
# Require MLflow as a dependency of the plugin, so that plugin users can simply install
# the plugin & then immediately use i... | [
"jan.kielmann@sap.com"
] | jan.kielmann@sap.com |
b7194e22244e085f918f343ff79c8797fc32d7a6 | 8c6dc1f54fd62c6dd6d0de12183210cd6fbd9ce6 | /WebMonitorProject/WebMonitor/migrations/0020_device_nat_ipaddress.py | 1ebb8276e0a66fb8497c5bbba581ed4d27f7a485 | [] | no_license | s16770/WebMonitorProject | 416e42f64985097a261e4d12fa4d858018d2ad23 | ec3a4b1fec0ea665385e5dd4e081d4cbf5a15c95 | refs/heads/master | 2023-06-15T10:56:31.146513 | 2021-07-14T17:43:07 | 2021-07-14T17:43:07 | 319,090,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | # Generated by Django 2.2.17 on 2021-03-27 20:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('WebMonitor', '0019_auto_20210327_1803'),
]
operations = [
migrations.AddField(
model_name='device',
name='nat_ipadd... | [
"s16770@pjwstk.edu.pl"
] | s16770@pjwstk.edu.pl |
1dd98be53720547782fa00b63046021c5eb2601d | fd592591734b71e8806545cb7703448ae60b6ebb | /pythonclubproject/club/models.py | 8f1da1f715bad523cb0e86534506d8f0c1f23efc | [] | no_license | austenwillis/pythonclub | 8331c9b839cb85c1b4aa254e397d8c23c24ea8a9 | 11c8f93e3058e368dbebbcf5a42f4b5ee96b9819 | refs/heads/master | 2020-04-22T18:14:41.110369 | 2019-03-04T19:41:58 | 2019-03-04T19:41:58 | 164,479,615 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,549 | py | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
#product type, product, review
class Meeting(models.Model):
meetingtitle=models.CharField(max_length=255)
meetingdate=models.DateField()
meetingtime=models.TimeField()
location=models.CharField(max_lengt... | [
"noreply@github.com"
] | noreply@github.com |
a0746e96adca3bf821ea33a0f4cfe73c42d4755e | ae73e65b02fea2d6364b84970a8aa82f83402285 | /utils/data_loader.py | ace87b5cf9531211f95138fea1ad20eddf188570 | [] | no_license | JeiKeiLim/moclaphar | 6509122be8218566a48a74dde060e7f98991a73d | 86d044d01be009a3c2ae096078f755d41dcfde20 | refs/heads/master | 2022-11-06T06:25:52.459397 | 2020-07-02T09:01:53 | 2020-07-02T09:01:53 | 261,724,170 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,407 | py | import scipy.io as sio
import numpy as np
import pandas as pd
def read_mat_file(path):
mat = sio.loadmat(path)
if 'version' in mat.keys() and 'python' in mat['version']:
is_from_python = True
else:
is_from_python = False
# Read csv file data START
if is_from_python:
f... | [
"lim.jeikei@gmail.com"
] | lim.jeikei@gmail.com |
29f89be27029aebc1b5e3b25b5f07fc2d21f16d7 | 41c605bf3a002a757cb2344cff526d7a7ae56ea9 | /plotly/graph_objs/cone/hoverlabel/__init__.py | b9d86aa282e915c730ed36932a930d79960abee1 | [
"MIT"
] | permissive | Jonathan-MW/plotly.py | 9674b90b5de11fd9089e6afefd04b57bc4587829 | 7528c00772f44dee24c0df7e15d70a4852f171a8 | refs/heads/master | 2020-05-30T06:04:13.621478 | 2019-05-31T10:34:15 | 2019-05-31T10:34:15 | 189,571,988 | 2 | 0 | MIT | 2019-05-31T09:59:53 | 2019-05-31T09:59:53 | null | UTF-8 | Python | false | false | 10,981 | py |
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Font(_BaseTraceHierarchyType):
# color
# -----
@property
def color(self):
"""
The 'color' property is a color and may be specified as:
- A hex string (e.g. '#ff000... | [
"noreply@github.com"
] | noreply@github.com |
8e5bf3a814fa1530e368d5afe3b465dca7aa000a | 63b35df94cc12d944c69972054c1f9244c8add0b | /calculate_ancestry_proportions_ibd.py | ef525db850fd4df548c15d00b5d5494e7a4405a6 | [] | no_license | tsani/matchmaker | 359af9976b7a1a0e9d3476b81b28094949ca1b8c | bb82b57da4a3d2ffd0d6857422971bd3e4dc1ec0 | refs/heads/master | 2020-12-31T02:32:23.752929 | 2014-10-23T19:12:49 | 2014-10-23T19:12:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,442 | py | #!/usr/bin/env python
from __future__ import print_function
import sys
from sys import argv as args
from itertools import imap
import jerrington_tools as jt
import match
import bed
import ibd
import dataset_utils
def show_usage():
errprint = jt.supply(print, {"file":sys.stderr})
map(errprint, [
"ca... | [
"jacob.errington@mail.mcgill.ca"
] | jacob.errington@mail.mcgill.ca |
18abe9a75feddfe5cfeaefcad20d04c7c31c8ccf | 12c09fedb1f39f0787b1f0dd0081c54f169d0d65 | /代码/retinaface.py | 947a4b6b62729ab0219c98f8f1bcbb6ff552d366 | [] | no_license | kaixinElla/IPv6 | 2067daafd4bd372deaf329acaed7742d5dd836f3 | a668df9727aee4ffb1e0c517a792f64a513e35d5 | refs/heads/main | 2023-04-07T23:17:45.249061 | 2021-04-02T08:12:32 | 2021-04-02T08:12:32 | 353,949,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,683 | py | import cv2
import numpy as np
import colorsys
import os
import torch
import torch.nn as nn
import torch.backends.cudnn as cudnn
from PIL import Image, ImageFont, ImageDraw
from torch.autograd import Variable
from nets.retinaface import RetinaFace
from utils.config import cfg_mnet,cfg_re50
from utils.anchors import Anch... | [
"18336921525@163.com"
] | 18336921525@163.com |
e13e2556dedb7c1773879ffee1dc4cff604bbbc9 | 7bc03a0183e9a0b4100034571aa1376dc3612a03 | /homework/code/testcases/apps.py | a0d5878bd915b6fa21cbd69091395099db03f68a | [] | no_license | TieZhuNo1/lemon_code | a2a8f4297337c8b011ea1bcca184de5e1faba6cf | a84d8fcc79257b2c07c3da1d6f989ddc8eaa0260 | refs/heads/master | 2023-09-05T03:31:05.535840 | 2021-11-03T11:45:01 | 2021-11-03T11:45:01 | 393,963,830 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | from django.apps import AppConfig
class TestcasesConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'testcases'
| [
"282777922@qq.com"
] | 282777922@qq.com |
c5c94fa46c05c75e974cdaadfde5af4d9a9e17ed | 18e7f06740003b83c7377809ea3510e317bf58d8 | /spider/spider_test.py | eeddd6bf931ae08d2bb251547132028d71bc8fa8 | [] | no_license | supertyper/apt_spider | 901733198d9546a37724ca97fba7849c555b0e54 | 720863afc0a427060f773db85f040a4b15fb4fbd | refs/heads/master | 2021-04-11T04:52:55.150596 | 2020-03-21T14:33:40 | 2020-03-21T14:33:40 | 248,993,653 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
# Power by daMao
from core.crawler import CrawlerBase
class SpiderBase(CrawlerBase):
desc = "red_drip7"
auth = "red_drip7"
thread = 1
def get_url_list(self):
print("get_url_list")
return [True]
def get_info(self, apt_info):
... | [
"zhaxf@knownsec.com"
] | zhaxf@knownsec.com |
da8afc017b0aba45f4f9adc4fdb2d96959157844 | 87fed71620800d3d20217b15cbf71f4352a20c00 | /scheduler.py | 8d19c66e97e2a947f1ccd7eec0b193889e0aba4c | [] | no_license | jK1993saS/hello-world | 9226b8349e96b3dfbd43e65a8fdd0ea52c5da472 | 708f0ca7c338218f456497473d7ffd87e134c63e | refs/heads/master | 2022-04-25T20:22:43.549529 | 2020-04-26T15:25:38 | 2020-04-26T15:25:38 | 257,523,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | import schedule
import time
def job():
print("I'm working...")
schedule.every().day.at("15:18").do(job)
while True:
schedule.run_pending()
time.sleep(1)
| [
"noreply@github.com"
] | noreply@github.com |
d36bbdba4d86a8634ff9481655aa289e125af4a7 | 1e013dc5f0de0f61e27f2867557803a01c01f4da | /Language/python/module/shutit/login_server.py | c64484bac2ae2c39af84814e4875ba008058b876 | [] | no_license | chengyi818/kata | a2941ce8675c6e7a47169a0eae4c757d3f6f5bf9 | a7cb7ad499037bcc168aaa0eaba857b33c04ef14 | refs/heads/master | 2023-04-10T18:39:09.518433 | 2023-01-08T15:22:12 | 2023-01-08T15:22:12 | 53,040,540 | 1 | 0 | null | 2023-03-25T00:46:51 | 2016-03-03T10:06:58 | C++ | UTF-8 | Python | false | false | 314 | py | #!/usr/bin/env python3
# Author: ChengYi
# Mail: chengyi818@foxmail.cn
# created time: Fri 30 Jun 2017 09:45:45 AM CST
import shutit
session = shutit.create_session('bash')
session.login('ssh you@example.com', user='you',
password="password")
session.send('hostname', echo=True)
session.logout()
| [
"chengyi818@foxmail.com"
] | chengyi818@foxmail.com |
8aac425c473f78bdd1e3a956e3e20aea659288ae | e17e40dbb6ed8caaac5c23de29071b403637f5ae | /transformers_keras/tokenizers/space_tokenizer_test.py | d14ad108c617d1d66aa0f29a709712be005d2ca3 | [
"Apache-2.0"
] | permissive | Linessiex/transformers-keras | cb739075c8daab39d52dc6cd6bafe5e45f8259be | 0bb576db356f575390815dc64840b78b8ecf6227 | refs/heads/master | 2020-11-25T05:58:09.448200 | 2019-09-23T09:13:59 | 2019-09-23T09:13:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,893 | py | import os
import unittest
import tensorflow as tf
from transformers_keras.tokenizers.space_tokenizer import SpaceTokenizer
class SpaceTokenizerTest(unittest.TestCase):
def buildTokenizer(self):
tokenizer = SpaceTokenizer()
corpus = ['train.tgt.txt']
corpus = [os.path.join('testdata', f)... | [
"zhouyang.luo@gmail.com"
] | zhouyang.luo@gmail.com |
bcb1019bc6347e5689ac3c01eb822350218c7645 | 37914b8df9fa68a5543e774ef86626b0f07f8d9e | /Exercícios/ex093.py | d90038848fcad19480f8ba4161cb543b4da915af | [
"MIT"
] | permissive | JefterV/Cursoemvideo.py | ee12d3c12483481bbc3b8420339e8cb37d310365 | e65ac53a4e38793be3039d360e7127e1c5d51030 | refs/heads/main | 2023-01-11T06:47:25.881438 | 2020-11-08T20:05:53 | 2020-11-08T20:05:53 | 310,946,910 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | jogador = {}
partidas = []
total = 0
jogador['nome'] = str(input('Nome: '))
tot_partidas = int(input('Total de partidas: '))
for p in range(0, tot_partidas):
num = int(input(f'Quantos gols ele fez na {p}ª partida: '))
partidas.append(num)
total = num + total
jogador['gols'] = partidas[:]
print('#=' * 2... | [
"jeftergabrielv@gmail.com"
] | jeftergabrielv@gmail.com |
4b230710f1856750e68e261ce7c5ace7bc6562c8 | 027643c9ca72efe7210bac72f62d977b842b1228 | /official/vision/beta/configs/video_classification.py | 1edbe22a74fcc0a2d75402f76e5e65c23a622758 | [
"Apache-2.0"
] | permissive | anshkumar/models | 88a60e49f9563447e7a4d3ef9d8c462d4e01d6b3 | a2f397a86995a0c6f9c30d956e21c9a63af6d3e6 | refs/heads/master | 2023-05-01T00:17:37.877511 | 2021-05-07T16:06:03 | 2021-05-07T16:06:03 | 278,812,620 | 0 | 0 | Apache-2.0 | 2021-05-04T09:56:57 | 2020-07-11T07:35:03 | null | UTF-8 | Python | false | false | 11,873 | py | # Copyright 2021 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
b897ca0df7c8ad510d86513374ffb9cf6725f01d | 150aa972f086099a34d2d021dfc5e50203a74148 | /motion_plan/scripts/obstacle_avoidance.py | 8a302012343aa35abe5f25204e4eb8a6b2f75c8c | [] | no_license | szesam/m2wr_gazebo | d184929c9f6336191a97db1ba5b43f7b3b27ee75 | b9f95721cbbfea09390b46ae7f690243c733a131 | refs/heads/main | 2023-08-08T00:51:35.590719 | 2021-09-10T03:20:53 | 2021-09-10T03:20:53 | 402,703,030 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,301 | py | #! /usr/bin/env python
import rospy
from sensor_msgs.msg import LaserScan
from geometry_msgs.msg import Twist
pub = None
def clbk_laser(msg):
'''
We need to provide a callback function
to the Subscriber defined in main,
for this purpose we have this function.
It receives laser ... | [
"esther@aidrivers.ai"
] | esther@aidrivers.ai |
f794e4c7c41fab26edd243911d68bef91f5bd946 | 02649b68ea6ec9e71681069f38c175e9eee42d70 | /Taller 6/11.py | 57608a4ca31a449ce3899c1f2d4177755e6f4f24 | [] | no_license | sgomeza13/ST0245-008 | 48fa07cebb278ba558f6b4a05583ddb9f884a7c5 | a153d01818fc6a087db07b087c21a133b9d734ce | refs/heads/master | 2023-01-11T02:29:13.118209 | 2020-11-12T16:53:52 | 2020-11-12T16:53:52 | 287,318,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | import random
def quickSort(lis):
if len(lis) <= 1:
return lis
else:
izq = []
der = []
pivot = lis[len(lis)//2]
del(lis[len(lis)//2])
for i in range(0,len(lis)):
if lis[i] > pivot:
der.append(lis[i])
else:
... | [
"noreply@github.com"
] | noreply@github.com |
aaed5dddd956086087bebbcc32cb987b50a24379 | e492ea823c81d8e3a32d45e6954a73e96873ff9c | /mosaicme/web/mosaic/urls.py | b06fa581e9c7cc1497b638a856ce091b37996ad7 | [
"MIT"
] | permissive | maxwondercorn/mosaicme | 89323aee4fc7f2755151a6d8cf455f58be3b370b | 67512a51cd18505ed7b27a0f51c3c55ea4cde350 | refs/heads/master | 2023-05-24T18:56:09.207204 | 2023-04-08T06:28:27 | 2023-04-08T06:28:27 | 235,852,214 | 0 | 0 | MIT | 2023-05-22T21:41:04 | 2020-01-23T17:50:01 | JavaScript | UTF-8 | Python | false | false | 270 | py | from django.conf.urls import patterns, url
urlpatterns = patterns(
'mosaic.views',
url(r'^mosaic/$', 'mosaic_list', name='mosaic_list'),
url(r'^mosaic/(?P<mosaic_id>.*)/$', 'mosaic_detail', name='mosaic_detail'),
url(r'^$', 'index', name='index'),
) | [
"adrian@morenomartinez.com"
] | adrian@morenomartinez.com |
15c8ccbd088ecd8f89ef6359d32e1310ca82a3e0 | f5b0adf82b07be0caa3e0c3cf3f46af062300d7b | /TsinghuaCSLT/audioEmbedded/Mission/stable/disposeWav.py | f8f46c6edf0c279e98810685ffb91001d2d6c15d | [
"MIT"
] | permissive | WoeiSheu/Miscellaneous | bc1a1540fdbf8f4fc3be4e34e3812b48abd3fe6b | 57c5ade630f1f1af2a5aae7f2541638380fc4876 | refs/heads/master | 2021-05-30T07:02:42.068028 | 2015-11-02T15:09:57 | 2015-11-02T15:09:57 | 36,537,872 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,599 | py | #!usr/bin/env python
#coding=utf-8
import wave
import matplotlib.pyplot as plt
import numpy as np
import math
import struct
def read_wave_data(file_path): #读入wav文件
#open a wave file, and return a Wave_read object
f = wave.open(file_path,"rb")
#read the wave's format infomation,and return a tuple
... | [
"xuweiiam@gmail.com"
] | xuweiiam@gmail.com |
b2adf6db2ca7a6d11111c1013ca7da34d2fe61b9 | 80ee5b3afe4934bee22d50941238869e28576d9d | /p9.py | 3e6c3c742284e3b0a4808f079aee18204f97ec91 | [] | no_license | cven714/euler | f532eb78bf2ba45fadaf4fa92b991915f0e7a605 | 7c07dad4de62b1fbca4b939ce1ea18d8404afc31 | refs/heads/master | 2020-02-26T15:59:51.284284 | 2015-01-31T17:54:53 | 2015-01-31T17:54:53 | 7,281,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | # A Pythagorean triplet is a set of three natural numbers, a < b < c,
# for which a^2 + b^2 = c^2
# For example, 32 + 42 = 9 + 16 = 25 = 52.
# There exists exactly one Pythagorean triplet for which a + b + c = 1000.
# Find the product abc.
for m in xrange(30, 1, -1):
for n in xrange(m - 1, 0, -1):
a, b, c = (m *... | [
"cven714@gmail.com"
] | cven714@gmail.com |
7d4d65d84b84a190c835e1fd6b211ffd8275a1a1 | 267c90d0cba455552bf9d7638ed0e8a8f1579294 | /common/common_util.py | b130448552f5569f59448f041412f92c7f4ac56f | [] | no_license | jjhw/semantic_affordance | 263919755b3000b7cb843961eb21f22385f5f141 | a39f03f52c85a3c51c5f1a74a6a61490a139ad8c | refs/heads/master | 2023-06-06T07:31:10.776426 | 2017-12-01T14:36:26 | 2017-12-01T14:36:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | # common utilities
import os
def make_dir(path):
if not os.path.exists(path):
os.makedirs(path)
def is_int(str):
try:
int(str)
return True
except ValueError:
return False
# THIS IS OBSOLETE. USE read_file_lines()
def remove_nl_from_string_list(list):
for i i... | [
"ywchao@umich.edu"
] | ywchao@umich.edu |
d450bb39641c30df147a18b22ca16307be529762 | 1893990ade73f4ae44df9e542e828234bcfb8def | /Super Pow (Math).py | 4248306f4b90cdc4527a62e03b3372fd7787407f | [] | no_license | YILINQ/leetcode_practice | b1318705a9050540eec8bcfdefac2cec27e95f8a | 3d2d749f050e42a3c243aeaf841be15b99e715f4 | refs/heads/master | 2023-08-26T01:18:43.359482 | 2021-10-02T15:54:14 | 2021-10-02T15:54:14 | 394,010,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | class Solution:
def superPow(self, a, b, c=1337):
"""
:type a: int
:type b: List[int]
:rtype: int
"""
str = ''
x = []
for item in b:
x.append(repr(item))
new_b = int(str.join(x))
result = 1
while(new_b != 0):
... | [
"yilin@Yilins-MBP.lan"
] | yilin@Yilins-MBP.lan |
e564ecc4fbbc90fe1f74ddf416902f8e65510058 | de265eba4074121d53295550fb901016df9f5556 | /django_service/Sample/management/commands/custom_createsuperuser.py | 8ff37a94427784c22a3759a0bb6ad61912f559d0 | [] | no_license | 1shikawa/django-service-ecs | d0ef169746c1baaf5eca3bb10d338b89969a10b8 | dca521ebbeb812f6692cb77aedd727029d22e39c | refs/heads/master | 2023-05-01T22:01:18.249844 | 2019-12-20T07:24:12 | 2019-12-20T07:24:12 | 183,669,797 | 0 | 0 | null | 2023-04-21T20:38:30 | 2019-04-26T17:33:30 | Python | UTF-8 | Python | false | false | 1,168 | py | from django.contrib.auth.management.commands import createsuperuser
from django.core.management import CommandError
class Command(createsuperuser.Command):
help = 'Create a superuser with a password non-interactively'
def add_arguments(self, parser):
super(Command, self).add_arguments(parser)
... | [
"ishikawa.toru@gmail.com"
] | ishikawa.toru@gmail.com |
f1f6b0fe271e4227d97a2e47ecb65477df259caa | ed62d855aafc2da40dbfc82214fcb5644a4d5386 | /data_analysis/run_roc.py | ee8296fc3e67ccb51b20272a03232d09ff376fb0 | [] | no_license | TimothyAhong/stest | a114fdc7ca34608901f69918f405a2a8eec4dfa4 | 9905832da42e9beef46577180c99a81dbfd7d287 | refs/heads/master | 2016-09-11T04:09:26.778031 | 2015-03-08T16:12:53 | 2015-03-08T16:12:53 | 26,821,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | __author__ = 'timothyahong'
from roc_analysis_on_formatted_data import run
from common import data_paths, analysis_paths, formatted_filename
for f in [10000, 20000, 30000, 40000, 50000, 60000, 70000, 80000, 90000, 100000]:
print("\n\nFREQUENCY: " + str(f))
[
run(data_path, formatted_filename, f)
... | [
"ahong.timothy@gmail.com"
] | ahong.timothy@gmail.com |
4ebb914c4cd0607646f94e6605538d7f8cdd6278 | bc233c24523f05708dd1e091dca817f9095e6bb5 | /bitmovin_api_sdk/notifications/__init__.py | a892dc177947a1b63dc28a0a33fdf5cc5a9ed245 | [
"MIT"
] | permissive | bitmovin/bitmovin-api-sdk-python | e3d6cf8eb8bdad62cb83ec77c0fc4950b06b9cdd | b0860c0b1be7747cf22ad060985504da625255eb | refs/heads/main | 2023-09-01T15:41:03.628720 | 2023-08-30T10:52:13 | 2023-08-30T10:52:13 | 175,209,828 | 13 | 14 | MIT | 2021-04-29T12:30:31 | 2019-03-12T12:47:18 | Python | UTF-8 | Python | false | false | 558 | py | from bitmovin_api_sdk.notifications.notifications_api import NotificationsApi
from bitmovin_api_sdk.notifications.webhooks.webhooks_api import WebhooksApi
from bitmovin_api_sdk.notifications.states.states_api import StatesApi
from bitmovin_api_sdk.notifications.emails.emails_api import EmailsApi
from bitmovin_api_sdk.n... | [
"openapi@bitmovin.com"
] | openapi@bitmovin.com |
8a496c92dcf5df3811a9fd212ad7197d45fa8c6b | fb77d1b2eff347bfd0d42eb6c51c8bbd8e12ff24 | /Transcribing DNA into RNA.py | 48a0ace6892639c07373b294e59cbac94ebe7dea | [] | no_license | ibhandal1996/Bioinformatics-in-Python-Rosland | c162c8255b194d0b98cb7ce6444b80203880e37c | 4f7b8fb1dbe15bcdbcc4a8b44c468c79301c95d7 | refs/heads/master | 2023-03-10T23:29:59.736939 | 2021-02-26T04:51:10 | 2021-02-26T04:51:10 | 337,209,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | file1 = str(open("rosalind_rna.txt", 'r').read())
file2 = ""
for i in range(len(file1)):
if file1[i] == "T":
file2 += "U"
else:
file2 += file1[i]
print(file2) | [
"ibhandal1996@gmail.com"
] | ibhandal1996@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.