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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0dd0fb2d347482fcc39221d04b6a381dab6cd16f | d87acfc6fa8dcf71ac26eebbd6069a938222efc3 | /captum/attr/_core/lrp.py | b40829da9c388417e8b280a4ee94afa8983edfd2 | [
"BSD-3-Clause"
] | permissive | pytorch/captum | aedeec58d34c7611ae8928144e9f2314f820c1ca | 945c582cc0b08885c4e2bfecb020abdfac0122f3 | refs/heads/master | 2023-09-04T08:49:54.120380 | 2023-07-08T00:30:37 | 2023-07-08T00:30:37 | 204,734,444 | 4,230 | 491 | BSD-3-Clause | 2023-09-08T17:58:15 | 2019-08-27T15:34:41 | Python | UTF-8 | Python | false | false | 18,328 | py | #!/usr/bin/env python3
import typing
from collections import defaultdict
from typing import Any, cast, List, Tuple, Union
import torch.nn as nn
from captum._utils.common import (
_format_output,
_format_tensor_into_tuples,
_is_tuple,
_register_backward_hook,
_run_forward,
)
from captum._utils.grad... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
a5ca0dba0718aa09e17d7542056fc9af17a7eb38 | 49c2492d91789b3c2def7d654a7396e8c6ce6d9f | /ROS/catkin_ws/build/dyros_simulator/dataspeed_can_tools/catkin_generated/pkg.installspace.context.pc.py | aaf615e0d8cdbcc7a35dbfeacc60e39121b30380 | [] | no_license | DavidHan008/lockdpwn | edd571165f9188e0ee93da7222c0155abb427927 | 5078a1b08916b84c5c3723fc61a1964d7fb9ae20 | refs/heads/master | 2021-01-23T14:10:53.209406 | 2017-09-02T18:02:50 | 2017-09-02T18:02:50 | 102,670,531 | 0 | 2 | null | 2017-09-07T00:11:33 | 2017-09-07T00:11:33 | null | UTF-8 | Python | false | false | 453 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "-ldataspeed_can_tools".split(';') if "-ldataspeed_can_tools" != "" else []
PROJECT_NAM... | [
"gyurse@gmail.com"
] | gyurse@gmail.com |
d5fc2e9c95367713fde53a9b10a7e522573cc1da | 4fe1dc7170d2d44e2c9988c71b08f66d469ee4b8 | /Appendices/E/ejE5.py | 77ce7a4cada9e676303b27e369f41adfd4fb3073 | [] | no_license | ftorresi/PythonLearning | 53c0689a6f3e7e219a6314a673a318b25cda82d1 | f2aeb5f81d9090a5a5aa69a8d1203688e9f01adf | refs/heads/master | 2023-01-12T00:40:05.806774 | 2020-11-13T14:33:08 | 2020-11-13T14:33:08 | 267,460,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,930 | py | """Now we solve the ODE problem u - 10u' = 0 u(0)= 0.2 in [0,20] using HEUN's method"""
import numpy as np
import matplotlib.pyplot as plt
#Exact solution
def exact_u(t):
return 0.2*np.exp(0.1*t)
#u'=f(u,t) as a class
class f:
def __init__(self):
pass
def __call__(self,u,t):
return 0... | [
"noreply@github.com"
] | ftorresi.noreply@github.com |
cd97fc37637ebbea191dfde0b5de158f4d957ec8 | 6189f34eff2831e3e727cd7c5e43bc5b591adffc | /WebMirror/management/rss_parser_funcs/feed_parse_extractNorthbladetlBlogspotCom.py | 6ae6636f041f4c6171da2a37228f9012d3e74405 | [
"BSD-3-Clause"
] | permissive | fake-name/ReadableWebProxy | 24603660b204a9e7965cfdd4a942ff62d7711e27 | ca2e086818433abc08c014dd06bfd22d4985ea2a | refs/heads/master | 2023-09-04T03:54:50.043051 | 2023-08-26T16:08:46 | 2023-08-26T16:08:46 | 39,611,770 | 207 | 20 | BSD-3-Clause | 2023-09-11T15:48:15 | 2015-07-24T04:30:43 | Python | UTF-8 | Python | false | false | 562 | py |
def extractNorthbladetlBlogspotCom(item):
'''
Parser for 'northbladetl.blogspot.com'
'''
vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title'])
if not (chp or vol) or "preview" in item['title'].lower():
return None
tagmap = [
('PRC', 'PRC', 'translated'),
('L... | [
"something@fake-url.com"
] | something@fake-url.com |
aeda73e4de7393ca198519384998e625a5a63d26 | 6f33381dcb19a042d916b4a452f9cb7438729798 | /jabba/graphs/legend.py | 6767d1bc8f8140580a6220c89e4327bd31cd22ab | [
"MIT"
] | permissive | puppetlabs/jabba | 8308adf5be9ba25efb414f384bf3568854be55e2 | 71c1d008ab497020fba6ffa12a600721eb3f5ef7 | refs/heads/master | 2023-06-13T09:17:49.274408 | 2017-06-30T11:02:27 | 2017-06-30T11:02:27 | 185,443,592 | 0 | 1 | null | 2019-05-07T16:54:03 | 2019-05-07T16:54:02 | null | UTF-8 | Python | false | false | 939 | py |
import graphviz as gv
class Legend(object):
"""
GraphViz graph for rendering legend
"""
def __init__(self):
# Legend is presented as map (name -> settings)
self.items = {}
def add_item(self, name, settings):
self.items[name] = settings
def render(self):
legend... | [
"rebovykin@gmail.com"
] | rebovykin@gmail.com |
61bc8a3a202bc70ca7a6d6c6a4c970e5e87ea59c | 06b25df867b9a4741b4ca803eceb254aa50758e9 | /editor_api/rest/lum.py | acdf87c0a73ffc1bdb30ca30bc06f1dcb3063474 | [
"MIT"
] | permissive | jphuart/swatplus-automatic-workflow | e5ceaa745096926176d9fc45042f836e628d0504 | dd2eeb7f882eb2d4ab7e1e5265c10b9beb93ddc4 | refs/heads/master | 2023-08-15T02:47:40.742352 | 2021-10-05T14:57:19 | 2021-10-05T14:57:19 | 282,170,706 | 0 | 0 | null | 2020-07-24T08:52:25 | 2020-07-24T08:52:24 | null | UTF-8 | Python | false | false | 19,887 | py | from flask_restful import Resource, reqparse, abort
from playhouse.shortcuts import model_to_dict
from peewee import *
from .base import BaseRestModel
from database.project import base
from database.project.setup import SetupProjectDatabase
from database.project.lum import Landuse_lum, Management_sch, Cntable_lum, Con... | [
"celray.chawanda@outlook.com"
] | celray.chawanda@outlook.com |
90254a2e8ba7c81e196fd637cbd4598c1fdaa717 | 3e1b5d7cb529be1529ae45fa062a423f8328d6d2 | /Edgar-new-codes/Getting-10-K- and-10-Q doc links.py | 54aab244b45e5b116a35eee0099a5ad3de1aba53 | [] | no_license | abhigupta4/Finrsch | 260687b3b53d3c94a03dc2b9e640952718033486 | ca0b7f1631fbbe109b81403b9ffc36c67c759d23 | refs/heads/master | 2021-01-19T10:54:19.705213 | 2017-07-06T12:22:37 | 2017-07-06T12:22:37 | 87,913,197 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,806 | py | import requests
from bs4 import BeautifulSoup
import urlparse
def get_file(cur,val):
base = 'https://www.sec.gov'
r = requests.get(cur)
document = BeautifulSoup(r.content,"lxml")
links = document.find_all('a')
for link in links:
if 'Archives' in link.get("href"):
print 'Document link'
print base+link.get(... | [
"abhinavgupta6245@gmail.com"
] | abhinavgupta6245@gmail.com |
ec47bc066bc69f6cf12e1ef76fe29f8be677394c | 5667cc877342204b7d54b6c3cc5a9f4854f08829 | /.history/apppersona/views_20201101174230.py | 3ca271ad58977d9585b9c4096dc875f160abb1d5 | [] | no_license | Nyckhos/TestCommit | d62e3f6fefb04ab5647475cc7ead0d72cbd89efa | 9aa8e2e35280b7862960cc8a864e9c02ac7f4796 | refs/heads/main | 2023-01-05T05:57:59.223641 | 2020-11-02T02:08:18 | 2020-11-02T02:08:18 | 309,237,224 | 2 | 0 | null | 2020-11-02T02:30:43 | 2020-11-02T02:30:43 | null | UTF-8 | Python | false | false | 3,787 | py | from django.http import request
from django.shortcuts import redirect, render
from django.http import HttpResponse
from .models import *
from .forms import *
from django.contrib.auth.models import User
from django.contrib.auth import *
from django.urls import reverse
from django.contrib.auth import login
from django.co... | [
"fernandox_240997@live.com"
] | fernandox_240997@live.com |
d3bdbc5461a26a5c7fe0183620159be6662d508c | a9a2f66671fadf765d7feb511a4a5d9b9f4ef362 | /test/agent/server/local_elastic_agent_test.py | d86d3dc297c43d5bceef33af548cc125f0b9dd84 | [
"BSD-3-Clause"
] | permissive | BobLiu20/elastic | 64885d164d485976ea8740672c454c212bab4ff8 | e371fe57672aea91d2466f5e04884028d8dca649 | refs/heads/master | 2022-11-11T10:22:20.181835 | 2020-07-01T23:30:44 | 2020-07-01T23:32:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,667 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
import multiprocessing
import os
import time
import unittest
import uuid
from unittest.moc... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
827e3bcf2fca26a7b7abc2fc74da531da077f856 | f6078890ba792d5734d289d7a0b1d429d945a03a | /extra/oconnorcollin_24162_1340359_Collin_O'Connor_1607318_ExtraCredit_week7.py | 768973e38dd5ce426badbd6677369e038d6aa08c | [] | no_license | huazhige/EART119_Lab | 1c3d0b986a0f59727ee4ce11ded1bc7a87f5b7c0 | 47931d6f6a2c7bc053cd15cef662eb2f2027712c | refs/heads/master | 2020-05-04T23:40:53.709217 | 2019-06-11T18:30:45 | 2019-06-11T18:30:45 | 179,552,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,750 | py | # -*- coding: utf-8 -*-
"""
Created on Mon May 13 08:26:50 2019
@author: collin O'Connor
"""
import numpy as np
import integrate_utils as int_utils
#==============================================================================
#Question 1
#================================================================... | [
"hge2@ucsc.edu"
] | hge2@ucsc.edu |
69fe2635469cacf0543c8bdc6588c35e1ff15509 | aa1972e6978d5f983c48578bdf3b51e311cb4396 | /nitro-python-1.0/nssrc/com/citrix/netscaler/nitro/resource/config/network/vrid6_interface_binding.py | 514e8bd208b3024680ba6c2b0c5d4530d8b2a8a3 | [
"Python-2.0",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | MayankTahil/nitro-ide | 3d7ddfd13ff6510d6709bdeaef37c187b9f22f38 | 50054929214a35a7bb19ed10c4905fffa37c3451 | refs/heads/master | 2020-12-03T02:27:03.672953 | 2017-07-05T18:09:09 | 2017-07-05T18:09:09 | 95,933,896 | 2 | 5 | null | 2017-07-05T16:51:29 | 2017-07-01T01:03:20 | HTML | UTF-8 | Python | false | false | 6,678 | py | #
# Copyright (c) 2008-2016 Citrix Systems, 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 l... | [
"Mayank@Mandelbrot.local"
] | Mayank@Mandelbrot.local |
b1480d429e722377d42d9397f4d3dd57384079cc | 0add471d82edab23894421dc17429da39b92cc73 | /heaviside/ast.py | db8d24717141b5929f91b3a0e6c2f4d5e1c6f583 | [
"Apache-2.0"
] | permissive | MHova/heaviside | fac09ae7608306665ee01a46baa2197dc81d649d | 9ee9e69343c58124b8c7a119888a195794978cd6 | refs/heads/master | 2020-05-30T10:08:11.110234 | 2019-05-30T20:16:52 | 2019-05-30T20:16:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,872 | py | # Copyright 2016 The Johns Hopkins University Applied Physics Laboratory
#
# 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 ... | [
"Derek.Pryor@jhuapl.edu"
] | Derek.Pryor@jhuapl.edu |
4e6f7728e1ccc0ee08f9eab26f26539c32f245f1 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02779/s326665097.py | af3b88d1cfb1a25941fa607ee97b983b715cf65f | [] | 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 | 221 | py | from collections import Counter
n = int(input())
a = list(map(int, input().split()))
c = Counter(a)
new = c.values()
for i in new:
if i != 1:
re = "NO"
break
else:
re = "YES"
print(re)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
2bc1c55aa465d41767f5a4a17e88f2902fa650a2 | 115b5356242176b8873ae7e43cd313e41cbd0ee6 | /webstuff/webscraper/tidytext.py | 057e7c3a5a8d77e0574b55b38fb0fe5b7a3b444a | [] | no_license | squeakus/bitsandbytes | b71ec737431bc46b7d93969a7b84bc4514fd365b | 218687d84db42c13bfd9296c476e54cf3d0b43d2 | refs/heads/master | 2023-08-26T19:37:15.190367 | 2023-07-18T21:41:58 | 2023-07-18T21:42:14 | 80,018,346 | 2 | 4 | null | 2022-06-22T04:08:35 | 2017-01-25T13:46:28 | C | UTF-8 | Python | false | false | 976 | py | from BeautifulSoup import BeautifulSoup
import re
page = open('out2.txt','r')
for idx,line in enumerate(page):
parts = line.split(';')
for part in parts:
#print part, '\n'
if part.startswith('var point = new GLatLng'):
print "\n", part.lstrip('var point = new GLatLng')
m = re.... | [
"jonathanbyrn@gmail.com"
] | jonathanbyrn@gmail.com |
d091376ea903c1328ac580659f780419ba14131f | 5f834f8aa0603f4f7adc56fdcd5e227538931f81 | /diab_logisReg.py | 2ce02d3f7c7d13896c4c7c0870cb4b25f1af7a59 | [] | no_license | Kamal-prog-code/HealthCare | d9a613bcb315a04b14feead97bb4367034f91606 | 2d2fe464a5d25c1373634663dc1eaf07a9064a30 | refs/heads/main | 2023-01-20T22:17:55.157525 | 2020-12-05T20:50:03 | 2020-12-05T20:50:03 | 318,627,358 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,462 | py | from pyspark.ml.feature import VectorAssembler
from pyspark.sql import SparkSession
from pyspark.ml.feature import StandardScaler
from pyspark.ml.classification import LogisticRegression
from pyspark.mllib.evaluation import BinaryClassificationMetrics
from pyspark.ml.classification import RandomForestClassifier
import ... | [
"karrerajisyam123@gmail.com"
] | karrerajisyam123@gmail.com |
b25f51bd9909f386f89f3058a2323e1d1b8c133f | 6c2608bc87b522da77c792e20330989de17b3005 | /Chap-7/ex179.py | 43c10f227985eb4652d2196644fcc6bc8c504dfe | [] | no_license | AleByron/AleByron-The-Python-Workbook-second-edition | 8a0b408c1bbd90c82e6b837fc898ee10341ca8fa | 491b2fd394aa04e29a4b2dbe9a615c547e239028 | refs/heads/main | 2023-01-13T21:01:17.757669 | 2020-11-11T01:29:28 | 2020-11-11T01:29:28 | 306,487,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | def square(n,g):
if 0<n-g**2<10**-12:
return g
else:
g = square(n,(g+(n/g))/2)
return g
def main():
n = 32
g = 1
print(square(n,g))
main() | [
"noreply@github.com"
] | AleByron.noreply@github.com |
bfb90c8755e3b83e9062e88376453a3cfeeee7ec | 9c2edc273db48dcb6d31a937510476b7c0b0cc61 | /pyopengl_sample/tutorial1.py | 0fd92b98d815dd26d6457ba6f9ac33791867e7e0 | [] | no_license | miyamotok0105/python_sample | 4d397ac8a3a723c0789c4c3e568f3319dd754501 | 77101c981bf4f725acd20c9f4c4891b29fbaea61 | refs/heads/master | 2022-12-19T22:53:44.949782 | 2020-05-05T05:09:22 | 2020-05-05T05:09:22 | 81,720,469 | 1 | 0 | null | 2022-11-22T02:22:55 | 2017-02-12T11:15:08 | Jupyter Notebook | UTF-8 | Python | false | false | 391 | py | #!/usr/bin/python
from OpenGL.GL import *
from OpenGL.GLUT import *
def draw():
glClearColor(1.0, 0.0, 0.0, 0.0)
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT)
glFlush()
glutSwapBuffers()
glutInit(sys.argv)
glutInitDisplayMode(GLUT_RGBA | GLUT_DOUBLE | GLUT_DEPTH)
glutInitWindowSize(320, 240)
g... | [
"miyamotok0105@gmail.com"
] | miyamotok0105@gmail.com |
0d918889f8d20d3a4695849eb65eab1ae2ad9c9d | edfd1db2b48d4d225bc58be32fbe372a43415112 | /team-task/airflow2.0/dags/efirmant/lesson3.challenge2.py | ea755ca01b0b78617310f0d87c4b0b0748206373 | [] | no_license | rwidjojo/airflow-training | ed83cb9e97ca85ef06de1426f2f41014881a1f22 | ac82040d8ddc3859df5576eee08d397e824016f1 | refs/heads/main | 2023-08-12T21:01:17.672059 | 2021-01-04T09:17:48 | 2021-01-04T09:17:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 915 | py | import logging
from datetime import timedelta
from airflow import DAG
from airflow.utils.dates import days_ago
from airflow.operators.bash_operator import BashOperator
from airflow.operators.python_operator import PythonOperator
from airflow.hooks.postgres_hook import PostgresHook
owner = 'efirmant' # Replace with you... | [
"nurcahyopujo@gmail.com"
] | nurcahyopujo@gmail.com |
3b97278167640c790740fbd6e9a435d1e87ce6e0 | baaa8c9486e02f4232f4926cf4e1a2eeee1199b4 | /accounts/admin.py | 2395fb1f93dfca90cba93acc7edf2da53b6c172c | [] | no_license | bondarenkoav/helpdesk | b2be867605d484c34aaea4d8bea876c633947f14 | 866ea2dc6ee5182d6310d800b301270b38490fd2 | refs/heads/master | 2023-01-08T09:44:15.852016 | 2022-12-28T10:53:39 | 2022-12-28T10:53:39 | 93,615,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,047 | py | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from django.contrib.auth.models import User
from accounts.models import Profile
class ProfileInline(admin.StackedInline):
model = Profile
can_delete = False
verbose_name = u'Профиль'
verbose_name_plural = u'Профиль'
... | [
"printex.orsk@gmail.com"
] | printex.orsk@gmail.com |
8e291920bc9258758fe57e54877cada173a13eef | 63bf6161532eefa72aa3be8b01cde601b08507dc | /python-mapping-example/fhir_model_generator/tests/model/slot_tests.py | ad3cec096349f05c2c4414e7b0a4ae6fc7aac7a8 | [
"Apache-2.0"
] | permissive | Healthedata1/mFHIR | 4ef370b87e03e973918e5683977d32fe262655bc | 1b4ea441cfa08b661416a3badedf7e90f2809163 | refs/heads/master | 2022-12-10T21:07:03.948406 | 2021-06-18T01:58:23 | 2021-06-18T01:58:23 | 129,964,251 | 9 | 5 | null | 2022-12-09T05:23:54 | 2018-04-17T20:57:15 | HTML | UTF-8 | Python | false | false | 6,767 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 4.0.1-9346c8cc45 on 2020-02-10.
# 2020, SMART Health IT.
import os
import io
import unittest
import json
from model import slot
from model.fhirdate import FHIRDate
class SlotTests(unittest.TestCase):
def instantiate_from(self, filename):
... | [
"ehaas@healthedatainc.com"
] | ehaas@healthedatainc.com |
63cf4e7fc790f00047e1d1b4a59e089134a6a4ce | 1113e8eec4ccbbcd00c6a9b5466c5239b6f0eb03 | /cpos/foundation/_callable/core.py | d5bcbc5bd5bde2ddfb68fa7a980ecfe3e94c65cb | [] | no_license | yizhong120110/CPOS | a05858c84e04ce4aa48b3bfb43ee49264ffc5270 | 68ddf3df6d2cd731e6634b09d27aff4c22debd8e | refs/heads/master | 2021-09-01T17:59:53.802095 | 2017-12-28T05:43:06 | 2017-12-28T05:43:06 | 106,247,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,495 | py | # -*- coding: utf-8 -*-
import textwrap
import sys
import os
from ..substrate.utils.logger import logger
from ..substrate.interfaces import Clarified
class Callable(object):
def __init__(self, py_code, fragment_name=''):
self.d = {'py_code':py_code,'fragment_name':fragment_name}
def run(s... | [
"yizhong120110@gmail.com"
] | yizhong120110@gmail.com |
bd48767328d1904968baef929946d37d9b971dcd | 5e629210c351f369208155a11f395d47be9b837b | /conditionCompleteion/src/osd/objectService/unitTests/test_diskfile.py | 9dd7b4b3b27b4b0cd4619e36e37b004d5c54ebc0 | [] | no_license | confi-surya/pythonicPracto | 028f2a50bc595b90bee95b235ec9218da3e45fe5 | c366afd9ab54b8cacda767189f1a13efb5f961b2 | refs/heads/master | 2020-03-23T12:56:55.843408 | 2018-07-19T11:51:59 | 2018-07-19T14:37:13 | 141,572,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,853 | py | import cPickle as pickle
import os
import errno
import mock
import unittest
import email
import tempfile
import uuid
#import xattr
from shutil import rmtree
from time import time
from tempfile import mkdtemp
from hashlib import md5
from contextlib import closing, nested
from gzip import GzipFile
from eventlet import t... | [
"surya.singh@nectechnologies.in"
] | surya.singh@nectechnologies.in |
37a08b96698b20dd1fea9d7b61d6b4b83fbb7d5e | 2672a2b664ed12f190b68deb51476b451a524561 | /portal/config.py | e45d5065a743935fa64b17b3a1a2a8ea6266d98c | [] | no_license | LCBRU/genvasc_portal_web | 9a2a27b4a2ba0fb2db402efc96eea8b2ed0a86e6 | 11eb562a5e92fd05fd5a902b7e062a2813e7b3f7 | refs/heads/master | 2023-01-09T09:59:07.301366 | 2023-01-07T14:44:07 | 2023-01-07T14:44:07 | 132,786,398 | 0 | 0 | null | 2022-01-11T13:17:30 | 2018-05-09T16:45:40 | Python | UTF-8 | Python | false | false | 2,527 | py | import os
from dotenv import load_dotenv
# Load environment variables from '.env' file.
load_dotenv()
class BaseConfig(object):
REMEMBER_COOKIE_NAME = 'GENVASC Remember Me'
REMEMBER_COOKIE_DURATION = 1
MAIL_SERVER = os.environ['MAIL_SERVER']
MAIL_DEBUG = os.environ['MAIL_DEBUG']
SECURITY_EMAIL_... | [
"rabramley@gmail.com"
] | rabramley@gmail.com |
3dd764efee547895b61b17074bef1e80ee82a562 | 9bb6795a12d6e042b962704dab9ec59d92d54e8f | /1_numpy/2_reshape.py | b5d60e8241460327f2b7b83d534050593e76005f | [] | no_license | kimsoosoo0928/Perfect_Guide | c5177037512cb06814f0bbfcb70a22d14c9ec1fb | 9b615d320957babb1a918fb38282062998a1e5c4 | refs/heads/main | 2023-07-18T12:29:03.353274 | 2021-08-29T00:31:28 | 2021-08-29T00:31:28 | 396,668,104 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,093 | py | import numpy as np
array1 = np.arange(10)
print('array1 : \n', array1)
array2 = array1.reshape(2,5)
print('array2 : \n', array2)
array3 = array1.reshape(5,2)
print('array3 : \n', array3)
'''
array1 :
[0 1 2 3 4 5 6 7 8 9]
array2 :
[[0 1 2 3 4]
[5 6 7 8 9]]
array3 :
[[0 1]
[2 3]
[4 5]
[6 7]
[8 9]]
'''
arra... | [
"kimsoosoo0928@gmail.com"
] | kimsoosoo0928@gmail.com |
8764d59d46a5444c80f139b86086313daedfab35 | 711756b796d68035dc6a39060515200d1d37a274 | /output_cog/optimized_44595.py | 4b502c0083653180de1a265b86c37f599c2c98b6 | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,838 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
7fa50c182bf54b2fbf51441eefa0f324279633e7 | 1431b07074b96c7baa6a43a99717da2a658424af | /test/utils/Test_Zip_Folder.py | d6ecc3e784eaacfbffe1988284d8bf95e88f557b | [
"Apache-2.0"
] | permissive | almeidam/pbx-gs-python-utils | 054a7334070627bc27f682ed78c2986230d1cfab | 3f8987dd2d1fc27d1d262385280d7303009f5453 | refs/heads/master | 2020-04-30T10:44:46.179729 | 2019-03-20T13:59:01 | 2019-03-20T13:59:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 564 | py | import json
from unittest import TestCase
from utils.Dev import Dev
from utils.Files import Files
from utils.Misc import Misc
from utils.Zip_Folder import Zip_Folder
class Test_Zip_Folder(TestCase):
def test__using_with__no_params(self):
with Zip_Folder() as (zip_file):
assert zip_file is No... | [
"dinis.cruz@owasp.org"
] | dinis.cruz@owasp.org |
5e991e4e3dc2696c8cfb6c76836a9bc9521137d2 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/nlp/Bert-text-classification_for_PyTorch/transformers/src/transformers/models/marian/modeling_flax_marian.py | 9d8b44c5f9da84470baadab2b4eafaf3dfea6fd6 | [
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | 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 | 63,778 | py | # coding=utf-8
# Copyright 2021 The Marian Team Authors and The Google Flax Team Authors And The HuggingFace Inc. team. 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
#
... | [
"dongwenbo6@huawei.com"
] | dongwenbo6@huawei.com |
69acf6cb42853141e98f121c77a9d61f1f1a30cf | 2c926b4847a44c7f831d47ed0160751d3248e8f4 | /venv/lib/python3.8/site-packages/hubspot/automation/actions/models/single_field_dependency.py | f18ca6bf64e6504458c415ed11f6e4ab7e527d5a | [] | no_license | Women-in-Tech-Society/WITS_Site | c42cd2c9abe1b5515b80be82dc876a6c3842e42a | 5dbf22f5ee5a36358f6f279af4c13d86d31653c5 | refs/heads/main | 2023-05-11T02:34:05.531902 | 2021-06-01T01:05:12 | 2021-06-01T01:05:12 | 278,658,100 | 0 | 5 | null | 2022-11-22T18:41:35 | 2020-07-10T14:43:28 | Python | UTF-8 | Python | false | false | 6,688 | py | # coding: utf-8
"""
Custom Workflow Actions
Create custom workflow actions # noqa: E501
The version of the OpenAPI document: v4
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from hubspot.automation.actions.configuration import Configuration
c... | [
"mhuda@uwo.ca"
] | mhuda@uwo.ca |
d75ab97fb9184a24f45a05f01fc83903b2dc748e | 6f8aec72f983715b1dcc1e067e980a440440423a | /bruteguard/patterns/singleton.py | a9f7c0f51adf9d2ce958d11132938a6d7c1b1ffb | [
"MIT"
] | permissive | dcopm999/django-brute-guard | 41cef7c1f98b275c0ef2176424c8ef1e75002fdb | e4c629d81f1cc732ddae2a43042e92ea423884b8 | refs/heads/master | 2023-08-02T06:16:54.219332 | 2021-09-30T05:45:10 | 2021-09-30T05:45:10 | 409,435,237 | 0 | 0 | MIT | 2021-09-30T05:45:10 | 2021-09-23T03:32:47 | Python | UTF-8 | Python | false | false | 1,076 | py | from typing import Dict
class SingletonMeta(type):
"""
В Python класс Одиночка можно реализовать по-разному. Возможные способы
включают себя базовый класс, декоратор, метакласс. Мы воспользуемся
метаклассом, поскольку он лучше всего подходит для этой цели.
"""
_instances: Dict[type, type] = {... | [
"dcopm999@gmail.com"
] | dcopm999@gmail.com |
9bf099e4570aab4e3c827aba4cfa379cb7ad7196 | a86cb1d0cc2c01ccc5b7d03d25a1b98d4f8b66ca | /day_18/crawling_03.py | 08ce38608a68158041385e8770f169492843e3ce | [] | no_license | yongseongCho/python_201911 | 020efd812df909f6d1150c6a15a9a4fa6ee946b6 | f4696fac81a101d13a95ca0ca602e6478b4d2f58 | refs/heads/master | 2020-09-12T12:44:46.364259 | 2019-12-19T13:17:08 | 2019-12-19T13:17:08 | 222,429,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,321 | py | # -*- coding: utf-8 -*-
from bs4 import BeautifulSoup as bs
html = '''
<td class="title">
<div class="tit3">
<a href="/movie/bi/mi/basic.nhn?code=181710"
title="포드 V 페라리">포드 V 페라리</a>
</div>
</td>
'''
soup = bs(html, 'html.parser')
# BeautifulSoup 객체의 find 메소드
# 태그의 이름과 속성의 ... | [
"noreply@github.com"
] | yongseongCho.noreply@github.com |
90adc3801f23ed865f8ce3373066f9a2a5ee43e3 | e2bd8debf59f71e2c7fabea03cc108618944b2b0 | /el_pagination/paginators.py | 6da5231fca53a0b0e1e586150ed4c8803e1d1b0e | [] | no_license | successar/Quizz | 874c7c8656c33973d5d4f9563073b0434573a333 | 2244ff13568db92e3ff88156982ec44c83418199 | refs/heads/master | 2021-01-21T13:11:45.960397 | 2016-05-11T10:34:48 | 2016-05-11T10:34:48 | 53,747,315 | 1 | 1 | null | 2016-05-07T15:00:41 | 2016-03-12T18:36:34 | Python | UTF-8 | Python | false | false | 4,359 | py | """Customized Django paginators."""
from __future__ import unicode_literals
from math import ceil
from django.core.paginator import (
EmptyPage,
Page,
PageNotAnInteger,
Paginator,
)
class CustomPage(Page):
"""Handle different number of items on the first page."""
def start_index(self):
... | [
"successar@gmail.com"
] | successar@gmail.com |
2a739b751d27912b4ec246d9d6c54a4b4576bb53 | 441ee516fa509a66eb6a6132ed0fbafeae1a06ae | /uploadf/models.py | ecd3c53d7d6062ba60639a19f3c1636e76875306 | [] | no_license | Shirhussain/FileUpload | 3237627020ec322d4097e757b64f9f0c64feb4e7 | 19d2e848d7d05fd46838f9140c0a5658bbca281a | refs/heads/master | 2022-08-26T13:26:23.859084 | 2020-05-27T22:02:36 | 2020-05-27T22:02:36 | 264,777,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | from django.db import models
class Book(models.Model):
title = models.CharField(max_length=100)
author = models.CharField(max_length=50)
pdf = models.FileField(upload_to="mag/")
cover = models.ImageField(upload_to="mag/cover/", null=True, blank=True)
def __str__(self):
return self.title
def delete(sel... | [
"sh.danishyar@gmail.com"
] | sh.danishyar@gmail.com |
fbf9ee05f41aa879f6e8efe0d638a2ad5f92c86f | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/53/usersdata/94/21421/submittedfiles/matriz2.py | 0d65cb52f0ea2e9536be7e87278cf3364bd3fd2d | [] | 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,374 | py | # -*- coding: utf-8 -*-
from __future__ import division
import numpy as np
def soma_diagonal_principal(a):
soma=0
for i in range(0,a.shape[0],1):
soma=soma+a[i,i]
return soma
def soma_diagonal_secundaria(a):
soma=0
for i in range(0,a.shape[0],1):
soma=soma+a[i,a.shape[0]-i-1]:
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
5cbebc094716ebcd2abe250c57520dee3117a1d0 | d7d25574246fd8585396a02ebd2ca8450e49b082 | /leetcode-py/leetcode1041.py | 44b0f6df2298740f5cbbebe712ae04d38cac1548 | [] | no_license | cicihou/LearningProject | b6b1de2300e574835f253935d0c0ae693b194020 | 3a5649357e0f21cbbc5e238351300cd706d533b3 | refs/heads/master | 2022-12-04T06:18:14.856766 | 2022-11-29T08:54:16 | 2022-11-29T08:54:16 | 141,606,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,835 | py | class Solution:
def isRobotBounded(self, instructions: str) -> bool:
'''
lc 657 的变种
这个问题比较 tricky,其实更接近数学问题
实际上只要判断机器人最后是否面朝北,就可以知道是不是回到了原点
关于为什么 instructions *= 4 是最小限度的解释:
https://leetcode.com/problems/robot-bounded-in-circle/discuss/850437/Python-O(n)-solution-ex... | [
"houxi_zuel@163.com"
] | houxi_zuel@163.com |
460d5b12c08e5d071fb4b61103902d08761bbfd6 | 7239d389894613ef132edb1198a4f47cb2b65f92 | /packages/python/plotly/plotly/graph_objs/histogram/_hoverlabel.py | fbe525403ca58725c86a720504b77e42a4dc7ec7 | [
"MIT"
] | permissive | fast3dd13sa/plotly.py | 2169417b72481ff2937b5a9ce90d426cd1cccd80 | e778c6b5e6ae9665d7a5e2ddb666f43806df3959 | refs/heads/master | 2022-04-26T01:11:46.345181 | 2020-04-27T19:49:56 | 2020-04-27T19:49:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,798 | py | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Hoverlabel(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "histogram"
_path_str = "histogram.hoverlabel"
_valid_props = {
"align",
... | [
"noreply@github.com"
] | fast3dd13sa.noreply@github.com |
174ab03d35f1b83c388a52575470a997450147eb | 444a9480bce2035565332d4d4654244c0b5cd47b | /research/cv/centerface/dependency/centernet/src/lib/datasets/sample/multi_pose.py | 5f4ff97eb3a893a418e55fcd8f149478108e8a22 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license",
"MIT"
] | permissive | mindspore-ai/models | 7ede9c6454e77e995e674628204e1c6e76bd7b27 | eab643f51336dbf7d711f02d27e6516e5affee59 | refs/heads/master | 2023-07-20T01:49:34.614616 | 2023-07-17T11:43:18 | 2023-07-17T11:43:18 | 417,393,380 | 301 | 92 | Apache-2.0 | 2023-05-17T11:22:28 | 2021-10-15T06:38:37 | Python | UTF-8 | Python | false | false | 9,604 | py | """
MIT License
Copyright (c) 2019 Xingyi Zhou
All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modi... | [
"chenhaozhe1@huawei.com"
] | chenhaozhe1@huawei.com |
c8fe58376e632a3abf6fabe21b845ea9bfca8392 | 493d5df9420ef94d9c5e82acb2d163e2a8c639b7 | /memo_app/forms.py | f9a73ac5260ef3004567845ec9abe38b54032eea | [] | no_license | reina0207/django | 0e3d6422c137be52978526128112ebf319e0f462 | c42744935043efdcc4b9f3f14641105d082d691a | refs/heads/master | 2023-08-13T14:10:59.979651 | 2021-10-17T01:48:48 | 2021-10-17T01:48:48 | 417,983,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | from django import forms
from .models import Memo
class PostForm(forms.ModelForm):
class Meta:
model = Memo
fields = ['content']
widgets = {
'content':forms.Textarea
} | [
"you@example.com"
] | you@example.com |
cfbbe9fd87346ac41ce6d9352492c08480e4ec86 | 3cdbe5f5810a035ae168f8ff01c39f58c571e428 | /golf/migrations/0047_auto_20171013_0759.py | 3a2a55b2b3c56503895e31b0b55d1c431628e5d5 | [
"MIT"
] | permissive | kenrumer/scorekeeper | ebd6467e2ecde3da96bb08ef77a56f967cbde00e | c7f22676e84dfdf6ca3361c6ff56719f68fce31f | refs/heads/master | 2021-01-22T05:01:11.370869 | 2018-01-12T07:13:20 | 2018-01-12T07:13:20 | 102,276,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 710 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-10-13 07:59
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('golf', '0046_auto_20171013_0021'),
]
operations = ... | [
"kenrumer@gmail.com"
] | kenrumer@gmail.com |
d5c5779cb06cd034955a358e57ccad53113de7b0 | bfc25f1ad7bfe061b57cfab82aba9d0af1453491 | /data/external/repositories/141822/AXA_Telematics-master/Features/modules_janto/featureFun.py | 6077221b9a1eba16c0182067048fda6cda0a3b49 | [
"MIT"
] | permissive | Keesiu/meta-kaggle | 77d134620ebce530d183467202cf45639d9c6ff2 | 87de739aba2399fd31072ee81b391f9b7a63f540 | refs/heads/master | 2020-03-28T00:23:10.584151 | 2018-12-20T19:09:50 | 2018-12-20T19:09:50 | 147,406,338 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,821 | py | # -*- coding: utf-8 -*-
"""
(c) 2015
@author: Janto Oellrich
email: joellrich@uos.de
CONTENT:
Contains FEATURE EXTRACTION funtions for
the AXA telematics competition.
FUNCTION LIST:
features: creates feature vector for one trip
driverFrame: creates feature ma... | [
"keesiu.wong@gmail.com"
] | keesiu.wong@gmail.com |
7b1d36e6759d21e129f1ccb505e5824290d24a31 | 02d8a8b44dc9f8f3c63c2f62f24ceaee7d94fd12 | /apps/profile/views.py | ef24c418f7057f9700edd7b07e9c9801961c3ee3 | [] | no_license | bladas/transfer | 0970a4290e2e92e56853a64211ab3e79c479c0aa | 54c61b7bf340af4f48c7c7162805697b0417f4d7 | refs/heads/master | 2023-01-04T12:45:36.784275 | 2019-12-08T17:34:36 | 2019-12-08T17:34:36 | 224,606,015 | 0 | 0 | null | 2022-11-22T04:52:01 | 2019-11-28T08:31:59 | Python | UTF-8 | Python | false | false | 2,751 | py | from django.shortcuts import render, redirect
from django.views.generic import ListView, FormView
from apps.orders.models import *
from django.core import mail
from django.template.loader import render_to_string
conection = mail.get_connection()
conection.open()
class ProfileView(ListView):
template_name = 'prof... | [
"dashkevich_v@ukr.net"
] | dashkevich_v@ukr.net |
ae3dc2f7bf203c611851ed1cdfa6151cfb952a15 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-1/c748512c4c45e257bc625ccf036e18c86d69f1c8-<main>-fix.py | 759edf1deb6fc8e4fa82cf7d84981a26157ee87e | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,832 | py |
def main():
'Main program body.'
api_key = get_api_key()
parser = argparse.ArgumentParser(description='Start a new Shippable run.')
parser.add_argument('project', metavar='account/project', help='Shippable account/project')
target = parser.add_mutually_exclusive_group()
target.add_argument('--... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
104fc669d2af9fa208c4aed1d720c01d359a05f9 | e98f2775d0b7b9aca26e4ef6a3c08ca0100a1442 | /tensorflow_federated/python/core/backends/mapreduce/test_utils.py | f1aeca67ea8ccadf1f89de7152c7f2c39569ec29 | [
"Apache-2.0"
] | permissive | sgpohlj87/federated | 54131d8e62a3df1b0bb396d11ba6e6a2e1ada11d | ca179ac0e2c0cf9c33169d13fbb44668cbab6982 | refs/heads/master | 2020-07-18T22:34:06.001195 | 2019-09-03T22:12:33 | 2019-09-03T22:13:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,890 | py | # Lint as: python2, python3
# Copyright 2019, The TensorFlow Federated 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 ... | [
"tensorflow.copybara@gmail.com"
] | tensorflow.copybara@gmail.com |
ab0a2ba6e4d3d375e56ab4ac661c7d7ddf068306 | ec80f504ab4511e27c7e4afe801b8e6b8ddf6900 | /examples/ex_cnn_cascade_training_face_detection/12net_detection_training.py | 0f64a4a441f8628405401d4cb2a8c19f4f58f298 | [
"MIT"
] | permissive | ssteveminq/deepgaze | afdc3aeb7d0b0ba247a3cf5850981f899abb3082 | 6df11f3799b36d7d0d45fbbb77be21eec456ddd4 | refs/heads/master | 2021-01-25T10:06:11.775804 | 2019-04-11T18:18:14 | 2019-04-11T18:18:14 | 123,338,160 | 0 | 1 | MIT | 2018-02-28T20:23:47 | 2018-02-28T20:23:47 | null | UTF-8 | Python | false | false | 12,414 | py | #!/usr/bin/env python
# The MIT License (MIT)
# Copyright (c) 2017 Massimiliano Patacchiola
# https://mpatacchiola.github.io
# https://mpatacchiola.github.io/blog/
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, F... | [
"massimiliano.patacchiola@gmail.com"
] | massimiliano.patacchiola@gmail.com |
4598001c5648f08752ef2002d4ba2a58a4b810b4 | 94e06376dc265c7bf1a2e51acb9714d02b21503a | /python打卡/day9_数字.py | 0303d4bab06f6795e5925726a39bafdecf382745 | [] | no_license | zhangquanliang/python | 4b2db32bed4e4746c8c49c309563f456dc41c6be | f45ef96e385b1cd6c5dfb53bf81042d953a9ec46 | refs/heads/master | 2021-04-26T23:30:12.217397 | 2019-03-20T06:18:14 | 2019-03-20T06:18:14 | 124,005,916 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 640 | py | # -*- coding: utf-8 -*-
# 1. 内嵌整数列表中的指相加
def nested_sum(t):
a = 0
for x in t:
for y in x:
a += y
print(a)
# 2. 接受数字列表,返回累计和
def cumsum(t):
list = []
a = 0
for x in t:
a += x
list.append(a)
print(list)
# 3. 接受一个列表,返回新列表,包含除第一个和最后一个元素外的所有值
def middle(t... | [
"1007228376@qq.com"
] | 1007228376@qq.com |
68107dada2e7dd7dc4eabd477e86ea95d7540946 | e719bcfde03c0be2c84a7f1e13d12b80fa00ea84 | /session2/draw_2.py | 0780ebd4934bca50609387bc0e008130c608d56c | [] | no_license | minhduc9699/phamMinhDuc-D4E17 | 53b80e53ff175f0357fb01c9876aa12b343ca060 | 363b61745a206f33c5cfa3532a5abd920fcf4ad1 | refs/heads/master | 2023-01-22T08:25:14.210959 | 2020-12-05T04:53:38 | 2020-12-05T04:53:38 | 308,668,542 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | from turtle import *
speed(-1)
for edge in range(3, 11):
print(edge)
for i in range(edge):
forward(100)
left(360/edge)
mainloop() | [
"minhduc.096.99@gmail.com"
] | minhduc.096.99@gmail.com |
b53a79653da1f30b4346d7cee4b0c1ab43348665 | 74167e4c1061b454d1ab1c2140a1fc2f4540ee2e | /accounts/models.py | fc5a140def7581969baf9c6413966fd5a150517c | [] | no_license | Pagante/ProjectCart | f72a1a611445f66c1320c0c21e1832d3ecf67a2a | 4f065a02a8235c6744768328af5c1e103321ed44 | refs/heads/main | 2023-06-05T23:53:10.316222 | 2021-06-27T21:47:28 | 2021-06-27T21:47:28 | 380,840,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,861 | py | from django.db import models
from django.contrib.auth.models import BaseUserManager,AbstractBaseUser
# Create your models here.
class MyAccountManager(BaseUserManager):
def create_user(self, first_name, last_name, username, email, password=None):
if not 'email':
raise ValueError('User must have... | [
"55301195+Pagante@users.noreply.github.com"
] | 55301195+Pagante@users.noreply.github.com |
cd46193f2107a70f24bf853229b251e11f09edd3 | 5989e503a733e8b29f4c502008446a75c2b43ff8 | /src/aids/migrations/0080_auto_20191104_1028.py | e61367fa67ca3885c3616e240f880421e5dac253 | [] | no_license | samuelpath/aides-territoires | 399a6a7b0607ef5a8d2b327247446b239f5b1a42 | 5793bd49d7157a34e08c29e56a46e1e3ead0651f | refs/heads/master | 2022-12-20T14:35:18.671563 | 2020-08-21T08:00:33 | 2020-08-21T08:00:33 | 288,424,578 | 0 | 0 | null | 2020-08-18T10:27:17 | 2020-08-18T10:27:16 | null | UTF-8 | Python | false | false | 389 | py | # Generated by Django 2.2.5 on 2019-11-04 09:28
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('aids', '0079_remove_aid_subvention_rate'),
]
operations = [
migrations.RenameField(
model_name='aid',
old_name='subvention_r... | [
"thibault@miximum.fr"
] | thibault@miximum.fr |
1e838cff1c3206fca261549ede085035a1794d7c | b301f5d799fb973f12ff457c94a3fb54f5c6fd6b | /pages/views.py | 56e3848a96f39428eb0488fb6874d562f048fe72 | [] | no_license | MahmudulHassan5809/DjangoHousingSellingProject | ca3a8b9e3d83dd87532b33295e56e50ba7e9576d | 82d02e04fe2a0cd510f160ad4159f40f4e5779d3 | refs/heads/master | 2020-04-09T08:01:41.092034 | 2018-12-03T11:24:13 | 2018-12-03T11:24:13 | 160,179,800 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 852 | py | from django.shortcuts import render,redirect
from django.http import HttpResponse
from listings.choices import price_choices , bedroom_choices , state_choices
from listings.models import Listing
from realtors.models import Realtor
# Create your views here.
def index(request):
#return HttpResponse('Hello');
listings... | [
"mahmudul.hassan240@gmail.com"
] | mahmudul.hassan240@gmail.com |
fb58a27373295fd23e4e441d7160e90f57d8c58a | 9df2fb0bc59ab44f026b0a2f5ef50c72b2fb2ceb | /sdk/paloaltonetworks/azure-mgmt-paloaltonetworksngfw/generated_samples/local_rulestacks_create_or_update_minimum_set_gen.py | eb4b8b0451f4477d85ec725f4dfa1603454d7a23 | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | openapi-env-test/azure-sdk-for-python | b334a2b65eeabcf9b7673879a621abb9be43b0f6 | f61090e96094cfd4f43650be1a53425736bd8985 | refs/heads/main | 2023-08-30T14:22:14.300080 | 2023-06-08T02:53:04 | 2023-06-08T02:53:04 | 222,384,897 | 1 | 0 | MIT | 2023-09-08T08:38:48 | 2019-11-18T07:09:24 | Python | UTF-8 | Python | false | false | 1,765 | 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"
] | openapi-env-test.noreply@github.com |
a94e1bb1dc306e6a03ea0107933cb542bdaea003 | 50671b3e4e8ed7e9702c9941bb71fdbf92dffbe6 | /src/cogs/events.py | 0b28700d34057dbeef8be93aeb3c40ea8a08314b | [] | no_license | pikoUsername/Emulator | 3dd67d0d3934c2ec9283b9b52edebec31c654326 | 96e6563c7cbcea051e4e41a377d917a2a9f5528a | refs/heads/main | 2023-02-27T22:42:43.154987 | 2021-02-09T14:51:56 | 2021-02-09T14:51:56 | 321,045,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,199 | py | import os
import sys
from discord.ext import commands
from discord.ext.commands import errors
import discord
from loguru import logger
from ..models import Guild
from ..utils.notify import notify_all_owners
class DiscordEvents(commands.Cog, name="Events"):
__slots__ = "bot",
def __init__(self, bot):
... | [
"galymzhan.amantaj@gmail.com"
] | galymzhan.amantaj@gmail.com |
6fc2e9842a862e151818555c40bd68c1fe986ae7 | aa5d98396184ab9dc479075b37a3664c385de027 | /tests/selenium/breadcrumb_test.py | 8ae1041e04352b0b8d70180fdda1d4cfface3872 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | uk-gov-mirror/ONSdigital.sbr-ui | c6a66cd6982e9e98a991eadbb8cef0f1fb6ba2bf | 48bbfdc59e393dd4d2d008b8414ac96d2e2be44f | refs/heads/master | 2021-10-12T00:02:34.160448 | 2018-10-17T14:59:04 | 2018-10-17T14:59:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,910 | py | import unittest
from selenium import webdriver
from tests.helper_methods import create_selenium_config
from tests.constants import BASE_URL, SEARCH_URL
from tests.constants import ENTERPRISE, LOCAL_UNIT, REPORTING_UNIT, LEGAL_UNIT, COMPANY_HOUSE, VALUE_ADDED_TAX, PAY_AS_YOU_EARN
from tests.constants import BREADCRUMB... | [
"noreply@github.com"
] | uk-gov-mirror.noreply@github.com |
40fec2d844ff14fbb903f58d6e96f8e46ad3fe8c | f83934dd60d4961848c0a86f6d7fbe07b79a1d63 | /glumpy/graphics/collections/__init__.py | c497f742a32eb93341c0ab317f56e2fc37a848d5 | [] | no_license | brianholland/glumpy | 2a31e2f5fd039d1debb30dd010ad36c458f329cf | a691082385e02db9b1d461847b9e36d8534630fa | refs/heads/master | 2020-12-25T21:43:58.743259 | 2015-11-30T11:04:46 | 2015-11-30T11:04:46 | 46,670,630 | 0 | 0 | null | 2015-11-30T11:04:46 | 2015-11-22T17:10:24 | Python | UTF-8 | Python | false | false | 951 | py | # -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Copyright (c) 2014, Nicolas P. Rougier. All rights reserved.
# Distributed under the terms of the new BSD License.
# -----------------------------------------------------------------------------
from . collection i... | [
"Nicolas.Rougier@inria.fr"
] | Nicolas.Rougier@inria.fr |
57e0b43bd157f5140c109b02d53b65caeebdb426 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/sieve-big-7747.py | 21059574743466a564b66ececa453e5f67f1165b | [] | 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,474 | 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 |
c71de68d5d8e1ed94307b087f795dddfc08ddc00 | 7b8b03b7818a1fea58f174ff8c18b43578a6233f | /tests/core/test_models.py | b6c868d65b928963cc11299b613fc8c6b8eeec36 | [] | no_license | defance/coins_ph | 400e4316a2d9a63752b21190ca7f1b0543b85343 | 2f0d3038f5dcca4c0f8711a1b095c6078799eb0b | refs/heads/master | 2020-04-30T19:15:58.398453 | 2019-03-21T22:30:16 | 2019-03-21T22:30:16 | 177,033,466 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | from django.test import TestCase
from tests.factories import AccountFactory
class TestTransactionAccount(TestCase):
def test_update_balance(self):
account = AccountFactory(balance=10)
account.update_balance(42)
account.refresh_from_db()
self.assertEquals(account.balance, 52)
| [
"defance@gmail.com"
] | defance@gmail.com |
3188d90a661c2d9b856f8af75351df705de6d1bf | 26762585d08aa774af9f104472c97a8c7a9df181 | /generators/v4d_super_station_2.py | 1ff715d9c377df692ba6d0c4d8295bd62762d559 | [] | no_license | OxfordSKA/SKA1-low-layouts | 379fbe5c056dc73706b1073f09e485880ecfa180 | 49e3ba2af4a447be38af03dde1d11898e3f8300b | refs/heads/master | 2021-01-17T17:10:41.469929 | 2016-08-12T10:48:24 | 2016-08-12T10:48:24 | 47,823,977 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,178 | py | """Module to generate super-stations for trail v4d spec. layouts"""
# -*- coding: utf-8 -*-
from __future__ import print_function
import matplotlib.pyplot as pyplot
import numpy
from numpy.random import rand
import shutil
import os
from os.path import join
from math import radians
def rotate_coords(x, y, angle):
... | [
"benjamin.mort@oerc.ox.ac.uk"
] | benjamin.mort@oerc.ox.ac.uk |
f800d6b3ca316df0db0ffe4717caaddae33260f8 | 3ea684487ef727fb2f8d16a030769f32a4f4003a | /datahq/apps/receiver/bootstrap.py | 90c3fa6dc99fc38cd04840c76b173a531f02f9b5 | [] | no_license | adewinter/data-hq | 5781e6669e0625ea9ae7cf94ec77c528485c2951 | ca03656c835f8caa5156326500c05bb83ab931ca | refs/heads/master | 2021-01-18T12:48:26.584454 | 2010-08-19T13:15:03 | 2010-08-19T13:15:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | import os
from django.conf import settings
# make our directories if they're not there
for dir in [settings.RECEIVER_SUBMISSION_PATH,
settings.RECEIVER_ATTACHMENT_PATH,
settings.RECEIVER_EXPORT_PATH]:
if not os.path.isdir(dir):
os.mkdir(dir)
| [
"czue@dimagi.com"
] | czue@dimagi.com |
19cc849f50ba984019a615ec3532eb04f622db66 | 3efee0cf2bd9e0c34bfdd94ab24a15cb88c04509 | /PWEM_examples/kxky_bandstructure_benchmark_plotting_with_fdfd.py | 20872b8c10843e1edc1184e3d3cbe5d7ee1b70bd | [
"MIT"
] | permissive | luwl85/Rigorous-Coupled-Wave-Analysis | bf5016ec70525f5e7bf59dfa93a03902afdfac12 | a28fdf90b5b5fc0fedacc8bb44a0a0c2f2a02143 | refs/heads/master | 2023-04-25T20:46:45.397976 | 2021-05-20T22:17:54 | 2021-05-20T22:17:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 800 | py | import sys
import os
import scipy.io
import matplotlib.pyplot as plt
import numpy as np
import plotly
import plotly.graph_objs as go
from plotly.offline import download_plotlyjs, init_notebook_mode, plot, iplot
from mpl_toolkits.mplot3d import Axes3D
matlab_data =os.path.join('kxky_photonic_circle_bandstructure.mat')... | [
"nzz2102@stanford.edu"
] | nzz2102@stanford.edu |
75a3cd2e9f625d1e43a53e0412340d4ddac9a76a | 9923e30eb99716bfc179ba2bb789dcddc28f45e6 | /swagger-codegen/python/test/test_asset.py | 4d4822c956810304a52b9be4b031c37a4dfaaa89 | [] | no_license | silverspace/samsara-sdks | cefcd61458ed3c3753ac5e6bf767229dd8df9485 | c054b91e488ab4266f3b3874e9b8e1c9e2d4d5fa | refs/heads/master | 2020-04-25T13:16:59.137551 | 2019-03-01T05:49:05 | 2019-03-01T05:49:05 | 172,804,041 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,361 | py | # coding: utf-8
"""
Samsara API
# Introduction Samsara provides API endpoints for interacting with Samsara Cloud, so that you can build powerful applications and custom solutions with sensor data. Samsara has endpoints available to track and analyze sensors, vehicles, and entire fleets. The Samsara Cloud AP... | [
"greg@samsara.com"
] | greg@samsara.com |
6821205dff8d4bf5af67bd99c4b092e8d390a3c3 | 5c533e2cf1f2fa87e55253cdbfc6cc63fb2d1982 | /python/pymonad/monad_parse.py | a37f2195d1412f89bfddadf9d4bb469858d0db09 | [] | no_license | philzook58/python | 940c24088968f0d5c655e2344dfa084deaefe7c6 | 6d43db5165c9bcb17e8348a650710c5f603e6a96 | refs/heads/master | 2020-05-25T15:42:55.428149 | 2018-05-14T03:33:29 | 2018-05-14T03:33:29 | 69,040,196 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 312 | py |
# parser is of form string -> [(symbol, therestofstring), (other possiblity), (other possiblity), ...]
#parserbind needsto return
def parsebind(parser , parserproducer):
def combinerparser(string):
possibleparses = parser(string)
for (symb, restofstring) in possibleparses:
return combinedparser | [
"philip@FartMachine7.local"
] | philip@FartMachine7.local |
befc484720fc8b2dd7e72ad047976b06972d3b9b | 05526f4941be395c0d41b4eed16ede6ae45b5e3a | /src/ossify/tokenizer.py | 902357cd116b2634aebe40f9a5b4c593ae199181 | [
"BSD-3-Clause"
] | permissive | ndevenish/ossify | 940606d75932597aedac2e0377f1f18ee249a126 | 5045b0cee309093ad2ccf35a4b1d92c4bb2783f3 | refs/heads/master | 2022-07-14T19:58:55.616828 | 2020-05-09T00:28:19 | 2020-05-09T00:28:19 | 261,609,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,238 | py | import io
import re
import sys
import token
import tokenize
from token import tok_name
from tokenize import TokenInfo
from typing import Iterator, List
numchars = "0123456789"
reNamelike = re.compile(r"[A-Za-z_]")
reWhitespace = re.compile("[ \t\n]+")
reName = re.compile(r"[A-Za-z_]\w*")
reStringStart = re.compile(r'... | [
"ndevenish@gmail.com"
] | ndevenish@gmail.com |
94a1445b5d73052a0e9fbc2caed1e94ae674a0da | 4f2b9848ee1cf41017b424c7367a240f93625e86 | /doc/tutorial/config.py | cdb60e8b8cc1f8f18664a9d5edb55b488c038574 | [
"Apache-2.0"
] | permissive | martin-dostal-eli/python-icat | f5cc0e497376d7264db1af2bb9ad588e29a9bd7b | 8c882a3095f2dd7276a7c0edba44dc9b3ef4eedd | refs/heads/master | 2023-08-18T02:12:30.267009 | 2021-07-20T11:24:25 | 2021-07-20T11:24:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | #! /usr/bin/python
from __future__ import print_function
import icat
import icat.config
config = icat.config.Config(needlogin=False, ids=False)
client, conf = config.getconfig()
print("Connect to %s\nICAT version %s" % (conf.url, client.apiversion))
| [
"rolf.krahl@helmholtz-berlin.de"
] | rolf.krahl@helmholtz-berlin.de |
e797642929d74abf07f38be4d559a60c4edc39c4 | a7b07e14f58008e4c9567a9ae67429cedf00e1dc | /lib/jnpr/healthbot/swagger/models/rule_schema_variable.py | 630dceaecb69d32efa58bd7ea4450d2121bdd4cb | [
"Apache-2.0"
] | permissive | dmontagner/healthbot-py-client | 3750d8375bc4fa7bedcdbc6f85f17fb812c19ea9 | 0952e0a9e7ed63c9fe84879f40407c3327735252 | refs/heads/master | 2020-08-03T12:16:38.428848 | 2019-09-30T01:57:24 | 2019-09-30T01:57:24 | 211,750,200 | 0 | 0 | Apache-2.0 | 2019-09-30T01:17:48 | 2019-09-30T01:17:47 | null | UTF-8 | Python | false | false | 6,447 | py | # coding: utf-8
"""
Healthbot APIs
API interface for Healthbot application # noqa: E501
OpenAPI spec version: 1.0.0
Contact: healthbot-hackers@juniper.net
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class RuleSchemaVa... | [
"nitinkr@juniper.net"
] | nitinkr@juniper.net |
913a809b21dce8f948f0e742c823d688bef2cbc7 | 6032f996f989d521dbdee23ce6c1fbd778d8e964 | /qanta/wikipedia/categories.py | b5dedd32b88990ad251a82da1ae4cf7fe424ea37 | [
"MIT"
] | permissive | npow/qb | 9af1c07afd10f6aad9dbcbdd9209c6fde0e4347f | 044e623d2cbda96209fa1fdedffefa2208c98755 | refs/heads/master | 2020-05-26T15:41:13.864334 | 2019-05-26T16:47:07 | 2019-05-26T16:47:07 | 188,290,907 | 0 | 0 | null | 2019-05-23T19:02:23 | 2019-05-23T19:02:23 | null | UTF-8 | Python | false | false | 1,525 | py | """
Process Wikipedia category links
"""
import json
import re
import csv
import click
import tqdm
@click.group()
def categorylinks_cli():
pass
@categorylinks_cli.command()
@click.argument('categories_csv')
@click.argument('out_jsonl')
def clean(categories_csv, out_jsonl):
with open(categories_csv) as in_f,... | [
"ski.rodriguez@gmail.com"
] | ski.rodriguez@gmail.com |
7a2fcbba659bb83f947490fc946a7ff3ba4665d2 | eefb06b0d8c8c98c1e9cfc4c3852d5c453eb5429 | /data/input/ARMmbed/htrun/mbed_host_tests/host_tests_plugins/host_test_plugins.py | 1c965fab88a3dc757f8bce97bec9d4293718641b | [] | no_license | bopopescu/pythonanalyzer | db839453bde13bf9157b76e54735f11c2262593a | 8390a0139137574ab237b3ff5fe8ea61e8a0b76b | refs/heads/master | 2022-11-22T02:13:52.949119 | 2019-05-07T18:42:52 | 2019-05-07T18:42:52 | 282,079,884 | 0 | 0 | null | 2020-07-23T23:46:09 | 2020-07-23T23:46:08 | null | UTF-8 | Python | false | false | 7,762 | py | """
mbed SDK
Copyright (c) 2011-2015 ARM Limited
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 wr... | [
"rares.begu@gmail.com"
] | rares.begu@gmail.com |
5957be3eebf4bcc847582b8b20f6771924155403 | 4c9580b2e09e2b000e27a1c9021b12cf2747f56a | /chapter05/chapter05_example01/chapter05_example01/settings.py | 6bdae198873c43cd8667c6b9aac8266fb69c6642 | [] | no_license | jzplyy/xiaoyue_mall | 69072c0657a6878a4cf799b8c8218cc7d88c8d12 | 4f9353d6857d1bd7dc54151ca8b34dcb4671b8dc | refs/heads/master | 2023-06-26T02:48:03.103635 | 2021-07-22T15:51:07 | 2021-07-22T15:51:07 | 388,514,311 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,368 | py | """
Django settings for chapter05_example01 project.
Generated by 'django-admin startproject' using Django 2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings... | [
"jzplyy@126.com"
] | jzplyy@126.com |
53f85d5e77b251fd803da0cc317dc6dac3e3fd02 | b74e9be747c1a99fc5d67ca096157f512baf02ca | /tools/harness-automation/cases/reed_5_2_4.py | 151fa67c0fb6cee9b74e8e983fa7bb67a1aea761 | [
"BSD-3-Clause",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | amccool/openthread | 468838cebc083d234192926aacb0e3efc0a83463 | 1e9d3c1dbfd66aa48c4cbb1dda0b41c9f05fefc7 | refs/heads/master | 2021-01-16T23:03:46.503666 | 2016-09-06T03:21:05 | 2016-09-06T03:21:05 | 67,469,844 | 0 | 0 | BSD-3-Clause | 2019-11-01T20:11:16 | 2016-09-06T03:23:32 | C++ | UTF-8 | Python | false | false | 1,846 | py | #!/usr/bin/env python
#
# Copyright (c) 2016, Nest Labs, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this ... | [
"jonhui@nestlabs.com"
] | jonhui@nestlabs.com |
ef8495ed987b371d3c9c09347e179d7fee0cfd92 | 6320fef2ea7376c2b35f97f1a5af004e90f09098 | /1-2주차 실습(복습)/venv/Lib/site-packages/pygame/tests/test_utils/__init__.py | fd3ec69cb674929081e3d41837df1458fa33d018 | [] | no_license | Dplo1514/ploaistudy | 7aa08d7f71653748a9e32dcc09ee8f6cec0aaed9 | e35e42b1e5f0c90cc1e2a59993a1ef73d8872d0c | refs/heads/master | 2023-09-03T00:45:55.601651 | 2021-10-24T12:19:38 | 2021-10-24T12:19:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,442 | py | #################################### IMPORTS ###################################
is_pygame_pkg = __name__.startswith("pygame.tests.")
import tempfile, sys, pygame, time, os
################################################################################
# Python 3.x compatibility
try:
xrange_ = xrange
... | [
"dladlsgur3334@gmail.com"
] | dladlsgur3334@gmail.com |
665dcc52eba524df257caff6e50e0b2f063ee789 | ae65873c3584cef7139066b224daad04410af6d2 | /Top10Words.py | b6f4ffe80cc71c2040700a1f7c86913682066030 | [] | no_license | rajatkashyap/Python | 2240c7472d07803c460c7a55d570e20694b694f9 | f74c85c65b0e209a5f7ab25b653d42835222faaf | refs/heads/master | 2022-06-25T19:20:52.847498 | 2022-06-08T14:40:45 | 2022-06-08T14:40:45 | 145,714,257 | 0 | 0 | null | 2022-04-25T00:18:37 | 2018-08-22T13:39:14 | Python | UTF-8 | Python | false | false | 558 | py | f=open('UHC.txt')
dict={}
words=f.read().split()
for word in words:
w=word.lower()
dict[w]=dict.get(w,0)+1
#print dict
str_tups=[]
for k,v in dict.items():
str_tups.append((v,k))
#print str_tups
str_tups.sort(reverse=True)
print str_tups[:10]
keys=dict.keys()
values=dict.values()
#pr... | [
"rajatkashyap@Rajats-MBP.T-mobile.com"
] | rajatkashyap@Rajats-MBP.T-mobile.com |
9ad9f1f73f94769307e72df7e57956a71565790a | e741d661b1cbb1d48eff4adff3ce8d424b0b3aee | /meiduo_mall/apps/payment/apps.py | d314f1fe58cfc99b4a93ba784b8eadf87541370a | [
"MIT"
] | permissive | Tao-bug/meiduo_project | 09b3900ab7e1436ee3201c53461a9c119d1f56db | e3a24eac2c8231d0e27f6a7fa639dd36baa410b0 | refs/heads/master | 2022-07-16T02:18:22.319641 | 2019-11-12T13:54:23 | 2019-11-12T13:54:23 | 218,697,808 | 0 | 0 | MIT | 2022-07-01T00:55:01 | 2019-10-31T06:20:01 | JavaScript | UTF-8 | Python | false | false | 94 | py | from django.apps import AppConfig
class PaymentConfig(AppConfig):
name = 'apps.payment'
| [
"897384405@qq.com"
] | 897384405@qq.com |
718c1a3aa265318be8f270943122a2fef285e6e9 | 59d48214613a195573b5a0a1f10b32c889172155 | /alexa/reciPullLambda/ask_sdk_model/canfulfill/can_fulfill_intent_request.py | 61ffc9fb00f47a05ab691639b45bca434c75fe2e | [
"MIT"
] | permissive | ReciPull/recipull.github.io | 60861ebb7a6d77d39907c6332e346194ce4ad107 | e6b800af02658bb7948297c4ddc1b7af6d978839 | refs/heads/master | 2023-01-08T19:03:11.864298 | 2019-06-13T05:07:39 | 2019-06-13T05:07:39 | 180,684,629 | 1 | 0 | MIT | 2022-12-09T22:33:18 | 2019-04-11T00:33:03 | Python | UTF-8 | Python | false | false | 6,414 | py | # coding: utf-8
#
# Copyright 2019 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "lice... | [
"alexiscole@umail.ucsb.edu"
] | alexiscole@umail.ucsb.edu |
4a5a3b8daa86ac399ae0a0cc3604254a77635bbf | 00cb405170a6a9572bef0ec8f373813eada08c03 | /Agario/Window.py | bb5038b0e49d302d2ded8589eaacfcc9884a849c | [] | no_license | MarcPartensky/Python-Games | c0ad2857be5832d6029642bb0a96bc8e403a12e3 | ebfcaaf4a028eddb36bbc99184eb3f7a86eb24ed | refs/heads/master | 2022-09-03T00:04:16.402288 | 2022-08-12T17:10:22 | 2022-08-12T17:10:22 | 166,606,022 | 2 | 1 | null | 2021-03-07T16:20:15 | 2019-01-19T23:56:04 | Python | UTF-8 | Python | false | false | 1,621 | py | import pygame
from pygame.locals import *
class Window:
made=0
def __init__(self,game=None,size=None,font="monospace",set=True):
Window.made+=1
self.number=Window.made
self.title=game.name
self.font=font
self.open=True
pygame.init()
self.setSize(size)
... | [
"marc.partensky@gmail.com"
] | marc.partensky@gmail.com |
13fc2d742161aea7d1a51f351cac30e21bcd181e | 172eb751b879d36d95b04d81db87a501cd18d8a1 | /ImageNetGroundTruth/utils.py | ade17f70a1d804e602c97056b666102575e5f3e0 | [] | no_license | byh1321/Pruning_Quantization_Estimation | 447bd3d806fe17611d665e56d7796af4e05ee400 | 772969c5a58259e387c88829dd936274199212e8 | refs/heads/master | 2023-05-03T19:25:29.957732 | 2021-06-03T17:53:38 | 2021-06-03T17:53:38 | 289,804,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,298 | py | '''Some helper functions for PyTorch, including:
- get_mean_and_std: calculate the mean and std value of dataset.
- msr_init: net parameter initialization.
- progress_bar: progress bar mimic xlua.progress.
'''
import os
import sys
import time
import math
import torch
import torch.nn as nn
import torch.nn.i... | [
"byh1321@naver.com"
] | byh1321@naver.com |
037c0297e6528cdbf68ecb8b3295c9ce74f0598e | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/143/usersdata/126/62651/submittedfiles/av2_p3_m2.py | 7d22e7aa5f8b510c2f6ca3d97182ffc3fc5c67bd | [] | 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 | 653 | py | # -*- coding: utf-8 -*-
def listadegraus(a):
b=[]
for i in range(0,len(a)-1,1):
if a[i]>a[i+1]:
cont=0
for i in range(a[i],a[i+1],-1):
cont=cont+1
b.insert(0,cont)
elif a[i]<a[i+1]:
cont=0
for i in range(a[i],a[i+1],1):
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
df82e709433df0b153edd7d9aea14060851ad2cf | c31c8095ce4d4e9686e3e7ad6b004342e49671fa | /forum/classes/archives/CLASS_Lieu.py | c5b8db114583e2f045264fd8b45f2735706e116e | [] | no_license | Lionalisk/arrakambre | 7bcc96dea2ca2a471572bfb1646256f1382ce25b | 2caece9be5eebf21ddfa87a6c821c32b5d5019a2 | refs/heads/master | 2020-12-07T19:31:24.471090 | 2020-01-09T10:14:29 | 2020-01-09T10:14:29 | 232,782,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,184 | py | from django.db import models
from forum.models import Maison
from forum.classes.CLASS_Perso import *
print('BBBB')
class Lieu(models.Model):
nom = models.CharField(max_length=100, unique=True)
description = models.TextField(default='')
image = models.CharField(max_length=40, default = 'lieu_none.jpg')
maison = mod... | [
"lionel.varaire@free.fr"
] | lionel.varaire@free.fr |
da6fa81c852b746e1fded343f4e04a7e146e335e | 39b8aa964883b2bde4349e0c9c38e3233c310548 | /src/Power of Four.py | 96d2db9a48b59d6376e2dbcb8be1027d9d34085f | [] | no_license | orifake/leetcode-python | 053b82491e0b8d6197dd12d92eec5883211285db | 8e375ebebe0a0285efefc33ed61afb22f41d0c75 | refs/heads/master | 2023-03-09T14:32:17.833456 | 2021-02-26T16:09:31 | 2021-02-26T16:09:31 | 264,466,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | import math
class Solution(object):
def isPowerOfFour(self, num):
"""
:type num: int
:rtype: bool
"""
return num > 0 and (num & (num - 1)) == 0 and \
((num & 0b01010101010101010101010101010101) == num)
class Solution2:
def isPowerOfFour(self, num: int) ->... | [
"349758699@qq.com"
] | 349758699@qq.com |
17eb256179da0f291fdd0e5d21d32169501672e1 | e21ed71610f9d1004dfa21206300c0e9f3887e89 | /modulo_2/Codewars/dev-junior/find_even_array.py | beb4a2bad5d9a8b39ec87d16249da6a0ba36113a | [] | no_license | hpfn/wttd-2017-exerc | c0c79ee0cb3b5b331932787d280deee679357bc1 | b1bf1394d2e2adc29257b7c4273af21b8509335f | refs/heads/master | 2020-12-30T11:29:13.218980 | 2017-10-03T19:04:03 | 2017-10-03T19:04:03 | 91,572,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | # coding=utf-8
def find_even_index(arr):
tam_arr = len(arr)
for x in range(tam_arr):
if sum(arr[:x]) == sum(arr[x+1:]):
return x
return -1
| [
"hpfn@debian.org"
] | hpfn@debian.org |
be24fff7640880924ac1b8352d63c9ce128039bd | 49beeee0d9aff3b776545cb553ef1bf15dd9f190 | /example/example/views.py | 6c06b12a01b8dad493049a74201b5a5b9af1ada9 | [
"MIT"
] | permissive | bluedisk/django-korean-fields | 238364cf4f766db824adec832aaa2d83619cded1 | b655e23d9a73e61cb217e34719ee6a2509f8f475 | refs/heads/master | 2020-03-19T09:55:10.974426 | 2018-11-10T15:02:02 | 2018-11-10T15:02:02 | 136,327,803 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 595 | py | # -*- coding: utf-8 -*-
from django.forms import forms, CharField
from django.http import HttpResponse
from django.shortcuts import render
from korean.fields import JuminFormField
class TestForm(forms.Form):
jumin1 = JuminFormField()
jumin2 = JuminFormField()
def demo(request):
if request.method == 'POS... | [
"bluedisk@gmail.com"
] | bluedisk@gmail.com |
d47c3724879680967f10765f503c820e7982fb3f | 714d4d2796e9b5771a1850a62c9ef818239f5e77 | /components/metrics/DEPS | 2f4d413d44817a460d2dc1304dd4027f1f530765 | [
"BSD-3-Clause"
] | permissive | CapOM/ChromiumGStreamerBackend | 6c772341f815d62d4b3c4802df3920ffa815d52a | 1dde005bd5d807839b5d45271e9f2699df5c54c9 | refs/heads/master | 2020-12-28T19:34:06.165451 | 2015-10-21T15:42:34 | 2015-10-23T11:00:45 | 45,056,006 | 2 | 0 | null | 2015-10-27T16:58:16 | 2015-10-27T16:58:16 | null | UTF-8 | Python | false | false | 243 | # This component is shared with the Chrome OS build, so it's important to limit
# dependencies to a minimal set.
include_rules = [
"-components",
"+components/compression",
"+components/metrics",
"+components/variations",
"-net",
]
| [
"j.isorce@samsung.com"
] | j.isorce@samsung.com | |
7fb4ea8ca62ee742cb03add25202bb3018bba0d6 | 8562adfbeb7cf901aeeaf004dc1e53c286a24d48 | /beg86.py | ba49d5c28d0528682212047ecc0dd3986de5a4fc | [] | no_license | sarureddi/isogram | 1d4f8a7566a1df0f4a7b42502be60a1fafaabc10 | 3aca7e1172977cd116c0902761d70ded84402310 | refs/heads/master | 2020-06-03T11:03:43.392152 | 2019-06-12T09:54:11 | 2019-06-12T09:54:11 | 191,544,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | si1=str(input())
l=len(si1)
s=set(si1)
if(l==len(s)):
print("Yes")
else:
print("No")
| [
"noreply@github.com"
] | sarureddi.noreply@github.com |
d3b6e9f0e660a6ab3559ab5e2029a46b8e10bf27 | 255efb54075eb8cc2412bf1d5c936a97a003337e | /xt/environment/__init__.py | 69338935f833cbdd1def7455667f8075e68b8eed | [
"MIT"
] | permissive | jinqiuzhao/xingtian | 914a4d48c62fd8b3d4ddd0479e9bab54bbe5cba7 | 95953dc6109c96e68dcdeb9755b3679ff51742d4 | refs/heads/master | 2023-06-06T06:20:28.815549 | 2021-07-02T10:00:42 | 2021-07-02T10:00:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Build environment module.
Do encapsulation for different simulations.
Unify the single and multi-agents.
"""
from __future__ import division, print_function
from xt.framework import Registers
def env_builder(env_name, env_info, **kwargs):
"""
Build the inte... | [
"hustqj@126.com"
] | hustqj@126.com |
d98e426c5ffa96200e49a63c91cbb1ac43216323 | 220e3fe31f00df908dc8d00c507400425f924cc3 | /examples/multi_system/act6/unload.py | bf0fcc574b45c2f7fcf2d21c030c21e4aa89ff1f | [
"MIT"
] | permissive | danielmitterdorfer/Thespian | 3ed700d9fc6da35becfe801d3ab3bb68c86bddbc | f59439df8a6147b90ec31b44924d6a1b620f09d9 | refs/heads/master | 2021-01-19T05:06:33.005708 | 2017-07-31T04:44:03 | 2017-07-31T04:44:03 | 65,544,862 | 0 | 0 | null | 2016-08-12T10:22:29 | 2016-08-12T10:22:29 | null | UTF-8 | Python | false | false | 238 | py | from thespian.actors import ActorSystem, Actor, ValidateSource, ValidatedSource
import sys
portnum = int(sys.argv[1])
srchash = sys.argv[2]
asys = ActorSystem('multiprocTCPBase', {'Admin Port': portnum})
asys.unloadActorSource(srchash)
| [
"kquick@godaddy.com"
] | kquick@godaddy.com |
46e48392571cf7b50609181560a7a5b5cfd54d72 | 1d665f40197ba89f756e862c0e62a889c42cddfb | /commission/migrations/0007_auto_20150407_2034.py | 2b1be1c3a9965aa2314ab05057b9179433f0c7eb | [
"MIT"
] | permissive | Ourinternet/website | 8d9f9ddfe7d17fb0bb11b978cf3a7cd34af456ed | 648203c0d0620da2d11b3b0e398ee218b5bef5df | refs/heads/master | 2021-01-21T21:49:06.834576 | 2016-03-16T20:43:58 | 2016-03-16T20:43:58 | 15,683,988 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('commission', '0006_auto_20150407_1825'),
]
operations = [
migrations.AlterField(
model_name='feature',
... | [
"csimpson@cigionline.org"
] | csimpson@cigionline.org |
044985b9b265586f2b071cc1296c5845a039b17d | 56b7e5ed6941fc4b83148e00bd51421dc3ac993a | /Indeed/Expire Map.py | 2b1778212c66da456e0bb6bd3e0defd2bbc1db77 | [] | no_license | samir-0711/Leetcode-Python | f960e15015a3f2fd88f723d7f9237945a7133553 | d75876ae96bcd85c67bbfbf91bbc0f0bc773e97c | refs/heads/master | 2022-12-18T05:27:48.224001 | 2020-09-30T21:03:42 | 2020-09-30T21:03:42 | 300,061,318 | 0 | 0 | null | 2020-09-30T20:59:42 | 2020-09-30T20:59:42 | null | UTF-8 | Python | false | false | 722 | py | import time
class Data:
def __init__(self, value, duration):
self.value = value
self.duration = duration
self.startTime = int(round(time.time()))
class ExpireMap:
def __init__(self):
self.map = {}
def get(self, key):
data = self.map[key]
if data == None:
... | [
"weng8916@gmail.com"
] | weng8916@gmail.com |
6d9a899cc5415e40329693b80d3cc1bbf9759db2 | a257bf65a2a1ba2c6841dd25c89d98c5672e4e57 | /BackEnd/Semana22/DjangoRestFramework/DjangoRestFramework/wsgi.py | 424593130b609b9f268eda5e5d98d2c974645dad | [] | no_license | jorgegarba/CodiGo9 | 190cb67e3c7f9cbad271baf62657bda7ca03ec42 | 3b85c36a3ed8d2d5ee1d0fb6e8ca18599621fe47 | refs/heads/master | 2023-01-22T22:31:00.244982 | 2020-03-31T17:59:37 | 2020-03-31T17:59:37 | 211,982,487 | 6 | 5 | null | 2023-01-05T05:23:27 | 2019-10-01T00:21:25 | JavaScript | UTF-8 | Python | false | false | 415 | py | """
WSGI config for DjangoRestFramework 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/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('... | [
"ederiveroman@gmail.com"
] | ederiveroman@gmail.com |
6f9219124cdf28edd912b1cbde65e7ea17aece30 | 7b315bbe8c85ce05e6c51112e985ae1b392d83f5 | /desafio_calcipv4/__init__.py | 52688559769bae42e626eb8e42a779ae27f16e24 | [] | no_license | Cica013/aprendendoPython | e9f993b1b144e294a338a53f2bc36673d3cd00a6 | 9c964f2322e3d52b39a811aceec64b169bab4e10 | refs/heads/main | 2023-08-10T20:12:47.640239 | 2021-10-06T21:01:19 | 2021-10-06T21:01:19 | 385,755,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | from classes.calcipv4 import CalcIpv4
calc_ipv4 = CalcIpv4(ip='192.168.0.1', mascara='255.255.255.0')
| [
"61808853+Cica013@users.noreply.github.com"
] | 61808853+Cica013@users.noreply.github.com |
0bebf2b16ff727c6ad6f1d7aca0f42970ec1dc48 | bed559d18b0a9604e6d18879e1f3837d228d1440 | /rx/backpressure/pausable.py | 631ce64e952fd6f555f3e9866c6f605c96299a8e | [
"Apache-2.0"
] | permissive | jesonjn/RxPY | a80b7a8f0a3a8a6ddcb7f3ed678d2f8411cad84e | 9dfb62979f2c54b93bbb8c0ee5fa18cfae4d73d0 | refs/heads/master | 2020-12-29T00:25:17.866220 | 2014-11-15T10:24:05 | 2014-11-15T10:24:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,932 | py | from six import add_metaclass
from rx import Observable
from rx.internal import ExtensionMethod
from rx.disposables import CompositeDisposable, Disposable
from rx.subjects import Subject
class PausableObservable(Observable):
def __init__(self, source, subject=None):
self.source = source
self.subje... | [
"dag@brattli.net"
] | dag@brattli.net |
b891a21e50fd7f9a52706f2b802ad343cca4ea72 | c1bd12405d244c5924a4b069286cd9baf2c63895 | /azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/compute_management_client_enums.py | 94796a92c7936618c37a51b7bf0ec2a9b37639ee | [
"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,085 | 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 ... | [
"noreply@github.com"
] | lmazuel.noreply@github.com |
cddab9580d9af9da3a18d635c9717ed2acc1f201 | 4bc2d855558ccb962991f997e9779919031687dd | /capstone/causalmodel/migrations/0001_initial.py | d9fe267a7a9b8e4c5697913127b312847c7b2554 | [] | no_license | jmblontoc/Likha-Capstone | 80081e44b7ad6457eb776432e623c6db8b7a17e2 | e1c32911b58cd1419c8e1a554ac32210456d201d | refs/heads/master | 2022-12-10T03:26:32.946638 | 2018-12-09T04:33:10 | 2018-12-09T04:33:10 | 134,726,142 | 0 | 1 | null | 2022-11-25T23:52:42 | 2018-05-24T14:21:36 | Python | UTF-8 | Python | false | false | 1,187 | py | # Generated by Django 2.0.5 on 2018-06-27 15:33
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='DataMap',
fields=[
... | [
"37819032+jmblontoc@users.noreply.github.com"
] | 37819032+jmblontoc@users.noreply.github.com |
770781cf8434a6484eb3418aafba1bd504f0315d | 1a819b4d69a7c455199b638b1609d3284ecbf255 | /alttprbot_srl/racebot.py | c760ffc28d30de0301fd73fb1bf3fb04a1d6a28b | [] | no_license | Maxor14/sahasrahbot | 5167355a23a4e9d91171b583fe8065acd0ab99a6 | 9183933869f87743d94867cf52c463179d0b687a | refs/heads/master | 2021-05-22T21:30:54.015013 | 2020-04-01T01:01:47 | 2020-04-01T01:01:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,951 | py | import asyncio
import math
import re
import ircmessage
from alttprbot.database import spoiler_races, srl_races
from alttprbot.tournament import league
from alttprbot.util.srl import srl_race_id
from alttprbot_srl import alt_hunter, discord_integration
from config import Config as c
starting = re.compile(
"\\x034... | [
"tcprescott@gmail.com"
] | tcprescott@gmail.com |
07c821b253d8b2176af47cd42bb65e0f706db38a | 3109e3a7f2f2dccc5a806695f0adbe0fed879112 | /ecommerce/Loma/migrations/0022_auto_20190204_1200.py | 4724c3c1c3f80c03fa75c1a13fc32a1f6bb13401 | [] | no_license | Maheshwari2604/ecommercee | 9ebbf18b4fbf933a0d9641009f7f17ce836de587 | 4411e7e10eccda907711200d2c0d873db3d7f803 | refs/heads/master | 2020-04-20T18:03:49.575124 | 2019-02-12T16:02:05 | 2019-02-12T16:02:05 | 169,007,411 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.16 on 2019-02-04 06:30
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Loma', '0021_auto_20190203_1829'),
]
operations = [
migrations.AlterField(... | [
"maheshwarishivam2604@gmail.com"
] | maheshwarishivam2604@gmail.com |
8c1b2c443b10f64ad81dbb48b78341c22ec527dc | a2d36e471988e0fae32e9a9d559204ebb065ab7f | /huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/discount_info_v3.py | 3eeec1c5d49a77c443407f9193187e6c6e93816a | [
"Apache-2.0"
] | permissive | zhouxy666/huaweicloud-sdk-python-v3 | 4d878a90b8e003875fc803a61414788e5e4c2c34 | cc6f10a53205be4cb111d3ecfef8135ea804fa15 | refs/heads/master | 2023-09-02T07:41:12.605394 | 2021-11-12T03:20:11 | 2021-11-12T03:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,663 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class DiscountInfoV3:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is ... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
4e8fb660e0be3d0885aa9b36d0333165ee44736b | a33ee2ee3d67526fa353060b7efe48398d38e8db | /demovibes/webview/views.py | cc242832d23da2a871237f1c2cc6ad7ce9bc131c | [] | no_license | rj76/demovibes-cvgm | 5666164f57a5458872f6add1eb18620aa0fd5072 | 8c0f5e011baec3c9b732165c9c74dd07c87c290f | refs/heads/master | 2023-06-02T11:41:16.093070 | 2021-06-19T02:28:38 | 2021-06-19T02:28:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 86,960 | py | from webview import models as m
from webview import forms as f
from webview import common
from webview.decorators import atomic, cached_method
from openid_provider.models import TrustedRoot
from mybaseview import MyBaseView
from tagging.models import TaggedItem
import tagging.utils
from forum import mod... | [
"fishguy8765@gmail.com"
] | fishguy8765@gmail.com |
9c68ae44c857794289d718b86b9cf28781944546 | d49f38323dc30a3cb4a581b451f7db7eec220324 | /app.py | c50f59488d7cad0a63272dce103f97c62cf594dd | [] | no_license | bbiyongel/NaverAPI-telegram | 0e67259ed2faa86860014f0a5ff1ee0528175b67 | bfcffdb03c6c2cb2387aee461490c520542227bf | refs/heads/master | 2022-01-15T19:50:28.409431 | 2019-07-12T09:00:15 | 2019-07-12T09:00:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,740 | py | from pprint import pprint
from flask import Flask, request
import requests
from decouple import config
import random
app = Flask(__name__)
token = config('TELEGRAM_TOKEN')
base_url = f"https://api.telegram.org/bot{token}"
naver_client_id = config('NAVER_CLIENT_ID')
naver_client_secret = config('NAVER_CLIENT_SECRET')... | [
"jjgk91@naver.com"
] | jjgk91@naver.com |
1c07148d7ab0dac268d97289f85bcfd5323f3892 | 4c7ccea26d2a6f7197fcdd7b8413652cea199485 | /IPython/SdA/StackeddAutoencoder.py | 88ef597fa78dc3337214ffa36a0bb97d7a894564 | [] | no_license | cgallego/Section3 | 77fc1c8e5f6dfa273775f165cfb54f28c05e0f52 | 1745cb018811541b6ece603f2762ef05cc263b3b | refs/heads/master | 2021-01-19T06:41:31.153702 | 2016-08-08T16:45:43 | 2016-08-08T16:45:43 | 60,637,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,074 | py | """
Stacked denoising auto-encoders (SdA) using Theano.
Denoising autoencoders are the building blocks for SdA.
They are based on auto-encoders as the ones used in Bengio et al. 2007.
An autoencoder takes an input x and first maps it to a hidden representation
y = f_{\theta}(x) = s(Wx+b), parameterized by \theta=... | [
"admin@webdsdesign.com"
] | admin@webdsdesign.com |
9ca3d949f4eba7c4f5c4434c364d62be9b136a99 | aa4024b6a846d2f6032a9b79a89d2e29b67d0e49 | /UMLRT2Kiltera_MM/graph_MT_post__Model.py | 3f264f3c35aea6264d6efa85f991b713f54237a9 | [
"MIT"
] | permissive | levilucio/SyVOLT | 41311743d23fdb0b569300df464709c4954b8300 | 0f88827a653f2e9d3bb7b839a5253e74d48379dc | refs/heads/master | 2023-08-11T22:14:01.998341 | 2023-07-21T13:33:36 | 2023-07-21T13:33:36 | 36,246,850 | 3 | 2 | MIT | 2023-07-21T13:33:39 | 2015-05-25T18:15:26 | Python | UTF-8 | Python | false | false | 2,610 | py | """
__graph_MT_post__Model.py___________________________________________________________
Automatically generated graphical appearance ---> MODIFY DIRECTLY WITH CAUTION
___________________________________________________________________________
"""
import tkFont
from graphEntity import *
from GraphicalForm impor... | [
"levi"
] | levi |
e6a2a28a5d17ffa3424d45048710a8687df2c863 | 9256eeff108787245a1d9a8e27f80c04377ba10f | /src/datasets/mnist.py | 49071693a70659a10514560cc67cff58309b79cf | [
"MIT"
] | permissive | martinhavlicek/meta-inference-public | 99a22daef937921deb9f677f68aa1c954e456e55 | 3cad0b84acd407f3d790f3d75d3045f62bdbf250 | refs/heads/master | 2022-04-12T14:15:42.514426 | 2020-03-31T21:39:50 | 2020-03-31T21:39:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,748 | py | import math
import numpy as np
from PIL import Image
from torchvision import datasets
from torchvision import transforms
# ----- ROTATED MNIST -----
ROTATIONS = np.arange(-180, 180, 20)
DEFAULT_ROTATIONS = ROTATIONS[0::2]
UNSEEN_ROTATIONS = ROTATIONS[1::2]
DEFAULT_ROTATIONS_SPARSE = np.array([-160, -80, 0, 80, 160]... | [
"me@mikewuis.me"
] | me@mikewuis.me |
ac81e7a4a5a4e1eec99fc4dd938031a42d326728 | 1064db5dfd154c4bc600e0e03841b0f73f0eefbc | /home/migrations/0008_auto_20200529_0800.py | 55f78b9f74855b21f14e8caf061dee753c0981a6 | [] | no_license | crowdbotics-apps/web-29-dev-5196 | 3303921a0e5c8794e8e67f55c9841f3ec7610c16 | 7beda8f7d57ce9b9858a46f7e3940d6eed4b5725 | refs/heads/master | 2023-05-26T23:00:23.271209 | 2020-05-29T12:47:07 | 2020-05-29T12:47:07 | 267,768,914 | 0 | 0 | null | 2021-06-13T04:08:30 | 2020-05-29T04:59:18 | Python | UTF-8 | Python | false | false | 342 | py | # Generated by Django 2.2.12 on 2020-05-29 08:00
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("home", "0007_customtext_kjhkh"),
]
operations = [
migrations.RenameField(
model_name="customtext", old_name="kjhkh", new_name="ghfnhgfg... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
b5c1fff82ac0901d1ae985cd1826ca4b47c6f5af | 5b93930ce8280b3cbc7d6b955df0bfc5504ee99c | /nodes/Bisong19Building/I_PartVIII/C_Chapter47/index.py | cce9e2225cec24eabc5302e3a2817b1a5b9cd72f | [] | no_license | nimra/module_gen | 8749c8d29beb700cac57132232861eba4eb82331 | 2e0a4452548af4fefd4cb30ab9d08d7662122cf4 | refs/heads/master | 2022-03-04T09:35:12.443651 | 2019-10-26T04:40:49 | 2019-10-26T04:40:49 | 213,980,247 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,830 | py | # Lawrence McAfee
# ~~~~~~~~ import ~~~~~~~~
from modules.node.HierNode import HierNode
from modules.node.LeafNode import LeafNode
from modules.node.Stage import Stage
from modules.node.block.CodeBlock import CodeBlock as cbk
from modules.node.block.ImageBlock import ImageBlock as ibk
from modules.node.block.MarkdownB... | [
"lawrence.mcafee@gmail.com"
] | lawrence.mcafee@gmail.com |
efbfb275ecf4ddfacfe040a07abe20a304942382 | 866dee1b3d01b863c31332ec81330d1b5ef5c6fa | /openquake.hazardlib/openquake/hazardlib/gsim/campbell_bozorgnia_2003.py | d16f63883e1925478903cecb7406eb1dbb6030d7 | [
"MIT",
"AGPL-3.0-only"
] | permissive | rainzhop/ConvNetQuake | 3e2e1a040952bd5d6346905b83f39889c6a2e51a | a3e6de3f7992eac72f1b9883fec36b8c7fdefd48 | refs/heads/master | 2020-08-07T16:41:03.778293 | 2019-11-01T01:49:00 | 2019-11-01T01:49:00 | 213,527,701 | 0 | 0 | MIT | 2019-10-08T02:08:00 | 2019-10-08T02:08:00 | null | UTF-8 | Python | false | false | 8,419 | py | # -*- coding: utf-8 -*-
# vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright (C) 2014-2016 GEM Foundation
#
# OpenQuake is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the Licen... | [
"rainzhop@gmail.com"
] | rainzhop@gmail.com |
de3acc9720419a15a1a42835f76a34d6293154c3 | 16c77266859989d156fe3f4d0ce3a37a1898ad38 | /dacc/xls/write.py | 1fad19e6f9792761fed509ba748792ebd263a457 | [
"MIT"
] | permissive | SRHerzog/ut | 92620e66be2ea9707d9cd3cf390179326ed2eefe | 894bd5607eb76676aaea7a37ed8a91b5fb5e805e | refs/heads/master | 2021-06-30T19:15:46.131299 | 2017-09-15T20:47:35 | 2017-09-15T20:47:35 | 103,696,926 | 0 | 0 | null | 2017-09-15T20:08:10 | 2017-09-15T20:08:10 | null | UTF-8 | Python | false | false | 3,367 | py | __author__ = 'thor'
import os
import pandas as pd
from pandas import ExcelWriter
from openpyxl import load_workbook
from openpyxl.reader.excel import InvalidFileException
try:
from xlwings import Workbook, Sheet
except ImportError as e:
print(e)
def multiple_dfs_to_multiple_sheets(df_list, xls_filepath, shee... | [
"thorwhalen1@gmail.com"
] | thorwhalen1@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.