blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e0f5eb927f3f0f40a96e58cfbc60a74967d760a0 | f7a4393711d5ce971ecb77f3516745bba5aa169f | /squitra/urls.py | eff9891ba9b4ccb9f58a402405500c6197a8b05f | [] | no_license | shubh-scientist/squirrel | ac4da62212a54bbec0b8c371ca53e45844a83788 | b7f0ecaa03b0ead5516e072481766e5beef7fa0d | refs/heads/master | 2023-04-04T09:50:20.478109 | 2021-04-15T05:34:49 | 2021-04-15T05:34:49 | 356,728,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | from django.urls import path
from . import views
app_name='squap'
urlpatterns = [
path('map/', views.view_map, name = 'map'),
path('',views.view_main, name = 'main'),
path('sightings/',views.sightings_view, name = 'sightings'),
path('sightings/stats', views.stats_view, name = 'stats')... | [
"sarthakarora@yahoo.com"
] | sarthakarora@yahoo.com |
6a6413464dd983edc595212f9cc4c86527804bdf | 210a726450e43f347f11ecceb3fec3a0febc4f58 | /virtualenv/bin/pytest | fb7fc79f46bad309f590d660a1932bd8e89f9a9c | [] | no_license | ngonzo95/BarrenLandAnalysis | fd206e026641e7a9adb3c67bf708a30b40d40842 | 4356397042e8398786701aaee455cf9f71eae0cb | refs/heads/master | 2022-07-06T12:07:44.949072 | 2019-11-15T23:49:00 | 2019-11-15T23:49:00 | 221,755,578 | 0 | 0 | null | 2022-06-21T23:26:26 | 2019-11-14T17:49:42 | Python | UTF-8 | Python | false | false | 254 | #!/Users/Nick/Documents/BarrenLandAnalysis/virtualenv/bin/python3.7
# -*- coding: utf-8 -*-
import re
import sys
from pytest import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"ngonzo95@gmail.com"
] | ngonzo95@gmail.com | |
46d6615dcb4ee5611f606ad779a55bf8197e7458 | 9f02b9c470dcd24e82e0806cb71a64e2b930dc95 | /node_modules/fibers/build/config.gypi | f8cda853d5fc10863cda6e475d746cf35687faa6 | [
"MIT"
] | permissive | MeliorAI/web-automated-tests | 08e19720750cc29e51d7455afc149fe78bd62821 | 618991074de4a394b064d7ccf847e99c3ca1c60f | refs/heads/master | 2020-03-28T09:37:58.770791 | 2018-09-10T09:16:47 | 2018-09-10T09:16:47 | 148,047,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,941 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"coverage": "false",
"debug_devtools": "node",
"debug_http2"... | [
"jose.marcos.rf@gmail.com"
] | jose.marcos.rf@gmail.com |
0153ff9a87faecc4f033e17915d1b292fc0049a8 | a4f18871843878802f89ef3701055f9756cc425b | /src/ciudadfutura/apps/admin/urls.py | 05233dc1e1be07ce3393423eeeeab665be29a9e4 | [] | no_license | CiudadFutura/ciudad-futura | 01cc791e94e6aa24cbfcd961d960083132eb4850 | 091acb1c409ff2f73ca6a8f214e8272793782ac3 | refs/heads/master | 2016-09-15T12:43:45.355225 | 2015-11-11T22:35:04 | 2015-11-11T22:35:04 | 42,077,468 | 1 | 0 | null | 2016-05-06T01:39:18 | 2015-09-07T22:32:30 | Python | UTF-8 | Python | false | false | 2,703 | py | from django.conf.urls import url
from . import views
urlpatterns = [
# Admin urls
url(r'^admin/$', views.admin_dashboard, name='dashboard'),
url(r'^admin/login/$', views.admin_login, name='login'),
url(r'^admin/logout/$', views.admin_logout, name='logout'),
# Tags urls
url(r'^admin/tag/$', vi... | [
"nicofheredia@gmail.com"
] | nicofheredia@gmail.com |
188770a875c243b86626f2e6b801de11aaf3a3b4 | fa641dc4133f1a8626fbbf7c41f11af0f3f1f2cb | /Exercises/MaxTemperatures.py | ef862ce03e9d7741273d7bc3265fbd0b4c25f3aa | [] | no_license | Guttapercha/CEBD-1160-Korchagina-Evgeniya | cbcd54d9ec74bde4f30462cc207b9db04d08f07a | 8a24ab4c8ad910afb2fc732e9943fc1273fb642a | refs/heads/master | 2020-03-09T02:28:09.107726 | 2018-09-28T17:11:14 | 2018-09-28T17:11:14 | 128,540,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | from mrjob.job import MRJob
class MRMaxTemperature(MRJob):
def mapper (self, _,line):
(stationID,date,type,temp,a,b,c,v)=line.split(',')
if (type=='TMAX'):
TmaxValue=temp
yield stationID, TmaxValue
def reducer(self,stationID, T):
yiel... | [
"noreply@github.com"
] | Guttapercha.noreply@github.com |
d1995db9e238a1d26af8acb2f4866cd925eff8c4 | 0d6dcc6a1e7942b80f91d905e71ce00f58734a9a | /src/alphaorm/utilities/constants.py | a74b73405bffbf599ea18176a2dca30f73c4d011 | [
"MIT"
] | permissive | Losintech/python-alpha-orm | 7256c0b2d3c2a13d09c06ec45f5bc0665f1cfe94 | 01e88c5cf21b881dc670d605b353df8ae52eb83c | refs/heads/master | 2020-09-26T12:03:41.536618 | 2019-12-02T21:57:01 | 2019-12-02T21:57:01 | 226,251,290 | 1 | 0 | MIT | 2019-12-06T05:18:31 | 2019-12-06T05:18:31 | null | UTF-8 | Python | false | false | 334 | py | UNDERSCORE_NOT_SUPORRTED_ERROR = 'Column names cannot contain `_` symbol'
SPACE_NOT_SUPORRTED_ERROR = 'Column names should not have a space'
def SETUP_PARAMETER_MISSING(paremeter):
return f"The '{paremeter}' is required!"
def DATA_TYPE_ERROR(method):
return f"Parameter passed into method `{method}` must be of type ... | [
"devclareo@gmail.com"
] | devclareo@gmail.com |
02dbfae7172325447630a979a9ced2502b711481 | 3dac0b9e5e7f2ba0fd23825fd6d376985c22a1c4 | /examples/eap-tls/eap-tls-auth.py | 3f02d9f9c6cf074662ec8c18927c84f9b63123df | [
"LicenseRef-scancode-x11-stanford"
] | permissive | hobama/mininet-iot | 68dfd90e96bf058a4947efb0403f927eb9b4dad2 | 55ca339f293695c065aad5b3805160098e2872c9 | refs/heads/master | 2020-12-03T17:57:38.670559 | 2019-10-16T00:39:26 | 2019-10-16T00:39:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,078 | py | #!/usr/bin/python
'This example shows how to work with authentication'
from mininet.log import setLogLevel, info
from mn_iot.mac80211.cli import CLI_wifi
from mn_iot.mac80211.net import Mininet_wifi
import os.path
import os
from os import path
def topology():
"Create a network."
cwd = os.getcwd()
net = ... | [
"ramonreisfontes@gmail.com"
] | ramonreisfontes@gmail.com |
f73f75bfe2a79428ec9f853d12da4bb691f3e073 | 364f674a86e688366288aceda1c4c02526454c89 | /multimodal_models/StackGAN_V2_PyTorch/train.py | aa0829388df092c65a5d51b57bb27bdacfead1cc | [
"MIT"
] | permissive | Rajarshi1001/model-zoo | 6a70d32dde4298ada8ccad3248e154f2a20ed627 | e0fa2e1899274baba3e6e2a6bd92fd4f3a8a3b3d | refs/heads/master | 2023-08-19T19:15:53.426509 | 2021-09-28T03:54:12 | 2021-09-28T03:54:12 | 370,114,964 | 0 | 0 | MIT | 2021-05-23T17:27:31 | 2021-05-23T17:27:30 | null | UTF-8 | Python | false | false | 9,129 | py | import torch
import numpy as np
from discriminator_model import D64, D512, D256, D128, D1024
import time, cv2, models
from postprocessing import postprocessing
from datasets import TextDataset
import helper_functions.config as cfg
from torch.utils.data import Dataset, DataLoader
import torchvision.transforms as transf... | [
"noreply@github.com"
] | Rajarshi1001.noreply@github.com |
e9e8fd9060bd56d887265e303395016527e6b814 | 1d0535c988756daad9468776e145baf0f50423d9 | /FIXME_Get Full Name.py | 962a0e780c687e6467af651dfa29b944b924676e | [] | no_license | NandishRPatel/python-challenges | e41e5525ae78ef0f60905d692adf935ed4a9319a | d0d154c74005fbbcb064abae9778871afd7bdc70 | refs/heads/master | 2023-08-02T00:37:07.626547 | 2021-09-30T05:58:46 | 2021-09-30T05:58:46 | 194,492,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | class Dinglemouse(object):
def __init__(self, first_name, last_name):
self.first_name = first_name
self.last_name = last_name
def get_full_name(self):
return (self.first_name + ' ' + self.last_name).strip()
print(Dinglemouse('', '').get_full_name()) | [
"1418beit30031@gmail.com"
] | 1418beit30031@gmail.com |
0114f7c68c4f2eb88ff9ed2a175e2ac1b9ed1ac0 | 8a85eae62f9c45c275679584bd6590c7890fcda1 | /3/3-1.py | 28d0e2a23a3ae7c93b2ca2c79f7a20073a721dc7 | [] | no_license | ryu2129/FE_Python | 3828c028bca28ab1013895fb328114136bf32934 | 2abb3a0df4855a17880bd12e73380f70df55d471 | refs/heads/main | 2023-06-27T07:50:51.621043 | 2021-07-26T08:16:24 | 2021-07-26T08:16:24 | 382,666,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,273 | py | # %%
def triangle_area(base, height):
area = base * height / 2
return area
# %%
area = triangle_area(5, 3)
print(area)
# %%
def sum_list(digitlist):
sum_digit = 0
for digit in digitlist:
if digit.isdigit():
sum_digit += int(digit)
return sum_digit
# %%
digitlist = ['1', '4', 'abc']
sum_digit = sum_... | [
"ryu212920@gmail.com"
] | ryu212920@gmail.com |
06401faf2f49ed4671887a35a38b057a517f6587 | bd0d0aa82909fc6a8b739a6ba2df77e3ff698765 | /libs/pytorch-deeplab-xception/dataloaders/warp_mask.py | 31cc3e8d764ca7e2709144edfa9242bb433999a3 | [
"MIT"
] | permissive | shuangjiexu/MHP-VOS | ca90608a969ecee6df110d700ffd5e45b2163605 | 9f5b123b6e5ed7b9d91a96ac2e3d87b1d3d999c4 | refs/heads/master | 2020-05-04T10:16:25.747979 | 2020-04-08T03:51:18 | 2020-04-08T03:51:18 | 179,085,014 | 70 | 8 | null | null | null | null | UTF-8 | Python | false | false | 4,518 | py | import os
import numpy as np
import cv2
def read_flow(flowfile):
f = open(flowfile, 'rb')
header = f.read(4)
if header.decode("utf-8") != 'PIEH':
raise Exception('Flow file header does not contain PIEH')
width = np.fromfile(f, np.int32, 1).squeeze()
height = np.fromfile(f, np.int32, 1).sq... | [
"shuangjiexu@foxmail.com"
] | shuangjiexu@foxmail.com |
e7bf1229c2639c69435057d43312c103e4083947 | fc3c9d2143aecedce191bb91dbd01babe7f6d40b | /tensorpack/dataflow/dataset/mnist.py | 6eee2370e427c7f89687f8888a55ef6a30b483ff | [
"Apache-2.0"
] | permissive | rahulbprakash/tensorpack | 0ee10de245f486d17a252354833c98dd713fd6e6 | b2ec42a8d152760498aa911818d50b01e408bb43 | refs/heads/master | 2020-12-30T19:12:08.800662 | 2016-06-09T23:03:37 | 2016-06-09T23:03:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,927 | py | #!/usr/bin/env python2
# -*- coding: UTF-8 -*-
# File: mnist.py
# Author: Yuxin Wu <ppwwyyxx@gmail.com>
import os
import gzip
import random
import numpy
from six.moves import urllib, range
from ...utils import logger
from ...utils.fs import download
from ..base import DataFlow
__all__ = ['Mnist']
""" This file is m... | [
"ppwwyyxxc@gmail.com"
] | ppwwyyxxc@gmail.com |
620a42f2de8387bd563da13297f293106ec6359a | af233cb4bfbc4d215aff9bece395162b181b948c | /samples/max.py | dd9b82c0d4a5c8fbc56dd84bf3d9aca819c1a15e | [] | no_license | hujunalex1/python3 | 7108acdf1259910ddb3808175848db3874b85f34 | 8418ad1de83f7ebd8cf292ef5c4c0567ee2b7173 | refs/heads/master | 2020-12-25T09:08:52.962204 | 2016-11-25T03:51:39 | 2016-11-25T03:51:39 | 60,052,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | # max函数max()可以接收任意多个参数,并返回最大的那个.
x=max(-1,2,3,19)
print(x) | [
"huj@lizi.com"
] | huj@lizi.com |
c9d38489e612ac0b5fff74eba18d3370c578fb8f | e0b6f5bd451aa8af3273fbc948799637681342e1 | /scripts/wm_representation/functions/IEM/Decoding_target/trainD_testT.py | 565bed64df165b7759d3c984ce464fc7735d1901 | [] | no_license | davidbestue/encoding | 6b304f6e7429f94f97bd562c7544d1fdccf7bdc1 | c27319aa3bb652b3bfc6b7340044c0fda057bc62 | refs/heads/master | 2022-05-05T23:41:42.419252 | 2022-04-27T08:34:52 | 2022-04-27T08:34:52 | 144,248,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,641 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jul 1 18:24:32 2019
@author: David Bestue
"""
############# Add to sys path the path where the tools folder is
import sys, os
path_tools = os.path.abspath(os.path.join(os.getcwd(), os.pardir)) ### same directory or one back options
sys.path.insert(1, path_tools)
from tools ... | [
"davidsanchezbestue@hotmail.com"
] | davidsanchezbestue@hotmail.com |
26c87afea606d27b70e9a74c563abbc45a842651 | 23e1d4c609a489093cde70d12bcf292dad49baf0 | /create_index_2.py | 60368a12b058004bd03965eb34690a1136a94c57 | [] | no_license | kuochuwon/PPT_Keyword_Finder | 1b6d2d7d573c04a1b6abf67cbd07e9d4dd856db4 | 81df0784d90353410075d905692617e26cf0cfd1 | refs/heads/master | 2023-07-11T13:56:57.421939 | 2021-08-12T04:29:07 | 2021-08-12T04:29:07 | 386,241,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,689 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '.\create_index_2.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
# import msvcrt
import... | [
"kuochuwon@gmail.com"
] | kuochuwon@gmail.com |
236f34818c27d1d5d51117013e8b5ed82ffa7292 | ddd77802beb77169ed311df4eb1c7e8ed2dc85a2 | /apps/categories/views.py | d32a2bb737e944d665bbb11fd82e2bb35ec4cf6b | [] | no_license | An931/words-learning | 472f20063ff79f50f2fe03e2fd639014dd1ca3b9 | a3bc257537c20a1d050ebb12e6b3e7f39ad0bbd6 | refs/heads/master | 2022-12-08T11:19:22.163746 | 2020-09-05T06:20:35 | 2020-09-05T06:20:35 | 291,753,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | from rest_framework import viewsets
from rest_framework.permissions import IsAuthenticated
from permissions.api_key_permissions import APIKeyPermission
from .models import Category
from .serializers import CategorySerializer
class CategoryViewSet(viewsets.ModelViewSet):
"""API view set for Category model"""
... | [
"anna.makarova@saritasa.com"
] | anna.makarova@saritasa.com |
e13a306985e467e8ce545e6f42c49c7df57a83ce | 45d17fd269d29838df83673898273c9dbe0083eb | /Dzien01/008-petla-for.py | 325973eacf03c43ecfbc6520177dc17cc351f2a0 | [] | no_license | elanco-python/szkolenie | 15ffaaa7fb634200082b3fc30d6f9c0970d6e772 | 54897829e377e6fc0a6cad73532dcba430efb52b | refs/heads/master | 2022-12-22T18:21:15.537184 | 2020-10-08T16:43:17 | 2020-10-08T16:43:17 | 301,567,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py |
# Pętla for
zakres = list( range(1, 11, 2) )
print(zakres)
for x in range(1,11):
print(x**2)
print("="*80)
lista = ["A", 1, None, (1,"OK")]
counter = 1
for counter, x in enumerate(lista, 100):
print(counter, x, sep=":")
| [
"marian.witkowski2@orange.com"
] | marian.witkowski2@orange.com |
8ccb3a1d40d475060dbbf11cf67ffdd14167632a | 17ef2ca91059e2ce9210de9c1c60508e7ddcf46d | /writershub/asgi.py | 1b19b893afcc06c0500739b83cca4b3cb4fa1b23 | [] | no_license | osamwelian3/FreelanceWebApp | 71bf6381de60130904a3d7021c1b598bede0f82f | 6341d8332a39330561cf8c20e5b09170503d523f | refs/heads/master | 2022-12-03T14:49:57.093439 | 2020-08-14T11:53:05 | 2020-08-14T11:53:05 | 287,521,150 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
ASGI config for writershub project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SE... | [
"samian@samian.samian.com"
] | samian@samian.samian.com |
59a5b59694320854440564f7714dbb7fb05bff93 | a3375aeabc2782d92dc2c3208e5badb00daa3703 | /BtsShell/application_lib/protocols/Gtp.py | 437d2bd1cc87393b55f860c27654a02af210a4d4 | [] | no_license | jufei/BtsShell | f256ff573cbbb7a834ae608eb991eb337503f159 | 75487a40ac2cc5f24f70d011ad6cd3924908f783 | refs/heads/master | 2021-01-10T09:25:02.656231 | 2016-03-29T05:42:04 | 2016-03-29T05:42:04 | 54,948,974 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,316 | py | import re
import traceback
from BtsShell.helper import CommonItem, ParserException
GTP_MESSAGE_TYPE = {'0x01': 'Echo Request',
'0x02': 'Echo Response',
'0xff': 'G-PDU'
}
class Gtp(CommonItem):
def __init__(self, udp_data):
"""
... | [
"fei.ju@nsn.com"
] | fei.ju@nsn.com |
f20f61dd084a86780430804aaf86bf356607c439 | 60aa3bcf5ace0282210685e74ee8ed31debe1769 | /base/lib/encodings/unicode_internal.py | 29e12df0a43d19180c4e495aec554a95337e1987 | [] | no_license | TheBreadGuy/sims4-ai-engine | 42afc79b8c02527353cc084117a4b8da900ebdb4 | 865212e841c716dc4364e0dba286f02af8d716e8 | refs/heads/master | 2023-03-16T00:57:45.672706 | 2016-05-01T17:26:01 | 2016-05-01T17:26:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 983 | py | import codecs
class Codec(codecs.Codec):
__qualname__ = 'Codec'
encode = codecs.unicode_internal_encode
decode = codecs.unicode_internal_decode
class IncrementalEncoder(codecs.IncrementalEncoder):
__qualname__ = 'IncrementalEncoder'
def encode(self, input, final=False):
return codecs.unic... | [
"jp@bellgeorge.com"
] | jp@bellgeorge.com |
4fa84f2deee1994f61caf98271432496ed94b1c2 | e9c0a258943a13e09f4d71bf1172ca18bb8102b1 | /macro-kit/customize/expander/expander_files/python.py | 0ffbff7095b6c1dc130088dfb00635857c2d2ec8 | [] | no_license | mrbald/nedit-macro-kit | 15fcc8cf073a0be178139a480d5a37c562de5b18 | b1a40850ea91bb914cae125ef4c33ed0caa3b6de | refs/heads/master | 2021-01-10T06:14:49.783400 | 2009-10-30T10:15:07 | 2009-10-30T10:15:07 | 46,522,047 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | #! /usr/bin/env python
import sys, pdb
from swk import *
g_logfile=LogFile()
def GetParam():
from optparse import OptionParser
usage = "usage: %prog [options] rootpath"
parser = OptionParser(usage)
parser.add_option("-b", "--boolean", action="store_true", dest="boolean", help="boolean example", default=False)
p... | [
"frank.perbet@399c9662-ede6-11dd-ac92-6b84c442103f"
] | frank.perbet@399c9662-ede6-11dd-ac92-6b84c442103f |
86a0a5eccd25c785366923e08dbd0bcdc20006a6 | 50c520d9b8b0fe66b94a874fa016fd06962dacf0 | /inlinks.py | 8c1fcd99d214dfafc79849371b97a7e760100b2d | [] | no_license | shugamoe/cs123_wiki_proj | dc373d82364f8c81b118ad7ddd23f0e445785d0d | 066352d5fcce825df1989e8300401fe32381d267 | refs/heads/master | 2021-01-17T13:08:28.837435 | 2016-07-04T03:19:02 | 2016-07-04T03:19:02 | 57,915,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,739 | py | import pandas as pd
import json
import urllib.parse
def wiki_homepages(pagename, json_file, titles_file):
'''
Generates a list of inlinks (pages that link to pagename) of a page.
Inputs:
pagename - name of the page of interest
json_file - file of the json containing the line numbers of
... | [
"andyz422@cs.uchicago.edu"
] | andyz422@cs.uchicago.edu |
d0d3b67d53b8559c598eeabe2de449843ca4f522 | 4424642d85d750476e8549844b58636971a6515a | /training/level-4-creating-web-services/bfp-reference/bfp_friends_api/code-snapshots/exercise-8/api_helpers.py | 2ccfe0a24ca77d6d12a12affecdc25673d0057d6 | [] | no_license | timmywilson/pandas-practical-python-primer | 81b72b1d243a70b497fa0b17fbcca0403417dde2 | 0189c81a16dc3baf01b5d8fbcc7cd5eeba2cdbb9 | refs/heads/master | 2021-01-22T15:35:39.298247 | 2015-11-18T22:22:04 | 2015-11-18T22:22:04 | 43,707,883 | 0 | 0 | null | 2015-10-05T19:19:37 | 2015-10-05T19:19:37 | null | UTF-8 | Python | false | false | 1,871 | py | """
This module provides functions that are commonly used by various
members of the api.py module.
"""
from werkzeug.exceptions import BadRequest
def json_payload(request) -> dict:
"""
Verify that a flask.request object has a JSON payload and
that it does not contain syntax errors.
Args... | [
"timothyscottwilson@gmail.com"
] | timothyscottwilson@gmail.com |
dea85b07a363f1d51f9b610e3cc7cd7ea9841e37 | 9ec437cfecb7e91428deed98dd841786013d45b6 | /kathisattic/apps/account/models.py | fd73f6b49f278b97e5b844e73c38da00ddb78e74 | [
"MIT"
] | permissive | ninapavlich/kathisattic | 0fc5901bfa2b4b93f40dd2017be201a73d01c030 | 0585e63f43da6841f7fc0d69f090d7ab556dcec0 | refs/heads/master | 2021-04-15T16:11:03.159798 | 2016-07-06T23:11:48 | 2016-07-06T23:11:48 | 61,773,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,090 | py | from django.db import models
from django.conf import settings
from carbon.compounds.account.models import User as BaseUser
from carbon.compounds.account.models import Address as BaseAddress
from carbon.compounds.account.models import UserGroup as BaseUserGroup
from carbon.compounds.account.models import UserGroupMembe... | [
"nina@ninalp.com"
] | nina@ninalp.com |
23c5cc3e60e317ec7e1c0ecc5a633d6297f44aa1 | e3e6fc037f47527e6bc43f1d1300f39ac8f0aabc | /google/devtools/build/v1/build_status_pb2.py | 269dbcf3e6c8e73d9f1818cff102d36674645b26 | [] | no_license | msachtler/bazel-event-protocol-parser | 62c136cb1f60f4ee3316bf15e1e5a5e727445536 | d7424d21aa0dc121acc4d64b427ba365a3581a20 | refs/heads/master | 2021-07-05T15:13:19.502829 | 2017-09-24T04:15:16 | 2017-09-24T04:15:16 | 102,999,437 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | true | 5,705 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/devtools/build/v1/build_status.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protob... | [
"matt.sachtler@gmail.com"
] | matt.sachtler@gmail.com |
023e380d1f9820e0b7068df001c1720639b6585f | 28ce9792348ab9766f925a411652dcf9da90c26e | /webApplication/settings.py | 05635a18e01478e85f73137002c2db468aa978c5 | [] | no_license | RupaMistry/machine-scikit-learning | 1444edab354347430f95f357c956bb458d6d3587 | 22af95e663cb27f1847ce69613a10dc79e0c8ce4 | refs/heads/master | 2020-07-27T01:27:29.110965 | 2019-09-16T15:21:30 | 2019-09-16T15:21:30 | 208,822,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,924 | py | import os
import datetime
from mongoengine import connect
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SECRET_KEY = '43t@n5)84pc*y9-=$yul2_2pbtbya2a!zikplk+t_wi(7@mggl'
DEBUG = True
ALLOWED_HOSTS = ['*']
connect(db='machine-scikit-learningDB')
INSTALLED_APPS = [
'django.contrib.admin'... | [
"mistryrupa7@gmail.com"
] | mistryrupa7@gmail.com |
d50295da822a4d302060f559849b059275fd3e75 | 8cf13446987a74e2cdcc6506b6137e104976e065 | /init_work/conv_net/ker2.py | ad723c142884b1606d1f59320ca2ccfd51cf4db5 | [] | no_license | jurajmaslej/dipl | 53f627ec24ff0da90c25d7ca959b7516b281b523 | 12c1c1e981eb8c459e176ab1344d60bcb6f61059 | refs/heads/master | 2020-03-17T18:39:58.107242 | 2018-05-18T08:28:16 | 2018-05-18T08:28:16 | 133,714,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,395 | py | #C:> activate keras
#(keras) C:> set TF_CPP_MIN_LOG_LEVEL=2
#(keras) C:> python
# >>>
import numpy as np
import cv2
from keras.layers import Input
from keras.layers.convolutional import Conv2D
from keras.models import Model
def run_ker2(img_name):
inp = Input(shape=(None,None,1)) # objekt kt pohlti vst... | [
"juraj.maslej@gmail.com"
] | juraj.maslej@gmail.com |
91e6b4bbcb02bff20d792b753c4b889d92fa0b85 | 2620b9177a3b3850582435345d333d95569c2063 | /ticket_trackr/wsgi.py | 5da5740aa73642d44bc3fcfc0d2cf3abc1857307 | [] | no_license | LoganLeopold/Ticket_Trackr_BackEnd | b5598a633cb848c8e0855c18331318cb7e9d2b0f | ede244a6cce4d42ae90bdc7f73a496d302d575d6 | refs/heads/master | 2022-12-09T09:39:25.990324 | 2021-06-03T17:17:38 | 2021-06-03T17:17:38 | 175,481,315 | 0 | 0 | null | 2022-12-08T04:52:14 | 2019-03-13T18:56:24 | Python | UTF-8 | Python | false | false | 403 | py | """
WSGI config for ticket_trackr project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO... | [
"loganleopld@me.com"
] | loganleopld@me.com |
5d1edb413dcc5cc28dd3a3d0ce46e172e7f19377 | 40f40f5e649536db3aac4efb97f88efd4e6dd759 | /src/facturplus/productes/apps.py | 55442c59fd7686a74f6a48fe7ba5a2ac779fe49a | [
"MIT"
] | permissive | ctrl-alt-d/learn-orm-django | 658c618d8f59f483dc4d8e721271a6dc539dddae | 78a847dc8e58bc69be1e4e6165a143f56ecf4608 | refs/heads/master | 2022-04-30T12:46:37.572547 | 2022-04-23T07:36:10 | 2022-04-23T07:36:10 | 213,195,337 | 1 | 0 | MIT | 2022-04-23T07:36:11 | 2019-10-06T15:41:19 | Python | UTF-8 | Python | false | false | 93 | py | from django.apps import AppConfig
class ProductesConfig(AppConfig):
name = 'productes'
| [
"ctrl.alt.d@gmail.com"
] | ctrl.alt.d@gmail.com |
4132ca9438aecd2d20d233401f8a783b37c16556 | 7f8dd611e8a213b50161fc23fc209ad7c6eacd2f | /scripts/tests/testun.py | c27e932c1c629b96ff2e6172d269c745a65806c8 | [
"MIT"
] | permissive | hermetique/6502-basic | b8fe2a91be06000d3954afd847731f5857cf3f16 | d4c360041bfa49427a506465e58bb0ef94beaa44 | refs/heads/main | 2023-05-05T08:51:20.007841 | 2021-05-13T20:07:04 | 2021-05-13T20:07:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,599 | py | # *****************************************************************************
# *****************************************************************************
#
# Name: testun.py
# Author: Paul Robson (paul@robsons.org.uk)
# Date: 27th February 2021
# Purpose: Unary test classes.
#
# ***************************... | [
"paul@robsons.org.uk"
] | paul@robsons.org.uk |
4cc1233b02198b48234e5d8f58af689954841b47 | c0ff9aea829261262cda457245742c28f38d6604 | /stru_cls_gt_personal_kfold.py | c1c896a0829f69e428d40918ac3c82f6e3c1eaa9 | [] | no_license | zsb87/foodwatch | bb337e68bd5523da78bb8c82c06585f4b1f15a14 | 89abb183da21249ce99c3cc9525e87ad47d5d050 | refs/heads/master | 2020-06-27T08:50:09.578739 | 2016-12-05T17:40:11 | 2016-12-05T17:40:11 | 74,527,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,795 | py | import os
import re
import csv
import matplotlib
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import datetime
import random
from sklearn import preprocessing
from sklearn import svm, neighbors, metrics, cross_validation, preprocessing
from sklearn.externals import joblib
from skl... | [
"noreply@github.com"
] | zsb87.noreply@github.com |
9e22550e6f18a4d4a351e5ad2167d5cbf66811ca | dd7f446eb5d64ce069a9f9b6ade3f69fc2412960 | /text_predictor.py | 4db5526b52e61c0e4f10c0749b28b84bad89138e | [] | no_license | fcgll520/Watermark-Text-Detection | 3563c331502ff24ac7e1c8cd2807faebb4051df8 | 1eb807d8b56509de1b38ae9fa53f90e2ab0b14a2 | refs/heads/master | 2020-04-25T02:03:38.385070 | 2018-05-28T10:22:36 | 2018-05-28T10:22:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,224 | py | import cv2
import numpy as np
import pytesseract
import os
from PIL import Image
# Path of working folder on Disk
#src_path = "E:/Lab/Python/Project/OCR/"
src_path = "TestImages"
def get_string(img_path):
# Read image with opencv
img = cv2.imread(img_path)
# Convert to gray
img = cv2.cvtColor(img, cv2... | [
"punit.kumar1661@gmail.com"
] | punit.kumar1661@gmail.com |
d23304d68276068928c0a8131eb48057ad7f20b5 | 814730d67d55751aca1b088e78a3be6491407fc7 | /Python_Basics/setExample.py | dcf3cd993b666340520075d82681250f28b67b48 | [] | no_license | ghanshyam30/Code_snippets | e4410a8bb9758419a7786f28d8f6c2b6c39b88f0 | 1d75eb52c9c9f945e96c371a44df47cc498da72f | refs/heads/master | 2021-12-14T14:38:16.656833 | 2021-12-12T10:11:39 | 2021-12-12T10:11:39 | 162,509,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 616 | py | '''
Problem statement - You have 2 strings.
You need to find- 1] String1 characters that are not in String2 2] vice versa
'''
string1 = "Geeks For Geeks"
string2 = "Geek"
set_1 = set(string1)
set_2 = set(string2)
print("Set1: ",set_1)
print("Set2: ",set_2)
print("======Set difference====")
# characters present in se... | [
"gbambale@avaya.com"
] | gbambale@avaya.com |
3a687fa00b9c704a4b36677a42ff1ffee5b42dbf | 61d943fddf915e1483a3c2c5f89eb03464556386 | /games/atomix/bat_belt.py | 7716b29e21e3d52741f8f9a6cd3947cf53a6a4bb | [
"WTFPL"
] | permissive | darkrecher/PuzzleSalad | 5fe5a3e0d1620ca78a4e2ada47b94c56da937c0e | 0c778b31db8b070bfb15c80501a976546a9496dc | refs/heads/master | 2021-01-12T11:15:20.124896 | 2020-05-14T16:00:53 | 2020-05-14T16:00:53 | 72,884,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,487 | py | # coding: utf-8
"""
Bat-belt. Tas de petites fonctions utiles partout.
"""
def enum(enumName, *listValueNames):
"""
Ma super fonction pour créer des type enums (comme en C++).
:Example:
CARROT_STATE = enum(
"CARROT_STATE", # il faut répéter le nom du type enum.
"GRAIN", ... | [
"recher_burp@yahoo.fr"
] | recher_burp@yahoo.fr |
67c797314b2ef6faf6bf816ba17bf37ff46adbcc | a2dd24c16fffdb86dc4b140e901a94eae74fab27 | /pygcam/xmlEditor.py | 491a7f58e395385c5f5832bc97745dde2a461c66 | [
"MIT"
] | permissive | danjtanner-EPA/pygcam | 30eef701424f5ac0c225b6ac178efa2f223c31c4 | 41eeb452137a12711ed0d60784408610589e69a5 | refs/heads/master | 2020-04-25T04:44:50.975279 | 2019-02-22T22:01:52 | 2019-02-22T22:01:52 | 172,107,343 | 0 | 0 | null | 2019-02-22T17:31:50 | 2019-02-22T17:31:50 | null | UTF-8 | Python | false | false | 71,173 | py | '''
.. Copyright (c) 2016 Richard Plevin
See the https://opensource.org/licenses/MIT for license details.
'''
#
# Facilities setting up / customizing GCAM project's XML files.
#
# Common variables and functions for manipulating XML files.
# Basic approach is to create a directory for each defined scenario,
# in wh... | [
"rich@plevin.com"
] | rich@plevin.com |
77bac63e5e9ca787741c3fbe55de2d61b8ee5a61 | d36d7215a624ff810fdaa40cba74d5e3f974bb92 | /poc/profiling/fibo_profile.py | 0f71e7cf90e88f9cd177361b1396deb89245d3e4 | [] | no_license | nboutin/PyEvol | 05c43ce6e7885d50160029f3e1e1c6861ec0a7e5 | 17f178bb1a19e7ac16f0c836676be21a0fe2ffb1 | refs/heads/master | 2020-06-18T02:34:07.546771 | 2019-08-10T19:36:38 | 2019-08-10T19:36:38 | 196,138,380 | 0 | 0 | null | 2019-07-10T05:39:19 | 2019-07-10T05:39:18 | null | UTF-8 | Python | false | false | 435 | py | '''
Created on 16 juil. 2019
@author: nboutin
'''
import pstats
from pstats import SortKey
if __name__ == '__main__':
p = pstats.Stats('fibo.cprof')
p.strip_dirs().sort_stats(-1).print_stats()
p.sort_stats(SortKey.NAME)
p.print_stats()
# what algorithms are taking time
p.sort_stats(SortKey.... | [
"boutwork@gmail.com"
] | boutwork@gmail.com |
62dcae19cb3492dc1e1d21ca702a9e415568041e | b98f824600c00343851917c646ed3430755e2eea | /inet/bin/inet_fingerprinttest | 24e3bf14900e6044422485819b9298964b2009fc | [] | no_license | ZitaoLi/tsn_omnetpp_nesting_rev | 7be3e15957a16b9d3071d6526e2a4d19e236e6e6 | 23ab3a2e9cffa5d01a5297547e7e8a71a66b60c8 | refs/heads/master | 2020-05-07T22:23:45.523901 | 2019-04-12T10:49:40 | 2019-04-12T10:49:40 | 180,943,408 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,689 | #!/usr/bin/env python
#
# Fingerprint-based regression test tool
#
# Accepts one or more CSV files with 6 columns: working directory,
# command to run, simulation time limit, expected fingerprint,
# expected result, tags.
# The program runs the simulations in the CSV files, and
# reports fingerprint mismatches as FAILe... | [
"494240799@qq.com"
] | 494240799@qq.com | |
a8334b8adc77f38c650e2979eff621348afb8ad7 | 1edd74c80fc97b8795cfe41fe69ec1f87af0148f | /src/eefig_learning/scripts/LPV_MPC_EEFIG.py | 2f84515d1cdb333dd522797611d6eac4ab074c69 | [] | no_license | shivamchaubey/eefig_autonomous_vehicle | 2c91d03579ce184a475fb302311306c23adfe42d | 32d07f55f8ccc2a107abff686c792931d5fb2891 | refs/heads/main | 2023-08-14T10:16:45.423315 | 2021-09-25T12:06:14 | 2021-09-25T12:06:14 | 410,260,196 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,823 | py | # Tools
import numpy as np
import warnings
# Imports
from lpv_mpc_eefig.common import EEFIG
from lpv_mpc_eefig.common import mdg
class LPV_MPC_EEFIG (EEFIG):
def __init__ (self, settings, configuration_file = None):
# super().__init__(settings) #python3
super(LPV_MPC_EEFIG, self).__init__(settin... | [
"shivam.chaubey1006@gmail.com"
] | shivam.chaubey1006@gmail.com |
3e627782b13d008610964fe7079a03449bd5ade7 | e11a8212fba5f6b4e5aa133653c28cf0799ab16f | /sum_double_warmup_problem.py | 5be215a348e0f2086885c2ed191a892ec5a2c250 | [] | no_license | felipecook/practice_problems | dfa984e7425c6a007a7f4576fe70287647d32d81 | 2b5e647c5828ffa9ab314cb85913d2e361121159 | refs/heads/master | 2022-08-31T04:59:40.208501 | 2020-05-21T16:14:49 | 2020-05-21T16:14:49 | 264,021,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | # Given two int values, return their sum.
# Unless the two values are the same, then return double their sum.
def sum_double(a, b):
if a == b:
return (a+b) * 2
else:
return a + b
| [
"felipepcook@gmail.com"
] | felipepcook@gmail.com |
afd12ce0366e2fc375ab00fe60774a98f2e13464 | 71d578606b4010100c7c2130a2c663f988c42131 | /faster_rcnn_3.5_cpu/network.py | 00b96effc871d68360bbf701658d34dbba10cd4d | [] | no_license | HK017/scripts | c8b07eb91a9d033a93efb4263ce3226f53f03c2b | c3df4d98c17e68d06f548ae39291e535eb00e7c6 | refs/heads/master | 2020-04-04T00:41:07.756766 | 2019-06-13T09:23:11 | 2019-06-13T09:23:11 | 155,659,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,173 | py | import tensorflow as tf
from utils import Conv_layer,Max_pooling,Global_average_pooling,Fc_layers,Flatten
def ResNet50(inputs, class_num, end_point='Average_pool/average_pooling', scope='ResNet50'):
end_points = {}
"""每一个stage_layer 为3,4,6,3 个Block"""
with tf.variable_scope(scope):
with tf.variab... | [
"kai.hou@yhouse.com"
] | kai.hou@yhouse.com |
57f3fb8e6a12c4000ca9f11756cad69aa5c084de | a29a37fc7f53ac0ac4c30663fc7cb742beb2286a | /pingdom_sync.py | 5e76fa5f68fdc34151cd0d95c7a88e0e53a7c261 | [] | no_license | emmettbutler/pingfast | 54748630a6af8331bbc0b624d3fd7e28b7c68260 | 45a0b22cc48ee41180d80cafeab8276c30a4763e | refs/heads/master | 2022-03-20T17:54:42.477461 | 2012-04-10T14:34:18 | 2012-04-10T14:34:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,745 | py | import pingdom
import settings
def primary_account_login():
return pingdom.Pingdom(
username=settings.PRIMARY_USERNAME,
password=settings.PRIMARY_PASSWORD,
appkey=settings.PRIMARY_APPKEY
)
def secondary_account_login():
return pingdom.Pingdom(
username=settings.SECONDARY_US... | [
"andrew@parsely.com"
] | andrew@parsely.com |
a30311f86fe86387605a24fd707f25f28eccb5ec | 26321a44bbc322370bc62ac43b9c634162d9ac84 | /django_hogun/songrequest/wsgi.py | 644932795875be54380fcee87c15e7daa95d28e9 | [
"MIT"
] | permissive | jisoo1170/song-request-app | 4e9be2d6d87ac39957b99725a1a659ae01b7eddd | b882d63beb907f0b04dcc2bab8a8225ddc1bcadf | refs/heads/master | 2020-08-18T00:21:00.695982 | 2018-11-01T18:00:38 | 2018-11-01T18:00:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | """
WSGI config for songrequest 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/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_... | [
"hogunhogun@naver.com"
] | hogunhogun@naver.com |
82eb72c1b5699a9cd0d87b1d913385f1c39fce3f | abad82a1f487c5ff2fb6a84059a665aa178275cb | /Codewars/8kyu/sum-without-highest-and-lowest-number/Python/test.py | b114137cb761a281ddf7f8f1076730201d46f413 | [
"MIT"
] | permissive | RevansChen/online-judge | 8ae55f136739a54f9c9640a967ec931425379507 | ad1b07fee7bd3c49418becccda904e17505f3018 | refs/heads/master | 2021-01-19T23:02:58.273081 | 2019-07-05T09:42:40 | 2019-07-05T09:42:40 | 88,911,035 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 611 | py | # Python - 3.6.0
Test.describe('Basic tests')
Test.it('None or Empty')
Test.assert_equals(sum_array(None), 0)
Test.assert_equals(sum_array([]), 0)
Test.it('Only one Element')
Test.assert_equals(sum_array([3]), 0)
Test.assert_equals(sum_array([-3]), 0)
Test.it('Only two Element')
Test.assert_equals(sum_array([3, 5]),... | [
"d79523@hotmail.com"
] | d79523@hotmail.com |
8c9d1d675ca0aa584d90ba612d4c6d1eb88d8962 | 26d7a50b479e58d73f61c7bcf2e70f912bf11303 | /src/utils/data.py | d7775866f226eefb60a30902af650fd87b5c8270 | [] | no_license | jakeparker/10-601-project | 3aa2fcf95f0a926e05ea6812da9c7889c43cd9c1 | 25245396f8d512173ed050225bcf6bf6af551420 | refs/heads/master | 2020-03-07T19:05:58.239076 | 2017-05-04T03:55:40 | 2017-05-04T03:55:40 | 127,661,900 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,063 | py | import os
import numpy as np
from scipy.io import loadmat
from keras.utils import np_utils
def get_filepath(dataset):
dirpath = os.path.join(dataset['io']['path'], dataset['io']['directory'])
train_filename = dataset['io']['train filename'] + dataset['io']['filetype']
test_filename = dataset['io']['test fi... | [
"jake.l.parker@gmail.com"
] | jake.l.parker@gmail.com |
106afed6936e5ba76a8b3f114a7d57fe8df2e595 | 0b953c73458679beeef3b95f366601c834cff9b4 | /Code Kata/counting no of lines in a paragraph.py | 15d30b5df189bf7784ea1c381021887b2eb7f202 | [] | no_license | Sravaniram/Python-Programming | 41531de40e547f0f461e77b88e4c0d562faa041c | f6f2a4e3a6274ecab2795062af8899c2a06c9dc1 | refs/heads/master | 2020-04-11T12:49:18.677561 | 2018-06-04T18:04:13 | 2018-06-04T18:04:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42 | py | a=raw_input()
a=a.split(".")
print len(a)
| [
"noreply@github.com"
] | Sravaniram.noreply@github.com |
bb5e0cd1e330a5c3fc527a836f672e1ff7f3e65e | 7c246374fa3f252b7efea7d3b95970b082d341b3 | /venv/Scripts/pip3-script.py | 573881d4351470b9f90e48b9f6511f7d930d9486 | [] | no_license | juancarloss9812/Codigos-phyton | 705a8713e32e1bb736b699f8f65f4ac767627008 | 74d27ed27ff6004f7ad9bbdc07ad2393fc1369c9 | refs/heads/master | 2020-08-05T15:59:28.008295 | 2019-10-03T14:53:42 | 2019-10-03T14:53:42 | 212,605,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | #!C:\Users\HP\Desktop\EjerciciosPhyton\ejercicio1\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', ... | [
"juancarloss@unicauca.edu.co"
] | juancarloss@unicauca.edu.co |
5bd4beb9fdcf81f0050f1943605d5cc13f2d2120 | 888ee3eafc8a2490809e7bf3621560103e270bd9 | /core/const.py | b54f6a29f2c7bd1f8ccb8443452efa9bae48e9f2 | [] | no_license | domodo2012/quandomo2020 | 0bde9fe5667b6b98a4b12b7c0c6f31751f51bd4b | a462cccfb9e86ac0ab6a7fedaeeb3592bfc5a1f6 | refs/heads/master | 2023-03-06T14:33:28.360350 | 2023-02-21T09:44:36 | 2023-02-21T09:44:36 | 309,451,082 | 3 | 4 | null | null | null | null | UTF-8 | Python | false | false | 4,479 | py | # -*- coding: utf-8 -*-
"""
常用的常量
"""
from enum import Enum
# 策略运行模式
class RunMode(Enum):
BACKTESTING = "backtesting"
LIVE = "live"
# 市场数据的周期级别/时间间隔
class Interval(Enum):
MIN = "1m"
HOUR = "1h"
DAILY = "d"
WEEKLY = "w"
# 除复权方式
class RightsAdjustment(Enum):
NONE = "none"
FROWARD = "... | [
"1111938@qq.com"
] | 1111938@qq.com |
b5f85c87ab85cc26d172997c4595f1d90bbe390d | e063e473a07ec4fdabfdf9e0674fd3d459b5367c | /plot-03-demo=interpret_hdphmm_params_and_run_viterbi.py | b29cb583e10cdb5c1bacf2e5e26a90189caf229a | [] | no_license | nakulgopalan/change_point_detection | 24a61e8093543dd8a31ef8bb5dc1bdb79cb3a114 | edc52cfab3f82efec8fd604fa91eebb3d5dfb8c5 | refs/heads/master | 2022-09-27T00:36:29.598453 | 2020-06-04T01:01:24 | 2020-06-04T01:01:24 | 192,130,565 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,014 | py | """
================================================================
Visualizing learned state sequences and transition probabilities
================================================================
Train a sticky HDP-HMM model on small motion capture data, then visualize the MAP state sequences under the estimated mo... | [
"nakulgopalan@gmail.com"
] | nakulgopalan@gmail.com |
512d168899da08511faff0bfaf433e661bdc72ac | ec4e94c8d2e57e25f179f73d613f70d0b56fee15 | /WorkFlow2/AB/AUGMENT/B.2/10000/qaz_train_10000_5/ocean_annealing.py | 3a244d679e24bf1e77634e6a167b9374a1d6863e | [] | no_license | whigg/susy_qa_interns_2020 | a352eec40e615a01e8a70bd0aefb01108a1a0200 | 986f2037b59fb69dc4ee11b07456da3df72d0da8 | refs/heads/master | 2023-01-01T20:10:09.508435 | 2020-10-28T21:25:23 | 2020-10-28T21:25:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,999 | py | ############################################################################
#11/07/2020 - WORKING
#train_size20000
#cutoff = 93
#2 folds
#AUGMENT
#Fix_variable = True
############################################################################
#Python imports
import numpy as np
from scipy.optimize import basinhoppin... | [
"hessel.timothee@gmail.com"
] | hessel.timothee@gmail.com |
38c86aa214abc8f836da92f539d0ab1091f34500 | 7be9944771b967d0802fd92d4373d15ad3a53d92 | /official/resnet/cifar10_download_and_extract.py | d9022117d042722ea0e6e29ed453da37a9ae5c56 | [
"Apache-2.0"
] | permissive | horsetmotiv/Single_Channel_object_detection_from_Google_API | ce85e14360aba0274047e5ec4fdabbfeff9dcd3b | de311f9607cf40e775c0fc837f22749a59c55800 | refs/heads/master | 2022-12-05T05:05:47.187961 | 2017-12-24T08:59:55 | 2017-12-24T08:59:55 | 111,869,378 | 1 | 2 | Apache-2.0 | 2022-11-18T11:53:59 | 2017-11-24T02:52:49 | Python | UTF-8 | Python | false | false | 2,039 | py | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"hd_chenwei@foxmail.com"
] | hd_chenwei@foxmail.com |
fe940ce2666cf609c7af074fa2aa6d565e20d8fe | 756fd530e6de9706bc1cddad8d9199054cc44319 | /app.py | 63cb0aa2299b5dc42106312275979d6b3e5e2b3e | [] | no_license | Rana-Tej-Singh/Dockerfile | 7471df7f627d47f2dbd5797e6ad8d6cf23c559c8 | 71b3dcc551398bf684e33f248dfa60b03ca6bb20 | refs/heads/master | 2021-04-17T19:05:09.322917 | 2020-03-23T15:34:12 | 2020-03-23T15:34:12 | 249,468,182 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,729 | py | #Part of a Dockerfile
#app.py && Dockerfile
from flask import Flask
from flask import render_template
import socket
import random
import os
import argparse
app = Flask(__name__)
color_codes = {
"red": "#e74c3c",
"green": "#16a085",
"blue": "#2980b9",
"blue2": "#30336b",
"pink": "#b... | [
"noreply@github.com"
] | Rana-Tej-Singh.noreply@github.com |
3c06eb6c67913b81335e806660b45c6df8246eff | 294fbc88da56700109c8b723f4da079cd85f4376 | /websockets/compliance/test_client.py | 382d06a05f0edecbc0530d398e7c5096c46fa64b | [
"MIT",
"BSD-3-Clause"
] | permissive | sirvan3tr/OmneePortalGOSH | 2e190f8df117b8ce6d617c746bb078aea08b1f3d | fdd318e85158d9031f92336a6013c794cb02f6f3 | refs/heads/master | 2022-12-09T12:48:07.505324 | 2019-08-13T18:50:56 | 2019-08-13T18:50:56 | 143,923,598 | 0 | 0 | MIT | 2022-12-08T02:33:51 | 2018-08-07T20:28:17 | Python | UTF-8 | Python | false | false | 1,530 | py | import json
import logging
import urllib.parse
import asyncio
import websockets
logging.basicConfig(level=logging.WARNING)
# Uncomment this line to make only websockets more verbose.
# logging.getLogger('websockets').setLevel(logging.DEBUG)
SERVER = 'ws://127.0.0.1:8642'
AGENT = 'websockets'
@asyncio.coroutine
... | [
"sirvan3tr@gmail.com"
] | sirvan3tr@gmail.com |
a756b56e890c28a5657fecb120bd476dc89666b8 | 064b8579d242dff116d5476d4fca00aa29623a39 | /fbpic/particles/injection/ballistic_before_plane.py | 19eb778b6ee50a3453ef1166b2d4af5493501299 | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | soerenjalas/fbpic | 3216f97fb1b8168135dbf0347ebd36c1aaaa28cb | fd8cc6f98e234bfc7ef4e60ad14d56dbca5436d6 | refs/heads/dev | 2021-07-18T20:14:00.255484 | 2019-07-15T17:35:20 | 2019-07-15T17:35:20 | 69,226,325 | 0 | 0 | NOASSERTION | 2019-02-01T09:51:59 | 2016-09-26T07:52:47 | Python | UTF-8 | Python | false | false | 2,142 | py | # Copyright 2017, FBPIC contributors
# Authors: Remi Lehe, Manuel Kirchen
# License: 3-Clause-BSD-LBNL
"""
This file is part of the Fourier-Bessel Particle-In-Cell code (FB-PIC)
It defines a class for particle injection "through a plane".
"""
from scipy.constants import c
class BallisticBeforePlane( object ):
"""
... | [
"remi.lehe@normalesup.org"
] | remi.lehe@normalesup.org |
733143b3f36644caa1b51f1a2d434c2d7a0f7319 | e9c1f6da8e228a2f4d81e2ffc652a6ff582e9d7c | /Second_Live/读取列表信息创建字典.py | afa55f58118840e764ea2d8d59a9697db679438b | [] | no_license | nickshaw0609/Luffycity_project | e8b8e32aaa1e9f13d6b291482f916e504e70a3ad | 59c407babaa51fde279e06be580ebcc68e2f116e | refs/heads/main | 2023-03-26T01:43:35.256440 | 2021-03-29T12:35:42 | 2021-03-29T12:35:42 | 347,565,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,441 | py | """
原文件形式:
Enclosure Device ID: 32
Slot Number: 1
Drive's postion: DiskGroup: 0, Span: 0, Arm: 0
Enclosure position: 0
Device Id: 0
WWN: 5000C5007272C288
Sequence Number: 2
Media Error Count: 0
Other Error Count: 0
Predictive Failure Count: 0
Last Predictive Failure Event Seq Number: 0
PD Type: SAS
Raw Size: 279.396 GB... | [
"1391323502@qq.com"
] | 1391323502@qq.com |
dd26ec48b8847c767fec300c62b9f73b158b81b7 | 321881dc2b85e3e20d8ff463014e542ff07e4879 | /setup.py | d182bfe2d033a9003df320d27b9a3877b31fac01 | [
"MIT"
] | permissive | mattmilten/TreeD | cc775191489d1e7c6ee2a15eb8eac19db85d50ed | 1d8517c0559c848f8ca92c621a6965e00f4e4607 | refs/heads/main | 2023-05-23T18:48:30.891964 | 2022-04-26T10:27:14 | 2022-04-26T10:27:14 | 134,833,506 | 19 | 3 | MIT | 2022-01-23T11:07:02 | 2018-05-25T09:17:20 | Python | UTF-8 | Python | false | false | 992 | py | import re, os
from setuptools import setup, find_packages
with open(os.path.join("src", "treed", "__init__.py")) as initfile:
(version,) = re.findall('__version__ = "(.*)"', initfile.read())
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
setup(
name="treed",
version... | [
"matthias.miltenberger@gmail.com"
] | matthias.miltenberger@gmail.com |
527483c784518735c1ca7699d78a3b71f405c863 | 1283b27ecb31d6c95351e2560af1b9de35bade68 | /Orientacao a Objetos/Classe Retangulo.py | 97d1fbbfe94c32a70ab52db750c475d0e15b2e1f | [] | no_license | Felipecard/Orientacao_a_Objetos_-POO | 151d71410c2edf0dce732f52dff3b57e3947313a | abc5335d4b15d365a2f14924b74c32b2af106e43 | refs/heads/master | 2023-04-19T11:09:01.225415 | 2021-05-06T01:05:18 | 2021-05-06T01:05:18 | 272,838,815 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,365 | py |
class Retangulo:
def __init__(self, comp, larg):
self.comp = comp
self.larg = larg
def muda_lados(self, muda_comp, muda_larg):
self.comp = muda_comp
self.larg = muda_larg
def valor_lados(self):
print(f'Os lados do Retangulo são: {self.comp} cm de comp e ... | [
"noreply@github.com"
] | Felipecard.noreply@github.com |
cd5433bc08728fb41dc6c435fa84de2143e5764b | 6a51fcb9348b85b16867e0ea4e889f78f25b712a | /problems/FINAL EXAM/41.py | bd88a607da3ef3b3a8748f529833341b866cd1db | [] | no_license | AudhootChavan/solved-problems-MITx-6.00.1x-edx | 1e06b97de3bb97ea7610f614ceb67aa561a0da71 | 5d1ef059db972d70155bb8f303a615fd41d2f55f | refs/heads/master | 2021-04-27T09:17:00.997150 | 2018-02-22T17:22:33 | 2018-02-22T17:22:33 | 122,510,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | class Person(object):
def __init__(self, name):
self.name = name
def say(self, stuff):
return self.name + ' says: ' + stuff
def __str__(self):
return self.name
class Lecturer(Person):
def lecture(self, stuff):
... | [
"noreply@github.com"
] | AudhootChavan.noreply@github.com |
824fc7b60812d6d5df07974f9588de2ef2a84fb9 | 39e799aa09d31b4a3dcc48a3b2ec17699506eb63 | /StackOverFlow Test.py | 1b0a8489360ba1873a77d459cb30562038198c5d | [] | no_license | raavcorp-intelligence/Raav-1.0 | 7d2d0109dfaae177ebaea92bf5493b8dfd25a647 | 31bbab8a468494dbb58420d77955d9d5fc79aa72 | refs/heads/master | 2020-05-14T20:17:16.208469 | 2019-10-09T13:47:17 | 2019-10-09T13:47:17 | 181,942,082 | 0 | 0 | null | 2019-10-09T13:47:18 | 2019-04-17T17:52:50 | Python | UTF-8 | Python | false | false | 164 | py | import os
import webbrowser
chrome_path = 'C:/Program Files (x86)/Google/Chrome/Application/chrome.exe %s'
webbrowser.get(chrome_path).open("raavcorp.com")
| [
"noreply@github.com"
] | raavcorp-intelligence.noreply@github.com |
aaf754f028f4426e8798cb218634726f7642940c | 1798ba59a187a8868e32b4d4f5f54ec81efbf807 | /devel/lib/python2.7/dist-packages/roborts_msgs/msg/_SupplierStatus.py | acd7808258d04ef98e87871718e3d2dd45bd1cd7 | [] | no_license | chalkchalk/fl1oth_ws | 60d17ee4d9206c436a221b82e2f92d0eedd78eb0 | 4c53588c129ad206ebc1354cc55ff6d2d88863d4 | refs/heads/master | 2022-12-11T11:15:58.773602 | 2020-09-13T04:04:24 | 2020-09-13T04:04:24 | 294,903,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,660 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from roborts_msgs/SupplierStatus.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class SupplierStatus(genpy.Message):
_md5sum = "81f3d032e85b689acf259876e6f8d051"
_ty... | [
"1261677461@qq.com"
] | 1261677461@qq.com |
abdc502d36c8b4623a5f79001810cd15d375cddc | eaa0ac20da4128ca48410d7e69da1aaca428fdd3 | /Listes/SinglyLinkedList.py | 1d74260244536783815487e4f8bb903389608191 | [] | no_license | seangrogan-archive/datastructures_class | 2eab48cdd6dbb413366060ed29aca72d5f57d4d4 | 80970b4f2dc5d63759f28bcda64fe6e09aa21b00 | refs/heads/master | 2020-03-29T03:47:44.704872 | 2019-10-17T22:44:38 | 2019-10-17T22:44:38 | 149,501,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,167 | py | from SinglyLinkedNode import SinglyLinkedNode
class SinglyLinkedList:
#implements the ADT List (List.py)
#uses the SinglyLinkedNode class (SinglyLinkedNode.py)
def __init__( self ):
self._head = None
self._last = None
self._size = 0
def __len__( self ):
return self._s... | [
"noreply@github.com"
] | seangrogan-archive.noreply@github.com |
a1ca2e34f9cfa3283e566ce9afa85b9d85628a7c | f9d64555b85c5b9ca577a90f0a92ad258f23f91f | /amazon/makeTopEdges.py | 50736ddb22befc2a0e9a6fcc07441056ded0dedc | [] | no_license | wchickering/cs399 | 055530e401d12edcd902a0c952ccf00a4ef2ee7e | 6f3325faa650d1af0e114d446f208a4ed58c33ca | refs/heads/master | 2021-01-22T09:26:45.686385 | 2015-07-21T01:23:34 | 2015-07-21T01:23:34 | 16,038,545 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,206 | py | #!/usr/local/bin/python
"""
Make csv containing product pairs for which we have the most information about
their similarity as per user-item collaborative filtering.
"""
from optparse import OptionParser
import sqlite3
import os
import csv
# params
outputFileTemplate = '%s.csv'
# db params
createSimilaritiesNumUser... | [
"chickering@cs.stanford.edu"
] | chickering@cs.stanford.edu |
854fb1fa949f34817d2d1677281dc24c585cb6a5 | 51f1e1ba45fd9dd82873a99ae893f866c8e52ad2 | /python/make_obs_index.py | 435d42c226f7553ace53b0d1651e678c943dc5c6 | [] | no_license | rjleveque/tohoku2011-paper2 | 7cede95649096da9a55dbc002c55def7f09f14b0 | 44f6c6afe4a00a4ab0e0a265a273e70ee41e2ff7 | refs/heads/master | 2020-05-03T23:32:01.496240 | 2017-02-02T16:39:33 | 2017-02-02T16:39:33 | 19,281,330 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,643 | py | """
Script to create index html files for viewing all the observation data.
"""
import os,sys,glob
import velocities as V
from gaugedirs import set_gauges
os.chdir("../Observations")
gaugenos, HAIdirs, rundirs = set_gauges()
index_file = 'index.html'
html = open(index_file,'w')
html.write("""
<html>
... | [
"rjl@uw.edu"
] | rjl@uw.edu |
27070c33757f27d7344a9e80d15cdd5b1599fced | 1e3dc39f7cd8b3a69d1530895ff91813c2e6a43a | /Game Arkan Python3/help.py | f47d0414ac86bb55274739fb58e7640b8da68027 | [] | no_license | georgy-n/python | 7f17444f41070a5abc7ba2c9b95c964d26d8f56e | e38615be69fae0a5712310c1b7313512d1929302 | refs/heads/master | 2021-09-16T22:29:41.152026 | 2018-06-25T13:40:28 | 2018-06-25T13:40:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | from threading import Timer
def hello():
print ("hello, world")
t = Timer(1, hello)
t.start() | [
"gosha3548@gmail.com"
] | gosha3548@gmail.com |
05a9dff263d9ed7e935ae30988c9a04b8f108294 | ab3e0ebc88754f03f9b28fa39055d7c3502a8a0e | /computer_guessing.py | fc40e8e349e8f8ed815e4d34b8b15fb67ebd16ba | [] | no_license | apheyhys/Python | 0dab047e8c318b75ccdf39c17ccd7aba51211a7a | 8301d0d8bee63c8458aa1efaa3a983d9e6eb9043 | refs/heads/master | 2021-08-16T22:08:32.891249 | 2017-11-20T11:39:33 | 2017-11-20T11:39:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,079 | py | #Программа пытается отгадать загадонное число
print("Добрый день! Я отгадаю любое число, которое вы загадали в диапазоне от 1 до 100")
tries = 1
number = 50
low = 1
high = 100
guess = 0
while True:
print("Это число ", number, "?")
guess = (input("Больше, меньше, угадал?\n"))
if guess == "Больше" or guess ==... | [
"apheyhys@gmail.com"
] | apheyhys@gmail.com |
5abb44b8a6cb1b7cb2955c03c67da586f2c5ab2d | ff2cff130a3ed0bb354cdb8b3f2fe0c85184585b | /sum_pi_window_CDS.py | e1be1b584481fefde3bb7271a1599008bf160b6f | [] | no_license | bioCKO/Ostrich_Z_polymorphism | 38e699cc806b530a1187e2f2af907a2500272c91 | 1234dd8d60f76359fd0dc189a6666be6ef710757 | refs/heads/master | 2020-07-30T08:32:40.612676 | 2019-06-14T11:34:12 | 2019-06-14T11:34:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,986 | py | #!/usr/bin/python
from __future__ import division
import sys
f1 = open(sys.argv[1], "r")
scaffold_order = ["superscaffold26", "superscaffold54", "superscaffold35", "superscaffold36", "superscaffold62", "superscaffold67", "superscaffold69-1", "superscaffold93", "superscaffold63", "superscaffold88", "superscaffold83", ... | [
"homap@rackham3.uppmax.uu.se"
] | homap@rackham3.uppmax.uu.se |
501506f493746ede91b66db7cad78e8be0a2ba23 | ab3cb316f9f10abfe7208b726670875de0b7d772 | /rdmo/projects/filters.py | 5478990d85dcad77f52ef30245de1099a68235dd | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-warranty-disclaimer",
"BSD-2-Clause"
] | permissive | hkrock/rdmo | 9e1e8222ec7368c9c1cca8924af079b6465e34de | 80bbd3b5749f48a918e9aa4549a96479bf665b93 | refs/heads/master | 2020-09-04T14:33:33.136791 | 2020-02-24T09:04:08 | 2020-02-24T09:04:08 | 219,756,770 | 0 | 0 | Apache-2.0 | 2019-11-05T14:36:51 | 2019-11-05T13:52:13 | null | UTF-8 | Python | false | false | 632 | py | from rest_framework.filters import BaseFilterBackend
from rdmo.domain.models import Attribute
class ValueFilterBackend(BaseFilterBackend):
def filter_queryset(self, request, queryset, view):
set_attribute = request.GET.get('set_attribute')
if set_attribute:
try:
attr... | [
"jklar@aip.de"
] | jklar@aip.de |
c090f5ff80dc662d91291d81c61d3fa00dd1ad64 | 62ba42e846b3ee9882ed5818402f9db99d881523 | /training/training_helper.py | 9232206ebe65e1f884c2050ab2a19a6db3b3d2c9 | [
"BSD-3-Clause"
] | permissive | agomez08/patrones_proyecto1 | 36cd43c3c32052625f96ce37521bd3a817275439 | 7d5fb626c76365acf8243ac4eb54338d9c429e94 | refs/heads/main | 2023-04-09T12:05:44.308389 | 2021-04-24T16:33:14 | 2021-04-24T16:33:14 | 349,795,598 | 0 | 0 | null | 2021-04-12T01:59:13 | 2021-03-20T17:44:08 | Jupyter Notebook | UTF-8 | Python | false | false | 7,620 | py | """This module implements helper functions to assist with the training process."""
import numpy as np
import torch
def update_total_corrects(target, predictions, class_correct_list, class_total_list):
"""Perform update on lists of total and correct predictions based on last run of model."""
# Compare predicti... | [
"agomez10010@gmail.com"
] | agomez10010@gmail.com |
646a0acfffa0d6a2d2486824e8da708f5a3191f0 | 1d78266ba83052ed16c1a3a2401c38e617301e60 | /inference.py | 0878f6171e6e5f9c1170def1daca7473ea1ccad4 | [] | no_license | christiankiesewetter/tf2_chatbot | e00d45d91fa91ed27d0bc20097964f182e16757d | 0b45abf4021b123a5821d0575017fc5729babd05 | refs/heads/main | 2023-04-15T01:36:47.085624 | 2021-04-29T08:51:47 | 2021-04-29T08:51:47 | 348,070,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,365 | py | # -*- coding: utf-8 -*-
import os
import tensorflow as tf
import pickle
from model import Encoder, Decoder
from preprocessing2 import preformat
import tensorflow_addons as tfa
from tensorflow.keras.preprocessing.sequence import pad_sequences
from tensorflow_addons.seq2seq import BasicDecoder, AttentionWrapper, Bahdanau... | [
"corkscrew.ki@gmail.com"
] | corkscrew.ki@gmail.com |
6f9d1391cf496c1d627ce0360a58a8f635112566 | 43b99b3c75b596583f37537ebf70a99bf13d640c | /rover_driver/nodes/rover_command.py | ea42baf9a2abcda93937e2d137a98f9c78d8b5f0 | [] | no_license | anliec/GTL_autonomiousRobotic | f7edddea9850058b024fb111fd0cc911a73b342a | d3770c73712d309f02d81443e7cf421a4bc518dd | refs/heads/master | 2021-09-13T09:05:05.267456 | 2018-04-27T13:11:25 | 2018-04-27T13:11:25 | 117,143,457 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,085 | py | #!/usr/bin/env python
import roslib;
roslib.load_manifest('rover_driver')
import rospy
from std_msgs.msg import Float64
from sensor_msgs.msg import JointState
from geometry_msgs.msg import Twist, Pose
from math import atan2, hypot, pi, cos, sin
import tf
import message_filters
import numpy
from numpy.linalg import pin... | [
"nsix@georgiatech-metz.fr"
] | nsix@georgiatech-metz.fr |
64a1c1a296f4dcf13bad2e935f769f610f9a5e1d | 9d102cd2d22c6bdad2ec455df0a85d9ffb9a0f5f | /clients/views.py | 6f6c8699eae658aaf6d4c86b83a6c71d22f2e46e | [] | no_license | dave-caputo/matmod | 6a9664a02be8ecf92ff4112bde174b9063422fbb | 441b947d669ae92c5f5f0d107deebd0fb26dcbef | refs/heads/master | 2021-08-17T17:41:14.244217 | 2019-05-24T20:23:23 | 2019-05-24T20:23:23 | 139,707,479 | 0 | 0 | null | 2021-06-10T17:36:13 | 2018-07-04T10:32:42 | Python | UTF-8 | Python | false | false | 1,609 | py | from django.contrib.auth.mixins import LoginRequiredMixin
from django.urls import reverse, reverse_lazy
from django.views import generic
from .forms import ClientForm
from .models import Client
class ClientCreateView(LoginRequiredMixin, generic.CreateView):
form_class = ClientForm
model = Client
template... | [
"davecaputo@hotmail.com"
] | davecaputo@hotmail.com |
c5602665fc89b52a000ff68ae6a0d88bfac337d6 | 933d52b6f7e982de026d7fcabf51b6e043b8e0cb | /06/17/dictionary.py | 1afa0a6e7c698a330b4266e8c5faa8284fbeb90d | [] | no_license | niuyaning/PythonProctice | 23733ec4c6255c681779c14c0b7572932f1107ca | 7637b3ae20694afafab0207ec243a9fccff60b0e | refs/heads/master | 2023-06-03T12:14:20.936682 | 2021-06-21T16:30:17 | 2021-06-21T16:30:17 | 279,471,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | #定义字典以及取值
dict = {"color":'red','points':5}
#获取key
print(dict.keys())
#获取值
print(dict.values())
#访问字典中的值
print(dict['color'])
| [
"Niu#19930819"
] | Niu#19930819 |
ee8e5076ebe154b1f70ce12971b35adfc2f95190 | 016f7c173e3de8c379786d3896b74961456ffa82 | /Autocoders/Python/src/fprime_ac/generators/writers/ImplHWriter.py | 0cb08ccd40bf0a90818fb292d95f061d046bdc0d | [
"Apache-2.0"
] | permissive | nodcah/fprime | 4299c14c7a9eff96868e99f8550986122ba2429b | d19cade2140231b4e0879b2f6ab4a62b25792dea | refs/heads/master | 2020-12-03T20:18:49.244510 | 2020-02-22T00:59:49 | 2020-02-22T00:59:49 | 231,472,301 | 0 | 0 | Apache-2.0 | 2020-02-22T00:59:51 | 2020-01-02T22:52:59 | null | UTF-8 | Python | false | false | 2,037 | py | #!/bin/env python
#===============================================================================
# NAME: ImplHWriter.py
#
# DESCRIPTION: A writer class for generating component implementation
# header files.
#
# AUTHOR: Jordan Ishii
# EMAIL: jordan.ishii@jpl.nasa.gov
# DATE CREATED : August 8, 2019
#
# Copyright 20... | [
"jishii@jpl.nasa.gov"
] | jishii@jpl.nasa.gov |
068c05ed5f8dc46f479acf2bfa78ee3916a7daaf | 098c13f4a3edd3aba879ab097a0d26904a63d8d4 | /headlines.py | 29f2a1f7cb653a869788382b91dbea2d7fed2cb1 | [] | no_license | kooltzh/headlines | b13158cd6b321fcf37305ac5ac9f9e59727ee9f1 | f76e5554199c308c416bd0db7992bbdbd97e296c | refs/heads/master | 2020-04-10T21:56:11.895678 | 2018-12-18T07:32:01 | 2018-12-18T07:32:01 | 161,311,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 727 | py | import feedparser
from flask import Flask
from flask import render_template
from flask import request
app = Flask(__name__)
RSS_FEEDS = {'bbc': 'http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml',
'abc': 'http://feeds.abcnews.com/abcnews/topstories',
'cnn': 'http://rss.cnn.... | [
"kooltzh@gmail.com"
] | kooltzh@gmail.com |
347d93084f1dc8f8135b5a156ffd05976db7f167 | 3bc75306737fe903553249e57657e2d2e3eaf7bc | /crawler_bulbapedia.py | 0999dede5ae9e70c41d4d3c48b1e7a59bb96dc97 | [] | no_license | ThiagoLira/pkm-ep-generator | 61d8847124c3f7b9f9f97528ecf16602238e2c69 | 8f88ee918e38ba86a7a0d8775e6778d23191a4f4 | refs/heads/master | 2023-04-06T23:14:58.153577 | 2019-12-05T16:08:57 | 2019-12-05T16:08:57 | 216,455,560 | 6 | 1 | null | 2023-03-24T23:19:13 | 2019-10-21T01:47:42 | Python | UTF-8 | Python | false | false | 2,137 | py | import requests,re
from bs4 import BeautifulSoup
import os.path
# skip these, as the crawler messes up it's text
problematic_episodes_list = ['AG120','XY124','DP048','DP120']
# We don't need this warning in the middle of our corpus hehe
str_warning = "This article does not yet meet the quality standards of Bulbapedi... | [
"thlira15@gmail.com"
] | thlira15@gmail.com |
ea923ea511391a51833ed29f1a4a3feb6e8d5795 | 130b2355289dfefc188d6465ae72e24783e7076f | /estate_management/estate_management/doctype/contract_breakdown/contract_breakdown.py | 802b262955fd47846d0314864037ba7dfa133e8c | [
"MIT"
] | permissive | brownharryb/estate_management | 3fe0e4d0c8229463f46aca2af83218769110630a | 27bfd1ea1856ca3f8988371a69b2fe13368b1899 | refs/heads/master | 2021-01-17T15:49:56.288997 | 2016-08-30T22:56:02 | 2016-08-30T22:56:02 | 66,996,783 | 0 | 3 | null | 2016-08-31T02:48:08 | 2016-08-31T02:48:08 | null | UTF-8 | Python | false | false | 261 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2015, Manqala and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
class ContractBreakdown(Document):
pass
| [
"chude.osiegbu@manqala.com"
] | chude.osiegbu@manqala.com |
50b608a288999c17ad8d1e709908ce57ad2def86 | dead1da1f4a6b40d746d28eb888aea00ebd734a0 | /Core/admin.py | 19bcd45feb9ed79b0d15532be6cb09a81eb2f3ac | [] | no_license | jamshi/django-formbuilder | 7437daa00cd608b6a539a13bd9932f63e17f571b | 65e97e7164527d3ec1ed10e8ebcccc4dd6356378 | refs/heads/master | 2021-01-22T00:52:29.901219 | 2017-09-02T18:55:00 | 2017-09-02T18:55:00 | 102,197,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118 | py | from django.contrib import admin
from .models import MyForms
# Register your models here.
admin.site.register(MyForms) | [
"jamshi.onnet@gmail.com"
] | jamshi.onnet@gmail.com |
2a1e4abd8fc88f0bbc1813bd1cc78d160eddd381 | 99d17ddba93db1105e8941b1b592d9d9e22864fb | /superset/explore/schemas.py | 457c99422a3a6ee05d7bfc0931fa3976cc4d979c | [
"Apache-2.0",
"OFL-1.1"
] | permissive | apache-superset/incubator-superset | f376dc15d6e2187d0b65a0dc5476d6c6c3378f21 | 0945d4a2f46667aebb9b93d0d7685215627ad237 | refs/heads/master | 2023-03-15T04:12:40.478792 | 2022-07-25T14:44:43 | 2022-07-25T14:44:43 | 146,225,581 | 21 | 20 | Apache-2.0 | 2023-03-13T16:00:14 | 2018-08-26T23:56:08 | TypeScript | UTF-8 | Python | false | false | 5,622 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# License ); you may not u... | [
"noreply@github.com"
] | apache-superset.noreply@github.com |
f00a10d6fd459080c0cf67787dcf21ebf3fb633a | a508e95a98a0637b83b29e3d265366b20065db73 | /CollegeProject/faculty/serializer.py | cd83ae9cb377c1c9aae55f59ee54fdc40a90f156 | [] | no_license | aparnabreddy/Django-practice | d2cea7a9dcf2d4dd2202ad5d680a7a8075e6264f | 02dda5293ae3a29a821ecd92d2ed2792bd824404 | refs/heads/master | 2023-07-13T07:42:20.224636 | 2021-08-25T17:36:04 | 2021-08-25T17:36:04 | 397,089,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | from rest_framework import serializers
from faculty.models import faculty
class facultySerializer(serializers.ModelSerializer):
class Meta:
model=faculty
fields=('faculty_code', 'name', 'department', 'address', 'mobilenumber', 'username', 'password') | [
"aparnabreddy26@gmail.com"
] | aparnabreddy26@gmail.com |
a88986e2c5ad76c7302d1f0f3ff5ad314edff837 | 6783b7f66e56e88161a6b395c0a039489ec1a94b | /ESPCN(YeongBean)/test_image.py | ccd23feac1e09ac4b336a21ae25d0fe45c31572d | [] | no_license | Dcom-KHU/2019-DeepLearning-SuperResolution | 25d1df54c269016fa823c10e37b7e78135550e18 | 796ec20781521449bf15c333ee1bebffc73a9b7f | refs/heads/master | 2020-04-17T16:20:40.138003 | 2019-03-01T03:53:05 | 2019-03-01T03:53:05 | 166,736,428 | 7 | 3 | null | 2019-03-01T03:53:06 | 2019-01-21T02:32:59 | Python | UTF-8 | Python | false | false | 1,923 | py | import argparse
import os
from os import listdir
import numpy as np
import torch
from PIL import Image
from torch.autograd import Variable
from torchvision.transforms import ToTensor
from tqdm import tqdm
from data_utils import is_image_file
from model import Net
if __name__ == "__main__":
parser = argparse.Argu... | [
"nogadahalf12@naver.com"
] | nogadahalf12@naver.com |
32f4feeeb0b49a89b0f88e4fa53d55868da0a579 | e9444c75691b0aaf9bb68c5c74cf39cd6257db89 | /repositories/repositories.py | 5442424fd896a0d13b763bd28e8f7224f8b1f4c3 | [] | no_license | DyegoMaas/weather-forecast | 82cef6b2460649cde57bb0f5443051d7721bee2e | a98d2a1671ec3d822b986a7bfed836cf822586c2 | refs/heads/master | 2022-12-15T19:08:56.631510 | 2019-03-05T11:23:48 | 2019-03-05T11:23:48 | 170,938,024 | 0 | 0 | null | 2022-12-08T13:46:18 | 2019-02-15T22:43:48 | JavaScript | UTF-8 | Python | false | false | 438 | py | from repositories.abc import JsonLinesRepository
class CitiesRepository(JsonLinesRepository):
def __init__(self):
super().__init__('cities.jsonl')
def add(self, city):
if self._is_city_saved_already(city.name):
return
super().add(city)
def _is_city_saved_already(sel... | [
"dyego.maas@gmail.com"
] | dyego.maas@gmail.com |
0d275fa0ee72fd7293b043388f01a5757cdae47b | 8fdd1256be0d06759def233a1e92347cdeeed7be | /pyoslc/vocabularies/data.py | 5387faa1fa6eba6588ab8db28e305a8f10e7e3e5 | [
"BSD-3-Clause"
] | permissive | jljohnson/pyoslc | 504776d9ec9ada54cf53f48e1346b3f369dae1e0 | 10e1895b0ea46fe2b256f991fc612678438ab072 | refs/heads/master | 2023-04-30T18:38:32.188430 | 2021-05-21T06:11:31 | 2021-05-21T06:11:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | from rdflib import URIRef
from rdflib.namespace import ClosedNamespace
OSLCData = ClosedNamespace(
uri=URIRef("http://open-services.net/ns/servicemanagement/1.0/"),
terms=[
# RDFS Classes in this namespace
# RDF Properties in this namespace
]
)
| [
"mario.carrasco@gmail.com"
] | mario.carrasco@gmail.com |
0d444bde55222ac364a5afc0e82a75edaf5e20d6 | 83de24182a7af33c43ee340b57755e73275149ae | /aliyun-python-sdk-sae/aliyunsdksae/request/v20190506/BindSlbRequest.py | 0de7751b0f73a44db5da405020a5aa2249dd06d8 | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-python-sdk | 4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f | 83fd547946fd6772cf26f338d9653f4316c81d3c | refs/heads/master | 2023-08-04T12:32:57.028821 | 2023-08-04T06:00:29 | 2023-08-04T06:00:29 | 39,558,861 | 1,080 | 721 | NOASSERTION | 2023-09-14T08:51:06 | 2015-07-23T09:39:45 | Python | UTF-8 | Python | false | false | 2,247 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
90aa15c9ea57c06a3eb3025848b1e1835f9898fa | 5f3fc418c6b66667062de361aff1be1115a5045a | /PSet7/finance/application.py | 1086036081cdbe517c67c613bb3802316bc502f1 | [] | no_license | georgelroberts/Course-Projects | fcd26b17063002d1f5c922ac901bd8f7b507794e | ea1e9ddadd9561ec360b6d98624c43c9ccd92b53 | refs/heads/master | 2023-07-19T22:03:19.354988 | 2017-03-05T10:57:11 | 2017-03-05T10:57:11 | 81,113,997 | 0 | 0 | null | 2023-07-13T11:34:04 | 2017-02-06T17:41:37 | C | UTF-8 | Python | false | false | 11,603 | py | from sql import SQL
from flask import Flask
from passlib.apps import custom_app_context as pwd_context
import os
from helpers import *
# configure application
app = Flask(__name__)
# ensure responses aren't cached
if app.config["DEBUG"]:
@app.after_request
def after_request(response):
response.header... | [
"georgelroberts@hotmail.com"
] | georgelroberts@hotmail.com |
23bab1390bf7112b2093362ebef06bbf34918d9c | ff7a8ed8afea953cb20e64005290f636d43a37b8 | /gui_view/wxpy_gui.py | eff5fedb5638d084cdf651b25f00ddcbaba05642 | [] | no_license | qxf323/ApkInstallTool | 32493bf41e300f532ef93d61935fc2c98d06e4e1 | 0a6522b4a9d0efb59c9561048526eeddb5a4b190 | refs/heads/master | 2021-01-01T17:30:26.633294 | 2016-11-11T17:23:06 | 2016-11-11T17:23:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,084 | py | # -*- coding=utf8 -*-
from gui_controller.packageController import PackageController
from gui_controller.apkController import ApkController
from gui_controller.deviceInfo import DeviceInfo
import easygui
import re
import time
import wx
'''
在导入模块的时候,一定要注意在文件夹同级或子集目录下都要有__init__.py文件
业务逻辑
1.首先是确认使用哪一个设备
2.在该设备上安装哪一个apk
... | [
"jayzhen_testing@163.com"
] | jayzhen_testing@163.com |
262372a9a6ec7b443fa7955eca2f632cefb1864f | 4fa5e1c64d38054d4de8136dade072fd1eb097c4 | /BaiduSpider/baidu/baidu/pipelines.py | 8c52bffa880d705e43413eecc2aaae59eb348c1a | [] | no_license | atanx/web_crawler | 1d88950ec496fce169f33813db2cecd53053bce3 | 2ad4f1988e50b6a3bc494a8445edbb4da767d32a | refs/heads/master | 2021-01-11T17:29:34.322770 | 2017-03-25T10:30:57 | 2017-03-25T10:30:57 | 79,782,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,123 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
class BaiduPipeline(object):
def __init__(self):
super(Baid... | [
"07jiangbin@163.com"
] | 07jiangbin@163.com |
aed1361eac2345b873f2d1f1c5129f646abfa7c5 | 41188a72facc51c65d0d58efe127f5e8c8811f5e | /剑指offer系列/剑指 Offer 04. 二维数组中的查找 LCOF/Solution.py | 339652115d85307f4cb36562a82571bf5f874407 | [
"MIT"
] | permissive | furutuki/LeetCodeSolution | 74ccebc8335125bbc4cbf1a76eb8d4281802f5b9 | 089d27af04bf81149251787409d1866c7c4390fb | refs/heads/master | 2022-10-31T08:46:15.124759 | 2022-10-25T02:57:54 | 2022-10-25T02:57:54 | 168,449,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 614 | py | from typing import List
class Solution:
def findNumberIn2DArray(self, matrix: List[List[int]], target: int) -> bool:
if not matrix:
return False
row = len(matrix)
col = len(matrix[0])
if row == 0 or col == 0:
return False
r = 0
c = col - 1... | [
"furutuki@foxmail.com"
] | furutuki@foxmail.com |
4a12aebfb18d823b39ae578ee0883c6e273bb18e | 9ce8761f56058af0be265e6bb37ae24f4472fda3 | /slack.py | 30a6bb35fab742ad8482f63e5170cd5965629168 | [] | no_license | Kunstmaan/docker-gitlab-dind | 23e76fff951bad323021f0faa0062d1510cf63f0 | f5effd6085a9bb48e288dd17fe09f1ce8331d0c9 | refs/heads/master | 2021-01-18T22:20:23.666443 | 2016-06-08T13:46:54 | 2016-06-08T13:46:54 | 53,861,214 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | import sys
from slacker import Slacker
token = sys.argv[1]
channel = sys.argv[2]
message = sys.argv[3]
slack = Slacker(token)
slack.chat.post_message(channel, message)
| [
"roderik.van.der.veer@kunstmaan.be"
] | roderik.van.der.veer@kunstmaan.be |
6264dd11ae7e0eb16614fe361ceb505785416fdc | 0266986446077c493033f23a1a26a9253763fd84 | /Interview Based/Equilibrium Point.py | 5a857b417992a31f84d2a3a308bf61818357835e | [
"MIT"
] | permissive | devangi2000/HacktoberFest2020-1 | 775139900265aa8516ce0eca36536b1e2e0167ff | b0545988b28443419053fafde5dede6d6c5aca83 | refs/heads/master | 2022-12-29T19:22:23.239317 | 2020-10-19T10:53:08 | 2020-10-19T10:53:08 | 305,351,252 | 0 | 0 | MIT | 2020-10-19T10:47:09 | 2020-10-19T10:47:08 | null | UTF-8 | Python | false | false | 1,416 | py | """ Given an array A of N positive numbers. The task is to find the first Equilibium Point in the array.
Equilibrium Point in an array is a position
such that the sum of elements before it is equal to the sum of elements after it.
Example 1:
Input:
N = 1
A[] = {1}
Output: 1
Explanation: Since its the only
element ... | [
"choudhuryabhishek76@gmail.com"
] | choudhuryabhishek76@gmail.com |
8c7fdeb7013a420c27f7521c42724715d80919a2 | 6f802e09cae7ed8f89a9c937fa75af36921c597c | /cmd/cmdset.py | e3443244d08bf3dd865b178633f7c650b6988714 | [] | no_license | JodeZer/gegimp | 653f2e609754135ef2d84b44e0b22f72dc26703b | 46a19fc57f1b9eb854731dd0d0051a9e63d07fd8 | refs/heads/master | 2020-08-30T18:17:59.282994 | 2019-11-13T06:37:56 | 2019-11-13T06:37:56 | 218,455,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,555 | py | import tempfile
import command
class CmdSet():
def __init__(self, infile, outfile):
self.cmds = []
self.infile = infile
self.outfile = outfile
self.suffix = infile[-4:]
def append(self, cmd):
self.cmds.append(cmd)
def __compact(self):
newcmd = []
a... | [
"jeffery1993@hotmail.com"
] | jeffery1993@hotmail.com |
ec213db897765b6d7b6ee100ebaab12c3b9d4276 | 9cc9994143d6de18b8b9cb7279a21129e6697682 | /crunchviz/wsgi.py | a10ce90b4fc6d2743bd26e5889537792b2fa6614 | [] | no_license | lebmatter/crunchviz | 5d9475af772d4a17ef76e1db1c17ae6e821b8566 | eb79ab9410c2586f58e6f112c7a3dde0348efab2 | refs/heads/master | 2021-06-07T03:03:55.521358 | 2016-10-16T06:25:49 | 2016-10-16T06:25:49 | 70,991,339 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | """
WSGI config for crunchviz 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/1.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SE... | [
"mmlabeeb@gmail.com"
] | mmlabeeb@gmail.com |
4f3f6bce1e2fcd480f861cbe4e4bd5dc4f5cf643 | 0c24f5f7e20c78cc5bccbbdadb4e45f3c633e798 | /divergence_all_lines_batch_folder.py | b85d3e0b3c3e11257151d61c8c0e178792dca42f | [
"MIT"
] | permissive | Similarities/HHG_divergence | 7597f3429c3fab64e719de4ec993fbf4118d46cc | cd1fa0e1655190f35dda19adacc2447f2d58fca0 | refs/heads/master | 2021-06-30T17:34:45.658750 | 2020-10-01T15:56:34 | 2020-10-01T15:56:34 | 175,637,403 | 0 | 0 | MIT | 2020-10-01T15:56:36 | 2019-03-14T14:23:37 | Python | UTF-8 | Python | false | false | 8,429 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Feb 19 16:54:54 2019
@author: similarities
"""
import matplotlib.pyplot as plt
import numpy as np
import os
class FwhmImageProcessing:
def __init__(self, filename, lambda_fundamental, maximum_harmonic, harmonic_number):
self.filename = filename
self.fil... | [
"j.braenzel@gmx.net"
] | j.braenzel@gmx.net |
e8ee1645f29484e6fd052512aa6e95da7d47cb99 | 577881a3eb187fbadcf0e0518511a91620227ee3 | /lesson4/less4_task5.py | e08e3f9a6a72ea060f2afa94add12f0501559476 | [] | no_license | Xuhen17/Python_Basic | aac9dbc09e55a9f6ac4afc47d37d5f2c27b458f6 | a491c66b6d57443983eb15c95f4d1bc9a68a8793 | refs/heads/master | 2023-03-08T02:55:55.667984 | 2021-02-26T10:39:32 | 2021-02-26T10:39:32 | 331,872,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 655 | py | # 5. Реализовать формирование списка, используя функцию range() и возможности генератора.
# В список должны войти четные числа от 100 до 1000 (включая границы).
# Необходимо получить результат вычисления произведения всех элементов списка.
# Подсказка: использовать функцию reduce().
from functools import reduce
def ... | [
"xuhen@yandex.ru"
] | xuhen@yandex.ru |
1dd46505106e1cd61a86faf06060ecdc00dc9955 | 37fef592f365194c28579f95abd222cc4e1243ae | /streamlit/venv/lib/python3.7/site-packages/matplotlib/axis.py | 10a6c7f747ba316643bf074012fb33b1acb91362 | [] | no_license | edimaudo/Python-projects | be61e0d3fff63fb7bd00513dbf1401e2c1822cfb | 85d54badf82a0b653587a02e99daf389df62e012 | refs/heads/master | 2023-04-07T03:26:23.259959 | 2023-03-24T12:03:03 | 2023-03-24T12:03:03 | 72,611,253 | 4 | 3 | null | 2022-10-31T18:10:41 | 2016-11-02T06:37:17 | null | UTF-8 | Python | false | false | 91,403 | py | """
Classes for the ticks and x and y axis.
"""
import datetime
import functools
import logging
import numpy as np
import matplotlib as mpl
from matplotlib import _api
import matplotlib.artist as martist
import matplotlib.cbook as cbook
import matplotlib.lines as mlines
import matplotlib.scale as mscale
import matpl... | [
"edimaudo@gmail.com"
] | edimaudo@gmail.com |
5da3f71feaeac4a7a571de67e65acb80eb2d2dde | a502e9070dfac3237537a4891d2a7e80132bd053 | /pages/urls.py | 2dc9c8e4f8f2065a9af7ea984ba35d90fa143ac8 | [] | no_license | frobledoruiz/altair_project | d89c63486e99da71ed1ac1b299f65d821694ed16 | 93ad742b4ccfc6786bcb714e46f8198b77c7424f | refs/heads/master | 2020-04-19T01:46:29.725275 | 2019-02-01T23:11:02 | 2019-02-01T23:11:02 | 167,881,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | from django.urls import path
from pages import views
urlpatterns = [
path('', views.index, name='index'),
]
| [
"frobledo.email@gmail.com"
] | frobledo.email@gmail.com |
6a311dfbbbe9624f0c9bfa5422aeef3bb2e41331 | d0ca2af0ab117f60a8b756b73b1fd857dbc34dc4 | /3b.py | 2ae5982f7840515ee75b099f3314d898c7e5469f | [] | no_license | k3rainboe/pr | badc69791d170ea46864d175aeb7f7a9aa1af161 | d606b1758fe058cb37a3f25d7b29361bf5637ccb | refs/heads/master | 2020-08-18T03:41:28.941838 | 2019-10-31T19:01:37 | 2019-10-31T19:01:37 | 215,744,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,376 | py | import random
import time
arr=[]
send=[]
recv=[]
recv_ack=[]
def input1():
n=int(input('enter no. of bits for sequence :'))
m=2**n
fsai=int(m/2)
t=0
for i in range(0,m):
arr.append(t)
t=(t+1)%m
for i in range(0,fsai):
send.append(arr[i])
recv.append(arr[i])
recv_ack.append('n')
sender(fsai,m)
def sen... | [
"noreply@github.com"
] | k3rainboe.noreply@github.com |
edbe29bfe51002fe53683c262c5b9ebe9709db64 | 9bab378be677cf83a4a70a109af0c58e655503dc | /apps/pages/views.py | f6ffea58e8550bdcf6b18e0ccaedb8b4f94daae4 | [
"MIT"
] | permissive | MeirKriheli/debian.org.il | a13de0d7fb829bf3035b4b8dd4c01560861544d9 | 90bff955c38f7e6e51647463c6a59701302de8e1 | refs/heads/master | 2021-11-09T17:39:42.247589 | 2021-11-02T11:36:04 | 2021-11-02T11:36:04 | 90,523,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | from django.views.generic import DetailView
from django.shortcuts import get_object_or_404
from .models import Page
class PageView(DetailView):
model = Page
def get_object(self, queryset=None):
slug = self.kwargs.get('slug')
if not slug:
slug = 'index'
return get_object... | [
"mkriheli@gmail.com"
] | mkriheli@gmail.com |
aca3235daa0b017f6399339b3cb5fee47e6737cb | 68cab239fc647184d8bd53651bb02303fcf3f26c | /samples/routing/routing_utils.py | 60a09360c303bcafdb7d5cd9fa9c932ad250aad5 | [] | no_license | omnetpp/omnetpp | 0c91b230bf937701de95f42f2383318ed39add07 | e42d35366ec3e354a528b17d0fe15ef1f0ac7b55 | refs/heads/master | 2023-08-19T22:10:18.311271 | 2023-08-18T09:18:23 | 2023-08-18T13:18:11 | 160,219,599 | 507 | 160 | null | 2023-09-05T18:48:09 | 2018-12-03T16:18:31 | C | UTF-8 | Python | false | false | 6,612 | py | import cppyy
from omnetpp.runtime import *
def readDataFile(fileName):
with open(fileName, "r") as f:
return [float(s) for s in f.read().split(",")]
def build_networkx_graph(g, nodeType, namePrefix="node", parentModule=None, gateName=None, **channelArgs):
"""
Builds a network using the topology pr... | [
"andras@omnetpp.org"
] | andras@omnetpp.org |
757de3e1477d9ee15b1e69143bad027615a786d3 | 25b430d7c67aa351b032ad962c73b836dfd19fe5 | /prac_05/emails.py | db53967fe453f38151782767b6a57082cd66e0b4 | [] | no_license | brightlee93/cp1404practicals | 0bc2283886b2bf956e8a0e8b254da25ad6aad771 | d7a83237a9b6364d55bf01e9a6b4e81b5c19ada3 | refs/heads/master | 2023-01-05T14:46:03.808118 | 2020-11-01T08:28:47 | 2020-11-01T08:28:47 | 287,468,002 | 0 | 0 | null | 2020-09-24T08:30:50 | 2020-08-14T07:09:23 | Python | UTF-8 | Python | false | false | 823 | py | email_to_name = {}
email = input("Email: ")
while email != "":
name, domain = email.split("@")
if "." in name:
first_name, last_name = name.split(".")
name = first_name + " " + last_name
name_check = input("Is your name {0}? (Y/n) ".format(name.title())).lower()
while name_check == "y" o... | [
"brightlee93@gmail.com"
] | brightlee93@gmail.com |
3a8bf29d67ceedcabc0e6c47775fd97a8aa47577 | c46eeb35b31cb248e30bccf923602a95d6accf67 | /visualization.py | fc214579057cff63212e8ec479f421fe6951e1e5 | [] | no_license | chunyuanY/MusicGenre | d209c725b04712ae89d11253a92d1f740d474b03 | 592a1fe48579b4bc51368626910385a07607db37 | refs/heads/master | 2022-02-13T09:13:16.455123 | 2022-01-24T03:08:03 | 2022-01-24T03:08:03 | 220,592,257 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,989 | py | import pickle
import matplotlib.pyplot as plt
import numpy as np
import seaborn as sns
from sklearn.preprocessing import Normalizer
path = "./data/douban_music/"
composer_dic = pickle.load(open(path + "composer_dic.pkl", mode='rb'))
audience_dic = pickle.load(open(path + "audience_dic.pkl", mode='rb'))
X_composer = ... | [
"chunyuanY93@gmail.com"
] | chunyuanY93@gmail.com |
ef33156702d8c126d2a1d8362deb1499e2c197fa | de17634e6b149d5828c1c78f7f5f5e1f6c17c4d0 | /nnvm/tvm/python/tvm/stmt.py | 1f5fea11a4720e53ffb88878adc1a3087e753d40 | [
"Apache-2.0",
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | starimpact/mxnet_v1.0.0 | e135cc9e4c2711314d03cf1281a72b755f53144e | fcd6f7398ef811c3f8b01e7c9c16fb25c8d202bd | refs/heads/bv1.0.0 | 2022-11-10T09:09:11.966942 | 2018-07-13T04:59:30 | 2018-07-13T04:59:30 | 120,399,107 | 8 | 4 | Apache-2.0 | 2022-11-02T20:24:32 | 2018-02-06T03:54:35 | C++ | UTF-8 | Python | false | false | 1,302 | py | """Statement AST Node in TVM.
User do not need to deal with AST node directly.
But they can be helpful for developer to do quick proptyping.
While not displayed in the document and python file.
Each statement node have subfields that can be visited from python side.
.. code-block:: python
x = tvm.var("n")
a ... | [
"mingzhang@deepglint.com"
] | mingzhang@deepglint.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.