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
ce45e39c5d8bac1037969802999ef4d0ac487163
e3d969e2c9e4b57f4f7d58af5e44a00aa8fb15d3
/0886 Possible Bipartition.py
efd3c30cb3226e421b6cc27ccfa5dbea2357067a
[ "MIT" ]
permissive
kevin-fang/leetcode
2744ff01e791db6f60edf946ef71451fae92ef6f
3958f888b30bb3e29916880ecec49b3870a0bea3
refs/heads/master
2022-12-15T07:50:01.056016
2020-09-10T03:47:53
2020-09-10T03:47:53
294,296,037
3
0
MIT
2020-09-10T03:47:39
2020-09-10T03:47:38
null
UTF-8
Python
false
false
951
py
class Solution: def possibleBipartition(self, N: int, dislikes: List[List[int]]) -> bool: neighbors = defaultdict(set) for a,b in dislikes: neighbors[a].add(b) neighbors[b].add(a) colors = defaultdict(int) for i in range(1,N+1): ...
[ "mdabedincs@gmail.com" ]
mdabedincs@gmail.com
d5563aac9230b36f5b80103075450f10c7274578
2de2437bbf480f6518554bcb204106dd37262023
/office365/runtime/serviceOperationQuery.py
54dddc29343498b339aa8a62c19dcbc2079b3d14
[ "MIT" ]
permissive
stardust85/Office365-REST-Python-Client
386e5bba16cdee1472b7e23d405a4bf9b6f5e73a
cd369c607c7d137a000734e9c5e8f03ae3e3c603
refs/heads/master
2022-09-29T19:44:02.166438
2020-06-03T23:12:40
2020-06-03T23:12:40
269,356,313
0
0
MIT
2020-06-04T12:41:03
2020-06-04T12:41:02
null
UTF-8
Python
false
false
974
py
from office365.runtime.client_query import ClientQuery from office365.runtime.resource_path_service_operation import ResourcePathServiceOperation class ServiceOperationQuery(ClientQuery): def __init__(self, binding_type, method_name=None, method_params=None, parameter_type=None, parameter_name=No...
[ "Ajilon80!" ]
Ajilon80!
6ea6c324e5ab3ebb985b2079358f585f8734be93
76e7feaea74beb9d337885dcaa3ee59e26d9db70
/basics/nn2.py
6f9cbd8aea264996b27941a924761f4a52324c18
[]
no_license
sayantansatpati/dlf
8f9bec134212a6608f2b6854c120253677c71959
ce8b083f31cd1b4f67ea3718cbbad5cac1eff1f4
refs/heads/master
2021-01-11T15:47:02.118653
2017-11-14T21:04:19
2017-11-14T21:04:19
79,931,519
1
0
null
null
null
null
UTF-8
Python
false
false
619
py
import numpy as np def disp(a,msg): print '\n### {0}'.format(msg) print 'nDim: {0}, shape: {1}'.format(np.ndim(a), a.shape) print a[:5] X = np.array([ [0,0,1],[0,1,1],[1,0,1],[1,1,1] ]) disp(X,"X") y = np.array([[0,1,1,0]]).T disp(y,"y") syn0 = 2*np.random.random((3,4)) - 1 disp(syn0,"syn0") syn1 = 2*np...
[ "sayantan.satpati.sfbay@gmail.com" ]
sayantan.satpati.sfbay@gmail.com
f6cb4b6acd7359ae58644de8ce42a06ca40d370e
ce722f35f63d7e7af3e9890cbea50b05d32c34c7
/crawler/dspider/spiders/hkexSituationSpider.py
f5c24ebe06cbdf7bfa80ffba929a9fa2839a4b2a
[]
no_license
tfangz888/smart_deal_tool
bc6645047e2c3ff36af0baed62e31d1c6cec4a15
0f0e4edfec582e93146b30273621a28c36a5d6ca
refs/heads/master
2020-05-17T03:12:16.720526
2019-04-23T14:11:10
2019-04-23T14:11:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,409
py
#coding=utf-8 import json import scrapy from datetime import datetime, timedelta from scrapy.spidermiddlewares.httperror import HttpError from twisted.internet.error import DNSLookupError from twisted.internet.error import TimeoutError from dspider.myspider import BasicSpider from dspider.items import HkexTradeOverview...
[ "hellobiek@gmail.com" ]
hellobiek@gmail.com
24050d06ae4154d502447a8ccfe7d229fa83e08b
2286b880df34e1bfabe79b3605de287040404560
/04-04/todolist/mahasiswa/views.py
7259eaec7ed0098020a0f8469da5bc93517f17b6
[]
no_license
iklimah27/praxis-academy-2
e5d8b08807980d6fd8ff6ab73caa6ea18083c7f8
925853b520c9a8d7a87d8980d7fedfa604d3b4c8
refs/heads/master
2022-12-25T01:54:45.572190
2020-10-15T07:22:06
2020-10-15T07:22:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,173
py
from django.shortcuts import render from django.shortcuts import render, redirect from . import models, forms def index(req): tasks = models.Mhs.objects.all() return render(req, 'mahasiswa/index.html',{ 'data': tasks, }) def new(req): form_input = forms.MhsForm() if req.POST: form_...
[ "hatami391998@gmail.com" ]
hatami391998@gmail.com
0b25adda0ddd3b445d9fee6ae58a58302663df91
f8457b044305b5ef4944ab649c44268e9a32a0bc
/data/ship/color_gen.py
7a85a179f64da38b63c1d1d1d76d5e6716e7f723
[ "MIT" ]
permissive
PcloD/PixelShipGenerator
163d2b2d7d1f9eea2d316c2d7d9c29d1c84d581a
33e4fa004890f388cd679bbbb6837bcc05465bbe
refs/heads/master
2020-05-05T08:19:39.968725
2016-12-19T00:45:10
2016-12-19T00:45:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,774
py
from random import * class ColorPalette(object): def __init__(self, num, variance=30): self.num = num self.variance = variance self.base = self.set_random_color() self.palette = self.set_palette() def set_palette(self): palette = { 1: self.base, ...
[ "marzecsean@gmail.com" ]
marzecsean@gmail.com
8d07dbb7d243048f69e7a6b17948b087345934c2
7e0cdabf1e7514fb0e3d53548eaadd7be85ae5e6
/configs/helmet/merge/faster_rcnn_mobilenetv2_64_fpn_2x.py
a668d159c1d3ba2cfd6199b16e82ba9a061d865f
[ "Apache-2.0" ]
permissive
fanqie03/mmdetection.bak
ce2697f3a0ca5603d923856fbdc8b7bb32066939
0bc0ea591b5725468f83f9f48630a1e3ad599303
refs/heads/master
2023-05-12T02:44:11.209749
2020-03-09T01:58:39
2020-03-09T01:58:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,419
py
# model settings model = dict( type='FasterRCNN', pretrained='torchvision://mobilenet_v2', backbone=dict( type='MobileNetV2', out_indices=(3, 6, 13, 18)), neck=dict( type='FPN', in_channels=[24, 32, 96, 1280], out_channels=64, num_outs=5), rpn_head=dic...
[ "1242733702@qq.com" ]
1242733702@qq.com
c5e37668b4e5631218e5d75f9260e597329993b2
7296c1214741a8cd3e2b70c90de6784d9fa53dba
/Assignments/Assignment_2/score.py
7fd043b850098a87a8580534f7d2b08d979708c8
[]
no_license
msaad1311/MLOps
949912c5417db5c08ce69df46867c3e84b90f810
484f2124cd84472c7971d428982507b9215a400f
refs/heads/main
2023-03-29T12:13:38.286713
2021-03-30T14:01:57
2021-03-30T14:01:57
349,442,396
0
0
null
null
null
null
UTF-8
Python
false
false
1,788
py
import preprocessing_functions as pf import config # =========== scoring pipeline ========= # impute categorical variables def predict(data): # extract first letter from cabin data['cabin']=pf.extract_cabin_letter(data,'cabin') # impute NA categorical data[config.CATEGORICAL_VARS]=pf.impute_na(d...
[ "50722220+msaad1311@users.noreply.github.com" ]
50722220+msaad1311@users.noreply.github.com
5a8c28170c5db7fe6028857aa65802779eba4dee
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/synthetic/sieve-big-6747.py
4ecb7b1858f7119a72a2b841dd3562b74bafd51c
[]
no_license
Virtlink/ccbench-chocopy
c3f7f6af6349aff6503196f727ef89f210a1eac8
c7efae43bf32696ee2b2ee781bdfe4f7730dec3f
refs/heads/main
2023-04-07T15:07:12.464038
2022-02-03T15:42:39
2022-02-03T15:42:39
451,969,776
0
0
null
null
null
null
UTF-8
Python
false
false
31,752
py
# A resizable list of integers class Vector(object): items: [int] = None size: int = 0 def __init__(self:"Vector"): self.items = [0] # Returns current capacity def capacity(self:"Vector") -> int: return len(self.items) # Increases capacity of vector by one element def incr...
[ "647530+Virtlink@users.noreply.github.com" ]
647530+Virtlink@users.noreply.github.com
3269ab51f45d81768072c57f786466adaf54e3a9
4331b28f22a2efb12d462ae2a8270a9f666b0df1
/.history/dvdstore/webapp/views_20190914162701.py
35796077408bdddb2144ad85082afb3e14261908
[]
no_license
ZiyaadLakay/csc312.group.project
ba772a905e0841b17478eae7e14e43d8b078a95d
9cdd9068b5e24980c59a53595a5d513c2e738a5e
refs/heads/master
2020-07-26T23:30:22.542450
2019-09-16T11:46:41
2019-09-16T11:46:41
200,703,160
0
0
null
2019-08-05T17:52:37
2019-08-05T17:52:37
null
UTF-8
Python
false
false
10,190
py
from django.shortcuts import render from .models import DVD, Transaction, Customer from django.core.paginator import EmptyPage,PageNotAnInteger, Paginator from django.db.models import Q from django.contrib.auth.models import User, auth from django.shortcuts import render, redirect from django.contrib import messages fr...
[ "uzairjoneswolf@gmail.com" ]
uzairjoneswolf@gmail.com
7495126aafd1f8be0bb43992f7a74b53439b8e24
0b027f27ff6951c6447fcc6c8ae984e2d0d24534
/first_project_20443/settings.py
a022a17f2b4c202d95257fd99e99039cfec6c886
[]
no_license
crowdbotics-apps/first-project-20443
4fb6f29497797fb72f477d3bb862e69f525e54d4
48d036a3b30583e21705b9000231a0ad465272c0
refs/heads/master
2022-12-24T20:11:27.110948
2020-09-19T17:11:06
2020-09-19T17:11:06
296,915,301
0
0
null
null
null
null
UTF-8
Python
false
false
5,639
py
""" Django settings for first_project_20443 project. Generated by 'django-admin startproject' using Django 2.2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ ...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
aa0aea44ef815acaed2f9f28a547f09da18bcd98
378745aa3bbfabbe341fa0e6a3b0b572cc83259a
/test.py
bfa99442cda06de79df24867c6edec8e0f9394da
[]
no_license
stemcloud01/test
c6c8dd643874a08f34db2a3272c7896587422817
72a1fbf77b4f2094b6127261bdf53bf43d4fc02f
refs/heads/master
2020-08-26T19:23:16.214851
2019-10-23T19:58:52
2019-10-23T19:58:52
217,119,266
0
0
null
null
null
null
UTF-8
Python
false
false
79
py
#!/usr/bin/python import subprocess subprocess.call(["echo","helloworld1"])
[ "root@localhost.localdomain" ]
root@localhost.localdomain
7dc978fbff839ff4c2fc09ba79dd84913b12d20a
fbcac9ff8664e857e1f7d5409b170a23f432763f
/tests/test_util.py
4466050d91c1fb68eb4969ac37cebed560b4c6ea
[]
no_license
claraj/iss_slack_bot
289d4af3cf108e888db3170048d7aa491984f759
8e36e81d8d571dfceb7e40ede44ca720fc699e50
refs/heads/master
2021-09-06T08:59:07.966377
2018-02-04T17:01:53
2018-02-04T17:01:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,471
py
from unittest import TestCase from utils import in_future from datetime import datetime, timedelta import time # Testing functions unrelated to GAE features class TestInFuture(TestCase): def setUp(self): self.now = datetime.today() self.add_ten_seconds = timedelta(seconds = 10) self.add_...
[ "clara@clara.com" ]
clara@clara.com
753f1bc6189e0ee7037082baa53044333b792640
275a96a33ae1f89e7b2ee0ecdbac7d78abe6d6cc
/test/test_pos_api.py
8c2788266c7397b2d42f5f30041879ecad09d054
[]
no_license
cascadiarc/cyclos-python-client
8029ce07174f2fe92350a92dda9a60976b2bb6c2
a2e22a30e22944587293d51be2b8268bce808d70
refs/heads/main
2023-04-03T16:52:01.618444
2021-04-04T00:00:52
2021-04-04T00:00:52
354,419,532
0
0
null
null
null
null
UTF-8
Python
false
false
1,602
py
# coding: utf-8 """ Cyclos 4.11.5 API The REST API for Cyclos 4.11.5 # noqa: E501 OpenAPI spec version: 4.11.5 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import swagger_client from swagger_client.api.pos_api im...
[ "dan@leftcoastfs.com" ]
dan@leftcoastfs.com
b49cd004b6a2b08e9956b2115e38c5393bc16c91
9919439783a3d9ec7a4435e50e0225ea1d6f2b69
/django_rest_json_api_example/models.py
f5f2ab812b4f5594b6975c8ef4dc23d0ff0dd16c
[]
no_license
newcontext-oss/django-rest-json-api
19c2e5210c59d02eee88afb3061761f02f4037d6
107ef896397d93715d9f3eed34fcb6f14d5893b9
refs/heads/master
2021-01-15T20:27:51.771682
2017-10-02T18:41:28
2017-10-02T18:41:28
99,850,109
1
0
null
null
null
null
UTF-8
Python
false
false
970
py
""" Django ORM models for the JSON API examples. """ import uuid from django.db import models class Person(models.Model): """ JSON API example person model. """ uuid = models.UUIDField(default=uuid.uuid4()) first_name = models.CharField(max_length=255) last_name = models.CharField(max_lengt...
[ "me@rpatterson.net" ]
me@rpatterson.net
e53a2778967e857301d30abbdf2195fae233efaa
691793de7d07b17918d076b319281c706f7275c0
/signing_today_client/models/inline_response2013.py
2e6154a84d21e42c1c2a9d692ad4fc248a6ebdca
[ "MIT" ]
permissive
signingtoday/signingtoday-sdk-python
1ddfae5340690c80760c500436631d4a8ff9c87f
ed267279622fb59f2ad8fa289157fc9cdf9d8a5b
refs/heads/master
2020-12-03T15:32:35.755222
2020-03-24T08:27:11
2020-03-24T08:27:11
231,372,803
0
0
null
null
null
null
UTF-8
Python
false
false
13,273
py
# coding: utf-8 """ Signing Today API KlNpZ25pbmcgVG9kYXkqIGVuYWJsZXMgc2VhbWxlc3MgaW50ZWdyYXRpb24gb2YgZGlnaXRhbCBzaWduYXR1cmVzIGludG8gYW55CndlYnNpdGUgYnkgdGhlIHVzZSBvZiBlYXN5IHJlcXVlc3RzIHRvIG91ciBBUEkuIFRoaXMgaXMgdGhlIHNtYXJ0IHdheSBvZgphZGRpbmcgZGlnaXRhbCBzaWduYXR1cmUgc3VwcG9ydCB3aXRoIGEgZ3JlYXQgdXNlciBleHBl...
[ "smartcloud@bit4id.com" ]
smartcloud@bit4id.com
5ceec9be34f8bee06d3162cec9aacb9cb4578b59
eb9af63f5874345c03b567a944e2cb67ec8995d5
/leetcode/binarySearch/findminimumValueinSortedRotatedWIthDuplicate.py
2731d45cce9d2ad7025bb28d97bc1d079678bb36
[]
no_license
ziqingW/pythonPlayground
262fc143c7997fb9f9a9b148359c4d2c7de84fc7
3aab1747a1e6a77de808073e8735f89704940496
refs/heads/master
2021-01-25T13:41:56.494266
2019-03-10T02:48:04
2019-03-10T02:48:04
123,607,323
0
0
null
null
null
null
UTF-8
Python
false
false
984
py
# Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. # (i.e., [0,1,2,4,5,6,7] might become [4,5,6,7,0,1,2]). # Find the minimum element. # The array may contain duplicates. class Solution: def findMin(self, nums): """ :type nums: List[int] :...
[ "redtaq@hotmail.com" ]
redtaq@hotmail.com
2c1513fb42947cf5ca374844cd41d2a4d4ae5bfd
ad13583673551857615498b9605d9dcab63bb2c3
/output/models/ms_data/attribute_group/attg_d018_xsd/__init__.py
624bfe9285086da05657bad0b2b20d96f60e002a
[ "MIT" ]
permissive
tefra/xsdata-w3c-tests
397180205a735b06170aa188f1f39451d2089815
081d0908382a0e0b29c8ee9caca6f1c0e36dd6db
refs/heads/main
2023-08-03T04:25:37.841917
2023-07-29T17:10:13
2023-07-30T12:11:13
239,622,251
2
0
MIT
2023-07-25T14:19:04
2020-02-10T21:59:47
Python
UTF-8
Python
false
false
141
py
from output.models.ms_data.attribute_group.attg_d018_xsd.attg_d018 import ( AttgRef, Doc, ) __all__ = [ "AttgRef", "Doc", ]
[ "tsoulloftas@gmail.com" ]
tsoulloftas@gmail.com
2aba281c8d4b6dee7d96c653a117739563d1e6bd
89ba6569e82bfe1abbb85f58c3a264240ef5b68f
/Scripts/calc_SNA_Data_Eurasia_CDRSCE.py
375ff378a7d20bed12ffd1dcee10ec43332aa0ea
[ "MIT" ]
permissive
muskanmahajan37/AMIP_Simu
b3792c24f2f82749ac4d9df48a11bb46d2b82236
6370626fe81baf5c2280dab95fdab08a873f3a84
refs/heads/master
2022-02-08T08:09:08.575967
2019-07-25T22:29:34
2019-07-25T22:29:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,914
py
""" Script calculates Eurasian snow area index for October-November using data from the Rutgers Global Snow Lab data Notes ----- Author : Zachary Labe Date : 25 July 2019 """ ### Import modules import datetime import numpy as np import matplotlib.pyplot as plt import scipy.stats as sts import scipy.signal a...
[ "zlabe@uci.edu" ]
zlabe@uci.edu
ec6aab7ffc23ab1a4c0880cb262f17cb5af1fd33
5d3fd9328cf3fab1056d79cd8464df3f1719b30e
/MG5_aMC_v2_6_7/tests/parallel_tests/madevent_comparator.py
cfe449cb4c00d2f3799c94df2b4fa7c1e617ba95
[]
no_license
BKailasapathy/madgraph
c8d34147146edda1f147e8259539c0e86e6209c2
949fcf00f111eadf8948827e2933952b7823778d
refs/heads/master
2023-07-15T08:38:08.382422
2021-08-21T09:12:23
2021-08-21T09:12:23
398,511,168
0
0
null
null
null
null
UTF-8
Python
false
false
25,934
py
################################################################################ # # Copyright (c) 2009 The MadGraph5_aMC@NLO Development team and Contributors # # This file is a part of the MadGraph5_aMC@NLO project, an application which # automatically generates Feynman diagrams and matrix elements for arbitrary # h...
[ "balashangar.kailasapathy@cern.ch" ]
balashangar.kailasapathy@cern.ch
569020ba811d88fe1fc6766d117bea58a7e411d7
b53077fb048007f526f447b4bcdd97af8d98ba7d
/python/uri1011.py
babf079d95a45c284704296eeb9e5e689f876113
[]
no_license
ClaudioSiqueira/URI
862e58e13943a4fcdccee21c134448912d77a318
de75c6bbbddea62e9aafa29954e892054acf829c
refs/heads/master
2021-02-11T04:05:01.393249
2020-05-21T00:05:28
2020-05-21T00:05:28
244,451,958
1
0
null
null
null
null
UTF-8
Python
false
false
100
py
raio = float(input()) volume = (4 * 3.14159 * raio ** 3)/3 print('VOLUME = {:.3f}'.format(volume))
[ "crsjunior2001@gmail.com" ]
crsjunior2001@gmail.com
9d57190c339f4d7c406c41b3ab2a49e9f86c568c
26e3d85a3b61219e13f794289ff2b70baa248f14
/material/frontend/views/detail.py
0bad092ff2ef47b543351b523af9a399ee2695e5
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause" ]
permissive
viewflow/django-material
ac8dd10daa8352440845c767b07cafc7f7d09216
31b1ce5f6fecc10ba4c9babe4219fb7be97dbf93
refs/heads/master
2023-08-15T23:32:58.330321
2023-04-12T06:12:07
2023-04-12T06:12:40
29,337,344
2,818
570
BSD-3-Clause
2023-03-04T02:28:50
2015-01-16T07:17:33
CSS
UTF-8
Python
false
false
5,692
py
from __future__ import unicode_literals from django.contrib.auth import get_permission_codename from django.core.exceptions import PermissionDenied, ValidationError from django.db import models from django.http import Http404 from django.urls import reverse from django.views import generic class DetailModelView(gene...
[ "kmmbvnr@gmail.com" ]
kmmbvnr@gmail.com
f0177181db3771cd7db55d41e5558003f6dee2c1
478de38a95c2729ee2ef8c77b1c5a81f23aedb59
/Programming-Algorithm/Factorial Trailing Zeroes.py
b0bbec923fa02afbe6ed300d334715b8a0dfae98
[]
no_license
shuzhancnjx/leetcode-
0c711f720ef653ddff2af3af697a453122c28403
12093c92ef33707ad8ccdd59ad040c04cad1ee3b
refs/heads/master
2020-12-24T16:32:25.976747
2016-03-03T15:36:44
2016-03-03T15:36:44
37,101,621
0
0
null
null
null
null
UTF-8
Python
false
false
419
py
# -*- coding: utf-8 -*- """ Created on Thu Sep 24 17:00:01 2015 @author: ZSHU """ """ a simple algorithm based on the wiki. """ class Solution(object): def trailingZeroes(self, n): """ :type n: int :rtype: int """ res=0 for i in xrange(1, n): if 5**i<=...
[ "zshu@ets.org" ]
zshu@ets.org
bc7cd024c8017f602b40f68ae8f58135a8d780cf
df1306cdc82ccbe730d77d78740004abc10bb492
/src/main/python/config.py
d0b40c696caac30b756c79c5e59af50081cb0bc7
[]
no_license
richburdon/flask-demo
cc656c3c750977c8ee2a312554fda146d83919d3
16f346f77af7824807e8e30ed9c92ceab55cfa82
refs/heads/master
2020-03-27T23:17:30.220307
2015-08-02T18:07:10
2015-08-02T18:07:10
38,577,472
0
0
null
null
null
null
UTF-8
Python
false
false
438
py
# # Copyright 2015 Alien Laboratories, Inc. # import flask import flask.views from injector import Key, Module, inject, singleton CONFIG = Key('configuration') @singleton @inject(app=flask.Flask) class ConfigModule(Module): def configure(self, binder): binder.bind(CONFIG, { 'app': { ...
[ "EMAIL" ]
EMAIL
1890b3225e9fecb70d999a6c4e8c5668902b71fc
ce196aba0adde47ea2767eae1d7983a1ef548bb8
/txtFile_覆盖式生成文件3_姓名生成.py
81646a132236fad56879debd3ae1c06fee1131f6
[]
no_license
xiang-daode/Python3_codes
5d2639ffd5d65065b98d029e79b8f3608a37cf0b
06c64f85ce2c299aef7f9311e9473e0203a05b09
refs/heads/main
2023-08-30T14:59:55.123128
2021-11-03T05:12:24
2021-11-03T05:12:24
333,632,892
0
2
null
null
null
null
UTF-8
Python
false
false
326
py
# txtFile_覆盖式生成文件: import random f = "myTest.txt" a =range(200) with open(f,"w") as file: #"w"代表着每次运行都覆盖内容 for m in a: rnd1=int(20902*(random.random())) rnd2=int(20902*(random.random())) file.write(str(m)+":\t 项"+chr(0x4e00+rnd1)+chr(0x4e00+rnd2)+"\n")
[ "noreply@github.com" ]
xiang-daode.noreply@github.com
9d2c2c7b6917bdaaba2e101d20bd9c5cd9fd32c0
f58e6240965d2d3148e124dcbdcd617df879bb84
/tensorflow_datasets/core/community/load.py
2718ecb5588a9c29696143b81ddbd0feec48c6cd
[ "Apache-2.0" ]
permissive
suvarnak/datasets
b3f5913cece5c3fe41ec0dde6401a6f37bfd9303
3a46548d0c8c83b2256e5abeb483137bd549a4c1
refs/heads/master
2022-09-27T03:38:20.430405
2022-07-22T15:21:33
2022-07-22T15:27:07
176,061,377
0
0
Apache-2.0
2019-03-17T05:45:33
2019-03-17T05:45:32
null
UTF-8
Python
false
false
2,465
py
# coding=utf-8 # Copyright 2022 The TensorFlow Datasets Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
415268d2f1f79abf144496915ce9c4b774eb9e79
147e022b38e05fb2f6967aa4d5e50816221f8bf5
/matches/middleware.py
e4dbf0afe8f40b927f4991ce1b29b5f4ad73d44c
[]
no_license
Shirhussain/Meet-your-match
a542f0fdcab573ba70740bfbd8d2bb6c2603bdc9
fd9a8beabe7288aca6fae07f1a7bc0b68c0223a8
refs/heads/main
2023-02-25T20:30:22.647930
2021-02-04T08:02:05
2021-02-04T08:02:05
332,492,486
0
0
null
null
null
null
UTF-8
Python
false
false
1,316
py
from django.contrib import messages from django.urls import reverse from django.conf import settings from django.shortcuts import HttpResponseRedirect URLS = [reverse(url) for url in settings.SUBSCRIPTION_REQUIRED_URLS] class CheckMembership: def __init__(self, get_response): self.get_response = get_resp...
[ "sh.danishyar@gmail.com" ]
sh.danishyar@gmail.com
e67e63767b785e8631555fc27647b748c11857c0
f86f62734c167e127f5f6a87b77dbf18d4b9ffb5
/pandas_ta/core.py
9c953b7bc6357dcf855a17784a32d32a0aaec08b
[ "MIT" ]
permissive
jingmouren/pandas-ta
dcb0291d9c665af5361e3e84cb4ae865436cb455
20c6c5172a64540264d9d5192df05a37f214cf87
refs/heads/master
2020-06-17T19:31:51.318930
2019-06-13T15:02:05
2019-06-13T15:02:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
41,794
py
# -*- coding: utf-8 -*- import time import pandas as pd from pandas.core.base import PandasObject from .utils import * class BasePandasObject(PandasObject): """Simple PandasObject Extension Ensures the DataFrame is not empty and has columns. Args: df (pd.DataFrame): Extends Pandas DataFrame ...
[ "appliedmathkj@gmail.com" ]
appliedmathkj@gmail.com
c8aff798a0c522cfd15ef26a74275128a8d4fc8a
e298bf40ae88c2bd8e0a07f3e92f3e08a92edcc6
/keystoneauth1/fixture/keystoneauth_betamax.py
724d217d4b7bddbb6cda5bc1c31935af4f359787
[]
no_license
KevinKaiQian/polar-bear
46a814c746246394f76505846166673a049f12f2
61d4e0ccd7328a6aa543af3b75e5f7fedf98bf8e
refs/heads/master
2022-04-29T02:15:35.536039
2021-05-19T12:33:07
2021-05-19T12:33:07
172,068,536
2
0
null
2022-03-29T21:56:51
2019-02-22T13:11:58
Python
UTF-8
Python
false
false
2,976
py
# 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 writing, software # distributed under t...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
84751391d9a0d6fb8e19ee5ccd599e6882cd26df
40e7156576ad93db1f0dcab62ec3bb6042576166
/Termux/python/Mergeall/test/ziptools/zip-extract.py
dc8a5fd4d5ae165ebb55f3e6dd9fdcb43e83d452
[]
no_license
WeilerWebServices/Gists
c5d12093d620abc8152e8e8214a2000832969421
506fae2f3f9568ecd73ba373f35ac5fda054520e
refs/heads/master
2023-02-17T18:00:07.721504
2021-01-11T02:19:44
2021-01-11T02:19:44
272,584,650
2
2
null
null
null
null
UTF-8
Python
false
false
6,823
py
#!/usr/bin/python """ ============================================================================= Command-line ziptools wrapper and client (for Python 3.X or 2.X). Extract a zip file, with: <python> zip-extract.py [zipfile [unzipto] [-nofixlinks]] Where: "zipfile" is the pathname of an existing zipfile (a ".zip...
[ "nateweiler84@gmail.com" ]
nateweiler84@gmail.com
73397cdefaa3f889a395f6445034301d0a731cbc
bde6ed092b7b29703737e11c5a5ff90934af3d74
/AtCoder/ABC/128/a.py
a9866e7e31e1d163626daae9c34501fc2c277bec
[]
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
219
py
# import itertools from collections import Counter from collections import defaultdict import bisect def main(): A, P = map(int, input().split()) print((A * 3 + P) // 2) if __name__ == '__main__': main()
[ "takecian@gmail.com" ]
takecian@gmail.com
a6c9ef054d9f5125756b43703b676622c0ba1e9a
5a628b54e511e6186dcbc8636b530eab48cc6523
/django/db/models/fields/related.py
100844795f5fc19a0dbcfb8442ac9a10af15492f
[ "BSD-3-Clause", "Python-2.0" ]
permissive
hdknr/annotated-django
9c6241853ce09d0d130a57e0f6611a062cc4f17b
5843908dd6586a54b92d974f45049fa87e64db8b
refs/heads/2.1.x
2021-05-22T08:08:11.469887
2020-01-25T22:41:11
2020-01-25T22:41:11
41,231,818
0
0
NOASSERTION
2019-11-02T22:33:33
2015-08-23T02:04:03
Python
UTF-8
Python
false
false
68,142
py
import functools import inspect from functools import partial from django import forms from django.apps import apps from django.core import checks, exceptions from django.db import connection, router from django.db.backends import utils from django.db.models import Q from django.db.models.constants import LOOKUP_SEP f...
[ "gmail@hdknr.com" ]
gmail@hdknr.com
c863d3bd856aea04083da417daf952d5564beed7
0bf5e600ac0bd860919d4e43e8ccd55057a9e899
/Python Files/sunni_keydown.py
2787b80c178a36b079a878127a86adb701c19a9d
[]
no_license
AndyDeany/Sunni
3f4dc0d9ffdec864c5340d5fbc45c18f470c5165
3dbe0f0f8f25c1c3cff024ffadf1a2ca76cbadd0
refs/heads/master
2020-12-25T14:14:01.610017
2016-10-04T12:48:06
2016-10-04T12:48:06
66,398,293
0
0
null
null
null
null
UTF-8
Python
false
false
3,508
py
keys = pygame.key.get_pressed() # Miscellaneous backspace_held = keys[8] tab_held = keys[9] enter_held = keys[13] pausebreak_held = keys[19] escape_held = keys[27] space_held = keys[32] apostrophe_held = keys[39] comma_held = keys[44] minus_held = keys[45] fullstop_held = keys[46] forwardslash_held = keys[4...
[ "oneandydean@hotmail.com" ]
oneandydean@hotmail.com
d1aa898f06c191a61523747bcb96a7d8b451c574
297497957c531d81ba286bc91253fbbb78b4d8be
/testing/web-platform/tests/tools/third_party/attrs/tests/test_make.py
657fa517781caa02094eaa2ea109475471b0022c
[ "MIT", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
marco-c/gecko-dev-comments-removed
7a9dd34045b07e6b22f0c636c0a836b9e639f9d3
61942784fb157763e65608e5a29b3729b0aa66fa
refs/heads/master
2023-08-09T18:55:25.895853
2023-08-01T00:40:39
2023-08-01T00:40:39
211,297,481
0
0
NOASSERTION
2019-09-29T01:27:49
2019-09-27T10:44:24
C++
UTF-8
Python
false
false
64,779
py
""" Tests for `attr._make`. """ from __future__ import absolute_import, division, print_function import copy import functools import gc import inspect import itertools import sys from operator import attrgetter import pytest from hypothesis import assume, given from hypothesis.strategies import booleans, integer...
[ "mcastelluccio@mozilla.com" ]
mcastelluccio@mozilla.com
176eada799bbb39f3398440a3dfd78659cf734d7
567b5d5eb951825841de0e70276bb82e3c01027e
/src/env.py
df11357bd0b5b562fc983a9efecf0c6b835eabca
[ "MIT" ]
permissive
ningtangla/escapeWithBelief
53b36642c092b9162732457558348bec8823af01
c4e816b2c5d884b1bea89947df8c163aa9a008c5
refs/heads/master
2020-05-22T20:11:18.907284
2019-05-13T22:38:55
2019-05-13T22:38:55
186,505,410
0
0
null
null
null
null
UTF-8
Python
false
false
9,578
py
import os import numpy as np import pandas as pd import pygame as pg import itertools as it import random #np.random.seed(123) class TransitionFunction(): def __init__(self, resetPhysicalState, resetBeliefAndAttention, updatePhysicalState, transiteStateWithoutActionChange, updateBeliefAndAttention, updatePhysical...
[ "ningtangzju@gmail.com" ]
ningtangzju@gmail.com
c93f0d01307038fa67436b4424d1db481e3e53c9
69bf192eb08f2c49093d2b63e5ef16a5b4028848
/ved/vedomosti/MainApp/migrations/0006_auto_20160721_2321.py
b687bb0c52eb40b21ffd1d1998613a87a5bb35f6
[]
no_license
jsay-api/vedomosti
c7aac45684142f428e3ffb6cb29aff9d77a999e3
5255d44386afbe06965b79c50547dcb80a59029f
refs/heads/master
2021-01-17T18:09:02.543349
2016-07-21T20:32:34
2016-07-21T20:32:34
63,365,926
0
0
null
null
null
null
UTF-8
Python
false
false
512
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-07-21 20:21 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('MainApp', '0005_auto_20160721_2319'), ] operations = [ migrations.AlterField...
[ "julia.sayapina@me.com" ]
julia.sayapina@me.com
4ded9ca09dbfbb9b99301b5899ee6c07d0abcb31
81407be1385564308db7193634a2bb050b4f822e
/library/lib_study/112_netdata_binascii.py
842c2712049f85a402b204d0cd455f742cd69bb0
[ "MIT" ]
permissive
gottaegbert/penter
6db4f7d82c143af1209b4259ba32145aba7d6bd3
8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d
refs/heads/master
2022-12-30T14:51:45.132819
2020-10-09T05:33:23
2020-10-09T05:33:23
305,266,398
0
0
MIT
2020-10-19T04:56:02
2020-10-19T04:53:05
null
UTF-8
Python
false
false
435
py
# 二进制和 ASCII 码互转 https://docs.python.org/zh-cn/3/library/binascii.html """ binascii 模块包含很多在二进制和二进制表示的各种ASCII码之间转换的方法。 通常情况不会直接使用这些函数,而是使用像 uu , base64 ,或 binhex 这样的封装模块。 为了执行效率高,binascii 模块含有许多用 C 写的低级函数,这些底层函数被一些高级模块所使用。 """
[ "350840291@qq.com" ]
350840291@qq.com
21ae1362833a5c039555dc1eb6113024b53fed68
bd4535b2ff5fc80234eed709f46da53b9ab260cf
/Packs/OSQuery/Scripts/OSQueryBasicQuery/OSQueryBasicQuery.py
6efabf7dae8ae8298e237cf0d2e9bdbfe70d5657
[ "MIT" ]
permissive
vibhuabharadwaj/content
0641284c862668b577e82e32e2daecdb9fabb39a
518da763814fefce538379560282ff8c2ce661b9
refs/heads/master
2023-03-07T21:36:31.768989
2022-09-28T15:50:46
2022-09-28T15:50:46
202,795,410
1
0
MIT
2023-03-06T17:25:01
2019-08-16T20:30:23
Python
UTF-8
Python
false
false
1,188
py
import json import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 # ssh command to run, json format, param = query to execute COMMAND = 'osqueryi --json "{0}"' def main(): systems = argToList(demisto.args().get('system')) query = demisto.args().get('query') res = []...
[ "noreply@github.com" ]
vibhuabharadwaj.noreply@github.com
5f9ff53c21a585394ade8a312d386efe615fa801
def2fee9dd1476bb4d782178bffa7d5d34fbbd13
/nb_autoimports/__init__.py
83a3fd5f2332cd4681a1fe5abd646602a188e248
[ "MIT" ]
permissive
sshh12/nb_autoimports
0f6298e7d11434bb5a8ca98f44e9460129ccbf4c
693c73b07af1882f97c957a0813db42926433978
refs/heads/main
2023-05-24T08:15:48.298366
2021-06-08T23:18:12
2021-06-08T23:18:12
374,137,829
0
0
null
null
null
null
UTF-8
Python
false
false
186
py
from .auto_import import AutoImporter def load_ipython_extension(ip): # TODO: unload function ai = AutoImporter(ip) ip.events.register("post_run_cell", ai.on_post_run_cell)
[ "shrivu1122@gmail.com" ]
shrivu1122@gmail.com
10ff6d612cda6c48feb8e0551c17ebcc01eadad7
bd86f45ec9355cf1b76c25307d77c85ff98d30a8
/lib/common/color.py
1edf3cccfedc2eb0e95268f309e00c535b7eac49
[ "MIT" ]
permissive
WhySoGeeky/DroidPot
fd39abe490117283f992d80f317574f47809de8d
7c3d9e975dae3835e2ccf42c425d65b26466e82a
refs/heads/master
2021-07-02T12:47:16.269514
2015-11-03T17:49:41
2015-11-03T17:49:41
45,484,292
6
0
MIT
2021-06-10T17:59:45
2015-11-03T17:44:48
Python
UTF-8
Python
false
false
615
py
__author__ = 'RongShun' import os import sys def color(text, color_code): if sys.platform == "win32" and os.getenv("TERM") != "xterm": return text return "\x1b[%dm%s\x1b[0m" % (color_code, text) def green(text): return color(text, 32) def yellow(text): return color(text, 33) def white(text)...
[ "phobiatrs@gmail.com" ]
phobiatrs@gmail.com
9b45f0f2bd41e194b6694faf529061b87c70ec2d
691754124340cf0b361351b367b6c55e10dbc92b
/delocate/tests/test_wheelies.py
47c46aa49bdb784e328a050e5d071d0425f0b85c
[ "BSD-2-Clause" ]
permissive
sgillies/delocate
6789c3e89d40bb8c14c975c23163b9a13ad9626d
f560aa90d4538ef686e4e859068b4840cae0dad4
refs/heads/master
2021-01-23T11:32:29.537095
2017-04-15T22:12:27
2017-04-15T22:12:27
93,144,228
0
0
null
2017-06-02T08:24:18
2017-06-02T08:24:18
null
UTF-8
Python
false
false
10,348
py
""" Direct tests of fixes to wheels """ import os from os.path import (join as pjoin, basename, realpath, abspath, exists) import shutil from subprocess import check_call from ..delocating import (DelocationError, delocate_wheel, patch_wheel, DLC_PREFIX) from ..tools import (get_install_name...
[ "matthew.brett@gmail.com" ]
matthew.brett@gmail.com
43634a4192a6b1de1987f2c7343b04f81c9ab576
b62ba918b0b96e682d811aa79d0f34ffa50e784c
/shop/catalog/models.py
0e6804f4c1d6e88a043bf6d32137738765467f99
[]
no_license
MaksimLion/django-furniture-shop
8ee3edb584cf670c7893c7b836037b97aefafcb2
14a5160b29a06947fab7aae7dda15829c1dcf23f
refs/heads/master
2020-04-24T22:38:26.514663
2019-03-10T09:37:06
2019-03-10T09:37:06
172,318,760
0
0
null
null
null
null
UTF-8
Python
false
false
903
py
from django.db import models class Furniture(models.Model): TYPES = ( ('kitchens','КУХНИ'), ('showcases','ВИТРИНЫ'), ('wardrobes','ШКАФЫ-КУПЕ'), ('offices','МЕБЕЛЬ ДЛЯ ОФИСА'), ('hallways','ПРИХОЖИЕ'), ('lounges','ГОСТИНЫЕ'), ('child','ДЕТСКИЕ'), ('...
[ "maxim226356@mail.ru" ]
maxim226356@mail.ru
08df8cd4acefaf74f1039287b5260de31247f5da
ec61946a176935044d08cf1244d2185f2460df32
/pyleecan/Methods/Slot/SlotM11/get_surface_active.py
42e164a216dc443c271c333537ee71a505c481e6
[ "Apache-2.0" ]
permissive
Lunreth/pyleecan
d3974a144cb8a6c332339ab0426f1630b7516fc9
1faedde4b24acc6361fa1fdd4e980eaec4ca3a62
refs/heads/master
2023-06-07T01:46:32.453763
2021-07-01T21:29:51
2021-07-01T21:29:51
383,880,732
1
0
Apache-2.0
2021-07-07T17:47:01
2021-07-07T17:47:01
null
UTF-8
Python
false
false
1,691
py
# -*- coding: utf-8 -*- from numpy import linspace, zeros from ....Classes.Arc1 import Arc1 from ....Classes.Segment import Segment from ....Classes.SurfLine import SurfLine def get_surface_active(self, alpha=0, delta=0): """Return the full active surface Parameters ---------- self : SlotM11 ...
[ "pierre.bonneel@gmail.com" ]
pierre.bonneel@gmail.com
af004c090784e8fe7a38327a0699f3f1bee2b802
179d8aae260d20443e6e87613cff55d42587bc16
/examples/x2oneflow/pytorch2oneflow/nodes/test_reduction.py
34c6292c3b266174d612648e742d5a682ce50c30
[]
no_license
666DZY666/oneflow_convert_tools
3b1f9d6ebaf154d7218236c332c6f9613b89a860
bb38c52954facbfe977e09c7e4706b7563a7b50c
refs/heads/main
2023-06-04T10:16:08.786531
2021-06-24T08:38:24
2021-06-24T08:38:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,206
py
""" Copyright 2020 The OneFlow 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 applicable law or agr...
[ "1182563586@qq.com" ]
1182563586@qq.com
ba49774d8e53a281ab7c9a9dc06ba120ee957708
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02612/s358283644.py
d00817b67f725713462bf5dbbddad17a49103d13
[]
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
78
py
s = int(input()) if s%1000 == 0: c=0 else: c = 1000 - ( s%1000 ) print(c)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
276d5cb7c2f08b0c622a30d2a0ad6d9e5ebab54b
55ceefc747e19cdf853e329dba06723a44a42623
/_CodeTopics/LeetCode/801-1000/000954/WA--000954.py3
12cb53000239ceb19cbc5b6fee2b54a6673848bf
[]
no_license
BIAOXYZ/variousCodes
6c04f3e257dbf87cbe73c98c72aaa384fc033690
ee59b82125f100970c842d5e1245287c484d6649
refs/heads/master
2023-09-04T10:01:31.998311
2023-08-26T19:44:39
2023-08-26T19:44:39
152,967,312
0
1
null
null
null
null
UTF-8
Python
false
false
1,274
py3
class Solution: def canReorderDoubled(self, arr: List[int]) -> bool: if arr.count(0) & 1 or sum(elem < 0 for elem in arr) & 1: return False arr = filter(lambda x : x != 0, arr) arr = map(abs, arr) ctr = Counter(arr) deleted = defaultdict(int) keys = list...
[ "noreply@github.com" ]
BIAOXYZ.noreply@github.com
7bff1f662a66130a50f13bd63bbeb32866d217a1
92187fc72f613751e9d215bc1db8fe1bba4b83bc
/src/home/migrations/0013_car.py
9c675273b9a0d56370b376e831e68bb22653c9bf
[]
no_license
bhubs-python/istehar
33cb0abeeb4c8da1f1721eee5f0f380c086f4a66
3e1679f1b1b17f6e21aff4923d1d5dbcf687fc66
refs/heads/master
2021-09-10T16:26:31.464986
2018-03-29T08:06:15
2018-03-29T08:06:15
123,160,263
0
1
null
null
null
null
UTF-8
Python
false
false
1,085
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-03-11 10:37 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('home', '0012_audiomp3'), ] operations = [ migrations.CreateModel( ...
[ "mubarak117136@gmail.com" ]
mubarak117136@gmail.com
9c0ecdb04410180dded57b66e4abaa2e72494082
50910ddbbbf57cdbf4d40a404fc2672e8a4b340a
/application.py
e6c3db90918404f80393c32bf61cf2ea20c5f923
[]
no_license
aes95/cs50-web-2018-x-projects-1
c5ea9255ae1a986b3ab7c9bf166267afdfea49c9
3463c48c46a2a1a849c21653a37058c54d660c96
refs/heads/master
2020-04-16T11:02:22.218936
2019-01-14T00:14:00
2019-01-14T00:14:00
165,521,869
0
0
null
null
null
null
UTF-8
Python
false
false
4,961
py
import os, requests, xml.etree.ElementTree from flask import Flask, session, render_template, request, jsonify from flask_session import Session from sqlalchemy import create_engine from sqlalchemy.orm import scoped_session, sessionmaker app = Flask(__name__) # Check for environment variable if not os.getenv("DATABA...
[ "you@example.com" ]
you@example.com
8c90d597c7ceb9a5f6d6cf86f71da32121e3b905
d0a84d97aaa8dcc2dff4a6b33ce98dee6d474496
/com.CheckProofing/2020/Test_w_45_HolidayDeals_T1_Actives/test_w45_CCcheck.py
a9f1f29bcb011c9ba984670d8e1baea2714e1275
[]
no_license
ahmed-test001/python
21a27248c4571a13c0ed4dccab256aede1beea3a
eab59b9a54fae1a51fbc18c391599eb3b0e28b3d
refs/heads/master
2023-03-10T21:00:54.634028
2021-02-27T05:31:58
2021-02-27T05:31:58
342,778,794
0
0
null
null
null
null
UTF-8
Python
false
false
4,821
py
import time import unittest import sys import os import logging import warnings from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.support.ui import WebDriverWait from PageClass.UrlSegmentPage import URL...
[ "ahmedu.ferdous@gmail.com" ]
ahmedu.ferdous@gmail.com
65752b9d1bb71f04389f6f784306953871c845e6
51a6413af4995a221bb7cf9bce20a00acedcff9d
/snakify-problems-python/ALL/10_09_polyglotes.py
2fb598e6e525c544190b13d43f6f67e7916ff2fe
[]
no_license
famaxth/Way-to-Coding
4dff099de31c1a5870cf72a2aaaab74fdcbfed36
bcb2048898edf418b059ec506eb5ad1507889cfb
refs/heads/main
2023-08-15T19:34:16.510571
2021-10-08T04:53:42
2021-10-08T04:53:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
868
py
n = int(input()) # количество учеников lang_nums = [0] * n # количество языков для каждого ученика langs = [] # наименования языков, для каждого из учеников for i in range(n): lang_nums[i] = int(input()) l = set() for j in range(lang_nums[i]): l.add(input()) langs.append(l) uni = set.union(*lan...
[ "jobin25051999@gmail.com" ]
jobin25051999@gmail.com
566c733da6a9ca4011ffcaa3a1e35a486b6be7df
09cead98874a64d55b9e5c84b369d3523c890442
/py200727_python2/day33_py208024/module_2.py
4a804c01cc95026ad482d2195c3fca507f0ab18f
[]
no_license
edu-athensoft/stem1401python_student
f12b404d749286036a090e941c0268381ce558f8
baad017d4cef2994855b008a756758d7b5e119ec
refs/heads/master
2021-08-29T15:01:45.875136
2021-08-24T23:03:51
2021-08-24T23:03:51
210,029,080
0
0
null
null
null
null
UTF-8
Python
false
false
274
py
""" module 2 from...import from...import statement """ from py200727_python2.day33_py208024.myfunc import add print(add(1,2)) # import math from math import sqrt result = sqrt(4) print(result) # from math import * print(gcd(12,4)) print(ceil(3.4)) print(fabs(5.1))
[ "lada314@gmail.com" ]
lada314@gmail.com
2d3085eafbaea0f942754274f2975d8c59f460f2
ff487fe5f2956bac2f80ee8f515a17f4fad4bd07
/apps/alerts/urls.py
d032c1db6e513c613eead5b8c9970cbafe511ef7
[]
no_license
101t/django-lms
8c11c28321675c52a82f5111912e58ed4edf221f
4bee87f299c588b8ad0145bff3b82a51f89b4cac
refs/heads/master
2021-11-24T22:44:39.401464
2021-11-16T20:45:33
2021-11-16T20:45:33
219,135,709
1
2
null
2021-11-16T06:49:56
2019-11-02T10:07:43
HTML
UTF-8
Python
false
false
287
py
from django.urls import path from django.contrib.auth.decorators import login_required from .views import AlertList, acknowledge app_name = "alerts" urlpatterns = [ path('', login_required(AlertList.as_view()), name='list'), path('acknowledge/', acknowledge, name='acknowledge'), ]
[ "tarek.it.eng@gmail.com" ]
tarek.it.eng@gmail.com
e0bb242f5160791f6c4210c2e0806d3032922695
97b77417e31c98f695f5fe8697b779d8a92196cc
/leanerp/leanerp/urls.py
2e6ffef1e545ef0071d1350edf7607b0c88eb52e
[ "Apache-2.0" ]
permissive
paullammacau/leaf
7f6cbd31e58a8b3b680ba947a7ca276994a9b3cf
1e9d0531b1674c5ff722b343fd82fe8307f745ff
refs/heads/master
2021-07-10T17:56:05.301477
2017-10-09T13:45:26
2017-10-09T13:45:26
106,223,344
1
0
null
2017-10-09T01:25:48
2017-10-09T01:25:48
null
UTF-8
Python
false
false
910
py
"""leanerp 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...
[ "selain@nature.ee.ncku.edu.tw" ]
selain@nature.ee.ncku.edu.tw
a0126bed627d15a32c8e0da5723ce62e338341f9
de56ee2369d36c93ad802f0359f3274b9a3f0a25
/photos/utils.py
c2c4b34843b95f366d0f71718aee276495d84c97
[]
no_license
Anubhav722/asynchronous-celery-tasks
bdfd485b6c6b2777a4712ad64ebabf347e717654
a21f055e8e524db662d21f60dac2f8daab075f63
refs/heads/master
2021-01-23T00:45:41.631402
2017-05-31T10:47:44
2017-05-31T10:47:44
92,840,568
0
0
null
null
null
null
UTF-8
Python
false
false
1,083
py
import json import requests from photos.models import Photo from django.conf import settings def get_latest_flickr_image(): """ Grabs the latest image from the flick public image feed """ url = settings.FLICKR_JSON_FEED_URL r = requests.get(url) page_content = r.text # It turns out flickr escapes single quote...
[ "anubhavs286@gmail.com" ]
anubhavs286@gmail.com
55b79e0d9a0de22080a98b43b205b927f983600f
4ff8676136167cdd81d7a983272102fff86360e8
/python/面试题 08.06. 汉诺塔问题.py
5b98a8435f155bdd5b6ff5e032c3e17d3a9fbe93
[]
no_license
geniuscynic/leetcode
0ec256af2377d19fee22ce736462a7e95e3f4e67
379a8f27f8213951ee8be41bd56598036995d267
refs/heads/master
2023-07-19T07:22:20.001770
2021-09-07T14:50:40
2021-09-07T14:50:40
297,277,833
0
0
null
null
null
null
UTF-8
Python
false
false
680
py
import sys from collections import defaultdict from collections import Counter class Solution: dicts = {} def helper(self, n, A, B, C): if n == 1: C.append(A.pop()) return self.helper(n - 1, A, C, B) C.append(A.pop()) self.helper(n - 1, B, A, C)...
[ "350810375@qq.com" ]
350810375@qq.com
78f14676ee6a3da73b6f8b8ccc4e3da343164a3a
007f7d8c93725457bc5692715587227d6c8acc0c
/blender/.blender/scripts/bpymodules/colladaImEx/helperObjects.py
26f5c32af87a37b9c817a60a8c431fea1dfdbe18
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "GPL-2.0-only", "PSF-2.0", "GPL-1.0-or-later" ]
permissive
Nicoeevee/sketchfab_download
cf1c72ab45a88bebb0e08d7fb984fa01a3be97fa
a81ad3a2053e715608e657fd62c9dc1194ffe290
refs/heads/master
2023-04-21T08:05:28.322657
2021-05-13T18:01:30
2021-05-13T18:01:30
354,547,290
0
0
Apache-2.0
2021-05-14T12:04:21
2021-04-04T13:13:28
Python
UTF-8
Python
false
false
10,986
py
# -------------------------------------------------------------------------- # Illusoft Collada 1.4 plugin for Blender # -------------------------------------------------------------------------- # ***** BEGIN GPL LICENSE BLOCK ***** # # Copyright (C) 2006: Illusoft - colladablender@illusoft.com # # This program is fre...
[ "2966764421@qq.com" ]
2966764421@qq.com
aa69c7a051939ec0e565da4a832fe5aa529aee8d
8b0d9eb0c04426f544e34726981643dbe7b91bdc
/TestBotDeploy/Bot/settings.py
6e1ec557579fbb81e8b85387857ed5cf04e4e321
[]
no_license
VicGjb/bot
555777661115c3ebf33169ed9d5f61a8f2a1bbbb
ad3cecbec46f5b78dd97e9a4d04d527bed853e14
refs/heads/master
2023-03-04T07:51:38.049016
2021-02-14T19:08:10
2021-02-14T19:08:10
324,197,624
0
0
null
null
null
null
UTF-8
Python
false
false
3,306
py
""" Django settings for Bot project. Generated by 'django-admin startproject' using Django 3.1.4. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ from pathlib imp...
[ "=" ]
=
39f7c29ea95996c14613d1e200fbe93a42a90aa3
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_braces.py
f13585bba0e3d0198f64068b01917659abec0f3c
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
218
py
#calss header class _BRACES(): def __init__(self,): self.name = "BRACES" self.definitions = brace self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['brace']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
90c37b461a483c698c0268516b9f48a327639005
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02987/s975288502.py
18a6f7eba6ed3672b3244f190eda5c785f421de8
[]
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
118
py
S = input() S1 = [] for i in S: if i not in S1: S1.append(i) if len(S1) == 2: print('Yes') else: print('No')
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
4fee162a9707bcfbb449862ff68c9713ae67654a
f0316e656767cf505b32c83eef4df13bb9f6b60c
/LeetCode/Python/Medium/1476_subrectangle_queries.py
aac76bf6f8f0c4ead16e60f36d62d2a45052f2d8
[]
no_license
AkshdeepSharma/Classroom
70ec46b35fab5fc4a9d2eac430659d7dafba93da
4e55799466c101c736de6c7e07d716ff147deb83
refs/heads/master
2022-06-13T18:14:03.236503
2022-05-17T20:16:28
2022-05-17T20:16:28
94,828,359
1
0
null
null
null
null
UTF-8
Python
false
false
646
py
class SubrectangleQueries: def __init__(self, rectangle: List[List[int]]): self.rectangle = rectangle def updateSubrectangle(self, row1: int, col1: int, row2: int, col2: int, newValue: int) -> None: for i in range(row1, row2 + 1): for j in range(col1, col2 + 1): sel...
[ "akshdeep.sharma1@gmail.com" ]
akshdeep.sharma1@gmail.com
5fb2baa588a5a5c73bcdcbc8e3eb2aa4c3a49ff8
3eb5c0db9d82a3cf1c1f867eb02e562d0d9c0de4
/core/knavi.py
9f09c7255beca81c2cb39b10ba62662ceb672458
[]
no_license
whigg/Crawling_CNKI
cc03b140c175da3fc0eed1ef3d75b13781512cce
407c6ff5409d5831acd6ad4620281733dd2ad13a
refs/heads/master
2021-01-01T07:16:28.324919
2019-04-10T09:15:00
2019-04-10T09:15:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,602
py
# -*- coding:utf-8 -*- """ @#: 页面: main @#:URL : http://navi.cnki.net/KNavi/All.html @#: 时间: 2019/3/26 @#: 作者: Mr.L """ import time, requests from bs4 import BeautifulSoup from tools.base import dict_append, url_translate from selenium import webdriver from core.article import article_info from tools.base import Sleep...
[ "you@example.com" ]
you@example.com
c3452dd8aecdacf3bd2f698102e86b7017748a11
df541a802b2dfa89d3aab14af627358dc7c76e6e
/APP自动化/App/StoneUIFramework/public/setting/系统设置/退出/_Logout.py
74aa1a7a16757b9144ada4802842241e26290418
[]
no_license
gupan2018/PyAutomation
de966aff91f750c7207c9d3f3dfb488698492342
230aebe3eca5799c621673afb647d35a175c74f1
refs/heads/master
2021-09-07T19:44:20.710574
2017-12-22T15:58:23
2017-12-22T15:58:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,031
py
__author__ = 'Administrator' #登出确认页 from StoneUIFramework.public.setting.系统设置._Syssetting import _Syssetting import logging class _Logout(_Syssetting): def Syssetting_logout_confirm(self): #定位:设置-系统安全-退出-确定 try: __Syssetting_logout_confirm = self.driver.find_element_by_id("android:id/bu...
[ "610077670@qq.com" ]
610077670@qq.com
87ccf88abce864ab8fdb05be5339c0883908d290
ab621c65fc91f5194c4032d68e750efaa5f85682
/l10n_th_account_tax_detail/__openerp__.py
bd15f29f96dcd2ad04cab3560b4c476f85ba1f8a
[]
no_license
pabi2/pb2_addons
a1ca010002849b125dd89bd3d60a54cd9b9cdeef
e8c21082c187f4639373b29a7a0905d069d770f2
refs/heads/master
2021-06-04T19:38:53.048882
2020-11-25T03:18:24
2020-11-25T03:18:24
95,765,121
6
15
null
2022-10-06T04:28:27
2017-06-29T10:08:49
Python
UTF-8
Python
false
false
754
py
# -*- coding: utf-8 -*- { 'name': "Invoice Tax Detail", 'summary': "Allow editing tax table in detail", 'author': "Ecosoft", 'website': "http://ecosoft.co.th", 'category': 'Account', 'version': '0.1.0', 'depends': [ 'account', 'l10n_th_account', 'account_invoice_chec...
[ "kittiu@gmail.com" ]
kittiu@gmail.com
644fc1bf3f6b8d07653d023d8f31d01f65603566
02f0b44446d0ae1456db790866f8c184dc9b2652
/trunk/convertdialog.py
2d3c32c6b4d323b8028e177c1d5ac090a9334565
[]
no_license
BGCX261/zoomtc-svn-to-git
23d26688429d5d0db5937c630ecb6243438c3721
8937a6a53bb58c1457e6f93af619070929a4839a
refs/heads/master
2021-01-23T12:11:25.771636
2015-08-25T15:20:29
2015-08-25T15:20:29
41,591,859
0
0
null
null
null
null
UTF-8
Python
false
false
7,708
py
#!/usr/bin/env python # -*- coding: utf-8 -* import os import sys from PIL import Image from PyQt4 import QtCore, QtGui import zoomtc_rc from ui_convertdialog import Ui_convertDialog # all supported image formats list here EXTS = ('.bmp', '.im', '.msp', '.pcx', '.ppm', '.spider', '.tiff', '.xbm', '.xv', '....
[ "you@example.com" ]
you@example.com
6ffb0c65163ec92ac6eb7e8bbb2eeee963366b3e
04ad466db13a382cc679d9562e515d57b54c47e6
/scripts/maxent_priors.py
a69077dddf5e3009d6b707e0e4792d6890804360
[ "MIT" ]
permissive
shivaditya-meduri/pyprobml
d9423463ae7b352c52f3d005fbf33ee66d366971
9dbe0c95f4ec061b98bf32fa3ac1deafe2e0c04d
refs/heads/master
2023-04-12T13:09:45.572071
2021-05-07T18:22:02
2021-05-07T18:22:02
356,659,290
1
0
MIT
2021-04-11T05:04:38
2021-04-10T18:07:31
null
UTF-8
Python
false
false
1,105
py
# jeffreys prior for bernoulli using 2 paramterizatiobs # fig 1.10 of 'Bayeysian Modeling and Computation' import numpy as np import matplotlib.pyplot as plt import pyprobml_utils as pml from scipy import stats from scipy.stats import entropy from scipy.optimize import minimize C = 10 xs = np.arange(1,C+1) con...
[ "murphyk@gmail.com" ]
murphyk@gmail.com
b56e012cd852d9dee8afd57b3ff0a9a240fe1828
185bea7d9c7dc9288b021e0c27f24e087f668109
/AI/Project/Sudoku/eliminate_q5.py
472e64c213c8524b8d5000fa04d1d1df0dd7b613
[]
no_license
JasonVann/Udacity
3430fa86d9863dd0c4657b525243a91154f4b57f
9584bf90e8f1f9d4faf0973c7c36325f367558e7
refs/heads/master
2021-01-12T09:38:53.896396
2017-09-05T03:51:47
2017-09-05T03:51:47
76,217,990
0
0
null
null
null
null
UTF-8
Python
false
false
864
py
from utils import * def eliminate(values): """Eliminate values from peers of each box with a single value. Go through all the boxes, and whenever there is a box with a single value, eliminate this value from the set of values of all its peers. Args: values: Sudoku in dictionary form. Retu...
[ "jasonvanet@gmail.com" ]
jasonvanet@gmail.com
f7afb969c707a49319ea9771a712ab4977d48f95
642f50ad3a7abc63032815847fe9a49246b03506
/setup.py
ae3cdb64db3b8ddeab1b8efb9189075e6969709a
[ "MIT" ]
permissive
circuitpython/CircuitPython_Org_DisplayIO_Annotation
f76557c616498480c2f14c6423150f6eb6aa2709
df982a2f65d8dfe77759905820f5e27aead425a7
refs/heads/main
2023-06-13T07:31:35.924175
2021-07-05T15:06:11
2021-07-05T15:06:11
358,929,751
0
2
MIT
2021-07-05T15:06:11
2021-04-17T16:34:49
Python
UTF-8
Python
false
false
2,336
py
# SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries # SPDX-FileCopyrightText: Copyright (c) 2021 Kevin Matocha for circuitpython # # SPDX-License-Identifier: MIT """A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sample...
[ "foamyguy@gmail.com" ]
foamyguy@gmail.com
5a27684254e81e031f857cf3f929151d09307a8b
ad553dd718a8df51dabc9ba636040da740db57cf
/.history/app_20181208180113.py
5eb0e0ff5a594f01d11592f60c728896dcfaa4e9
[]
no_license
NergisAktug/E-Commerce-PythonWithFlask-Sqlite3
8e67f12c28b11a7a30d13788f8dc991f80ac7696
69ff4433aa7ae52ef854d5e25472dbd67fd59106
refs/heads/main
2023-01-01T14:03:40.897592
2020-10-19T20:36:19
2020-10-19T20:36:19
300,379,376
0
0
null
null
null
null
UTF-8
Python
false
false
7,256
py
import datetime from flask import Flask,flash, request, render_template_string, render_template from flask import Flask, url_for, render_template, request, redirect, session, escape, render_template_string from flask_babelex import Babel from flask_sqlalchemy import SQLAlchemy from flask_user import current_user, login...
[ "nergis.aktug2014@gmail.com" ]
nergis.aktug2014@gmail.com
820ef2144d3dd85072afa1fb2bb8df44a8a3087d
006ff11fd8cfd5406c6f4318f1bafa1542095f2a
/FastSimulation/L1CaloTriggerProducer/test/test_cfg.py
817cecbd05903876f5b300c0f4b38be6b0da5ac0
[]
permissive
amkalsi/cmssw
8ac5f481c7d7263741b5015381473811c59ac3b1
ad0f69098dfbe449ca0570fbcf6fcebd6acc1154
refs/heads/CMSSW_7_4_X
2021-01-19T16:18:22.857382
2016-08-09T16:40:50
2016-08-09T16:40:50
262,608,661
0
0
Apache-2.0
2020-05-09T16:10:07
2020-05-09T16:10:07
null
UTF-8
Python
false
false
1,347
py
import FWCore.ParameterSet.Config as cms process = cms.Process("L1") process.load("FastSimulation.L1CaloTriggerProducer.fastl1calosim_cfi") process.load("FWCore.MessageLogger.MessageLogger_cfi") process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi") process.load("Geometry.CaloEventSetup.CaloGeometry_cfi") ...
[ "giulio.eulisse@gmail.com" ]
giulio.eulisse@gmail.com
d6704396575c1ef54a76c33a3040048b12fb8e75
a94e87dab0f3848ae8a02bb482633e953eb3062f
/code/default/python27/1.0/lib/noarch/front_base/http2_stream.py
334bcc2372913fe05eb138fa5422452befb55f50
[ "BSD-2-Clause" ]
permissive
yulongpo/XX-Net
0699e50c666c3d1665c415d2871fc46bbcd6ec06
1dcd667eb8f704540b5ee19424a534d20cf12a83
refs/heads/master
2021-04-12T08:42:54.965106
2018-03-22T01:14:11
2018-03-22T01:14:11
126,262,175
1
1
null
2018-03-22T01:30:22
2018-03-22T01:30:22
null
UTF-8
Python
false
false
15,312
py
# -*- coding: utf-8 -*- """ port from hyper/http20/stream for async remove push support increase init window size to improve performance ~~~~~~~~~~~~~~~~~~~ Objects that make up the stream-level abstraction of hyper's HTTP/2 support. Conceptually, a single HTTP/2 connection is made up of many streams: each stream is...
[ "xxnet.dev@gmail.com" ]
xxnet.dev@gmail.com
5ae9fad5761840beb8eaa4696530a64d6f482cf1
9d7d88cc4dc326993c6be9ba2a79b5afe86254c5
/posner/activations/__init__.py
047cea63440ba493cc001394e049f3a910f8f19f
[]
no_license
LeeKLTW/posner
7ebe0e287c8a9db91e150ba08c41772757b2639f
9a1c6e00c463644a78ebf413b676c74c846dc23d
refs/heads/master
2022-12-16T17:32:38.327191
2020-02-26T11:50:47
2020-02-26T11:50:47
240,471,085
5
1
null
2022-12-08T03:36:50
2020-02-14T09:22:13
Python
UTF-8
Python
false
false
46
py
# -*- coding: utf-8 -*- from .gelu import gelu
[ "LeeKLTW@gmail.com" ]
LeeKLTW@gmail.com
c3406d2aabbb544a97bb3aee11a10506f35f184e
cac9947cec2aace94fb4a7c69fd32654bb53e853
/lib/python3.7/site-packages/boltons/statsutils.py
e4b71b28c22b31a5bd4f8efa5e1d730e09473056
[ "BSD-3-Clause" ]
permissive
nguyentranhoan/uit-mobile
7bc1a020251ca583fe11cf1f729630466203537a
8546312b01373d94cf00c64f7eacb769e0f4ccce
refs/heads/master
2023-01-05T03:29:54.732892
2020-04-08T07:14:32
2020-04-08T07:14:32
235,015,840
0
0
BSD-3-Clause
2022-12-27T15:35:57
2020-01-20T04:04:47
Python
UTF-8
Python
false
false
28,624
py
# -*- coding: utf-8 -*- """``statsutils`` provides tools aimed primarily at descriptive statistics for data analysis, such as :func:`mean` (average), :func:`median`, :func:`variance`, and many others, The :class:`Stats` type provides all the main functionality of the ``statsutils`` module. A :class:`Stats` object wrap...
[ "nguyentranhoan.mr@gmail.com" ]
nguyentranhoan.mr@gmail.com
e8940800e8c4feb508acd637a11a9f70573c15ce
a1ad2715e306fd4e7eaeda5348e00e1a363e7884
/leetcode/hashmap.py
17f3ac037e825715ccd3106d80f804bebe69a9a4
[]
no_license
MayankMaheshwar/DS-and-Algo-solving
cef54a800b3e8a070a707f97b4f30fccaa17d5c6
ac6ea8f880920242a55d40c747368d68cb6f7534
refs/heads/master
2022-12-07T07:55:08.380505
2022-12-05T09:32:14
2022-12-05T09:32:14
237,103,468
0
0
null
null
null
null
UTF-8
Python
false
false
458
py
class Solution: # @param A : list of integers # @param B : list of integers # @param C : list of integers # @return a list of integers def solve(self, A, B, C): Hash1, Hash2, Hash3 = set(A), set(B), set(C) res = set() for i in Hash1: if i in Hash2 or i in Hash3: ...
[ "mayank.maheshwari625@gmail.com" ]
mayank.maheshwari625@gmail.com
5a9986aa822a01cb23c0463c4f918c8d9472004c
968d726d3acfca79d6a0b445b8930b62136a7504
/python/app/loan_approve.py
2a432a006ede8fd08915368b16d20eec861bdf61
[]
no_license
arita37/avenir
db97c04ca598c48bb7a2bc90f20ef3946d261561
ea2de8538b2596d9f6bb09ba8398a92030fbd59b
refs/heads/master
2023-08-27T14:34:38.998926
2021-10-05T05:43:48
2021-10-05T05:43:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,607
py
#!/usr/local/bin/python3 # avenir-python: Machine Learning # Author: Pranab Ghosh # # 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 ...
[ "pkghosh99@gmail.com" ]
pkghosh99@gmail.com
00ad4f40b3123901479230db421ad0cc1ba9fb83
3ae937aec30f413dc87a1a6398ea6ef95b90f58a
/Estrutura-Decisao/ex10.py
372887472117d1248bf3d2232b86466610e03f97
[]
no_license
lucas-sigma/Python-Brasil-Resposta-Exercicios
74f53c2531bea03fb65fa9addf8106450edb5d5e
af2df5b7d8d013ca176817af5f7bfa08ba5e33d1
refs/heads/master
2020-03-24T22:53:36.317235
2018-11-23T19:43:24
2018-11-23T19:43:24
143,107,121
0
0
null
null
null
null
UTF-8
Python
false
false
513
py
# Faça um Programa que pergunte em que turno você estuda. Peça para digitar M-matutino ou V-Vespertino ou N- Noturno. Imprima a mensagem "Bom Dia!", "Boa Tarde!" ou "Boa Noite!" ou "Valor Inválido!", conforme o caso. print('M - Matutino | V - Vespertino | N - Noturno') turno = input('Digite o turno em que você estuda:...
[ "lucasn.sigma@gmail.com" ]
lucasn.sigma@gmail.com
92f8adefb2a72e066420f7f170628fd3531a481a
8ae2dc044d056cb9a4b0cd25fbaed977288ba926
/Python_OOP/car.py
016554f5f0206353f5ff091f7fdd5e1875e00d1a
[]
no_license
februarypython/Alex_Green
17a3c79d4e1eb751e6b5d76b2ab036506ba43a12
ad72d761c33708d80200ee896e1d145fd74009c1
refs/heads/master
2021-04-30T05:06:31.439798
2018-04-03T20:54:02
2018-04-03T20:54:02
121,407,382
0
0
null
null
null
null
UTF-8
Python
false
false
1,274
py
# Create a class called Car. In the__init__(), allow the user to specify the following attributes: price, speed, fuel, mileage. # If the price is greater than 10,000, set the tax to be 15%. Otherwise, set the tax to be 12%. # Create six different instances of the class Car. In the class have a method called display...
[ "alexkenta@gmail.com" ]
alexkenta@gmail.com
e7f6ee71d68187d1c702e84d43bfe2bc4768f18f
67e817ca139ca039bd9eee5b1b789e5510119e83
/Linked_List/Swap_Nodes_in_Pairs.py
c36d59cada641e25326ec7b2bb48a3989fbbf1e3
[]
no_license
dstch/my_leetcode
0dc41e7a2526c2d85b6b9b6602ac53f7a6ba9273
48a8c77e81cd49a75278551048028c492ec62994
refs/heads/master
2021-07-25T21:30:41.705258
2021-06-06T08:58:29
2021-06-06T08:58:29
164,360,878
0
0
null
null
null
null
UTF-8
Python
false
false
1,189
py
#!/usr/bin/env python # encoding: utf-8 """ @author: dstch @license: (C) Copyright 2013-2019, Regulus Tech. @contact: dstch@163.com @file: Swap_Nodes_in_Pairs.py @time: 2019/1/15 22:10 @desc: Given a linked list, swap every two adjacent nodes and return its head. Example: Given 1->2->3->4, you should return the list ...
[ "dstch@163.com" ]
dstch@163.com
6f432459933bf081f23978750e8849105323f79a
b7b2f80ab5e1ee0ea028576e3014b62b8d3a8d7e
/neural/neural-003/neunet.py
25d12bbdf37b38a80a32b4d929cd5f48eb1e1e90
[]
no_license
pglen/pgpygtk
4d1405478a714f003984cf3e3db04ff1f767470b
33f58010e304f1a312f2356de453ecedb7aa21ef
refs/heads/master
2021-01-22T01:18:52.238415
2019-01-01T01:37:24
2019-01-01T01:37:24
102,215,955
0
0
null
null
null
null
UTF-8
Python
false
false
10,396
py
#!/usr/bin/env python # ------------------------------------------------------------------------ # Neural network test import os, sys, getopt, signal, select, socket, time, struct import random, stat, math from pgutil import * from mainwin import * # ---------------------------------------------------------------...
[ "peterglen99@gmail.com" ]
peterglen99@gmail.com
60edd456c9b939797562234d52e71e26515afd9d
9c52756a74134a10f8a1b35af0e2e70350d0e36a
/ivy_vision_tests/data.py
9a4634660b9d1363512cb88b9790e542dfb461ac
[ "Apache-2.0" ]
permissive
MZSHAN/vision
e13023cf7d3f4a32740f60418b1071770ce26a76
ac9f9fcec6d3b4e12659f5216ab5ce4aacc7d9ea
refs/heads/master
2023-07-13T09:59:29.384738
2021-08-20T13:25:26
2021-08-20T13:25:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,212
py
# global import os import cv2 import ivy_mech import ivy.numpy import numpy as np import xml.etree.ElementTree as ETree MIN_DENOMINATOR = 1e-12 def str_list_to_list(str_list): return [float(item) for item in str_list[1:-1].split(',')] class TestData: def __init__(self): self.batch_size = 1 ...
[ "daniel.lenton11@imperial.ac.uk" ]
daniel.lenton11@imperial.ac.uk
166322ebabb0c976ace6f2e0fbdbfd220d2d019c
7d2c27662499f2c594c6f706c0d774955cd97ec9
/tensorpack/dataflow/imgaug/paste.py
73a44523297d5cd85063a71158e91e7d97d6b1d5
[ "Apache-2.0" ]
permissive
RyannnXU/tensorpack
8ce0d5166719879a6a947ec253170751f7f45c30
b335a7baa00f578a5229315a3c8841efba602dcd
refs/heads/master
2021-06-09T18:23:38.410559
2017-01-03T16:44:20
2017-01-03T16:44:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,035
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # File: paste.py # Author: Yuxin Wu <ppwwyyxxc@gmail.com> from .base import ImageAugmentor from abc import abstractmethod import numpy as np __all__ = ['CenterPaste', 'BackgroundFiller', 'ConstantBackgroundFiller', 'RandomPaste'] class BackgroundFiller(objec...
[ "ppwwyyxxc@gmail.com" ]
ppwwyyxxc@gmail.com
15e8e6e2ce097df49256bb67b42d19a87f2491b0
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/synthetic/sieve-big-1485.py
3354bf1aaf14a6e069590cfa5fc3f5d79836bf4d
[]
no_license
Virtlink/ccbench-chocopy
c3f7f6af6349aff6503196f727ef89f210a1eac8
c7efae43bf32696ee2b2ee781bdfe4f7730dec3f
refs/heads/main
2023-04-07T15:07:12.464038
2022-02-03T15:42:39
2022-02-03T15:42:39
451,969,776
0
0
null
null
null
null
UTF-8
Python
false
false
31,753
py
# A resizable list of integers class Vector(object): items: [int] = None size: int = 0 def __init__(self:"Vector"): self.items = [0] # Returns current capacity def capacity(self:"Vector") -> int: return len(self.items) # Increases capacity of vector by one element def incr...
[ "647530+Virtlink@users.noreply.github.com" ]
647530+Virtlink@users.noreply.github.com
c53c7a9ab52018aad680ab9e0754c63891fb0dea
5a95daadcdf2eb4a9957be43d8231cd12615bda6
/pipeline/metric_fuc.py
a956061df328cf72cd447b7c422fcca60b80b07a
[]
no_license
fendaq/cail2018_repo
0fe7126ca052f57782aae6ce3863e6bad6833093
750c3846a678402220c8badd0c377deda277db6a
refs/heads/master
2020-03-21T19:32:58.539058
2018-06-21T12:01:55
2018-06-21T12:01:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,623
py
import mmap import numpy as np from keras.callbacks import Callback from sklearn.metrics import f1_score from tqdm import tqdm from config import * import os def predict2half(predictions): y_pred = np.zeros(predictions.shape) y_pred[predictions > 0.5] = 1 return y_pred def predict2tag(predictions): ...
[ "chongjiu.jin@tinno.com" ]
chongjiu.jin@tinno.com
2c3be747e324140bce05946aeaa349adbce9a3a5
539e4522a3a47b0234a3972b633ca8d55f0c71ec
/data2csv
40a8ad623e8b66de0133d90014f58c748f1d6b60
[ "MIT" ]
permissive
charnley/data2csv
a060c2fa4d5a239e67dd95050bc73b13f6853563
ac8b5516b0932f444203d17a270217d827633288
refs/heads/master
2020-07-03T21:50:51.715289
2018-06-15T20:43:45
2018-06-15T20:43:45
74,230,997
0
1
null
null
null
null
UTF-8
Python
false
false
3,688
#!/usr/bin/env python from __future__ import print_function import ConfigParser import sys import os import subprocess import re import numpy as np def eprint(*args, **kwargs): print(*args, file=sys.stderr, **kwargs) def get_floats(shell_cmd): """ Return all the floats for each line """ FNULL = open(os...
[ "jimmy@charnley.dk" ]
jimmy@charnley.dk
f41309b669d164c057a8575be6894c0ae30aa544
eb4f61315e8f0b139d0af3a95c59a2907845ebfd
/7-8(am)/corePython/control stmtss/cakediscount.py
177bcc1cf85eb01053c25aba35836b2d73d33abf
[]
no_license
vamsikrishna6668/python-core
c1d368792fa6f89bf51ae690d20b45cb5ae0fb98
b66ad0f6ad0deffbc350d5a7996f23220940e187
refs/heads/master
2020-04-02T10:00:39.641928
2018-10-23T12:19:14
2018-10-23T12:19:14
154,320,508
0
0
null
null
null
null
UTF-8
Python
false
false
1,136
py
veg_cake=int(input('No of Veg cakes:')) nonveg_cake=int(input('No of nonVeg cakes:')) vegcake_cost=300 nonvegcake_cost=350 vegcake_discount=(veg_cake*vegcake_cost)*0.05 nonvegcake_discount=(nonveg_cake*nonvegcake_cost)*0.04 total_vegcake_cost=(veg_cake*vegcake_cost)-vegcake_discount total_nonvegcake_cost=(nonveg_cake*n...
[ "vamsikrishna6668@gmail.com" ]
vamsikrishna6668@gmail.com
80a6ff4cb5ecc084d016f9301da878f259878fa9
68d38b305b81e0216fa9f6769fe47e34784c77f2
/alascrapy/spiders/digitalspy.py
0a6d6b49df371dfbc569048703b9ba89f5d402f1
[]
no_license
ADJet1437/ScrapyProject
2a6ed472c7c331e31eaecff26f9b38b283ffe9c2
db52844411f6dac1e8bd113cc32a814bd2ea3632
refs/heads/master
2022-11-10T05:02:54.871344
2020-02-06T08:01:17
2020-02-06T08:01:17
237,448,562
0
0
null
null
null
null
UTF-8
Python
false
false
3,075
py
# -*- coding: utf8 -*- from datetime import datetime from scrapy.http import Request from alascrapy.spiders.base_spiders.ala_spider import AlaSpider from alascrapy.lib.generic import get_full_url import alascrapy.lib.dao.incremental_scraping as incremental_utils class DigitalSpySpider(AlaSpider): name = 'digit...
[ "liangzijie1437@gmail.com" ]
liangzijie1437@gmail.com
bb1c11a5dec23753cf0d15af74e5a1e3f8fb3803
0b88201be895a25c8c321481615b4965f529d6da
/CDTB_Seg/model/sentence.py
c4f574f16d8c9e287b9e6e110b3fa970a1cc8c39
[ "BSD-2-Clause", "MIT" ]
permissive
NLP-Discourse-SoochowU/segmenter2020
1e8335da56b26f52ed48eb462047b9fe9b1e10df
fd71b353c59bcb82ec2cd0bebf943040756faa63
refs/heads/master
2023-01-13T23:14:37.078780
2020-11-24T05:07:26
2020-11-24T05:07:26
283,890,012
0
1
null
null
null
null
UTF-8
Python
false
false
748
py
# -*- coding: utf-8 -*- """ @Author: Lyzhang @Date: @Description: 封装句子,句法信息等 """ from stanfordcorenlp import StanfordCoreNLP from model.edu import EDU path_to_jar = 'stanford-corenlp-full-2018-02-27' nlp = StanfordCoreNLP(path_to_jar) class Sentence: def __init__(self, sentence, edus_list): ...
[ "longyin128128@163.com" ]
longyin128128@163.com
40e1d47660e1a1180f87336736369de34c5b4c7a
5a93d5eadf55513020c0c5149b2bc8a52d8ea4c0
/core/ui_mixins/input_panel.py
c491e98d7997e5d3f0827ff5c301b670910427f5
[ "MIT" ]
permissive
jmcollis/GitSavvy
b14dfe7485aa2d7c37c9bd3615a6b9be9fe274e8
de7d01539931b4344a296bd71ed87d9754389f6a
refs/heads/master
2022-10-06T23:38:36.821013
2022-09-26T14:21:33
2022-09-26T14:21:33
165,129,291
0
0
MIT
2019-01-10T20:51:57
2019-01-10T20:51:57
null
UTF-8
Python
false
false
398
py
import sublime def show_single_line_input_panel( caption, initial_text, on_done, on_change=None, on_cancel=None, select_text=True): window = sublime.active_window() v = window.show_input_panel(caption, initial_text, on_done, on_change, on_cancel) if select_text: v.run_command("select_all")...
[ "randy.cs.lai@gmail.com" ]
randy.cs.lai@gmail.com
9d0ff7677ff7081a08604ac32ba0f7d3910f7769
9d42a3bf2447340bb01f3472077653fbb4152f89
/WEEK_1/XDG_CACHE_HOME/Microsoft/Python Language Server/stubs.v1/Y9_gspj6TFoJYmKVcpQxqeHzeDzbHpuurO4m3_k-EtQ=/convolve.cpython-36m-x86_64-linux-gnu.pyi
00fc1e4db134935294f855e6a7075ae8aa227862
[]
no_license
krausce/Integrify
100ec19333916786c0f035b2819e0b3479483a01
43127726a8e82a48475dbdeabb91a85e3cdf760c
refs/heads/master
2020-07-10T00:04:23.818280
2019-06-25T14:16:49
2019-06-25T14:16:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,258
pyi
__doc__ = "This module 'convolve' is auto-generated with f2py (version:2).\nFunctions:\n omega = init_convolution_kernel(n,kernel_func,d=0,zero_nyquist=d%2,kernel_func_extra_args=())\n destroy_convolve_cache()\n y = convolve(x,omega,swap_real_imag=0,overwrite_x=0)\n y = convolve_z(x,omega_real,omega_imag,overwrite_...
[ "christopher.kraus@integrify.io" ]
christopher.kraus@integrify.io
0592131ab071183ad4eb44c54e560f11e46ede34
1f0ebcb6f428244c3283466c7f98944349f3df48
/greendoge/wallet/transaction_record.py
256fa58a22fee0e4a5e238d5ab70ed037423f6ee
[ "Apache-2.0" ]
permissive
ymcage/greendoge-blockchain
4b53433c26221ea6cf5665b9a134fff25c676e22
42d5440c3899419f4aa544908a50b1ed78799c13
refs/heads/main
2023-06-10T06:54:40.391343
2021-07-07T11:39:31
2021-07-07T11:39:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,501
py
from dataclasses import dataclass from typing import List, Optional, Tuple from greendoge.consensus.coinbase import pool_parent_id, farmer_parent_id from greendoge.types.blockchain_format.coin import Coin from greendoge.types.blockchain_format.sized_bytes import bytes32 from greendoge.types.mempool_inclusion_status im...
[ "83430349+lionethan@users.noreply.github.com" ]
83430349+lionethan@users.noreply.github.com
2a5e6f9ac45e880f664a9ce232fab5f208239894
544fe02a27cc4d987724b1bf45c2ba2994676521
/Q6.2_brain_teaser.py
f3c435d0d39f9e66d72d19cb75fb37c344115fe5
[ "Unlicense" ]
permissive
latika18/learning
1e7a6dbdea399b845970317dc62089911a13df1c
a57c9aacc0157bf7c318f46c1e7c4971d1d55aea
refs/heads/master
2021-06-16T19:20:28.146547
2019-09-03T06:43:28
2019-09-03T06:43:28
115,537,386
0
0
null
null
null
null
UTF-8
Python
false
false
366
py
There is an 8x8 chess board in which two diagonally opposite corners have been cut off. You are given 31 dominos, and a single domino can cover exactly two squares. Can you use the 31 dominos to cover the entire board? Prove your answer (by providing an example, or showing why it’s impossible). _ _____________________...
[ "noreply@github.com" ]
latika18.noreply@github.com
6439de8c26738686bf36333467e5cb2eb4570782
c0973d6939ef419ed3d261d95167d537499a553a
/OnePy/builtin_module/backtest_stock/stock_bar.py
3c54b51c0fd2d7d4c0792869b53a43b9813f685e
[ "MIT" ]
permissive
mj3428/OnePy
0c6e4be9b4bb36ae66b566dfa85cd44bae2a07de
8dc13fc21502daa5786aecaa4451ccba32fc8a14
refs/heads/master
2020-04-05T10:28:33.550915
2018-11-08T04:07:05
2018-11-08T04:07:05
134,518,682
0
0
MIT
2018-05-23T05:38:12
2018-05-23T05:38:11
null
UTF-8
Python
false
false
772
py
from OnePy.sys_module.models.base_bar import BarBase class BarAshares(BarBase): @property def pre_date(self) -> str: return self.previous_ohlc['date'] @property def pre_open(self) -> float: return self.previous_ohlc['open'] @property def pre_high(self) -> float: retu...
[ "chenjiayicjy@126.com" ]
chenjiayicjy@126.com
2c26f31e646ce45e3dd3e92987df40f489341d47
9788d21a60e7f97cd8dcc6d28a280901cfff7d99
/app/decorators.py
f926a1a5112d53b9c9baa525e6dfced11ed3b4ef
[]
no_license
Tiierr/MovieRental
b928d08b3a139c7c20fbdf1351402d2d8d700ab9
69bfaf3726aa7bedb58ef63a47d5e7b4476b08d9
refs/heads/master
2021-06-11T23:43:12.271576
2017-01-02T15:16:11
2017-01-02T15:16:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
667
py
from functools import wraps from flask import abort from flask_login import current_user from .models import Permission def permission_required(permission): """ 检查用户权限的自定义修饰器。 如果用户不具有指定权限, 则返回 ``403`` 错误码, 即 HTTP ``禁止`` 错误。 """ def decorator(f): @wraps(f) def decorated_funct...
[ "rayyu03@163.com" ]
rayyu03@163.com
17ece5964bcf66ee4adb69316fe20ee8aef56d8d
4fc87c7c55d431943eba76caaa76cc889e99bd3f
/npf/contrib/address/migrations/0002_auto_20151027_1114.py
c5dad8fa654fa93453863a66fbca651cc1f86e22
[]
no_license
Bonasolvo/npf-dev-roles
c774359b79642ae9ca2c82daeb0591677bd8e88c
dbde9493f2d23fd238dd3a6d8771bbbc5a650724
refs/heads/master
2016-09-01T05:35:50.246086
2015-12-15T07:02:40
2015-12-15T07:02:40
48,026,149
2
0
null
null
null
null
UTF-8
Python
false
false
2,988
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import fias.fields.address class Migration(migrations.Migration): dependencies = [ ('fias', '0001_initial'), ('address', '0001_initial'), ] operations = [ migrations.CreateMo...
[ "tymashh@Mac-Tymashh.local" ]
tymashh@Mac-Tymashh.local
2144800d8fcec458abe686f8dab5297deb877026
8a1cc9342312f794c48a857de1444a70491a75fa
/item/admin.py
6d0f120c83410ffb372120fdb92117f26cefbc13
[]
no_license
BijoySingh/Project-Hermes-Django
7adaf6757bc605e9f3781d915c4250bcc348fb47
7cb50402e612ea287d5922a2716a30b7888a0d70
refs/heads/master
2016-09-01T07:04:05.259487
2016-04-09T10:25:21
2016-04-09T10:25:21
55,672,434
1
0
null
null
null
null
UTF-8
Python
false
false
796
py
from django.contrib import admin # Register your models here. from item.models import Item, Comment, Photo, Rating, Reaction @admin.register(Item) class ItemAdmin(admin.ModelAdmin): list_display = ['id', 'title', 'latitude', 'longitude', 'rating', 'author'] @admin.register(Comment) class CommentAdmin(admin.Mod...
[ "bijoysingh693@gmail.com" ]
bijoysingh693@gmail.com
234d119020fbf20a956843715d516476ec476f75
7b33e9ab949ef2cd985e56abea4a7c0e5d53e5a5
/examples/enwik8_deepspeed/train.py
40980f744df6c18b7b981b8682c8aa486aabcbfc
[ "MIT" ]
permissive
karim-ahmed/linear-attention-transformer
3a416226b5f0707756e3044e6dd1dd65f6239ba7
dd3f7b63fe2235cba97ab1a95840d0484c70c068
refs/heads/master
2023-04-04T01:14:37.871715
2021-04-14T03:14:44
2021-04-14T03:14:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,789
py
import deepspeed from linear_attention_transformer import LinearAttentionTransformerLM from linear_attention_transformer.autoregressive_wrapper import AutoregressiveWrapper import argparse import random import tqdm import gzip import numpy as np import torch import torch.optim as optim from torch.nn import functional...
[ "lucidrains@gmail.com" ]
lucidrains@gmail.com
0e8a1b16ca9cc75722a90fa7c6b30afde32791a2
2e0908cf2dce87036e9b9d32f23d7b7e20b2127f
/tests/test_algebra_onnx_operator_mixin_syntax.py
76c44cd4a7b0b1415b9dfb9445e83e909f87b88a
[ "MIT" ]
permissive
jtpils/sklearn-onnx
a74b621c47ee02f4b0775c6f99091f6d79873650
5a065b767ec0e658f671e6313c2a3392b0dc81d6
refs/heads/master
2020-06-21T10:52:57.936832
2019-07-17T15:53:40
2019-07-17T15:53:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,561
py
import unittest import numpy as np from sklearn.base import BaseEstimator, TransformerMixin from sklearn.cluster import KMeans from sklearn.pipeline import make_pipeline from skl2onnx import convert_sklearn, to_onnx, wrap_as_onnx_mixin from skl2onnx.common.data_types import FloatTensorType from skl2onnx.algebra.onnx_op...
[ "noreply@github.com" ]
jtpils.noreply@github.com
a81398619c9e57b2cc4e2944013390a7e0a0f278
cad762658ab8326d7f43bba6f69df35a8b770e34
/pymarkdown/extension_impl.py
3cbc7feccab92d85f19b654a097b64f69975075c
[ "MIT" ]
permissive
ExternalRepositories/pymarkdown
9c248b519791a4c869d1e71fa405c06d15ce553b
479ace2d2d9dd5def81c72ef3b58bce6fb76f594
refs/heads/main
2023-08-28T03:45:25.536530
2021-10-31T19:39:22
2021-10-31T19:39:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,698
py
""" Module to allow for the details on the extension to be encapsulated. """ # pylint: disable=too-many-instance-attributes class ExtensionDetails: """ Class to allow for the details on the extension to be encapsulated. """ # pylint: disable=too-many-arguments def __init__( self, ...
[ "jack.de.winter@outlook.com" ]
jack.de.winter@outlook.com
1392d544e99615b3a5c8ab242d8ed3a12033d286
85e6a839747983e3fa177e6f02464cd3ca0ac978
/APIDemo/urls.py
b5d79fe33791152866490185a7306f0797654719
[]
no_license
wzw5566/JWT_APIDemo
27a8af0a722effef0bd8ec3a4af0c80d4524a6d7
291f781b8abc60f07494c7be3c915914e974eb94
refs/heads/master
2020-03-29T08:29:51.043583
2018-09-21T05:26:03
2018-09-21T05:26:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,030
py
"""APIDemo URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.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-based...
[ "wzw33874@qq.com" ]
wzw33874@qq.com
e8d0c61636321004aa67ee998a47d378eddd38ae
52a4d869976a97498bdf56a8d0ff92cac138a136
/Bioinformatics Textbook Track/Chapter 2/rosalind_ba2e.py
906b2d24c3cd9f5d49524b64c49fbd545e591f26
[]
no_license
aakibinesar/Rosalind
d726369a787d848cc378976b886189978a60a3a5
375bbdbfb16bf11b2f980701bbd0ba74a1605cdb
refs/heads/master
2022-08-18T09:36:00.941080
2020-05-24T18:49:38
2020-05-24T18:49:38
264,722,651
0
0
null
2020-05-17T17:51:03
2020-05-17T17:40:59
null
UTF-8
Python
false
false
1,608
py
def greedymotifsearch(dna,k,t): best = [s[:k] for s in dna] for i in range(len(dna[0])-k+1): tempbest = [dna[0][i:i+k]] for m in range(1,t): matrix = motifsToProfile(tempbest) # different from ba2d tempbest.append(profileMostProbablekmer(dna[m],k,matrix)) if scor...
[ "noreply@github.com" ]
aakibinesar.noreply@github.com
76517b2899271bb65076aab77a02cd61ec65495b
f4335e8e7d3010506f570167bbba18156d3a4674
/stubs/django/contrib/admin/options.pyi
4d2f440cdc079cf7fd64a5fa6ae8452acfeb3908
[]
no_license
rtpg/typehangar
133686ea45ad6187b768290aeebda9cbcae25586
790d057497c4791a38f9e3e009b07935b4a12f45
refs/heads/master
2021-01-19T04:49:17.940793
2017-01-16T13:54:14
2017-01-16T13:54:14
69,260,488
0
0
null
null
null
null
UTF-8
Python
false
false
8,467
pyi
# Stubs for django.contrib.admin.options (Python 3.5) # # NOTE: This dynamically typed stub was automatically generated by stubgen. from typing import Any, Optional from django.utils.translation import ugettext as _ IS_POPUP_VAR = ... # type: str TO_FIELD_VAR = ... # type: str HORIZONTAL = ... # type: Any VERTICAL...
[ "raphael@rtpg.co" ]
raphael@rtpg.co