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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
18e7fca8d4143e471221237e49f1a2367953adc1 | 1f2445a190e1fdb36b8ace15cdd1de799c4c61b4 | /arst/command_push.py | cc707d2a8c5c30ec522be85979a30474551b1f43 | [] | no_license | bmustiata/ars-py | f9860a48bb63bdf781627108e57d4a8431e35f0a | 0a641399807f17efeb50d355770f014721aa4d38 | refs/heads/master | 2021-06-13T01:05:40.023617 | 2020-11-08T23:50:01 | 2020-11-08T23:50:01 | 140,120,138 | 0 | 0 | null | 2021-03-26T00:27:14 | 2018-07-07T22:15:34 | Python | UTF-8 | Python | false | false | 1,156 | py | import os.path
import pathlib
import shutil
from typing import List
from termcolor_util import yellow
def push_files_to_template(
projects_folder: str, project_name: str, files_to_push: List[str]
) -> None:
for file_name in files_to_push:
recursively_push_file(projects_folder, project_name, file_name... | [
"bogdan.mustiata@gmail.com"
] | bogdan.mustiata@gmail.com |
56e5633ed8f47feba79f4997982cf5abf1919f18 | 941b25a0d0ccd25e4e64293defc2b50a61fccb01 | /Board.py | cb026329b6c90b83267f78d6cc90800b607a043b | [] | no_license | fanzhangg/sliding-tiles | c5a396818ec2d7449309f773df37a46ec7b41c8e | 334bb7df76436aa9429ff6132db8a9ea1afce35f | refs/heads/master | 2020-04-08T20:06:37.554387 | 2018-11-29T15:20:52 | 2018-11-29T15:20:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 568 | py | class Board:
def __init__(self, row, col):
self.ROW = row
self.COL = col
self.tiles = []
def initialize_board(self, tiles: tuple or list) -> None:
expected_size = self.ROW * self.COL - 1
print('The expected size is', expected_size)
if len(tiles) == expected_size:... | [
"vanadiumzhang@gmail.com"
] | vanadiumzhang@gmail.com |
f37a13bf85a34be9aa47183fa9763dcb850c8bbf | 4fb1239a9fd39b0abecde0f0f0b81e1cb3b8f44a | /isy994/items/devices/device_insteon_contact.py | 3a2c8b43a4fe7d50bf9c0317dd32185ab7f7d5a2 | [
"MIT"
] | permissive | simplextech/ISY994v5 | f361066e7712bc590077bdf2799223b136ac6266 | f8e485452a02113f95b1a0f1a57a4d30075c1070 | refs/heads/master | 2020-07-23T00:26:16.730900 | 2019-09-10T03:16:34 | 2019-09-10T03:16:34 | 207,382,914 | 0 | 0 | MIT | 2019-09-09T18:58:59 | 2019-09-09T18:58:59 | null | UTF-8 | Python | false | false | 932 | py | #! /usr/bin/env python
from .device_contact import Device_Contact
from .device_insteon_base import Device_Insteon_Base
class Device_Insteon_Contact(Device_Contact,Device_Insteon_Base):
def __init__(self, container, device_info):
Device_Contact.__init__(self,container,device_info.name,device_info.addres... | [
"mike@4831.com"
] | mike@4831.com |
ad0204c58539514ac30daab92ddf9c5e97cfa7ad | d49390f27ee954ddf5f7f1a9876320e1adec8ad4 | /tests/test_utils.py | 7e47d12b47398cef00ccd93ae15f60caac575053 | [
"MIT"
] | permissive | ssato/pytest-data-from-files | 431e83827d4a2e14dd029089c8fa020b821b0683 | deca8e3ae50351299f90bfe1561e5a32474812fa | refs/heads/main | 2023-08-19T06:32:59.056406 | 2021-10-13T15:15:07 | 2021-10-13T15:15:07 | 412,952,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 690 | py | #
# Copyright (C) 2021 Satoru SATOH <satoru.satoh@gmail.com>
# SPDX-License-Identifier: MIT
#
# pylint: disable=missing-docstring
"""Test cases for tests.utils."""
import pytest
from . import utils as TT
def test_get_basename():
assert TT.get_basename(__file__) == 'utils'
@pytest.mark.parametrize(
('xss', ... | [
"satoru.satoh@gmail.com"
] | satoru.satoh@gmail.com |
a59342015429a8fe98d84c3688d5f300989c9754 | ef158af9d47fb1f0c974b49405174ba5b34e4721 | /polu/prediction_site/incendie.py | 7d9797880c7e7d88bf9c409c3146b094c9c89755 | [] | no_license | LeGrosLezard/bobo | 1227bcae22d9eb7d9e0423009cae154df5466994 | 7c50de512fb22c8bdf1a1127307fc4fd2f371152 | refs/heads/master | 2020-07-01T17:38:14.145955 | 2019-07-01T21:29:49 | 2019-07-01T21:29:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,284 | py | import os
import cv2
import json
import requests
import datetime
import urllib.request
from bs4 import *
import datetime
PATH_LYON = 'https://www.lyoncapitale.fr/?s=incendie'
PATH_MARSEILLE = 'https://www.20minutes.fr/search?q=incendie+marseille'
PATH_PARIS = 'https://www.20minutes.fr/search?q=incendie+pari... | [
"noreply@github.com"
] | LeGrosLezard.noreply@github.com |
301e49dbb4d7faa407729ff514dd2a4fecdb2b45 | 540dbf1622959cc1b3a6853379f6f1f502bdbc24 | /offers/urls.py | 4ea3e242310521d73bca6bf928f385ece1bf7173 | [
"ISC"
] | permissive | pmaigutyak/mp-shop-offers | a5031af2827cee34e671793164ea786d2c4ee016 | 6f3d0934193c7d727d41481b0ebb164b03e34808 | refs/heads/master | 2023-08-02T23:02:09.498271 | 2023-07-19T11:01:34 | 2023-07-19T11:01:34 | 148,797,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py |
from django.urls import path
from offers import views
app_name = 'offers'
urlpatterns = [
path('modal/<int:product_id>/', views.get_price_offer_modal, name='modal'),
path('send/<int:product_id>/', views.send_price_offer, name='send'),
]
| [
"pmaigutyak@gmail.com"
] | pmaigutyak@gmail.com |
99eb738456b493ec54c68eba2eeb0e72884b2519 | 09a8e7ca229a6a95cdd4a426a1c220e9daf98355 | /RBSP/Tools/IntegrateSpectrum.py | afe1dc5f26134ae4cc762e18d03b76f09fcdcc78 | [
"MIT"
] | permissive | mattkjames7/RBSP | 8547bda29ec6c878483c21dc3281852abb256bd4 | 25c37cbba18b681a2f9a4e7955e49a49fc36d698 | refs/heads/master | 2023-07-20T00:31:43.487076 | 2023-07-14T12:30:04 | 2023-07-14T12:30:04 | 177,828,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,344 | py | import numpy as np
from .RelVelocity import RelVelocity
def IntegrateSpectrum(E,PSD,m,Omega,Erange=(0.0,np.inf)):
'''
Integrate the phase space density to get the partial density.
Inputs
======
E : float
Energy in keV.
PSD : float
Phase space density s^3 m^-6. (this includes density)
m : float
Mass in k... | [
"mattkjames7@gmail.com"
] | mattkjames7@gmail.com |
7f0a5b1b270b7e230361b6f791d4e0774ca6ed98 | dbe7e1d9fe2457c26f83095d941e4392e7d30f8c | /django_dashboard/api/test.py | 81e1e97da6599b88239c60f04be0a535b2b26525 | [
"MIT"
] | permissive | keepexploring/smartbiogas | 51e124735ec04bc6b87a8ac75c66c83de6865001 | ca663435b05666113e3c0cb55e6f087c61497208 | refs/heads/master | 2022-12-12T10:42:37.412038 | 2018-07-18T15:29:04 | 2018-07-18T15:29:04 | 111,402,799 | 0 | 0 | MIT | 2022-12-08T00:56:54 | 2017-11-20T11:39:05 | JavaScript | UTF-8 | Python | false | false | 1,051 | py | class Container(models.Model):
pass
class ContainerItem(models.Model):
blog = models.ForeignKey('Container', related_name='items')
# For testing purposes only
class ContainerResource(ModelResource):
class Meta:
queryset = Container.objects.all()
authorization = Authorization()
class Conta... | [
"joel.c@scene.community"
] | joel.c@scene.community |
b7243813f8bf290dd27c60441ca3c453a67e225f | 024214bff5cdd43874d30143ee90131a985c5ce3 | /vycontrol/interface/urls.py | 0c3aaab513ffb0106d0732d02cc9e8dd19f611e2 | [
"MIT"
] | permissive | KennethEhmsen/vycontrol | c20e2d793bd03005ddfd314abc62b4ca3fd292e3 | 5dbebfa1b299ad20b60131d95291ee91c3b9df5c | refs/heads/master | 2023-08-10T11:43:36.001119 | 2020-05-23T05:03:47 | 2020-05-23T05:03:47 | 267,380,513 | 1 | 0 | MIT | 2021-09-22T19:40:01 | 2020-05-27T17:13:06 | null | UTF-8 | Python | false | false | 388 | py | from django.urls import path
from . import views
app_name = 'interface'
urlpatterns = [
path('', views.index, name='interface-list'),
path('interface-show/<slug:interface_type>/<slug:interface_name>', views.interfaceshow, name='interface-show'),
path('interface-firewall/<slug:interface_type>/<slug:interf... | [
"roberto.berto@gmail.com"
] | roberto.berto@gmail.com |
3a9e4f92085e755aa3e85445bf48abb902e2c0a1 | df560dde5ffbae51187041f422c87f7d1544cbe9 | /leetcode/python/841_keys_and_rooms.py | f8f42bb5c92c2b5c43d5bc8fa4770db223f3a8f4 | [
"MIT"
] | permissive | VVKot/coding-competitions | 61c97dbc4fdaeb0a35ff7fa8e55529b579fd1ebb | 7d6e599b223d89a7861929190be715d3b3604fa4 | refs/heads/master | 2021-07-04T17:47:34.246535 | 2020-09-23T20:28:30 | 2020-09-23T20:28:30 | 174,696,391 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | class Solution:
def canVisitAllRooms(self, rooms):
stack = [0]
visited = set(stack)
while stack:
curr = stack.pop()
for room in rooms[curr]:
if room not in visited:
stack.append(room)
visited.add(room)
... | [
"volodymyr.kot.ua@gmail.com"
] | volodymyr.kot.ua@gmail.com |
98d67adeb2aa151c263faa61a4956cb8f620a667 | fa76cf45d7bf4ed533e5a776ecd52cea15da8c90 | /robocorp-python-ls-core/src/robocorp_ls_core/libs/robocop_lib/robocop/exceptions.py | a5d30bd12b3f4d63a76dca5367602c808aafd756 | [
"Apache-2.0"
] | permissive | martinRenou/robotframework-lsp | 8a5d63b7cc7d320c9fed2372a79c8c6772d6481e | 5f23b7374139e83d0aa1ebd30675e762d7a0db86 | refs/heads/master | 2023-08-18T22:26:01.386975 | 2021-10-25T13:46:11 | 2021-10-25T13:46:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,180 | py | class RobocopFatalError(ValueError):
pass
class ConfigGeneralError(RobocopFatalError):
pass
class DuplicatedRuleError(RobocopFatalError):
def __init__(self, rule_type, rule, checker, checker_prev):
msg = (
f"Fatal error: Message {rule_type} '{rule}' defined in {checker.__class__.__na... | [
"fabiofz@gmail.com"
] | fabiofz@gmail.com |
4a6c127e11f77fef064cd6c080ef8f541b4ba12b | 10ec999d273b9a75b3cc5c3e353d611ea7f163b6 | /grappa/operators/attributes.py | 7748bfdcbeb82c4d1d8d8cbe054f6887bb88da79 | [
"MIT"
] | permissive | jcassee/grappa | 721bec7ee2d21fc3fc857f77b9ff6d58b941bfd9 | b128da8aef67501c310701c47508e7318241aa8b | refs/heads/master | 2020-05-05T02:24:30.106837 | 2018-10-02T10:29:16 | 2018-10-02T10:29:16 | 179,636,623 | 0 | 0 | MIT | 2019-04-05T07:24:31 | 2019-04-05T07:24:31 | null | UTF-8 | Python | false | false | 690 | py | # -*- coding: utf-8 -*-
from ..decorators import attribute
@attribute(
operators=(
'to', 'has', 'have', 'satisfy', 'that', 'that_is',
'satisfies', 'include', 'do', '_is', 'which', 'which_is'
)
)
def be(ctx):
"""
Semantic attributes providing chainable declarative DSL
for assertions... | [
"tomas@aparicio.me"
] | tomas@aparicio.me |
dd4e5116fd1f9eecb02b439401c88eaef08b236e | 603a54e14440fbe1c8aaab34c54aedff83489ca5 | /violate_ratio/without_batching/edge_serving_resnet/server.py | 28b9ec0e0aff9025b90bc2aaecb24a34f9b54f54 | [
"MIT"
] | permissive | fkh12345/ICE | 211fdbc62211e6df6c3d90b6ff309bc8c854e01f | f6ed4933c85b541fb971f5e1bfaa814e4e613c32 | refs/heads/main | 2023-04-12T02:05:57.478650 | 2023-03-01T18:08:55 | 2023-03-01T18:08:55 | 500,040,223 | 51 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,093 | py |
import grpc
import time
from concurrent import futures
import inference_pb2 as data_pb2
import inference_pb2_grpc as data_pb2_grpc
from serving import Serving
import io
import torch
import torch.nn as nn
import numpy as np
import torchvision.models as models
import argparse
from dnn_model.lapsrn import Net
from dnn... | [
"unconfigured@null.spigotmc.org"
] | unconfigured@null.spigotmc.org |
647c137facd838ac6488a092188e30f81a6926b1 | 82aace1431e0af949b1294d979a16f8dc18f48c2 | /Python-Web-Basics-Softuni/recipes/venv/Scripts/django-admin.py | a220eda67fd73b94ee6387a63bff85b7b9484757 | [
"MIT"
] | permissive | borisboychev/SoftUni | 6778450417f889f8e89c709897b9e26c7129dbf6 | 22062312f08e29a1d85377a6d41ef74966d37e99 | refs/heads/master | 2023-03-27T13:11:17.378197 | 2021-03-26T09:14:25 | 2021-03-26T09:14:25 | 295,463,442 | 1 | 0 | null | 2020-10-12T12:54:13 | 2020-09-14T15:46:12 | Python | UTF-8 | Python | false | false | 717 | py | #!C:\Users\boris\SoftUni\Python-Web-Basics-Softuni\recipes\venv\Scripts\python.exe
# When the django-admin.py deprecation ends, remove this script.
import warnings
from django.core import management
try:
from django.utils.deprecation import RemovedInDjango40Warning
except ImportError:
raise ImportError(
... | [
"borisboychev007@Gmail.com"
] | borisboychev007@Gmail.com |
933bcaa20d4e347f811ae71388ddb4c071ba5196 | a796865c5ff4dcb7c6a0c848364bd6f7cb3d7a29 | /tests/test_newsgroup20.py | 108161cf2027bfb2e2fbd7932f31709c2db1dccc | [
"Apache-2.0"
] | permissive | yk/chazutsu | d625f6f7f682d713910ce59953841e507ad27262 | ecc42c9ff0f8d47632ba4b4c7385a5fdf4386c10 | refs/heads/master | 2020-03-18T19:43:40.016170 | 2018-05-28T14:52:00 | 2018-05-28T14:52:00 | 135,173,517 | 0 | 0 | Apache-2.0 | 2018-05-28T14:41:16 | 2018-05-28T14:41:16 | null | UTF-8 | Python | false | false | 1,716 | py | import os
import sys
import shutil
import unittest
import requests
sys.path.append(os.path.join(os.path.dirname(__file__), "../"))
import chazutsu.datasets
DATA_ROOT = os.path.join(os.path.dirname(__file__), "data")
class TestNewsGroup20(unittest.TestCase):
def test_extract(self):
r = chazutsu.datasets... | [
"icoxfog417@yahoo.co.jp"
] | icoxfog417@yahoo.co.jp |
a6cdc1e51da55bb4298536a804dbb7eb2605ffe4 | 1cec8afab42c7ed104d414089e30c647b1c79974 | /bubble_sort/main.py | e580cdb2e530946fa2fc46e6f50df54592bcdd83 | [] | no_license | yerassyl94/problems | ea84572aa89178a30fb030a16b2e4e23df3529b9 | c5f3b391c2d94445d96726aaa8572580c4c662bc | refs/heads/master | 2020-08-27T23:57:44.672878 | 2019-11-11T11:35:55 | 2019-11-11T11:35:55 | 217,526,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | def bubble_sort_list(_list: list):
length = len(_list) - 1
for x in range(length):
for y in range(length-x):
if _list[y] > _list[y+1]:
_list[y],_list[y+1]=_list[y+1],_list[y]
return _list
list_=[32,5,3,6,7,54,87]
print(bubble_sort_list(list_))
| [
"you@example.com"
] | you@example.com |
83d7fc9253ee2cb0396a0315ed154dabcc0928ab | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/KCB_MM/YW_KCB_HASPRICELIMIT_GPMM_SHSJ_WDZC_129.py | d6747c9ad8bfc225ae04ed5405c0247a043c057c | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,273 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
sys.path.append("/home/yhl2/workspace/xtp_test//xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test//service")
from ServiceConfig import *
from mainService import *
from QueryStkPriceQty import *
from log import *
sys.path.append("... | [
"418033945@qq.com"
] | 418033945@qq.com |
c82a3e03bf55d608e3c42b98c26484346d260228 | 7f8082a1a88ad6895d1e4b5cf9f3952fe8951ec3 | /miniProject/bookcoversearch/search.py | 1ded489e624618a5a884f2ce23c3e41bfed477d3 | [
"MIT"
] | permissive | matiji66/opencv_study | a33e3fed3e320598d8b3612b387b63658539176d | 9b6354907609c9841915f6300ee5915a9d80906f | refs/heads/master | 2020-03-11T03:34:28.198825 | 2018-01-15T14:04:08 | 2018-01-15T14:04:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,574 | py | from __future__ import print_function
from pyimagesearch.coverdecriptor import CoverDescriptor
from pyimagesearch.covermatcher import CoverMatcher
import argparse
import glob
import csv
import cv2
ap=argparse.ArgumentParser()
ap.add_argument('-d', '--db', required=True,
help="path to the book database")
ap.add_arg... | [
"scotthuang1989@163.com"
] | scotthuang1989@163.com |
a757418f6ddf8e7675ef47658b0381be8f8ab2c4 | 4a1b61cf551db7843050cc7080cec6fd60c4f8cc | /2020/백준문제/IM대비/14696_딱지놀이.py | b574a887a21deac01c3a3e0c4ea705dd1508157c | [] | no_license | phoenix9373/Algorithm | 4551692027ca60e714437fd3b0c86462f635d8ff | c66fd70e14bb8357318e8b8f386d2e968f0c4d98 | refs/heads/master | 2023-08-24T10:01:20.798430 | 2021-10-15T07:57:36 | 2021-10-15T07:57:36 | 288,092,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | # 별4 > 동그라미3 > 네모2 > 세모1 / 무승부
# 무승부: D
N = int(input()) # 1~1000
for _ in range(N):
a = list(map(int, input().split()))[1:]
b = list(map(int, input().split()))[1:]
for i in range(4, 0, -1):
a_cnt = a.count(i)
b_cnt = b.count(i)
if a_cnt > b_cnt:
print('A')
... | [
"phoenix9373@naver.com"
] | phoenix9373@naver.com |
e2f95965a7e29da94724dd80ff83e894d2a77927 | a875495c32524d1f7b05f07337f54df52de2aad0 | /algo/clustering.py | 6bc5b199bbb559d716d424618a3629e094646459 | [
"Apache-2.0"
] | permissive | adrianopls/GRIPy-X | a43188e1ffda37f9f668133f47c3e90589325753 | 21c7fa1f32f8dbb0a5dff93c2bac5acf1f9181ca | refs/heads/master | 2021-07-01T16:57:16.094069 | 2021-03-09T19:29:23 | 2021-03-09T19:29:23 | 218,369,555 | 1 | 1 | Apache-2.0 | 2019-10-30T18:13:12 | 2019-10-29T19:41:01 | Python | UTF-8 | Python | false | false | 2,962 | py | # -*- coding: utf-8 -*-
import numpy as np
from sklearn.cluster import KMeans
from sklearn.mixture import GMM
from sklearn.preprocessing import scale
from sklearn import metrics
def locate_nans(data):
return np.sum(np.isnan(data), axis=1, dtype=bool)
def reorder_clusters(clusters, centers, covars=None):
n... | [
"adrianopaulo@gmail.com"
] | adrianopaulo@gmail.com |
fd7d229621c66ffd6a7ebdf6880af5d34b8f6d9a | bf10231754c95afd40d15b859f31b6157e1d991d | /Conversores a flotante.py | 2372562d67d2de753418adaf194ee28d043af7dd | [] | no_license | smith-sanchez/validadores_en_python | de7849b0f6dde93fff6c8a2db53070f60d101688 | 8dab14429c1e2c5345cddeabff5e10269b6dc6e9 | refs/heads/master | 2020-09-06T22:10:59.153382 | 2019-11-09T01:12:27 | 2019-11-09T01:12:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 828 | py | #Convertir el entero 43 a flotante
x=43
a=float(x)
print(a, type(a))
#Convertir el entero 1453 a flotante
x=1453
b=float(x)
print(b, type(b))
#Convertir el entero 4685 a flotante
x=4685
y=float(x)
print(y, type(y))
#convertir la cadena 1128 a flotante
x="1128"
c=float(x)
print(c, type(c))
#Conve... | [
"noreply@github.com"
] | smith-sanchez.noreply@github.com |
780352d72181bf550978615068022bcd6a8c8189 | 643c1132ac737dcaa68b887ee77155883a762329 | /static_frame/core/index_auto.py | 034e2af0da3c4bf524906972bdb89548aec3fffb | [
"MIT"
] | permissive | flexatone/static-frame | baa071ce61143baabba9b6cd6bae453757ce861b | b41ff788c651ee9fe7006a2404a615c09034a3b6 | refs/heads/master | 2020-08-28T05:06:46.000715 | 2019-10-24T16:34:16 | 2019-10-24T16:34:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,403 | py |
import typing as tp
# from static_frame.core.index_base import IndexBase
from static_frame.core.index import Index
# from static_frame.core.index_hierarchy import IndexHierarchy
from static_frame.core.index import IndexGO
from static_frame.core.util import IndexConstructor
from static_frame.core.util import DTYP... | [
"ariza@flexatone.com"
] | ariza@flexatone.com |
880d01f91b79c5bae80d1fbcc5492413031f7d76 | 5f86944bdf1b810a84c63adc6ed01bbb48d2c59a | /kubernetes/test/test_v1_service_status.py | 1ce1ef5f3c6c9bd4502827d24bfdea8989ba9849 | [
"Apache-2.0"
] | permissive | m4ttshaw/client-python | 384c721ba57b7ccc824d5eca25834d0288b211e2 | 4eac56a8b65d56eb23d738ceb90d3afb6dbd96c1 | refs/heads/master | 2021-01-13T06:05:51.564765 | 2017-06-21T08:31:03 | 2017-06-21T08:31:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 859 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.6.5
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
im... | [
"mehdy@google.com"
] | mehdy@google.com |
6c6b92be69dae51b2f5d2845518c3defea495abe | 6adc166c33bdada82f7509301e25d1c451852d24 | /log/log_config.py | 3fb9c0d9f12ce15977115f4fc21f827713b9fd2f | [] | no_license | liushiwen555/unified_management_platform_backend | ab0a92f38be7f68bc1d3c4570560ea89bf8fcb07 | ae1ade20044b59de1e29288fcd61ba0b71d92be3 | refs/heads/master | 2023-06-25T22:45:24.669052 | 2021-07-27T01:08:24 | 2021-07-27T01:08:24 | 389,808,950 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,172 | py | from log.log_content import log_config
"""
LOG_CONFIG_DICT结构为:
LOG_CONFIG_DICT{
URL_NAME:{
HTTP_METHOD: 生成log的类
}
}
"""
LOG_CONFIG_DICT = log_config.get_config()
class ModelLog(object):
def __init__(self):
self.conf_dict = LOG_CONFIG_DICT
def log(self, request,... | [
"1599932996@qq.com"
] | 1599932996@qq.com |
2630abbdd53c1fc1ab734fcfcc1a981f0a351e73 | 8bbe2351bbd157a46ccf8530cde4e4cc7b0bd3b7 | /trashed_20170508/evan/Entropy.py | ed75ce66a6a3b227a188a9ff686da63efd021400 | [] | no_license | airuibel/py_code | 8dc98d71e79a4c0f785ad5cf81b2ca2073061ebf | 1da9a9dcd37475dd14bab6ae58bca1e2dff4c251 | refs/heads/master | 2020-06-18T03:47:43.754204 | 2018-03-20T09:31:00 | 2018-03-20T09:31:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,366 | py | from __future__ import division
__author__ = 'Victor Ruiz, vmr11@pitt.edu'
import pandas as pd
import numpy as np
from math import log
import random
def entropy(data_classes, base=2):
'''
Computes the entropy of a set of labels (class instantiations)
:param base: logarithm base for computation
:para... | [
"l"
] | l |
b0629394abb4bc1fca15b22b03658e2e3db5dbaf | 89a90707983bdd1ae253f7c59cd4b7543c9eda7e | /programming_python/Dbase/Sql/dumpdb.py | 5f9388d122656adc52dde04932b87d1bff4696fb | [] | no_license | timothyshull/python_reference_code | 692a7c29608cadfd46a6cc409a000023e95b9458 | f3e2205dd070fd3210316f5f470d371950945028 | refs/heads/master | 2021-01-22T20:44:07.018811 | 2017-03-17T19:17:22 | 2017-03-17T19:17:22 | 85,346,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,284 | py | """
display table contents as raw tuples, or formatted with field names
command-line usage: dumpdb.py dbname? table? [-] (dash=formatted display)
"""
def showformat(recs, sept=('-' * 40)):
print(len(recs), 'records')
print(sept)
for rec in recs:
maxkey = max(len(key) for key in rec) # m... | [
"timothyshull@gmail.com"
] | timothyshull@gmail.com |
5d81f00e6ed97d46ea3a1c80d7a52c23666db239 | 91b2fb1fb6df216f2e365c3366bab66a567fc70d | /Week08/每日一题/342. 4的幂.py | 90f118bb6733e9b684bf6a93850ca73ef1b6af84 | [] | no_license | hrz123/algorithm010 | d17aee642f03f607a7984beb099eec18f2de1c8e | 817911d4282d2e226518b3533dff28282a91b3d4 | refs/heads/master | 2022-12-20T14:09:26.365781 | 2020-10-11T04:15:57 | 2020-10-11T04:15:57 | 270,178,423 | 1 | 0 | null | 2020-06-07T03:21:09 | 2020-06-07T03:21:09 | null | UTF-8 | Python | false | false | 2,606 | py | # 342. 4的幂.py
# 1. 暴力解,不解释
# 2. 暴力解法+预计算
# 我们知道输入的整数是32位整数x<2**31-1的,因此我们最大的4的幂次是15
# 所以我们总共有0-15 16种可能性
# 3.大于0且log2后是一个偶数
# 4.位操作:4的幂,二进制位都在1,3,5等位置,00000001, 00000100, 00010000
# 而只是2的幂,二进制都在2,4,6等位置
# 135位置的16进制为0x55555555 32位表示,246的16进制为0xaaaaaaaa,位与上其中一个等于0或1
# 5. 位操作判断是2的幂,对3的余数为1的是4的幂,为2的话是2的幂
class ... | [
"2403076194@qq.com"
] | 2403076194@qq.com |
81a42ccdd857bad5f3dc6eb2f2b2d73362e6ce9e | 09fd456a6552f42c124c148978289fae1af2d5c3 | /Array/1380.py | 1060e1504031b93129f5620c6c68d483b799b102 | [] | no_license | hoang-ng/LeetCode | 60b4e68cbcf54cbe763d1f98a70f52e628ab32fb | 5407c6d858bfa43325363503c31134e560522be3 | refs/heads/master | 2021-04-10T11:34:35.310374 | 2020-07-28T10:22:05 | 2020-07-28T10:22:05 | 248,932,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,332 | py | # 1380. Lucky Numbers in a Matrix
# Given a m * n matrix of distinct numbers, return all lucky numbers in the matrix in any order.
# A lucky number is an element of the matrix such that it is the minimum element in its row and maximum in its column.
# Example 1:
# Input: matrix = [[3,7,8],[9,11,13],[15,16,17]]
# Outp... | [
"hoang2109@gmail.com"
] | hoang2109@gmail.com |
a9b57132d2463d5a1544bb28dc24c79e9975f645 | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/client/gui/Scaleform/daapi/view/meta/FalloutTankCarouselMeta.py | 7f535a3045bd53b0a9708717d041352cc1658195 | [] | no_license | StranikS-Scan/WorldOfTanks-Decompiled | 999c9567de38c32c760ab72c21c00ea7bc20990c | d2fe9c195825ececc728e87a02983908b7ea9199 | refs/heads/1.18 | 2023-08-25T17:39:27.718097 | 2022-09-22T06:49:44 | 2022-09-22T06:49:44 | 148,696,315 | 103 | 39 | null | 2022-09-14T17:50:03 | 2018-09-13T20:49:11 | Python | UTF-8 | Python | false | false | 812 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/meta/FalloutTankCarouselMeta.py
from gui.Scaleform.daapi.view.lobby.hangar.carousels.basic.tank_carousel import TankCarousel
class FalloutTankCarouselMeta(TankCarousel):
def changeVehicle(self, id):
... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
cd8dbe19a67e8ef7bed57e61394fe2abd45dd9cc | c48221dbd1335701178a8b4bfadd22b16fa168fd | /tests/example_app/admin.py | 3bc84c5af51a76dbe4fa83ca91d69cf12bbdce1f | [
"BSD-2-Clause"
] | permissive | prokaktus/django-meta | e92e9c45239993e4d6b350083a84c1d98a01f515 | 21e740f083ea32b150ad012c3bc7941ed920de20 | refs/heads/develop | 2020-04-05T14:35:42.801057 | 2017-05-06T12:26:17 | 2017-05-06T12:26:17 | 94,702,571 | 1 | 0 | null | 2017-06-18T17:31:16 | 2017-06-18T17:31:16 | null | UTF-8 | Python | false | false | 185 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
from django.contrib import admin
from .models import Post
admin.site.register(Post)
| [
"i.spalletti@nephila.it"
] | i.spalletti@nephila.it |
0fffdfcf4e1ec8477a77939f528d77ad467a4a16 | fd25231975acd147e04dc3ed3627c92cb1a4f86c | /FlaskAPI/vir_env/lib/python3.7/site-packages/scipy/sparse/bsr.py | f86c448e1d216ac11586184af2d1e5370407136f | [] | no_license | sumitkutty/Flight-Price-Prediction | 832a2802a3367e655b46d3b44f073d917abd2320 | d974a8b75fbcbfa42f11703602af3e45a3f08b3c | refs/heads/master | 2022-12-25T07:13:06.375888 | 2020-10-08T18:46:44 | 2020-10-08T18:46:44 | 302,366,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:ef0f9bb9c9a9bd37389ba380aa25a50d381d571eaa83888b4205f2d207020fc5
size 24882
| [
"sumitkutty37@gmail.com"
] | sumitkutty37@gmail.com |
3161a5cd27238b9cfa5bc819abae49d5b6fca114 | 36785c0893ab1e2c81c6a03305f42459776a84e0 | /ambra_sdk/service/entrypoints/order.py | f2e0fe900a88d10a1589a4cb0442c3d0b940b6d2 | [
"Apache-2.0"
] | permissive | dicomgrid/sdk-python | 06589f87f33850bd15e6e99fb683bada6492775f | 2618e682d38339439340d86080e8bc6ee6cf21b5 | refs/heads/master | 2022-08-28T14:50:35.864012 | 2022-08-22T12:36:50 | 2022-08-22T12:36:50 | 253,867,502 | 11 | 6 | Apache-2.0 | 2022-04-13T10:06:38 | 2020-04-07T17:36:56 | HTML | UTF-8 | Python | false | false | 259 | py | from ambra_sdk.service.entrypoints.generated.order import \
AsyncOrder as GAsyncOrder
from ambra_sdk.service.entrypoints.generated.order import Order as GOrder
class Order(GOrder):
"""Order."""
class AsyncOrder(GAsyncOrder):
"""AsyncOrder."""
| [
"akapustin@ambrahealth.com"
] | akapustin@ambrahealth.com |
b866c9d98d721c2e46b53ade178d935ac345b7f0 | 20564b667fe6a9fa7c75e9b20e2f0446ec3440c8 | /venv/bin/pip3 | 27feb6ae67391b30f70bc833820ae9d3ff02bf94 | [] | no_license | prashantpandey9/Covid19-India-tracker | a7e544264df92df7c790e5745ef70b69fc39263a | 03df61342dffd12520f5f4172f879e35e9e6fa85 | refs/heads/master | 2023-08-14T00:36:19.974705 | 2021-02-27T11:16:49 | 2021-02-27T11:16:49 | 258,137,688 | 7 | 3 | null | 2021-09-22T19:02:07 | 2020-04-23T08:14:55 | Python | UTF-8 | Python | false | false | 255 | #!/home/prashant/my_project/covid_19/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"prashantpandey94551@gmail.com"
] | prashantpandey94551@gmail.com | |
54f4a480d8c01ce5d7b1aa5e4b8ab7f31dfd0da8 | ad5494244bb4d0d92df8178d96b99b949f9ee04c | /hashing/models.py | 10ed2e0c8732c4953087615021d57659be2234d1 | [] | no_license | razyesh/Hash-gen-SHA256 | 14dbf86fab593bccec9997ec087535ee02995a6c | 5cf91114962e048893c910832460f6984d787a38 | refs/heads/master | 2021-09-26T11:38:28.819734 | 2020-04-03T19:00:57 | 2020-04-03T19:00:57 | 252,815,271 | 0 | 0 | null | 2021-09-22T18:49:48 | 2020-04-03T18:56:29 | Python | UTF-8 | Python | false | false | 156 | py | from django.db import models
# Create your models here.
class Hash(models.Model):
text = models.TextField()
hash = models.CharField(max_length=64) | [
"pudasainirajesh504@gmail.com"
] | pudasainirajesh504@gmail.com |
57895863065f914aab45070167a5407a01d68969 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_hashish.py | 6f095d1a7cb0b473df03c662bf7368e60180a1e3 | [
"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 | 364 | py |
#calss header
class _HASHISH():
def __init__(self,):
self.name = "HASHISH"
self.definitions = [u'a drug, illegal in many countries, made from the cannabis plant and usually smoked']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'nouns'
def run(self, ob... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
61f25521a8ac9bb244b7920b6aad006c7e980101 | 04fcaa42f982bc6c8de1d3a28e83007a5b8b000d | /tests/tests_indiv_jobs/test_ooziejob.py | 31743f67165d76004d2470b532d5a8319dbf825d | [
"BSD-3-Clause"
] | permissive | tadinve/naga | 26622416db7ff81a256a2f51daac0769763ed711 | 52a789ff79cc20aa999f7bb731a1c3cc3acc27fa | refs/heads/main | 2023-08-12T22:45:19.876256 | 2021-09-24T02:15:42 | 2021-09-24T02:15:42 | 389,231,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,583 | py | from ctm_python_client.jobs.hadoop.oozie import OozieJob
import os
from ctm_python_client.core.bmc_control_m import CmJobFlow
from ctm_python_client.session.session import Session
BASE_PATH = os.path.abspath(os.path.dirname(__file__))
with open(BASE_PATH + "/.secrets", "r") as fp:
ctm_uri = fp.readline().strip()
... | [
"vtadinad@bmc.com"
] | vtadinad@bmc.com |
99a71c7b9e27e3157cd4de85ab83cc05e523d4bc | d902ac93fbff644ca2868d5836a9f476f3cd91fd | /wq_csv/util.py | 6bbe34d6c95cb08f37c53383ded1fea23ec6d5ee | [] | no_license | NMWDI/WDIExtractors | 5b3c2ad3562449ba6c3c2467284c9cd3e046837f | 2da9aa7a1bd53d58ff7479f4507fffbc15b3bbb2 | refs/heads/master | 2022-12-24T17:19:35.998182 | 2020-10-02T19:22:48 | 2020-10-02T19:22:48 | 265,703,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,162 | py | # ===============================================================================
# Copyright 2020 ross
#
# 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/LICE... | [
"jirhiker@gmail.com"
] | jirhiker@gmail.com |
196a7d3700530cf459ab672120d0ffb207717998 | c2d5055a7b292d18facce55d975ff8f9a19b5c39 | /examples/list_uarts.py | cbacc1f1a56b6a6c280b9dcd6a600aa50896ddb8 | [
"MIT"
] | permissive | playi/Adafruit_Python_BluefruitLE | 11f6c268436ebf1eb554fdfcf3a58eac0d01816e | 928669aff263b6602365ecfea2a1efe1950c111c | refs/heads/master | 2021-04-18T07:20:13.684162 | 2018-06-04T18:04:26 | 2018-06-04T18:04:26 | 126,250,975 | 2 | 3 | MIT | 2018-08-01T20:06:52 | 2018-03-21T23:04:06 | Python | UTF-8 | Python | false | false | 2,515 | py | # Search for BLE UART devices and list all that are found.
# Author: Tony DiCola
import atexit
import time
import Adafruit_BluefruitLE
from Adafruit_BluefruitLE.services import UART
# Get the BLE provider for the current platform.
ble = Adafruit_BluefruitLE.get_provider()
# Main function implements the program log... | [
"tony@tonydicola.com"
] | tony@tonydicola.com |
02fb7d52b9f2d4dd06d435b3711339f8d9111826 | baf3996414315ffb60470c40c7ad797bf4e6897f | /02_ai/4_cv/1_ml_mastery/1_cv/code/chapter_20/07_model_3vgg_data_aug.py | 02800ffcce5e2f90d1d314cb9dac9b719e6d5e41 | [
"MIT"
] | permissive | thiago-allue/portfolio | 8fbbecca7ce232567aebe97c19944f444508b7f4 | 0acd8253dc7c5150fef9b2d46eead3db83ca42de | refs/heads/main | 2023-03-15T22:10:21.109707 | 2022-09-14T17:04:35 | 2022-09-14T17:04:35 | 207,919,073 | 0 | 0 | null | 2019-11-13T18:18:23 | 2019-09-11T22:40:46 | Python | UTF-8 | Python | false | false | 3,497 | py | # baseline model with data augmentation on the cifar10 dataset
import sys
from matplotlib import pyplot
from keras.datasets import cifar10
from keras.utils import to_categorical
from keras.models import Sequential
from keras.layers import Conv2D
from keras.layers import MaxPooling2D
from keras.layers import Dense
from ... | [
"thiago.allue@yahoo.com"
] | thiago.allue@yahoo.com |
6a6c28212d9e9aabe4376c6f3ca2a32bf4e73053 | f6f4c87a1f2e750530a7d691da43514d84f99f5c | /hw20/a/q3/q3.py | 6ee2af17e499595428e05652bd352713f2bf63d4 | [] | no_license | sarthak77/Basics-of-ML-AI | e941c6653bca95278cc62ee7ba229e8eaf4e309b | cb2ba9d271da919846211cf8496e29aff6beaa46 | refs/heads/master | 2020-07-25T10:33:54.420972 | 2020-01-09T19:25:57 | 2020-01-09T19:25:57 | 208,257,383 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,409 | py | #Import modules
import numpy as np
from numpy import linalg as LA
import matplotlib.pyplot as plt
from sklearn.metrics import mean_squared_error
from sklearn.svm import SVC
import keras
from keras import regularizers
import keras.optimizers
import keras.initializers
from keras.models import Sequential
from keras.mo... | [
"sarthak.singhal@students.iiit.ac.in"
] | sarthak.singhal@students.iiit.ac.in |
e8518de3fd37b928d126d13d14cc0fe03395fbf7 | b838c392fec9934d73b6b605d672667bf1d5e3fd | /backend/application.py | 88743c87cdba3245e549229a5b6501dfa63b214f | [] | no_license | hmisonne/Canoo_SWOPS_test | 25ddcdb624cfeb8542206e3c055a5b4fba95f328 | 01c1556c60680674d51f8047f9c3c5afe8b91a03 | refs/heads/main | 2023-04-10T14:23:43.977490 | 2021-04-23T20:15:16 | 2021-04-23T20:15:16 | 360,990,095 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,834 | py | from flask import Flask
from flask import render_template, abort, redirect, url_for, request, jsonify
from flask_cors import CORS
import json
import uuid
app = Flask(__name__)
CORS(app)
# Configure "database" as json file
database_path = "data.json"
app.config['JSON_DATA'] = database_path
def read_json():
path ... | [
"helene.misonne@gmail.com"
] | helene.misonne@gmail.com |
22c07331e1b110b09e94605b96187b0a4ec40108 | c1960138a37d9b87bbc6ebd225ec54e09ede4a33 | /Week 11/ArnieMartin_CircuitPlayground_Single_Mouse_Button_Advanced.py | 318bd949acb9fb6b6f28b56d917f96a7274d3b7d | [] | no_license | apalileo/ACCD_PHCR_SP21 | 76d0e27c4203a2e90270cb2d84a75169f5db5240 | 37923f70f4c5536b18f0353470bedab200c67bad | refs/heads/main | 2023-04-07T00:01:35.922061 | 2021-04-15T18:02:22 | 2021-04-15T18:02:22 | 332,101,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,597 | py |
# more advanced-ish use of single onboard button to control LMB and RMB
# works with CPX and CPB, copy adafuit_hid to /lib
import board
import time
import digitalio
import busio
import adafruit_lis3dh
import usb_hid
from adafruit_hid.mouse import Mouse
killswitch = digitalio.DigitalInOut(board.SLIDE_SWITCH)
killswit... | [
"55570902+apalileo@users.noreply.github.com"
] | 55570902+apalileo@users.noreply.github.com |
9d01e66f647965d123823224278de34331718f3a | 4e67c2edd71493a98a3f13e5b2073c1d05b1b656 | /Semestre 02/ProjetoIntegrador2/Aula 08.27.2020/Metodos_lista.py | 75d15a7c7e7bd102bbd084a1482db9446b15b851 | [] | no_license | felipellima83/UniCEUB | 05991d7a02b13cd4e236f3be3a34726af2dc1504 | dbc44866545b5247d1b5f76ec6e9b7778e54093e | refs/heads/master | 2023-07-08T19:04:19.830473 | 2021-08-12T12:33:49 | 2021-08-12T12:33:49 | 249,958,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | lista = [ ]
t_lista = int(input("Quantidade: "))
for i in range(t_lista):
n = int(input("Digite o número: "))
lista.append(n)
print(lista)
print(len(lista))
print(sum(lista))
print(max(lista))
print(min(lista))
pesquisa = int(input("Qual: "))
if pesquisa in lista:
posicao = lista.index(pesquisa)
print(p... | [
"felipellima83@gmail.com"
] | felipellima83@gmail.com |
0af3834982b72c9cdf345b6aff6ffd9e7ccea915 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02716/s014491177.py | f6f24c53a93fa9d93bb64a4642c8896800c4707e | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | import sys
sr = lambda: sys.stdin.readline().rstrip()
ir = lambda: int(sr())
lr = lambda: list(map(int, sr().split()))
from collections import defaultdict
def resolve():
N = ir()
A = lr()
dp = defaultdict(lambda: -float('inf'))
dp[0, 0, 0] = 0
for i in range(N):
for j in range(max(i//2-1, 0)... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
bfb26558c8d4426d10ad050db99ba001fa79afe6 | c727d96f9ee57a186ac2f6a069e7863017131d9b | /mypy_boto3_builder/structures/waiter.py | 573b3a99a0ef983c7359c5cc3713e46a8412d8b4 | [
"MIT"
] | permissive | ayobuba/mypy_boto3_builder | 66438be3c9fce1e6215a58692b69496250eda433 | 9315adca025a5831ab1c2c00d3ed8602a21e8c74 | refs/heads/master | 2022-11-08T12:38:00.596915 | 2020-06-09T23:10:30 | 2020-06-09T23:10:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,734 | py | """
Boto3 client Waiter.
"""
from dataclasses import dataclass, field
from typing import List
from botocore.waiter import Waiter as Boto3Waiter
from mypy_boto3_builder.enums.service_module_name import ServiceModuleName
from mypy_boto3_builder.import_helpers.import_string import ImportString
from mypy_boto3_builder.se... | [
"volshebnyi@gmail.com"
] | volshebnyi@gmail.com |
33ae7c9f65c1462e20cf31b50507a4e2a51c791e | a2e638cd0c124254e67963bda62c21351881ee75 | /Extensions/Advanced Corporate Actions/FPythonCode/FCorpActionPayoutViewer.py | aba8a545dc56d44c822c7b513a9f647546083cb7 | [] | no_license | webclinic017/fa-absa-py3 | 1ffa98f2bd72d541166fdaac421d3c84147a4e01 | 5e7cc7de3495145501ca53deb9efee2233ab7e1c | refs/heads/main | 2023-04-19T10:41:21.273030 | 2021-05-10T08:50:05 | 2021-05-10T08:50:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,739 | py | """ Compiled: 2020-09-18 10:38:49 """
#__src_file__ = "extensions/advanced_corporate_actions/./etc/FCorpActionPayoutViewer.py"
import acm
import FUxCore
def SelectFirstItem(objList, itemList):
if objList:
firstItem = objList[0]
itemList.SetData(firstItem)
def RemoveItem(objList, itemList, item):... | [
"81222178+nenchoabsa@users.noreply.github.com"
] | 81222178+nenchoabsa@users.noreply.github.com |
0950fd4826dade797628563d1bc43cbc412d6018 | 7234e6c72eb3f09c4a66dbe91f00fdf7742f010f | /algo/dp/medium/longestArithmeticSequence2.py | 50004a01f60d588e9b4155d465a095777a44c4e1 | [] | no_license | srinathalla/python | 718ac603473e7bed060ba66aa3d39a90cf7ef69d | b6c546070b1738350303df3939888d1b0e90e89b | refs/heads/master | 2021-06-13T06:11:42.653311 | 2021-02-19T06:01:41 | 2021-02-19T06:01:41 | 150,374,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | from typing import List
class Solution:
def longestArithSeqLength(self, A: List[int]) -> int:
dp = {}
for i in range(1, len(A)):
for j in range(i):
dp[i, A[i] - A[j]] = dp.get((j, A[i] - A[j]), 1) + 1
print(dp)
return max(dp.values())
s = Solut... | [
"srinathb10j.ik@gmail.com"
] | srinathb10j.ik@gmail.com |
c17b10b518d979feca78ccbe1e9788aeba9bd12a | 37a776779a43662ed9bb6523f1f42fd3dc215610 | /TTHAnalysis/python/tools/treeReaderArrayTools.py | f35c73164ab905d806528e773e44aa78dd865187 | [] | no_license | ashrafkasem/cmgtools-lite | 818b3bc42ee3b5944074b45bc74248b8c32fa514 | 14d0a465aa5cfaa2036a38fcc2589cda159c6f72 | refs/heads/80X | 2022-12-31T02:07:00.683384 | 2017-01-25T10:19:40 | 2017-01-25T10:19:40 | 109,703,088 | 0 | 0 | null | 2017-11-06T14:06:09 | 2017-11-06T14:06:09 | null | UTF-8 | Python | false | false | 4,008 | py | import types
import ROOT
def initTree(tree):
tree.entry = -1
tree._ttreereader = ROOT.TTreeReader(tree)
tree._ttreereader.SetEntry(0)
tree._ttrvs = {}
tree._ttras = {}
tree._leafTypes = {}
tree._ttreereaderversion = 1
tree.arrayReader = types.MethodType(getArrayReader, tree)
tree.va... | [
"gpetruc@gmail.com"
] | gpetruc@gmail.com |
d5b36533b86e2e386538d1e81c4dcd407fa84e4e | b0d0dbb0742e3925bc8adab9bb7b7ee458972ad6 | /analayze.py | 13faa7de5dd2d27767b804c06edf05fc13229fab | [
"Apache-2.0"
] | permissive | miyosuda/dendritic_bp | 0cd0e23da0db7ba7460f7b209a92362f9f0f28fe | fd831b6ad9ae1993a14ba970408b80abfd45f0b1 | refs/heads/master | 2020-04-05T12:47:53.112472 | 2019-04-12T00:46:59 | 2019-04-12T00:46:59 | 156,880,868 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,657 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
from model import Layer, LAYER_TYPE_BOTTOM, LAYER_TYPE_HIDDEN, LAYER_TYPE_TOP, LowPassFilter
from option import Option
# TopとBottomだけを接続して分析するためのコード
class Network(ob... | [
"miyoshi@narr.jp"
] | miyoshi@narr.jp |
b794c2df5ea3e950d2a988e2baa61785911770f8 | 2dd560dc468af0af4ca44cb4cd37a0b807357063 | /Leetcode/378. Kth Smallest Element in a Sorted Matrix/solution1.py | 85aed3e0043f6c962b512d91df8783c990105928 | [
"MIT"
] | permissive | hi0t/Outtalent | 460fe4a73788437ba6ce9ef1501291035c8ff1e8 | 8a10b23335d8e9f080e5c39715b38bcc2916ff00 | refs/heads/master | 2023-02-26T21:16:56.741589 | 2021-02-05T13:36:50 | 2021-02-05T13:36:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | class Solution:
def kthSmallest(self, matrix: List[List[int]], k: int) -> int:
lo, hi = matrix[0][0], matrix[-1][-1]
while lo <= hi:
mid = (lo + hi) >> 1
loc = sum(bisect.bisect_right(m, mid) for m in matrix)
if loc >= k:
hi = mid - 1
e... | [
"info@crazysquirrel.ru"
] | info@crazysquirrel.ru |
e8937677ed1449ab35310cecf64433fe455a1935 | 835abbf0309503caddba77f4ed94ea3209e8784f | /kurs_dla_sredniozaawansowanych/itertools_groupby.py | 7404c6c1405458b65739d460cc96b78a58e667c3 | [] | no_license | rafal-mizera/UDEMY | 46873a01223a31b36de84fcfd13a5b9b1cf262e8 | d463613ecd470dae4f17ce59d2f815f70942ea07 | refs/heads/master | 2023-07-19T12:14:44.818156 | 2021-09-01T16:14:37 | 2021-09-01T16:14:37 | 402,125,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 606 | py | import os, itertools
def scantree(path):
for el in os.scandir(path):
if el.is_dir():
yield el
yield from scantree(el.path)
if not el.is_dir():
yield el
listing = scantree(r"C:\\Users\RMZ\PycharmProjects")
listing = sorted(listing,key= lambda x: x.is_dir())
for... | [
"rafalmizera11@gmail.com"
] | rafalmizera11@gmail.com |
c04acce25630ba2428d0ebcd3095b7bceebd7a59 | c75ec82316ed5322c5844912ce9c528c24360b9f | /nsd1909/py02/day02/jiecheng.py | 966d2d9c92ecc9d5f7c1468b18df28cbad74f5c0 | [] | no_license | MrZhangzhg/nsd2019 | a94cde22f2e4bd648bb9e56ca63827f558f3c083 | 54f6d2c7b348a69f13ad5f38f2fbdc8207528749 | refs/heads/master | 2021-08-22T17:38:27.697675 | 2020-02-22T08:36:21 | 2020-02-22T08:36:21 | 183,539,489 | 21 | 24 | null | 2020-05-17T12:07:55 | 2019-04-26T02:06:16 | HTML | UTF-8 | Python | false | false | 385 | py | def func(n):
if n == 1:
return 1
else:
return n * func(n - 1)
# 5 * func(4) # 不能直接返回,需要将func(4)的结果与5相乘,得到的结果再返回
# 5 * 4 * func(3)
# 5 * 4 * 3 * func(2)
# 5 * 4 * 3 * 2 * func(1)
# 5 * 4 * 3 * 2 * 1
if __name__ == '__main__':
... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
43114d2f7132bdd755e261c108c200afc4f4c9a5 | 3b84c4b7b16ccfd0154f8dcb75ddbbb6636373be | /google-cloud-sdk/lib/googlecloudsdk/surface/compute/instances/set_iam_policy.py | b9eea24fbd21a269b6f8e9fd753b33d2e48e35d9 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | twistedpair/google-cloud-sdk | 37f04872cf1ab9c9ce5ec692d2201a93679827e3 | 1f9b424c40a87b46656fc9f5e2e9c81895c7e614 | refs/heads/master | 2023-08-18T18:42:59.622485 | 2023-08-15T00:00:00 | 2023-08-15T12:14:05 | 116,506,777 | 58 | 24 | null | 2022-02-14T22:01:53 | 2018-01-06T18:40:35 | Python | UTF-8 | Python | false | false | 717 | py | # Copyright 2015 Google Inc. All Rights Reserved.
"""Command to set IAM policy for an instance resource."""
from googlecloudsdk.api_lib.compute import iam_base_classes
from googlecloudsdk.calliope import base
@base.Hidden
@base.ReleaseTracks(base.ReleaseTrack.ALPHA)
class SetIamPolicy(iam_base_classes.ZonalSetIamPol... | [
"joe@longreen.io"
] | joe@longreen.io |
19b8bad12ca06aa46842267e1530a1532d13ae81 | 1ef56dcfef70ee14df8956eedd171f74406594af | /erp/biz/contact_unit_biz.py | 44cf2026076d3860ea2709dc3884f82a98010696 | [] | no_license | journeyends/webtest | 6c54ff19e01cd0cd99a34bcae55dd5701abf132f | 2a24c6d7c52aa627edfbba3dd5eb9ccc16abe9fb | refs/heads/master | 2020-04-17T07:38:52.873722 | 2019-03-21T09:36:50 | 2019-03-21T09:36:50 | 166,378,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | from erp.idal.i_contact_unit_dal import I_contact_unit_dal
class Contact_unit_biz:
dal = I_contact_unit_dal().instance()
def getList(self, condition={}, user_info={}):
dal = Contact_unit_biz.dal
return dal.getList(condition=condition, user_info=user_info)
| [
"songliyang@goldmantis.com"
] | songliyang@goldmantis.com |
d91ca4161a07129e9b9b27f17cd0465ab467fa7e | 5ec7a72cab10dd39e0cc877caa1cb97c3cd9f3de | /garuda/models/dq/operation.py | ba1d5125ca3eb27edc83cce8bc6439db91f6ad76 | [] | no_license | raufer/spark-dsl | a1d311263fe48f64859c04cd63a79f48d8cd8fa4 | a0fbf9561ba4567bc5d40bf2c7d289e214712aa6 | refs/heads/main | 2023-04-11T19:29:11.661273 | 2021-01-26T18:34:23 | 2021-01-26T18:34:23 | 367,982,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,039 | py | import logging
from pydantic import BaseModel
from pydantic import validator
from garuda.dsl.mappings.operations import DSL_OPERATIONS
from garuda.models.dq.argument import Argument
from typing import List
logger = logging.getLogger(__name__)
class Operation(BaseModel):
"""
An operation represents a a Boo... | [
"raufer92@gmail.com"
] | raufer92@gmail.com |
71ba4f507651adad9a4a6bea16e4fb6403802870 | dbc4a65c17645fe2b77d4acd22d6c53ace261f89 | /Numpy_bs/boolSetopSorting.py | 3bc13b81a4446580efc48bf257a421f0260eef06 | [] | no_license | felipeguth/basics | 52fba5e94c4ebeda53a881a4f3f806e10a000c98 | 40669c03324e44a36466d760e0b6af923e0fafd0 | refs/heads/master | 2023-08-15T10:30:59.759551 | 2021-08-20T18:21:43 | 2021-08-20T18:21:43 | 203,874,748 | 0 | 0 | null | 2023-07-22T14:17:41 | 2019-08-22T21:16:55 | HTML | UTF-8 | Python | false | false | 2,257 | py | import numpy as np
# We create a 5 x 5 ndarray that contains integers from 0 to 24
X = np.arange(25).reshape(5, 5)
# We print X
print()
print('Original X = \n', X)
print()
# We use Boolean indexing to select elements in X:
print('The elements in X that are greater than 10:', X[X > 10])
print('The elements in X that... | [
"felipeguth@gmail.com"
] | felipeguth@gmail.com |
874eb69589c1c8e3384d0af1565f3fb7bbaa4eb5 | 19da1a56f137a08772c347cf974be54e9c23c053 | /lib/adafruit_bitmap_font/bitmap_font.py | b958a6d5e9f99646e075e137ab049f2028ea3062 | [] | no_license | mk53202/mk53202-timeclock-pyportal | d94f45a9d186190a4bc6130077baa6743a816ef3 | 230a858d429f8197c00cab3e67dcfd3b295ffbe0 | refs/heads/master | 2021-02-04T05:38:25.533292 | 2020-02-27T22:45:56 | 2020-02-27T22:45:56 | 243,626,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,343 | py | # The MIT License (MIT)
#
# Copyright (c) 2019 Scott Shawcroft for Adafruit Industries LLC
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limit... | [
"mkoster@stack41.com"
] | mkoster@stack41.com |
9c97389a9de5ea9c3f054a8cc24a3d65143ec055 | 3da991a057cd81de802c40da2edd640878685258 | /test/test_op_normalization.py | c706451847070bc4b6095de92fb86e51b8490ca8 | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | sjx0451/pytorch | 9f5b1c0c7c874f9da72c0190dc131944ba828ab7 | 3544f60f7602081398ee62bc5d652a87f4743dab | refs/heads/master | 2022-12-01T22:30:29.888370 | 2020-08-13T23:45:58 | 2020-08-13T23:48:31 | 287,421,291 | 2 | 0 | NOASSERTION | 2020-08-14T02:06:11 | 2020-08-14T02:06:11 | null | UTF-8 | Python | false | false | 4,347 | py | import torch
from torch.testing import FileCheck
from torch.testing._internal.common_utils import \
(run_tests)
from torch.testing._internal.jit_utils import JitTestCase
from torch.testing._internal.common_device_type import \
(instantiate_device_type_tests, skipCPUIfNoLapack, skipCUDAIfNoMagma)
# Information... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
ca558233180fa9b596dcb99d1b085674e4516699 | e12edf6cde9670eb3d4f1596cd648fddefaf480f | /acm-practice/2017-10-26/D_suspension_binary_search.py | 1661f660b42de137344239ea94ac4938ef6967cb | [] | no_license | VitamintK/AlgorithmProblems | 7a7786a0377a236f5cc82ae3b623ecad7f0eb025 | 34da53e2e7d3b5964bafd1f3edb2e00dea9a729d | refs/heads/master | 2023-06-29T00:56:53.360829 | 2023-06-14T16:33:14 | 2023-06-14T16:33:14 | 25,510,479 | 11 | 4 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | d, s = map(int, input().split())
l = 0
r = 123456789
eps = 0.000001
import math
for i in range(123456):
a = (r+l)/2
term = (d/(2*a))
sag = 0.5*a*(math.exp(term) + math.exp(-term)) - a
if sag < s:
r = a
else:
l = a
term = d/(2*l)
print(l * (math.exp(term) - math.exp(-term)))
| [
"kevinwang@kevinwang.us"
] | kevinwang@kevinwang.us |
96f75f958e7146a11ac99d2224a3a125a48406dc | 60ca69e2a4c6b05e6df44007fd9e4a4ed4425f14 | /grand_contest/037/A.py | 96f513b224075418d215cfb1e943c483fd3a12f5 | [
"MIT"
] | permissive | FGtatsuro/myatcoder | 12a9daafc88efbb60fc0cd8840e594500fc3ee55 | 25a3123be6a6311e7d1c25394987de3e35575ff4 | refs/heads/master | 2021-06-13T15:24:07.906742 | 2021-05-16T11:47:09 | 2021-05-16T11:47:09 | 195,441,531 | 0 | 0 | MIT | 2021-05-16T11:47:10 | 2019-07-05T16:47:58 | Python | UTF-8 | Python | false | false | 1,445 | py | import sys
input = sys.stdin.readline
sys.setrecursionlimit(10 ** 7)
s = input().strip()
if len(s) == 1:
print(0)
sys.exit(0)
if len(s) == 2 and s[0] == s[1]:
print(0)
sys.exit(0)
# [i][0]: index iが1文字分割
# [i][1]: index iが2文字分割
dp = [[0] * 2 for _ in range(len(s))]
# 3文字以上では1文字/2文字の仮想結果が使われる
# 1文字
dp[... | [
"204491+FGtatsuro@users.noreply.github.com"
] | 204491+FGtatsuro@users.noreply.github.com |
03ba7abe47bcab7d9872f3847417428cf3b2f187 | cc2bb9ccc66783ac7d37454e4784df5e4a2d80f4 | /server/mysqldb.py | f2feb13c8fbf3f3239e7424de6323d998304ed62 | [] | no_license | ronnyzh/Tornado_Server | f308b7e9c2112167b04cbe324e37b1f891999187 | 42112d39e4dea128d059dbfa53c410f3774dc4b1 | refs/heads/master | 2021-05-22T22:10:26.694262 | 2020-04-04T23:39:14 | 2020-04-04T23:39:14 | 253,118,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | # -*- coding:utf-8 -*-
# !/bin/python
"""
Author: ronnyzh
Date: 2019/10/15
Revision: 1.0.0
Description: Description
"""
from configs import CONFIGS
from model.model_mysql import MySQLdb
from model.model_asyn_mysql import Async_Mysql
import tornado.ioloop
from public.public_logger import *
mysql_logger ... | [
"ronnyzh@yeah.net"
] | ronnyzh@yeah.net |
a404e63cb25c5f20ac03b7c7d3a2529e11c00d6f | 1388bcd6de659ffefe97e7e6c2aee685b5e7c534 | /stubs/stubs/Utilityrate4.pyi | 0b9fd269d9178b5f58e6650042aed54b3107d49f | [
"BSD-3-Clause"
] | permissive | BRIK-Engenharia/pysam | a7b4b543131043510023a5c17b057ead0b39d440 | 2a4115f34419edf9776b0bbc7b3f453c958ce734 | refs/heads/master | 2022-12-06T05:15:35.364375 | 2020-09-03T22:59:17 | 2020-09-03T22:59:17 | 297,958,820 | 1 | 0 | BSD-3-Clause | 2020-09-23T12:13:32 | 2020-09-23T12:13:32 | null | UTF-8 | Python | false | false | 6,297 | pyi | class Common(object):
def assign(self):
pass
def export(self) -> Dict[Dict]:
pass
def __init__(self, *args, **kwargs):
pass
analysis_period = float
load_escalation = tuple
rate_escalation = tuple
system_use_lifetime_output = float
ur_annual_min_charge = float
ur_dc_enable = float
ur_dc_flat_mat = ... | [
"dguittet@nrel.gov"
] | dguittet@nrel.gov |
f1c6b8b4f3add343bd97fe50d6c9ac34e1446bc6 | 099c5d0d21de342ad578be0fa06dde6be10b4e95 | /saltcloud/clouds/joyent.py | 5f6729d01b3fa922fc700a5e3345b90c34949cca | [
"Apache-2.0"
] | permissive | lexual/salt-cloud | b09835795a0221c3d283e7e17c60ac68f76ee226 | 063ac2050f27181ea6da8e3ece528974f8284b72 | refs/heads/master | 2021-01-17T12:21:01.688573 | 2012-08-13T19:46:19 | 2012-08-13T19:46:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,900 | py | '''
Joyent Cloud Module
===================
The Joyent Cloud module is used to intereact with the Joyend cloud system
it requires that the username and password to the joyent accound be configured
.. code-block:: yaml
# The Joyent login user
JOYENT.user: fred
# The Joyent user's password
JOYENT.pass... | [
"thatch45@gmail.com"
] | thatch45@gmail.com |
d9b758cc0246650a55d4873c5080463895e12575 | 6e7b1305887d25ae60251ce54ed2b94dc37ea06c | /Ecommerce/shopping/migrations/0008_order_product.py | 310c90465104e681244c4f32141b478425d05d25 | [] | no_license | Aadeshkale/assignment | 5bedaa95c6d2457d87b239117259c2a17d765c0f | bac0fa5523e3e6179dfe907f493a677adda7993b | refs/heads/master | 2023-01-08T04:11:14.847962 | 2020-11-12T09:37:15 | 2020-11-12T09:37:15 | 304,293,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,723 | py | # Generated by Django 3.1.1 on 2020-10-14 07:18
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('shopping', '0... | [
"aadeshkale0@gmail.com"
] | aadeshkale0@gmail.com |
d45f5f1e80eb49d2b796c96c0f6f74279719c04f | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/Calorimeter/CaloCondPhysAlgs/share/CaloNoise2Ntuple_data.py | b272eccf19df896d9085998da90333c610274a83 | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,388 | py | ###############################################################
#
# Job options file for CaloNoise2Ntuple
#
#==============================================================
# configuration for data, read noise from database through CaloNoiseToolDB
if 'RunNumber' not in dir():
RunNumber = 258914
if 'LumiBlock' not i... | [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
916d8ba379bd9fe0dcfbd4758f028f88f55562fa | d044e88e622d9f4ca350aa4fd9d95d7ba2fae50b | /application/budget/migrations/0005_auto_20210518_1730.py | 2650551c2c42b96e2b7524ac633bd6e6f8c70b2f | [] | no_license | Tiny-Hands/tinyhands | 337d5845ab99861ae189de2b97b8b36203c33eef | 77aa0bdcbd6f2cbedc7eaa1fa4779bb559d88584 | refs/heads/develop | 2023-09-06T04:23:06.330489 | 2023-08-31T11:31:17 | 2023-08-31T11:31:17 | 24,202,150 | 7 | 3 | null | 2023-08-31T11:31:18 | 2014-09-18T19:35:02 | PLpgSQL | UTF-8 | Python | false | false | 683 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.16 on 2021-05-18 17:30
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('budget', '0004_auto_20210120_1903'),
]
operations = [
migrations.AlterFiel... | [
"scrishel@sbcglobal.net"
] | scrishel@sbcglobal.net |
49f3bee05885e479558b18dcff7a038de7a5e3ba | 250db406ad4a62e3d576e55b979bcfdc3407f226 | /Leetcode分类/1. Array /Leetcode_27 Remove Element/my_solution.py | eb387a47da03f53268d0f9347d5e5e9c16df2127 | [] | no_license | chenshanghao/Interview_preparation | 0830f0e461a2fe287b8ec24ae761974f50268767 | 4e7701d32990604c16ba18a8083c2108c0232306 | refs/heads/master | 2020-04-25T02:36:19.499364 | 2019-06-10T04:51:00 | 2019-06-10T04:51:00 | 172,446,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | class Solution(object):
def removeElement(self, nums, val):
"""
:type nums: List[int]
:type val: int
:rtype: int
"""
index = 0
for i in range(len(nums)):
if nums[i] != val:
nums[index] = nums[i]
index += 1
re... | [
"21551021@zju.edu.cn"
] | 21551021@zju.edu.cn |
f37cd5437e19fb4a0472381b67b5f554307c24ad | 1e263d605d4eaf0fd20f90dd2aa4174574e3ebce | /components/ally-http/__setup__/ally_http/__init__.py | b06c5790549446b5d6d3390a164ae4559aab9422 | [] | no_license | galiminus/my_liveblog | 698f67174753ff30f8c9590935d6562a79ad2cbf | 550aa1d0a58fc30aa9faccbfd24c79a0ceb83352 | refs/heads/master | 2021-05-26T20:03:13.506295 | 2013-04-23T09:57:53 | 2013-04-23T09:57:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,077 | py | '''
Created on Jul 15, 2011
@package: ally http
@copyright: 2012 Sourcefabric o.p.s.
@license: http://www.gnu.org/licenses/gpl-3.0.txt
@author: Gabriel Nistor
Contains setup and configuration files for the HTTP REST server.
'''
from ally.container import ioc
# -------------------------------------------------------... | [
"etienne@spillemaeker.com"
] | etienne@spillemaeker.com |
fdf0029733f0c29f70e2242919078fe8131e8b6b | f428482945cf11d0fa17aa1a0607f43ec8427614 | /run_profile.py | 3a8a3189a42f462a73a5eb880fb0a24e0f0f8f45 | [] | no_license | SomervilleJesusBall/KebleBall | 22e3367797a0a9f740271dff40d5359e69a80f9d | 09a7d9c6b86365c31827bfd44fa50d4527a646e4 | refs/heads/master | 2021-01-22T05:23:55.882724 | 2016-03-13T18:28:09 | 2016-04-14T12:17:45 | 47,200,067 | 0 | 0 | null | 2015-12-01T15:56:32 | 2015-12-01T15:56:31 | null | UTF-8 | Python | false | false | 469 | py | #! /usr/bin/env python2
# coding: utf-8
"""Executable to run Eisitirio with profiling."""
from __future__ import unicode_literals
from werkzeug.contrib import profiler
from eisitirio import app
from eisitirio import system # pylint: disable=unused-import
APP = app.APP
APP.config.from_pyfile('config/development.py'... | [
"samuel.littley@toastwaffle.com"
] | samuel.littley@toastwaffle.com |
0901587cb483f5f586d862ad701e89b6273493d3 | 78649dd3fdfafc3edb7ef5b0de52096846cd9c28 | /networking_mlnx_baremetal/ufmclient/session.py | 4e246c17d2045be65610b4e4a49a1dd690b63064 | [
"Apache-2.0"
] | permissive | IamFive/networking-mlnx-baremetal | 38c99b127a7b08850e9ce5c83f0a6539ec4fe9b6 | 8d65405a8546803f903cadd0cf0818007a1d0119 | refs/heads/master | 2023-02-02T05:47:02.166816 | 2020-12-02T08:01:40 | 2020-12-02T12:29:02 | 296,988,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,375 | py | # Copyright 2020 HuaWei Technologies. 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 require... | [
"iampurse@vip.qq.com"
] | iampurse@vip.qq.com |
bf3d53245cc918b53d410fb4e30485d53f1b055f | 98d34935bfa9b709c07df539267daa6f3a6db880 | /kikar_hamedina/mks/factories/member_factory.py | b99cce744d9c25d90690e045e9aff5fd62a4e562 | [] | no_license | hasadna/kikar-hamedina | c4a0e939fdafb1f8d187db1be35aba5fde2350be | d08e9231fd4c91c4024ced26b760b87f93bb8607 | refs/heads/dev | 2020-12-25T18:04:22.817008 | 2019-03-30T15:27:13 | 2019-03-30T15:27:13 | 18,186,117 | 12 | 36 | null | 2019-03-30T15:28:06 | 2014-03-27T18:11:01 | Python | UTF-8 | Python | false | false | 373 | py | import factory
from mks import models
from party_factory import PartyFactory
class MemberFactory(factory.DjangoModelFactory):
class Meta:
model = models.Member
name = factory.sequence(lambda n: u"Name {}".format(n))
name_en = factory.sequence(lambda n: u"Name {}".format(n))
current_party = fa... | [
"yotammanor@gmail.com"
] | yotammanor@gmail.com |
92faa3cc6c9b46d19d31350aa17bf68325786ac2 | d1c3a9a4289b1aa262285b5de5084f3074893703 | /games/forms.py | 2465c9d8ef21a1a536c51afe892d02c167bedc86 | [
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-public-domain"
] | permissive | Code-Institute-Submissions/stream-three-project-1 | a9ce00a608b5d12d0c4ef48546c265f0110fb55e | 96a5718a22f57b908ea5eb76298ceffdb1f17c8b | refs/heads/master | 2020-03-21T11:13:19.873566 | 2018-06-24T14:57:31 | 2018-06-24T14:57:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | from django import forms
from datetime import datetime
# Form to select a season when viewing the league standings. Just a simple select field to choose a year.
class SeasonSelectForm(forms.Form):
SEASON_OPTIONS = (
(year, year) for year in range(2000, datetime.now().year+1)
)
season = forms.Cho... | [
"andrew@andrewstead.co.uk"
] | andrew@andrewstead.co.uk |
f43a8030903ababf84b372f2a71583c30458595b | 49273a7e6e0d4726f38fab1c430b86dbfc4b2345 | /leetcode/p49.py | ffbeedf32f08e603a01ecbb7f7ff820bb024d919 | [] | no_license | adqz/interview_practice | d16d8c56436dde1f7fa96dc0d8dcc827295e0ff0 | f55fb9c0a39c2482c98cc452c185a938a59ad57c | refs/heads/master | 2023-01-11T01:30:03.353498 | 2023-01-03T14:48:08 | 2023-01-03T14:48:08 | 207,520,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,289 | py | '''
@author: adnan
Problem No. 98. Validate Binary Search Tree (Medium)
Runtime: 40 ms, faster than 96.02% of Python3 online submissions for Validate Binary Search Tree.
Memory Usage: 15.1 MB, less than 100.00% of Python3 online submissions for Validate Binary Search Tree.
'''
from typing import List
import tree_visua... | [
"ashahpur@eng.ucsd.edu"
] | ashahpur@eng.ucsd.edu |
07a49fac0cb7ec2461404a59bf4502820bac0d55 | fcccdb133bf5611c69781080fdbcbb9f4b70c222 | /input/parameters/lithium-ion/experimental_functions/electrolyte_conductivity.py | 40a418d3a98ec2576698a3f0b4f8afde213c94fe | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | galvanic653960572/PyBaMM | d04036e9e0fec12ceb1d9b4b50cfb3bcfe25f3f1 | 4869d358b3452c7ca627d713823a67fdfdafa4bd | refs/heads/master | 2020-04-09T05:04:28.951580 | 2018-12-03T15:20:44 | 2018-12-03T15:21:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | def lfp_cond(c):
"""
Conductivity of LiPF6 in EC:DMC as in Newman's Dualfoil code. This
function is in dimensional form.
Parameters
----------
c: double
lithium-ion concentration
"""
c = c / 1000
sigma_e = 0.0911 + 1.9101 * c - 1.052 * c ** 2 + 0.1554 * c ** 3
retur... | [
"valentinsulzer@hotmail.com"
] | valentinsulzer@hotmail.com |
e08622954352b9e1b6540769c6217dd480ef770c | 7ab41799fd38489c93282f1beb3b20e7ef8ff165 | /python/111.py | ec32bd42ef24b2c21f576226dc84e6a8613f5d9a | [] | no_license | scturtle/leetcode-sol | 86c4095df6b31a9fcad683f2d63669ce1691633c | e1a9ce5d9b8fe4bd11e50bd1d5ba1933de845db7 | refs/heads/master | 2020-04-23T00:01:37.016267 | 2015-11-21T04:15:27 | 2015-11-21T04:15:27 | 32,385,573 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | class Solution(object):
def minDepth(self, root):
"""
:type root: TreeNode
:rtype: int
"""
if root is None:
return 0
if root.left is None:
return 1 + self.minDepth(root.right)
if root.right is None:
return 1 + self.minDepth(... | [
"scturtle@gmail.com"
] | scturtle@gmail.com |
740243c8c2e06db15307652ccdf16cb6d4e8ecf1 | 79e0f8d64cb928ccc6a026b32dcbb3c8fcefa2de | /script/compile-coffee.py | 179931a5db0a31bf159caccbe6107c6d847aaeef | [
"MIT"
] | permissive | mapbox/atom-shell | 939bca5dec3f6cf7460a3b34d0517e78ed0da928 | 2125a0be826170c3a84af1e75572b06402f3add9 | refs/heads/master | 2023-06-05T10:46:29.802386 | 2014-08-04T16:05:26 | 2014-08-04T16:05:26 | 22,614,165 | 1 | 6 | MIT | 2023-04-09T15:03:19 | 2014-08-04T17:58:00 | null | UTF-8 | Python | false | false | 953 | py | #!/usr/bin/env python
import os
import subprocess
import sys
SOURCE_ROOT = os.path.dirname(os.path.dirname(__file__))
WINDOWS_NODE_PATHs = [
'C:/Program Files/nodejs/node.exe',
'C:/Program Files (x86)/nodejs/node.exe',
]
def main():
input_file = sys.argv[1]
output_dir = os.path.dirname(sys.argv[2])
coff... | [
"zcbenz@gmail.com"
] | zcbenz@gmail.com |
f33c5c5eacd1cacf4b21708ba3c979e5958862da | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/cv/detection/SSD_for_PyTorch/configs/cascade_rcnn/cascade_mask_rcnn_x101_32x4d_fpn_20e_coco.py | 1a90b9ca274de0d0f5104b2b0f1741b2778accc7 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | 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,019 | py | # Copyright 2022 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 agreed... | [
"chenyong84@huawei.com"
] | chenyong84@huawei.com |
63de0a760734ad6f525a1164cff32a69663a6382 | 7d43ba52d958537905cfdde46cc194a97c45dc56 | /WEB/Networks/Organizations/Registrars/RIR.py | 332105180c0a42d4b6aa3d37dd9dc1d0d59402e4 | [] | no_license | Koshmatova/workbook | 3e4d1f698a01f2be65c1abc83ee251ebc8a6bbcd | 902695e8e660689a1730c23790dbdc51737085c9 | refs/heads/master | 2023-05-01T02:30:46.868027 | 2021-05-10T03:49:08 | 2021-05-10T03:49:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 792 | py | RIR
#regional internet Registry
РЕГИСТРАТОРЫ
#получают блоки и номера автономных сисм у IANA
#выдают блоки LIR
ARIN
#обслуживает
Северную Америку
Багамы
Пуэро-Рико
Ямайку
APNIC
#обслуживает
Южную Азию
Восточную Азию
Юго-Восточную Азию
Австралию
Океанию
AfriNIC
#обслуживает
Африку
... | [
"mkone112@gmail.com"
] | mkone112@gmail.com |
3d5ca3e81b309d799bafa57120c402ad3bbbaa20 | ad16b0c0178e4543d0c44ad3d90f90c6beeb4f5a | /di2.py | cb2a72a47cbef1e402302ce534f3005b82c52464 | [] | no_license | timmonspatrick/HemoDub | 09cb61e8e33ee8b64c9e6011d4ae8679d07950d9 | 4e6cceb44456c498cc1d6d55f8369099d0d5d947 | refs/heads/master | 2021-04-27T09:34:40.935684 | 2018-05-31T08:29:04 | 2018-05-31T08:29:04 | 122,491,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,278 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Dec 14 15:02:19 2017
@author: Patrick
"""
from __future__ import print_function
import numpy as np
from residue_distribution import alphabets
conjoint_letters = ["A", "I", "Y", "H", "R", "D", "C"]
aa_letters = ['A', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'K', 'L', 'M', 'N', 'P',... | [
"timmons.patrick@outlook.com"
] | timmons.patrick@outlook.com |
9e47a121f146030bb57a04733eda6fd89bd415c2 | 512f48fdcfa78e322526cf47163110009b84bf73 | /test/test_page_of_policy_asset.py | b94a86aae703c7f17bf5ff820a90730167232177 | [
"MIT"
] | permissive | confluentinc/vm-console-client-python | 9a0f540c0113acf68ee9dc914715bc255e4d99f4 | ccbd944a0e0333c73e098b769fe4c82755d29874 | refs/heads/master | 2023-07-18T10:33:58.909287 | 2021-09-02T20:52:20 | 2021-09-02T20:52:20 | 402,559,283 | 0 | 0 | MIT | 2021-09-02T20:49:56 | 2021-09-02T20:49:56 | null | UTF-8 | Python | false | false | 879 | py | # coding: utf-8
"""
Python InsightVM API Client
OpenAPI spec version: 3
Contact: support@rapid7.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagger_client
from swagger_client.models.page_of_policy_asset impo... | [
"zachary_youtz@rapid7.com"
] | zachary_youtz@rapid7.com |
93f00f64a3499f2739b654603d11c63bd28647f0 | c36bd73ddbf668b25908df4ed2d4729d3ea792a7 | /venv/lib/python3.5/site-packages/facebook_business/adobjects/favoriterequest.py | 29354ce89e9dd9e997aa5312a28ef6b0f0f1c467 | [] | no_license | Suraj-KD/AbsentiaVR_Task | 1e236f88063b97666c8e188af7fddc0fd7ea3792 | 1de364e0464ac79cefc26077318021570993d713 | refs/heads/master | 2022-12-10T20:40:31.396380 | 2019-01-31T19:19:36 | 2019-01-31T19:19:36 | 168,398,946 | 0 | 0 | null | 2022-12-08T01:34:30 | 2019-01-30T19:08:22 | Python | UTF-8 | Python | false | false | 5,371 | py | # Copyright 2014 Facebook, Inc.
# You are hereby granted a non-exclusive, worldwide, royalty-free license to
# use, copy, modify, and distribute this software in source code or binary
# form for use in connection with the web services and APIs provided by
# Facebook.
# As with any software that integrates with the Fa... | [
"surajdubey302@gmail.com"
] | surajdubey302@gmail.com |
a5a67527ca645c09a5eda7d574e9c5751ba8d7c7 | bcc04939aa70675c9be19c0bf4a9642877db46b1 | /qa/admin.py | fb3490662c6887235e08bad516912b69be9dcd6b | [
"MIT"
] | permissive | zkeshtkar/gapbug | 164398e2ddd8f952d5851eab19e34f9f84a080e1 | eec5baf9b4346aef26bcb10e48ddcb358140d708 | refs/heads/main | 2023-06-20T07:39:50.084126 | 2021-07-16T13:31:10 | 2021-07-16T13:31:10 | 387,550,452 | 0 | 0 | MIT | 2021-07-19T17:53:20 | 2021-07-19T17:53:19 | null | UTF-8 | Python | false | false | 187 | py | from django.contrib import admin
from .models import Question
class QuestionAdmin(admin.ModelAdmin):
list_display = ("title", "user")
admin.site.register(Question, QuestionAdmin)
| [
"mshirdel@gmail.com"
] | mshirdel@gmail.com |
1b961f70e65bde6e2cf6a2d5479f8a1db3b842ef | 7ecc7092c70d28cfbc4229aca95267673f3b2b57 | /quru/server/mq_client.py | cab3ad58929c75dac7fb68c377ee1f2f1f96f8ad | [
"MIT"
] | permissive | ShawnHan1993/quru | 403bd6499a18901a02378eae82da73f828090107 | 6b103a54d8228e4e2d44b06cc068c60a44b02d67 | refs/heads/main | 2023-07-17T19:38:43.855085 | 2021-09-03T01:40:25 | 2021-09-03T14:07:11 | 400,223,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,594 | py | import asyncio
import time
import typing
import aio_pika
import pika
import aiormq
from ..quru_logger import logger
from ..env import (BROADCAST_EXCHANGE_NAME, MAIN_EXCHANGE_NAME, MQ_HOST,
MQ_PORT, MQ_RETRY, RABBITMQ_PASSWORD, RABBITMQ_USERNAME,
RPC_EXCHANGE_NAME)
class BaseMqC... | [
"shawnhan1029@gmail.com"
] | shawnhan1029@gmail.com |
2d7c95b9adc03370debcc3242e5f0acf53ab7a6f | 020fbf1db497520abcb30cd3889cfe61c601723f | /practice/readmodclass.py | 491a456b4862d0be7e5870f5afe2748e2fdea45c | [] | no_license | bluecrt/first-project | bc53a49ae23c3cc6beb0ede4d00d94e4ad568771 | 7f5f376adcaa0d48caf4540db6613f843d40e173 | refs/heads/master | 2023-06-21T19:16:46.644489 | 2021-07-22T13:13:15 | 2021-07-22T13:13:15 | 386,676,255 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | import classcars
car = classcars.Cars('red', 'big')
print('your car\'s color is:{},shape is:{},now you can drive it。'.format(car.color, car.shape)) | [
"email"
] | email |
a6fb58c89014ee062dd4f0919c71670b7ccf61ec | 444a9480bce2035565332d4d4654244c0b5cd47b | /research/audio/FastSpeech/src/dataset.py | e72e66213e867feab300003b59edf5352fb51bbb | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license"
] | permissive | mindspore-ai/models | 7ede9c6454e77e995e674628204e1c6e76bd7b27 | eab643f51336dbf7d711f02d27e6516e5affee59 | refs/heads/master | 2023-07-20T01:49:34.614616 | 2023-07-17T11:43:18 | 2023-07-17T11:43:18 | 417,393,380 | 301 | 92 | Apache-2.0 | 2023-05-17T11:22:28 | 2021-10-15T06:38:37 | Python | UTF-8 | Python | false | false | 5,247 | py | # Copyright 2022 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 agreed to... | [
"a.denisov@expasoft.tech"
] | a.denisov@expasoft.tech |
891767424910c6312d21ec2883cabb1ee174ed30 | 094a82883b0f4490dbca6c042e129faf0593d7bc | /thingflow/filters/timeout.py | 714092327ac119541bf3e1f1efb166cdb5bf6395 | [
"Apache-2.0"
] | permissive | kesking82/thingflow-python | 904495aa370fb0fdef5e1eb162f0553a37bd7271 | 4c00deafd1bf425ec90ef2159fc5f3ea2553ade8 | refs/heads/master | 2020-04-21T13:05:57.615247 | 2019-02-28T09:59:13 | 2019-02-28T09:59:13 | 169,587,091 | 0 | 0 | Apache-2.0 | 2019-02-07T14:44:45 | 2019-02-07T14:44:44 | null | UTF-8 | Python | false | false | 4,506 | py | # Copyright 2016 by MPI-SWS and Data-Ken Research.
# Licensed under the Apache 2.0 License.
"""Timeout-related output things and filters.
"""
from thingflow.base import OutputThing, DirectOutputThingMixin, FunctionFilter,\
FatalError, filtermethod
class Timeout(OutputThing, DirectOutputThing... | [
"jeff@data-ken.org"
] | jeff@data-ken.org |
958691096444cbd3d3c96fb700112e2199f368ca | e86851297175203451374021595659adbd516b59 | /tools/convert2txt.py | eecab18170bcdafe344373ef87bedb7667c58484 | [
"MIT"
] | permissive | stcolumbas/free-church-psalms | f0417d07af449300a5ada758dc95e153712b0e9e | 0eee5faa19306a79d77a55019ff82fcba72fc9b4 | refs/heads/master | 2022-12-16T15:31:44.907547 | 2017-12-08T22:53:40 | 2017-12-08T22:53:40 | 28,723,518 | 2 | 0 | null | 2022-12-07T23:51:49 | 2015-01-02T19:23:24 | Elm | UTF-8 | Python | false | false | 1,290 | py | import os
from utils import (load_scottish_psalter, load_sing_psalms, make_output_folder,
remove_folder, remove_markup, zip_folder)
def write_text_file(psalm, output_folder, fname):
fname += ".txt"
with open(os.path.join(output_folder, fname), 'w') as f:
text = psalm['name'] + "\r\... | [
"montgomery.dean97@gmail.com"
] | montgomery.dean97@gmail.com |
60995d970bc68dc1ec94fb35ac1deb625a4a25b0 | 648f742d6db2ea4e97b83c99b6fc49abd59e9667 | /common/vault/oas/models/v1_release.py | 390e9e08ca27c8e6365b47a2aae883c73a864c3e | [] | no_license | jmiller-tm/replit | c56ce63718f6eb2d9b53bd09d3f7b3ef3496cb86 | c8e6af3268c4ef8da66516154850919ea79055dc | refs/heads/main | 2023-08-30T00:49:35.738089 | 2021-11-16T23:09:08 | 2021-11-16T23:09:08 | 428,809,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,968 | py | # coding: utf-8
"""
vault/kernel/core_api/proto/v1/accounts/core_api_account_schedule_tags.proto
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: version not set
Generated by: https://github.com/swagger-api/... | [
"jmiller@jmiller-tm00769-mbp.nomad.thomac.net"
] | jmiller@jmiller-tm00769-mbp.nomad.thomac.net |
24eec6af70636c91b4a73525876f8dd6d1baaa4a | d932716790743d0e2ae7db7218fa6d24f9bc85dc | /net/data/verify_certificate_chain_unittest/expired-root/generate-chains.py | 93d5bb72522e7d46dc7a0d48bd93b24afe02747a | [
"BSD-3-Clause"
] | permissive | vade/chromium | c43f0c92fdede38e8a9b858abd4fd7c2bb679d9c | 35c8a0b1c1a76210ae000a946a17d8979b7d81eb | refs/heads/Syphon | 2023-02-28T00:10:11.977720 | 2017-05-24T16:38:21 | 2017-05-24T16:38:21 | 80,049,719 | 19 | 3 | null | 2017-05-24T19:05:34 | 2017-01-25T19:31:53 | null | UTF-8 | Python | false | false | 1,185 | py | #!/usr/bin/python
# Copyright (c) 2016 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.
"""Certificate chain with a root, intermediate and target. The root has a
smaller validity range than the other certificates, making it... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
897de58d13bf05f061a944969efdd949a05fd250 | 70d3a0b9592d67627613806361996848cbdf6e81 | /tribune/urls.py | 743c5c2d51d89d1e34935298e5819d997537bf86 | [] | no_license | markmurimi/moringa-tribune | 38c85bfbde40b0f6540f9c0c33150f8d8cb2672e | 51ced550760bfcf05c97889cbef5c891ed33c8e1 | refs/heads/master | 2020-03-15T11:07:25.408649 | 2018-05-18T05:25:23 | 2018-05-18T05:25:23 | 132,112,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | py | from django.conf.urls import url,include
from django.contrib import admin
from django.contrib.auth import views
from rest_framework.authtoken.views import obtain_auth_token
urlpatterns = [
url(r'^api-token-auth/', obtain_auth_token),
url(r'^admin/', admin.site.urls),
url(r'',include('news.urls')),
url... | [
"murimimg180@gmail.com"
] | murimimg180@gmail.com |
a8f12a818bd905bf27433ceb1d88cd1adcb6fd03 | bca9c2fa3c4c3d06dd612280ce39090a9dfab9bd | /neekanee/job_scrapers/plugins/org/link/ecri.py | 454de8cc4ab4aed3dae40d464a9b0baad832bcf6 | [] | no_license | thayton/neekanee | 0890dd5e5cf5bf855d4867ae02de6554291dc349 | f2b2a13e584469d982f7cc20b49a9b19fed8942d | refs/heads/master | 2021-03-27T11:10:07.633264 | 2018-07-13T14:19:30 | 2018-07-13T14:19:30 | 11,584,212 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,543 | py | import re, urlparse, urllib
from neekanee.jobscrapers.jobscraper import JobScraper
from neekanee.htmlparse.soupify import soupify, get_all_text
from neekanee_solr.models import *
COMPANY = {
'name': 'Economic Cycle Research Institute - ECRI',
'hq': 'Plymouth Meeting, PA',
'home_page_url': 'http://www.ec... | [
"thayton@neekanee.com"
] | thayton@neekanee.com |
76cdb6dfccc2ed384bfad32b928caa9558191f83 | 9eee1566e436a883fa3bd0266c6a7375e34ab4d7 | /notes/cli/commands/document/modify.py | 14ee5e002dbbd79ebb3e9e1fe2bda613817eda8d | [] | no_license | gropax/qiq-django | aa87fa070bf2083aba9043ebc96c2287be2cf7e5 | 31f8c6ad717994bd9b37fcdde3fec8549be5aec1 | refs/heads/master | 2020-07-09T05:19:13.117991 | 2017-01-10T16:54:52 | 2017-01-10T16:54:52 | 65,904,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,902 | py | import os
from core.cli.command import Command, command
from notes.cli.utils import Utils
from notes.cli.commands.document import DocumentCommand
@command('modify', DocumentCommand)
class ModifyCommand(Command, Utils):
aliases = ('mod',)
def add_arguments(self, parser):
parser.add_argument('name_or_i... | [
"maximedelaudrin@gmail.com"
] | maximedelaudrin@gmail.com |
308c563f76e19aceed010d3587c7917ad4876a05 | ccfe4eb1a0df72da1ffb35d082ce4eedcf3a55e0 | /grade/views.py | 63fda731f48957eefbc2fed69edd739dd1f5d9ec | [] | no_license | chydream/djangoDemo | a807a8f93f59dee4ecde031388a2cdb5172b3e84 | 94df813dcf3877a46dad572d5421e33862100a0d | refs/heads/master | 2022-07-17T16:34:04.343259 | 2020-05-20T03:29:10 | 2020-05-20T03:29:10 | 258,780,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 819 | py | from django.db.models import Sum, Max, Count
from django.http import HttpResponse
from django.shortcuts import render
# Create your views here.
from grade.models import Grade, Student
def page_count(request):
# num = Grade.objects.filter(student_name= '张三').aggregate(total=Sum('score'))
# print(num)
# ma... | [
"yong.chen@doone.com.cn"
] | yong.chen@doone.com.cn |
ee5485a406a84015222484f56a780b6e480a68cd | 37ba62db61fc4ec62634638763a984cbfbe40fe3 | /day40/聊天/client1.py | 774d118ed33968502dfa2d9a623bffb169cd56ad | [] | no_license | lt910702lt/python | ca2768aee91882c893a9bc6c1bdd1b455ebd511f | c6f13a1a9461b18df17205fccdc28f89854f316c | refs/heads/master | 2020-05-09T22:54:22.587206 | 2019-09-17T09:02:53 | 2019-09-17T09:02:53 | 181,485,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | import socket
import time
sk = socket.socket()
sk.connect(('127.0.0.1', 8080))
while True:
sk.send(b'hi')
ret = sk.recv(1024).decode('utf-8')
print(ret)
time.sleep(1)
sk.close() | [
"1103631738@qq.com"
] | 1103631738@qq.com |
f2921abb6806d16d0f7ddc14a97f9baeff9ea3f2 | f0856e60a095ce99ec3497b3f27567803056ac60 | /Dacon/01newstopic_4_StratifiedKFold.py | 4133bad05dab0a9658e9397d51e417687e2a2d98 | [] | no_license | hjuju/TF_Study-HAN | dcbac17ce8b8885f5fb7d7f554230c2948fda9ac | c0faf98380e7f220868ddf83a9aaacaa4ebd2c2a | refs/heads/main | 2023-09-04T09:13:33.212258 | 2021-10-27T08:00:49 | 2021-10-27T08:00:49 | 384,371,952 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,418 | py | import numpy as np
import re
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
from icecream import ic
from sklearn.metrics import accuracy_score,log_loss
from sklearn.model_selection import StratifiedKFold
import datetime
import tensorflow as tf
from tensorflow.keras import Sequential
from ten... | [
"tkackeowjs@naver.com"
] | tkackeowjs@naver.com |
26c8a0b64e7d7cd923089885b32824ea3c70e05b | 3d2f5c005bbf4b4194fc105b9c2492d2bd09109c | /dynamic_scraper/utils/processors.py | bd0c67b62fb18e5f462ab21b7c780165b1adcc79 | [] | no_license | mtaziz/django-dynamic-scraper | e9a51a3b95a84767412df5edb9806dae5bdb69e1 | 87ae65ec97a405e03e1c2493637581bfe2545410 | refs/heads/master | 2021-01-22T01:43:55.587001 | 2016-01-07T09:43:51 | 2016-01-07T09:43:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,393 | py | #Stage 2 Update (Python 3)
from __future__ import unicode_literals
from builtins import str
import datetime
from scrapy import log
def string_strip(text, loader_context):
if not isinstance(text, str):
text = str(text)
chars = loader_context.get('string_strip', ' \n\t\r')
return text.strip(chars)
... | [
"Holger.Drewes@googlemail.com"
] | Holger.Drewes@googlemail.com |
8e45a5d0f33b6ef3c3ec1f9a9cbe1fafc2635b40 | aef4faef04d851fe24f2b3f28ae98daa2152e543 | /spikestim/negbin_bayes.py | c4b32098dcf07116803003630d8ad78e1e479204 | [] | no_license | dattalab/spikestim | b1580eec250e0a6b03796b200dfe22b15112228b | 631152b3f173dc6c8fa2601ad917f899dc1210b9 | refs/heads/master | 2021-01-21T08:44:00.379078 | 2015-12-04T13:53:51 | 2015-12-04T13:53:51 | 45,796,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,267 | py | from __future__ import division
import numpy as np
from pybasicbayes.distributions import NegativeBinomial
'''
The code in this file provides utilities for Bayesian estimation of negative
binomial parameters through MCMC methods provided by pybasicbayes.
The main function to use is get_posterior_samples(data, num_s... | [
"mattjj@csail.mit.edu"
] | mattjj@csail.mit.edu |
e1f6613cc9681c42b7d3e9225e62499c04ee0236 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_2/VelvetTie/pancakes.py | c27cdec091f729b20528e32b3b22c5d62d391cef | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 1,853 | py | import sys
def flip(to_flip):
"""
>>> flip('-')
'+'
>>> flip('+')
'-'
>>> flip('+++')
'---'
>>> flip('-+')
'-+'
>>> flip('--+')
'-++'
:param to_flip:
:return:
"""
num_pancakes = len(to_flip)
flipped = [0 for i in range(num_pancakes)]
for i in ra... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
b6d9a025d803dd7983357c17927e7543de6c6a3d | c2415d039d12cc3b1d587ce497527ff62867df41 | /authentication/config.py | 618701e23120609d0033d92185799d74b676d777 | [
"MIT"
] | permissive | admin-dashboards/django-dashboard-light | dc207c07d1987b7b4af52c449502ccd797d4d979 | 96142cf7f9e807e575a1d444e1bb291d3f956652 | refs/heads/master | 2022-09-04T16:48:08.087092 | 2022-08-23T07:37:03 | 2022-08-23T07:37:03 | 232,156,115 | 1 | 0 | MIT | 2020-01-06T18:02:01 | 2020-01-06T18:02:00 | null | UTF-8 | Python | false | false | 173 | py | # -*- encoding: utf-8 -*-
"""
License: MIT
Copyright (c) 2019 - present AppSeed.us
"""
from django.apps import AppConfig
class AuthConfig(AppConfig):
name = 'authcfg'
| [
"developer@rosoftware.ro"
] | developer@rosoftware.ro |
a42a79d97b8e29b148476dc6d40564bfd92ecc97 | d644b6cabb4fa88cf900c59799a2897f5a0702d8 | /tests/base_tests/polygon_tests/test_triangulate.py | 47fe7d21c053c0b7be0a50fce9abd3e709ea7763 | [
"MIT"
] | permissive | lycantropos/gon | c3f89a754c60424c8e2609e441d7be85af985455 | 177bd0de37255462c60adcbfcdf76bfdc343a9c1 | refs/heads/master | 2023-07-06T01:11:57.028646 | 2023-06-26T20:47:14 | 2023-06-27T00:30:06 | 194,597,548 | 15 | 1 | MIT | 2023-06-27T00:30:07 | 2019-07-01T04:06:06 | Python | UTF-8 | Python | false | false | 546 | py | from functools import reduce
from operator import or_
from hypothesis import given
from gon.base import (Polygon,
Triangulation)
from . import strategies
@given(strategies.polygons)
def test_basic(polygon: Polygon) -> None:
result = polygon.triangulate()
assert isinstance(result, Tria... | [
"azatibrakov@gmail.com"
] | azatibrakov@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.