blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b6e038d32f2ebf43a5f80652c1bc148a816406c5 | 83f443f454716d534eff57ef399f86aa9a267b20 | /b0_tf/02_MNIST/single-layer.py | 665423d53ddd3999165fd0df4934940dee739ac3 | [] | no_license | Gilbert-Gb-Li/Artificial-Intelligence | fef400c9e767ba7e348e1f135164da1e13c04592 | 28247627eab50613c1a5bf67f70e979a0a9eecb2 | refs/heads/master | 2021-04-23T19:46:19.556837 | 2020-04-09T08:47:42 | 2020-04-09T08:47:42 | 249,986,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,007 | py | #by cangye@hotmail.com
#引入库
from tensorflow.examples.tutorials.mnist import input_data
import tensorflow as tf
"""
手写识别
使用单层神经网络
手工实现
=======================
"""
"""1.获取数据"""
mnist = input_data.read_data_sets("data/", one_hot=True)
"""1.1 数据查看"""
# X, y = mnist.train.next_batch(100)
# X.shape: (100, 784... | [
"gb.l@foxmail.com"
] | gb.l@foxmail.com |
5a59ee4c633d4512f7ee2aef3502d002f177650a | 45de3aa97525713e3a452c18dcabe61ac9cf0877 | /src/primaires/information/commandes/newsletter/__init__.py | 08b774289f729fab4ec8623aa6c5f5506746f296 | [
"BSD-3-Clause"
] | permissive | stormi/tsunami | 95a6da188eadea3620c70f7028f32806ee2ec0d1 | bdc853229834b52b2ee8ed54a3161a1a3133d926 | refs/heads/master | 2020-12-26T04:27:13.578652 | 2015-11-17T21:32:38 | 2015-11-17T21:32:38 | 25,606,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,906 | py | # -*-coding:Utf-8 -*
# Copyright (c) 2012 LE GOFF Vincent
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# l... | [
"kredh@free.fr"
] | kredh@free.fr |
86076e584d225943b20d97d931e80a7b58500f17 | 665dc10fe2935755f207f040f2f9401a0fd32cc2 | /awacs/execute_api.py | 98bcf1c2961e93f15836c7b8edeb4eead139db1f | [
"BSD-2-Clause"
] | permissive | bwhaley/awacs | 0341a06e978e8d277640e4dd2ba59dd1f737b152 | a1cbc1ceebd5242147193a99afbb4c71b14d3326 | refs/heads/master | 2021-01-01T16:00:50.408203 | 2017-07-19T19:27:27 | 2017-07-19T19:48:57 | 97,753,441 | 0 | 0 | null | 2017-07-19T19:26:06 | 2017-07-19T19:26:06 | null | UTF-8 | Python | false | false | 667 | py | # Copyright (c) 2012-2013, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
from aws import Action as BaseAction
from aws import BaseARN
service_name = 'Amazon API Gateway'
prefix = 'execute-api'
class Action(BaseAction):
def __init__(self, action=None):
sup = supe... | [
"mark@peek.org"
] | mark@peek.org |
3c8f3dc6b3f760fb4d2fe639c8b9b648de7becfb | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/hamming/baf3defea4304f56bdc46ed8c9a09026.py | 3cc6ecaa3bf9e6a56b2ea1d4fd34a35de7c957b4 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 192 | py | def distance(seq_1, seq_2):
if len(seq_1) != len(seq_2):
return "Input Error!"
distance = 0
for i in range(len(seq_1)):
if seq_1[i] != seq_2[i]:
distance += 1
return distance
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
ffaafcde566c990d8b9a37e41eb1506f35589e90 | 657428898b882901429846a486fa173dde475981 | /api/migrations/0002_hub.py | 8a1ef01053351ad7fa6ba1dbc7361fc3c6fae139 | [
"MIT"
] | permissive | AppointmentGuru/MultiGuru | 0d67f9c4f467bf21b93fc21e5e3fd3534f980a3f | ebd0512d57dd07959d2888127ebf592578e107e0 | refs/heads/master | 2021-04-29T13:18:05.167104 | 2018-11-30T11:14:10 | 2018-11-30T11:14:10 | 121,748,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 882 | py | # Generated by Django 2.0.2 on 2018-05-09 20:13
import api.models
import django.contrib.postgres.fields
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Hu... | [
"info@38.co.za"
] | info@38.co.za |
7bf0c012c1eb2ac21cb674cab338b2f35b05534c | 82f3c228f1b913ed4f37d6ab651eb2c0a9ce7221 | /Configurations/UserConfigs/2016_AntiIso/WZConfig.py | 2c5e513606027696c5ce46c89a9a58faaf208f8e | [] | no_license | samhiggie/ReweightScheme | 7f388f639d02753e19eca30c8b0920ca6addb6e0 | b2e4449e8d77d244048047a79e7dd8df6b2e35f7 | refs/heads/master | 2020-09-11T19:35:53.094218 | 2019-11-12T22:42:32 | 2019-11-12T22:42:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,751 | py | import ROOT
from Configurations.Weights.CrossSectionWeightingModule.CrossSectionWeight import crossSectionWeight
from Configurations.Weights.MuIDIsoReweightingModule.MuIDIsoWeight import muIDIsoWeight_2016 as muIDIsoWeight
from Configurations.Weights.MuTrackingWeightModule.MuTrackingWeight import muTrackingWeight_201... | [
"aloelige@cern.ch"
] | aloelige@cern.ch |
b2eca82cc92132abe12cc6618a57e9c0874a57a8 | d6589ff7cf647af56938a9598f9e2e674c0ae6b5 | /imageaudit-20191230/alibabacloud_imageaudit20191230/models.py | a2e60a54f9bdb085447151ce495b29041c5fd55d | [
"Apache-2.0"
] | permissive | hazho/alibabacloud-python-sdk | 55028a0605b1509941269867a043f8408fa8c296 | cddd32154bb8c12e50772fec55429a9a97f3efd9 | refs/heads/master | 2023-07-01T17:51:57.893326 | 2021-08-02T08:55:22 | 2021-08-02T08:55:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,139 | py | # -*- coding: utf-8 -*-
# This file is auto-generated, don't edit it. Thanks.
from Tea.model import TeaModel
from typing import List, Dict
class ScanTextRequestTasks(TeaModel):
def __init__(
self,
content: str = None,
):
self.content = content
def validate(self):
pass
... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
ce8ce29bb6ca5770f1e6e08138960f3a9d2ecad6 | ec83991c2f0e1664e1e1e70d0d57198fd42e029a | /setup.py | 66610507ddbd01aa2de4a21efe3ec691e70aa461 | [] | no_license | miracle2k/urlnorm | f0ffab70b24c631f790ab80455862175f5ce1323 | 8f8f8bf2e531f5b649cd401949555a2dc46abbdc | refs/heads/master | 2020-12-25T00:20:24.451369 | 2013-10-20T19:19:07 | 2013-10-20T19:19:07 | 13,385,880 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 548 | py | from distutils.core import setup
# also update in urlnorm.py
version = '1.1.2'
setup(name='urlnorm',
version=version,
long_description=open("./README.txt", "r").read(),
description="Normalize a URL to a standard unicode encoding",
py_modules=['urlnorm'],
license='MIT License',
... | [
"jehiah@gmail.com"
] | jehiah@gmail.com |
2eddbead3c19460cf54da84c94df0363af06f4ea | cf6dc64173153ec73ac4f7201d1d2e14a30cfbaf | /setup.py | 2b6866c4652293bfda5769c535452443ccda0009 | [] | permissive | sarahb55/glue-wwt | 100e5988f26907c40237aa41ba4c2774845f30a1 | 304d790c3a1d19dc101f86bf9cb4d141a0486f26 | refs/heads/master | 2020-03-11T09:54:56.701551 | 2018-01-05T12:36:10 | 2018-01-05T12:36:10 | 129,926,452 | 0 | 0 | BSD-3-Clause | 2018-04-17T15:32:34 | 2018-04-17T15:32:33 | null | UTF-8 | Python | false | false | 971 | py | #!/usr/bin/env python
from __future__ import print_function
from setuptools import setup, find_packages
entry_points = """
[glue.plugins]
wwt=glue_wwt:setup
"""
with open('glue_wwt/version.py') as infile:
exec(infile.read())
with open('README.rst') as infile:
LONG_DESCRIPTION = infile.read()
install_requi... | [
"thomas.robitaille@gmail.com"
] | thomas.robitaille@gmail.com |
a087304b6ac35f2374c0a0e4d4c9740ff285ba8e | e8cc093ce857f65882e25f4bfae94a395ffc2fe5 | /PESA-BACK/remitapi/celery.py | a9783814c01b7a0ed974a49084431c6999083833 | [] | no_license | mandelashaban593/Chatting-App | f6d0f7ac3785da690f52a7c1427353956699af4c | 0e6e5d9edb0a4f0c91a40391ae5916549e87ec7b | refs/heads/master | 2021-01-22T06:01:42.649403 | 2017-03-20T08:08:55 | 2017-03-20T08:08:55 | 92,512,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | from __future__ import absolute_import
import os
from celery import Celery
from django.conf import settings
# set the default Django settings module for the 'celery' program.
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'remitapi.settings')
app = Celery('remitapi')
app.config_from_object('django.conf:settings')
# ... | [
"mandelashaban593@gmail.com"
] | mandelashaban593@gmail.com |
7bc249d9803bcc0315a27dbab6bbf3e5ce8af5f7 | ca75f7099b93d8083d5b2e9c6db2e8821e63f83b | /z2/part2/batch/jm/parser_errors_2/171755463.py | 5bb62646ec42574520d284a0358fd3bb80cc5668 | [
"MIT"
] | permissive | kozakusek/ipp-2020-testy | 210ed201eaea3c86933266bd57ee284c9fbc1b96 | 09aa008fa53d159672cc7cbf969a6b237e15a7b8 | refs/heads/master | 2022-10-04T18:55:37.875713 | 2020-06-09T21:15:37 | 2020-06-09T21:15:37 | 262,290,632 | 0 | 0 | MIT | 2020-06-09T21:15:38 | 2020-05-08T10:10:47 | C | UTF-8 | Python | false | false | 2,055 | py | from part1 import (
gamma_board,
gamma_busy_fields,
gamma_delete,
gamma_free_fields,
gamma_golden_move,
gamma_golden_possible,
gamma_move,
gamma_new,
)
"""
scenario: test_random_actions
uuid: 171755463
"""
"""
random actions, total chaos
"""
board = gamma_new(5, 2, 3, 5)
assert board is... | [
"jakub@molinski.dev"
] | jakub@molinski.dev |
fc7337a5b2bf74ec4e6c931131e336395a65855e | 1732295c141ddba5b78b414848afef03245ffae2 | /accounts/views.py | 473cb18852fcbe7522c82dfb2baf3bb21c3bc472 | [
"BSD-3-Clause"
] | permissive | avorio/dezede | 774e0c667b82b821d41e31242a21f778c7961d08 | 22a3b2168fea3bebeb00eb3180ad58b7ba12e741 | refs/heads/master | 2021-01-15T08:11:09.542965 | 2019-02-14T02:16:52 | 2019-02-14T02:16:52 | 63,002,194 | 0 | 0 | BSD-3-Clause | 2019-02-14T02:16:53 | 2016-07-10T14:20:48 | Python | UTF-8 | Python | false | false | 7,476 | py | import datetime
from django.contrib.auth import get_user_model
from django.contrib.sites.models import Site
from django.core.exceptions import PermissionDenied
from django.db import connection
from django.db.models import Count
from django.http import Http404
from django.template.loader import render_to_string
from dja... | [
"bordage.bertrand@gmail.com"
] | bordage.bertrand@gmail.com |
0ff8be3158b3ab9c855d73b08946841291a21558 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2337/60787/309774.py | 49ab4d2d3d879847ebf882dce36dcea68ee44144 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,793 | py | #二分图匹配问题
def mark_node(x,y):
"""
把(x, y)标记为x*m+y,即线性数组的索引,x,y从0开始
"""
return x*col+y
def add_edge(f,t,w):
"""
:param :from,to,weight
:return:
"""
if f not in graph:
graph[f] = []
if t not in graph:
graph[t] = []
graph[f].append([t,w,len(graph[t])])
graph[... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
2049742923e8a5f9f92aea9c79098dde6d9bee33 | a546a43f40bc1342ac4381ab582b061cc83ccdc4 | /imperial_assault_tools/scripts/third_batch.py | b0d655515d5617df5554cdbd60fda38bd4b5463d | [] | no_license | lvisintini/imperial-assault-tools | e5db68acd9bc003d480039a4f0fdd445e5f79333 | 3e73a291801af28eabe10e39264539366da5ba21 | refs/heads/master | 2021-09-13T09:16:21.288067 | 2018-04-27T17:08:57 | 2018-04-27T17:08:57 | 99,949,030 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,565 | py | import os
from assembly_line.manager import AssemblyLine
from imperial_assault_tools.sources import DataSet, SourceName, JSONCollectionSource, JSONNestedDictSource
from imperial_assault_tools.data_processing import tasks
from imperial_assault_tools.data_processing import base_task as base
from imperial_assault_tools.... | [
"lvisintini@gmail.com"
] | lvisintini@gmail.com |
f20960e9ddc5e5550ef8b4f670a9a51aac530e76 | e8ef02248600525a114c9ed9a6098e95d8007063 | /qtlab/scripts/sal/qubit3/quick_gate_scan_qubit_above.py | ac75e49c5d298fd16f6dbfbd73db4b9ab99b5f0e | [] | no_license | mgely/papyllon | ac264e202298728f6ca69d566c1fe45a9de0dc1c | 490c756da8f08c971864dcd983ea82c944bc8c85 | refs/heads/master | 2021-01-10T06:28:17.250944 | 2016-02-26T13:49:21 | 2016-02-26T13:49:21 | 46,259,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,741 | py | ################################
# DESCRIBTION
################################
#Measurement script that does single tone qubit spectroscopy using the ADwin
#as a DAC to either sweep magnetic field of gate voltage.
timing = []
################################
# DEVELOPMENT NOTES/LOG
###################... | [
"m.a.cohen@tudelft.nl"
] | m.a.cohen@tudelft.nl |
481042c3a12bbdd69009aaaa14d7621360ee1ed2 | 4b34cb97d3384473d634ee99a8bdeea1e379849f | /py--django-notes-from-template/notesapp/urls.py | 4ae0c893f4111b81b3d6dc9b02862270c3a31c88 | [] | no_license | momentum-team-4/examples | 6e69df3a6222503c44b238afbcb3a2100f38ccbe | 895f0d232667b79b9635fde9791da2e00d9da028 | refs/heads/main | 2022-12-27T21:34:29.499732 | 2020-09-29T18:09:17 | 2020-09-29T18:09:17 | 286,815,181 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,783 | py | """notesapp URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-base... | [
"william.r.jukes@gmail.com"
] | william.r.jukes@gmail.com |
9e697a27d2ab4a6f664221f22fb5481549f74c12 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02848/s121081545.py | 613ae09d90c4e367a22bb8cc314937badf93222e | [] | 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 | 188 | py | N = int(input())
s = list(input())
for i in range(len(s)):
if ord(s[i])+N-ord('A') < 26:
s[i] = chr(ord(s[i])+N)
else:
s[i] = chr(ord(s[i])+N-26)
print(''.join(s)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
47b04e2e5054cb51c70b4c525a5dcd787b096ca1 | 1554150a9720ebf35cd11c746f69169b595dca10 | /rhino-translators/ledger.py | 02d7259e1254af2da5d2cf6876c75189fbdd4f9d | [] | no_license | andrewili/shape-grammar-engine | 37a809f8cf78b133f8f1c3f9cf13a7fbbb564713 | 2859d8021442542561bdd1387deebc85e26f2d03 | refs/heads/master | 2021-01-18T22:46:51.221257 | 2016-05-31T21:15:28 | 2016-05-31T21:15:28 | 14,129,359 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,735 | py | # ledger.py
# import rhinoscriptsyntax as rs
class Ledger(object):
def __init__(self):
self.elements = []
# def __init__(self, elements_in):
# """Receives a list of elements, e.g., coords or coord index
# pairs
# self.elements is an ordered list of unique elements
# ... | [
"i@andrew.li"
] | i@andrew.li |
9b75f900f1847ef673df168686a5179f9f951b49 | bb1c30864fc963f61bbab0a71d206fbe6447fd09 | /test_autolens/integration/tests/interferometer/lens__source/lens_light_mass__source.py | 0518f8f7bedc344e241985191e5065eb4fe7d907 | [
"MIT"
] | permissive | pranath-reddy/PyAutoLens | c39c1aa413985c0a280da1b95e6cb55537f769cc | bcfb2e7b447aa24508fc648d60b6fd9b4fd852e7 | refs/heads/master | 2022-05-28T15:41:26.881648 | 2020-05-04T20:02:45 | 2020-05-04T20:02:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,220 | py | import autofit as af
import autolens as al
from test_autolens.integration.tests.interferometer import runner
test_type = "lens__source"
test_name = "lens_light_mass__source"
data_type = "lens_sie__source_smooth"
data_resolution = "sma"
def make_pipeline(
name,
phase_folders,
real_space_shape_2d=(100, 100... | [
"james.w.nightingale@durham.ac.uk"
] | james.w.nightingale@durham.ac.uk |
17a110fd839a7f1bdea2583831a8ce635987828f | d451e6acc447b3d5fed9a04b47b447df89f43ec7 | /Udemy/TimBuchalka/CompletePythonMasterclass/IfThenElseChallenge/ifChallenge.py | 965e83c3ec46f7933d39ce4f272c19e2084aee51 | [] | no_license | CaptCorpMURICA/TrainingClasses | 1a997316fa8058df80739ee0c9c2441039c33a0a | 0b07bf77e41a2b58471176338d12ce211982a021 | refs/heads/master | 2023-02-08T16:45:44.894511 | 2023-01-31T22:59:39 | 2023-01-31T22:59:39 | 229,318,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,342 | py | """
Author: CaptCorpMURICA
Project: IfThenElseChallenge
File: ifChallenge.py
Creation Date: 11/30/2017, 1:45 PM
Description: Write a small program to ask for a name and an age.
When both values have been entered, check if the person
... | [
"noreply@github.com"
] | CaptCorpMURICA.noreply@github.com |
ed3c75294b7141291c3625a28db5c66d1e34c0fc | a01fb7bb8e8738a3170083d84bc3fcfd40e7e44f | /python3/module/pyqt/layout/docker.py | 55b9ed4a91f5e7874eb2c5e42b167f8ba25eda8a | [] | no_license | jk983294/CommonScript | f07acf603611b4691b176aa4a02791ef7d4d9370 | 774bcbbae9c146f37312c771c9e867fb93a0c452 | refs/heads/master | 2023-08-21T17:50:19.036159 | 2023-08-16T00:22:03 | 2023-08-16T00:22:03 | 42,732,160 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,533 | py | import sys
from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
class DockDemo(QMainWindow):
def __init__(self):
super().__init__()
trade_widget = TradeWidget()
self.trade_docker = QDockWidget('交易窗口', self)
self.trade_docker.setWidget(trade_widget)
self.trade_docker.se... | [
"jk983294@gmail.com"
] | jk983294@gmail.com |
f16d8e6a78695c799598f99cfe231e594c9caf3a | c7c5c9a15eff6f42b78904f2fa385679ab1f4a49 | /mediserv/spiders/mediserv.py | 87e3e9cb2995ce0503b74212bca02ced71c6808a | [] | no_license | daniel-kanchev/mediserv | 469e0509e70a1e32b3c55582376178e136a21079 | 2a052e2bfe97a80226dae72e130e909d63869dad | refs/heads/main | 2023-03-23T17:32:45.072481 | 2021-03-18T08:57:43 | 2021-03-18T08:57:43 | 349,004,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,405 | py | import scrapy
from scrapy.loader import ItemLoader
from itemloaders.processors import TakeFirst
from datetime import datetime
from mediserv.items import Article
class MediservSpider(scrapy.Spider):
name = 'mediserv'
start_urls = ['https://mediserv.de/neues/']
def parse(self, response):
articles =... | [
"daniel.kanchev@adata.pro"
] | daniel.kanchev@adata.pro |
9f14602734ae8da160335707e61ab9507d1f81ce | af98a6b70ed86a1c6c3c9cd3f07b0934c5ced093 | /src/toll/testing.py | fce50fcc6827e999f67bd84a88b4cffbed862776 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"BSD-2-Clause"
] | permissive | icemac/toll | 071d97e9992c91ba46effc7f4a990cd2a6f7cd62 | edefe6fa5d1ee3b4cd4c6b57c19b1df84551c33b | refs/heads/master | 2021-01-19T13:08:34.405470 | 2020-09-01T05:34:22 | 2020-09-01T06:35:18 | 88,068,713 | 5 | 2 | BSD-2-Clause | 2020-09-01T06:35:20 | 2017-04-12T15:38:27 | Python | UTF-8 | Python | false | false | 726 | py | from .config import Command
import os.path
import pkg_resources
import re
import sys
raw_test_command = '{0.executable} setup.py -q test'.format(sys)
test_command = Command(raw_test_command)
def get_packages(*names):
"""Get relative package path.
We use paths relative to the package name to be able to test ... | [
"mh@gocept.com"
] | mh@gocept.com |
cb25306c505246fb13a2d4ff11475bb392361aa8 | 4a7ede06edbe66f9d1eb485261f94cc3251a914b | /test/pyaz/netappfiles/account/backup/__init__.py | 991988b09c3a1286d6ce9f6af9740ce4f287f8bf | [
"MIT"
] | permissive | bigdatamoore/py-az-cli | a9e924ec58f3a3067b655f242ca1b675b77fa1d5 | 54383a4ee7cc77556f6183e74e992eec95b28e01 | refs/heads/main | 2023-08-14T08:21:51.004926 | 2021-09-19T12:17:31 | 2021-09-19T12:17:31 | 360,809,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,555 | py | import json, subprocess
from .... pyaz_utils import get_cli_name, get_params
def show(resource_group, account_name, backup_name):
params = get_params(locals())
command = "az netappfiles account backup show " + params
print(command)
output = subprocess.run(command, shell=True, stdout=subprocess.PIPE... | [
"“bigdatamoore@users.noreply.github.com”"
] | “bigdatamoore@users.noreply.github.com” |
bc2b68972af7dccc27afcbd493f61393eacf74da | b92adbd59161b701be466b3dbeab34e2b2aaf488 | /.c9/metadata/environment/fb_post_learning/fb_post_v2/constants/enums.py | e28eb58c619f1dc921ff2b21fccfd9799b79ba66 | [] | no_license | R151865/cloud_9_files | 7486fede7af4db4572f1b8033990a0f07f8749e8 | a468c44e9aee4a37dea3c8c9188c6c06e91cc0c4 | refs/heads/master | 2022-11-22T10:45:39.439033 | 2020-07-23T09:31:52 | 2020-07-23T09:31:52 | 281,904,416 | 0 | 1 | null | 2022-11-20T00:47:10 | 2020-07-23T09:08:48 | Python | UTF-8 | Python | false | false | 23,504 | py | {"filter":false,"title":"enums.py","tooltip":"/fb_post_learning/fb_post_v2/constants/enums.py","undoManager":{"mark":100,"position":100,"stack":[[{"start":{"row":0,"column":0},"end":{"row":0,"column":1},"action":"insert","lines":["f"],"id":3},{"start":{"row":0,"column":1},"end":{"row":0,"column":2},"action":"insert","l... | [
"r151865@rguktrkv.ac.in"
] | r151865@rguktrkv.ac.in |
580d2ee493b9873a49a6082494f22749e7f2fed2 | cdbb5bb7cbf188f8773a3a1425c2043f0af8a423 | /Exams/Exam_16_Aug_2020_TAKE_2/project/system.py | 8d605dff6b7d644360f976a959efed3c43d4740b | [
"MIT"
] | permissive | MihailMarkovski/Python-OOP-2020 | 72ac4f150907a6fa2fb93393cfcd2f36656e7256 | f0ac610bb758c2882e452684c8d7f533fcc33fe4 | refs/heads/main | 2023-01-31T18:24:53.184269 | 2020-12-17T09:39:01 | 2020-12-17T09:39:01 | 321,456,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,306 | py | from project.hardware.heavy_hardware import HeavyHardware
from project.hardware.power_hardware import PowerHardware
from project.software.express_software import ExpressSoftware
from project.software.light_software import LightSoftware
class System:
_hardware = []
_software = []
@staticmethod
def reg... | [
"misho5071@gmail.com"
] | misho5071@gmail.com |
e8c1d097f4778bee7c2c9b08765ebe64d0fe6b56 | 267fe669684b1ae2bf639f0941cd4c8357d9fd54 | /tests/test_models.py | fd6ca1c7fb82f6f79108a1f983c922100cf50239 | [
"MIT"
] | permissive | xdtl/Catalyst-Inria-Segmentation-Example | 1a51c9c200813be7f5c04f865bf034740e8fedf4 | 118f789a9369fc4b58c56765105ef8616da3a494 | refs/heads/master | 2022-12-03T19:12:12.940813 | 2020-08-19T09:16:41 | 2020-08-19T09:16:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | import pytest
import torch
from pytorch_toolbelt.utils.torch_utils import maybe_cuda, count_parameters
from inria.models import get_model, MODEL_REGISTRY
@torch.no_grad()
@pytest.mark.parametrize("model_name", MODEL_REGISTRY.keys())
def test_models(model_name):
model = maybe_cuda(get_model(model_name, pretrained... | [
"ekhvedchenya@gmail.com"
] | ekhvedchenya@gmail.com |
d0824aa6a870610a29fbc285f00d865667bb82c9 | b004204644dd3cf9ad922a6cd5c0aab0c0e97598 | /addons_custom/izi_therapy_record/models/therapy_record.py | 060b0ddcf9202f8060def98f16e7f7ec0ce4bc31 | [] | no_license | butagreeza/korea_spa | 7a2fdd92ca73205945632ead6582ef1df424074e | 1524f87b62998eba29e491d0836714abec7059fd | refs/heads/master | 2023-04-26T09:45:51.931127 | 2021-05-17T16:45:33 | 2021-05-17T16:45:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,090 | py | # -*- coding: utf-8 -*-
from odoo import api, fields, models, SUPERUSER_ID, _
from datetime import date, datetime, timedelta
from odoo.exceptions import UserError, ValidationError, MissingError, except_orm
import time
from odoo import http
import logging
_logger = logging.getLogger(__name__)
class TherapyRecord(mode... | [
"tungpd@izisolution.vn"
] | tungpd@izisolution.vn |
6347f7e8f4b4ceea862fba318cdf04e45901bab2 | 406425b4770afa530fa1b8041407128febf74c76 | /chat/migrations/0006_conversation_name.py | 96537de4bbd878c6ee321b6d425f7e86f7845927 | [
"MIT"
] | permissive | de-hub/chatbot | 1de621340fa9f4744c36ade7b29dcb524d51bfcf | 8b5a53c7779541e3034b6cac45d5354ab5040a92 | refs/heads/master | 2023-01-12T10:07:33.677845 | 2020-08-03T08:39:50 | 2020-08-03T08:39:50 | 199,046,408 | 0 | 1 | MIT | 2023-01-04T21:55:50 | 2019-07-26T16:10:31 | Python | UTF-8 | Python | false | false | 392 | py | # Generated by Django 3.0.2 on 2020-02-10 14:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('chat', '0005_rename_fields'),
]
operations = [
migrations.AddField(
model_name='conversation',
name='name',
... | [
"mail@jochenklar.de"
] | mail@jochenklar.de |
55ebc79705b8a9a2914e07d16167d7b11511c68e | c95eb5f0e007113a5cd53dbb51f65b81b4900805 | /sterowaniePokoi/migrations/0007_sensor_outpin.py | 8bfc928ad17f3841a4f052f16e2b6ee1903e1db0 | [] | no_license | cinek810/django-rpi-central-heating | 2f6fd34eeecd87682829d0cca2225d19b265d4c8 | 5fb4032c21ddb589e209fca850b40e7afd2cc757 | refs/heads/master | 2020-08-02T16:51:54.612892 | 2017-05-01T08:40:32 | 2017-05-01T08:40:32 | 73,559,768 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2016-11-12 11:35
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('sterowaniePokoi', '0006_sensor_name'),
]
operations = [
migrations.AddField... | [
"root@raspberrypi.(none)"
] | root@raspberrypi.(none) |
21af91fb60ced68b25cb98c1f8a6b935a764d384 | 5ff5ed3cc9b598134218d4559543082b0f321d12 | /dexy/helpers.py | aa72a637cf1f11997d7d6f62c0ae67a4fb995249 | [
"MIT"
] | permissive | mrflip/dexy | 73086f107f269c3394a717d0edbc022903ccbf71 | d1058dc7ad4f8517273fef9da8e8c08fa4dbbd68 | refs/heads/master | 2021-01-16T20:45:27.600735 | 2012-08-18T06:23:50 | 2012-08-18T06:23:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,237 | py | """
Helpers for use in Python scripts to store data in a dexy-friendly format.
Data storage is typically intended to be write-once, read-one-or-more-times.
Intended to help with Python scripts and to serve as templates for implementing
similar helpers in other languages, or alternate Python implementations.
"""
impor... | [
"ana@ananelson.com"
] | ana@ananelson.com |
a6c6a14c508615dc5e5a702e16de8fd42afcffe2 | 78d35bb7876a3460d4398e1cb3554b06e36c720a | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_11_01/operations/_virtual_hub_route_table_v2_s_operations.py | 95de9e31d0242ed64c419c89223815041c74c32c | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | catchsrinivas/azure-sdk-for-python | e35f59b60318a31b3c940a7a3a07b61b28118aa5 | 596227a7738a5342274486e30489239d539b11d1 | refs/heads/main | 2023-08-27T09:08:07.986249 | 2021-11-11T11:13:35 | 2021-11-11T11:13:35 | 427,045,896 | 0 | 0 | MIT | 2021-11-11T15:14:31 | 2021-11-11T15:14:31 | null | UTF-8 | Python | false | false | 22,766 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | catchsrinivas.noreply@github.com |
058f5bcea585ad1f9cb5b6934ac93c7a957b5245 | 3545ee160458acac7452666aa07826b58e144351 | /demo/videotext/evaluation/evaluate_hmeans.py | 70fa46c3ae1f65b36fb15cbb7e1fae61993c03a2 | [
"Apache-2.0"
] | permissive | OCRWorld/DAVAR-Lab-OCR | 7cc81af43a0e8f60066e7761d950f509c40cfd46 | fb47a96d1a38f5ce634c6f12d710ed5300cc89fc | refs/heads/main | 2023-08-29T09:41:19.377628 | 2021-11-08T11:16:37 | 2021-11-08T11:16:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,184 | py | # -*- coding: utf-8 -*-
import os
import json
import time
import numpy as np
import evaluate_utils
def Fscore(track_dict, gt_dict, voca_dict, hit_iou_thresh=0.5):
"""End-to-End evaluation for F-score
Args:
track_dict(dict): track results
gt_dict(dict): gt results
voca_dict(dict): vo... | [
"qiaoliang6@hikvision.com"
] | qiaoliang6@hikvision.com |
dfd7ce8829df9bd0ee8a87f6a394862189f7b435 | 299426a473b725df6c58f4b838be65eb7f6b46d2 | /BaseTools/Source/Python/Table/TableInf.py | 3c5c0e1d4ec95f94e2c58a8c207e86eab3d6c677 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause-Patent"
] | permissive | donnayoyo/slimbootloader | ae494e7f2e4e07652fc8c84e57f6f7a24f590310 | 7942790d76a66ef386660e72c61022696d36273e | refs/heads/master | 2023-03-05T03:04:12.822419 | 2023-02-22T15:22:45 | 2023-02-22T22:19:56 | 153,537,980 | 0 | 0 | BSD-2-Clause | 2018-10-17T23:51:58 | 2018-10-17T23:51:57 | null | UTF-8 | Python | false | false | 4,878 | py | ## @file
# This file is used to create/update/query/erase table for inf datas
#
# Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.<BR>
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
##
# Import Modules
#
from __future__ import absolute_import
import Common.EdkLogger as EdkLogger
import CommonDataCl... | [
"maurice.ma@intel.com"
] | maurice.ma@intel.com |
3c56fba260537c877d7870b61d282d1663234981 | b7843e20aec7f6f60934ce2ea3ce691d4e9046cf | /[项目二] seiya/seiya/seiya/spider/settings.py | 4d4725fc001c9d4e0827d5d68878b7a7a774acf3 | [] | no_license | redsnowc/challenge | a54a80012beed5ffe264cb09b01e1c8aaeef5384 | c097af045228c51290eae03428b6c6135bd0a5d2 | refs/heads/master | 2020-05-03T08:50:43.085943 | 2019-10-30T07:44:00 | 2019-10-30T07:44:00 | 178,537,982 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,191 | py | # -*- coding: utf-8 -*-
# Scrapy settings for seiya project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
# http://scrapy.readthedocs.org/en/latest/t... | [
"nuanyang.44@gmail.com"
] | nuanyang.44@gmail.com |
b84c74270d9ab4ac4df94a030a58c6cddf0e8dff | b40a7240a116eecb7fc49a7df789957c7256855c | /kafka_scanner/exceptions.py | 520c8bdfeeab8cf5b5d0ea73c35fbdc55de3a5af | [
"BSD-3-Clause"
] | permissive | scrapinghub/kafka-scanner | 5590471d29d1327583d6b2f434b8194b1bd4f0fe | 8a71901012e8c948180f70a485b57f8d2e7e3ec1 | refs/heads/master | 2023-08-31T17:05:24.010075 | 2017-09-29T14:09:21 | 2017-09-29T14:09:21 | 40,253,012 | 21 | 7 | null | 2017-09-29T14:07:34 | 2015-08-05T15:22:44 | Python | UTF-8 | Python | false | false | 85 | py | class NoDataException(Exception):
pass
class TestException(Exception):
pass
| [
"molveyra@gmail.com"
] | molveyra@gmail.com |
8a26753c26c443b6fb8c85913ce73ebf85bc3ef5 | 620323fc090cebaf7aca456ff3f7fbbe1e210394 | /sqlite3__examples/view_many_rows_lazy__QSqlQueryModel.py | b93b94f74340d22fe0ccc09f3d0db6099d7c4d89 | [
"CC-BY-4.0"
] | permissive | gil9red/SimplePyScripts | bd2733372728bf9b9f00570e90316fa12116516b | 773c2c9724edd8827a1dbd91694d780e03fcb05a | refs/heads/master | 2023-08-31T04:26:09.120173 | 2023-08-30T17:22:59 | 2023-08-30T17:22:59 | 22,650,442 | 157 | 46 | null | 2023-09-08T17:51:33 | 2014-08-05T16:19:52 | Python | UTF-8 | Python | false | false | 5,216 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = "ipetrash"
import string
from PyQt5.QtWidgets import (
QApplication,
QListView,
QTableView,
QStyledItemDelegate,
QStyleOptionViewItem,
QStyle,
)
from PyQt5.QtGui import QPainter, QPalette, QFontMetrics
from PyQt5.QtCore import Qt, Q... | [
"ilya.petrash@inbox.ru"
] | ilya.petrash@inbox.ru |
dbdbcdc9f68754b16f6481780b75e632b747516c | 1fc7fc8cc0ad49133ba9a4dae910fd7d6e9b242c | /pyqtgraph/units.py | d0f8987c4787f279fbc2e0ff2d85ead965c44c34 | [
"MIT"
] | permissive | Yingzhang1122/DiffractionLimitedAnalysis | 2a67ac2ac87e9fdaf9262a565cc717899e439561 | 6ea260b738a624962a329dcb7ae19ee048515edf | refs/heads/main | 2023-06-03T16:12:15.684375 | 2021-05-26T18:47:40 | 2021-05-26T18:47:40 | 368,825,659 | 0 | 0 | MIT | 2021-05-19T10:11:17 | 2021-05-19T10:11:17 | null | UTF-8 | Python | false | false | 1,656 | py | # -*- coding: utf-8 -*-
# Very simple unit support:
# - creates variable names like 'mV' and 'kHz'
# - the value assigned to the variable corresponds to the scale prefix
# (mV = 0.001)
# - the actual units are purely cosmetic for making code clearer:
#
# x = 20*pA is identical to x = 20*1e-12
#
# No unic... | [
"zengjie.xia7@gmail.com"
] | zengjie.xia7@gmail.com |
1bc2b3ee9bed0e4885fad11096abc1a8a00eedc6 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/detection/SOLOv1/mmdet/models/anchor_heads/free_anchor_retina_head.py | ffc0ebd5d9dc926c4c3304333670f14cd141fa3c | [
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 7,981 | py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the BSD 3-Clause License (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://opensource.org/licenses/BSD-3-Clause
#
# Unless required by applicable law or agreed to in ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
6064924cbd6361819d56e465228f1982075b2d09 | ecba7c2ebf695721a0c11f276d859f2016e99393 | /catkin_ws/src/baldor/src/baldor/vector.py | 001bfd54a7836eb0b7d7c920ab59ca7b4b9ad6ea | [
"BSD-3-Clause"
] | permissive | giorgioGunawan/jenga-vs | 3e609d0bb0a31777f1a77229b3f657882b8b0994 | a8a55833c4b73e030fa9c6a2ab2ba7551a4d0ab9 | refs/heads/main | 2023-05-31T00:35:40.714836 | 2021-06-11T08:19:32 | 2021-06-11T08:19:32 | 375,953,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,925 | py | #!/usr/bin/env python
"""
Vector operations
"""
import math
import numpy as np
# Local modules
import baldor as br
def unit(vector):
"""
Return vector divided by Euclidean (L2) norm
Parameters
----------
vector: array_like
The input vector
Returns
-------
unit : array_like
... | [
"grggnwn@gmail.com"
] | grggnwn@gmail.com |
3fec7ca688298ef5c0fd7aea233d012a20075562 | b6c675de39e9c10beb967087b1033680cf1632b2 | /methods/opennmt_based/OpenNMT-py/onmt/inputters/inputter.py | 5d8bbad6ae981b919b9a5ed81bb6d70a8e67f2c4 | [
"MIT"
] | permissive | INK-USC/CommonGen | d0a870be5188f0b43942b112fe95dd57b731f823 | 1584f0689282b9faf76dcce87ca2c4ff142b5d09 | refs/heads/master | 2023-08-24T19:46:34.013502 | 2021-12-09T02:28:25 | 2021-12-09T02:28:25 | 237,142,704 | 135 | 25 | MIT | 2023-09-06T17:33:08 | 2020-01-30T05:03:14 | Python | UTF-8 | Python | false | false | 29,961 | py | # -*- coding: utf-8 -*-
import glob
import os
import codecs
import math
from collections import Counter, defaultdict
from itertools import chain, cycle
import torch
import torchtext.data
from torchtext.data import Field, RawField
from torchtext.vocab import Vocab
from torchtext.data.utils import RandomShuffler
from ... | [
"yuchen.lin@usc.edu"
] | yuchen.lin@usc.edu |
6d729a4197d853583de862a13bf5bca856bb7ace | 9adc810b07f7172a7d0341f0b38088b4f5829cf4 | /experiments/torch_ddpg_sweep_cheetah.py | 5ffe2675ad1c945119c0192d9ceda3036226e0d0 | [
"MIT"
] | permissive | Asap7772/railrl_evalsawyer | 7ee9358b5277b9ddf2468f0c6d28beb92a5a0879 | baba8ce634d32a48c7dfe4dc03b123e18e96e0a3 | refs/heads/main | 2023-05-29T10:00:50.126508 | 2021-06-18T03:08:12 | 2021-06-18T03:08:12 | 375,810,557 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,130 | py | """
Run PyTorch DDPG on HalfCheetah.
"""
import random
from rlkit.exploration_strategies.base import \
PolicyWrappedWithExplorationStrategy
from rlkit.exploration_strategies.ou_strategy import OUStrategy
from rlkit.launchers.launcher_util import run_experiment
from rlkit.torch.networks import FeedForwardQFunction,... | [
"alexanderkhazatsky@gmail.com"
] | alexanderkhazatsky@gmail.com |
4c7fb1bd2c26c82219b684c2cf5cadf65b716d7a | 1b10b46afdf24b4ce4f2d57e315e09e17c0a9c2b | /torusv1.py | 2a889aaf651015d8092e8b3fba9786e3fc021306 | [] | no_license | tthtlc/sansagraphics | e6aad1541dabc85b3871e1890c9f79aa33055355 | 113e559fb128c93ed1f02155ec74e76878b86c37 | refs/heads/master | 2021-01-15T15:52:35.126301 | 2020-03-30T16:58:57 | 2020-03-30T16:58:57 | 15,507,431 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,236 | py | #!/usr/bin/env python
#### sudo pip install pyglet
from math import pi, sin, cos
import pyglet
from pyglet.gl import *
try:
# Try and create a window with multisampling (antialiasing)
config = Config(sample_buffers=1, samples=4,
depth_size=16, double_buffer=True,)
window = pyglet.wi... | [
"htmldeveloper@gmail.com"
] | htmldeveloper@gmail.com |
39065a1e5bbcdabb756f9f2a5df46cc82aa97b22 | 25fbaf0d3bc896e01bec0dd8e8f98872334d76d8 | /leetcode_python/Binary_Search_Tree/serialize-and-deserialize-bst.py | 6e0120358c4cce8e0ddecff7e821271270be2e66 | [] | no_license | cyyeh/CS_basics | e708622b594f168db9cb9d7d1cc179e0fe7d591c | 3214b3888ec1c00612691390214f67a46138a7fd | refs/heads/master | 2020-12-01T18:19:31.063366 | 2019-12-28T08:22:25 | 2019-12-28T08:22:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,997 | py | # V0
# V1
# http://bookshadow.com/weblog/2015/10/26/leetcode-serialize-and-deserialize-binary-tree/
class Codec:
def serialize(self, root):
def doit(node):
if node:
vals.append(str(node.val))
doit(node.left)
doit(node.right)
else:
... | [
"f339339@gmail.com"
] | f339339@gmail.com |
a34c96d23002c47ad8d33df68461b51648683d73 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /YwXwxa6xmoonFRKQJ_12.py | f6b1833c3011b254a862a9da7d297ba3de69fbf6 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | py |
def josephus(n):
if n < 1:
return False
circle = list(range(n))
while len(circle) > 1:
if len(circle)%2:
circle = circle[::2]
circle = circle[1::]
else:
circle = circle[::2]
return circle[0]
print(josephus(3))
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
1aaa0d19531ebe461a248e60d37db4bf44332cdf | 9937c9060afc22afcd66b9585a4f2d2e4c970cfa | /website1/website/urls.py | 2c60feb6009be541fe1aa01c8f6312c9ab222ca3 | [] | no_license | Lz0224/Python-blogs | 8b393444b3baa3bf3cfde9ddca5091f5cfe2ec9f | a3e33a128f6a44df848d414a098a105f4082017f | refs/heads/master | 2021-01-16T17:36:39.358839 | 2017-08-11T09:12:53 | 2017-08-11T09:12:53 | 100,005,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,222 | py | """website URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-ba... | [
"Lz0o_o0@outlook.com"
] | Lz0o_o0@outlook.com |
7dfcf97dc9b44d1263b6adb6405a610a2d766184 | 11f00660332b8778a09cad87d861e5b7f4dd12d0 | /easy/283_move_zeroes.py | 15ea81315f5b6caf93a4d06db628069436ccbac0 | [
"MIT"
] | permissive | niki4/leetcode_py3 | b4b1bb8bd62e8dca595386a88825f3bc46a7f3fd | 9f66d352c805fcdd9930aaa18c93d7546768287c | refs/heads/master | 2022-07-01T17:52:07.166384 | 2022-06-26T11:01:31 | 2022-06-26T11:01:31 | 130,343,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,627 | py | """
Given an array nums, write a function to move all 0's to the end
of it while maintaining the relative order of the non-zero elements.
Example:
Input: [0,1,0,3,12]
Output: [1,3,12,0,0]
Note:
You must do this in-place without making a copy of the array.
Minimize the total number of operations.
"""
from typing impor... | [
"nikiforr@gmail.com"
] | nikiforr@gmail.com |
7796a515f59a7665730abcd6c1ce3b1895a39b9e | 285050b56296e78ab4e41cae435865ec0d1b984c | /commands/help.py | de215d5b0df2d36e38d7d091dee44f4db95a402e | [] | no_license | plainenough/karmabot | d576215affbe0e91c82a20edc204c2cc927a95dc | b164b03e38d979b1052dd10d8ae8011e2581b6f2 | refs/heads/master | 2020-07-09T17:41:57.766755 | 2019-10-06T15:36:41 | 2019-10-06T15:36:41 | 204,037,183 | 0 | 2 | null | 2019-09-05T13:44:46 | 2019-08-23T16:51:12 | Python | UTF-8 | Python | false | false | 237 | py | def create_commands_table(commands):
"""Print this help text"""
ret = '\n'.join(['{:<30}: {}'.format(name, func.__doc__.strip())
for name, func in sorted(commands.items())])
return '```{}```'.format(ret)
| [
"bobbelderbos@gmail.com"
] | bobbelderbos@gmail.com |
beecfa1f9310e808c5774065f5467a1a43ef7f6b | f19a098276bc265ea87add4fdc48b9cd7b3c31a2 | /Python/NeonOcean.S4.Main/NeonOcean/S4/Main/UI/Generic.py | 80dbc9c2db4111a8cb76829f5689f43d7e3500e5 | [
"CC-BY-4.0"
] | permissive | NeonOcean/S4.Main | f52713f1559d522805523f798544cdfabf3a2723 | 2d85e6d4428f01294d2d34f1807287b753f7490c | refs/heads/master | 2023-01-30T13:21:28.471465 | 2020-12-12T22:43:01 | 2020-12-12T22:43:01 | 177,883,927 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,497 | py | from __future__ import annotations
import typing
import webbrowser
from NeonOcean.S4.Main import Debug, Language, Mods, This
from NeonOcean.S4.Main.Tools import Exceptions
from NeonOcean.S4.Main.UI import Dialogs
from sims4 import localization
from ui import ui_dialog
OpenBrowserDialogText = Language.String(This.Mod... | [
"40919586+NeonOcean@users.noreply.github.com"
] | 40919586+NeonOcean@users.noreply.github.com |
f940e2203d795cdaa84c469a7a2699893435c0f8 | be851ee72d8ed216a457a55d6d5dfaa4476bd8dc | /cauldron/test/session/test_definitions.py | 4f493bcd66bff9a47a9bb8d8ab2ef1dd07e05c02 | [
"MIT"
] | permissive | DanMayhew/cauldron | 467c209bb79e7decd4889c77b34df95aef39e65c | ac41481830fc1a363c145f4b58ce785aac054d10 | refs/heads/master | 2020-03-21T23:40:36.214562 | 2018-10-05T20:21:51 | 2018-10-05T20:21:51 | 139,200,863 | 0 | 0 | MIT | 2018-06-29T22:19:33 | 2018-06-29T22:19:33 | null | UTF-8 | Python | false | false | 2,365 | py | from cauldron.session.definitions import FileDefinition
from cauldron.test.support import scaffolds
class TestDefinitions(scaffolds.ResultsTest):
""" """
def test_empty_slug(self):
""" """
d = FileDefinition()
d.folder = 'test'
self.assertTrue(d.slug.startswith('test'))
... | [
"swernst@gmail.com"
] | swernst@gmail.com |
b85ea5fe9457d3dcd33d57a524f20fee1dac28ab | c47c254ca476c1f9969f8f3e89acb4d0618c14b6 | /datasets/linux-4.11-rc3/Documentation/security/conf.py | 472fc9a8eb67014dc4fd2c5b044d78edb64f7bc5 | [
"Linux-syscall-note",
"GPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-permissive"
] | permissive | yijunyu/demo | 5cf4e83f585254a28b31c4a050630b8f661a90c8 | 11c0c84081a3181494b9c469bda42a313c457ad2 | refs/heads/master | 2023-02-22T09:00:12.023083 | 2021-01-25T16:51:40 | 2021-01-25T16:51:40 | 175,939,000 | 3 | 6 | BSD-2-Clause | 2021-01-09T23:00:12 | 2019-03-16T07:13:00 | C | UTF-8 | Python | false | false | 187 | py | project = "The kernel security subsystem manual"
tags.add("subproject")
latex_documents = [
('index', 'security.tex', project,
'The kernel development community', 'manual'),
]
| [
"y.yu@open.ac.uk"
] | y.yu@open.ac.uk |
bdaac18cb3ff0d1e1e36579298cd6d9d44ff879a | 90a1d9a9a3ed5e80be1fcca484d1666ca9daaf9e | /ME_5406_code/contents/12_Off_policy/src/algorithms.py | 298d53060deaab7acadf0b19a661af8e21d4ec63 | [
"MIT"
] | permissive | hzm2016/phd_module_test | 1860307bf045d592e71490c9341173f53897bcbe | 0dec060bfe0fdda4565194468a1289e8cb99fd56 | refs/heads/master | 2022-12-28T14:30:17.416346 | 2020-10-18T11:34:33 | 2020-10-18T11:34:33 | 305,086,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,590 | py | # -*- coding: ascii -*-
import numpy as np
from typing import List, Tuple, Union
__all__ = ('GTD', 'DiscreteActorCritic', 'OffActorCritic', 'OffPAC', 'TIDBD', 'LGGTD', 'DLGGTD', 'LGTIDBD', 'DLGTIDBD', 'LGGTD2', 'DLGGTD2')
class GTD:
def __init__(self,
n: int,
gamma: float,
... | [
"2539722953@qq.com"
] | 2539722953@qq.com |
77b690bc986561bc6cae0109aa90e3d1e7b85592 | 74d57ed1b1a5bf33b74c1c10704acc1383efbb06 | /venv/Scripts/pip-script.py | 78354fdc9d8e5eab3d8b8f59b013794dde91e19f | [] | no_license | suhang319/exercise | 41660eb77ab89c9a93bd4898560e60aa50b37e57 | 03ddaa758d0a7a19a8a87641d32bf17f40429f7c | refs/heads/master | 2023-02-26T02:11:49.727194 | 2021-01-23T15:24:58 | 2021-01-23T15:24:58 | 313,642,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | #!C:\Users\suhang\PycharmProjects\VIPstudy\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv... | [
"1147967632@qq.com"
] | 1147967632@qq.com |
2480e0ef0c11682daae22abb521226a1992c6933 | 781e2692049e87a4256320c76e82a19be257a05d | /assignments/python/anagram/src/239.py | 347711c9c236670f84b9f1cf8ac4b25148d51d36 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 597 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
def detect_anagrams(wd, lst):
wc = sorted(list(wd.lower()))
ret = []
for item in lst:
if item.lower() == wd.lower():
continue
tmp = sorted(list(item.lower()))
if len(tmp) != len(wc):
continue
tup = zip(wc,... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
82ad9028a042d342bbc126ef5588cd24f25eb9ec | 1d8b5b8f3954cb5938bc05a43d74e35e14f884f2 | /tods/data_processing/TimeStampValidation.py | 946e93fee5476a5de0ac2c6326ee057cae2cac84 | [
"Apache-2.0"
] | permissive | MaxMohammadi/tods | 746222c87361b9beda824df720e67b9357614716 | 40e79269f14b60e090028188f1ed8380d518270f | refs/heads/master | 2023-04-02T20:43:22.107101 | 2021-03-17T21:57:49 | 2021-03-17T21:57:49 | 348,858,220 | 1 | 0 | Apache-2.0 | 2021-04-11T09:10:56 | 2021-03-17T21:34:39 | Python | UTF-8 | Python | false | false | 3,345 | py |
import os
import typing
import numpy
from d3m import container, utils as d3m_utils
from d3m.metadata import base as metadata_base
from d3m.metadata import hyperparams
from d3m.primitive_interfaces import base, transformer
__all__ = ('TimeStampValidationPrimitive',)
Inputs = container.DataFrame
Outputs = container.... | [
"khlai037@gmail.com"
] | khlai037@gmail.com |
4a38afd8b33cb33b1e3cc40999fdaa869edcf0f9 | 78880e780a3e02f63a08809c7d7b7d42078afbfa | /progress-2/eve-demo-master/wip-env/Lib/site-packages/pymongo/cursor_manager.py | 50062af748813ce266db500f2818ae3ebf1c74ec | [
"BSD-3-Clause"
] | permissive | focode/parking | 368a51f65ed33a5738f40035896cbc1eb5504989 | b5ac0a4a1736c6d35039feb34d69cc1edb4e089c | refs/heads/master | 2022-10-30T10:49:05.482820 | 2022-10-20T03:19:02 | 2022-10-20T03:19:02 | 77,791,262 | 0 | 1 | null | 2022-10-20T03:19:03 | 2017-01-01T18:30:56 | Python | UTF-8 | Python | false | false | 2,830 | py | # Copyright 2009-2015 MongoDB, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | [
"admin@example.com"
] | admin@example.com |
19df0c2b02c418f095649ef0656f0aa52aebc887 | 64d0ec9b327897cb49fcf0759558e7efb57c2937 | /example/myshop/models/polymorphic_/product.py | 610bd5e8edfeedf39a3d2ef8346f5f3a4ce063c9 | [
"BSD-3-Clause"
] | permissive | haricot/django-shop | e95cd7c4c497e014f4a60923453218287622cbf7 | ea68e39579c8e955549ca097cdefb215791e7813 | refs/heads/master | 2022-02-14T06:43:15.642551 | 2019-07-30T21:23:49 | 2019-07-30T21:23:49 | 107,783,822 | 0 | 0 | BSD-3-Clause | 2022-02-01T20:28:13 | 2017-10-21T13:47:39 | Python | UTF-8 | Python | false | false | 2,156 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
from django.utils.translation import ugettext_lazy as _
from djangocms_text_ckeditor.fields import HTMLField
from shop.models.product import BaseProductManager, Ba... | [
"jacob.rief@gmail.com"
] | jacob.rief@gmail.com |
5bb2d0f11f74f21a58642bf11920d398448f53d8 | 4d73e901ca7107cb1510641c949bb08dcbbdf652 | /device/wistron/x86_64-wistron_sw_to3200k-r0/plugins/psuutil.py | 2d00aa6282c019a4be7bf0d95fcd66749c16b41c | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | keboliu/sonic-buildimage | 86cb9c0fb8e7792dbc2d1de064d0c082221df852 | a86eb95005fafd7dabea02849cb4989205d5767f | refs/heads/master | 2023-08-17T13:59:27.833441 | 2023-08-10T09:22:28 | 2023-08-10T09:22:28 | 281,338,032 | 1 | 1 | NOASSERTION | 2023-08-28T09:27:20 | 2020-07-21T08:17:41 | C | UTF-8 | Python | false | false | 1,630 | py | #!/usr/bin/env python
#############################################################################
# Accton
#
# Module contains an implementation of SONiC PSU Base API and
# provides the PSUs status which are available in the platform
#
#############################################################################
tr... | [
"noreply@github.com"
] | keboliu.noreply@github.com |
6efd516e485938b85ebcff3c32d499362f2a3c83 | e58df4aeee11f8a97bdeede6a75a776d130f86d2 | /molpal/models/chemprop/nn_utils.py | 78ca44521685ef44a2dafb3ef8c0f064193174a4 | [
"MIT"
] | permissive | ashuein/molpal | 6ecd79767d8ef254e2c852e20f77cd9338844f35 | 1e17a0c406516ceaeaf273a6983d06206bcfe76f | refs/heads/main | 2023-01-29T03:23:10.525555 | 2020-12-15T14:17:56 | 2020-12-15T14:17:56 | 321,720,018 | 1 | 0 | MIT | 2020-12-15T16:09:48 | 2020-12-15T16:09:48 | null | UTF-8 | Python | false | false | 8,326 | py | import math
from typing import List, Union
import numpy as np
import torch
import torch.nn as nn
from torch.optim import Optimizer
from torch.optim.lr_scheduler import _LRScheduler
from tqdm import tqdm
from .data import MoleculeDataLoader, MoleculeDataset
def compute_pnorm(model: nn.Module) -> float:
"""
Co... | [
"deg711@g.harvard.edu"
] | deg711@g.harvard.edu |
f36dc0a611538ba6af87735c68731c85e3a9d765 | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/matplotlib/2017/4/quiver.py | aed77ee72b7832661caaffa41ff8f61adf8d8cf6 | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 45,864 | py | """
Support for plotting vector fields.
Presently this contains Quiver and Barb. Quiver plots an arrow in the
direction of the vector, with the size of the arrow related to the
magnitude of the vector.
Barbs are like quiver in that they point along a vector, but
the magnitude of the vector is given schematically by t... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
0e11cdf72caf7574138ef80eefd70b0a06022abb | bde6ed092b7b29703737e11c5a5ff90934af3d74 | /LeetCode/top-interview-questions/36.py | 599f0f2ac295d36e232852cee7b31fc4b7971505 | [] | no_license | takecian/ProgrammingStudyLog | 2ab7ea601e0996b3fa502b81ec141bc3772442b6 | 94485d131c0cc9842f1f4799da2d861dbf09b12a | refs/heads/master | 2023-04-28T16:56:18.943574 | 2023-04-18T06:34:58 | 2023-04-18T06:34:58 | 128,525,713 | 4 | 0 | null | 2022-12-09T06:15:19 | 2018-04-07T12:21:29 | Python | UTF-8 | Python | false | false | 2,070 | py | # https://leetcode.com/problems/valid-sudoku/
import itertools
from collections import Counter
import bisect
class Solution:
def isValidSudoku(self, board):
print(board)
# check rows
for i in range(9):
digits = set()
dot_count = 0
for j in range(9):
... | [
"takecian@gmail.com"
] | takecian@gmail.com |
87a71a834f0792a5c429765891236f4e3b6df01a | 14a85a15e46fcf8f6aeb6909692edca5c4370469 | /backend/candlemaking_corner_31797/wsgi.py | 3d1b0e5e81513b8ddf4783f6663193f969beb6e1 | [] | no_license | crowdbotics-apps/candlemaking-corner-31797 | a63c14d8f1274f18cda8acf236547ee399eec4f1 | bd6a18c6f072b425171994b90223dc37a9ae8661 | refs/heads/master | 2023-08-19T14:06:02.733940 | 2021-11-01T21:43:28 | 2021-11-01T21:43:28 | 423,624,476 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | """
WSGI config for candlemaking_corner_31797 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdef... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
2c763021df45358226a22730ccebab19095c131e | 665d9e274dade7a2b4027af79aa2e1331405f8d2 | /unidade9/busca_todos.py | 63ed9b5995ccff73eaf85d5b737ed32e0315c5b6 | [] | no_license | ezequiasOR/Exercicios-LP1 | 6241743ee682f53047e008641abd6493a344ebd5 | ce641144e1921d9d361f077945ee7c4452cc4cef | refs/heads/master | 2020-12-19T19:32:07.309930 | 2020-01-23T16:52:27 | 2020-01-23T16:52:27 | 235,829,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | #coding: utf-8
#UFCG - Programação I - 2018.1
#Aluno: Ezequias Rocha
#Questão: Busca Todos - Unidade 9
def busca_matriz(m, e):
posicoes = []
for linha in range(len(m)):
for coluna in range(len(m[0])):
if m[linha][coluna] == e:
posicao = (linha, coluna)
posicoes.append(posicao)
return posicoes
| [
"ezequias.rocha@ccc.ufcg.edu.br"
] | ezequias.rocha@ccc.ufcg.edu.br |
7a4c8a2b9c51dc7cc19b25ca2b855270e11309f0 | 96796bca1f00c5af89c695ff51691e977fda262c | /myEnvironments/py2FlaskEnv/bin/python-config | 5943dc1082b0c7fc22ddc38f24754622b416d8cf | [] | no_license | LexiPearl/Python-Projects | 5be7ecb11ff7e332daf7b92d23e183511b67444c | c76ce5611d8abd8dfcdea24051cbdfe705a98ffd | refs/heads/master | 2021-01-19T11:35:50.624237 | 2017-04-28T04:13:13 | 2017-04-28T04:13:13 | 87,978,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,383 | #!/Users/Lexi/Desktop/Coding_Dojo/Week_3/myEnvironments/py2FlaskEnv/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.ap... | [
"lexipearl91@gmail.com"
] | lexipearl91@gmail.com | |
219b138a3240ef163aed3aa339d14df8b31e9d6e | 236ded75aefcf965c582538f1b56d21b161cd3c5 | /trustery/testDir/callct027.py | 85451dc431286309fee38e68fc5afb98ad87bb3b | [] | no_license | rogerioita/ICPChain | 7fc1c7c5df289ed31fd2ad71cee400eac3d253cb | 87f2b001f5297396be6cb3aa9dd0c42236587038 | refs/heads/master | 2023-03-10T20:57:49.479052 | 2021-02-16T16:27:23 | 2021-02-16T16:27:23 | 336,806,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 60 | py | #!/usr/bin/env python
import os
os.system('node ct027.js')
| [
"rogerio.santos@ga.ita.br"
] | rogerio.santos@ga.ita.br |
944be212b7f66b29ba240ab8703291f9cc863192 | ce378bf28153d4d30cd53ec8684e8017abd0ac59 | /pythonProject/leetcode/First Missing Positive.py | d1918d7a04d230986561d99a546c629b817fb54d | [] | no_license | zzong2006/coding-problems-study | 5f006b39264cbe43d11db489ce8b716272329b6e | 9b3affbeb2ddfa673c1d879fb865408e34955c5c | refs/heads/master | 2023-04-07T12:47:41.646054 | 2021-04-08T05:02:33 | 2021-04-08T05:02:33 | 286,918,250 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | from typing import List
class Solution:
def firstMissingPositive(self, nums: List[int]) -> int:
if not nums:
return 1
else:
max_val = max(nums)
if max_val <= 0:
return 1
else:
num_set = set(nums)
for i... | [
"zzong2006@gmail.com"
] | zzong2006@gmail.com |
2f652ebba3d3cfce4d9f965805f91c18567e3047 | c1bd12405d244c5924a4b069286cd9baf2c63895 | /azure-mgmt-monitor/azure/mgmt/monitor/models/log_settings_py3.py | a1b7ac84dee645c63fe72ee852f437e2b8da98ce | [
"MIT"
] | permissive | lmazuel/azure-sdk-for-python | 972708ad5902778004680b142874582a284a8a7c | b40e0e36cc00a82b7f8ca2fa599b1928240c98b5 | refs/heads/master | 2022-08-16T02:32:14.070707 | 2018-03-29T17:16:15 | 2018-03-29T17:16:15 | 21,287,134 | 1 | 3 | MIT | 2019-10-25T15:56:00 | 2014-06-27T19:40:56 | Python | UTF-8 | Python | false | false | 1,772 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
b7346c802a40388643b4207acaa8d43885bc42a5 | d04abcf001de4040f9ca16168d5d58f7236a0049 | /kerasforecast.py | ff4e180b791e6e664b8ff5c328b2f839a20e29b7 | [] | no_license | Tyro-Fang/LocationForecast | 91626d143af3eb6dffb296da94d2cd6de4ceb162 | 5e26c6e2772446674f208a87b9a9261f27f76e58 | refs/heads/master | 2020-03-26T03:38:52.359815 | 2018-08-12T12:44:19 | 2018-08-12T13:05:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,326 | py | import pandas as pd
from random import random
import numpy as np
from keras.models import Sequential
from keras.layers.core import Dense, Activation
from keras.layers.recurrent import LSTM
flow = (list(range(1, 10, 1)) + list(range(10, 1, -1))) * 100
pdata = pd.DataFrame({"a": flow, "b": flow})
pdata.b = pdata.b.shift... | [
"hongshufang@hotmail.com"
] | hongshufang@hotmail.com |
b8303cd8da429a135aaa4e35a31696e078b79031 | 32a6ac6cbec63296ba68838ad4699b995810c6cd | /compiled/python/enum_to_i.py | 0ca0dc3d030c8b03c42c3c8ecdea1310327874fb | [
"MIT"
] | permissive | smarek/ci_targets | a33696ddaa97daa77c0aecbdfb20c67546c729bc | c5edee7b0901fd8e7f75f85245ea4209b38e0cb3 | refs/heads/master | 2022-12-01T22:54:38.478115 | 2020-08-10T13:36:36 | 2020-08-19T07:12:14 | 286,483,420 | 0 | 0 | MIT | 2020-08-10T13:30:22 | 2020-08-10T13:30:21 | null | UTF-8 | Python | false | false | 1,797 | py | # This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
from pkg_resources import parse_version
import kaitaistruct
from kaitaistruct import KaitaiStruct, KaitaiStream, BytesIO
from enum import Enum
if parse_version(kaitaistruct.__version__) < parse_version('0.9'):
rais... | [
"kaitai-bot@kaitai.io"
] | kaitai-bot@kaitai.io |
c37d08bceeb482f70443ea011c9d21dcc84596c5 | 40b9bd357cdcad45c99aa32ca1baace731a6a982 | /home/migrations/0003_auto_20200529_0117.py | 7125be0858e0c278a453a76bdb94617e4366a755 | [] | no_license | Dekatron322/zayan-essentials | 21f2350990811e745c4c11bdc914c65c23e122a3 | 21d72ed975b77bf16e1b53deacdf2970145b0cbf | refs/heads/main | 2023-01-13T21:52:40.519118 | 2020-11-22T05:59:28 | 2020-11-22T05:59:28 | 314,967,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | # Generated by Django 3.0.6 on 2020-05-29 00:17
import ckeditor_uploader.fields
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('home', '0002_auto_20200529_0033'),
]
operations = [
migrations.AlterField(
model_name='setting',
... | [
"muritalaibrahim097@gmail.com"
] | muritalaibrahim097@gmail.com |
032923e2c9024e9552f45765ff7b852159afc504 | 5dd8ce7f11c8f568e19fa821f07bb238733da972 | /Src/xmds2_0/Test/xpdeint/waf/waflib/Tools/fc.py | a22f8ca3dd0d7958257385278c485eab310c471c | [] | no_license | htsenyasa/MachineLearningGrossPitaevskiiEq | fba9fa92879c2c805288950d344333f60d8c7ae4 | cae0b690841a55fda9d3ec49df7f8321a9835b95 | refs/heads/master | 2023-06-23T00:58:21.036638 | 2021-03-07T22:19:10 | 2021-03-07T22:19:10 | 345,210,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,634 | py | #! /usr/bin/env python
# encoding: utf-8
# DC 2008
# Thomas Nagy 2010 (ita)
"""
fortran support
"""
import re
from waflib import Utils, Task, TaskGen, Logs
from waflib.Tools import ccroot, fc_config, fc_scan
from waflib.TaskGen import feature, before_method, after_method, extension
from waflib.Configure import conf
... | [
"htsenyasa@gmail.com"
] | htsenyasa@gmail.com |
aeec75caf103d93cac4a951e58bef4d51e50717f | 004924ff440299e20b1bee95941a8d045a098173 | /03-regex/01-matching/08-ten-times-abc/solution.py | d2544ff1edaab7444ce881238cb17b87d86a5819 | [] | no_license | UCLeuvenLimburg/scripting-exercises | cfc5afaf9c5767063500ca11106c2fc49a0b2526 | 3a21c99b9e389bbad6b4c52df36dcb70fb9dc48d | refs/heads/master | 2022-05-01T02:23:42.012534 | 2022-03-30T12:44:39 | 2022-03-30T12:44:39 | 168,198,257 | 10 | 20 | null | 2020-10-19T14:32:28 | 2019-01-29T17:36:36 | Python | UTF-8 | Python | false | false | 84 | py | import re
def ten_times_abc(string):
return re.fullmatch('(abc){10}', string)
| [
"frederic.vogels@ucll.be"
] | frederic.vogels@ucll.be |
3d13f817304e52c39a8cfc271afeba9d9d200229 | aea83e77dd0c0cc74d74362a0c4646c627f4b0e6 | /tradewell/tradeproject/tradeapp/migrations/0001_initial.py | 4e1acf03e7409c0e3e9dc0c206cd0a9577754b1e | [] | no_license | Dreambigxz/steps_project | 12e3b5694f769e3c882f9a4d7e9d4f3378514981 | e9049b27ab865a7ea7421a06c51002142136a768 | refs/heads/main | 2023-01-12T10:21:05.310825 | 2020-11-18T15:59:26 | 2020-11-18T15:59:26 | 313,984,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,113 | py | # Generated by Django 3.0.8 on 2020-10-20 18:00
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"onyemordidaniel@gmail.com"
] | onyemordidaniel@gmail.com |
23b646489f22c5b1d7bbce9d072090ff7814bb64 | e5baa5ba65c5cb80b38203b28c064a475aa63693 | /WebContent/manage/admin_school_link.py | b322449466aea61328dabe964d87085ab02a6537 | [] | no_license | yxxcrtd/jitar2012 | bbe00b1eb2e505400dcfec396201752c3888199c | ccae07ff44a3cb9dc3d0b75673cbca699fa66b80 | refs/heads/master | 2020-05-31T15:26:40.107486 | 2019-06-05T08:05:22 | 2019-06-05T08:05:22 | 190,352,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,821 | py | # script
from cn.edustar.jitar.util import ParamUtil
from cn.edustar.jitar.pojos import Link
from cn.edustar.jitar.data import Command
from cn.edustar.jitar.jython import BaseAdminAction
# 结果定义.
class ActionResult:
ERROR = "/WEB-INF/ftl/Error.ftl"
SUCCESS = "/WEB-INF/ftl/success.ftl"
# 机构风采管理.
class... | [
"yxxcrtd@gmail.com"
] | yxxcrtd@gmail.com |
87ac88e218c2712f21c6efd8e6b26b3db793982a | b6fc54cff7037f5e4ef26cb4a645d5ea5a6fecdf | /001085StepikPythonIntrO/Stepik001085PythonIntrOсh01p05st08С06_20200410.py | ffe3287db795afc479ee5c9a4f5c84a1c2ba563c | [
"Apache-2.0"
] | permissive | SafonovMikhail/python_000577 | 5483eaf2f7c73bc619ce1f5de67d8d689d2e7dd4 | f2dccac82a37df430c4eb7425b5d084d83520409 | refs/heads/master | 2022-12-08T10:53:57.202746 | 2022-12-07T09:09:51 | 2022-12-07T09:09:51 | 204,713,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | num1 = float(input())
num2 = float(input())
num3 = float(input())
if num3 > num2 and num2 > num1:
print("Все в порядке")
if num1 >= num2:
print("2 <= 1")
if num2 >= num3:
print("3 <= 2")
| [
"ms33@inbox.ru"
] | ms33@inbox.ru |
5434f43681650c978105949325f4647c5bd7c025 | 7ef7ebce070ee7efab187c77dd4e0a626cff515a | /Tree/inorder.py | 01ede79cf9ae599631d5c8d88e6f6fa856f27bb6 | [] | no_license | winston1214/Data-structure | 3e371bc88aa141fcfcc94ba80c9f852f92555c3e | e0b0095e2802d5d33c0e44c55b6522b768d62af0 | refs/heads/master | 2022-12-11T03:27:52.860508 | 2020-09-08T12:05:44 | 2020-09-08T12:05:44 | 284,871,488 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | # @Author YoungMinKim
# Data Structure - binary Tree Function - Inorder
class TNode:
def __init__(self,data,left,right):
self.data = data
self.left = left
self.right = right
def inorder(n): # 중위순회 LVR
if n is not None:
inorder(n.left)
print(n.data,end='')
inorder(... | [
"winston1214@naver.com"
] | winston1214@naver.com |
6481a88b4d2bb536823439280021b3039d4fba75 | 36978086cf5f34e16ceac7c2649b49ccb4c5ac90 | /vendor/paypal/standard/ipn/admin.py | d121204f9cfa9ada906d2370f4c481a425209d7a | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | aragilar/NewsBlur | 04e754093cd52bc2d9957ea767747d6d604dfbba | 64ecd83bf4cea175f1bdeeb6e475fd5cadb679c9 | refs/heads/master | 2021-08-28T17:39:50.734396 | 2013-06-06T01:52:20 | 2013-06-06T01:52:37 | 10,520,281 | 0 | 0 | MIT | 2021-08-13T05:35:33 | 2013-06-06T06:26:24 | Objective-C | UTF-8 | Python | false | false | 2,505 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.contrib import admin
from vendor.paypal.standard.ipn.models import PayPalIPN
class PayPalIPNAdmin(admin.ModelAdmin):
date_hierarchy = 'payment_date'
fieldsets = (
(None, {
"fields": [
"flag", "txn_id", "txn_type", "p... | [
"samuel@ofbrooklyn.com"
] | samuel@ofbrooklyn.com |
ef2a962d52bee0398f7ec81e2706814e898c468a | 0485a490f466bd1d02eaae96d277888781208c0e | /tests/single_instruction_translation_validation/mcsema/register-variants/mulb_r8/Output/test-z3.py | 0f82b0b7a1e4690e99a0a154e008fc95b3acf008 | [
"LicenseRef-scancode-unknown-license-reference",
"NCSA"
] | permissive | Mthandazo42/validating-binary-decompilation | c0e2d54cd79e609bfa35802975bddfa52e646fad | c0fcd6f099e38195dcbbac9e8c13a825865c5cb5 | refs/heads/master | 2022-11-11T13:18:13.033044 | 2020-06-25T05:49:01 | 2020-06-25T05:49:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,400 | py | #############################################
######## Auto Generated Proof Scripts #######
#############################################
import z3
import sys
status=True
test_name="UnK"
if(len(sys.argv) > 1):
test_name = sys.argv[1]
def solve(msg, lvar, xvar, s):
global status
s.set("timeout", 60000)
res =... | [
"sdasgup3@illinois.edu"
] | sdasgup3@illinois.edu |
ed76915b610809800f354a4ab1fc0c5a8f71f9ed | ea515ab67b832dad3a9b69bef723bd9d918395e7 | /03_Implementacao/DataBase/true_or_false_question_rnd_str_and_num_generator/question/version_1/full_program.py | e66ae745d62a41d643193de57ea99e00401c8202 | [] | no_license | projeto-exercicios/Exercicios-Python-de-correccao-automatica | b52be3211e75d97cb55b6cdccdaa1d9f9d84f65b | a7c80ea2bec33296a3c2fbe4901ca509df4b1be6 | refs/heads/master | 2022-12-13T15:53:59.283232 | 2020-09-20T21:25:57 | 2020-09-20T21:25:57 | 295,470,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 743 | py | from random import seed
from random import choice
from random import randint
from string import ascii_letters
seed(1367269)
r = []
def random_string_generator():
s = ""
for i in range(randint(1,30)):
s += choice(ascii_letters)
return s
def random_number_generator():
g = ""
for o in range(... | [
"ruski@milo.com"
] | ruski@milo.com |
8c56bfaa813ac3c41c1e6b020676287cd5f74e15 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02778/s865214328.py | 196e5c04737dc79089b27b8a4a948b7c64ea9e19 | [] | 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 | 33 | py | S = input()
l=len(S)
print("x"*l) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
86fa4cec9d22db445710f835c69c1fd9e64d3618 | a1dd25c922e1eb18d1fe45e297232ae3f8981960 | /ZA_Tools/sm/handler.py | c03586ac9d8ce21d8c7c91664fc70913328aa7ee | [] | no_license | xuziang111/zzuliACGN | e018341cad3fcf38be0f166018120632e5261cd5 | 653ce6e143c8f45286c132566bd086baf8a5a4bd | refs/heads/master | 2020-04-05T12:06:02.152398 | 2019-06-26T06:03:51 | 2019-06-26T06:03:51 | 156,858,504 | 1 | 0 | null | 2019-06-26T05:41:27 | 2018-11-09T12:22:03 | JavaScript | UTF-8 | Python | false | false | 2,529 | py | import requests,re,json
from ZA_Tools.sm.config import *
from ZA_Tools.views import fileSize
# 获取指定url的图片bytes
def urlImg(url):
'''
本来是只打算左sm图床的文本查看的,但是想象什么区别,
:param url: 需要请求的网络连接
:return:bytes
'''
req = requests.get(url=url)
choose = req.status_code
while choose!=200:
req = ... | [
"1025212779@qq.com"
] | 1025212779@qq.com |
54972203098c373ef6e3d8c1aa9985a7b440524f | 1699300e1225f0994fbfd5e13a7eb4436a5df14d | /13_PFW_Mini_Scans/03_SbS_Tomo_Lattice_V_24/simulation_parameters.py | cbd0bcfe1789219549d693ae9f42f461f8004a04 | [
"MIT"
] | permissive | HaroonRafique/PyORBIT_MD4224 | 26307a60ed79f3e170fbd655eb8cbe8cc9a0dfa9 | 6f68a80b2f8bf1cbeb9e2fc840925efe8a8b5672 | refs/heads/master | 2023-04-25T13:27:49.756836 | 2020-08-25T10:26:07 | 2020-08-25T10:26:07 | 215,249,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,013 | py | import numpy as np
parameters = {}
parameters['tunex'] = '621'
parameters['tuney'] = '624'
parameters['lattice_start'] = 'BWSV64'
parameters['DistType'] = 'Tomo'
parameters['n_macroparticles'] = int(5E4)
parameters['lattice_version'] = 'Optimised'
parameters['TwissType'] = 'Lattice'
paramet... | [
"haroon.rafique@protonmail.com"
] | haroon.rafique@protonmail.com |
ba0a03dca7656f61857b5a4532e54cc0f4ba912d | 146e0593f84f7c3b46c72fc05b6c6deb3c248b49 | /algorithms/VXX Short At Friday Open/VXX Short At Friday Open.py | 81cec7a22b40a709ba57d7ff4ddf0989af39fd96 | [] | no_license | shinseitaro/my-quantopian-archive | 4738f379b2a07d6fde2b4a584edfe28869b58b6c | 512dbd4242e443c40372264e27e12e407aa90a0d | refs/heads/master | 2023-01-10T06:15:19.880786 | 2020-11-14T07:05:05 | 2020-11-14T07:05:05 | 312,764,569 | 3 | 4 | null | null | null | null | UTF-8 | Python | false | false | 6,595 | py | """
This is a template algorithm on Quantopian for you to adapt and fill in.
"""
from quantopian.algorithm import attach_pipeline, pipeline_output
from quantopian.pipeline import Pipeline
from quantopian.pipeline.data.builtin import USEquityPricing
from quantopian.pipeline.factors import AverageDollarVolume
from quanto... | [
"shinsei.all@gmail.com"
] | shinsei.all@gmail.com |
26f3bef5281df659d7f22443bfedc248839567c4 | 13d7d2016f520539335059b1816a77af5186eeae | /TaobaoSdk/Domain/TipInfo.py | cfca3afccba721c6b98d6c06dab863743efc11bb | [] | no_license | isu007/TaobaoOpenPythonSDK | fc6ef7b88cf73405b835eb583c3cb0a860974437 | da2fba136f8d92a308c096012933f5796ddd465f | refs/heads/master | 2023-01-14T10:55:57.270444 | 2013-06-28T02:49:39 | 2013-06-28T02:49:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,844 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim: set ts=4 sts=4 sw=4 et:
## @brief 提示信息对象
# @author wuliang@maimiaotech.com
# @date 2013-03-07 19:54:29
# @version: 0.0.0
from copy import deepcopy
from datetime import datetime
import os
import sys
import time
import types
_jsonEnode = None
try:
import demjs... | [
"liyangmin@maimiaotech.com"
] | liyangmin@maimiaotech.com |
5ab7148e16d5e49fd2fa74173e382c8d21656af9 | ec7ffa6e595a10e5f215920cfc8568b354479321 | /Decision Trees/decision_trees..py | b16f04f03f51585ea34129d97d4876c5f2ae15af | [] | no_license | LouisYLWang/datamining-projects | 147e160a5acdc4b1cb9060f3b34ff5f4b7c6e7f1 | 1b93bfec3528ae9a6eec930d3952439516f265b2 | refs/heads/master | 2020-03-28T20:26:07.747641 | 2019-08-25T13:29:02 | 2019-08-25T13:29:02 | 149,070,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,550 | py | import numpy as np
from sklearn.datasets import load_iris
from collections import *
iris = load_iris()
X = iris.data
y = iris.target
featureNames = iris.feature_names
yNames = iris.target_names
def do_split(data, y, a_idx, theta):
"""
split the data according to a_idx (feature) and theta (threshold).
"""
... | [
"louis.yl.wang@outlook.com"
] | louis.yl.wang@outlook.com |
f2062367f0cb0039fd5b8e7575efbaaf1473dc54 | 1df9b7ff43c9e1316cdeb8defad7f64e4ffc4b06 | /lint_rules/ardana_forbidden_commands_rule.py | 5935d1001f3ccec825b552a785d559c2533b388b | [
"Apache-2.0"
] | permissive | ArdanaCLM/ardana-dev-tools | 3701e681b1aaa5b8987f2ab05ff418ff922924f0 | fde6e354351bf6dc19187d40e75aa5376a7b0f87 | refs/heads/master | 2022-11-07T01:48:38.878491 | 2022-10-06T17:13:28 | 2022-10-06T17:13:28 | 105,183,965 | 3 | 11 | Apache-2.0 | 2022-10-26T16:16:50 | 2017-09-28T18:20:50 | Shell | UTF-8 | Python | false | false | 1,499 | py | #
# (c) Copyright 2015-2016 Hewlett Packard Enterprise Development LP
# (c) Copyright 2017 SUSE LLC
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-... | [
"nicolas.bock@suse.com"
] | nicolas.bock@suse.com |
f3a44fe8320a69e9ead250cb54ed37d174d4168e | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/84/usersdata/174/56993/submittedfiles/lista1.py | d62849eb67c5b970a7151a37117df5baff0a561f | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,309 | py | # -*- coding: utf-8 -*-
# Criação/definição das funções necessárias
def qimpar(a):
# Código da função da quantidade de números impares
cont = 0
for i in range(0,len(a),1):
if a[i]%2==1:
cont=cont+1
print (cont)
def qpar(a):
# Código da função da quantidade de números pares
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
2286568be2e5699e0f0e3290bc1a8845b9559a8b | c045416b1f5c5bc4f0fbfa7d64a7cfa5afe1c3a4 | /magentaT/magenta/models/nsynth/wavenet/h512_bo16.py | 6a695790db6ef94b5a8413f7a3d9344d3efc8c5e | [
"Apache-2.0"
] | permissive | Tiasa/CreativeComposer | e037055c232dc6b261b4fd7542cab3865e7ec1c4 | b2ea3d1570b367068021726f1858587a0ad4d09f | refs/heads/master | 2021-06-27T06:59:37.351749 | 2020-10-29T21:54:19 | 2020-10-29T21:54:19 | 143,206,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,494 | py | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"tiasa.ap.10@gmail.com"
] | tiasa.ap.10@gmail.com |
d80cdadb8da2cfb42e5d416f27c3914df9e80da9 | d840de2c1667e48d2350e6f7bcd797fb8b86ef28 | /backend/home/migrations/0002_load_initial_data.py | e30ee147f301f5d00cec60a00fe6567c43acde67 | [] | no_license | crowdbotics-apps/afa-22411 | 43b4805b1248a7ced058e78bba8dc80d2a447989 | 70d3214a818500e8617cb8a1e78c33448e4ec311 | refs/heads/master | 2023-01-12T19:11:35.736797 | 2020-11-08T21:12:24 | 2020-11-08T21:12:24 | 311,154,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,266 | py | from django.db import migrations
def create_customtext(apps, schema_editor):
CustomText = apps.get_model("home", "CustomText")
customtext_title = "AFA"
CustomText.objects.create(title=customtext_title)
def create_homepage(apps, schema_editor):
HomePage = apps.get_model("home", "HomePage")
homep... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
5ac638f2383940f01db330916ce8044182c815c2 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/bob/62692bb50caa4f10b57afcdfd02be686.py | 394f08247d2f2a6de4b37f9c978ee1474e6309b6 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 632 | py | class Bob(object):
def __init__(self):
self.reaction_to = {'silence': 'Fine. Be that way!',
'scream': 'Woah, chill out!',
'question': 'Sure.',
'anything_else': 'Whatever.',
}
def hey(self... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
9b09379351d2d19aa28d6273c4a64693f969cfbf | 9c3621fc5c2bc5156dca625b8fab3c67cae5ca50 | /competitions/talking/z1.py | a088cba91fade969bfa8109aee4a6987bca009e7 | [] | no_license | tolazhewa/Daily-Neural-Network-Practice-2 | fb4c11ed9bfbb1776aa5bf0bffc0e5b848f2707a | 59907bfee2a7132f0ab8be2d735de7c63ce82639 | refs/heads/master | 2020-04-03T23:45:26.941978 | 2018-10-14T06:56:09 | 2018-10-14T06:56:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | import gc
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
# Load subset of the training data
path = '../../Dataset/TalkingDataAdTracking/'
X_train = pd.read_csv(path+'train.csv', nrows=1000000, parse_dates=['click_time'])
# Show the head of the table
print(X_train.head())
print('---------------... | [
"jae.duk.seo@ryerson.ca"
] | jae.duk.seo@ryerson.ca |
cfd1ade48d7f7c26060b66477e83bedb618ff9b4 | 7172fb0554d2c3f69964079f3543f5d7501ad399 | /12.文件的操作/20.高级装饰器.py | ebb364df67bc0ecaeaab69a2c788c428a71187df | [] | no_license | menghaoshen/python | 6179d37e53ce64bf657cb399d68af53b89f7d336 | e8e371a095a624094bbbbd5836b98f0a27d77608 | refs/heads/master | 2023-02-28T02:09:05.886748 | 2021-01-30T10:57:54 | 2021-01-30T10:57:54 | 334,394,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | def can_play(clock):
def handle_action(fn):
print('最外层函数被调用了,clock={}'.format(clock))
def do_action(name,game):
if clock < 21:
fn(name,game)
else:
print('太晚了,不能玩游戏了')
return do_action
return handle_action
@can_play(12) #装饰器函数带参数
... | [
"you@example.com"
] | you@example.com |
dba8b7094b2fbe4674b4e43843a633a620abb554 | 068b917530de493f0222706bb600fbc40089af9f | /tcod/map.py | 59daea825b616c2df5e30db2f441826b74f81c80 | [
"BSD-2-Clause-Views"
] | permissive | brianbruggeman/libtcod-cffi | 35ff409781e2879f036ff7145d7cdc161613c46e | 1b8f82d26bf491167fc5ad6144012cb27da85750 | refs/heads/master | 2020-12-07T15:24:28.083010 | 2015-10-28T22:55:17 | 2015-10-28T22:55:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,245 | py |
from .libtcod import _lib, _ffi
FOV_BASIC = 0
FOV_DIAMOND = 1
FOV_SHADOW = 2
FOV_PERMISSIVE_0 = 3
FOV_PERMISSIVE_1 = 4
FOV_PERMISSIVE_2 = 5
FOV_PERMISSIVE_3 = 6
FOV_PERMISSIVE_4 = 7
FOV_PERMISSIVE_5 = 8
FOV_PERMISSIVE_6 = 9
FOV_PERMISSIVE_7 = 10
FOV_PERMISSIVE_8 = 11
FOV_RESTRICTIVE = 12
NB_FOV_ALGORITHMS = 13
def n... | [
"4b796c65@gmail.com"
] | 4b796c65@gmail.com |
aed495c2dd6f597d4cfd4d07deb7e94781e139db | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_95/648.py | b8040e847731229abfc8837185578c10db84625c | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | import sys
from string import maketrans
N = int(sys.stdin.readline()[:-1])
s = 'yhesocvxduiglbkrztnwjpfmaq'
d = 'abcdefghijklmnopqrstuvwxyz'
trantab = maketrans(d, s)
for i in range(N):
line = sys.stdin.readline()[:-1]
print "Case #%d: %s" % (i+1, line.translate(trantab))
| [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
03d86c51d30c2e3babe61e5eda4bc7ff35237b33 | f3b233e5053e28fa95c549017bd75a30456eb50c | /p38a_input/L2N/2N-3FN_MD_NVT_rerun/set_1ns_equi_1.py | 5164abe3ad219516ba5bb94682ac3529c0605f47 | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 927 | py | import os
dir = '/mnt/scratch/songlin3/run/p38a/L2N/MD_NVT_rerun/ti_one-step/2N_3FN/'
filesdir = dir + 'files/'
temp_equiin = filesdir + 'temp_equi_1.in'
temp_pbs = filesdir + 'temp_1ns_equi_1.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
fo... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
a6a81ec6e513c1063f2752720d5da3c73755ea38 | ecfb93a3fe660d2931e4b2c6751619966f8eefc5 | /radio/receivers.py | 7dd592dcc6ed35f76160c05bbbb9ecf407e34436 | [
"MIT"
] | permissive | RadioTechGuy/trunk-player | 1ac8841b5f9fa0c23595b9c26c0653aeead4f42b | 63411e32a5c1d28de7f8eea3460614cbc9e7d8d0 | refs/heads/master | 2023-04-09T06:37:54.199510 | 2021-04-28T03:33:23 | 2021-04-28T03:33:23 | 299,462,176 | 0 | 0 | MIT | 2020-09-29T00:19:48 | 2020-09-29T00:19:47 | null | UTF-8 | Python | false | false | 1,882 | py | # receivers.py
import json
import logging
import datetime
from django.dispatch import receiver
from django.contrib.auth.models import User
from pinax.stripe.signals import WEBHOOK_SIGNALS
from radio.models import Plan, StripePlanMatrix, Profile
from pinax.stripe.models import Plan as pinax_Plan
# Get an instance of... | [
"dreinhold@gmail.com"
] | dreinhold@gmail.com |
b8c6066e8adaf5f5b42375c690100d5b627d4a62 | 0eaf0d3f0e96a839f2ef37b92d4db5eddf4b5e02 | /abc153/c.py | 2ba2c5a74a30c51100976e988450e03225deee46 | [] | no_license | silphire/atcoder | b7b02798a87048757745d99e8564397d1ca20169 | f214ef92f13bc5d6b290746d5a94e2faad20d8b0 | refs/heads/master | 2023-09-03T17:56:30.885166 | 2023-09-02T14:16:24 | 2023-09-02T14:16:24 | 245,110,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | n, k = map(int, input().split())
h = map(int, input().split())
h = list(sorted(h))
if k > 0:
print(sum(h[:-k]))
else:
print(sum(h)) | [
"silphire@gmail.com"
] | silphire@gmail.com |
ebc04a8852f78a7006d0793ead12514637977e7a | 44cc6aea308228660f90394447669d6ad461aebd | /tests/perf/socket/server.py | a2b4f0d6ea7dcb0c1c7cc93234b75ba516f035d7 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | HDFGroup/hsds | af6c83e822088d430de3285f28ebfb32a89b05aa | 21e0e25accda38f21e69c3326f794d34379378c1 | refs/heads/master | 2023-08-18T05:11:29.826766 | 2023-08-09T13:57:27 | 2023-08-09T13:57:27 | 64,322,709 | 110 | 57 | Apache-2.0 | 2023-09-07T11:08:12 | 2016-07-27T16:04:12 | Python | UTF-8 | Python | false | false | 1,821 | py | import sys
import socket
import tempfile
from random import randint
from multiprocessing import shared_memory
import numpy as np
import config
host = config.get("host")
port = int(config.get("port"))
NUM_BYTES = int(config.get("num_bytes"))
if NUM_BYTES % 8 != 0:
print("choose a num_bytes value divisible by 8")
... | [
"jreadey@hdfgroup.org"
] | jreadey@hdfgroup.org |
593cff5f90f27d2b5d57ce966cd8035405037e36 | 97152d60e70d4e407746d0715188c4ab551406a3 | /aryth/bound/vector/__init__.py | 8e0e7b5bdb83dc814d7c7dfe4c32972d6aff13dd | [] | no_license | pydget/aryth | bea21acb813465fb191adeaa6406f90abec90dd1 | 711b8426bd1e1d3936652830f739d8ffd9c73876 | refs/heads/master | 2023-07-25T00:21:24.092375 | 2021-09-07T01:36:48 | 2021-09-07T01:36:48 | 287,436,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | from .bound import bound
from .duobound import duobound
from .indicator import max_by, min_by
from .solebound import solebound
| [
"hoyeungw@outlook.com"
] | hoyeungw@outlook.com |
035fbdf78335fa50f9845c034e4ee15d52ec97ad | c87420c140fb5cb757e68ee02a9a76ecdae919e8 | /rest_framework/core/compressors/lzma.py | 2314f74d1c2f816230a7eee89af3bddd198e4d80 | [] | no_license | caowenbin/uvicorn-rest-framework | 1ad83e1c612498745c8b3d6fcb6cb4d715901700 | 1960f7c9289d67905ba4abd108b1b882b3d0381c | refs/heads/master | 2021-03-11T21:55:11.961089 | 2020-03-11T12:46:01 | 2020-03-11T12:46:01 | 246,562,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | # -*- coding: utf-8 -*-
import lzma
from rest_framework.core.exceptions import CompressorError
class Handler:
min_length = 100
preset = 4
def compress(self, value):
if len(value) > self.min_length:
return lzma.compress(value, preset=self.preset)
return value
def decompre... | [
"caowenbin@xuetangx.com"
] | caowenbin@xuetangx.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.