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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
58be4518bcc02c88e3fe519fe8cc98faaf47f62f | 75fa11b13ddab8fd987428376f5d9c42dff0ba44 | /smoke-test/tests/test_stateful_ingestion.py | a10cf13a08029da9a728f7d6532ae0e04b1eefc9 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause",
"MIT"
] | permissive | RyanHolstien/datahub | 163d0ff6b4636919ed223ee63a27cba6db2d0156 | 8cf299aeb43fa95afb22fefbc7728117c727f0b3 | refs/heads/master | 2023-09-04T10:59:12.931758 | 2023-08-21T18:33:10 | 2023-08-21T18:33:10 | 246,685,891 | 0 | 0 | Apache-2.0 | 2021-02-16T23:48:05 | 2020-03-11T21:43:58 | TypeScript | UTF-8 | Python | false | false | 5,402 | py | from typing import Any, Dict, Optional, cast
from datahub.ingestion.api.committable import StatefulCommittable
from datahub.ingestion.run.pipeline import Pipeline
from datahub.ingestion.source.sql.mysql import MySQLConfig, MySQLSource
from datahub.ingestion.source.state.checkpoint import Checkpoint
from datahub.ingest... | [
"noreply@github.com"
] | RyanHolstien.noreply@github.com |
ffda0a09de33d284ab2df4cc442161c7af34907f | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_examples/_algorithms_challenges/leetcode/leetCode/LinkedList/160_IntersectionOfTwoLinkedLists.py | 02ca4ec4485da1426b1045081c588a002f6a40d7 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 557 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution(object):
def getIntersectionNode(self, headA, headB):
# Refer to:
# https://leetcode.com/dis... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
d4035a0d109421eeaa4a7aa57eb5f56252559836 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/118/usersdata/37/25629/submittedfiles/questao2.py | 8a87584abfbf2f20ff1af27fd15c677482690be2 | [] | 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 | 512 | py | tom1=1
tom2=2
tom3=3
tom4=4
tom5=5
tom6=6
tom7=7
tom8=8
tom9=9
t0m10=10
tom0=0
l=[]
n=input('Digite n: ')
for i in range(0,n,1):
for i in range(0,m.shape(0),1):
for j in range(0,m.shape(1),1):
m=m.append(input('Digite 0 ou -1: ')
if m[i,j]!=0
d=(m[i,j]-((m[i,... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
94fa1da6010571b7f8dc49b5540b59295bb345fc | ac227cc22d5f5364e5d029a2cef83816a6954590 | /applications/physbam/physbam-lib/Scripts/Archives/pd/sim/CLIENT_LIBRARY.py | e7a5d4c3b369bd10ee2e36f79dfcf8ecb4aacd02 | [
"BSD-3-Clause"
] | permissive | schinmayee/nimbus | 597185bc8bac91a2480466cebc8b337f5d96bd2e | 170cd15e24a7a88243a6ea80aabadc0fc0e6e177 | refs/heads/master | 2020-03-11T11:42:39.262834 | 2018-04-18T01:28:23 | 2018-04-18T01:28:23 | 129,976,755 | 0 | 0 | BSD-3-Clause | 2018-04-17T23:33:23 | 2018-04-17T23:33:23 | null | UTF-8 | Python | false | false | 4,921 | py | from pd.common import CONFIG
from pd.common import SOCKET
import sys
import time
import os
import socket
import dialog
client=None
try:
client=SOCKET.CLIENT(CONFIG.pdsim_server_host,CONFIG.pdsim_server_port,
(CONFIG.client_private_key_file,CONFIG.client_certificate_file,CONFIG.ca_certificate_file... | [
"quhang@stanford.edu"
] | quhang@stanford.edu |
b7040f5517b2041949cb1948f352b486386a60f6 | d1d79d0c3889316b298852834b346d4246825e66 | /blackbot/core/wss/ttp/art/art_T1069.002-4.py | b2323cce9e6f0197c920a21ed0d2d5a454bf2cc0 | [] | no_license | ammasajan/Atomic-Red-Team-Intelligence-C2 | 78d1ed2de49af71d4c3c74db484e63c7e093809f | 5919804f0bdeb15ea724cd32a48f377bce208277 | refs/heads/master | 2023-07-17T12:48:15.249921 | 2021-08-21T20:10:30 | 2021-08-21T20:10:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,876 | py | from blackbot.core.utils import get_path_in_package
from blackbot.core.wss.atomic import Atomic
from terminaltables import SingleTable
import os
import json
class Atomic(Atomic):
def __init__(self):
self.name = 'Discovery/T1069.002-4'
self.controller_type = ''
self.external_id = 'T1069.002'... | [
"root@uw2artic201.blackbot.net"
] | root@uw2artic201.blackbot.net |
c36fd5af1a819d31260212e83fad532b77b86bca | 7bbc83f3f84d7e5057cb04f6895082ab3e016e90 | /keras/keras09_val2.py | b7f8415c59b79aa0aea11813adddbfec31dea9dc | [] | no_license | osy1223/bit_seoul | 908f6adf007c0a7d0df2659b4fae75eb705acaea | b523d78c7b80d378a2d148b35466304f10bf4af4 | refs/heads/master | 2023-02-02T14:26:40.120989 | 2020-12-18T00:46:04 | 2020-12-18T00:46:04 | 311,279,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,584 | py | import numpy as np
#1. 데이터 준비
x_train=np.array([1,2,3,4,5,6,7,8,9,10,11,12,13,14,15])
y_train=np.array([1,2,3,4,5,6,7,8,9,10,11,12,13,14,15])
# x_val = np.array([11,12,13,14,15])
# y_val = np.array([11,12,13,14,15])
# x_pred=np.array([16,17,18])
x_test = np.array([16,17,18,19,20])
y_test = np.array([16,17,18,19,20])
... | [
"osu1223@gmail.com"
] | osu1223@gmail.com |
a842165c139624026322c930813f9c75e602bb52 | 0e4a037398cf0a54004d4ab272ebe4ddb296fe7f | /config/settings.py | a4245207b9b55badc3bf291ebc7977ed55f94861 | [] | no_license | sug5806/Blog | 9aacf1c8c1d78688163ae9ef93d23bc252b2b1ec | aa24629722c079f768d7fcde3a937223cb2ff5e0 | refs/heads/develop | 2022-12-17T16:48:09.204870 | 2019-06-01T12:27:30 | 2019-06-01T12:27:30 | 188,932,485 | 0 | 1 | null | 2022-12-08T05:10:54 | 2019-05-28T01:34:59 | Python | UTF-8 | Python | false | false | 3,601 | py | """
Django settings for config project.
Generated by 'django-admin startproject' using Django 2.2.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
# ... | [
"sug5806@gmail.com"
] | sug5806@gmail.com |
77120a6fa5a36871153e38ba22f1a9f83d82483e | 0adf94fc39a02018165b62e93dd83edddd041230 | /.history/Jobs/views/views_1_20190221112754.py | 2132bf17a5068dace16ac781e78dd077e3aeab86 | [] | no_license | SabitDeepto/BrJobs | 1e3baa143331cf46b9c70911c6644d1efd4fffd6 | 1a458c8c667f8093a2325d963e5542655467c7aa | refs/heads/master | 2020-04-24T08:02:26.350007 | 2019-03-17T05:53:30 | 2019-03-17T05:53:30 | 171,818,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,295 | py | # from django.contrib.auth.decorators import login_required
from django.shortcuts import render
# from .models import SolutionPost
def home(request):
return render(request, 'basic/index.html')
def test(request):
return render(request, 'test.html')
# def update_profile(request, user_id):
# user = User... | [
"deepto69@gmail.com"
] | deepto69@gmail.com |
87193fc338f23a42a20af7ae9ae3eaa872a6f802 | c533017c711b7edf3fb8590504c983286a509804 | /logging_level.py | 8fe5066a5caa1ec87ca7e6a6cb84c5d8893826b2 | [] | no_license | zgotter/Flask | 78dface6b7968087aa19f7221d21d3dbd8793dda | c0ed83812a4cdd7ce70ca900712c6ac40f9c71d0 | refs/heads/master | 2022-06-17T18:41:28.008422 | 2020-05-08T08:05:06 | 2020-05-08T08:05:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | import logging
# 파일로 남기기 위해 filename='test.log' parameter로 추가한다.
logging.basicConfig(filename='test.log', level=logging.DEBUG)
logging.debug("debug")
logging.info("info")
logging.warning("warning")
logging.error("error")
logging.critical("critical")
| [
"shkim4738@gmail.com"
] | shkim4738@gmail.com |
2a36a2937b9885b3dd22b6f636af9dbbc8d2d620 | ca66a4283c5137f835377c3ed9a37128fcaed037 | /djangoPIWebsite/pages/urls.py | 27c2ff3beec290d2c3c8ca0f634526b361686a73 | [] | no_license | NamithaKonda09/majorProject | f377f7a77d40939a659a3e59f5f1b771d88889ad | 4eff4ff18fa828c6278b00244ff2e66522e0cd51 | refs/heads/master | 2023-06-04T20:25:38.450271 | 2021-06-24T19:03:46 | 2021-06-24T19:03:46 | 370,240,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | from django.urls import path
from . import views
urlpatterns = [
path('',views.analysis, name='home'),
path('dashboard/', views.dashboard, name='dashboard'),
path('annotate/', views.upload_annotate, name='annotate'),
path('test/', views.upload_test, name='test'),
path('analysis/', views.analy... | [
"namithakonda09@gmail.com"
] | namithakonda09@gmail.com |
425c8d1b40bc20b6c30f8231fc233c7a216592df | d66818f4b951943553826a5f64413e90120e1fae | /hackerrank/Algorithms/Circular Array Rotation/solution.py | 2b18de59ae789f0cc2f536aa5aec470e5256052f | [
"MIT"
] | permissive | HBinhCT/Q-project | 0f80cd15c9945c43e2e17072416ddb6e4745e7fa | 19923cbaa3c83c670527899ece5c3ad31bcebe65 | refs/heads/master | 2023-08-30T08:59:16.006567 | 2023-08-29T15:30:21 | 2023-08-29T15:30:21 | 247,630,603 | 8 | 1 | MIT | 2020-07-22T01:20:23 | 2020-03-16T06:48:02 | Python | UTF-8 | Python | false | false | 658 | py | #!/bin/python3
import os
# Complete the circularArrayRotation function below.
def circularArrayRotation(a, k, queries):
l = len(a)
return [a[(l - k % l + q) % l] for q in queries]
if __name__ == '__main__':
fptr = open(os.environ['OUTPUT_PATH'], 'w')
nkq = input().split()
n = int(nkq[0])
... | [
"hbinhct@gmail.com"
] | hbinhct@gmail.com |
a0447be691ddc7f0c16a8a89de42c18b13880fc5 | 147fd8d2fa164c173d3763b868d9df790045e53e | /file_build_failures.py | 8c193f0e151dfb76a8cc58d1c4eb90cf4613d126 | [
"CC0-1.0"
] | permissive | hroncok/mini-mass-rebuild | d49c0da413d48a3092e0393f02d4f7b3015e5022 | f12cae9ad7277c5524628a8da31c884e172a12e8 | refs/heads/master | 2022-03-11T15:32:55.818761 | 2022-01-31T11:18:12 | 2022-01-31T11:18:38 | 122,631,346 | 5 | 3 | null | 2020-10-30T12:56:06 | 2018-02-23T14:26:24 | Python | UTF-8 | Python | false | false | 2,172 | py | import bugzilla
import pathlib
import time
import sys
import webbrowser
from urllib.parse import urlencode
from textwrap import dedent
BUGZILLA = 'bugzilla.redhat.com'
TRACKER = 1686977 # PYTHON38
def bugzillas():
bzapi = bugzilla.Bugzilla(BUGZILLA)
query = bzapi.build_query(product='Fedora')
query['bl... | [
"miro@hroncok.cz"
] | miro@hroncok.cz |
dc6c93b1ba2ac42b69d9d29f8212a43187f85984 | 4a59e35a12af911f588224f07aab52d24fd6b044 | /venv/lib/python2.7/site-packages/mbed_host_tests/host_tests_conn_proxy/conn_primitive_remote.py | bc5e0168c2d0d9dc23072be057abf7bb022bd8f6 | [] | no_license | ryankurte/mbed-node | 95caba48404e06c4f21f48a850152c08d911bbc8 | 3584d391fca00fc3cda138c26ae28fdbe5527d83 | refs/heads/master | 2021-01-22T13:23:08.506740 | 2017-11-02T17:40:26 | 2017-11-02T17:40:26 | 100,665,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,698 | py | #!/usr/bin/env python
"""
mbed SDK
Copyright (c) 2011-2016 ARM Limited
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by ... | [
"ryan.kurte@trutest.co.nz"
] | ryan.kurte@trutest.co.nz |
3e942e91f7d2d29231fc55e21c086b11c76337b1 | e288180c977c8fccf31c00bb74b7e8f56ee69303 | /vkrb/newsitem/views.py | ca6ce1be70905efd68a1aa31f6f346ac625c8fed | [] | no_license | kaluginadaria/vkrb-back | 32e0c9aef7a647ea2a2e399c8d999622e993a433 | d037baaa9f17cb038d41dda5dfbf1dbb56acdf90 | refs/heads/master | 2022-12-07T23:36:32.902662 | 2019-05-22T15:06:31 | 2019-05-22T15:06:31 | 179,382,015 | 0 | 0 | null | 2022-11-22T02:38:25 | 2019-04-03T22:52:30 | Python | UTF-8 | Python | false | false | 5,188 | py | from django import forms
from django.contrib.contenttypes.models import ContentType
from django_serializer.base_views import (ListView,
DetailsView,
BaseView,
CreateView,
... | [
"d.kalugina@ktsstudio.ru"
] | d.kalugina@ktsstudio.ru |
77516ca559071c396386ca15fe21b648acd1f37d | 4148260054c2cf4605dacb8bdef3605c82eca470 | /temboo/Library/RapidShare/AddRealFolder.py | a08056f99e344635a1c16c36fd020a144dfabb6a | [] | no_license | wimsy/actuarize-web | 0f23d5f00afe3d36d430621cdb497d2e64998416 | 5f43af3019da6fb08cafeec9ff0a89df5196b864 | refs/heads/master | 2021-03-12T19:38:21.887681 | 2012-12-19T01:13:50 | 2012-12-19T01:13:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,044 | py | # -*- coding: utf-8 -*-
###############################################################################
#
# AddRealFolder
# Creates a new folder in RapidShare.
#
# Python version 2.6
#
###############################################################################
from temboo.core.choreography import Choreography
fro... | [
"mike.wimsatt@gmail.com"
] | mike.wimsatt@gmail.com |
29e30f6c5d806f391e7443ee20d901d615f8045e | 75dcb56e318688499bdab789262839e7f58bd4f6 | /_algorithms_challenges/codingbat/codingbat-solutions-master/Python/List-2/sum67.py | fb8d4799059832c94349de8442523ed1b0a77f34 | [] | no_license | syurskyi/Algorithms_and_Data_Structure | 9a1f358577e51e89c862d0f93f373b7f20ddd261 | 929dde1723fb2f54870c8a9badc80fc23e8400d3 | refs/heads/master | 2023-02-22T17:55:55.453535 | 2022-12-23T03:15:00 | 2022-12-23T03:15:00 | 226,243,987 | 4 | 1 | null | 2023-02-07T21:01:45 | 2019-12-06T04:14:10 | Jupyter Notebook | UTF-8 | Python | false | false | 538 | py | """
Return the sum of the numbers in the array,
except ignore sections of numbers starting with a 6 and
extending to the next 7 (every 6 will be followed by at least one 7).
Return 0 for no numbers.
sum67([1, 2, 2]) → 5
sum67([1, 2, 2, 6, 99, 99, 7]) → 5
sum67([1, 1, 6, 7, 2]) → 4
"""
def sum67(nums):
record = T... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
3355d566237ae53f9ec0cd4778ba796a468515fa | de644b254b17a28f82e9212d80872a3d9eca2149 | /lib/mock/asset/CodeTilesetAsset.py | 1a516b75ee1713f62b14e116e258e5eda5c53cdf | [
"MIT"
] | permissive | pixpil/gii | 506bee02b11eb412016b583d807dcfcc485e189c | ba6d94ada86d82bacae06f165567a02585264440 | refs/heads/master | 2021-12-03T06:30:31.503481 | 2021-11-24T03:02:49 | 2021-11-24T03:02:49 | 431,331,021 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,054 | py | import os.path
import json
from gii.core import AssetManager, AssetLibrary, getProjectPath, app, JSONHelper
from .helper.psd2tileset import TilesetProject
from gii.core.CommonAsset.DataYAMLAsset import DataYAMLAssetManager
def _getModulePath( path ):
import os.path
return os.path.dirname( __file__ ) + '/' + path
... | [
"tommo.zhou@gmail.com"
] | tommo.zhou@gmail.com |
77f288050a171578be6b3051b61925b4a58bd900 | 75c7004744315a22afdad8a68f20c06b8d3efad0 | /网络设备脚本/思科命令行/路由映射.py | b2091c2660925823710d7ecc04e4199e812979c2 | [
"MIT"
] | permissive | cflw/network_device_script | b13cde8719f23402cdd6acd3ca9048a7d65952aa | c3644e933a3c557c44951a0a1994a49357e49c02 | refs/heads/master | 2023-08-03T11:00:29.188101 | 2023-07-29T13:58:09 | 2023-07-29T13:58:09 | 182,526,402 | 18 | 12 | null | null | null | null | UTF-8 | Python | false | false | 2,127 | py | from ..基础接口 import 操作
from ..基础接口 import 策略
from ..命令行接口 import 模式
from ..命令行接口 import 命令
from ..命令行接口 import 路由映射
from . import 访问控制列表 as 访问列表
class C路由映射组(路由映射.I路由映射组, 模式.C同级模式):
def __init__(self, a, a名称):
路由映射.I路由映射组.__init__(self, a, a名称)
def f模式_节点(self, a序号 = 10, a动作 = True, a操作 = None):
return C路由映射节点(sel... | [
"cflw@outlook.com"
] | cflw@outlook.com |
bc1f2755b787437621a08fd37cef0f3df85c95da | c2b8adb8b4062a14bfc7d8c8fa2938359530e028 | /mfes/evaluate_function/eval_sys_poker.py | 6b834b866e2eb3caf02c64e7d4631749ec387747 | [] | no_license | thomas-young-2013/hp-tuner | 1e7d277f3c0135b9032884e3f20b050f19012918 | e606569719a14d8445633e42aedc8296a63a577a | refs/heads/master | 2023-04-15T08:41:02.514912 | 2020-09-14T13:23:55 | 2020-09-14T13:23:55 | 225,173,361 | 0 | 2 | null | 2023-03-24T22:31:25 | 2019-12-01T14:17:29 | Python | UTF-8 | Python | false | false | 405 | py | from __future__ import division, print_function, absolute_import
import os
import sys
from functools import partial
sys.path.append(os.getcwd())
from solnml.datasets.utils import load_train_test_data
from mfes.evaluate_function.sys.combined_evaluator import train as _train
train_node, test_node = load_train_test_dat... | [
"459240868@qq.com"
] | 459240868@qq.com |
bf59c63dc485ae90cd29cba0e2b0f40a6a812578 | 3c31584c1b661195a567ffd2603d30cb2e270493 | /codeforces/706/B.py | 31dd5d8a311b87f310cd96d3b478f008e8e8580c | [] | no_license | ku-nal/Codeforces | c7f621e35b5d4eea1ed11276ee8e91031252ca91 | df43c2fcbcfd1c9f96b6fe79c7abc9ddee054cb7 | refs/heads/main | 2023-04-10T19:00:40.559074 | 2021-04-27T15:15:51 | 2021-04-27T15:15:51 | 362,154,763 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,268 | py | #===========Template===============
from io import BytesIO, IOBase
import sys,os
inpl=lambda:list(map(int,input().split()))
inpm=lambda:map(int,input().split())
inpi=lambda:int(input())
inp=lambda:input()
rev,ra,l=reversed,range,len
P=print
BUFSIZE = 8192
class FastIO(IOBase):
newlines = 0
def __init__(self, f... | [
"kunalmakwana18@gnu.ac.in"
] | kunalmakwana18@gnu.ac.in |
de272a3b846152173db1088aa944b13b8b03e905 | ec7f476240c8edf88bf9500c5b677113d840d6c6 | /PMModels/Implementations/Backtesting/mean_pnl.py | 3cab0e3ceec638f84a2f5440f990c7308e1d435f | [] | no_license | fagan2888/BehavioralAssignmentSolution | 80b82b71a94d0da68783b00046215755c1dd3715 | 15acead2d6af6e59f64a7d3baf7da5356cea57ec | refs/heads/master | 2021-04-21T08:31:40.453758 | 2018-08-27T06:18:41 | 2018-08-27T06:18:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,196 | py | # -*- coding: utf-8 -*-
#!/usr/bin/env python
'''
Name: Beier (Benjamin) Liu
Date: 7/5/2018
Remark:
Python 3.6 is recommended
Before running please install packages *numpy, scipy, matplotlib
Using cmd line py -3,6 -m pip install [package_name]
'''
import os, time, logging
import copy, math
import functools, itertools
... | [
"imbenliu@gmail.com"
] | imbenliu@gmail.com |
021fe2ec6b0f2d796211aa9535bec12b1d96a01e | 12f27e80ee7cf5f5274c98ba2e370defbdafa67b | /data-exporter/pipeline.py | 8dfb1c175af634643b9e62ecb169b82ae425ad77 | [] | no_license | dawnkd/beehive-server | 48f94abfe2392902845f4a682f59fdfefa64dbf7 | 21f61a9c5723554931a9735c2c9398e82186fbd1 | refs/heads/master | 2020-03-19T02:12:53.584756 | 2018-05-31T16:26:55 | 2018-05-31T16:26:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,163 | py | import binascii
import re
import struct
from waggle.coresense.utils import decode_frame as decode_frame_v3
from waggle.protocol.v5.decoder import decode_frame as decode_frame_v5
from waggle.protocol.v5.decoder import convert as convert_v5
def normalize_key(k):
return re.sub('[-_.]+', '_', k).lower()
def normali... | [
"sean.shahkarami@gmail.com"
] | sean.shahkarami@gmail.com |
dfc33f4392592784b20a4f10a81aaefb5131c5c3 | 1d363dfbe69b79bc1989251f085060232beb12f5 | /tests/test_chemical_package.py | a87f5ed3afd8ddfc87e362e8508edd4dcf84319c | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | CalebBell/thermo | ec602af2316875692e385287c6010e9f206b1bc3 | 8622fada3614179d4372192e0031b4a206384c93 | refs/heads/master | 2023-08-30T05:30:07.552575 | 2023-06-25T01:35:53 | 2023-06-25T01:35:53 | 62,404,647 | 529 | 127 | MIT | 2023-08-11T18:31:21 | 2016-07-01T16:04:56 | Python | UTF-8 | Python | false | false | 6,401 | py | '''Chemical Engineering Design Library (ChEDL). Utilities for process modeling.
Copyright (C) 2020, Caleb Bell <Caleb.Andrew.Bell@gmail.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 without... | [
"Caleb.Andrew.Bell@gmail.com"
] | Caleb.Andrew.Bell@gmail.com |
5c377987f3a2b5dc3ed85c65b668b95b75cb4097 | c93f51492cfee3f98040f07d7f4323ec27ac81a5 | /refinery/units/misc/drp.py | b38fff444e00c9713d6f25da6071973808bbc9fe | [
"BSD-3-Clause"
] | permissive | prats84/refinery | cbe9ebfeb570c9c0531e13bbf13ec18801f12aca | 5f961051e9cc1857a06108ce4d36a6799ac9d720 | refs/heads/master | 2023-07-13T02:32:04.998285 | 2021-08-20T09:08:01 | 2021-08-20T09:08:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,630 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
from .. import arg, Unit
from ...lib.suffixtree import SuffixTree
from ...lib.types import INF
class stackdepth:
def __init__(self, depth):
self.depth = depth
self.default = sys.getrecursionlimit()
def __enter__(self):
if self... | [
"rattle@nullteilerfrei.de"
] | rattle@nullteilerfrei.de |
6694c98e3b9d6d13e32999cfd268c777850b2bcb | fa1953cb5c96b816b3d7e3df757cea0aa0f973b1 | /src/ensemble.py | d2014f12b77d18bd6b8be9d41617da60a77eca9f | [] | no_license | cttsai1985/Kaggle-Recursion-Cellular | 369aafd89f0ddfa4229f9b19fdba1317bfcf6cb8 | a91740a4ad984588c28a9369f303eba2e6b0bea0 | refs/heads/master | 2020-11-23T23:29:40.218838 | 2019-10-09T07:18:06 | 2019-10-09T07:18:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,654 | py | import pandas as pd
import numpy as np
import click
import json
from scipy.optimize import linear_sum_assignment
from scipy.special import softmax
@click.group()
def cli():
print("Ensemble")
def load_one_fold(predict_root, model_name, fold):
test_preds = []
for channel in [
"[1,2,3,4,5]",
... | [
"ngxbac.dt@gmail.com"
] | ngxbac.dt@gmail.com |
984d471f394ee4c497bf778e4fabb2af107c42c0 | da739696c3c88e760d0adb60f31fe069341ecb20 | /backend/home/migrations/0002_load_initial_data.py | 2ee56b403f0d4780b8f43156c355882de841197f | [] | no_license | crowdbotics-apps/app-23018 | 27b1cd94baeb226117429ecdf149bb1970e85c2d | 844910b8f1c6e50609bec1b2f8b2bdaf4f490230 | refs/heads/master | 2023-01-19T19:58:19.772854 | 2020-11-27T20:04:01 | 2020-11-27T20:04:01 | 316,589,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,266 | py | from django.db import migrations
def create_customtext(apps, schema_editor):
CustomText = apps.get_model("home", "CustomText")
customtext_title = "app"
CustomText.objects.create(title=customtext_title)
def create_homepage(apps, schema_editor):
HomePage = apps.get_model("home", "HomePage")
homep... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
09bccd733a4e5bc6a895e0032bb27e2a2bd0ca26 | 9e1df555176bae216828c404ad7290c2eb030cbf | /pl_examples/bug_report_model.py | dbea2013d11104b37b432cca31d57808e7b7e328 | [
"Apache-2.0",
"LicenseRef-scancode-proprietary-license"
] | permissive | shijianjian/pytorch-lightning | e11be4d4926a1a0c8f605e596bec19926d476876 | b6f3cf5e52dddedec6f7b3e85c0702b75907452c | refs/heads/master | 2023-03-02T14:58:54.139540 | 2021-02-10T05:38:23 | 2021-02-10T05:38:23 | 318,134,795 | 1 | 0 | Apache-2.0 | 2020-12-03T09:05:46 | 2020-12-03T09:05:45 | null | UTF-8 | Python | false | false | 4,217 | py | # Copyright The PyTorch Lightning team.
#
# 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 i... | [
"noreply@github.com"
] | shijianjian.noreply@github.com |
05fd5796d8e76b96a95e09044e3489a193ec8ee4 | c7d6c70132d626f7c572ecc3d74fc117cacc88bf | /eventory/ext/discord/compat.py | b3046a4e72145d75142a94e7c0c4e605b30afa0f | [
"MIT"
] | permissive | siku2/Eventory | b19a79e020fa8a25145889a64bba83c759e6c288 | 8a88b3328ae83b369a185a1ea266031e9eef04e8 | refs/heads/master | 2020-03-07T18:54:39.815670 | 2018-06-24T22:48:42 | 2018-06-24T22:48:42 | 127,656,364 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,690 | py | """This module serves to bridge the differences between the async and rewrite Discord.py versions."""
import logging
from typing import Callable, Dict, Union
import discord
from discord import Client, Colour, Embed, Message, User
from discord.embeds import EmptyEmbed
from discord.ext.commands import Context
from disc... | [
"siku2@outlook.de"
] | siku2@outlook.de |
9a3fbbf5f56ecbc4200b39bba863e8bb5e2e19ac | 303c941a88a4f8a4bf2d958457719efb08a5a30f | /fail/bj_1115.py | df3aee67f38c8002932b7ea7d26c40ae9e3c69f2 | [] | no_license | Kim-Taesu/Algorithm_python | 4b8d8445a23463c3885ec75dd2a7c275f46c1f3f | 1d358eb7fe4bd04b6ed0ec3754e8be08eece9278 | refs/heads/master | 2020-06-10T17:36:07.260572 | 2020-03-16T05:53:01 | 2020-03-16T05:53:01 | 193,693,829 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 693 | py | import sys
from itertools import permutations
sys.setrecursionlimit(10 ** 6)
input = sys.stdin.readline
N = int(input())
P = list(map(int, input().strip().split(' ')))
perfect_p_list = set(permutations([i for i in range(1, N)], N - 1))
min_count = sys.maxsize
def compute_origin_p(p_tmp):
result = [0] * N
re... | [
"dkdldoafotn@naver.com"
] | dkdldoafotn@naver.com |
a213b5557a2c932b30db4d8c8d0090a87238a01b | 699abe83fa9d142dcff2cc551d4ac052f7778058 | /real_estate/spiders/otodom.py | 5c22c9b3fef5f231270b2c7ab20b391fdb0df6c8 | [] | no_license | whosethere/otodom_crawler_scraper | 055313b9b47c93454d3b795712a2fa5830562bbe | d97a34fa7ad0c7b05f89d30d5d6436cf6b329a34 | refs/heads/master | 2022-06-25T11:19:37.368177 | 2020-05-09T10:52:25 | 2020-05-09T10:52:25 | 262,549,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,284 | py | import scrapy
from scrapy.linkextractors import LinkExtractor
import json
from pymongo import MongoClient
import base64
import io
from real_estate.items import Otodom
from scrapy.loader import ItemLoader
import datetime
import time
import re
class OtodomSpider(scrapy.Spider):
name = 'otodom'
allowed_domains ... | [
"you@example.com"
] | you@example.com |
6440c4965fb42a080990cb5cad4c6b0f20166912 | 518bf342bc4138982af3e2724e75f1d9ca3ba56c | /solutions/1441. Build an Array With Stack Operations/1441.py | c57039a1e6a850ebf9c94019ab817c14266d8309 | [
"MIT"
] | permissive | walkccc/LeetCode | dae85af7cc689882a84ee5011f0a13a19ad97f18 | a27be41c174565d365cbfe785f0633f634a01b2a | refs/heads/main | 2023-08-28T01:32:43.384999 | 2023-08-20T19:00:45 | 2023-08-20T19:00:45 | 172,231,974 | 692 | 302 | MIT | 2023-08-13T14:48:42 | 2019-02-23T15:46:23 | C++ | UTF-8 | Python | false | false | 350 | py | class Solution:
def buildArray(self, target: List[int], n: int) -> List[str]:
ans = []
i = 0 # Target pointer
num = 1 # Curr num
while i < len(target):
t = target[i]
if t == num:
ans.append("Push")
i += 1
else:
ans.append("Push")
ans.append("Pop")
... | [
"me@pengyuc.com"
] | me@pengyuc.com |
1c530fe372777c5ddae9fd3aae02fe09b03a7d9e | 0db05f7b843e8450bafd5ae23f8f70f9a9a8c151 | /Src/StdLib/Lib/site-packages/win32comext/shell/test/testShellFolder.py | 82d126408aa600a298de5cbeb8dbf491a19dd598 | [
"BSD-3-Clause",
"Python-2.0",
"LGPL-2.0-only",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | IronLanguages/ironpython2 | 9c7f85bd8e6bca300e16f8c92f6384cecb979a6a | d00111890ce41b9791cb5bc55aedd071240252c4 | refs/heads/master | 2023-01-21T21:17:59.439654 | 2023-01-13T01:52:15 | 2023-01-13T01:52:15 | 91,620,472 | 1,171 | 288 | Apache-2.0 | 2023-01-13T01:52:16 | 2017-05-17T21:11:51 | Python | UTF-8 | Python | false | false | 581 | py | from win32com.shell import shell
from win32com.shell.shellcon import *
sf = shell.SHGetDesktopFolder()
print "Shell Folder is", sf
names = []
for i in sf: # Magically calls EnumObjects
name = sf.GetDisplayNameOf(i, SHGDN_NORMAL)
names.append(name)
# And get the enumerator manually
enum = sf.EnumObjects(0... | [
"pawel.jasinski@gmail.com"
] | pawel.jasinski@gmail.com |
8b86f8f4e9e3c5acf3431aa0b9eedf6fc4b41865 | 4e708d886792efad8e9398ace014e325b00d907d | /owo/client/enclosure/__main__.py | ba3958e87436afa6734eae36934a98e989c885a2 | [] | no_license | korkies22/OwO-core | 981ed8afb9f75432d5a4060f63c9fb591767d855 | 56f234db1f8fd18c78fd9dc4a390d37086ab671f | refs/heads/master | 2020-04-11T09:38:27.885985 | 2018-10-01T16:17:09 | 2018-10-01T16:17:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 822 | py | # Copyright 2017 OwO AI 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, s... | [
"j.alban@uniandes.edu.co"
] | j.alban@uniandes.edu.co |
58c1d50482bd4ceff2380654a146d6c7476adab9 | 408f985c954ad6f0f3926e02dc18c31336bac194 | /precise_bbcode/core/utils.py | 8388589936970347e3e3e1dbc97d1e1a7f325542 | [
"BSD-3-Clause"
] | permissive | ellmetha/django-precise-bbcode | 176258d9436cc29002d59f29d4964a3bdd05721e | 24306622fc8ebd91c8c79543c18050de0b32f1f1 | refs/heads/main | 2023-08-28T13:35:07.027756 | 2023-07-27T01:07:15 | 2023-07-27T01:07:15 | 13,904,807 | 36 | 16 | BSD-3-Clause | 2023-08-19T18:44:47 | 2013-10-27T16:45:03 | Python | UTF-8 | Python | false | false | 322 | py | from functools import reduce
def replace(data, replacements):
"""
Performs several string substitutions on the initial ``data`` string using
a list of 2-tuples (old, new) defining substitutions and returns the resulting
string.
"""
return reduce(lambda a, kv: a.replace(*kv), replacements, data... | [
"morgan.aubert@zoho.com"
] | morgan.aubert@zoho.com |
02f82c3bdce5f373fb441ff9f282e97254250537 | d138deda43e36f6c79c5e3a9ef1cc62c6a92e881 | /python/paddle/fluid/tests/unittests/test_dist_mnist_ring_allreduce.py | 4436064dc28ed1276481378c70aa3b306486e0c8 | [
"Apache-2.0"
] | permissive | seiriosPlus/Paddle | 51afd6f5c85c3ce41dd72953ee659d1539c19f90 | 9602a182b2a4979247c09df1ec283fc39cb4a981 | refs/heads/develop | 2021-08-16T16:05:10.848535 | 2020-12-27T15:15:19 | 2020-12-27T15:15:19 | 123,257,829 | 2 | 0 | Apache-2.0 | 2019-12-10T08:22:01 | 2018-02-28T08:57:42 | C++ | UTF-8 | Python | false | false | 1,177 | py | # Copyright (c) 2018 PaddlePaddle 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... | [
"noreply@github.com"
] | seiriosPlus.noreply@github.com |
fd3cf4d40487d172afc5c8e1119786c68a9a7f34 | 630804da2c327c6723a7a808c23381348b1c79be | /Week1/Day1/FirstAssignment.py | 0920e18f448ce3cb1dc2c941f453446b81d409bf | [] | no_license | AjayKarki/DWIT_Training | 9f1bc49ff19acbe96d121e115acd0d1ba9c05ff4 | e8ce49e2c73e29130a352bd9f5fcab4fe86ebf13 | refs/heads/master | 2020-09-23T13:01:31.056432 | 2019-12-25T15:09:39 | 2019-12-25T15:09:39 | 225,506,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py |
first_number = int(input("Enter a number "))
second_number = int(input("Enter another number "))
"""
This is an example of
Multiline
Comment
"""
print("Sum is ", first_number+second_number)
print("Diff is ", first_number-second_number)
print("Prod is ", first_number*second_number)
print("Div is ", first_number/second_... | [
"ajaykarki333@gmail.com"
] | ajaykarki333@gmail.com |
fb66ec4f4fe8f900b439e9ce33725c9fb5f5e3fb | ef4a12140c89ddd01c335000e15479dff85c48c6 | /kleinworth/spiders/spider.py | e969c9d462814f10ac9746d7f20af6c590fd4209 | [] | no_license | SimeonYS/kleinworth | 8f06e717f9f7c1a3377033ddf190b64bc7784f8e | c4575f0daeacf4771359e4b213c6cbf850fe750d | refs/heads/main | 2023-03-19T08:17:54.626925 | 2021-03-15T10:10:36 | 2021-03-15T10:10:36 | 347,920,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,268 | py | import re
import scrapy
from scrapy.loader import ItemLoader
from ..items import KleinworthItem
from itemloaders.processors import TakeFirst
pattern = r'(\xa0)?'
class KleinworthSpider(scrapy.Spider):
name = 'kleinworth'
start_urls = ['https://www.kleinworthambros.com/en/tags/tag/press-releases/',
'https://ww... | [
"simeon.simeonov@ADPVT.com"
] | simeon.simeonov@ADPVT.com |
cef1aa623ceaeb8e1400245c7f160633065eb08c | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/pygame/pygame-physics/pygame_projectile_angle.py | b4956e8676459708bfbca383c3da3aa096cbd52d | [] | no_license | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:018a844bc0bfcb3938201de01d763672c6bdce35b5b911524f4e2222f2b9b540
size 830
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
08910e614d2cf4644137974150405fa8943e7a99 | 3fe9d17c2151cb3853986a79e2ce2010fbc27b4d | /utils.py | 2a2a787daa66ee87fc9f20df7944bd59860bec87 | [] | no_license | coolmaksat/graembeds | 82c2d6e1fecb51e33aa0ace349a3d434b608534f | 35ecddb9d8ef1d9fb648186a6195fd0703d9b642 | refs/heads/master | 2020-03-27T20:18:08.315222 | 2018-09-06T13:44:14 | 2018-09-06T13:44:14 | 147,056,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,945 | py | import numpy as np
import math
class Dataset(object):
"""Dataset class for handling data operations.
It requires specific format for graph data files.
Graph should be stored in `data` folder under
its the folder with its name and should contain
three files `train.txt`, `valid.txt`, `test.txt`.
... | [
"coolmaksat@gmail.com"
] | coolmaksat@gmail.com |
a6e3d61630fcd661507496cd82b8e633ac857ffb | 539d003125eebf761ba320223566cd56eeefe247 | /mundiapi/models/get_split_response.py | 4d7b029a9500b863546dae4bbb9a066b8284df12 | [
"MIT"
] | permissive | mundipagg/MundiApi-NodeJS | 6e58afb33510a723574ee06bec107654409910af | f0c67e1f92471a7a0e2d0b0cb1765105f07fb8cb | refs/heads/master | 2023-06-25T23:04:42.429866 | 2023-06-19T16:10:31 | 2023-06-19T16:10:31 | 101,078,084 | 9 | 5 | NOASSERTION | 2023-06-01T17:50:21 | 2017-08-22T15:25:30 | JavaScript | UTF-8 | Python | false | false | 2,179 | py | # -*- coding: utf-8 -*-
"""
mundiapi
This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
"""
import mundiapi.models.get_recipient_response
class GetSplitResponse(object):
"""Implementation of the 'GetSplitResponse' model.
Split response
Attributes:
... | [
"noreply@github.com"
] | mundipagg.noreply@github.com |
9d96b2dcf2e0ad95dd30fbddadd9690e92e19b73 | 9dc1c85e7d86d29400af79125e9cd89a82a9b8ab | /myproject/portfolio/migrations/0008_auto_20210411_1227.py | 1ff519e0632e898c671a29b31ad605be406f6c6f | [
"MIT"
] | permissive | borko81/simple_django | e284ff8f79b3e708b4903ba0b774e3a480de9190 | 9dbd2d848cbf0ff0c58e93471853c5b21c769758 | refs/heads/master | 2023-07-14T01:25:13.294095 | 2021-08-16T15:48:00 | 2021-08-16T15:48:00 | 349,369,208 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | # Generated by Django 3.1.7 on 2021-04-11 09:27
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('portfolio', '0007_auto_20210402_2045'),
]
operations = [
migrations.AlterField(
model_name='project',
name='image',
... | [
"bstoilov81@gmail.com"
] | bstoilov81@gmail.com |
47f64b5e8973a03abf00d861f93525f47544fea7 | 84166c246e819c19acc1dcd77a405b85ca554c9b | /app/models.py | 192cbcd040ed2ace4a75d75d5408515272105f1b | [
"MIT"
] | permissive | kenmutuma001/Blog | 992a98a605f7247bade6577b8e02a277b30db294 | 6b19a77b71694bbe9f5e84207de46c68f87ebc5e | refs/heads/master | 2020-05-18T13:32:34.689064 | 2019-05-01T16:55:32 | 2019-05-01T16:55:32 | 184,439,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,690 | py | from . import db
from werkzeug.security import generate_password_hash, check_password_hash
from flask_login import UserMixin
from . import login_manager
from datetime import datetime
@login_manager.user_loader
def load_user(user_id):
return User.query.get(int(user_id))
class User(UserMixin, db.Model):
__tab... | [
"santa@northpole.com"
] | santa@northpole.com |
2fdc4462eba62b8677c1fc96b35656c7681cd085 | 14f085fe9db8179dd44c18f00c1184881dcfe21a | /testing/mos_2d.py | c174c00a97eef685b5fb02f156d04f6eef906d24 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-warranty-disclaimer",
"BSD-3-Clause-Open-MPI",
"LGPL-2.1-or-later",
"LicenseRef-scancode-other-permissive",
"Python-2.0",
"BSL-1.0",
"BSD-2-Clause",
"MPL-2.0"
] | permissive | devsim/devsim | 7ba495952239d4e9c0170c0a5a89905aa9eb3e1e | 3d979d6a98685b2e51c15eebd20afdc1e643fc3a | refs/heads/main | 2023-08-31T10:40:41.346966 | 2023-08-30T16:42:56 | 2023-08-30T16:42:56 | 8,838,727 | 158 | 69 | Apache-2.0 | 2023-07-15T03:21:34 | 2013-03-17T18:01:17 | C++ | UTF-8 | Python | false | false | 2,939 | py | # Copyright 2013 DEVSIM LLC
#
# SPDX-License-Identifier: Apache-2.0
from devsim.python_packages.simple_physics import *
from devsim.python_packages.ramp import *
from devsim import *
import mos_2d_create
device = "mymos"
silicon_regions=("gate", "bulk")
oxide_regions=("oxide",)
regions = ("gate", "bulk", "oxide")
in... | [
"juan@tcad.com"
] | juan@tcad.com |
a5649bccb1465ea6b0584343b7c494035ac67e5a | 9b60beb5ef167dc57a700ddaa0481a173e9c24d8 | /my315ok/products/browser/multipgkuptabs.py | cc1156178510f15ad10b490a53baa4de5b455653 | [] | no_license | adam139/my315ok.products | 8e9460f649e6c57575b3a7838e92fa40f147a99d | d335ed679dd68cddc6aee006f873a038b5258508 | refs/heads/master | 2020-12-25T16:48:12.378815 | 2018-04-08T00:35:20 | 2018-04-08T00:35:20 | 23,514,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | py |
from five import grok
from Acquisition import aq_inner
from Products.CMFCore.utils import getToolByName
from plone.dexterity.interfaces import IDexterityContent
class multipgview(grok.View):
grok.context(IDexterityContent)
grok.require('zope2.View')
grok.name('multipgview') | [
"yuejun.tang@gmail.com"
] | yuejun.tang@gmail.com |
daec25b7662ba33c27388b1ecb296a9bbbed7d46 | 6437a3a4a31ab9ad233d6b2d985beb50ed50de23 | /PythonistaAppTemplate/PythonistaKit.framework/pylib/site-packages/markdown/extensions/sane_lists.py | fc36c0b8b890e3faacae1b8b8565f9b7039063fb | [] | no_license | sreyemnayr/jss-lost-mode-app | 03ddc472decde3c17a11294d8ee48b02f83b71e7 | 3ff4ba6fb13f4f3a4a98bfc824eace137f6aabaa | refs/heads/master | 2021-05-02T08:50:10.580091 | 2018-02-08T20:32:29 | 2018-02-08T20:32:29 | 120,813,623 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,238 | py |
"""
Sane List Extension for Python-Markdown
=======================================
Modify the behavior of Lists in Python-Markdown t act in a sane manor.
In standard Markdown sytex, the following would constitute a single
ordered list. However, with this extension, the output would include
two lists, the first an... | [
"ryanmeyersweb@gmail.com"
] | ryanmeyersweb@gmail.com |
252bbfbe0e32a1b8e8dc584e470f0cfd6aec5562 | 431a1f738b1edfba7dad8d10a6b7520d51d917cb | /Samples/UserSamples/2017/jetFakes_Splits/Fakes5_Config.py | 8ef14d82ba983ee7a83490e4228eb327a6245ff4 | [] | no_license | aloeliger/DatacardCreator | 5ce702e46fbb77e843b44d8fe088c2645a4a8f66 | 5c7e890276a5be079ed3b677a471c1dcadcba52d | refs/heads/master | 2022-02-26T19:52:30.563747 | 2022-02-16T20:24:48 | 2022-02-16T20:24:48 | 215,602,523 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 664 | py | from Samples.SampleDefinition import Sample
from Samples.Uncertainties.UserUncertainties.FakeFactorUncertainty import FakeFactorUncertainty
from Samples.EventDefinition.UserEventDictionaries.MuTauEventDictionary import MuTauEventDictionary
FakeSample = Sample()
FakeSample.name = 'jetFakes'
FakeSample.path = '/data/a... | [
"aloelige@cern.ch"
] | aloelige@cern.ch |
17095e42f3f6435a3d69c24c293d79facc2991ee | 5679731cee36c537615d285ed72810f4c6b17380 | /049_GroupAnagrams.py | 6698f9742a7e6f69b93e644c08ed09f4dbb99aab | [] | no_license | manofmountain/LeetCode | 6b76105190a9b62df65a7b56b6def4120498b9fa | 718f688b3d316e8c10ef680d9c21ecd518d062f8 | refs/heads/master | 2021-01-12T03:41:48.318116 | 2017-07-18T12:35:58 | 2017-07-18T12:35:58 | 78,252,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | class Solution(object):
def groupAnagrams(self, strs):
"""
:type strs: List[str]
:rtype: List[List[str]]
"""
res = list()
indexTable = {}
index = 0
for str in strs:
keyStr = ''.join(sorted(str))
if keyStr not in index... | [
"noreply@github.com"
] | manofmountain.noreply@github.com |
36a555ab5b94a8f951fdc5e96a744c84a3851024 | a8d9ed754db055f9ce6d573ddb5d90d2d91c5beb | /canal/data.py | 4873e6077ffe7ff8922ee71b5a07d6092505a494 | [] | no_license | linkcheng/spark_demo | 6c84ccf33c82045af0ab6c0547d3216a6d43d1df | db212ed138ac19e42d9c8bc9fa5d7e4d0facee6f | refs/heads/master | 2021-09-09T04:58:59.917278 | 2019-12-26T07:49:01 | 2019-12-26T07:49:01 | 145,976,836 | 0 | 0 | null | 2021-09-08T00:56:35 | 2018-08-24T10:15:15 | Jupyter Notebook | UTF-8 | Python | false | false | 3,440 | py | #!/usr/bin/env python3
# -*- coding: UTF-8 -*-
"""
@author: Link
@contact: zheng.long@sfy.com
@module: data
@date: 2019-01-02
bin/kafka-console-consumer.sh --bootstrap-server 192.168.30.141:6667,192.168.30.140:6667,192.168.30.139:6667 --topic example
"""
null = None
false = False
true = True
data = {
"data": [
... | [
"zheng.long@shoufuyou.com"
] | zheng.long@shoufuyou.com |
cdc5750d92187c21877277e4d8b50b0c76485614 | 9e1bda53da4c5e98190f5f25235f528d692ee5a8 | /.history/my_app/views_20210405182534.py | 224bf0f237e70a0e4e86dd9a6c523ac1dcd617e5 | [] | no_license | Jumayev-A/Project-3 | 3d373181af6a87e3fe319a13d28fcd18941167b7 | 34ddd009726cbba9ae52e74a46d554fd735566e2 | refs/heads/main | 2023-06-10T11:02:06.446151 | 2021-07-07T06:19:11 | 2021-07-07T06:19:11 | 350,375,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,933 | py | from django.shortcuts import render, redirect
from django.urls import reverse_lazy, reverse
from django.contrib.auth.decorators import login_required
from django.contrib import messages
from django.db.models import Q
from django.views.generic.edit import DeleteView
from django.core.paginator import Paginator, EmptyPage... | [
"abdy.jumayev@gmail.com"
] | abdy.jumayev@gmail.com |
21fda4d68e16fb134142cf28caea0fd629dfbfd4 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_237/ch87_2019_06_06_23_04_02_860281.py | 7d6be3cdd3cdd575fd5232e368daa05fb936291d | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | with open ("churras.txt", "r") as arquivo:
conteudo = arquivo.readlines()
quantidade = conteudo[1::3]
preco = conteudo[2::3]
soma = 0
len_listas = len(quantidade)
for e in range(1,len_listas):
soma += int(quantidade[e-1]) * float(preco[e-1][:5])
print(soma)
| [
"you@example.com"
] | you@example.com |
1368e7d59993e242bd8df5f4001e611ee15a8ea1 | 1e9c9f2a9639db7cdb032aae69cb4d99aef1d3a5 | /others/language/python/flask/projects/flask-api-swagger-doc/app.py | cde3f48bff736128aa64aada4524a75af42aa4b0 | [
"MIT"
] | permissive | sagarnikam123/learnNPractice | f0da3f8acf653e56c591353ab342765a6831698c | 1b3b0cb2cff2f478006626a4c37a99102acbb628 | refs/heads/master | 2023-02-04T11:21:18.211654 | 2023-01-24T14:47:52 | 2023-01-24T14:47:52 | 61,184,927 | 2 | 1 | MIT | 2022-03-06T11:07:18 | 2016-06-15T06:57:19 | Python | UTF-8 | Python | false | false | 1,853 | py | from apispec import APISpec
from apispec.ext.marshmallow import MarshmallowPlugin
from apispec_webframeworks.flask import FlaskPlugin
from flask import Flask, jsonify, render_template, send_from_directory
from marshmallow import Schema, fields
app = Flask(__name__, template_folder='swagger/templates')
@app.route('/'... | [
"sagarnikam123@gmail.com"
] | sagarnikam123@gmail.com |
1e34501c813604e30eaf8cac50b7813ecb41e56c | 755c0476da2bde006303b355371270132541c63c | /data_structures/tree/preorder.py | f9422a08eba0279ca625225241e27470c0af6ef3 | [] | no_license | diegoami/hackerrank-exercises | d411164eb32f4a5ac36df1ca81fa40cc51ae6fab | 4daaa81273ec27278e530ab882445c040041cbd7 | refs/heads/master | 2021-03-24T13:04:26.105170 | 2017-08-27T20:07:25 | 2017-08-27T20:07:25 | 90,566,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | """
Node is defined as
self.left (the left child of the node)
self.right (the right child of the node)
self.data (the value of the node)
"""
def scan(node):
return [str(node.data)] + scan(node.left) + scan(node.right) if node else []
def preOrder(root):
print(" ".join(scan(root)))
| [
"diego.amicabile@gmail.com"
] | diego.amicabile@gmail.com |
48dc96d39678bff752cc24ce6348a458d01041fd | 0ba65f7c0e36c6eacdc559ecf6df221a6be89365 | /myshop/__init__.py | 37b137633c6d9184212ac2616855685c3a232ec3 | [] | no_license | maciejbihun9/django_tutorial_shop | a9811352dbf3ae20bb88972e4d593e6b7b4c2b4f | f2c0154ec47ba81a9ce5901c82aca50968380aa2 | refs/heads/master | 2021-08-31T18:49:44.787321 | 2017-12-22T12:25:03 | 2017-12-22T12:25:03 | 115,113,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | # Import celery.
# Konieczne jest zaimportowanie modułu celery w pliku
# __init__.py projektu, aby mieć pewność,
# że zostanie wczytany podczas uruchamiania Django.
from .celery import app as celery_app | [
"mac.bih@wp.pl"
] | mac.bih@wp.pl |
73da36fb856c2e81d8b4903cbe62c6b5394362b7 | b2b79cc61101ddf54959b15cf7d0887d114fb4e5 | /web/pgadmin/tools/debugger/tests/test_debugger_poll_result.py | a19a968f21c3e24f8698a1fbe2cee3a5e4d98c57 | [
"PostgreSQL"
] | permissive | 99Percent/pgadmin4 | 8afe737eb2ec1400ab034ad1d8a4f7c4ba4c35c8 | 5e0c113c7bc4ffefbec569e7ca5416d9acf9dd8a | refs/heads/master | 2021-10-10T20:08:48.321551 | 2021-09-30T12:51:43 | 2021-09-30T12:51:43 | 165,702,958 | 0 | 0 | NOASSERTION | 2019-01-14T17:18:40 | 2019-01-14T17:18:39 | null | UTF-8 | Python | false | false | 3,016 | py | ##########################################################################
#
# pgAdmin 4 - PostgreSQL Tools
#
# Copyright (C) 2013 - 2021, The pgAdmin Development Team
# This software is released under the PostgreSQL Licence
#
##########################################################################
import json
from... | [
"akshay.joshi@enterprisedb.com"
] | akshay.joshi@enterprisedb.com |
8de46a477f2b4ba26e46c99e2c0cf70696d64f32 | 1310ca784c1b0b9238f2407eb59d0704b8ae5a08 | /NextGen/circuitpython/adafruit-circuitpython-bundle-6.x-mpy-20201114/examples/gps_echotest.py | 326255efd4551edee0ab37c713ecdbe28cbe8600 | [] | no_license | RyannDaGreat/LightWave | 6b89838bfd48dba010eb5229b84b206be4e8ccbb | d055b0c01b01b3795d9e6c28b6b70f969893ed97 | refs/heads/master | 2023-07-20T08:23:47.526629 | 2023-07-18T00:25:02 | 2023-07-18T00:25:02 | 123,113,725 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,712 | py | # Simple GPS module demonstration.
# Will print NMEA sentences received from the GPS, great for testing connection
# Uses the GPS to send some commands, then reads directly from the GPS
import time
import board
import busio
import adafruit_gps
# Create a serial connection for the GPS connection using default speed an... | [
"sqrtryan@gmail.com"
] | sqrtryan@gmail.com |
a02e37cb873e78b9f8c832b6479e5964babeccbb | 567123af2df15856e443f0202a1a44479bf77544 | /claf/model/multi_task/bert.py | 1245e11dd871a8db18c23ac61b7d1e7805677811 | [
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | y1027/claf | 36d0d902dd06cbde868b8cdd9ebd9c7b4ff5d807 | 56422a8b0a91b9626425deeee5a57110b7b45605 | refs/heads/master | 2020-08-06T02:31:49.301180 | 2019-10-03T17:12:10 | 2019-10-03T17:12:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,776 | py |
from overrides import overrides
from pytorch_transformers import BertModel
import torch.nn as nn
from claf.data.data_handler import CachePath
from claf.decorator import register
from claf.model.base import ModelWithoutTokenEmbedder
from claf.model.multi_task.category import TaskCategory
from claf.model.multi_task.mix... | [
"humanbrain.djlee@gmail.com"
] | humanbrain.djlee@gmail.com |
d97e5381d0709cc8ce03fd994e5b6cbcae03fc18 | dfc2c18053b8e7576f88e7b2524d7ca3a8f47282 | /ch01/section1/37.py | c8e30da41f75a18dde4404f0de40fdaed2599207 | [] | no_license | Xoozi/tchomework | a6eed3bbf697ff12af8d42249ec58a139aed0c4c | 627c98b0b652ef20fd93025a17341bba76fbfce6 | refs/heads/master | 2021-01-23T21:18:15.793703 | 2018-10-21T11:05:55 | 2018-10-21T11:05:55 | 57,583,655 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 762 | py | #磨光发动机气缸使之变窄到横截面积为9平方英寸之前, 需要知道它和标准的气缸直径x0=3.385英寸的偏差有多少.
#容许所要求的9平方英寸面积有0.01平方英寸以内的误差. 为求容许偏差, 设A(x) = pi*(x/2)**2
#求区间, 在该区间内所有的x都有|A(x) - 9| <= 0.01
#
# |A(x) - 9| <= 0.01
# => -0.01 <= A(x) - 9 <= 0.01
# => 8.99 <= pi*(x/2)**2 <= 9.01
# => 2*sqrt(8.99/pi)<=x<=2*sqrt(9.01/pi)
def g(x):
... | [
"wwfxtt@gmail.com"
] | wwfxtt@gmail.com |
716aba24b7c3bfb62f58316d5ba3598a3923dbdf | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /MY_REPOS/DATA_STRUC_PYTHON_NOTES/python-prac/Overflow/_Learning/problems/problem_01_while_loop.py | 81d830d837ce843244290f0fe32399965dad1a0f | [
"MIT",
"Python-2.0"
] | permissive | bgoonz/UsefulResourceRepo2.0 | d87588ffd668bb498f7787b896cc7b20d83ce0ad | 2cb4b45dd14a230aa0e800042e893f8dfb23beda | refs/heads/master | 2023-03-17T01:22:05.254751 | 2022-08-11T03:18:22 | 2022-08-11T03:18:22 | 382,628,698 | 10 | 12 | MIT | 2022-10-10T14:13:54 | 2021-07-03T13:58:52 | null | UTF-8 | Python | false | false | 735 | py | # WHILE LOOP
#
# In this problem, write a function named "my_while_loop" that accepts an
# iterable of strings as a parameter and returns a new list with strings from
# the original list that are longer than five characters. The function must use
# a while loop in its implementation. The order of the strings in the new... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
2064722d83023f32a337a5d533cd2a04636219f4 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2603/61106/286389.py | 35e5a9b32b98fc8534ed27e662e9aad73c7de7b4 | [] | 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 | 311 | py | ori=input()
nums=[ori[i] for i in range(1,len(ori),2)]
k=int(input())
if nums!=[]:
for i in range(len(nums)):
nums[i]=int(nums[i])
nums.sort()
result=[]
for i in range(len(nums)):
n=i+1
while n<len(nums):
result.append(nums[n]-nums[i])
n += 1
result.sort()
print(result[k-1]) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
c678dfd352b74976c8f6fa986563092b5def9b0c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03327/s297227585.py | a516928e563406e47dec9baa926559fd14bc992f | [] | 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 | 204 | py | import sys
def input(): return sys.stdin.readline().rstrip()
def main():
N = int(input())
if N >= 1000:
print('ABD')
else:
print('ABC')
if __name__ == '__main__':
main()
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e644614e732ce14a452280dc39f0a321b105376b | 05f9f4d091c1b79d524c3fc047b5209bbb27156c | /acoustics/standards/iso_9613_1_1993.py | 0f84ca937a3406bd677d90ad7be901d809aeb104 | [
"BSD-3-Clause",
"Python-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | miftanurfarid/python-acoustics | 2c73b39c3e98690d313e07b7829561074cc76bbd | 03aacc0f36c83e19d33c9989d91048af1ab752e6 | refs/heads/master | 2020-03-11T14:05:55.396964 | 2018-04-08T11:21:23 | 2018-04-08T11:21:23 | 130,044,011 | 1 | 0 | null | 2018-04-18T10:12:53 | 2018-04-18T10:12:53 | null | UTF-8 | Python | false | false | 4,931 | py | """
ISO 9613-1:1993
===============
ISO 9613-1:1993 specifies an analytical method of calculating the attenuation of sound
as a result of atmospheric absorption for a variety of meteorological conditions.
"""
import numpy as np
SOUNDSPEED = 343.2
"""
Speed of sound.
"""
REFERENCE_TEMPERATURE = 293.15
"""
Referen... | [
"fridh@fridh.nl"
] | fridh@fridh.nl |
b94f13c430ff4e7bd671e0187dee59046813b3de | ae13e905feec06f2f94245481b31fcb605e485de | /practice/algorithms/implementation/the_bomberman_game.py | f731627a64180310dd3e39cc0f18d333133626d3 | [] | no_license | feadoor/hackerrank | e7a84bb20c01d420a3c37f0a7e5176ab0aac6604 | 8fa88b71d37ae83b0826a76499c9e69f947d0aeb | refs/heads/master | 2021-05-04T17:28:27.089671 | 2019-02-21T17:25:34 | 2019-02-21T17:25:34 | 120,271,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,314 | py | #!/usr/local/bin/pypy
BOMB = 'O'
EMPTY = '.'
def neighbours(x, y):
return [(x + 1, y), (x - 1, y), (x, y + 1), (x, y - 1)]
def next_value(board, x, y):
if board[x][y] == 0:
return 0
elif any(board[n_x][n_y] == 1 for n_x, n_y in neighbours(x, y) if 0 <= n_x < len(board) and 0 <= n_y < len(board[n_... | [
"sam.capplemanlynes@gmail.com"
] | sam.capplemanlynes@gmail.com |
2fb73694654fc6905a84a964a772f70523ec131d | ecb7e109a62f6a2a130e3320ed1fb580ba4fc2de | /reference-code/lambda/cm-premembers-setting/github-to-create_CodePipeline/action_fail_notification.py | d324d7ae420ac5b8b6c9cb52538ab48ac8bae923 | [] | no_license | nisheeth84/prjs_sample | df732bc1eb58bc4fd4da6e76e6d59a2e81f53204 | 3fb10823ca4c0eb3cd92bcd2d5d4abc8d59436d9 | refs/heads/master | 2022-12-25T22:44:14.767803 | 2020-10-07T14:55:52 | 2020-10-07T14:55:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,326 | py | import logging
import os
import json
import boto3
logger = logging.getLogger()
log_level = os.getenv('LOG_LEVEL', default='INFO')
logger.setLevel(log_level)
lambda_client = None
def lambda_handler(event, context):
detail = event['detail']
state = detail['state']
logger.debug("Received event: " + json.dum... | [
"phamkhachoabk@gmail.com"
] | phamkhachoabk@gmail.com |
3a80c05f6704a2de17aa722bded43b906b10f096 | 7f7213fe407f252b2323025c9b9e381a73474b7d | /analysis/summarize_results.py | 45276c2dda5e706f9078f707749e49e0772a3185 | [] | no_license | ahy3nz/graphene_build | 0ce62c2123b8c39248048d2cafbd0aafdd06ff9a | 44590b8db799136929fc06e490151f450ad30029 | refs/heads/master | 2021-06-20T07:28:20.958807 | 2019-07-03T19:48:24 | 2019-07-03T19:48:24 | 135,504,561 | 0 | 1 | null | 2018-08-06T21:47:17 | 2018-05-30T22:40:17 | Python | UTF-8 | Python | false | false | 1,104 | py | import os
import numpy as np
import pandas as pd
import pdb
trials = ['a', 'b','c']
constants = ['50', '100', '125']
#constants = ['250', '500', '1000']
angles = ['0']
#angles = ['0', '15', '30', '45']
df = pd.DataFrame()
curr_dir = os.getcwd()
for k in constants:
for a in angles:
all_forces = []
... | [
"alexander.h.yang@vanderbilt.edu"
] | alexander.h.yang@vanderbilt.edu |
048e94b3a99ff1def1070784c1b9e04fbe6136a7 | 46684dd05ac738cdf99a63ab30b1b30544564098 | /math300/test.py | 6c0d76af421b583c97d8cb75a956801886ba8523 | [
"MIT"
] | permissive | johnnydevriese/wsu_courses | ed0e0a4c98defaea1b4dc467395101504ff075fc | b55efd501c2d8f0651891f422a486e32533f5aa0 | refs/heads/master | 2020-12-02T22:23:03.263500 | 2017-07-03T15:16:24 | 2017-07-03T15:16:24 | 96,124,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | #done on 12.15.15 an interesting way to make a 21 x 2 matrix.
from numpy import *
#~
#~ a = 2 * ones(21)
#~
#~ b = arange(1,19 + 1, 2)
#~
#~ c = zeros(21)
#~
#~ for i in arange(len(b)):
#~ c[i] = b[i]
#~
#~ z = append(a,c).reshape(2,21)
#~
#~ z = transpose(z)
#~
#~ print z
#perhaps a more traditiona... | [
"johnnydevriese22@gmail.com"
] | johnnydevriese22@gmail.com |
312109917f757ebdf6b55ea0418859c583dbe428 | 8fc7fa4f10691d44563df09b093ff493b7d02e28 | /eoxserver/services/opensearch/v11/search.py | 6780066fa1764ba83bf0b0abd8ee36575312c4b6 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | constantinius/eoxserver_combined_merge_ours | f023126aefc83bd2e2dcb07bbc5028a2d3147628 | 0bc751fe4780d9095892b5be4baf11dcde2126a5 | refs/heads/master | 2021-01-17T06:39:10.461762 | 2016-04-15T14:32:11 | 2016-04-15T14:32:11 | 56,326,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,034 | py | #-------------------------------------------------------------------------------
#
# Project: EOxServer <http://eoxserver.org>
# Authors: Fabian Schindler <fabian.schindler@eox.at>
#
#-------------------------------------------------------------------------------
# Copyright (C) 2015 EOX IT Services GmbH
#
# Permission... | [
"fabian.schindler.strauss@gmail.com"
] | fabian.schindler.strauss@gmail.com |
c1dd32cf1fe3d0358e1900c84b2d4c2300278ace | 88e286474dd82c7e2e94dc4e9c7b729ef5a3a8ba | /票据打印配置修改.py | 7f5f081e07b02c6bcb340b9f970bf27c26aa02df | [] | no_license | FengZiQ/sp_gui | d02d06e94d9980c6f763039edc2de0272cb18a86 | f9c60f26f9d0dccc5c363cb422179152456e1d01 | refs/heads/master | 2020-03-28T05:04:12.877598 | 2018-12-18T11:03:37 | 2018-12-18T11:03:37 | 147,754,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,097 | py | # coding=utf-8
from gui_test_tool import *
from dataForTest import *
tool = GUITestTool()
def modify_receipt_config():
print_type = ['默认', '追加', '覆盖']
# 前置条件
add_receipt_printer_config('票据打印配置modifyTest')
# 点击支付配置管理标签
tool.click_action(
'//ul[@id="leftNav"]/li[4]',
'支付配置管理标签'
... | [
"feng1025352529@qq.com"
] | feng1025352529@qq.com |
9cdfdaedfc70944b3269a00af13bd9deefe4deaf | 9f9a9413e43d8c45f700b015cb6de664e5115c04 | /0x04-python-more_data_structures/100-weight_average.py | b406ee9ee1dc8637f9719921cecce5dcc67e88f5 | [] | no_license | JennyHadir/holbertonschool-higher_level_programming | d2bfc733800bee7fcca10a408a2d744af40b0d4b | c826d364665e40173e453048dce1ea5cb97b4075 | refs/heads/master | 2023-04-26T19:29:17.370132 | 2021-05-17T23:04:32 | 2021-05-17T23:04:32 | 319,390,421 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py | #!/usr/bin/python3
def weight_average(my_list=[]):
if my_list:
weight = 0
score = 0
for i in my_list:
score += i[1]
weight += i[0] * i[1]
return weight / score
return 0
| [
"hadirjenny@hotmail.com"
] | hadirjenny@hotmail.com |
9af0273121518eccb7ee6a791785c8e7a6ea7a41 | a74b7a424159638508e4083aee927e6fca1e31ad | /vlbdiffwave/impl.py | 5bcf51d38183b552386c6a5e5e1dfb906d318bf7 | [
"MIT"
] | permissive | WN1695173791/jax-variational-diffwave | 77f17c44e6df9086754d15ad314a4a6cc58aff8f | 780f615d76cff6f6210d5db0b9790961fc716905 | refs/heads/main | 2023-07-15T14:58:27.550266 | 2021-09-06T15:07:22 | 2021-09-06T15:07:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,731 | py | from typing import Optional, Tuple
import flax
import flax.linen as nn
import jax.numpy as jnp
from .config import Config
from .diffwave import DiffWave
from .logsnr import LogSNR
class VLBDiffWave:
"""Model definition of VLB-Diffwave.
"""
def __init__(self, config: Config):
"""Initializer.
... | [
"revsic99@gmail.com"
] | revsic99@gmail.com |
5bdf7a1ae800e202382e3d7d0b820fccc7907387 | 9b9a02657812ea0cb47db0ae411196f0e81c5152 | /repoData/docopt-docopts/allPythonContent.py | 27cda325177a0b927e2fbf1d1044a93b41b333f8 | [] | no_license | aCoffeeYin/pyreco | cb42db94a3a5fc134356c9a2a738a063d0898572 | 0ac6653219c2701c13c508c5c4fc9bc3437eea06 | refs/heads/master | 2020-12-14T14:10:05.763693 | 2016-06-27T05:15:15 | 2016-06-27T05:15:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,806 | py | __FILENAME__ = language_agnostic_tester
#! /usr/bin/env python2
import sys, json, re, os
from subprocess import Popen, PIPE, STDOUT
fixtures = open(os.path.join(os.path.dirname(__file__), 'testcases.docopt'), 'r').read()
# remove comments
fixtures = re.sub('#.*$', '', fixtures, flags=re.M)
testee = (sys.ar... | [
"dyangUCI@github.com"
] | dyangUCI@github.com |
768adacbe51e4ff930528aa640c60e9bac3172af | eee480b75e1454832a07bd02ab4ff5058aa8033e | /db/models.py | 8f68f729ef071c222eeabe329b133a153718b6b2 | [] | no_license | 545314690/wechat-spider | 92dac44f8559ab0347b681945541f0b42be994d5 | fe5cbac4aaedf32d974a01ab5fbb3fa33332c91d | refs/heads/master | 2021-01-01T17:45:21.451910 | 2017-07-27T09:40:44 | 2017-07-27T09:40:44 | 98,148,453 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,464 | py | # -*-coding:utf-8 -*-
from sqlalchemy import Column, Integer, String, Boolean, INTEGER, DateTime
from db.basic_db import Base, engine
from db.tables import *
class LoginInfo(Base):
# 登录账号表 login_info
__tablename__ = 'login_info'
id = Column(INTEGER, primary_key=True, autoincrement=True)
username = Co... | [
"“545314690@qq.com”"
] | “545314690@qq.com” |
216a2b17f45760c653834956d1a4df19aa73e94e | f9aa857868a2027eb6738e16318e84e2320c2947 | /cookiecutter_django_test/contrib/sites/migrations/0003_set_site_domain_and_name.py | a36c0ace8376e9f56496ffe0c5d8e0ca91082f3e | [
"MIT"
] | permissive | imsure/cookiecutter-django-test | 44ecda7cb9449dcf78dc878a73f8eb9ba9d89f1b | 853a46e6410fc9814cadbef828987f2c5b24fe4d | refs/heads/master | 2020-03-12T18:55:37.943646 | 2018-04-24T00:29:23 | 2018-04-24T00:29:23 | 130,773,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,027 | py | """
To understand why this file is here, please read:
http://cookiecutter-django.readthedocs.io/en/latest/faq.html#why-is-there-a-django-contrib-sites-directory-in-cookiecutter-django
"""
from django.conf import settings
from django.db import migrations
def update_site_forward(apps, schema_editor):
"""Set site d... | [
"imsure95@gmail.com"
] | imsure95@gmail.com |
9929059b4cc7d12192264b8307b4f37220bc83da | a1728a475b8c4e64a3a629d9c1f43294999eb769 | /oTree/__temp_migrations/slider_post/0011_auto_20210123_2211.py | e7115dbec75e88987bb50c95d1e413510375e0ba | [] | no_license | Tslilon/experimental_instruments_labor_project | 2fff71db7453b1d455c9f2984e899f6b3f92e5f2 | 489b85eacf145eec03999bd416c4394b4a4bbafa | refs/heads/master | 2023-03-19T02:21:06.279317 | 2021-02-23T11:49:38 | 2021-02-23T11:49:38 | 325,325,614 | 0 | 0 | null | 2021-02-23T11:49:39 | 2020-12-29T15:46:15 | Python | UTF-8 | Python | false | false | 538 | py | # Generated by Django 2.2.12 on 2021-01-24 06:11
from django.db import migrations
import otree.db.models
class Migration(migrations.Migration):
dependencies = [
('slider_post', '0010_auto_20210123_2210'),
]
operations = [
migrations.AlterField(
model_name='player',
... | [
"chenxjiang@berkeley.edu"
] | chenxjiang@berkeley.edu |
82ae6ef5b855de4f23fc4565b954b99b47490386 | 26bc83ba9481257be8ec47ea032c554feb6cb2ba | /setup.py | 99a83a781060b2cdaa43e2d333a0ee84779b7231 | [] | no_license | irachex/zkpython | e8121e20b63db07dcc6e5ed2fcde94a0a1213a9b | a9a87747df9d316c2b26035f928900b72b9deb41 | refs/heads/master | 2021-01-23T12:16:43.143916 | 2014-10-26T14:22:04 | 2014-10-26T14:22:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,287 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not ... | [
"irachex@gmail.com"
] | irachex@gmail.com |
6f9b320f93d5f90a21da0f426a8d2714b87c4352 | 70433b90af33ed71fc9ab6c7ba15fe1b1ec52a90 | /tests/validation/operation/test_produces_validation.py | 5c5b9effd418860017904483a3b07bee22867320 | [
"MIT"
] | permissive | dhilton/flex | f6b54ae2c4c28e760fdcc02e00b7a4df420fba99 | e23e74e246f4ad89c8d8971b029dcdd2fa642526 | refs/heads/master | 2020-04-05T23:10:53.512712 | 2014-11-10T04:35:48 | 2014-11-10T04:35:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,083 | py | import pytest
from flex.validation.operation import (
construct_operation_validators,
validate_operation,
)
from tests.factories import (
ResponseFactory,
SchemaFactory,
)
#
# produces mimetype validation.
#
def test_produces_validation_valid_mimetype_from_global_definition():
"""
Test that... | [
"piper@simpleenergy.com"
] | piper@simpleenergy.com |
02883ec23d9f5f21ace7da9c6f6be38f2867bfea | e5889e31869f5c00335b6fefb48da4e79bea1801 | /week_4/01_02_delete_max_heap.py | 1a584705e1ab3e6092ff5f929e884704a774cd48 | [] | no_license | HoChangSUNG/sparta_algorithm | 2f4d9767eec1c9e3c17e420be0bc905713bbdb8c | 1572027a6278c5ba6b96f426c904d8739ae3649d | refs/heads/main | 2023-02-02T22:47:22.449648 | 2020-12-21T06:56:20 | 2020-12-21T06:56:20 | 323,255,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,767 | py | class MaxHeap:
def __init__(self):
self.items = [None]
def insert(self, value):
self.items.append(value)
cur_index = len(self.items) - 1
while cur_index > 1: # cur_index 가 1이 되면 정상을 찍은거라 다른 것과 비교 안하셔도 됩니다!
parent_index = cur_index // 2
if self.items[par... | [
"love47024702@naver.com"
] | love47024702@naver.com |
c38888fe571c3fb10c56219cfac5fd6893db8fc7 | 5e9576c368e98927e2965bd2fb23bd35d9993d69 | /featuretools/primitives/standard/aggregation/max_min_delta.py | 74dfcaafb3e71b4d1466672426d6f42b7b5f9afa | [
"BSD-3-Clause"
] | permissive | alteryx/featuretools | c6e319e063e8e84e7684bf232376f95dc5272160 | c284c2d27a95b81e0bae913ac90df2b02c8f3b37 | refs/heads/main | 2023-08-25T12:21:33.945418 | 2023-08-23T16:30:25 | 2023-08-23T16:30:25 | 102,908,804 | 1,783 | 201 | BSD-3-Clause | 2023-09-07T18:53:19 | 2017-09-08T22:15:17 | Python | UTF-8 | Python | false | false | 1,126 | py | from woodwork.column_schema import ColumnSchema
from featuretools.primitives.base import AggregationPrimitive
class MaxMinDelta(AggregationPrimitive):
"""Determines the difference between the max and min value.
Args:
skipna (bool): Determines if to use NA/null values.
Defaults to True to... | [
"noreply@github.com"
] | alteryx.noreply@github.com |
abc51ee3da4656a2513b1a39da9a2afc1f616f46 | 349893015430768ac3ad0f8ca6fa8007c2e88f65 | /test_appium/cases/test_contact.py | 4501706e8731a6ca095ba7bf88622cfeffc3cc02 | [] | no_license | github653224/HogwartsLG7 | 226aa5640d1862b26f2ddc938c84b50a9e49c6a3 | 17b20d72bab376ce85d76d7ee0cab03f4e176a01 | refs/heads/main | 2023-06-07T08:33:47.293126 | 2021-06-29T14:07:41 | 2021-06-29T14:07:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 879 | py | """
__author__ = 'hogwarts_xixi'
__time__ = '2021/4/16 8:48 下午'
"""
from time import sleep
import sys
sys.path.append('..')
from test_appium.pages.app import App
class TestContact:
def setup_class(self):
# 打开应用,进入到首页
self.app = App()
def setup(self):
self.main = self.app.start().got... | [
"xujuan418974188@163.com"
] | xujuan418974188@163.com |
855f056f1316e0015b0e1b25a1ec3771972c8647 | a46e23e8266f7569e059f4df0cc22f3752965c77 | /slack/leetcode-challenge-alarm.py | 1c5b4c28f593f1572146cae2130200e124d8e0ef | [] | no_license | jhy979/all-solved-club | 758ae94f8b144deb8af0eabfd8445445ea43f182 | cc1494b85bc7600cf242cf6ab1a7f5e78698a126 | refs/heads/main | 2023-07-15T22:19:11.084766 | 2021-08-24T03:15:58 | 2021-08-24T03:15:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | import os
from slack_sdk.webhook import WebhookClient
url = os.environ.get("SLACK_WEBHOOK_URL")
webhook = WebhookClient(url)
response = webhook.send(text="LeetCode에서 새로운 챌린지 문제가 출제되었습니다. - https://leetcode.com")
assert response.status_code == 200
assert response.body == "ok"
| [
"jwp0530@gmail.com"
] | jwp0530@gmail.com |
16d50188284e895addc4ad7bb1afa19b64421511 | b09ea1e78e1a1f5d053817af35599c9464e755fe | /filter_utterances.py | cce497ee940a03394c4e60d4ae149f586b515e8e | [] | no_license | aeoling/reddit_tools | 46f0e321bf72889c82b100eae5418ac7a71b9701 | f7fa9f32e547ddb529d55017a7784d00542c3ca0 | refs/heads/master | 2021-06-13T17:57:40.606586 | 2017-03-10T01:34:43 | 2017-03-10T01:34:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,959 | py | from argparse import ArgumentParser
from os import path, makedirs, listdir
from collections import defaultdict
import numpy as np
from nltk import word_tokenize
MIN_CONTENT_WORD_FREQUENCY = 10
def load_questions(in_stream):
result = set([])
for line in in_stream:
result.add(line.strip().lower())
... | [
"ishalyminov@gmail.com"
] | ishalyminov@gmail.com |
9884cd78a96910ea51c7b7436511c56069946ac6 | df7f13ec34591fe1ce2d9aeebd5fd183e012711a | /hata/discord/message/attachment/fields.py | a18f011507b4f126fe1cfce5f33d927754dca5ce | [
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | HuyaneMatsu/hata | 63e2f6a2d7a7539fd8f18498852d9d3fe5c41d2e | 53f24fdb38459dc5a4fd04f11bdbfee8295b76a4 | refs/heads/master | 2023-08-20T15:58:09.343044 | 2023-08-20T13:09:03 | 2023-08-20T13:09:03 | 163,677,173 | 3 | 3 | Apache-2.0 | 2019-12-18T03:46:12 | 2018-12-31T14:59:47 | Python | UTF-8 | Python | false | false | 3,683 | py | __all__ = ()
from ...field_parsers import (
bool_parser_factory, entity_id_parser_factory, flag_parser_factory, float_parser_factory,
force_string_parser_factory, int_parser_factory, nullable_string_parser_factory
)
from ...field_putters import (
bool_optional_putter_factory, entity_id_putter_factory, flag... | [
"re.ism.tm@gmail.com"
] | re.ism.tm@gmail.com |
13f67ec412e8d337686f43866268cea66429a4fd | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03634/s109235916.py | 458b74a4f790d735865b22558bf7c8d196e50401 | [] | 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 | 1,326 | py | from collections import deque
def bfs(start, g, visited):
q = deque([])
k_neibs = g[start]
visited[start] = (0,start)
for neib, dist in k_neibs:
q.append((neib, neib)) # node, root parent (k neib)
visited[neib] = (dist, neib) # dist, root parent (k neib)
while q:
curr_node, ... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c2fc1b0031863d92f615f5df5b863e07c4964440 | 0b2e54f19875e51519950c06c6110a8144d85cb4 | /python_textbook_questions/Graph/graph_dfs__adjList_defaultdictlist.py | 71c4e40cbb2c117d9fd4200802711d1817811a91 | [] | no_license | hemangbehl/Data-Structures-Algorithms_practice | b1f5d5995d4e02de2d3807e18ac0639b900d35af | e125ebd42dd4083701b13a319c368f4a622ca669 | refs/heads/master | 2020-08-06T09:03:42.253388 | 2020-07-10T23:55:39 | 2020-07-10T23:55:39 | 212,916,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,029 | py | from collections import defaultdict
class Graph:
def __init__(self, vertices):
self.graph = defaultdict(list)
self.V = vertices
def add_edge(self, src, dest):
self.graph[src].append(dest)
def printAllEdges(self):
print("all edges:")
for i in self.graph:
... | [
"44247931+hemangbehl@users.noreply.github.com"
] | 44247931+hemangbehl@users.noreply.github.com |
a1961d38a64e8fefe13f6f62bcd6d0ee1dd43572 | 101b0ae046501b9eb0990be2d86e5b5538aacd7a | /src/pcg/pcg/grids/square.py | f0f4c09fd1f7fa1e8b04ab8a2b3e8923c0ed3d3c | [
"BSD-3-Clause"
] | permissive | Tiendil/pcg-python | ebd12dd7abba43d758c746dad8057130f61ac720 | 02b54932bdec4a13c179ebeee76fc8ed1b8eba34 | refs/heads/master | 2022-12-15T05:32:02.970053 | 2020-09-15T10:47:18 | 2020-09-15T10:47:18 | 263,430,688 | 2 | 0 | null | 2020-09-15T10:41:29 | 2020-05-12T19:20:30 | Python | UTF-8 | Python | false | false | 3,575 | py | import math
import dataclasses
from PIL import Image
from pcg import colors
from pcg import drawer
from pcg.topologies import BaseArea
from pcg.geometry import Point, BoundingBox
@dataclasses.dataclass(frozen=True, order=True)
class Cell:
__slots__ = ('x', 'y')
x: int
y: int
def __add__(self, cell... | [
"a.eletsky@gmail.com"
] | a.eletsky@gmail.com |
b8d13be6eb295ce9d73ae66e5400dde099535a2c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03946/s886596927.py | 8ddaedd848e91074fcbb5e84cb91d83065d340d1 | [] | 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 | 297 | py | n, t = map(int, input().split())
ns = list(map(int, input().split()))
min_n = 10 ** 10
max_n = 0
max_l = []
for i in ns[::-1]:
max_n = max(max_n, i)
max_l.append(max_n)
max_l.reverse()
l = []
for i in range(n):
l.append(ns[i]-min_n)
min_n = min(min_n, ns[i])
print(l.count(max(l))) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
9e4820dd94bd2272bd3c98ea0ed4ad3f032a4622 | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-sblp-obt/sblp_ut=3.5_rd=0.8_rw=0.04_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=25/params.py | fff0f4ebe57c15d0241b34e8b819f2e1e8e6ba77 | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | {'cpus': 4,
'duration': 30,
'final_util': '3.602405',
'max_util': '3.5',
'periods': 'harmonic-2',
'release_master': False,
'res_distr': '0.8',
'res_nmb': '4',
'res_weight': '0.04',
'scheduler': 'RUN',
'trial': 25,
'utils': 'uni-medium-3'}
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
11d569aa09d84966613f28d3980d5e2949f5b07c | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/justdark_dml/dml-master/dml/CLUSTER/kmeans.py | 67e0ce8d2b50cfe1a715e5a08df442b1f2ffb503 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 1,095 | py | from __future__ import division
import numpy as np
import scipy as sp
import pylab as py
from scipy.cluster.vq import kmeans2,whiten
'''
the scipy contain a kmeans,so there is no need to write one
bu for the convenience of using,I pack it with my code
I don't know how to translate the input space to whitened space
... | [
"659338505@qq.com"
] | 659338505@qq.com |
2fc943c950de622134f2630688a4ea910d09ef57 | 918963bcb425328076ce17400966378bd66f5e7e | /python-openshift-release/openshift_release/models/com_github_vfreex_release_apiserver_pkg_apis_art_v1alpha1_build_list.py | 9de3643f43abfbf8f53738b297933a91c21d3ece | [] | no_license | vfreex/release-apiserver | 884d5ce6c1ef936fc746b668884e8f97a27305d8 | a6e1df25a38f808fc194397fcd63628a999fed95 | refs/heads/master | 2023-03-09T19:05:38.011434 | 2020-05-21T09:25:47 | 2020-05-21T09:25:47 | 247,671,819 | 2 | 0 | null | 2023-02-24T23:14:38 | 2020-03-16T10:20:42 | Go | UTF-8 | Python | false | false | 7,822 | py | # coding: utf-8
"""
Api
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: v0
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from openshift... | [
"yuxzhu@redhat.com"
] | yuxzhu@redhat.com |
c6444febe09bdfdf0db44534477486ada7928f63 | 286c7b7dd9bd48c73fd94f8e89bde99a8d3f74c5 | /modelscript/interfaces/modelc/execution.py | ac1e9752664b2e49d14a9f0f73e4a059fc6b1343 | [
"MIT"
] | permissive | ScribesZone/ModelScript | e7738471eff24a74ee59ec88d8b66a81aae16cdc | a36be1047283f2e470dc2dd4353f2a714377bb7d | refs/heads/master | 2023-03-18T02:43:57.953318 | 2021-03-08T15:26:40 | 2021-03-08T15:26:40 | 31,960,218 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,599 | py | # coding=utf-8
""""""
__all__ = (
'ExecutionContext'
)
import os
from typing import List, Any, Dict, Optional, ClassVar
from collections import OrderedDict
import argparse
# initialize the megamodel with metamodels and scripts
from modelscript.base.files import filesInTree
from modelscript.interfaces.modelc.opt... | [
"escribis@users.noreply.github.com"
] | escribis@users.noreply.github.com |
a0b3f3473e96a829362eb4a6e2795c317ea237ae | ae7ba9c83692cfcb39e95483d84610715930fe9e | /bmw9t/nltk/ch_three/34.py | 887616cb690d8b5f25ba28819605a36c6f85e6a4 | [] | no_license | xenron/sandbox-github-clone | 364721769ea0784fb82827b07196eaa32190126b | 5eccdd8631f8bad78eb88bb89144972dbabc109c | refs/heads/master | 2022-05-01T21:18:43.101664 | 2016-09-12T12:38:32 | 2016-09-12T12:38:32 | 65,951,766 | 5 | 7 | null | null | null | null | UTF-8 | Python | false | false | 1,289 | py | # ◑ Write code to convert nationality adjectives like Canadian and Australian to their corresponding nouns Canada and Australia (see http://en.wikipedia.org/wiki/List_of_adjectival_forms_of_place_names).
import re
import nltk
import pycountry
countries = [country.name for country in pycountry.countries]
def conve... | [
"xenron@outlook.com"
] | xenron@outlook.com |
a87c4be49b0e91e03f99718dedf309a616007fbe | c1d5ca6194e4cf1bf3d3a3dfe758a95dfb87a8bc | /Python-Itertools-Itertools_Combinations_with_replacement.py | ee8e460ebbc0f7edab0aae542397cea4e79f5c83 | [] | no_license | maheshkrishnagopal/HackerRankSolutions | 6924b9ea92f86cab0885016482e08e5b4f801dad | ca16aa8fe726e4a9dac149d407cfde3620cdf96a | refs/heads/master | 2020-08-02T10:51:46.568749 | 2019-06-21T06:15:15 | 2019-06-21T06:15:15 | 211,324,575 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,135 | py | # itertools.combinations_with_replacement(iterable, r)
# This tool returns length subsequences of elements from the input iterable allowing individual elements to be repeated more than once.
# Combinations are emitted in lexicographic sorted order. So, if the input iterable is sorted, the combination tuples will be ... | [
"noreply@github.com"
] | maheshkrishnagopal.noreply@github.com |
ae2420c44c43955f3134b17593b131ef1ca3bda9 | 9522d6962376dccf073f59e447ce20c993dff5f2 | /src/api/views/articles.py | a66c0bcc5d9f03bb49410ea4f65f1accfc9292bf | [] | no_license | bolekhan1508/django_intro | 6f51085905306989f3fc86c72e01b752d1917d4e | 147bbeef2dc3f3c93771f757b44689a4103bf618 | refs/heads/master | 2022-10-30T09:06:46.476738 | 2020-06-18T10:02:21 | 2020-06-18T10:02:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,043 | py | from rest_framework import status
from rest_framework.response import Response
from rest_framework.views import APIView
from rest_framework import generics, mixins
from api.serializers.v1.article import ArticleSerializer, ArticleModelSerializer
from apps.articles.models import Article
class ArticleApiView(APIView):
... | [
"odarchenko@ex.ua"
] | odarchenko@ex.ua |
209938778c9851b71332d8689c820720afece9d7 | 0add7953d3e3ce2df9e8265102be39b758579753 | /built-in/TensorFlow/Research/cv/image_classification/Cars_for_TensorFlow/automl/vega/algorithms/nas/sm_nas/smnas_trainer_callback.py | 8cfff6490cdcbc92ef01f25108da398c4f8e260f | [
"Apache-2.0",
"MIT"
] | permissive | Huawei-Ascend/modelzoo | ae161c0b4e581f8b62c77251e9204d958c4cf6c4 | df51ed9c1d6dbde1deef63f2a037a369f8554406 | refs/heads/master | 2023-04-08T08:17:40.058206 | 2020-12-07T08:04:57 | 2020-12-07T08:04:57 | 319,219,518 | 1 | 1 | Apache-2.0 | 2023-03-24T22:22:00 | 2020-12-07T06:01:32 | Python | UTF-8 | Python | false | false | 5,125 | py | """Trainer for SMNas."""
import logging
import os
import mmcv
import torch
from pycocotools.coco import COCO
from pycocotools.cocoeval import COCOeval
from vega.core.trainer.callbacks import Callback
from vega.core.common.class_factory import ClassFactory, ClassType
from vega.core.common.file_ops import FileOps
@Cla... | [
"1571856591@qq.com"
] | 1571856591@qq.com |
443d05667fa143590ce4377290bb9f55e10a6f94 | 70433b90af33ed71fc9ab6c7ba15fe1b1ec52a90 | /tests/validation/response/test_request_parameter_validation.py | 4a1f85474beb93ce6a2064d0611a4370fa5a897c | [
"MIT"
] | permissive | dhilton/flex | f6b54ae2c4c28e760fdcc02e00b7a4df420fba99 | e23e74e246f4ad89c8d8971b029dcdd2fa642526 | refs/heads/master | 2020-04-05T23:10:53.512712 | 2014-11-10T04:35:48 | 2014-11-10T04:35:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,656 | py | import pytest
from flex.validation.response import (
validate_response,
)
from flex.error_messages import MESSAGES
from flex.constants import (
PATH,
QUERY,
STRING,
INTEGER,
)
from tests.factories import (
SchemaFactory,
ResponseFactory,
)
from tests.utils import assert_error_message_equal... | [
"piper@simpleenergy.com"
] | piper@simpleenergy.com |
b3b02cd1d0710b21962d9239ab72e90a5965cb4a | fdc0b72a3782a06952df4d723783dfa1bae65753 | /query_deluxe/models/query_deluxe.py | 4719ada08e5ea3a5d8cde3dbb94ce8c223b2cde6 | [] | no_license | Denbho/vendor_portal | 0878ad82bf3c40d38f6e123f6b25a358bfebce4f | 341a7ca77cbd310f3835d4b43de5012354a307c5 | refs/heads/main | 2023-04-19T21:26:56.115346 | 2021-05-17T04:16:53 | 2021-05-17T04:16:53 | 364,744,567 | 2 | 0 | null | 2021-05-06T04:34:51 | 2021-05-06T00:52:09 | Python | UTF-8 | Python | false | false | 3,605 | py | from odoo import api, fields, models, _
from odoo.exceptions import UserError
class QueryDeluxe(models.Model):
_name = "querydeluxe"
_description = "Postgres queries from Odoo interface"
_inherit = ['mail.thread', 'mail.activity.mixin']
tips = fields.Many2one('tipsqueries', string="Examples")
tip... | [
"dennisboysilva@gmail.com"
] | dennisboysilva@gmail.com |
0f9430ff53318e3f34a0143b0e232380dcbd2abf | eb722922339781fa6bd9937e69383fcd06256738 | /day1/kapua-python-client/swagger_client/models/access_permission.py | 10bb5782a236f4f03f16b8c20aed316153d4307e | [
"MIT"
] | permissive | mrsrinivas/diec | 6a0c5da26ff23170b71217bfbc810bb98a897a83 | ae9a5203b506d5cc18cb381666351bf9ce6b9b6c | refs/heads/master | 2021-01-05T05:41:19.394898 | 2020-01-15T06:24:33 | 2020-01-15T06:24:33 | 240,901,175 | 1 | 0 | MIT | 2020-02-16T13:59:53 | 2020-02-16T13:59:52 | null | UTF-8 | Python | false | false | 7,327 | py | # coding: utf-8
"""
Eclipse Kapua REST API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
i... | [
"noreply@github.com"
] | mrsrinivas.noreply@github.com |
0da4a4157e589feceb1276afdc4affd5eff7eb9c | 58ca273d2a9ee7f75b4bde3990513f74441143f0 | /Python/Cellular Automata and FSMs/Turing Machine 1.0.py | 253213abdb96bfc82a197a43c610dfd0947ce9bc | [] | no_license | Al153/Programming | 6db4b3c9d34747e1248aed2b0ee7fb7a35cef8d2 | 26de0b5607c6329bed2d6454090f00b098bc837f | refs/heads/master | 2021-04-12T04:13:00.945021 | 2019-07-12T17:47:08 | 2019-07-12T17:47:08 | 12,439,227 | 2 | 2 | null | 2014-08-13T19:21:46 | 2013-08-28T16:47:08 | Game Maker Language | UTF-8 | Python | false | false | 1,414 | py | #Turing machine I
def str_list(a):
b =[]
for i in range(len(a)):
c = a[i]
b.append (str(c))
return b
R,r = 1,1
L,l = -1,-1
HALT, Halt, halt = 'halt','halt','halt'
tape = [0,0,1,0,0,0,1,1,1,0,1,0,1,1,0,1,0,0,0]
program = (
([R,0,0],[R,1,1]),
... | [
"al.taylor1105@gmail.com"
] | al.taylor1105@gmail.com |
4d76334adfcd5e688e9261bdf384c7c71abf7550 | a46d135ba8fd7bd40f0b7d7a96c72be446025719 | /packages/python/plotly/plotly/validators/pointcloud/hoverlabel/font/_size.py | 0f201eeb18dd469693d4636f5f0b526e02c1f9b0 | [
"MIT"
] | permissive | hugovk/plotly.py | 5e763fe96f225d964c4fcd1dea79dbefa50b4692 | cfad7862594b35965c0e000813bd7805e8494a5b | refs/heads/master | 2022-05-10T12:17:38.797994 | 2021-12-21T03:49:19 | 2021-12-21T03:49:19 | 234,146,634 | 0 | 0 | MIT | 2020-01-15T18:33:43 | 2020-01-15T18:33:41 | null | UTF-8 | Python | false | false | 509 | py | import _plotly_utils.basevalidators
class SizeValidator(_plotly_utils.basevalidators.NumberValidator):
def __init__(
self, plotly_name="size", parent_name="pointcloud.hoverlabel.font", **kwargs
):
super(SizeValidator, self).__init__(
plotly_name=plotly_name,
parent_name... | [
"noreply@github.com"
] | hugovk.noreply@github.com |
f7f6381a89dd15a2e03160b3ce89d1620f1846dd | 38382e23bf57eab86a4114b1c1096d0fc554f255 | /hazelcast/protocol/codec/map_remove_codec.py | 61850d484dc922697b6864594cb5d06d9be6f29c | [
"Apache-2.0"
] | permissive | carbonblack/hazelcast-python-client | e303c98dc724233376ab54270832bfd916426cea | b39bfaad138478e9a25c8a07f56626d542854d0c | refs/heads/gevent-3.12.3.1 | 2023-04-13T09:43:30.626269 | 2020-09-18T17:37:17 | 2020-09-18T17:37:17 | 110,181,474 | 3 | 1 | Apache-2.0 | 2020-12-01T17:45:42 | 2017-11-10T00:21:55 | Python | UTF-8 | Python | false | false | 1,196 | py | from hazelcast.serialization.bits import *
from hazelcast.protocol.client_message import ClientMessage
from hazelcast.protocol.codec.map_message_type import *
REQUEST_TYPE = MAP_REMOVE
RESPONSE_TYPE = 105
RETRYABLE = False
def calculate_size(name, key, thread_id):
""" Calculates the request payload size"""
d... | [
"arslanasim@gmail.com"
] | arslanasim@gmail.com |
e46b45ed01d05ceb5c23f7d30e315dacbc49ecb7 | 0c6990136391d72d3768d5a8a4a6919bd2f6ce6a | /0x16-api_advanced/2-recurse.py | 3de8da02f221e1d898e945b3e379747e81ed5132 | [] | no_license | s0m35h1t/holberton-system_engineering-devops | eef99bcf0297938a20470a72b12e9d603c6153ab | 3aea10e71c49b2a97c7ed02bfae2231fcede1a92 | refs/heads/master | 2020-07-24T02:51:02.279869 | 2020-05-28T22:33:31 | 2020-05-28T22:33:31 | 207,779,574 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,136 | py | #!/usr/bin/python3
"""
Define: recurse function
"""
import requests
def recurse(subreddit, hot_list=[], after=None):
"""get a list of all hot post titles for a subreddit
Arguments:
subreddit, hot_list, after
Returns:
(list)
"""
if subreddit is None or type(subreddit) is not str:... | [
"adib.grouz@gmail.com"
] | adib.grouz@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.