blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | 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 684
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 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
beeca659ff51bc042b5dba74c432078393ae48e9 | 654027faced78f5b32d3ec44dea2e68084498473 | /13/manage.py | 4a51569e11f19e913c4c4a4f5152bd3f230255f1 | [
"MIT"
] | permissive | Alexanderklau/Flask-Blog | b06bfc0f8f626500d51cb26248f0c2f7df59b362 | 0720329d95fd5e18e2b89509d7481aea0f451175 | refs/heads/master | 2021-01-13T11:33:17.867891 | 2018-02-28T14:38:36 | 2018-02-28T14:38:36 | 68,429,782 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 820 | py | #!/usr/bin/env python
import os
from app import create_app, db
from app.models import User, Follow, Role, Permission, Post, Comment
from flask_script import Manager, Shell
from flask_migrate import Migrate, MigrateCommand
app = create_app(os.getenv('FLASK_CONFIG') or 'default')
manager = Manager(app)
migrate = Migrate... | [
"429095816@qq.com"
] | 429095816@qq.com |
26395364d1115d36d633995a2fb3258075b139b8 | 427fc475050ee8257b866118857fb46e2e956cd9 | /crm-poc/apps/organisation/views.py | c642010e247beb45a52b29dd3b97360ba604e3ac | [] | no_license | uktrade/crm-poc | 2cf20744e4ed5af002e4e319cb5e575683f97d15 | 9085b7bc9e58eb89971a05fa6e6cb60212d4381e | refs/heads/master | 2020-04-10T22:05:58.650229 | 2016-03-18T15:14:34 | 2016-03-18T15:14:34 | 50,911,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,288 | py | from django.views.generic import ListView
from django.views.generic.edit import CreateView, UpdateView
from .models import Organisation
class OrganisationMixin(object):
model = Organisation
context_object_name = 'organisation'
class Index(OrganisationMixin, ListView):
context_object_name = 'organisatio... | [
"marcofucci@gmail.com"
] | marcofucci@gmail.com |
5410127dbceacd2f5fdd1489f0477e2c7d235da7 | ece0b9273677246ec49809cc7c49eaa570064422 | /pbd/debug.py | ce3f14b3b99314aee1759b5740f0512e9703b24d | [
"Apache-2.0"
] | permissive | matthagy/pbd | da6cda1bf9fb68c6368f8d6c5221a8eedde3d4bf | 787a80065291ac76b3b14f25d9e8cd59f0cf9c10 | refs/heads/master | 2020-12-02T05:09:16.853890 | 2013-04-03T18:29:03 | 2013-04-03T18:29:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,467 | py | ##-*- Mode: python -*-
## debug.py - Simple debugging helpers
## --------------------------------------------------------------------------
## Copyright (C) 2009, Matthew Hagy (hagy@gatech.edu)
## All rights reserved.
##
## This program is free software: you can redistribute it and/or modify
## it under the terms of th... | [
"hagy@gatech.edu"
] | hagy@gatech.edu |
7d20bb4e8355662716e959b3bdf53c7b6650ef31 | ea2e9d82c5efedc86bdc263c28fd17d0b6973a68 | /website/addons/osfstorage/decorators.py | 7b2013769619c95b7d64591f1ad7906015a07d83 | [
"Apache-2.0",
"MIT",
"BSD-3-Clause"
] | permissive | zkraime/osf.io | 12f0732172d7978859b9cd5ed9d0b20d5912c220 | ff07cf7daeb27744e28ba4d171d3fce29f806cd3 | refs/heads/develop | 2019-07-11T17:41:58.040297 | 2015-06-04T20:27:31 | 2015-06-04T20:27:31 | 35,900,852 | 0 | 0 | null | 2015-05-19T18:32:41 | 2015-05-19T18:32:41 | null | UTF-8 | Python | false | false | 2,749 | py | import httplib
import functools
from modularodm.exceptions import NoResultsFound
from modularodm.storage.base import KeyExistsException
from framework.auth.decorators import must_be_signed
from framework.exceptions import HTTPError
from website.models import User
from website.models import Node
from website.addons.o... | [
"chriskseto@gmail.com"
] | chriskseto@gmail.com |
3e9f015ba4395731fb5382c1dd3fbdb03034db30 | ce8c59b637d024424d331c1b2b9df3bd9d91c5a5 | /tasks_24/solutions/24-79.py | cb89c50bd0608ec28db8b6ba8e4f31f60f1abbc8 | [] | no_license | htmlprogrammist/kege-2021 | 7ca9155724e8041b807405d23391fb6503a7589b | 4fa3cd9a0cc4213bbdf4576894953452b256b56e | refs/heads/master | 2023-06-03T19:56:09.160795 | 2021-06-25T09:07:31 | 2021-06-25T09:07:31 | 308,915,777 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | # Автор: А.Н. Носкин
with open( "k8-3.txt" ) as F:
s = F.readline()
Max = 0 #макс длина цепочки разных символов
k = 1 #длина текущей цепочки разных символов
for i in range(len(s)-1):
if s[i] != s[i+1]:
k += 1
if k > Max:
Max = k
else:
k = 1 # появилась новая цепочка
print(Max)
... | [
"badmaeve2511@gmail.com"
] | badmaeve2511@gmail.com |
96dcbae570ddc87616d500399a57c83dd50299a9 | aa47206048aada590afe342f9d4e5db07f21edb6 | /Analysis/Simulink/create_csv_course.py | 999974dabb199e532cc00f26440fc613cdf4a954 | [] | no_license | cps-kwane/3d-crane | 2e7bbeb156c92af80b4fe9ade2d2621032e158c7 | f6c1e850b92313ab2ab2143517b3acb439fae95f | refs/heads/master | 2021-09-03T18:00:42.591934 | 2018-01-10T22:44:46 | 2018-01-10T22:44:46 | 109,188,685 | 0 | 1 | null | 2017-11-10T14:35:50 | 2017-11-01T22:03:07 | Python | UTF-8 | Python | false | false | 1,264 | py | #!/bin/env python
# Author: Philippos Papaphilippou
import random
N = 50
barrier = 3
targets, obstacles = (3, '1'), (3, '-1')
# This function avoids overlapping boundaries
def neighbour_in_bound(x, y, array):
for j in (-1, 0, 1):
for i in (-1, 0, 1):
if (j, i) == (1, 0):
conti... | [
"vincentzhaorz@gmail.com"
] | vincentzhaorz@gmail.com |
f2ad3d30dd881a8de0ddfe45f3cc7807e3169d39 | d916d9f15b039abe4f824d58714e0c3277939711 | /Inheritance/inheritance_exercise/players_and_monsters_03/project/soul_master.py | 45de7ce24fe831e89daa18a36c783983b45e2f99 | [] | no_license | jesalshah14/SoftUni-Python-OOP-February-2021 | a641e31e7144785cd05b0b6324348570ff90d7d7 | 45a584316951bca4d1bcfe35861f140d9fedf62a | refs/heads/main | 2023-04-09T20:15:32.764633 | 2021-04-18T15:29:57 | 2021-04-18T15:29:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | from Inheritance.inheritance_exercise.players_and_monsters_03.project.dark_wizard import DarkWizard
# from project.dark_wizard import DarkWizard
class SoulMaster(DarkWizard):
pass
| [
"eng.antonov@gmail.com"
] | eng.antonov@gmail.com |
99ee3ef38532840bdf67aad23a7746c54ad53418 | 59c9f68b36f77f7353515843224d011eb245b7cd | /app/r2d2/TempHumiMonitor.py | e9a0a2b51ef9b7bfd16afb24c85a8c4886d140ac | [] | no_license | KoiosChen/gamefast | 2b256385a46f14a2777822934dd8fdc75b636cd0 | a165af94ce7925f81177563928fba92868769e2e | refs/heads/master | 2023-08-04T15:02:50.688910 | 2020-03-16T05:17:40 | 2020-03-16T05:17:40 | 246,481,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,073 | py | import requests
from ..models import temp_threshold, humi_threshold
from ..MyModule import AlarmPolicy
from .. import db, logger
def get_485_device_list():
get_account_info_url = 'http://172.20.0.7:9001/Device/API_GetDevList'
r = requests.get(get_account_info_url)
return r.json()
def monitor_temp_humi_4... | [
"chjz1226@gmail.com"
] | chjz1226@gmail.com |
51b4982f4b259017b0bf2898dd3aaacfdbd63453 | 5419f9706d17fd088b6facea88ca7e5f489efe0a | /python/federatedml/util/consts.py | 0452075084fc6b63f6a65a9b662ba7165d481bff | [
"Apache-2.0"
] | permissive | sf-fl/federatedML | f686ca5a97f31b8ea458646851eb52e0d0dfe01f | 6cb48525d662ba1bad12702622f2b43f67da67cf | refs/heads/master | 2023-07-16T21:09:02.109514 | 2021-09-02T01:39:52 | 2021-09-02T01:39:52 | 311,584,205 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,920 | py | #
# Copyright 2019 The FATE 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 appli... | [
"35332465+windwithmind@users.noreply.github.com"
] | 35332465+windwithmind@users.noreply.github.com |
1ccafc68c80165a00b8de53d3ac008553cf995c7 | 9bcc73f037edb3a1a19c21f1b2fe1f3c543fb718 | /famille/utils/context_processors.py | 6cddb035d7a92e680caf83b8691d6c972db8ac8e | [
"Apache-2.0"
] | permissive | huguesmayolle/famille | c8bee2aeaae9e8107a9c3d76573cf6c280cdecab | c7b3399e88a6922cadc0c7c9f2ff7447e7c95377 | refs/heads/master | 2021-01-09T06:28:21.078260 | 2014-06-24T21:32:00 | 2014-06-24T21:32:00 | 14,694,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 546 | py | from famille.models import has_user_related, get_user_related
from famille.utils import get_context
def related_user(request):
"""
A context processor that returns the related user from a request.user.
:param request: the request to be processed
"""
if not has_user_related(request.user):
... | [
"mvergerdelbove@work4labs.com"
] | mvergerdelbove@work4labs.com |
03e1d6eac31b96efb6df9c40e28b8cf198a59152 | eae8d7821f73233ef52f916b2d22b392fa056086 | /python_one_learn/review_month01/code02.py | 19c5635cdc10d587143fa1fa4761b7328fb1a669 | [] | no_license | Wuskysong/python01_- | cad75d90dab945cc85719dcb1bb138ce81b813e5 | 4cef60bc5812524f7331e0f97f68c41db7082db7 | refs/heads/master | 2020-06-21T23:59:20.121964 | 2019-07-18T12:54:40 | 2019-07-18T12:54:40 | 197,584,017 | 1 | 0 | null | 2019-07-18T12:44:26 | 2019-07-18T12:37:03 | Python | UTF-8 | Python | false | false | 484 | py | """
可变和不可变类型的传参
"""
def fun01(a):
# 修改局部变量,对外部没有影响
a = 1
g01 = 100
g02 = [1, 2, 3]
fun01(g02)
print(g02)
def fun02(a):
# 通过变量,修改指向的对象,对外部有影响.
a[0] = "改了"
g03 = [1, 2, 3]
fun02(g03)
print(g03)
class MyClass01:
pass
def fun03(p):
# 通过变量,修改指向的对象,对外部有影响.
p.a = "改了"
c01 = MyClas... | [
"865997553@qq.com"
] | 865997553@qq.com |
8726afcefd902d3db187dca9e6d0c84afbc040e3 | cb9f816c672a55d0e6b0109f368358a6276a11d9 | /noseapp/manage/commands.py | c10cdd806b3f6b750b074b718c62c9d4c38d561f | [] | no_license | noseapp/noseapp | ef3d361f6a7505d822b05c2dc6d40c662b3ba285 | 7c3e2e38b6b9fe027847a466615f7d72ed4ea334 | refs/heads/master | 2020-05-17T20:12:14.213873 | 2015-10-06T14:47:30 | 2015-10-06T14:47:30 | 30,531,499 | 3 | 2 | null | 2015-10-01T13:44:16 | 2015-02-09T10:54:26 | Python | UTF-8 | Python | false | false | 1,680 | py | # -*- coding: utf-8 -*-
"""
NoseApp management.
Command line interface:
noseapp-manage <command name>, <command args>, <command kwargs> [options]
Example:
noseapp-manage command argument1 argument2 argument3=value
"""
import sys
import inspect
from noseapp.utils import pyv
from noseapp.manage import funcs
... | [
"mikhail.trifonov@corp.mail.ru"
] | mikhail.trifonov@corp.mail.ru |
1f2bbfad93e3d34082efca4b0fe398b17c726d7d | e66fa131cff76fa3fe70e7b6649fa1332159c781 | /ch10/dataCompression.py | 37e03a2f4f7ce1859e94ce9a0bc8be217d67ba30 | [] | no_license | chc1129/python_tutorial | c6d97c6671a7952d8a7b838ccb8aa3c352fa6881 | 2f8b389731bafbda73c766c095d1eaadb0f99a1c | refs/heads/main | 2023-08-24T07:00:43.424652 | 2021-10-28T16:07:57 | 2021-10-28T16:07:57 | 341,532,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | import zlib
s = b'witch which has which witches wrist watch'
print(len(s))
t = zlib.compress(s)
print(len(t))
print(zlib.decompress(t))
print(zlib.crc32(s))
| [
"chc1129@gmail.com"
] | chc1129@gmail.com |
27ac3b1b39fb5478685afb81af0df2e9ab235380 | c1983282fb2e5d5f13c091c2b236d919864b6aee | /antiddosclient/common/i18n.py | 1f616b2b8ea18e1f63e295fd023586c766f446c0 | [
"Apache-2.0"
] | permissive | AlifFerdiansyah/OpenStackClient_AntiDDOS | ed5755b77d1d1baea2545142ab0fd18d94903851 | f23324528ea8a2c6122340d4b4f68ea5b86977b4 | refs/heads/master | 2021-06-20T21:17:39.014462 | 2017-07-29T09:28:20 | 2017-07-29T09:28:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,095 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# 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... | [
"iampurse@vip.qq.com"
] | iampurse@vip.qq.com |
83243bad7d84021c2e75370c706b42bbb63ed826 | aca61459a3cfccbb1cecc6de61dcf5ec958cc067 | /app/models/tournament_model.py | d8f25f968087c268a8c036d015d5d087e4073d61 | [] | no_license | Arnaud290/OC_P4 | 5c81467198b0e58ddc72db9fcc40078bcb6d8368 | 0e906ee6d94372b8ff2acc0067008c7ace9eb51a | refs/heads/master | 2023-02-25T04:10:11.139202 | 2021-01-29T09:58:40 | 2021-01-29T09:58:40 | 325,297,098 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | """Tournament model module"""
import time
from .model import Model
from .. import services
class TournamentModel(Model):
"""Tournament model class"""
def __init__(self, **attributs):
self.id = services.get_model_service.GetModelService.get_number('TournamentModel')
self.number = self.id + 1
... | [
"arnaud.manach@gmail.com"
] | arnaud.manach@gmail.com |
d4c044391933cffc1e34867ae561d2344834adfa | 16b8bd0e0fe3a11274131a2ddc0d1e1761d4b06c | /servoce_inc.py | 6b3a473a4be1044f133c218f06b8a2db8357197a | [] | no_license | CadQuery/servoce | 99f2f5bcb461c5be4a1a09cac4177caebb394edf | 7703ccc94471995b69bee3b19c4a89638fd73ee0 | refs/heads/master | 2020-06-10T12:29:54.861425 | 2019-06-09T07:15:12 | 2019-06-09T07:15:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,444 | py | #!/usr/bin/env python3
# coding: utf-8
import licant
from licant.cxx_modules import shared_library
from licant.modules import module, submodule
import licant.libs
import os
full_list = [
"TKBinL",
"TKBin",
"TKBinTObj",
"TKBinXCAF",
"TKBool",
"TKBO",
"TKBRep",
"TKCAF ",
"TKCDF ",
... | [
"mirmikns@yandex.ru"
] | mirmikns@yandex.ru |
0140e8040424c9c0d7e39ac613b907898c4ab960 | 183e4126b2fdb9c4276a504ff3ace42f4fbcdb16 | /I семестр/Програмування (Python)/Лабораторні/Тарасенко 8222/лабы(22 вар)/4/lab4(1).py | a161860379849802a3323b52b5d35a62ba412754 | [] | no_license | Computer-engineering-FICT/Computer-engineering-FICT | ab625e2ca421af8bcaff74f0d37ac1f7d363f203 | 80b64b43d2254e15338060aa4a6d946e8bd43424 | refs/heads/master | 2023-08-10T08:02:34.873229 | 2019-06-22T22:06:19 | 2019-06-22T22:06:19 | 193,206,403 | 3 | 0 | null | 2023-07-22T09:01:05 | 2019-06-22T07:41:22 | HTML | UTF-8 | Python | false | false | 998 | py | import random
a = int(input("Сгенерировать последовательность чисел от: " ))
b = int(input("до: "))
c = int(input("Количество элементов:"))
if a < b:
arr = [random.randint(a, b) for i in range(c)]
print(arr)
arr1, arr2, arr3 = [], [], []
for i in arr:
if i <0:
arr1.append(i... | [
"mazanyan027@gmail.com"
] | mazanyan027@gmail.com |
9af772defd348981f33e838874b692bce34cd428 | d9a22d4dcdfc0c28176c0e8afd784b30d275597e | /test_suite/unit_tests/_lib/_dispersion/test_tap03.py | 1f40b3941942e2e25a40df5eb2635e1511ea734b | [] | no_license | jlec/relax | fda1b3ff77be0afc21c2e6cc52348ae7635cd07a | c317326ddeacd1a1c608128769676899daeae531 | refs/heads/master | 2016-09-08T00:27:57.256090 | 2015-02-10T12:24:55 | 2015-02-10T12:24:55 | 30,596,131 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,607 | py | ###############################################################################
# #
# Copyright (C) 2014 Edward d'Auvergne #
# Copyright (C) 2014 Troels E. Linnet #
... | [
"bugman@b7916896-f9f9-0310-9fe5-b3996d8957d5"
] | bugman@b7916896-f9f9-0310-9fe5-b3996d8957d5 |
935c6a69850c889f23439b10b768b1bd5883991e | d1727e38bc0fa4b6b6f03fa278174c3f8716fa48 | /runtests.py | 1c2da2a01905ac9e8507ac6809e25f44146cf8ef | [] | no_license | STSAB/python-iracing-api | 379ee03c82fb71efa7729b389acebdcaa3776bd4 | 6b586c1825b3299b973301569938c0aa6f5f1bd4 | refs/heads/master | 2021-01-12T21:45:15.447906 | 2014-10-24T12:09:34 | 2014-10-24T12:09:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | import doctest
import glob
import os
files = glob.glob(os.path.join('tests','*.txt'))
opts = (doctest.REPORT_ONLY_FIRST_FAILURE|doctest.ELLIPSIS|
doctest.NORMALIZE_WHITESPACE)
for f in files:
doctest.testfile(f, optionflags=opts) | [
"rwallhead@gmail.com"
] | rwallhead@gmail.com |
56977036d13fcddab3c4c3fdff1d062487cf8cc4 | cdfc34d924bffd95689a52b916a38895ff4cdb43 | /searches/jump_search.py | c01437fa3cce2c77b774ea57910f6fd6d71da817 | [
"MIT"
] | permissive | caofanCPU/Python | b0c7fe956e6d4afa425643c54f10a028017a8abd | 57d290918fd3f6af1e5c0940aed95642f931d32e | refs/heads/master | 2023-08-31T11:47:37.690836 | 2021-05-07T08:15:25 | 2021-05-07T08:15:25 | 191,086,888 | 3 | 0 | MIT | 2020-08-28T19:22:17 | 2019-06-10T03:02:09 | Python | UTF-8 | Python | false | false | 623 | py | from __future__ import print_function
import math
def jump_search(arr, x):
n = len(arr)
step = int(math.floor(math.sqrt(n)))
prev = 0
while arr[min(step, n) - 1] < x:
prev = step
step += int(math.floor(math.sqrt(n)))
if prev >= n:
return -1
while arr[prev] < x... | [
"caofan@huitongjy.com"
] | caofan@huitongjy.com |
ff6c1eb61c5fb6e133476b58a0fd5c14835847ea | f65f204e6d36e4791e80fabce36b793d1e10c52a | /modana/modana/settings.py | 640d080b29312ee88b99c53baee47e9ec5f0e008 | [] | no_license | sharad23/beedrill | 948516bb676393a21f795e5a2d8c6b2502d85b70 | 3bdcf07b4d0ff023cd15b5201521c0170089dd74 | refs/heads/master | 2020-03-20T20:03:30.257748 | 2018-06-17T16:23:23 | 2018-06-17T16:23:23 | 137,668,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,333 | py | """
Django settings for modana project.
Generated by 'django-admin startproject' using Django 2.0.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
# Bu... | [
"you@example.com"
] | you@example.com |
b39ec78258ec83df4cceb63edcc0f73497f69c1e | c2fb6846d5b932928854cfd194d95c79c723f04c | /python/coursera_python/WESLEYAN/week3/COURSERA/week_3/t_3.py | 45aba452c689e297d2bb6198fe3b63214d99bb48 | [
"MIT"
] | permissive | Jimut123/code-backup | ef90ccec9fb6483bb6dae0aa6a1f1cc2b8802d59 | 8d4c16b9e960d352a7775786ea60290b29b30143 | refs/heads/master | 2022-12-07T04:10:59.604922 | 2021-04-28T10:22:19 | 2021-04-28T10:22:19 | 156,666,404 | 9 | 5 | MIT | 2022-12-02T20:27:22 | 2018-11-08T07:22:48 | Jupyter Notebook | UTF-8 | Python | false | false | 388 | py | def problem3_3(month, day, year):
mon_t = ("","January","February","March","April","May","June","July","August","September","October","November","December")
date = mon_t[month]+" "+str(day)+", "+str(year)
print(date)
#while (1):
# mon = int(input("Enter the month in number :"))
# day = int(input("Enter the day :"))... | [
"jimutbahanpal@yahoo.com"
] | jimutbahanpal@yahoo.com |
8c799d7b141d757363daf3b9205be75817235af6 | 09e5cfe06e437989a2ccf2aeecb9c73eb998a36c | /modules/cctbx_project/cctbx/web/asu_gallery/guide_to_notation.py | c87eca87f6c6e78fec573f692366f0a3d9bf66d2 | [
"BSD-3-Clause",
"BSD-3-Clause-LBNL"
] | permissive | jorgediazjr/dials-dev20191018 | b81b19653624cee39207b7cefb8dfcb2e99b79eb | 77d66c719b5746f37af51ad593e2941ed6fbba17 | refs/heads/master | 2020-08-21T02:48:54.719532 | 2020-01-25T01:41:37 | 2020-01-25T01:41:37 | 216,089,955 | 0 | 1 | BSD-3-Clause | 2020-01-25T01:41:39 | 2019-10-18T19:03:17 | Python | UTF-8 | Python | false | false | 3,203 | py | from __future__ import absolute_import, division, print_function
from cctbx.web.asu_gallery import web_links
from cctbx.web.asu_gallery import html_head_title
import sys
def write_html(f=None):
if (f is None): f = sys.stdout
iucrcompcomm_jul2003 = web_links.iucrcompcomm_jul2003
title = "ASU Gallery - Guide to no... | [
"jorge7soccer@gmail.com"
] | jorge7soccer@gmail.com |
d6a61f44fa30893048cc798c6234fd8157abcfaf | 03f8dca3bc3dcbe767d43dcde89b154497581a8f | /setup.py | e74e623167004e06d5191b7bdb11f3facfc2072f | [
"MIT"
] | permissive | gopigrip7/opentc | 45b837559255917675aff68cfa8e20d4b02c492d | df78cc7f342331ed6d19a8a3ee85892cb0adeedd | refs/heads/master | 2021-01-19T04:32:20.563722 | 2017-04-04T21:47:04 | 2017-04-04T21:47:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,315 | py | from setuptools import setup, find_packages
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except ImportError:
long_description = open('README.md').read()
__version__ = ""
exec(open('opentc/version.py').read())
setup(
name='opentc',
version=__version__,
descripti... | [
"cahya.wirawan@gmail.com"
] | cahya.wirawan@gmail.com |
a76ef8d7add5e370c13353f397aeb4c8408bd678 | 94ed2113af11ba8b716fb959c5ac0a32c5549c18 | /tests/journal.pkg/error_loop.py | 1e92bd7a317fdf6432ed85eb1dce9a56295ecbb4 | [
"BSD-3-Clause"
] | permissive | avalentino/pyre | 85ba21388514dc8c206d5136760e23b39aba1cae | 7e1f0287eb7eba1c6d1ef385e5160079283ac363 | refs/heads/main | 2023-03-23T04:58:02.903369 | 2021-03-09T17:37:11 | 2021-03-09T17:37:11 | 347,723,195 | 0 | 0 | NOASSERTION | 2021-03-14T18:43:34 | 2021-03-14T18:43:33 | null | UTF-8 | Python | false | false | 1,066 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
#
# michael a.g. aïvázis <michael.aivazis@para-sim.com>
# (c) 1998-2021 all rights reserved
def test():
"""
Verify that repeated access to the same channel does not accumulate extraneous material
"""
# get the trash can
from journal.Trash import Tras... | [
"michael.aivazis@para-sim.com"
] | michael.aivazis@para-sim.com |
088fb49d2af4c69f4aeb97d0d48fdd598fd2b742 | 28e02e334f7a17076a9a2cca94aa2573cf485f25 | /mininet/wifiMeshRouting.py | 4275c62ef85ba3d2030cd61106aa81117153b52f | [] | no_license | abiri/mininet-wifi-old | 3d4a9fe31f87bb4afa554a5c35e656f1030ee6d2 | 8b22b9b5305447f389b90b640eb4e7db36807ee4 | refs/heads/master | 2021-05-13T16:52:32.772179 | 2018-01-09T15:24:14 | 2018-01-09T15:24:14 | 116,802,376 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,601 | py | """
author: Ramon Fontes (ramonrf@dca.fee.unicamp.br)
ramonfontes.com
"""
from mininet.wifiChannel import channelParameters
class listNodes (object):
nodesX = []
nodesY = []
ssid_ID = 0
@classmethod
def clearList(self):
del self.nodesX[:]
del self.nodesY[:]
@classmet... | [
"ramonreisfontes@gmail.com"
] | ramonreisfontes@gmail.com |
04650fc1aa287102a18010f8d0ea370ef6d03f52 | 5218af1c8b2e49af7ff37ef1294bf4eb3301487a | /nltk_app/translate_app.py | 785e9057f369681be4bcac09f64c3bfc9875fa2b | [] | no_license | sealire/python-ai | e35e807e06609ceb913b31f5456ade5f3d3d78a5 | 56791446b38837ca4e3b46985be0e4527faf3669 | refs/heads/master | 2020-04-02T20:06:18.761958 | 2019-03-03T14:49:31 | 2019-03-03T14:49:31 | 154,758,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | from translate import Translator
translator = Translator(from_lang="English", to_lang="Chinese")
translation = translator.translate("I am Chinese!")
print(translation)
| [
"leesia@aliyun.com"
] | leesia@aliyun.com |
14f335df5b329107d4d2f825514ec6935232f8e4 | 812098c9998172d884934249a012b66f55e27a37 | /pystore/utils.py | 7e14c193dc85d6f9d704485220f1bb23320ae47d | [
"Apache-2.0"
] | permissive | alexanu/pystore | 7c684d4fb29ad7f32f383675abd0ea10850dee60 | 1b27f36b687276e33eaede6b8e0fbefbd1c40fc6 | refs/heads/master | 2020-05-02T16:58:59.821492 | 2019-03-23T09:38:02 | 2019-03-23T09:38:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,054 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
#
# PyStore: Flat-file datastore for timeseries data
# https://github.com/ranaroussi/pystore
#
# Copyright 2018-2019 Ran Aroussi
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may ... | [
"ran@aroussi.com"
] | ran@aroussi.com |
9b979927d0d234b44bb03d93c864c78558e9b5c8 | 9e3bc25a9cf4ddfb4e75cd47d44746b0e27d87e7 | /backend/taxi_profile/migrations/0001_initial.py | 4cd96601b0688f1c8ca1bb1999e9cf16db288d96 | [] | no_license | crowdbotics-apps/app1-25157 | 2d266a908a016c24209f61af93c95c365793f1ec | 3875d95394ce7149b4a56446e6ee057d5985790a | refs/heads/master | 2023-03-22T14:39:34.553880 | 2021-03-21T06:40:17 | 2021-03-21T06:40:17 | 349,919,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,582 | py | # Generated by Django 2.2.19 on 2021-03-21 06:39
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
op... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
2385c8b34d2132d5e268788e16ed2fe4351ccd44 | 4892b326dfd98d9513ba583868b1298c8a4e276c | /examples/00_mnist.py | 80134a0ed353baefddd4d6f18d27b49ff080aa35 | [
"MIT"
] | permissive | MeNicefellow/cockpit | 019640a610b05c46426d35eb9e6c8d49a3d970c7 | 5bd5ab3cda03eda0b0bf276f29d5c28b83d70b06 | refs/heads/master | 2023-01-23T06:59:43.329922 | 2020-11-24T07:56:03 | 2020-11-24T07:56:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,456 | py | """Example: Training Loop using Cockpit."""
import torch
from examples_utils import CNN, MNISTData, create_logpath, evaluate
from cockpit import Cockpit
train_loader, test_loader = MNISTData()
model = CNN()
lossfunc = torch.nn.CrossEntropyLoss(reduction="mean")
individual_lossfunc = torch.nn.CrossEntropyLoss(reducti... | [
"Anonymous"
] | Anonymous |
ca5ee44e34edc9f2e765abe6bc49dec5d3bd2df9 | 1bd3076902117867ec048210905195ba2aaaaa6b | /exercise/leetcode/python_src/by2017_Sep/Leet300.py | 38bc0ce75cc6ff67f2574c6ea77818dd405c054d | [] | no_license | SS4G/AlgorithmTraining | d75987929f1f86cd5735bc146e86b76c7747a1ab | 7a1c3aba65f338f6e11afd2864dabd2b26142b6c | refs/heads/master | 2021-01-17T20:54:31.120884 | 2020-06-03T15:04:10 | 2020-06-03T15:04:10 | 84,150,587 | 2 | 0 | null | 2017-10-19T11:50:38 | 2017-03-07T03:33:04 | Python | UTF-8 | Python | false | false | 556 | py | class Solution(object):
def lengthOfLIS(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
if len(nums) <= 1:
return len(nums)
records = [0, ] * len(nums)
for i in range(len(nums)):
records[i] = 1
for j in range(0, i + ... | [
"ziheng_song@126.com"
] | ziheng_song@126.com |
3a5cb3006a949915606100e4a32e1ce31ae7dd66 | cf8be80fe9d7acfae03d86430d1c8ff8d22a8655 | /ribosome/nvim/api/util.py | 7609a6aba77db28440d77a6308b604e009c7f512 | [
"MIT"
] | permissive | tek/ribosome-py | 4da2faf3f7c2d646c5a90bf73e81ec12bd360d38 | 8bd22e549ddff1ee893d6e3a0bfba123a09e96c6 | refs/heads/master | 2022-12-21T22:46:49.075358 | 2020-08-31T16:22:51 | 2020-08-31T16:22:51 | 66,086,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,307 | py | import time
from typing import Callable, TypeVar, Type, Any, List as TList, Tuple
from msgpack import ExtType
from amino import Either, Left, Right, List, Lists, Try, do, Maybe, Do, Just, Nothing
from amino.json import decode_json
from amino.json.decoder import decode_json_type
from ribosome.nvim.io.compute import N... | [
"torstenschmits@gmail.com"
] | torstenschmits@gmail.com |
34ab4872dd3cb75f9d593601a4e00117282c6113 | 187a6558f3c7cb6234164677a2bda2e73c26eaaf | /jdcloud_sdk/services/rdts/apis/CreateMigrationJobRequest.py | b4608f3b50899f5700602dcf6d030716859201d6 | [
"Apache-2.0"
] | permissive | jdcloud-api/jdcloud-sdk-python | 4d2db584acc2620b7a866af82d21658cdd7cc227 | 3d1c50ed9117304d3b77a21babe899f939ae91cd | refs/heads/master | 2023-09-04T02:51:08.335168 | 2023-08-30T12:00:25 | 2023-08-30T12:00:25 | 126,276,169 | 18 | 36 | Apache-2.0 | 2023-09-07T06:54:49 | 2018-03-22T03:47:02 | Python | UTF-8 | Python | false | false | 1,492 | py | # coding=utf8
# Copyright 2018 JDCLOUD.COM
#
# 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 ... | [
"jdcloud-api@jd.com"
] | jdcloud-api@jd.com |
fe02558fc2ac6d89e0702d829a4430bf4274423f | f6fcf9df2cb975ed2f3082f1551ed6c44cc1843d | /BOJ/1987 알파벳.py | c570251c3d6500e7ef0918d168192909e30415e2 | [] | no_license | dlrgy22/TIL | dad41bd6522d0b71547208020a4bc5cce27244c9 | 334eee9c7c7a645ac3f9d156291d6fd1200b5965 | refs/heads/master | 2023-03-21T23:54:30.834642 | 2021-03-14T01:25:03 | 2021-03-14T01:25:03 | 276,774,274 | 0 | 0 | null | 2020-12-27T03:34:24 | 2020-07-03T00:52:55 | Python | UTF-8 | Python | false | false | 821 | py | import sys
def DFS(location, count):
global result
if result < count:
result = count
move = [[1, 0], [0, 1], [-1, 0], [0, -1]]
for move_element in move:
loc_r = location[0] + move_element[0]
loc_c = location[1] + move_element[1]
if loc_r >= 0 and loc_r < r and loc_c >= 0... | [
"dlrgy22@gmail.com"
] | dlrgy22@gmail.com |
49c5430e592a6e90990dfab68ab827ea62dca7c6 | 1db33af663496851e103ac88a6e380d7bf988964 | /6-camera-nav/camera_nav.py | 54b1fdaf2cc9cb80d9861eccdf3f98e8bdd84f54 | [
"MIT"
] | permissive | dannystaple/magpi-low-cost-wheeled-robots | 1d92a561932c3b928cf464f6de201fcb8af74fc4 | cffd7901cd7de7cd131804e856ae51a2efbc4a5a | refs/heads/master | 2021-12-10T21:02:55.324136 | 2021-11-20T20:09:33 | 2021-11-20T20:09:33 | 201,036,439 | 7 | 2 | null | 2021-11-20T20:09:34 | 2019-08-07T11:26:30 | Python | UTF-8 | Python | false | false | 643 | py | import gpiozero
from find_contours import setup_camera
from find_contours import get_saturated_contours
robot = gpiozero.Robot(left=(27, 17), right=(24, 23))
camera, capture_buffer = setup_camera()
for raw in camera.capture_continuous(capture_buffer, format="bgr"):
image = raw.array
masked, contours, found_co... | [
"danny@orionrobots.co.uk"
] | danny@orionrobots.co.uk |
318f8ee56262039271284d098bbf284f94427b3e | dc6a37efdacf41babc0049d8ed8fb724fde4ca4b | /textmining/__init__.py | 64e822ee7db8a106418dbf99b93d28ef503030b7 | [] | no_license | imjwpak/tensor_Test | 345ea238daa520acd62a7bc1af561c0d5ea286fa | a359ba4700251cfab3b031b3ade36cc5fc643207 | refs/heads/master | 2020-07-02T14:36:55.514042 | 2019-08-10T09:12:53 | 2019-08-10T09:12:53 | 201,559,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | from textmining.model import SamsungReport
if __name__ == '__main__':
sam = SamsungReport()
#sam.download()
#print(sam.extract_noun())
#print(sam.read_stopword())
#print(sam.find_freq())
print(sam.draw_wordcloud())
| [
"imjwpak83@naver.com"
] | imjwpak83@naver.com |
3cadd8d57aad5033120a065e96beb541323f6c79 | f6fee77dcd2677ea2ec71e953d7d14e6f4d25636 | /targets/nexys_video/net.py | 415c2717bb509c40b2da33b62285670b4f79b322 | [
"BSD-2-Clause",
"MIT"
] | permissive | stffrdhrn/HDMI2USB-litex-firmware | 2094bb4ff143cb2c45fba9f951ef82b134480915 | 2c43d00cf4e8870e1bd20b7cf693fe232c51d2d3 | refs/heads/master | 2021-05-07T23:08:41.773335 | 2017-10-14T02:42:06 | 2017-10-14T02:42:06 | 107,408,309 | 1 | 0 | null | 2017-10-18T12:56:18 | 2017-10-18T12:56:18 | null | UTF-8 | Python | false | false | 2,241 | py | from litex.gen.fhdl.specials import Keep
from litex.soc.integration.soc_core import mem_decoder
from litex.soc.integration.soc_sdram import *
from liteeth.core.mac import LiteEthMAC
from gateware.s6rgmii import LiteEthPHYRGMII
from targets.utils import csr_map_update
from targets.nexys_video.base import SoC as BaseS... | [
"mithro@mithis.com"
] | mithro@mithis.com |
1469e5d703c3dff576c482fa00f317bcebc0c767 | a8123a86db99b9365b10ba76dd509d58caa7bc10 | /python/practice/start_again/2021/04092021/exercise_variables.py | d4c3a3e3772628801303276b5c11861b02cc0b06 | [] | no_license | smohapatra1/scripting | c0404081da8a10e92e7c7baa8b540acc16540e77 | 3628c9109204ad98231ae8ee92b6bfa6b27e93cd | refs/heads/master | 2023-08-22T20:49:50.156979 | 2023-08-22T20:43:03 | 2023-08-22T20:43:03 | 147,619,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | #Write a program that switches the values stored in the variables a and b
a = input("Enter the value a: ")
b = input("Enter the value b: ")
print ("New Value of a : ", b )
print ("New Value of b : ", a ) | [
"samarendra.mohapatra121@gmail.com"
] | samarendra.mohapatra121@gmail.com |
212cafe7ded7d011dba304f8593f18395ecf130f | 66b1f3c3e57f53e1404d6e17c4acc850173a531d | /Python/Django/bet_app/betting_app/football/migrations/0001_initial.py | 96c3a0e26c55684a06b8e5a840b632981f2ecaf4 | [] | no_license | bMedarski/SoftUni | ca4d6891b3bbe7b03aad5960d2f4af5479fd8bbd | 62cd9cb84b0826e3381c991882a4cdc27d94f8ab | refs/heads/master | 2021-06-08T17:32:39.282975 | 2020-02-04T11:57:08 | 2020-02-04T11:57:08 | 67,947,148 | 6 | 3 | null | 2021-05-06T20:35:42 | 2016-09-11T18:31:02 | Python | UTF-8 | Python | false | false | 1,431 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-10-04 13:50
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Bet',
... | [
"boyamedarski@mail.bg"
] | boyamedarski@mail.bg |
3a3cb45e60580a67e79aae438e863f6ff7d36e0e | 04141e207a7cc88a58245fa412b2a841901d504f | /menu.media.mit.edu/socialmenu/analysis/iphone_winner.py | ad305437b096cfe318f4db7216b2f78d2d4bd23a | [] | no_license | mwidner/socialsaver | bbda2cefea2b8f74d2bbbad2705e616a88a5d582 | 3b6a1d8f0522735e462f9d2bf6ef12a999d8cc85 | refs/heads/master | 2021-01-15T20:29:35.288919 | 2012-04-16T18:27:30 | 2012-04-16T18:27:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,923 | py | from common.models import OTNUser, Friends, Winner
from legals.models import Order
from django.db.models import Count
from random import sample
from django.core.mail import send_mail
from presurvey.models import *
winners = []
participants = 0
for u in OTNUser.objects.all():
orders = Order.objects.filter(user = u... | [
"kwan@media.mit.edu"
] | kwan@media.mit.edu |
c189657134ba1b83db7aa3ea14d158424e586e34 | 36943501114b8c6bfd59d248507140956a0d7c29 | /NTSclustering/transmission/visualise3.py | ae9fdd2a59b914fc712e51976b4eb0d80c811790 | [] | no_license | Constancellc/Demand-Model | 9c45ea1a9d9779c9da093f221a5851b168a45eac | e261371b7aa9aea113617a7cbe8176a5c5d9591c | refs/heads/master | 2021-01-13T10:32:40.243847 | 2020-08-21T09:49:14 | 2020-08-21T09:49:14 | 76,476,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,560 | py | import csv
import matplotlib.pyplot as plt
import random
import numpy as np
import copy
from mpl_toolkits.basemap import Basemap
from matplotlib import cm
import pandapower
import pandapower.networks as pn
import pandapower.plotting as pplt
net = pn.GBreducednetwork()
m = Basemap(llcrnrlon=-7,llcrnrlat=49.9,urcrnrlon... | [
"constancellc@gmail.com"
] | constancellc@gmail.com |
bf3cf9a9aa7abc19510976844b76892133be5ea9 | fb2cc597f319380d228fc15c4008760a82203687 | /var/spack/repos/builtin/packages/r-progressr/package.py | 964c3ded764bbde230edb12d8fc69e880b584a71 | [
"Apache-2.0",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"LGPL-2.1-only"
] | permissive | JayjeetAtGithub/spack | c41b5debcbe139abb2eab626210505b7f930d637 | 6c2df00443a2cd092446c7d84431ae37e64e4296 | refs/heads/develop | 2023-03-21T02:35:58.391230 | 2022-10-08T22:57:45 | 2022-10-08T22:57:45 | 205,764,532 | 0 | 0 | MIT | 2019-09-02T02:44:48 | 2019-09-02T02:44:47 | null | UTF-8 | Python | false | false | 1,904 | py | # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import *
class RProgressr(RPackage):
"""An Inclusive, Unifying API for Progress Updates.
A m... | [
"noreply@github.com"
] | JayjeetAtGithub.noreply@github.com |
4b8f85f8fe3a1b30f51bbc818a0a572f8dbc49af | 43d28c8e3e8f6b3c12ab69ffdb8bb7b937bdcd65 | /geography/viewsets/point_label_offset.py | 8a99ce329fdc1069e2ca15b4a4af65d4c8099357 | [
"MIT"
] | permissive | andrewmilligan/politico-civic-geography | ebef882eb9f86a6a333fa47f2fdee5faa789965e | d39c7690244ba5d57aab950a3a2988a077f300f8 | refs/heads/master | 2020-04-11T16:53:44.149066 | 2018-09-26T16:12:39 | 2018-09-26T16:12:39 | 161,940,525 | 0 | 0 | null | 2018-12-15T20:17:52 | 2018-12-15T20:17:52 | null | UTF-8 | Python | false | false | 280 | py | from geography.models import PointLabelOffset
from geography.serializers import PointLabelOffsetSerializer
from .base import BaseViewSet
class PointLabelOffsetViewSet(BaseViewSet):
queryset = PointLabelOffset.objects.all()
serializer_class = PointLabelOffsetSerializer
| [
"jmcclure@politico.com"
] | jmcclure@politico.com |
ec3e5933dfd2e8776e291ceede12ede355cd5027 | 762db71e9bb66ab5821bd91eff7e0fa813f795a0 | /code/python/echomesh/util/registry/Registry_test.py | 532bad18c70ee08b2354f9fbff455abd80853352 | [
"MIT"
] | permissive | huochaip/echomesh | 0954d5bca14d58c0d762a5d3db4e6dcd246bf765 | be668971a687b141660fd2e5635d2fd598992a01 | refs/heads/master | 2020-06-17T20:21:47.216434 | 2016-08-16T16:49:56 | 2016-08-16T16:49:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,117 | py | from __future__ import absolute_import, division, print_function, unicode_literals
from echomesh.util.registry import Registry
from echomesh.util.TestCase import TestCase
def _item1(): pass
def _item2(): pass
def _item3(): pass
class RegistryTest(TestCase):
def setUp(self):
self.registry = Registry.Regis... | [
"tom@swirly.com"
] | tom@swirly.com |
96c60d3f241422edaf8a83cdf758411900fa9c22 | 72c5d970d6f68b9b805d28da5d10898898c5613e | /test_halbach_motor.py | dcca8cadc39cb3564c0cbf8c6ad5c03f2a2de59f | [] | no_license | radimir-tubs/Axial-Motor-Design | 7a6ebda23595721a45c4ef3587f52fbacda3b778 | d36045469207b024865eb734bf5271e3b7b283a3 | refs/heads/master | 2023-03-17T13:05:02.726622 | 2018-11-01T16:28:58 | 2018-11-01T16:28:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,129 | py | """ Some basic, but not exhaustive tests. Mostly testing the derivatives."""
import unittest
from openmdao.api import Problem, NonlinearBlockGS
from openmdao.utils.assert_utils import assert_check_partials
from double_halbach_motor import DoubleHalbachMotorComp, DoubleHalbachMotorThermalComp, \
BearingLosses, W... | [
"kenneth.t.moore-1@nasa.gov"
] | kenneth.t.moore-1@nasa.gov |
9bb8b7f7a35acd6ac8ce4c6b3dd11e396d6b38a0 | e0560d0f9acb4f798fe79f378697138b4b6c3ec2 | /a05_class/a02_classPrac.py | 576776b300b11b6ebc4e817f63d80606549bc407 | [] | no_license | moneymashi/python | 5e5bd7198323f606b7d94ed1085df04064b118fc | 6e4a8a8bf3fffb75b8066f7fa02f948309fb5046 | refs/heads/master | 2021-01-01T15:37:25.874665 | 2017-08-24T09:37:27 | 2017-08-24T09:37:27 | 97,655,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | '''
Created on 2017. 7. 21.
@author: acorn
'''
class CoffeeShop():
kind = ''
price = 0
orderNumber = 0
totPrice =0
def __init__(self, kind):
self.kind = kind;
def order(self, price, orderNumber):
self.price = price;
self.orderNumber = orderNumber;
... | [
"moneymashi@gmail.com"
] | moneymashi@gmail.com |
00a711e3544c663f64dbe532bad3976819538400 | f13acd0d707ea9ab0d2f2f010717b35adcee142f | /Others/past/past202303-open/h/main.py | d0b895629e990ce72bb96e27890da5c9c032fd46 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | KATO-Hiro/AtCoder | 126b9fe89fa3a7cffcbd1c29d42394e7d02fa7c7 | bf43320bc1af606bfbd23c610b3432cddd1806b9 | refs/heads/master | 2023-08-18T20:06:42.876863 | 2023-08-17T23:45:21 | 2023-08-17T23:45:21 | 121,067,516 | 4 | 0 | CC0-1.0 | 2023-09-14T21:59:38 | 2018-02-11T00:32:45 | Python | UTF-8 | Python | false | false | 447 | py | # -*- coding: utf-8 -*-
def main():
import sys
from collections import Counter
input = sys.stdin.readline
n = int(input())
a = list(map(int, input().split()))
c = Counter(a)
ans = n
for x in sorted(c.keys()):
count = min(c[x], c[x + 1], c[x + 2])
c[x] -= count
... | [
"k.hiro1818@gmail.com"
] | k.hiro1818@gmail.com |
259f3863d9ceab5cb78933c94ee3cee0a4586a97 | a200c6bf8b327c4b5a4336e9a0a71a546dc9f7b9 | /process_vid_from_graph.py | ab7643a758c7baff689d34f5c9d55c81052ab999 | [] | no_license | jaycode/lyft-perception-challenge-2018 | 8ffe7932735d41cf9a348d11079727ad75e4244b | 5da319ffffd123edb674aa137d263fdcf71001d6 | refs/heads/master | 2020-03-22T09:26:34.964965 | 2018-07-05T11:10:45 | 2018-07-05T11:10:45 | 139,837,605 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,370 | py | import sys, json, base64
import numpy as np
import tensorflow as tf
import cv2
import numpy as np
GRAPH_PATH = "./frozen_model.pb"
IMG_SIZE = (256, 256)
ORI_IMG_SIZE = (600, 800)
NET_INPUT_NAME = "net_input:0"
LOGITS_NAME = "logits_1:0"
# LOGITS_NAME = "logits/BiasAdd:0"
file = sys.argv[-1]
def reshape_to_ori(mask... | [
"teguhwpurwanto@gmail.com"
] | teguhwpurwanto@gmail.com |
6549944c8f81f089c86c8143d4ad8a32a350c953 | 4b3019a01f5f76df1aa2e9deb3389bc0d14bc5f0 | /ML/joints_25/model_ML.py | d5490d6778704fd02a683bf89b6e27a40b46b9ef | [] | no_license | dss875914213/Kinect_Action_recognition | 9a3520d87294b8c4519f181ae726587f1c9a5837 | 2bbfff13a2539a2002b695294ac9908a06dd3996 | refs/heads/master | 2021-03-11T20:07:47.840403 | 2019-10-25T05:39:10 | 2019-10-25T05:39:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,023 | py | from keras import Sequential
from keras.layers import CuDNNLSTM, LSTM
# from tensorflow.python.keras.layers import CuDNNLSTM
from keras.layers import Dense, Input
from keras.layers import Dropout, concatenate, Flatten
from keras.regularizers import l2
from keras.models import Model
# from tensorflow.python.keras impo... | [
"you@example.com"
] | you@example.com |
41f7413054c1ae93aca73efdd8f7ea3ea6ad114e | 400b0cb1f25cc2fbe80a3037c06102f40c4d2d89 | /number196.py | 7acedecec3daad0308489c917589f4519fb45faf | [] | no_license | Prithamprince/Python-programming | 4c747d306829de552e3b0c6af67cfe534a2dc2e1 | 79a0953084a01978e75d2be4db0d35ba1cf29259 | refs/heads/master | 2020-05-30T06:29:26.134906 | 2019-12-13T06:33:49 | 2019-12-13T06:33:49 | 189,580,341 | 0 | 4 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | c,d=list(map(int,input().split(" ")))
e=c|d
f=bin(e)
f.replace("0b","")
g=0
for i in f:
if(i=="1"):
g+=1
print(g)
| [
"noreply@github.com"
] | Prithamprince.noreply@github.com |
acb647c86e0ac95eed0eff8a7b6a4cfe7850ebcc | 8bb2842aa73676d68a13732b78e3601e1305c4b2 | /378.py | 8228bc92fa33b92c024a95a186badb05b9862fa7 | [] | no_license | Avani18/LeetCode | 239fff9c42d2d5703c8c95a0efdc70879ba21b7d | 8cd61c4b8159136fb0ade96a1e90bc19b4bd302d | refs/heads/master | 2023-08-24T22:25:39.946426 | 2021-10-10T20:36:07 | 2021-10-10T20:36:07 | 264,523,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | # Kth Smallest Element in a Sorted Matrix
class Solution(object):
def kthSmallest(self, matrix, k):
"""
:type matrix: List[List[int]]
:type k: int
:rtype: int
"""
flat = []
for i in range(len(matrix)):
flat += matrix[i]
flat.sort()
... | [
"noreply@github.com"
] | Avani18.noreply@github.com |
4181a721f66aeded1077a58603300273f145eec6 | 37d4af0a33d47d6b264acb769a276a500871ab90 | /Python_Code_Beginner/03_循环/hm_08_打印小星星.py | df29d0ade81afbcba4593a3eef23d40ce939644c | [] | no_license | yzjbryant/YZJ_MIX_Code | 86fe3c8a265c69e5493f70b9753491c0f97d75d4 | ab3a7b8731730a714f013f59bbf551d3d50c3b33 | refs/heads/master | 2022-11-09T01:07:48.944817 | 2020-07-01T09:17:01 | 2020-07-01T09:17:01 | 271,439,307 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | # 在控制台连续输出五行 * ,每一行星号的数量依次递增
# *
# **
# ***
# ****
# *****
#1.定义一个计数器变量,从数字1开始,循环会比较方便
row = 1
#2.开始循环
while row <= 5:
print("*"* row)
row += 1
| [
"yinzhijian2018@163.com"
] | yinzhijian2018@163.com |
b6c568e41d8f8e02ee4092f848005022c0bbbc8a | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_skull.py | 9a52e0333f756703dc0125ab872835e6a119f012 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py |
#calss header
class _SKULL():
def __init__(self,):
self.name = "SKULL"
self.definitions = [u'the bones of the head that surround the brain and give the head its shape: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'nouns'
def run(self, obj1 = [], ob... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
469b8e58d86c830ade5eea11aee4076fecee4846 | bc91d344ed2ee3f4f93547ec16350f2713e5f704 | /.history/configuration/urls_20190124104655.py | a3984634e5ac796a1b707291ef3fe02a7dc5c346 | [] | no_license | SabitDeepto/Chitra | 10ecf0c4a7588234f0a50adf038783c9ce8706d0 | 160e5d64c8e4ee56a95bb639386785590160ff07 | refs/heads/master | 2020-04-27T21:55:09.685341 | 2019-03-09T16:14:35 | 2019-03-09T16:14:35 | 174,716,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | from django.contrib import admin
from django.urls import include, path
from Authentication import views
from Ajax import views
from django.views.generic.base import TemplateView
urlpatterns = [
path('', views.home),
path('admin/', admin.site.urls),
path('', include('CRUD.urls'), name='home'),
path('',... | [
"deepto69@gmail.com"
] | deepto69@gmail.com |
eb73161586a31148fe14b73851fd92bf62d8540b | 50b4b44a9d0210ea76b3d4c0fec0e1e777440ccd | /reinforcement-learning/td/q_cliff.py | 2a784419fbf98119599e99497c12b3440458351d | [] | no_license | OrhanCinar/machine-learning-practice | c21bee31eb05408c05ca9df6a894d1383834f66c | 0d73acc5b2497fae16cdbecd768a132937c5d101 | refs/heads/master | 2021-07-02T20:18:14.719127 | 2021-01-05T13:35:51 | 2021-01-05T13:35:51 | 214,041,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,154 | py | from lib import plotting
from lib.envs.cliff_walking import CliffWalkingEnv
from collections import defaultdict
import sys
import pandas as pd
import numpy as np
import matplotlib
import itertools
import gym
%matplotlib inline
if "../" not in sys.path:
sys.path.append("../")
matplotlib.style.use... | [
"orhancinar35@gmail.com"
] | orhancinar35@gmail.com |
d463d1f363b678e688ae7215b736b88faf9fc086 | 6fdb4eaf5b0e6dbd7db4bf947547541e9aebf110 | /api/src/opentrons/drivers/command_builder.py | 99ac5c7890c3e674068a40b5f2fa7b6e87623128 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | Opentrons/opentrons | 874321e01149184960eeaeaa31b1d21719a1ceda | 026b523c8c9e5d45910c490efb89194d72595be9 | refs/heads/edge | 2023-09-02T02:51:49.579906 | 2023-08-31T16:02:45 | 2023-08-31T16:02:45 | 38,644,841 | 326 | 174 | Apache-2.0 | 2023-09-14T21:47:20 | 2015-07-06T20:41:01 | Python | UTF-8 | Python | false | false | 2,465 | py | from __future__ import annotations
from typing import List, Optional, Iterator
class CommandBuilder:
"""Class used to build GCODE commands."""
def __init__(self, terminator: str) -> None:
"""
Construct a command builder.
Args:
terminator: The command terminator.
... | [
"noreply@github.com"
] | Opentrons.noreply@github.com |
b1d9b3fa7bfbd224383fc7ffae0ac7bd28197dd7 | c11bbb1cde8be351476cedf7f8c2ba68e5d3d1fd | /algoPython/linkedlist.py | 507eaeba31187ce200431a741619f64cf63100bf | [] | no_license | JiwonCocoder/algoPython | 87773a5a3e48529eeabbba9c8686d8ff9890a6ee | 332c19a95bfb8e0150fb2d33dd301efce537e6e7 | refs/heads/master | 2020-04-28T11:19:14.184717 | 2019-04-10T09:54:03 | 2019-04-10T09:54:03 | 175,233,446 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,138 | py | #파이썬은 포인터라는 개념도 없을뿐더러 필요하지도 않다
'''
Node라는 이름의 클래스를 선언하며 이 클래스로 객체가 생성될 때 __init__메서드를 호출한다.
이 Node 클래스는 데이터를 저장하는 dta와 링크를 저장하는 next를 멤버로 갖고 있다.
이 link를 이용해서 다음 노드를 가리키기때문에 data가 연속적으로 저장되어 있지 않아도 괜찮은것.
'''
class Node:
def __init__(self, data, next=None):
self.data = data
self.next =... | [
"iamadora@naver.com"
] | iamadora@naver.com |
655bc01b3c14910c680317a8a9a7c474e0337758 | 2015252bb6a7dee76b52da35f9e470494531c9c7 | /zoom/_assets/boilerplates/apps/basic/index.py | 9d37efecc7d09f0253249ed820ecbd491cb42bd1 | [
"MIT"
] | permissive | dsilabs/zoom | 06afc18d7d45e4523582f3606bc0b871b713fe61 | b34cb4b2ee7cc40b2c99015f05bfcc12d4b49065 | refs/heads/master | 2023-06-22T04:51:23.833306 | 2023-05-01T18:39:03 | 2023-05-01T18:39:03 | 65,876,598 | 9 | 12 | NOASSERTION | 2019-08-14T03:53:11 | 2016-08-17T04:45:19 | Python | UTF-8 | Python | false | false | 564 | py | """
App Index
Provides the main index for the app.
"""
import zoom
class IndexView(zoom.View):
"""This Zoom "view" serves both an index and about page."""
def index(self):
"""Index page."""
return zoom.page('My Zoom app!', title='Overview')
def about(self):
"""About page... | [
"herb@dynamic-solutions.com"
] | herb@dynamic-solutions.com |
50448c651607a01735e409580f4a883d6aec0745 | 3a85089c2498ff04d1b9bce17a4b8bf6cf2380c9 | /TopQuarkAnalysis/Configuration/python/__init__.py | 5f3aceb346aee58868a37b1aca83fb893a60e5c6 | [] | no_license | sextonkennedy/cmssw-ib | c2e85b5ffa1269505597025e55db4ffee896a6c3 | e04f4c26752e0775bd3cffd3a936b288ee7b0268 | HEAD | 2016-09-01T20:09:33.163593 | 2013-04-26T12:05:17 | 2013-04-29T16:40:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 212 | py | #Automatically created by SCRAM
import os
__path__.append(os.path.dirname(os.path.abspath(__file__).rsplit('/TopQuarkAnalysis/Configuration/',1)[0])+'/cfipython/slc6_amd64_gcc480/TopQuarkAnalysis/Configuration')
| [
"giulio.eulisse@cern.ch"
] | giulio.eulisse@cern.ch |
f1a5aafad7af683669d16a1ddc37146eca45bc90 | c148ee5ee1dc482bed99a621d5d6dc135cb08302 | /django_starter_project/wsgi.py | 47ff85e9f8cb9b1b1d939ea93a22a586f43dc99f | [] | no_license | Maduflavins/paystackimplementation | b8f18c2a644d42e46462ace77034cac02c2eb469 | 70b9461ba2a326593766ab9964e8f7b0f4e4e6e4 | refs/heads/master | 2022-11-17T15:42:59.270800 | 2020-07-19T19:58:02 | 2020-07-19T19:58:02 | 280,940,271 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | """
WSGI config for django_starter_project 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.setdefaul... | [
"maduabuchiokonkwo@gmail.com"
] | maduabuchiokonkwo@gmail.com |
d34a2a5f75308545d21588a84475c2d7931d7fdd | c2fb6846d5b932928854cfd194d95c79c723f04c | /python/coursera_python/MICHIGAN/WEB/test/Spam.py | a127cc3400ed85eec3cba3637c2b6552efa66475 | [
"MIT"
] | permissive | Jimut123/code-backup | ef90ccec9fb6483bb6dae0aa6a1f1cc2b8802d59 | 8d4c16b9e960d352a7775786ea60290b29b30143 | refs/heads/master | 2022-12-07T04:10:59.604922 | 2021-04-28T10:22:19 | 2021-04-28T10:22:19 | 156,666,404 | 9 | 5 | MIT | 2022-12-02T20:27:22 | 2018-11-08T07:22:48 | Jupyter Notebook | UTF-8 | Python | false | false | 314 | py | import re
hand = open('Spam.txt')
numlist = list()
for line in hand:
line = line.rstrip() # Strips a line
stuff = re.findall('^X-DSPAM-Confidence: ([0-9.]+)',line) # Matches with this type of architecture
if len(stuff)!= 1: continue
num=float(stuff[0])
numlist.append(num)
print('Mximum:',max(numlist))
| [
"jimutbahanpal@yahoo.com"
] | jimutbahanpal@yahoo.com |
37c69bc13fad246495bf93d415a9d260c0162f22 | 797d88369372651f78057be317f4fc9193914756 | /simple_sentry_client/actions.py | 86e86a82e76f3c76eb1cbb54edf48b68ad93e4ac | [
"MIT"
] | permissive | allisson/python-simple-sentry-client | c55c1f7c141b030855703ae0d359e787056e1e1d | 89451c815b291ecce79b597fa4b62dfc6751352f | refs/heads/master | 2020-03-13T02:21:38.172141 | 2018-04-26T11:36:32 | 2018-04-26T11:36:32 | 130,923,076 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,346 | py | issues_actions = {
'list': {
'method': 'GET',
'url': 'issues/{}/'
},
'update': {
'method': 'PUT',
'url': 'issues/{}/',
},
'destroy': {
'method': 'DELETE',
'url': 'issues/{}/',
},
'events': {
'method': 'GET',
'url': 'issues/{}/ev... | [
"allisson@gmail.com"
] | allisson@gmail.com |
f6e848a3df16caf3cbb31d21397ad5009b8c223e | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/cv/detection/DBpp_ID4145_for_PyTorch/mmocr/models/textdet/losses/pse_loss.py | 99bf2d7a1ce6ee4891d0cad9443c5e700e1639f8 | [
"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 | 5,882 | py | # -*- coding: utf-8 -*-
# BSD 3-Clause License
#
# Copyright (c) 2017
# All rights reserved.
# Copyright 2022 Huawei Technologies Co., Ltd
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
4b152cfd91f3d4883b4b6f98d801b45eba09d61a | bcabd9b183bc011e1ccf7e367fbed0dcaa03eee6 | /1 PYTHON/3 TELUSKO/48__init__.py | 23ded26b2ca45ce023fbd73f23a9a1534051fa61 | [] | no_license | rajeshsvv/Lenovo_Back | 287fe4da2c696aa248ec57a4c45c4f234f6ca9ed | 7e49e38aaf934c65f9992a78404d2b81a4cd0204 | refs/heads/master | 2022-12-23T16:44:41.488128 | 2019-08-29T10:00:10 | 2019-08-29T10:00:10 | 204,859,914 | 0 | 1 | null | 2022-12-10T11:50:31 | 2019-08-28T06:05:35 | Python | UTF-8 | Python | false | false | 572 | py | class computer:
# __init__ to initialise the variables it is special method it is like constructor
# how many objects created based on that the init method is called automatically
def __init__(self,cpu,ram):
self.cpu=cpu
self.ram=ram
# print("called init")
def config(self):
... | [
"rajeshsvv01@gmail.com"
] | rajeshsvv01@gmail.com |
2955c58e068c8d3a7c9453df61ef74f2cb241311 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/netapp/v20200701/get_account.py | cad0e8e4c94cf3f3304d192b8b19a22d6f38b9bc | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,160 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
016092439ab0340027251872042325b226c406a8 | 821fa9f0bc0a95f2a2ed0089fb0ae49ccd01e4f6 | /pyjuliusalign/yomi2voca.py | 40c59559503324b63eaf3a0a16406281aeda6ec5 | [
"MIT",
"BSD-2-Clause"
] | permissive | timmahrt/pyJuliusAlign | 9c390e44c67e61cfb8a90b3a2924b45f362b3e0b | ad4c4e45cc14135cf25beee2dfda15554cf18a41 | refs/heads/main | 2023-07-21T10:49:50.014775 | 2023-07-15T14:18:39 | 2023-07-15T14:18:39 | 23,520,909 | 32 | 8 | NOASSERTION | 2023-07-15T14:18:40 | 2014-08-31T19:09:59 | Python | UTF-8 | Python | false | false | 6,685 | py | # -*- coding: utf-8 -*-
# The code in this file was adapted from a project licensed under the MIT license.
# Copyright (c) 2005-2015 Julius project team, Lee Lab., Nagoya Institute of Technology Copyright (c) 2008 Ryuichi Nisimura
#
# The code was adapted from this file in particular: https://github.com/julius-speech/s... | [
"timmahrt@gmail.com"
] | timmahrt@gmail.com |
ffa2d25bd40ea2f79a8c33d4b66d0c015dafcedc | 8c90e79f43ca179c4c5bddefbaea66f0bd7ece17 | /myenv/bin/sdbadmin | 09d81fda2da5ab1cf3e959274be490804a051e4e | [] | no_license | samirpatil2000/Community-Blog | a34b0c12090b9308946791d12f3af8741878c831 | 2bfd48f255518a41aa29c3faf52e72f3fc39fb48 | refs/heads/master | 2022-12-06T05:29:30.825128 | 2020-06-12T10:11:35 | 2020-06-12T10:11:35 | 238,752,574 | 1 | 0 | null | 2022-11-22T05:22:20 | 2020-02-06T18:08:31 | Python | UTF-8 | Python | false | false | 7,047 | #!/Users/samir/PycharmProjects/Community_Blog/Main_Blog/myenv/bin/python
# Copyright (c) 2009 Chris Moyer http://kopertop.blogspot.com/
#
# 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 witho... | [
"samirspatil742099@gmail.com"
] | samirspatil742099@gmail.com | |
f7854a66d8523751a28c13a622e0a0bc347b1802 | 8383a7b6225b477b45e3665a1b7a10de1e9cbbb8 | /glad/lang/volt/generator.py | 5975ca8fd656e9644bc68cb186ddba205b848665 | [
"MIT"
] | permissive | apitrace/glad | 92c9334e51ee6429d3d7df9b0e472eaca25d0a05 | 143a2052e6867972a3c393ed4b83512484e75229 | refs/heads/master | 2020-12-31T01:35:52.378180 | 2015-06-29T10:45:57 | 2015-06-29T11:52:53 | 38,243,698 | 1 | 1 | null | 2015-06-29T11:15:27 | 2015-06-29T11:15:26 | Python | UTF-8 | Python | false | false | 2,155 | py | import sys
from glad.lang.d.generator import DGenerator
if sys.version_info >= (3, 0):
basestring = str
class VoltGenerator(DGenerator):
MODULE = 'amp'
LOADER = 'loader'
ENUMS = 'enums'
EXT = 'ext'
FUNCS = 'funcs'
TYPES = 'types'
FILE_EXTENSION = '.volt'
API = ''
LOAD_GL_NA... | [
"admin@dav1d.de"
] | admin@dav1d.de |
8710f5a30f26a55ca88af0ddae3edb567e4ea92c | dd5b7241ae3deed66254466d6e089cbb15ff0623 | /build/mapping/hector_slam-catkin/hector_nav_msgs/catkin_generated/pkg.installspace.context.pc.py | f657826901d8293116150d69cf7e63124b105a03 | [
"BSD-2-Clause"
] | permissive | lty1994/ros_project | 189dde5842a5bcb9392a70383a37822ccafb7de2 | d55ce07c592d545f9a43330fa6bf96af6651575f | refs/heads/master | 2020-04-14T16:14:22.878838 | 2019-01-04T05:31:46 | 2019-01-04T05:31:46 | 163,946,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/autolabor/catkin_ws/install/include".split(';') if "/home/autolabor/catkin_ws/install/include" != "" else []
PROJECT_CATKIN_DEPENDS = "nav_msgs;geometry_msgs;message_runtime".replace(';', ' ')
PK... | [
"lty2008@vip.qq.com"
] | lty2008@vip.qq.com |
af9d460db415b9decf911f6cd9c0251f4e12a567 | 0c785a2601f2b02c1636d57c70039f0c4f08294a | /pybles/PySrc/_completer.py | 97770dacec659eda8a14ff8fc55b9295dca7687f | [] | no_license | SoftwareEngineeringToolDemos/ICSE-2012-CodeBubbles | bc26d9655fbd56e5f61364db1c176a3539653d7f | 6da209c1ff0f7fbfa958c97dc22ec478b2b5219c | refs/heads/master | 2021-01-17T13:35:48.729810 | 2016-06-24T19:42:07 | 2016-06-24T19:42:07 | 45,094,073 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,172 | py |
try:
import __builtin__
except ImportError:
import builtins as __builtin__
try:
False
True
except NameError: # version < 2.3 -- didn't have the True/False builtins
setattr(__builtin__, 'True', 1)
setattr(__builtin__, 'False', 0)
try:
import java.lang #@UnusedImport
import jyimport... | [
"you@example.com"
] | you@example.com |
f68fe0eb9973d331960e879250b658bba754538e | 45ad9f1071ca6575bcc00cf119976871da2e04b8 | /plot_codes/hcn_with_sio_maser.py | 5322df24dc688e9ab41ed905843f2336b5877e2e | [] | no_license | keflavich/SgrB2_ALMA_2015.1.00550.S | f2a522b2157579e155c5461329ef0a1066fb8401 | 6d6a916c60eca0c80537c930bab7a3fababe3fa0 | refs/heads/master | 2023-02-20T22:25:24.236860 | 2023-02-08T18:27:50 | 2023-02-08T18:27:50 | 107,703,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,761 | py | import numpy as np
import os
from astropy import constants, units as u, table, stats, coordinates, wcs, log, coordinates as coord
from astropy.io import fits
from spectral_cube import SpectralCube, Projection
import paths
import files
import regions
import pylab as pl
regs = regions.read_ds9(paths.rpath('sio_maser... | [
"keflavich@gmail.com"
] | keflavich@gmail.com |
d076561977833ba34f154621645c247927d452cf | 9a61fc626d17994d77da478cfbde0d2c34ae2be7 | /04_algorithm/7.Stack/반복문자.py | cde4e4d86b1ee46a93fb371d7a174c0ca925b418 | [] | no_license | EUNS00/TIL | 96679db3344d6bd6de60c118dc9de51d4b6b28ea | 71c523406b856f68e10a32be06f837c20e3b3a06 | refs/heads/master | 2023-01-12T21:10:30.192150 | 2020-07-29T00:29:00 | 2020-07-29T00:29:00 | 195,937,989 | 1 | 1 | null | 2023-01-07T11:37:10 | 2019-07-09T05:22:44 | Python | UTF-8 | Python | false | false | 392 | py | def Word(n):
result = []
for wl in range(len(n)):
if not result or result[-1] != n[wl]:
result.append(n[wl])
elif result and result[-1] == n[wl]:
result.pop()
return len(result)
import sys
sys.stdin = open("반복문자_input.txt")
T = int(input())
for tc in range(1, T + 1... | [
"leeus5629@naver.com"
] | leeus5629@naver.com |
c9b33a4d9e9ab827d27a72ffae9401ef30e2120f | 9f6211f19f8de001406f4ac2fbdce75a0c09afb0 | /amc_dl/torch_plus/manager.py | 50ca4fe63a040dbf979177a57115c6acd6ceb617 | [
"MIT"
] | permissive | chenchy/AccoMontage | 6daed33dc08d170175abda54189ee93a9ca6fc6f | 4542e66ff3d1cbb8897ed77af8af772198f5a9bd | refs/heads/main | 2023-07-23T07:06:43.172866 | 2021-09-05T04:02:29 | 2021-09-05T04:02:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,761 | py | import datetime
import os
import shutil
#from tensorboardX import SummaryWriter
from .train_utils import join_fn
import torch
from torch.utils.tensorboard import SummaryWriter
#todo copy every import file as readme
class LogPathManager:
def __init__(self, readme_fn=None, log_path_name='result',
... | [
"zhaojw1998@outlook.com"
] | zhaojw1998@outlook.com |
1b6a58a116182739640294a25deab684aac67d0a | 4eaa1b9b08914e0a2cc9276363e489ccef19d3a2 | /ch6/cities.py | 1e38f5ebcd0ef4d10cc6c30ce7f5be8ba037e8a7 | [] | no_license | melihcanyardi/Python-Crash-Course-2e-Part-I | 69b3b5b3f63cdbd7be6fabd6d4f2ddfd9a3434a3 | 0c9b250f512985c04b2c0397f3afaa8bf3a57f17 | refs/heads/main | 2023-03-12T21:43:14.012537 | 2021-03-03T19:23:41 | 2021-03-03T19:23:41 | 344,236,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 783 | py | cities = {
'paris': {
'country': 'france',
'population': 2175601,
'fact': 'Paris was originally a Roman City called “Lutetia.”',
},
'istanbul': {
'country': 'turkey',
'population': 15460000,
'fact': 'Istanbul is the only pan-continental city in the world situa... | [
"melihcanyardi@hotmail.com"
] | melihcanyardi@hotmail.com |
359bff5e57ef835318dc5fefaf883d0702e472ec | dc30b6ecea0a1ad2342244871817a5882f506fda | /Euler Challenge/Primefunctions.py | 0abe1ce9397324fe6920c40c91628a6144f1de19 | [] | no_license | CasperHagenaars/WISB256 | 26e4b272a80d687b22ce7fd48a6040e45e152b85 | d0871a2221f71fe64d7aba4efcd3a1e276c22f34 | refs/heads/master | 2020-05-20T17:03:27.182900 | 2015-06-18T12:43:33 | 2015-06-18T12:43:33 | 34,313,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,059 | py | import time
import math
from math import sqrt
from itertools import count, islice
def isPrime(n):
if n < 2: return False
return all(n%i for i in islice(count(2), int(sqrt(n)-1)))
def base2(x):
return int(bin(x)[2:])
def bin(n):
m = 1
while(n>1):
m = n*m
n -= 1
return m
... | [
"casperhagenaars@gmail.com"
] | casperhagenaars@gmail.com |
864672ecd5337cf3b0321e87fe110b75c43a3a09 | 0e9f73d2ef1239b22e049ef6338362da7dbfb122 | /source/web/Django/FatQuantsDjango/FatQuantsDjango/ticker/migrations/0003_ticker_description.py | 4cd762a25c1cd1b28704bf836d7c99441b38b5d6 | [] | no_license | Andy-Mason/FatQuants | 3c4bfafc29834af76b0be40e93b0e210e0ef5056 | edd0e98f4599ef91adbdf4179164769ddd66c62a | refs/heads/master | 2023-01-11T10:57:50.563742 | 2021-08-11T19:04:59 | 2021-08-11T19:04:59 | 73,127,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | # Generated by Django 2.1.3 on 2018-12-23 20:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ticker', '0002_ticker_status'),
]
operations = [
migrations.AddField(
model_name='ticker',
name='description',
... | [
"Andy-Mason@users.noreply.github.com"
] | Andy-Mason@users.noreply.github.com |
7f6141c0d6d598675641e6472b8f24866ff9b1a2 | aa0ff41682eb3b66d3577eb806821126a2d3ace2 | /46. 全排列/permute.py | c0e6efd97f7f3f9586469b3ec2663c083dd91991 | [] | no_license | qybing/LeetCode | 11c3b88b7536ae4790d1b481f37741b2c5e9bcce | bafa85fde597a17b6dee8cfdd0153a7176ff8fcf | refs/heads/master | 2023-02-06T09:14:29.516336 | 2020-12-30T07:33:37 | 2020-12-30T07:33:37 | 103,499,568 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 545 | py | #! python3
# _*_ coding: utf-8 _*_
# @Time : 2020/8/26 18:33
# @Author : Jovan
# @File : permute.py
# @desc :
'''
给定一个 没有重复 数字的序列,返回其所有可能的全排列。
输入: [1,2,3]
输出:
[
[1,2,3],
[1,3,2],
[2,1,3],
[2,3,1],
[3,1,2],
[3,2,1]
]
'''
from typing import List
class Solution:
def permute(self, nums: List[int]) -> Lis... | [
"qiaoyanbing1@163.com"
] | qiaoyanbing1@163.com |
286dcf27f860164d1e751d6c8145c879e669ccae | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_overload.py | aaac4a3e770e1f92a2db4c103cdb6572ff8a51ca | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py |
#calss header
class _OVERLOAD():
def __init__(self,):
self.name = "OVERLOAD"
self.definitions = [u'the fact that something or someone is overloaded: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'nouns'
def run(self, obj1 = [], obj2 = []):
return ... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
1524208dedce1b101e87afadb21d00668a9bea2a | af42e78130233ae1c3dfc58787c83f06cd570d2b | /myproject/api_basic/urls.py | a6e55656864cdfab4f753c41aae56faac9e1c140 | [] | no_license | shotaro0726/RestBasics | 665e887e7e630741fca887f0b59df39c5901eced | 8b7c3a5a9f6972496330774598b9805ff2b89b7b | refs/heads/master | 2022-04-20T23:27:16.604817 | 2020-04-19T14:24:34 | 2020-04-19T14:24:34 | 256,939,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | from django.urls import path,include
from . import views
from rest_framework.routers import DefaultRouter
app_name = 'api_basic'
router = DefaultRouter()
router.register('article', views.ArticleViewSet, basename='article')
urlpatterns = [
# path('article/', views.article_liat),
path('article/',views.ArticleAP... | [
"shoutaro0726@gmail.com"
] | shoutaro0726@gmail.com |
4cbf277456010131a6629efcba9e86e650098669 | 190f56bb215311c293e2c07e40be3d7cc3a5e189 | /search/urls.py | 641758f68e8d818ef6376d50d28b9b61537b63ca | [] | no_license | Omsinha017/Ecommerce | 457dec1c5dcc313d4fae6dff0b1d7c7f43874655 | d4e57576eef18626d458f0c06b186d0b8a6bc753 | refs/heads/master | 2023-06-21T11:21:46.495736 | 2021-07-24T09:09:16 | 2021-07-24T09:09:16 | 305,804,444 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | from .views import SearchProductView
from django.conf.urls import url,include
urlpatterns = [
url(r'^$',SearchProductView.as_view(),name='query'),
]
| [
"omsinha017@gmail.com"
] | omsinha017@gmail.com |
7502b3da4b5beac1e67492495986232a4a1469c1 | 20801b736aaa9d43e59997ba18aabbfa0a4c6309 | /CHECLabPy/waveform_reducers/nnls_pulse_extraction.py | fd7bdf03ab224109b45aac52a3982b0c874a6259 | [
"BSD-3-Clause"
] | permissive | STSpencer/CHECLabPy | 13626882625581bf1088168a9285605d4b412a77 | 0d6602acb7ade1e4309326d58fd27730afee9eab | refs/heads/master | 2020-03-23T12:47:54.360466 | 2018-07-08T19:52:53 | 2018-07-08T19:52:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,916 | py | from CHECLabPy.core.base_reducer import WaveformReducer
from CHECLabPy.data import get_file
import numpy as np
from scipy import interpolate
from scipy.optimize import nnls
from numba import jit
import scipy
class NNLSPulseExtraction(WaveformReducer):
"""
Extractor which does not extract charge but pulses from... | [
"samuel.d.flis@gmail.com"
] | samuel.d.flis@gmail.com |
07a7e8d121470c518864fb9d3cd6a0a67a308e80 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa3/benchmarks/tree-625.py | a2120b78de278c1806bf0c92d3912c8c02ee8354 | [] | 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 | 1,456 | py | # Binary-search trees
class TreeNode(object):
value:int = 0
left:"TreeNode" = None
right:"TreeNode" = None
def insert(self:"TreeNode", x:int) -> bool:
if x < self.value:
if self.left is None:
self.left = makeNode(x)
return True
else:
return self.left.insert(x)
elif x > self.value:
if self.... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
11a46aa84c7a833c668e87d59a9d5a5fc11b04d5 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_8574.py | 2bc9b7d3e4dac4d57b70da66e84c3174d8000532 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | # Django: ordering by specific backwared related property
Video.objects.filter(translations__language='en').order_by('translations__name')
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
342dc9bdec12a8bc0b93a7db3ebd97546bb61cfe | ce79d8a92ddc88ee17ccbfbab273fdb37600da0e | /0154_Find_Minimum_in_Rotated_Sorted_Array_II.py | 048a79303177c87861a457f973788d417ad42058 | [
"MIT"
] | permissive | coldmanck/leetcode-python | 5bf5bc489213a5835acc93b047e1b0ff7a1392bc | fd4cf122cfd4920f3bd8dce40ba7487a170a1b57 | refs/heads/master | 2023-06-09T02:30:49.681803 | 2023-05-27T04:01:57 | 2023-05-27T04:01:57 | 249,945,225 | 6 | 2 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | class Solution:
# time complexity: worst O(n), avg=best=O(logn)
def findMin(self, nums: List[int]) -> int:
left, right = 0, len(nums) - 1
while left < right:
mid = (left + right) // 2
new_mid = mid
while nums[new_mid] == nums[right]:
new_mid -=... | [
"coldmanck@gmail.com"
] | coldmanck@gmail.com |
fdc3ebf7fcbeecccedd80a0ac118f59865463be6 | 279c1ed64ba7f0cafe07bbbdfa0ec89f9b2f199b | /aiexperiments-drum-machine-master/scripts/sort_sounds.py | d2935358e1a320946c39e5d5d2308ca69ef6e880 | [
"Apache-2.0"
] | permissive | side-projects-42/Chrome-Experiments | 07090cb4adbc3d93b5e6e6782cec5ea8c5c5cdac | ad4b5791f06c4b17e5e9d829b8b16989fff676fb | refs/heads/master | 2023-07-14T04:32:26.710971 | 2021-08-21T21:29:58 | 2021-08-21T21:29:58 | 382,506,783 | 1 | 1 | null | 2021-08-21T21:29:59 | 2021-07-03T02:25:54 | null | UTF-8 | Python | false | false | 1,667 | py | # Copyright 2016 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, softwa... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
1465db3ad8da66fcac96cb12358b731c1d360297 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/d04b324969e045d1cf2bf7da18ea0497d8066935-<test_max_num_with_initial_data>-bug.py | e6f8e7607f4fb135dbe46f75187b0170fa43ab71 | [] | 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 | 666 | py | def test_max_num_with_initial_data(self):
initial = [{
'name': 'Fernet and Coke',
}]
LimitedFavoriteDrinkFormSet = formset_factory(FavoriteDrinkForm, extra=1)
formset = LimitedFavoriteDrinkFormSet(initial=initial)
form_output = []
for form in formset.forms:
form_output.append(str... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
c429d814a7769a1abc481d5610ed02fb9e229457 | 8690ca0028c54b62d68badf1753fc6151ae03525 | /Part3 Levels of Aggregation/fse_data/Act/tpot_mnist_pipeline_triangulateAggregationLevelParticipantSplitaggr_2_groups6.py | 44d8b0b1747fb923cc9df4d521a2f60b72db2d6b | [] | no_license | brains-on-code/conducting-and-analyzing-human-studies | fd74ee77fdc56cc61bdc1e0cf9bf423780f5dddc | 548e7443f4d2bdb2db1f2858289b7d3518593c59 | refs/heads/master | 2021-06-26T21:30:56.386121 | 2020-12-22T13:49:16 | 2020-12-22T13:49:16 | 195,975,817 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 740 | py | import numpy as np
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.neighbors import KNeighborsClassifier
# NOTE: Make sure that the class is labeled 'target' in the data file
tpot_data = pd.read_csv('PATH/TO/DATA/FILE', sep='COLUMN_SEPARATOR', dtype=np.float64)
features = tpot_dat... | [
"fmriml@fmriml.com"
] | fmriml@fmriml.com |
968c3e6c1d4d450e70892922f0aedace85044bc9 | 684658837ca81a9a906ff8156a28f67b0ed53e81 | /venv/bin/jupyter-run | 6b8c3ab0f1c7fcf3b7848eab94e50ce261188d61 | [] | no_license | sangramga/djangocon | 30d6d47394daadfa162c5f96bf2e8476e580906d | d67203a7a7be2cefedbd75e080a6737e71a5bad3 | refs/heads/master | 2020-03-17T21:20:35.097025 | 2017-08-15T19:45:47 | 2017-08-15T19:45:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | #!/Users/lorenamesa/Desktop/bootstrap_ml_project/venv/bin/python3.5
# -*- coding: utf-8 -*-
import re
import sys
from jupyter_client.runapp import RunApp
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(RunApp.launch_instance())
| [
"me@lorenamesa.com"
] | me@lorenamesa.com | |
1ec0edbf4e63b69eff00266c3e1413f0ae5798e3 | 73ee941896043f9b3e2ab40028d24ddd202f695f | /external/chromium_org/components/components_tests.gypi | b8e560008b9f1e7463d3d5fb6fd16c30660432f9 | [
"BSD-3-Clause"
] | permissive | CyFI-Lab-Public/RetroScope | d441ea28b33aceeb9888c330a54b033cd7d48b05 | 276b5b03d63f49235db74f2c501057abb9e79d89 | refs/heads/master | 2022-04-08T23:11:44.482107 | 2016-09-22T20:15:43 | 2016-09-22T20:15:43 | 58,890,600 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 5,001 | gypi | # Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'conditions': [
['OS != "ios"', {
'targets': [
{
'target_name': 'components_unittests',
'type': '<(gtest_target... | [
"ProjectRetroScope@gmail.com"
] | ProjectRetroScope@gmail.com |
b15a9048e851eab6cea385a5f75cf9724534a81a | 607836bbfd48f4bf1dc01bafa67a3c86e481de81 | /scripts/voting/4-plotAccCurves-TOP.py | bc9b78ee3d025d56f670cd89eb989dc5848dc4d4 | [] | no_license | jameshughes89/SmartwatchGPModelling2 | 8bfd6d8808452d9051d7608d489a207272c3af4d | 91ff9206e9770d6e5a7d11b749639629251d2efd | refs/heads/master | 2020-04-03T11:19:54.695757 | 2019-01-29T01:04:07 | 2019-01-29T01:04:07 | 155,218,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,657 | py | '''
Plot the accuracy curves for the TOP data.
Make a 3D plot to show how the 3 dimensions matter (accuracy vs time points vs # voters
'''
import csv
import numpy as np
import sys
import matplotlib.pyplot as plt
from matplotlib import cm
from matplotlib.ticker import LinearLocator, FormatStrFormatter
from mpl_tool... | [
"JamesHughes89@Gmail.com"
] | JamesHughes89@Gmail.com |
e33b279c9a2d8e355d474b72cbce29342570d503 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5738606668808192_0/Python/Mazub/lal.py | c650f90f06ac84f623f85c4c6ae6868a0231f068 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 3,862 | py | import random
def primesbelow(N):
# http://stackoverflow.com/questions/2068372/fastest-way-to-list-all-primes-below-n-in-python/3035188#3035188
#""" Input N>=6, Returns a list of primes, 2 <= p < N """
correction = N % 6 > 1
N = {0:N, 1:N-1, 2:N+4, 3:N+3, 4:N+2, 5:N+1}[N%6]
sieve = [True] * (N // 3... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
4de732dde3fbaf01928e0796ff5b6e1eefd2e025 | 98256698a47e015e367e05c6e982e4570e646673 | /secao15/preservando_metadata.py | e7221b95a9d1f2b4ee2f235a0e99b8d10ccdbb15 | [] | no_license | glenonmateus/ppe | 2ad13ed0e6a901f822d6d516f4a9075badf30b12 | 4a8176a6403b5fafffdee46df93f87d951006fc6 | refs/heads/master | 2020-04-28T13:37:23.851237 | 2019-05-14T11:55:28 | 2019-05-14T11:55:28 | 175,294,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,079 | py | """
Preservando metadatas com wraps
Metadatas -> são dados intrísecos em arquivos.
wraps -> são funções que envolvem elementos com diversas finalidades.
# problema
def ver_log(funcao):
def logar(*args, **kwargs):
# Eu sou uma função (logar) dentro de outra
print(f'Você esta chamando {funcao.__n... | [
"glenonmateus@gmail.com"
] | glenonmateus@gmail.com |
8e6a1987dd50bb33b93952c6fbf6c68b56d6b53d | 910ce618b31b688674cafa1ab29768be748e51f4 | /beastling/util/log.py | 7bb02c2a9cf8a21310f7a4fd720f1fc57e859be0 | [
"BSD-2-Clause"
] | permissive | lmaurits/BEASTling | cad4de1e0005b78196d329e5dfd8e822c46cdbd7 | d0c73cfb50d0d899e700495627c336a0dfea9a05 | refs/heads/master | 2021-11-23T11:09:22.700993 | 2021-11-08T10:39:27 | 2021-11-08T10:39:27 | 40,626,662 | 18 | 9 | BSD-2-Clause | 2021-01-11T15:06:02 | 2015-08-12T22:07:50 | Python | UTF-8 | Python | false | false | 864 | py | import logging
import beastling
_logger = None
_dependencies = set()
def get_logger():
global _logger
if _logger is None:
_logger = logging.getLogger(beastling.__name__)
return _logger
def _message(msg, model):
if model:
msg = '{0} {1}: {2}'.format(model.__class__.__name__, model.n... | [
"xrotwang@googlemail.com"
] | xrotwang@googlemail.com |
4c524c1bda16ae759492cbb04b1abd550e9e3d5a | 14895fc185feffacbaf977df2f6c8994f412bd23 | /Supervised learning with scikit-learn/5FoldCrossValidation.py | a510e11201909ec22c743b63cee7fcc57ad920c0 | [] | no_license | AnjaliSharma1234/DataCamp---Machine-Learning-Complete-Track | 2dd67055ca934841a54221dd795a3f771f365b12 | c9cc74dc8ded66637f55db2b2f79bf75622a8456 | refs/heads/master | 2021-01-01T08:58:18.599721 | 2020-03-02T17:54:09 | 2020-03-02T17:54:09 | 239,207,324 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | # Import the necessary modules
from sklearn.linear_model import LinearRegression
from sklearn.model_selection import cross_val_score
# Create a linear regression object: reg
reg = LinearRegression()
# Compute 5-fold cross-validation scores: cv_scores
cv_scores = cross_val_score(reg, X, y, cv = 5)
# Print the 5-fold... | [
"noreply@github.com"
] | AnjaliSharma1234.noreply@github.com |
5bfd3d6a9fd7d1431cc2aea6b353f6a34ec77ec0 | ad13583673551857615498b9605d9dcab63bb2c3 | /output/models/ms_data/identity_constraint/id_h018_xsd/__init__.py | c7ab4e2e410c1835fa937467a71bbcef9e0f396a | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 131 | py | from output.models.ms_data.identity_constraint.id_h018_xsd.id_h018 import (
Root,
T,
)
__all__ = [
"Root",
"T",
]
| [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
4fb25e2d8b9c9406de3fa11a7762eea7411b2d9c | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2954/60712/301851.py | 436f89a64a28ef464a68627de09377d3f078e7be | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | n = int(input())
l = []
for i in range(n):
l.append(input())
if l==['abcdec', 'cdefead']:
print('noway')
else:
print(l) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
d7c88a13b94209a87db421d5da0c50c4e97b4eea | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/detection/SSD/configs/_base_/datasets/lvis_v1_instance.py | 16d01fea10f4b4dfa5c99fa478d2aaa4f590bff0 | [
"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 | 1,311 | py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# 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 agree... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
0f33959eab8ef6cc6d605bfbe07802891f48c048 | 80d50ea48e10674b1b7d3f583a1c4b7d0b01200f | /src/datadog_api_client/v2/model/sensitive_data_scanner_rule_create.py | 9e33382f8c9e2ce69bdd1ba08b148b75c3305a11 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"MPL-2.0"
] | permissive | DataDog/datadog-api-client-python | 3e01fa630278ad0b5c7005f08b7f61d07aa87345 | 392de360e7de659ee25e4a6753706820ca7c6a92 | refs/heads/master | 2023-09-01T20:32:37.718187 | 2023-09-01T14:42:04 | 2023-09-01T14:42:04 | 193,793,657 | 82 | 36 | Apache-2.0 | 2023-09-14T18:22:39 | 2019-06-25T22:52:04 | Python | UTF-8 | Python | false | false | 2,438 | py | # Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
# This product includes software developed at Datadog (https://www.datadoghq.com/).
# Copyright 2019-Present Datadog, Inc.
from __future__ import annotations
from typing import TYPE_CHECKING
from datadog_api_c... | [
"noreply@github.com"
] | DataDog.noreply@github.com |
5b49c04ce2e7c73708a2853ebd8803f56d991e7b | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/224/usersdata/271/109438/submittedfiles/gravitacional.py | c092ef4337b8198ea1b129171bf661e87ad5e258 | [] | 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,052 | py | # -*- coding: utf-8 -*-
import numpy as np
import funcoes
#ENTRADA
dimensao = int(input('Digite a dimensao das matrizes: '))
matrizA = input('Digite a Matriz A como uma única linha entre aspas: ')
matrizD = input('Digite a Matriz D como uma única linha entre aspas: ')
alfa = int(input('Digite o valor de alfa: '))
#PR... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
3b32b1283cfc2c27318579a2d77dc83c7056e509 | 4379ec4e7ef04711a2bcae68390ebac39c59b370 | /SWEA/5656.py | 5b4e799320e60a077d9fef372358f9212e445981 | [] | no_license | chulhee23/today_ps | e7fb15dfea90438200c09f119c84d788c9fc29a3 | 15c8977253e4b0a137505aa45390d4d9886d4703 | refs/heads/master | 2023-08-07T03:52:45.284518 | 2021-10-01T10:01:03 | 2021-10-01T10:01:03 | 287,305,127 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | import copy
from collections import deque
dx = [-1, 1, 0, 0]
dy = [0, 0, -1, 1]
# test case
# 1. init
n, w, h = map(int, input().split())
arr = [list(map(int, input().split())) for _ in range(h)]
# 폭탄 떨어뜨릴 곳 찾기
| [
"chulhee2351@gmail.com"
] | chulhee2351@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.