blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cd5cc4556e6d1854330409d0157e50db0125950f | 3f9f7fe32c655e612f351302ad1945e92e514a31 | /ut/scrap/xgoogle/sponsoredlinks.py | e3b4515c1a2095d5cb8875038664aca09f932b8a | [
"MIT"
] | permissive | thorwhalen/ut | 12ea7e0fd9bc452d71b0cc3d8ecdb527335a3c17 | 72dbdf41b0250708ad525030128cc7c3948b3f41 | refs/heads/master | 2023-02-17T06:44:11.053826 | 2023-02-07T13:22:07 | 2023-02-07T13:22:07 | 32,152,452 | 6 | 4 | MIT | 2023-02-16T00:34:33 | 2015-03-13T11:32:31 | Python | UTF-8 | Python | false | false | 7,973 | py | #!/usr/bin/python
#
# Peteris Krumins (peter@catonmat.net)
# http://www.catonmat.net -- good coders code, great reuse
#
# http://www.catonmat.net/blog/python-library-for-google-sponsored-links-search/
#
# Code is licensed under MIT license.
#
import re
import urllib.request, urllib.parse, urllib.error
import random
... | [
"thorwhalen1@gmail.com"
] | thorwhalen1@gmail.com |
3a3f5eca94ff903e351eda079b55486e241fbaf2 | ee4c4c2cc6c663d4233d8145b01ae9eb4fdeb6c0 | /configs/FDDB/retinanet/cfgs_res50_fddb_v4.py | 3d62297eb03eef39a8f72de29894929e06afd4ac | [
"Apache-2.0"
] | permissive | yangcyz/RotationDetection | c86f40f0be1142c30671d4fed91446aa01ee31c1 | 82706f4c4297c39a6824b9b53a55226998fcd2b2 | refs/heads/main | 2023-09-01T23:25:31.956004 | 2021-11-23T13:57:31 | 2021-11-23T13:57:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,992 | py | # -*- coding: utf-8 -*-
from __future__ import division, print_function, absolute_import
import numpy as np
from alpharotate.utils.pretrain_zoo import PretrainModelZoo
from configs._base_.models.retinanet_r50_fpn import *
from configs._base_.datasets.dota_detection import *
from configs._base_.schedules.schedule_1x i... | [
"yangxue0827@126.com"
] | yangxue0827@126.com |
033a02153fd14c2d5475e0363c33629676f59c87 | 97ffb573b2f5f615c14347f9e2e8c12660c799a8 | /libs/ignite_utils.py | 26a021b900f7b27e00f4639a54305d87b4641b46 | [] | no_license | GOSSAN0602/OCR-Ancient-characters | d2745ea133b9d4595e860f03afa1d3eed7ee2104 | b118a9f40127af505f6e324aaabf0fccd2ce9d12 | refs/heads/master | 2020-12-22T21:10:30.266685 | 2020-01-31T07:20:36 | 2020-01-31T07:20:36 | 236,933,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,756 | py | import json
from logging import getLogger
import os
from time import perf_counter
import torch
import pandas as pd
from ignite.engine.engine import Engine, Events
from ignite.metrics import Average
from ignite.metrics.metric import Metric
def save_json(filepath, params):
with open(filepath, 'w') as f:
js... | [
"google-dl-platform@googlegroups.com"
] | google-dl-platform@googlegroups.com |
7be016d715c3f91b6565881bab25ad196f486f3e | 0266077854f9dd6e2b55f4e8e71f77f42bd20b21 | /apps/childcount/migrations/0021_auto__add_field_pregnancyregistrationreport_husband__chg_field_pregnan.py | b83efee908b56322835f5372190f738fffb7c778 | [] | no_license | techpub/rapidsms | 5af55880d4aa4c6035ea16d3fb1f6ea4524893d7 | b71f4c5ce93fe8ac7b1cf0b8522b698361904dbb | refs/heads/ccstable | 2020-12-03T09:19:56.397816 | 2013-05-15T07:37:46 | 2013-05-15T07:37:46 | 46,684,087 | 0 | 0 | null | 2015-11-22T22:41:45 | 2015-11-22T22:41:45 | null | UTF-8 | Python | false | false | 35,171 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'PregnancyRegistrationReport.husband'
db.add_column('cc_pregregrpt', 'husband', self.gf('dj... | [
"ukanga@gmail.com"
] | ukanga@gmail.com |
3cec55de5e490b496ba347b8d217cacfc2c13666 | b82057c77dd4d00ff9bca9a979a1a3075f0528c4 | /Exicom_gateway/checks/ec500_dg_run_hrs_status | f262c1d3c3aca62ea1088f680672de55d4d0d89f | [] | no_license | subhash-007/photography-blog | 7ee0c4f930fee29d76106c45b09e6b76cb19cf56 | b1ae66794b48bfe3862cb6e727a3a15a6ef79024 | refs/heads/master | 2020-03-31T04:33:00.276628 | 2019-07-12T06:00:39 | 2019-07-12T06:00:39 | 151,910,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,669 | #!/usr/bin/python
"""
dgRunHrs of poller device.
This is part of device application.
Poller script determines the dgRunHrs of device.
poller script takes the snmp value of OID .1.3.6.1.4.1.38016.14.19.4 from snmp agent of device at specific interval.
Device dgRunHrs is sent to device application
"""
# ###############... | [
"sbmoond@gmail.com"
] | sbmoond@gmail.com | |
64c49ca2cb4c7c43f39de8540150f88edbcf456f | 09b22d1bd1263e4082e6bba7afa2f2b7a66afd4a | /2 Panda/Merging Joining and concatenating.py | 90dcad0a206666caa8afe348c070f41b30c17891 | [] | no_license | yogeshkushwahait/Machine-Learning-Using-Python | b70bc5334c4178fecc175451b8b7e04e50a60917 | 8102ce7b0cba5d48e923f979ae0a8e71c25857b1 | refs/heads/master | 2022-03-28T05:21:24.332537 | 2019-11-05T06:34:00 | 2020-01-09T16:06:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,079 | py |
# coding: utf-8
# In[1]:
import numpy as np
# In[2]:
import pandas as pd
# In[8]:
df1 = pd.DataFrame({'A':['A0','A1','A2','A3'],
'B':['B0','B1','B2','B3'],
'C':['C0','C1','C2','C3'],
'D':['D0','D1','D2','D3']},
index=[0,1,2,3])
... | [
"rishav.jnit@gmail.com"
] | rishav.jnit@gmail.com |
86967f12db84d645c96b6fcc9ce73c7e7323e057 | fcdfe976c9ed60b18def889692a17dc18a8dd6d7 | /ros/py_ros/ur/follow_q_traj2.py | aefc0a0a5ab2d97e9674f530bc544538ff3fa55e | [] | no_license | akihikoy/ay_test | 4907470889c9bda11cdc84e8231ef3156fda8bd7 | a24dfb720960bfedb94be3b4d147e37616e7f39a | refs/heads/master | 2023-09-02T19:24:47.832392 | 2023-08-27T06:45:20 | 2023-08-27T06:45:20 | 181,903,332 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,998 | py | #!/usr/bin/python
#\file follow_q_traj1.py
#\brief Follow a joint angle trajectory.
#\author Akihiko Yamaguchi, info@akihikoy.net
#\version 0.1
#\date Jun.12, 2018
#Based on: ../baxter/follow_q_traj1.py
import roslib
import rospy
import actionlib
import control_msgs.msg
import trajectory_msgs.msg
import time,... | [
"info@akihikoy.net"
] | info@akihikoy.net |
1a1e06233c6c3a7141c912a01c8cfff5ff0c0416 | 9b64f0f04707a3a18968fd8f8a3ace718cd597bc | /huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/url_object.py | 301b5c0fb38a39a4473ea350b7066e607b8d92f6 | [
"Apache-2.0"
] | permissive | jaminGH/huaweicloud-sdk-python-v3 | eeecb3fb0f3396a475995df36d17095038615fba | 83ee0e4543c6b74eb0898079c3d8dd1c52c3e16b | refs/heads/master | 2023-06-18T11:49:13.958677 | 2021-07-16T07:57:47 | 2021-07-16T07:57:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,090 | py | # coding: utf-8
import re
import six
class UrlObject:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definiti... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
f91cda1a698a8414cfa6864362ce4e7d7c5b3a8e | 6a1eba9825c67782102972aee1759f0e59c9eef7 | /naeval/morph/models/__init__.py | 9b598a2c2e6add867c5e7b31ef389418ccf23090 | [] | no_license | buriy/naeval | 6d238592ba6c02a625ccf7b643af84350b913de8 | 455cfb07047140aff2e4700a1630db7682c4d06a | refs/heads/master | 2022-08-08T00:19:06.185029 | 2020-05-05T06:52:05 | 2020-05-05T06:52:05 | 264,369,308 | 0 | 0 | null | 2020-05-16T05:52:04 | 2020-05-16T05:52:03 | null | UTF-8 | Python | false | false | 338 | py |
from .udpipe import UDPipeModel # noqa
from .spacy import SpacyModel # noqa
from .maru import MaruModel # noqa
from .rnnmorph import RNNMorphModel # noqa
from .deeppavlov import DeeppavlovModel, DeeppavlovBERTModel # noqa
from .rupostagger import RuPosTaggerModel # noqa
from .slovnet import SlovnetModel, Slovnet... | [
"alex@alexkuk.ru"
] | alex@alexkuk.ru |
45393a6b428b0bd41d5ee54fb12cc5590f3ea26f | 7f761492df0e0d1ae0fb77811ad462941854b7de | /pytorch_translate/research/unsupervised_morphology/bilingual_bpe.py | 5ff4d17a838bffa980f82c424810400d95e8f426 | [
"BSD-3-Clause"
] | permissive | blufb/translate | f5f9ee19818592dd1591d8d556bbdce82ab989f2 | 4a3465b846927dab3d53e98e57b3da1c7085fa17 | refs/heads/master | 2020-05-22T20:01:41.723629 | 2019-05-11T06:41:52 | 2019-05-11T06:48:31 | 186,503,354 | 0 | 0 | null | 2019-05-13T22:17:52 | 2019-05-13T22:17:52 | null | UTF-8 | Python | false | false | 8,419 | py | #!/usr/bin/env python3
import logging
from collections import defaultdict
from optparse import OptionParser
from typing import Dict, List, Set, Tuple
from pytorch_translate.research.unsupervised_morphology.bpe import BPE
from pytorch_translate.research.unsupervised_morphology.char_ibm_model1 import (
Word2CharIBM... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
bb46203f0ac1b4d9b9656df02a3f5910772f7b1a | 3017b7399869057a8be7fb11ee9341b9c8f97ba4 | /genfiles/legacysky_randoms.py | 12bc592ff3e947e2d5310237717d2e385ab9a3ea | [] | no_license | michaelJwilson/SV-QA | 8f486422eb71b3fbd0d395904fd654ba432bd777 | dd6095d570442852bb28ac9da0f18be7b83cddce | refs/heads/master | 2020-07-29T16:04:55.759155 | 2019-12-20T14:37:23 | 2019-12-20T14:37:23 | 209,872,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,717 | py | import os
import sys
import json
import glob
import fitsio
import matplotlib
import pylab as pl
import pandas as pd
import numpy as np
import astropy.io.fits as fits
imp... | [
"mjwilson@lbl.gov"
] | mjwilson@lbl.gov |
e3c18ae427bff89a74c4a155958e3776f118fc9d | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_142/828.py | 0dd233e9b038c694d7b9e783862aca4c210c8aa3 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,573 | py | import sys,math
cases = int(raw_input())
plays = []
def skeleton(string):
last_char = string[0]
skel = last_char
for char in string[1:]:
if char != last_char:
skel += char
last_char = char
return skel
def is_possible(strings):
skel = skeleton(strings[0])
for strin... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
ac6c1b5d5cf591fdb17877696c50099d56778da8 | ae7b262ecd72f2fac76c7fe2cff3b8efd7224cb9 | /ContainsDuplicateII.py | cfe3bcb7c5be59b9be1922b3e736ae55d010407c | [] | no_license | FengFengHan/LeetCode | 02a8041f7413b14bed5ac17af1ba68237b159959 | c2d449f2a93815f31c432805a6b4b8008d09d3df | refs/heads/master | 2021-01-10T18:44:06.374304 | 2016-04-16T13:18:55 | 2016-04-16T13:18:55 | 56,384,615 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | class Solution(object):
def containsNearbyDuplicate(self, nums, k):
"""
:type nums: List[int]
:type k: int
:rtype: bool
"""
indexs = {}
for i in range(len(nums)):
indexs.setdefault(nums[i], [])
indexs[nums[i]].append(i)
... | [
"HAN@HandeMacBook-Pro.local"
] | HAN@HandeMacBook-Pro.local |
542da5ea76d78e1c3c42f517cd2c7ba1233314d2 | 43530c02696704af51742144638df037b151a259 | /apps/friend/migrations/0001_initial.py | f45900443d3e401f9a587a9677a99737475e2e2d | [] | no_license | LAdkins81/friends | 58160f4eb5096d96f5a59edc45de38ba5cd388f7 | 8f189965fede9fb13fb94ecbd6d0f9912a0162cf | refs/heads/master | 2021-01-17T08:00:08.866341 | 2017-03-03T18:05:48 | 2017-03-03T18:05:48 | 83,826,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 856 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-03-03 15:57
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('login_reg', '0002_auto_20170303_0957'),... | [
"lahell@gmail.com"
] | lahell@gmail.com |
84fa63fb19d08df62b8211a7894d160f837f3aae | 2e0396c23d592338bec48daf73d5fd1e423b4f41 | /use_max_rssi_localization.py | 44ac3535ce9d92bfdafdf4445680de04dfbdea3f | [] | no_license | wystephen/localization-wifi | 4504e8fd819847e9b18641641769bf93c081c4f9 | 5dca0d0df6bced8a519f02711692c6ddfaa57e12 | refs/heads/master | 2016-09-11T13:01:17.162633 | 2015-12-29T01:32:29 | 2015-12-29T01:32:29 | 31,436,755 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,559 | py | __author__ = 'Administrator'
# -*- coding:utf-8 -*-
import numpy
import data_transfor
import data_preprocessing
import matplotlib.pyplot as plt
def pose_of_max_rssi(pose, wifi, max_rssi):
'''
找到某个ap达到最大值的第一个pose的序号
:param pose:
:param wifi:
:param max_rssi:
:return:
'''
max_rssi_inde... | [
"551619855@qq.com"
] | 551619855@qq.com |
7e1d7f9452e893ef89f39038ead722d31fe328a4 | 3481356e47dcc23d06e54388153fe6ba795014fa | /swig_test/pybuffer/pybuffer.py | b1375b20698a70cb441ca9be087f2906c4867c61 | [] | no_license | Chise1/pyhk | c09a4c5a06ce93e7fe50c0cc078429f7f63fcb2f | 44bdb51e1772efad9d0116feab1c991c601aa68a | refs/heads/master | 2021-01-03T08:24:47.255171 | 2020-02-29T04:05:30 | 2020-02-29T04:05:30 | 239,998,705 | 1 | 0 | null | 2020-02-28T07:35:46 | 2020-02-12T11:40:39 | C | UTF-8 | Python | false | false | 3,056 | py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.12
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info as _swig_python_version_info
if _swig_python_version_info >= (2, 7, 0):
def... | [
"chise123@live.com"
] | chise123@live.com |
cb58f01bb96d29b45a0501db61d84089565b32e1 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02853/s487102081.py | d4f290c3634e67a7bf9d48e374c08fa37acc1935 | [] | 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 | 250 | py | x,y = map(int,input().split())
def point(a):
if a == 1:
return 300000
elif a == 2:
return 200000
elif a == 3:
return 100000
else:
return 0
c = point(x)
b = point(y)
if x == 1 and y == 1:
print(1000000)
else:
print(c+b) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ff177921548f852db1a384ec33200275af66728e | 94c1805df5a09c39159d502f420d19ad54b567fc | /runtime/deps/gyp/test/configurations/invalid/gyptest-configurations.py | bd844b95dd8a330a237123acbaf741c1c816187d | [
"BSD-3-Clause",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | tmikov/jscomp | 9805a5a4d06520549c57380f0df4a1c0aa0dab56 | 83828441cb38ec96603a6a60be06977d4852940a | refs/heads/develop | 2021-01-19T02:56:35.102659 | 2016-04-12T06:19:30 | 2016-04-12T06:19:30 | 36,981,674 | 237 | 13 | Apache-2.0 | 2018-10-14T09:48:12 | 2015-06-06T13:49:26 | C | UTF-8 | Python | false | false | 923 | py | #!/usr/bin/env python
# Copyright (c) 2010 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""
Verifies build of an executable in three different configurations.
"""
import TestGyp
# Keys that do not belong inside a configuration... | [
"tmikov@gmail.com"
] | tmikov@gmail.com |
867fbd9385ee1f515de8c6bdcfc4433562c0711f | 5e324af46c554b88b97ee26886b05c88457ff0f5 | /clients/api/client_list.py | c29315aecdbe43ce46d49900a6fc6013ae660bf1 | [] | no_license | doubleclickdetroit/dindintonight | 1bda8851e49782d4dc16ca77d46e4b1f431c2b52 | 9769e1a96730b02511d25af8828b075dff5c35b5 | refs/heads/master | 2016-08-04T22:01:08.083566 | 2014-07-26T18:58:58 | 2014-07-26T18:58:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,198 | py | from clients.models import Client, ClientUser
from clients.serializers import ClientSerializer
from core.api import RESTView
class ClientList(RESTView):
"""
Client List API Class
Example URLs:
/api/v1/clients/
"""
URL_NAME = 'api-v1-client-list'
def _handle_get(self, request, *args, **... | [
"rgarrison3@gmail.com"
] | rgarrison3@gmail.com |
450b6295dff2b84499d8e5a4ad95db6e63d3b811 | 6c8305ea1df9687df1c0d2b0ace56733516c6322 | /readthedocs/builds/migrations/0044_alter_version_documentation_type.py | 86ad50cfe4c8429849bfd08a5e13b50d29d23d61 | [
"MIT"
] | permissive | readthedocs/readthedocs.org | 9806083aa744c2308267919480a692e1e003e45d | bf88ce6d1085d922322a5fadce63a22c5544c830 | refs/heads/main | 2023-09-05T20:22:34.281891 | 2023-09-05T12:41:52 | 2023-09-05T12:41:52 | 841,835 | 2,894 | 1,509 | MIT | 2023-09-14T20:36:00 | 2010-08-16T19:18:06 | Python | UTF-8 | Python | false | false | 958 | py | # Generated by Django 3.2.13 on 2022-05-30 10:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("builds", "0043_add_cancelled_state"),
]
operations = [
migrations.AlterField(
model_name="version",
name="documentat... | [
"humitos@gmail.com"
] | humitos@gmail.com |
63b02058dd9984a335a7f72ff4650f3fda2d6879 | b9bc60cca34c6b4f8a750af6062f357f18dfcae2 | /tensorflow/contrib/copy_graph/python/util/copy_test.py | 68865fab497d3b72ff411643e196c193ac79df2e | [
"Apache-2.0"
] | permissive | lidenghui1110/tensorflow-0.12.0-fpga | 7c96753aafab5fe79d5d0c500a0bae1251a3d21b | f536d3d0b91f7f07f8e4a3978d362cd21bad832c | refs/heads/master | 2022-11-20T11:42:11.461490 | 2017-07-28T09:28:37 | 2017-07-28T09:28:37 | 98,633,565 | 3 | 2 | Apache-2.0 | 2022-11-15T05:22:07 | 2017-07-28T09:29:01 | C++ | UTF-8 | Python | false | false | 3,323 | py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"lidenghui@hadoop67.localdomain"
] | lidenghui@hadoop67.localdomain |
9392be60bb332ad98a912eadab328e3f523a5a0c | 200ec10b652f9c504728890f6ed7d20d07fbacae | /views.py | d236861e828287d0c761fe880d0bf9fc996219ee | [] | no_license | Ks-Ksenia/flask_shop | f4edc17669c29ae02a89e836c3c48230147ae84f | 9eb44fd22bf99913c9824ea35e3922cb14ef2451 | refs/heads/master | 2023-03-01T13:55:20.749127 | 2021-02-14T09:29:04 | 2021-02-14T09:29:04 | 338,767,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,331 | py | from app import app, db
from flask import render_template, redirect, request, flash, url_for
from flask_login import login_required, login_user, logout_user, current_user
from models import User, Product
from forms import LoginForm, RegistrationForm
@app.route('/')
def index():
return redirect(url_for('menu.cata... | [
"demag74@mail.ru"
] | demag74@mail.ru |
c7100455f984252260f69c417f013297d223251a | 5147c18763fcc9624c5796e332c8fa1b2b91e063 | /project_name/settings.py | 520d956f350443aade6ce68126c37c03a9da2c87 | [
"MIT"
] | permissive | upeu-2018-pro/heroku-django-template-upeu | c0b259fdde50b702750066a3eea4bb3bf38010e5 | e7917ac14476b4dcd043be692ea5578bd5955804 | refs/heads/master | 2021-08-29T14:40:06.786471 | 2017-12-14T04:55:43 | 2017-12-14T04:55:43 | 113,873,492 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,115 | py | """
Django settings for {{ project_name }} project on Heroku. For more info, see:
https://github.com/heroku/heroku-django-template-upeu
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.... | [
"asullom@gmail.com"
] | asullom@gmail.com |
c4565b937eb19cdaaa5ebe8be80861d3cd91b7e1 | eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7 | /google/container/v1beta1/container-v1beta1-py/google/container_v1beta1/services/cluster_manager/__init__.py | 84b9194002cdc5f4efa095c5b0833921af9178e8 | [
"Apache-2.0"
] | permissive | Tryweirder/googleapis-gen | 2e5daf46574c3af3d448f1177eaebe809100c346 | 45d8e9377379f9d1d4e166e80415a8c1737f284d | refs/heads/master | 2023-04-05T06:30:04.726589 | 2021-04-13T23:35:20 | 2021-04-13T23:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 771 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# 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 o... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
5f8498060a4d282003fadb26e8a0b61c79616b80 | deb31ab5397c8a669e30bea0f428afaf8a2ebd30 | /web/migrations/0024_auto_20190412_0008.py | fe783346d9264b6a461c6b470fdf443e9bf853dc | [] | no_license | zgd0228/product_base | 1b8bcc43f0a96e5bac09e77f363ed97b582b48cc | 83948b0b929c852c52503bca3c66b55f3f352f1c | refs/heads/master | 2020-05-15T03:59:17.727156 | 2019-04-18T13:07:05 | 2019-04-18T13:07:05 | 182,077,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,393 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2019-04-11 16:08
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('web', '0023_auto_20190411_2317'),
]
operations = [... | [
"zgd0228@outlook.com"
] | zgd0228@outlook.com |
10a026637a4917ff43db50d14672d19b4e50d5ef | cf5b2850dc9794eb0fc11826da4fd3ea6c22e9b1 | /xlsxwriter/test/comparison/test_merge_cells01.py | a5c44bfd4b9d19ec1b384c2313ced7464f9620a3 | [
"BSD-2-Clause"
] | permissive | glasah/XlsxWriter | bcf74b43b9c114e45e1a3dd679b5ab49ee20a0ec | 1e8aaeb03000dc2f294ccb89b33806ac40dabc13 | refs/heads/main | 2023-09-05T03:03:53.857387 | 2021-11-01T07:35:46 | 2021-11-01T07:35:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,075 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# SPDX-License-Identifier: BSD-2-Clause
# Copyright (c), 2013-2021, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparison_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompar... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
fa053c5bed1b6394b9372bb95a76023cf9f6d614 | 2d0da5d8f45e1906bb2a2eee0901e7fddd5dc7ad | /scripts/python_scripts/lgreader/lgreader.py | 9eee17bdc185300229171f768f5ea820ada4d9ac | [
"MIT"
] | permissive | akazachk/pha | 09afd2fa6764ef9133a8ae91bb189e2896e076c6 | 4120f70554cb0a149d5ab52e04409302e78059fa | refs/heads/master | 2021-09-25T01:02:42.488470 | 2021-09-15T17:51:34 | 2021-09-15T17:51:34 | 194,751,798 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63,878 | py | from os import environ
PHA_DIR = environ['PHA_DIR']
ADD_TO_PATH = PHA_DIR + '/scripts/python_scripts'
from sys import path
path.append(ADD_TO_PATH)
from processcsv import ProcessCSV
from processcsv import StatEnum
import sys
import utility as util
import copy
import csv
import numpy as np
from itertools import izip
#... | [
"None"
] | None |
77564f1e0f6f6a59e0bc5ce08ac4e1446e6b1360 | 8ba62e9ceb9307f2fe81db0cbfaed79fee12f51a | /Baekjoon/Dynamic Programming - New/타일 채우기.py | 29441bfd83cbaa189fa5b02b88ba0feaa001b0e0 | [] | no_license | Seoyoung2/Algorithm_Study | 9478e2ef183eed60c9670a05688cd835a2f69acd | ea2073e788f3c67a03b1168bbeaa9609e5e6e1bf | refs/heads/master | 2023-02-13T05:04:46.045416 | 2021-01-14T08:01:37 | 2021-01-14T08:01:37 | 199,292,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | # 3×N 크기의 벽을 2×1, 1×2 크기의 타일로 채우는 경우의 수를 구해보자.
# 입력 : 첫째 줄에 n이 주어진다. (1 ≤ n ≤ 30)
# 출력 : 첫째 줄에 경우의 수를 출력한다.
# dp[n] = 3 * dp[n-2] + 2 * (dp[n-4] + dp[n-6] + ... + dp[0])
# n이 홀수면 타일로 채우기 불가능
import sys
n = int(sys.stdin.readline())
dp = [0 for _ in range(31)]
dp[0], dp[1], dp[2] = 1, 0, 3
for i in rang... | [
"ww0111@naver.com"
] | ww0111@naver.com |
d64a3757a6473ecc106814852095fdc3456b4424 | d18ed72d6f8d27dd8a13eab5c6366f9dca48aa6b | /espresso/vinil/content/actors/test/index.odb | 20b348324b0ce513e258e924725f89b2f08481d1 | [
"Apache-2.0"
] | permissive | danse-inelastic/AbInitio | 6f1dcdd26a8163fa3026883fb3c40f63d1105b0c | 401e8d5fa16b9d5ce42852b002bc2e4274afab84 | refs/heads/master | 2021-01-10T19:16:35.770411 | 2011-04-12T11:04:52 | 2011-04-12T11:04:52 | 34,972,670 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,696 | odb | #!/usr/bin/env python
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Alex Dementsov
# California Institute of Technology
# (C) 2009 All Rights Reserved
#
# {LicenseText}
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | [
"dexity@gmail.com"
] | dexity@gmail.com |
7f75e3a4e524969dd57adf3d766bf1a31c84bf50 | 9709a98a04285d86acad6112bc335e8f2995e9b1 | /Widgets/RearrangeMod/DialogMod.py | dcfb00442446b74f3667febe598df5138812543d | [] | no_license | redhog/webwidgets | 37eb56d92c7421207f78f73961a8b58dc7592ebb | cd0094db9f9f1348ab380d7aef40ab23a7b8b1ba | refs/heads/master | 2021-01-17T02:59:45.566859 | 2013-04-06T21:14:34 | 2013-04-06T21:14:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,056 | py | #! /bin/env python
# -*- coding: utf-8 -*-
# vim: set fileencoding=utf-8 :
# Webwidgets web developement framework
# Copyright (C) 2006 uAnywhere, Egil Moeller <redhog@redhog.org>
# Copyright (C) 2007 Egil Moeller <redhog@redhog.org>
# Copyright (C) 2007 FreeCode AS, Egil Moeller <egil.moller@freecode.no>
# Copyright ... | [
"egil.moller@freecode.no"
] | egil.moller@freecode.no |
dac6b6d0e619f601a6ec338da6db45412c183f49 | 6191bad7750404bc0bcaec43a8dea51b52980f04 | /Seção_06/Exercício_51.py | 0228181ef57c32ca0fe87335b02289edbf78a35c | [] | no_license | Lehcs-py/guppe | abfbab21c1b158b39251fa6234a4a98ce5f31c2a | 2ff007bce88e065e6d3020971efd397ec7f7084b | refs/heads/main | 2023-02-26T18:43:06.052699 | 2021-02-07T18:22:53 | 2021-02-07T18:22:53 | 330,180,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | print("""
51. Um funcionário recebe aumento anual. Em 1995 foi contratado por 2000 reais. Em 1996 recebeu aumento de 1.5%.
A partir de 1997, os aumentos sempre correspondem ao dobro do ano anterior. Faça programa que determine o salário atual do funcionário.
""")
salario_variavel = 2000
salario_final = 0
porcento = 0.... | [
"noreply@github.com"
] | Lehcs-py.noreply@github.com |
2193b859ac3796c8cbc52c1b23cf377f2ce0eeb6 | bb150497a05203a718fb3630941231be9e3b6a32 | /inference/python_api_test/test_int8_model/base_mkldnn_int8.py | 36875b65f27555bcf814ad671a8399dc9eea69a8 | [] | no_license | PaddlePaddle/PaddleTest | 4fb3dec677f0f13f7f1003fd30df748bf0b5940d | bd3790ce72a2a26611b5eda3901651b5a809348f | refs/heads/develop | 2023-09-06T04:23:39.181903 | 2023-09-04T11:17:50 | 2023-09-04T11:17:50 | 383,138,186 | 42 | 312 | null | 2023-09-13T11:13:35 | 2021-07-05T12:44:59 | Python | UTF-8 | Python | false | false | 5,869 | py | """
mkldnn_int8 base values
"""
mkldnn_int8 = {
"PPYOLOE": {
"model_name": "PPYOLOE",
"jingdu": {
"value": 0.008505799229272469,
"unit": "mAP",
"th": 0.05,
},
"xingneng": {
"value": 284.9,
"unit": "ms",
"batch_s... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
8210ae56f9b2440b7514fbf2b9ffd550ffa01dbd | b9481ebae49cf19de3b5718c69b84f1b59a8e421 | /apps/quotes/migrations/0001_initial.py | feb7681a9e81c817dc6330890a45b12644142612 | [] | no_license | arun-skaria/eracks | 06db7e3715afa2c6992fe09f05d6546520c65459 | 532d8a2be31199e7b78ca5e29944deb0a1400753 | refs/heads/master | 2023-01-08T01:40:10.036585 | 2017-07-13T13:10:42 | 2017-07-13T13:10:42 | 97,123,722 | 0 | 0 | null | 2022-12-26T20:16:17 | 2017-07-13T13:08:12 | HTML | UTF-8 | Python | false | false | 3,357 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('customers', '0001_initial'),
]
o... | [
"nijap@techversantinfotech.com"
] | nijap@techversantinfotech.com |
6a5765f8581e4dd9031765969d6f25ba5aa1ed0b | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_butterfly.py | 59efacbed543d8dcd7c2d0e9cc28ef78436400d2 | [
"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 | 744 | py |
#calss header
class _BUTTERFLY():
def __init__(self,):
self.name = "BUTTERFLY"
self.definitions = [u'a type of insect with large, often brightly coloured wings', u'a person who is not responsible or serious, and who is likely to change activities easily or only be interested in pleasure: ', u'the small metal pa... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
8c98a7a678031de0e2fecb6ae93884089c5bd54c | b3699724907850fd26cbce4509fec83a33b89760 | /python/ray/tests/test_stress_failure.py | 83d9f40f24ed0cf0cf2dfd01e93fedf4bb1ecd74 | [
"Apache-2.0",
"MIT"
] | permissive | BonsaiAI/ray | 5e2f26a81d865a795261d11f9182aca7f07c7b97 | 941d30f082fe879ea30618af14327c25b5a21a74 | refs/heads/master | 2023-06-12T05:15:29.370188 | 2021-05-06T07:03:53 | 2021-05-06T07:03:53 | 233,708,687 | 3 | 5 | Apache-2.0 | 2023-05-27T08:06:37 | 2020-01-13T22:41:47 | Python | UTF-8 | Python | false | false | 11,936 | py | import numpy as np
import pytest
import sys
import time
import ray
from ray.cluster_utils import Cluster
import ray.ray_constants as ray_constants
from ray.test_utils import get_error_message
@pytest.fixture(params=[1, 4])
def ray_start_reconstruction(request):
num_nodes = request.param
plasma_store_memory ... | [
"noreply@github.com"
] | BonsaiAI.noreply@github.com |
0e5b50178ecfb886cf916bcefd9725dbee4c4d43 | cfa08425d0a457e0c673543b6e16f0a02effe05f | /projects/admm_cigre/source/admm_agent.py | 06bba2bf24c0fa1d7eb29fa83d61e894e209d329 | [] | no_license | missinglpf/Distributed_optimization | 5b3dfea8b2a29225761537531322e421be83d7a8 | 84040eebd3f04acf4c09e5e4ff2e59e752bf3fae | refs/heads/master | 2020-08-01T03:42:36.455932 | 2018-06-25T15:59:44 | 2018-06-25T15:59:44 | 210,850,421 | 1 | 0 | null | 2019-09-25T13:20:11 | 2019-09-25T13:20:10 | null | UTF-8 | Python | false | false | 32,623 | py | import threading
import time
from concurrent import futures
import grpc
import admm_pb2
import admm_pb2_grpc
import admin_pb2
import admin_pb2_grpc
import json
from optparse import OptionParser
from acopf_nlopt_agent import ACopf_nlopt
from acopf_pips_agent import ACopf_pips
import os
import sys
import ... | [
"tunglam87@gmail.com"
] | tunglam87@gmail.com |
f5aed57a1d491a9acda13887ef8b3b19ee883a79 | 4ef80242cf22a1ccd0d7a2042476b5b6ac1eb03e | /scadparser/commands/cmd_deps.py | 121d7db81fe8369ef421c06396e918c8d957676c | [] | no_license | rblack42/ScadParser | 71081adb99ec03e78bc78b4101562b7fa1bab134 | a9cc10b23c6515a53065dfb58b23881d0145f88d | refs/heads/master | 2023-07-11T03:51:53.434534 | 2021-08-27T02:03:37 | 2021-08-27T02:03:37 | 397,718,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | from scadparser import __version__
import click
from scadparser.cli import pass_environment
@click.command("deps", help="Display dependency versions.")
@pass_environment
def cli(ctx):
"""Display current dependency versions."""
click.echo(f"scadparser: {__version__}")
| [
"roie.black@gmail.com"
] | roie.black@gmail.com |
90cd71d7b8c6e81838f40845f2a33e8dd698090e | ae7ba9c83692cfcb39e95483d84610715930fe9e | /yubinbai/pcuva-problems/UVa 10496 - Collecting Beepers/main.py | bee7a62d1be3255db3c7266bb98c3130f4d8cc08 | [] | 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 | 2,456 | py | '''
Created on Jul 15, 2013
@author: Yubin Bai
'''
import time
from multiprocessing.pool import Pool
parallelSolve = False
INF = 1 << 31
def solve(par):
N, M, startI, startJ, nBeepers, beepers = par
minCost = [INF]
path = set()
def backtrack(step, i, j, cost):
if cost > minCost:
r... | [
"xenron@outlook.com"
] | xenron@outlook.com |
77a03933e3ee5d0b0c5d43fbcc2f04d949a0cbd2 | 1dacbf90eeb384455ab84a8cf63d16e2c9680a90 | /lib/python2.7/site-packages/nltk/chat/zen.py | 69114e88353e699c061f61489ea174946a3acd32 | [
"Python-2.0",
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown"
] | permissive | wangyum/Anaconda | ac7229b21815dd92b0bd1c8b7ec4e85c013b8994 | 2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6 | refs/heads/master | 2022-10-21T15:14:23.464126 | 2022-10-05T12:10:31 | 2022-10-05T12:10:31 | 76,526,728 | 11 | 10 | Apache-2.0 | 2022-10-05T12:10:32 | 2016-12-15T05:26:12 | Python | UTF-8 | Python | false | false | 10,281 | py | # Natural Language Toolkit: Zen Chatbot
#
# Copyright (C) 2001-2015 NLTK Project
# Author: Amy Holland <amyrh@csse.unimelb.edu.au>
# URL: <http://nltk.org/>
# For license information, see LICENSE.TXT
"""
Zen Chatbot talks in gems of Zen wisdom.
This is a sample conversation with Zen Chatbot:
ZC: Welcome... | [
"wgyumg@mgail.com"
] | wgyumg@mgail.com |
c2f985cc04425adca0e7b65ce826d18b573f9ce1 | 8acffb8c4ddca5bfef910e58d3faa0e4de83fce8 | /ml-flask/Lib/site-packages/flair/models/tars_tagger_model.py | ab659471cf8a9dab55842904ddabec9cb67d5ac5 | [
"MIT"
] | permissive | YaminiHP/SimilitudeApp | 8cbde52caec3c19d5fa73508fc005f38f79b8418 | 005c59894d8788c97be16ec420c0a43aaec99b80 | refs/heads/master | 2023-06-27T00:03:00.404080 | 2021-07-25T17:51:27 | 2021-07-25T17:51:27 | 389,390,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:0d1594783dc93d010b71f1a23fcc38fb70ad5f99f0cf54f87f6b88c38486bc74
size 30192
| [
"yamprakash130@gmail.com"
] | yamprakash130@gmail.com |
f44282bae37f63740ff1b8c780ad60d944f81ef9 | 64bf39b96a014b5d3f69b3311430185c64a7ff0e | /intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/cisco/asa/plugins/terminal/asa.py | 83f339186d356b8421c95976a5f8e5b3f2cf6792 | [
"MIT",
"GPL-3.0-only",
"LicenseRef-scancode-unknown-license-reference",
"GPL-3.0-or-later"
] | permissive | SimonFangCisco/dne-dna-code | 7072eba7da0389e37507b7a2aa5f7d0c0735a220 | 2ea7d4f00212f502bc684ac257371ada73da1ca9 | refs/heads/master | 2023-03-10T23:10:31.392558 | 2021-02-25T15:04:36 | 2021-02-25T15:04:36 | 342,274,373 | 0 | 0 | MIT | 2021-02-25T14:39:22 | 2021-02-25T14:39:22 | null | UTF-8 | Python | false | false | 2,532 | py | #
# (c) 2016 Red Hat Inc.
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is d... | [
"sifang@cisco.com"
] | sifang@cisco.com |
1d2133d364a2de163a1af19cd4f8ebc83f4cb579 | a84dfa25c827a2979a811513ac888288d378b980 | /OpenCV/list15_8.py | 314a875e0f200a5038a1a8889d9cceca9c0ed694 | [] | no_license | sunho-park/study1 | d49b9d27b0069dbeb7cc31199177f6771a84d3be | 0386fbea0282c2135407cad608b4ffa84b02d298 | refs/heads/master | 2022-12-16T23:17:14.746575 | 2020-09-11T06:04:06 | 2020-09-11T06:04:06 | 264,140,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 591 | py | import numpy as np
import cv2
img = cv2.imread("./OpenCV/sample.jpg")
size = img.shape
# 이미지를 나타내는 행렬의 일부를 꺼내면 그것이 트리밍이 됩니다.
# n등분하려면 가로와 세로 크기를 나눕니다.
my_img = img[: size[0]//2, size[1]//3]
# 여기에서는 원래의 배율을 유지하면서 폭과 높이를 각각 2배로 합니다. 크기를 지정할 때는 (폭, 높이) 순서라는 점을 유의하세요
my_img = cv2.resize(my_img, (my_img.shape[1]*2, my_... | [
"reebox22@hanmail.net"
] | reebox22@hanmail.net |
a8dbeb3447ef7323b9161b5593319f0d7991ffac | c71af56951d1c661a5819db72da1caccd9130df2 | /javascript/cpp-libraries/test1/binding.gyp | d1876d8625fb7543597db12f5121ca3f738e8656 | [] | no_license | adrianpoplesanu/personal-work | 2940a0dc4e4e27e0cc467875bae3fdea27dd0d31 | adc289ecb72c1c6f98582f3ea9ad4bf2e8e08d29 | refs/heads/master | 2023-08-23T06:56:49.363519 | 2023-08-21T17:20:51 | 2023-08-21T17:20:51 | 109,451,981 | 0 | 1 | null | 2022-10-07T04:53:24 | 2017-11-03T23:36:21 | Python | UTF-8 | Python | false | false | 406 | gyp | {
"targets": [
{
"target_name": "greet",
"cflags!": [ "-fno-exceptions" ],
"cflags_cc!": [ "-fno-exceptions" ],
"sources": [
"./src/greeting.cpp",
"./src/search.cpp",
"./src/index.cpp"
],
"include_dirs": [
"<!@(node -p \"require('node-addon-api')... | [
"adrian.poplesanu@yahoo.com"
] | adrian.poplesanu@yahoo.com |
8039568ad432cafc9c4e614d96115a4addf76f96 | dd6ee732613966b899df8a514f2907084e433c3f | /setup.py | 4358797461aff42c90277e9271152ad16a5e1ec1 | [] | no_license | rixx/ramble | 410588025f0cfae04d75078c5c007a53538b526e | f838171517035edfa03c1afacb0bd8cb157eb90a | refs/heads/master | 2023-05-12T17:20:50.744796 | 2023-04-29T13:30:19 | 2023-04-29T13:30:19 | 244,879,387 | 1 | 0 | null | 2022-07-22T05:34:06 | 2020-03-04T11:08:16 | Python | UTF-8 | Python | false | false | 424 | py | from setuptools import setup
setup(
name="ramble-rixx-de",
author="Tobias Kunze",
author_email="r@rixx.de",
url="https://github.com/rixx/ramble.rixx.de",
packages=["scripts"],
entry_points="""
[console_scripts]
posts=scripts.cli:cli
""",
install_requires=[
"click... | [
"r@rixx.de"
] | r@rixx.de |
9b0ec8b0123f758441aa60a40a32b9f3d96346c3 | b3330bd3365767b89afb9c432f4deb722b39ac1c | /python/last_nth_element.py | 899c425e6c5110fa5844947eec110e1d1acb856e | [] | no_license | hguochen/algorithms | 944df332d5b39220bd59cbd62dc74b12e335fb9e | 703e71a5cd9e002d800340df879ed475a404d092 | refs/heads/master | 2022-02-27T12:11:10.607042 | 2022-02-18T21:04:00 | 2022-02-18T21:04:00 | 13,767,503 | 5 | 7 | null | null | null | null | UTF-8 | Python | false | false | 919 | py | ##################################
### Title: Last Nth element ######
### Author: GuoChen Hou ########
##################################
# Implement an algorithm to find the nth to last element of a
# singly linked list.
from ADT.LinkedList import LinkedList
class NthLinkedList(LinkedList):
def nth_to_last(... | [
"hguochen@gmail.com"
] | hguochen@gmail.com |
e0410615b113f2b713aca3503c38d512f4309812 | 941c1bfd4edf4619c4b66391453abe8994ccc0bc | /src/api/admin.py | 1ca790712ac550adfc72a4853ebdc86d2bb83b80 | [
"MIT"
] | permissive | websiteinspiration/back-end | 11a0da9fb1b252557305b56867b1adc82c5da66b | e9762149aaa3ce08278e357950b35ac168122d95 | refs/heads/master | 2020-06-08T20:39:36.513962 | 2019-06-21T14:38:15 | 2019-06-21T14:38:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,496 | py | from django.contrib import admin
from api.models import (
CodeSchool,
Location,
Scholarship,
ScholarshipApplication,
TeamMember,
)
@admin.register(Scholarship)
class ScholarshipAdmin(admin.ModelAdmin):
list_display = (
"name",
"location",
"open_time",
"close_ti... | [
"abanthes@gmail.com"
] | abanthes@gmail.com |
486c7da5a8c0c5378fe0a03acb83e39ba404cc7c | ad16b0c0178e4543d0c44ad3d90f90c6beeb4f5a | /filter_array_by_column.py | f45a6bb704a3f3db5b46886e74be352c30600a4b | [] | 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 | 600 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Mar 2 12:20:31 2018
@author: Patrick
"""
import numpy as np
def filter_array_by_column(X, cut_off=0.95):
n_cols = X.shape[1]
bad_cols = set()
for n in range(n_cols):
Y = X[:,n]
unique, counts = np.unique(Y, return_counts=True)
co... | [
"timmons.patrick@outlook.com"
] | timmons.patrick@outlook.com |
6caaa7467d19c252f251757d6eb6c91863cc3273 | fb124e51024917d6479fa626d9607ff10f7a3aba | /storm-control/storm_control/steve/qtdesigner/steve_ui.py | 221af7d78ac059e59e624ce48a2a75c603c577dc | [
"MIT"
] | permissive | BehnamAbaie/storm-control | 054bd7bbd903ed9635e4d1121c30544f58473c4f | 0c686321142eccad62ce3365eae22c3b69229b0d | refs/heads/main | 2023-06-18T08:04:01.108874 | 2021-07-14T00:51:15 | 2021-07-14T00:51:15 | 342,049,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,764 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'steve.ui'
#
# Created by: PyQt5 UI code generator 5.11.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
... | [
"noreply@github.com"
] | BehnamAbaie.noreply@github.com |
7b970c8b63cc83b8e1c803325c3ed9db37f2dbf2 | f09dc121f213f2881df3572288b7ee5b39246d73 | /aliyun-python-sdk-facebody/aliyunsdkfacebody/request/v20191230/ListFaceEntitiesRequest.py | ca3071dad2dcdc723906cf8526313cf463ec6eb4 | [
"Apache-2.0"
] | permissive | hetw/aliyun-openapi-python-sdk | 2f31378ad6be0896fb8090423f607e9c7d3ae774 | 7443eacee9fbbaa93c7975c6dbec92d3c364c577 | refs/heads/master | 2023-01-19T22:42:36.214770 | 2020-12-04T10:55:14 | 2020-12-04T10:55:14 | 318,689,093 | 1 | 0 | NOASSERTION | 2020-12-05T03:03:03 | 2020-12-05T03:03:03 | null | UTF-8 | Python | false | false | 2,351 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
e7f9ef879ca1ae30a2bd11327b902db8fc44b076 | 3f5a1ef51620fd8c35ef38064ca5aa00776ab6f4 | /ds_and_algo_educative/Doubly_LinkedList/Reverse.py | 80a3dfd6673c3b0a39f02c490c0536c87db82c1b | [] | no_license | poojagmahajan/python_exercises | 1b290a5c0689f703538caf89bca5bc6c1fdb392a | 65539cf31c5b2ad5768d652ed5fe95054ce5f63f | refs/heads/master | 2022-11-12T03:52:13.533781 | 2020-07-04T20:50:29 | 2020-07-04T20:54:46 | 263,151,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 978 | py |
class Node:
def __init__(self, data):
self.data = data
self.next = None
self.prev = None
class DoublyLinkedList:
def __init__(self):
self.head = None
def append(self, data):
if self.head is None:
new_node = Node(data)
new_node.prev = None
self.head = new_node
else:
... | [
"mahajanpoojag@gmail.com"
] | mahajanpoojag@gmail.com |
d1cece45846995c7aadd790e8a6b01fc5cea7f56 | 7dc65b6d2e857c807bd2f75e2586af5f8e933fe5 | /tcutils/parsers/pingparse.py | 51a28244cc66ce56730f37eb0238cc8ccf493219 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | vkolli/contrail-test-perf | d6fdc20f4a2004066c5a6316afd915ecdc9366c2 | db04b8924a2c330baabe3059788b149d957a7d67 | refs/heads/master | 2021-01-18T15:36:18.120487 | 2017-03-30T19:19:30 | 2017-03-30T19:19:30 | 86,661,522 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 786 | py | "parser to parse the ping output."""
import re
class PingParser(object):
"""Parser to parse the ping output."""
def __init__(self, output):
self.output = output
self.parsed_output = {}
self.parse()
def parse(self):
match = re.search(
"rtt\s+(min/avg/max/mdev... | [
"root@5b3s45.contrail.juniper.net"
] | root@5b3s45.contrail.juniper.net |
cef019d360cd07dab58312341d87ea996f7a6c32 | abc1a497c41ddd8669c8c41da18af65d08ca54e4 | /Analysis2gamma/fit/admin.py | 230d2f8df1a1fe4c5666176d8b51793ebc0ade35 | [] | no_license | gerakolt/direxeno_privet | fcef5e3b654720e277c48935acc168472dfd8ecc | 75e88fb1ed44fce32fce02677f64106121259f6d | refs/heads/master | 2022-12-20T22:01:30.825891 | 2020-10-04T06:01:07 | 2020-10-04T06:01:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,162 | py | import multiprocessing
import numpy as np
import sys
import time
from memory_profiler import profile
# Rec=np.recarray(5000, dtype=[
# ('Q', 'f8', len(pmts)),
# ('T', 'f8', len(pmts)),
# ('St', 'f8', len(pmts)),
# ('mu', 'f8', 1),
# ('N', 'f8', 1),
# ('F', 'f8', 1),
# ('Tf', 'f8', 1),
# ... | [
"gerakolt@gmail.com"
] | gerakolt@gmail.com |
4f359ebcc8ffaef000df67e034006f85c9765a5f | f0b741f24ccf8bfe9bd1950425d83b6291d21b10 | /samples/v2/pipeline_with_volume.py | 47b9099c6e00ae80368dc3da8796a43c37d26cab | [
"Apache-2.0"
] | permissive | kubeflow/pipelines | e678342b8a325559dec0a6e1e484c525fdcc8ce8 | 3fb199658f68e7debf4906d9ce32a9a307e39243 | refs/heads/master | 2023-09-04T11:54:56.449867 | 2023-09-01T19:07:33 | 2023-09-01T19:12:27 | 133,100,880 | 3,434 | 1,675 | Apache-2.0 | 2023-09-14T20:19:06 | 2018-05-12T00:31:47 | Python | UTF-8 | Python | false | false | 1,890 | py | # Copyright 2023 The Kubeflow Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | [
"noreply@github.com"
] | kubeflow.noreply@github.com |
505d724b709f9a90e03e85a4ff7a185472bcbe00 | 2c22736309a50968896b4724df4a7a1d1a150d88 | /0x0F-python-object_relational_mapping/12-model_state_update_id_2.py | 0c0445e0c1b773c8f23caefc87d4363ffd43d9b0 | [] | no_license | gcifuentess/holbertonschool-higher_level_programming | ce9f263c0eef07facc1e02b719a8ae7193233d6d | 75e405ec7f1aa9138aa54e86f7b41aa08ead7f2a | refs/heads/master | 2023-06-18T08:36:22.580908 | 2021-07-18T20:46:40 | 2021-07-18T20:46:40 | 291,871,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 718 | py | #!/usr/bin/python3
'''
Query with SQLAlchemy, changes the name of a State object
from the database hbtn_0e_6_usa
'''
from sys import argv
from model_state import Base, State
from sqlalchemy import (create_engine)
from sqlalchemy.orm import sessionmaker
if __name__ == "__main__":
engine = create_engine('mysql+mys... | [
"1795@holbertonschool.com"
] | 1795@holbertonschool.com |
036fd1629ac4f8c3c9ece01c9b37124bd5d8a92b | 759f52976ad2cd9236da561ca254e11e08003487 | /part5/ex32/proc/guess_number_core.py | 1cfa8a70b0f502de992f5608518efcd3bacb1b16 | [] | no_license | mbaeumer/fiftyseven | 57b571c3e09640a2ab0ed41e5d06643c12b48001 | d79b603d5b37bf1f4127d9253f8526ea3897dc08 | refs/heads/master | 2020-06-10T20:52:25.311992 | 2017-11-15T18:28:38 | 2017-11-15T18:28:38 | 75,877,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,701 | py | #!/usr/bin/python
import random
from level import Difficulty
from comparison_result import ComparisonResult
def generate_my_number(difficulty_level):
max = 10
if difficulty_level == Difficulty.MEDIUM:
max = 50
elif difficulty_level == Difficulty.HARD:
max = 100
number = random.randint(0,max)
retur... | [
"martin.baeumer@gmail.com"
] | martin.baeumer@gmail.com |
12a2a28e54708661a3440be67a2a67a961697c4d | fb98249ee3dece1f3ec5a7b2ba541a5ca07d170b | /python/developer.usr.py | 86e797cfd9a3b14372b77b83c10b4ecd3db8ec43 | [] | no_license | polikashechkin/developer | 5d4f50783c96fbe2078423ff689d91ab47408f05 | f9c6193440457ba4e78d4b5430a1d21c34cd9af1 | refs/heads/main | 2023-02-10T03:39:40.175655 | 2021-01-04T23:30:09 | 2021-01-04T23:30:09 | 326,832,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,115 | py | #!/usr/bin/python3.6
import sys, os, shutil, json
#os.chdir(os.dirname(__file__))
from domino.core import log, Version, Server, ProductInfo, VersionInfo, DOMINO_ROOT
from domino.jobs import Job, Задача
from domino.globalstore import GlobalStore
from domino.cli import Console, print_error, print_comment, print_warning,... | [
"polikash@gmail.com"
] | polikash@gmail.com |
8ea7cda1c1ee33ae5c76fa40f4c8bb4b8f4314c3 | 45e376ae66b78b17788b1d3575b334b2cb1d0b1c | /tests/cloudformation/checks/resource/aws/test_AmazonMQBrokerPublicAccess.py | 37710ba33578e981c9f2a0828d48921faa7ce386 | [
"Apache-2.0"
] | permissive | bridgecrewio/checkov | aeb8febed2ed90e61d5755f8f9d80b125362644d | e64cbd27ffb6f09c2c9f081b45b7a821a3aa1a4d | refs/heads/main | 2023-08-31T06:57:21.990147 | 2023-08-30T23:01:47 | 2023-08-30T23:01:47 | 224,386,599 | 5,929 | 1,056 | Apache-2.0 | 2023-09-14T20:10:23 | 2019-11-27T08:55:14 | Python | UTF-8 | Python | false | false | 1,444 | py | import os
import unittest
from checkov.cloudformation.checks.resource.aws.AmazonMQBrokerPublicAccess import check
from checkov.cloudformation.runner import Runner
from checkov.runner_filter import RunnerFilter
class TestAmazonMQBrokerPublicAccess(unittest.TestCase):
def test_summary(self):
runner = Runn... | [
"noreply@github.com"
] | bridgecrewio.noreply@github.com |
7f41a27952caaadddc38b8c99ca3115a8f56128a | cc2fcc1a0c5ea9789f98ec97614d7b25b03ba101 | /st2common/st2common/persistence/trigger.py | 9a01acf09952ed40a2b9784989224410b6b9a9bd | [
"Apache-2.0"
] | permissive | Junsheng-Wu/st2 | 6451808da7de84798641882ca202c3d1688f8ba8 | c3cdf657f7008095f3c68b4132b9fe76d2f52d81 | refs/heads/master | 2022-04-30T21:32:44.039258 | 2020-03-03T07:03:57 | 2020-03-03T07:03:57 | 244,301,363 | 0 | 0 | Apache-2.0 | 2022-03-29T22:04:26 | 2020-03-02T06:53:58 | Python | UTF-8 | Python | false | false | 3,200 | py | # Licensed to the StackStorm, Inc ('StackStorm') 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 use th... | [
"wei.ying@easystack.cn"
] | wei.ying@easystack.cn |
88a459054fe086e6f2a96d15ab8e887f827114b3 | 1180c0bfe29959d95f3c131e6e839950e528d4ee | /42/pgmilenkov/regex.py | db3e891349a6a6ed5fab6a8521b5513867ebd992 | [] | no_license | pybites/challenges | e3e461accd8e7f890aee8007ba5070086ef983fc | 02b77652d0901e6e06cb9b1e7cb3e59c675445c2 | refs/heads/community | 2023-08-20T18:19:02.982214 | 2022-11-17T09:23:31 | 2022-11-17T09:23:31 | 78,264,928 | 764 | 3,115 | null | 2023-07-21T05:58:19 | 2017-01-07T07:17:50 | Jupyter Notebook | UTF-8 | Python | false | false | 2,457 | py | import re
def extract_course_times():
'''Use re.findall to capture all mm:ss timestamps in a list'''
flask_course = ('Introduction 1 Lecture 01:47'
'The Basics 4 Lectures 32:03'
'Getting Technical! 4 Lectures 41:51'
'Challenge 2 Lectures 27:48'
... | [
"pybites@projects.bobbelderbos.com"
] | pybites@projects.bobbelderbos.com |
b02027bdd2169431f6313f70a90f250241b4c30e | 531c47c15b97cbcb263ec86821d7f258c81c0aaf | /sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations_async/_virtual_machine_extension_images_operations_async.py | 296bc94769725b14078d4c3f9f390e439d4c9718 | [
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later",
"MIT"
] | permissive | YijunXieMS/azure-sdk-for-python | be364d3b88204fd3c7d223df23756386ff7a3361 | f779de8e53dbec033f98f976284e6d9491fd60b3 | refs/heads/master | 2021-07-15T18:06:28.748507 | 2020-09-04T15:48:52 | 2020-09-04T15:48:52 | 205,457,088 | 1 | 2 | MIT | 2020-06-16T16:38:15 | 2019-08-30T21:08:55 | Python | UTF-8 | Python | false | false | 10,925 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | YijunXieMS.noreply@github.com |
00c4adf04fdb31e76a8271a3d839b907cf5d21fd | a508ffe0942f75721d4623fcda9e57808f93f07d | /input_test/s.py | a5aa5c9bcccbb47b880e6950bb649080e34c2a96 | [] | no_license | ag8/magic | 3a14a81f3c06fa67cd77de07045ee3dc3899ca7f | 2768fc7490e6cc55b522be68926ad24d3caa939c | refs/heads/master | 2021-01-22T06:49:29.561849 | 2017-10-30T23:34:57 | 2017-10-30T23:34:57 | 102,300,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | import pickle
with open('/data/affinity/2d/overlap_micro/OVERLAP_AREAS') as fp:
overlap_areas = pickle.load(fp)
print(overlap_areas)
| [
"andrew2000g@gmail.com"
] | andrew2000g@gmail.com |
2fb669fc4597c7fbbb01eb650d16264493c9fb0f | 33c1c5d0f48ad952776fe546a85350a441d6cfc2 | /ABC/102/D.py | 65484cf137a326b30baf30c052b7b04eae161ddc | [] | no_license | hisyatokaku/Competition | 985feb14aad73fda94804bb1145e7537b057e306 | fdbf045a59eccb1b2502b018cab01810de4ea894 | refs/heads/master | 2021-06-30T18:48:48.256652 | 2020-11-16T11:55:12 | 2020-11-16T11:55:12 | 191,138,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,310 | py | import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time,copy,functools
from collections import deque
sys.setrecursionlimit(10**7)
inf = 10**20
mod = 10**9 + 7
DR = [1, -1, 0, 0]
DC = [0, 0, 1, -1]
def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LI_(): return [int(... | [
"hisyatokaku2005@yahoo.co.jp"
] | hisyatokaku2005@yahoo.co.jp |
bcd820a2e7d5a5a1cc617759d8a7456ea44b3f69 | 7e8cee08e8a583cfcefbf86f9272a65bca4dd2e4 | /Test/Wx/GridCustEditor.py | 90505b7730f05f209dc030190c349d8991dff6f1 | [] | no_license | PREM1980/ecomstore | 01adb86b8423100421806097a518df08ab30c4c8 | 0a01e1826699c8656fdb2502741f8b638948a6e4 | refs/heads/master | 2016-09-05T16:58:30.396618 | 2013-05-02T23:15:35 | 2013-05-02T23:15:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,967 | py |
import string
import wx
import wx.grid as gridlib
#---------------------------------------------------------------------------
class MyCellEditor(gridlib.PyGridCellEditor):
"""
This is a sample GridCellEditor that shows you how to make your own custom
grid editors. All the methods that can b... | [
"prem1pre@gmail.com"
] | prem1pre@gmail.com |
172a466d5f80f6441ed6b874517a024f13c5aa06 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_123/656.py | d804f5541e5fb0795836e9f5a04694acf4147beb | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,797 | py | #
# By Allan Douglas R. de Oliveira
# This program is under public license
#
########################
# makes python 2.x behave like python 3k
from __future__ import print_function, unicode_literals, division
# common imports
import sys
import operator
import math
from io import StringIO
from itertools import chain, c... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
39d1e033b8bb386f1fc6b9d116ec599b624a8828 | dd4d1a61ec680a86d4b569490bf2a898ea0d7557 | /appengine/predator/analysis/test/clusterfuzz_data_test.py | d1d1f2e8d5719c1e04bee66fb5c8919fa642a706 | [
"BSD-3-Clause"
] | permissive | mcgreevy/chromium-infra | f1a68914b47bcbe3cd8a424f43741dd74fedddf4 | 09064105713603f7bf75c772e8354800a1bfa256 | refs/heads/master | 2022-10-29T23:21:46.894543 | 2017-05-16T06:22:50 | 2017-05-16T06:22:50 | 91,423,078 | 1 | 1 | BSD-3-Clause | 2022-10-01T18:48:03 | 2017-05-16T06:23:34 | Python | UTF-8 | Python | false | false | 5,279 | py | # Copyright 2017 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.
import mock
from analysis.analysis_testcase import AnalysisTestCase
from analysis.clusterfuzz_data import ClusterfuzzData
from analysis.clusterfuzz_parser i... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
35d07eeece96e275825fbdd83830f5c389cb5f9c | 6b8b6e5c7a31342b781909623d4fe60a563482d4 | /sensor/DS18B20.py | ec091e5f56edd07f7219f5a7edd77bf711220b0d | [] | no_license | ariebroere/sensor | 7d3d4cd6ef5348bf5f3e3bdc6731c7b237200447 | 1ede75d51d67622352cb4a3e918255f5cae3c061 | refs/heads/master | 2021-01-18T22:50:02.361613 | 2017-04-02T06:29:40 | 2017-04-02T06:29:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,926 | py | # The MIT License (MIT)
#
# Copyright (c) 2015 Nick Lee
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, mod... | [
"lee1nick@yahoo.ca"
] | lee1nick@yahoo.ca |
4fddac42ee4bc07489ef1b4e274f85afb21e0de4 | a6e4a6f0a73d24a6ba957277899adbd9b84bd594 | /sdk/python/pulumi_azure_native/azuredata/v20170301preview/get_sql_server_registration.py | 212ce2e8e70f2e01cb921271035d0102a9a6da0b | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | MisinformedDNA/pulumi-azure-native | 9cbd75306e9c8f92abc25be3f73c113cb93865e9 | de974fd984f7e98649951dbe80b4fc0603d03356 | refs/heads/master | 2023-03-24T22:02:03.842935 | 2021-03-08T21:16:19 | 2021-03-08T21:16:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,406 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
__a... | [
"noreply@github.com"
] | MisinformedDNA.noreply@github.com |
610b9ee40927adccd43e1fe32dcc8a11699359b4 | 50008b3b7fb7e14f793e92f5b27bf302112a3cb4 | /recipes/Python/442497_Pattern_List/recipe-442497.py | 7a7e212a314061dc34d2a57bd9d425d6b849bcf9 | [
"Python-2.0",
"MIT"
] | permissive | betty29/code-1 | db56807e19ac9cfe711b41d475a322c168cfdca6 | d097ca0ad6a6aee2180d32dce6a3322621f655fd | refs/heads/master | 2023-03-14T08:15:47.492844 | 2021-02-24T15:39:59 | 2021-02-24T15:39:59 | 341,878,663 | 0 | 0 | MIT | 2021-02-24T15:40:00 | 2021-02-24T11:31:15 | Python | UTF-8 | Python | false | false | 800 | py | import re
class PatternList( object ):
"""A Patternlist is a list of regular expressions. the 'in' operator
allows a string to be compared against each expression (using search
NOT match)"""
def __init__(self , patterns = []):
self.patterns = []
for p in patterns:
self.add(... | [
"betty@qburst.com"
] | betty@qburst.com |
96038f0fdec7f1c6c7c9e3d1da8063fe493d6e40 | 1674e40a5dab691961ae676b3d6752870df1c60b | /.cache/JetBrains/PyCharm2020.2/python_stubs/-988789078/_multibytecodec.py | fdb881ed202160e3f7d75a9bd8465130cfb97a9a | [] | no_license | AiperiAkhumbai/group_project | a7c0efacbdcfc4a35d62b6321b255e3ed9e3436c | 9c62b9964776306ab85901b501536eb667d3c337 | refs/heads/main | 2023-01-23T08:12:47.433544 | 2020-11-24T18:57:49 | 2020-11-24T18:57:49 | 313,209,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,428 | py | # encoding: utf-8
# module _multibytecodec
# from /usr/lib/python3.8/lib-dynload/_multibytecodec.cpython-38-x86_64-linux-gnu.so
# by generator 1.147
# no doc
# no imports
# functions
def __create_codec(*args, **kwargs): # real signature unknown
pass
# classes
class MultibyteIncrementalDecoder(object):
# no ... | [
"aiperiahumbaeva@gmail.com"
] | aiperiahumbaeva@gmail.com |
f6342e270e1ecba03ce71951ba4143ce52143b96 | 8d753bb8f19b5b1f526b0688d3cb199b396ed843 | /osp_sai_2.1.8/system/apps/openconfig/python_module/oc_lr/local_routes/static_routes/static/next_hops/next_hop/config/__init__.py | 25073b2cc082c56c4acfc713abb347fbea0fd845 | [] | no_license | bonald/vim_cfg | f166e5ff650db9fa40b564d05dc5103552184db8 | 2fee6115caec25fd040188dda0cb922bfca1a55f | refs/heads/master | 2023-01-23T05:33:00.416311 | 2020-11-19T02:09:18 | 2020-11-19T02:09:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,369 | py |
from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType
from pyangbind.lib.yangtypes import RestrictedClassType
from pyangbind.lib.yangtypes import TypedListType
from pyangbind.lib.yangtypes import YANGBool
from pyangbind.lib.yangtypes import YANGListType
from pyangbind.lib.y... | [
"zhwwan@gmail.com"
] | zhwwan@gmail.com |
cec0a70d5e0bcd8539d350cd0653bff447945982 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_natural.py | 32e26c958383409ba88754ec0a96fc02003e41a2 | [
"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 | 377 | py |
#calss header
class _NATURAL():
def __init__(self,):
self.name = "NATURAL"
self.definitions = [u'someone who was born with the right characteristics or abilities for doing a particular thing: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'nouns'
def... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
669697f1390a3820e77ef4494a2cc4471ac77157 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa3/sample/list_set_element_oob_1-9.py | cd195199cb937479e44117a2d333d4b0b0041d98 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80 | py | x:[int] = $Literal
x = [1, 2, 3]
x[-1] = 4
print(x[0])
print(x[1])
print(x[2])
| [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
88de148d9408767a1d93796ed6d7be6a97acbda6 | 36957a9ce540846d08f151b6a2c2d582cff1df47 | /VR/Python/Python36/Lib/site-packages/django/views/generic/__init__.py | 00119bf785b030b880c58b3e822cbc718741626b | [] | no_license | aqp1234/gitVR | 60fc952307ef413e396d31e0d136faffe087ed2b | e70bd82c451943c2966b8ad1bee620a0ee1080d2 | refs/heads/master | 2022-12-29T15:30:12.540947 | 2020-10-07T15:26:32 | 2020-10-07T15:26:32 | 290,163,043 | 0 | 1 | null | 2020-08-25T09:15:40 | 2020-08-25T08:47:36 | C# | UTF-8 | Python | false | false | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:5939f31179cac89ab31e52eefd5b17227620f86a240cd042518355fd4e94fa89
size 822
| [
"aqp1234@naver.com"
] | aqp1234@naver.com |
e9b75525afbde18fac325b06becac1b37aafe034 | 9c85d132b2ed8c51f021f42ed9f20652827bca45 | /source/res/scripts/client/gui/Scaleform/framework/tooltip_mgr.py | 541c0f410e6c97aa6b1628f62d9bec9ec2b250a1 | [] | no_license | Mododejl/WorldOfTanks-Decompiled | 0f4063150c7148184644768b55a9104647f7e098 | cab1b318a58db1e428811c41efc3af694906ba8f | refs/heads/master | 2020-03-26T18:08:59.843847 | 2018-06-12T05:40:05 | 2018-06-12T05:40:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,025 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/Scaleform/framework/tooltip_mgr.py
import logging
import Keys
from gui.Scaleform.framework.entities.abstract.ToolTipMgrMeta import ToolTipMgrMeta
from gui.Scaleform.genConsts.TOOLTIPS_CONSTANTS import TOOLTIPS_CONSTANTS
from gui... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
91bde4973cd20d507e01377170f7db767aba6dc2 | ca59d18e503ef22fbc920c6de48ffc8eac5a1443 | /tools/Polygraphy/tests/util/test_misc.py | fc3978c829d4d1d3d5bd3621ac14202fb4aa9d29 | [
"Apache-2.0",
"BSD-3-Clause",
"ISC",
"BSD-2-Clause",
"MIT"
] | permissive | boh-inspur/TensorRT | 9fc0ae0ad4e31da040d10728b63d9dc284852b67 | e4d2f7f4406f1c8f4632cc67de33728cef90ca29 | refs/heads/master | 2023-04-13T21:24:13.912673 | 2021-04-23T09:55:18 | 2021-04-23T09:55:18 | 265,431,588 | 0 | 0 | Apache-2.0 | 2021-04-23T09:55:19 | 2020-05-20T02:49:58 | null | UTF-8 | Python | false | false | 3,213 | py | #
# Copyright (c) 2021, NVIDIA CORPORATION. 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 appl... | [
"rajeevsrao@users.noreply.github.com"
] | rajeevsrao@users.noreply.github.com |
280bb1419d313f14f695994d51b7b7c91de537e3 | 834d7ea5179414f17d37f3bb58164b8f6ac11b24 | /python/ThirteenTeV/DisappTrksAMSB/createPoints.py | 579c1c5a331e3b70880d28547c2fb1073e64627e | [] | no_license | diracyoon/genproductions | aa9ee41ac1dde9e14ed039496c3259328ece7073 | a7740f4d28c7bfff4e71827dc807d57d974e29b7 | refs/heads/master | 2021-01-11T11:22:44.685243 | 2018-11-23T14:05:36 | 2018-11-23T14:05:36 | 72,719,084 | 1 | 0 | null | 2016-11-03T07:21:29 | 2016-11-03T07:21:29 | null | UTF-8 | Python | false | false | 2,089 | py | #!/usr/bin/env python
import os
def insertSLHA(outputName, massValue):
with open(outputName, 'r+') as f:
for x in range(5):
f.readline()
pos = f.tell()
f_remainder = f.read()
f.seek(pos)
with open('slha/AMSB_chargino_%dGeV_Isajet780.slha' % massValue, 'r') as slhaFile:
f.write(slhaFile.read())
... | [
"brian.patrick.francis@cern.ch"
] | brian.patrick.francis@cern.ch |
675ef227f915e22fa1d680d51d7ffb08fa130735 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/pliabl.py | 157b7fecb973a84a5b8b21fe598713d03a5ba164 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 158 | py | ii = [('RennJIT.py', 2), ('AubePRP.py', 1), ('AdamWEP.py', 3), ('CarlTFR.py', 1), ('LandWPA.py', 2), ('MedwTAI.py', 2), ('WilkJMC.py', 1), ('MartHRW2.py', 1)] | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
673f619abea67c616bf67a61024d4c5ad5f2befe | 698176804e16c7ae59f66ccebdff746f74998662 | /python/piketty/generatetmslice.py | 62a1d462742ae093a247c9e9e1d7dd2c61d159c3 | [
"MIT"
] | permissive | tedunderwood/GenreProject | a7e30883123523b967214af28f4a137c60f3564b | 7577f39f0cc89b9e85d0fbe67ae3e7797033588f | refs/heads/master | 2021-01-23T19:12:59.786921 | 2016-03-17T16:11:36 | 2016-03-17T16:11:36 | 10,231,792 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | with open('/Users/tunder/Dropbox/GenreProject/metadata/topicmodelingsample.tsv', encoding = 'utf-8') as f:
filelines = f.readlines()
with open('/Users/tunder/Dropbox/GenreProject/metadata/tmslice.txt', mode = 'w', encoding = 'utf-8') as f:
for line in filelines[1:]:
label = line.split('\t')[0]
f.write(label + '\... | [
"tunder@illinois.edu"
] | tunder@illinois.edu |
223b84417602ea6d36d639b9d8f1ed616d760904 | fd55b40f4279c25c0d06dccd6bcd77b9a7dbff28 | /bivariate2/plotting/plot_dkgrid.py | b3d619043556f39ab6cdb029873b011d26915a84 | [] | no_license | albertfxwang/mypytools | 0e30420e2a570a3e18564fd28fc56eb55ecccbf9 | c6cdc8f1914cbc3a5b94dd25501782a3daf542f5 | refs/heads/master | 2020-04-10T19:06:54.193920 | 2015-04-20T01:36:37 | 2015-04-20T01:36:37 | 30,038,302 | 1 | 1 | null | 2015-01-29T19:55:09 | 2015-01-29T19:55:09 | null | UTF-8 | Python | false | false | 8,296 | py | #!/usr/bin/env python
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
from mpl_toolkits.axes_grid1 import AxesGrid
import pickle_util as pu
from pygoods import *
from my_mplfonts import Helvetica
from bivariate2 import dropout_kernels as dk
from scipy.interpolate import interp1d, RectBivari... | [
"astrokuang@gmail.com"
] | astrokuang@gmail.com |
df60d9fd72aee467d847e5b7e7a8ec3c8ae8a680 | 7f20b1bddf9f48108a43a9922433b141fac66a6d | /csplugins/trunk/ucsd/rsaito/rs_Progs/rs_Python/rs_Python_Pack/tags/rs_Python_Pack090515/IVV_Packages/YO_IP/example2.py | 4744447119df04b6f11f0fa2c5a5507d576157f6 | [] | no_license | ahdahddl/cytoscape | bf783d44cddda313a5b3563ea746b07f38173022 | a3df8f63dba4ec49942027c91ecac6efa920c195 | refs/heads/master | 2020-06-26T16:48:19.791722 | 2013-08-28T04:08:31 | 2013-08-28T04:08:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 829 | py | #!/usr/bin/env python
from lpsolve55 import *
lp = lpsolve('make_lp', 0, 4)
#lpsolve('set_verbose', lp, IMPORTANT)
lpsolve('set_obj_fn', lp, [1, 3, 6.24, 0.1])
lpsolve('add_constraint', lp, [0, 78.26, 0, 2.9], GE, 92.3)
lpsolve('add_constraint', lp, [0.24, 0, 11.31, 0], LE, 14.8)
lpsolve('add_constraint', lp... | [
"rsaito@0ecc0d97-ab19-0410-9704-bfe1a75892f5"
] | rsaito@0ecc0d97-ab19-0410-9704-bfe1a75892f5 |
7e6d9fee92beb15c5d4c3f6610393baa76668ab6 | 05643b9b4d20db912c3dbfbc191cadea3143016c | /instrumentation/opentelemetry-instrumentation-grpc/tests/test_client_interceptor_filter.py | a15268464b46f90712c7b6a39cc406d65ca2390f | [
"Apache-2.0"
] | permissive | open-telemetry/opentelemetry-python-contrib | 35566cd088aa0b23ca977109fcd435ee480784b9 | 0871dd455c0adfa125a2f258a0b55c47a5da5227 | refs/heads/main | 2023-08-26T07:30:40.212226 | 2023-08-21T16:42:12 | 2023-08-21T16:42:12 | 220,524,743 | 476 | 401 | Apache-2.0 | 2023-09-14T21:36:33 | 2019-11-08T18:23:43 | Python | UTF-8 | Python | false | false | 23,591 | py | # Copyright The OpenTelemetry Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | [
"noreply@github.com"
] | open-telemetry.noreply@github.com |
31d0b3108fb5597fc1566914fe1a6fd5bae45ff6 | 9db1103b05dc5053a984c2f46491e71216cbe13d | /everest/cascade/hierarchy.py | 52bb27c03bc4a861f478cc873914137eda4e144c | [
"MIT"
] | permissive | rsbyrne/everest | f396d11743fc0633992bb49bf40d6d5851c3fffa | 1ec06301cdeb7c2b7d85daf6075d996c5529247e | refs/heads/master | 2023-07-27T12:55:06.426748 | 2021-06-18T00:31:21 | 2021-06-18T00:31:21 | 222,559,267 | 2 | 1 | MIT | 2021-06-18T00:31:22 | 2019-11-18T22:43:49 | Python | UTF-8 | Python | false | false | 4,292 | py | ###############################################################################
''''''
###############################################################################
from collections.abc import Mapping as _Mapping
from functools import lru_cache as _lru_cache
from . import _reseed
def flatten_hierarchy(hierarchy... | [
"rohan.byrne@gmail.com"
] | rohan.byrne@gmail.com |
763815d5ec1337053e3915354962c8fc3b3256e0 | 758c60aed145cf6b780d3cee4a79eb603452e3bd | /code/CNN/CNNemTest.py | 213b23b7898a7ead17d80e5e2dfb81391bcaca11 | [] | no_license | aiedward/CCIR | 8be5d9b49a1cd653564c4fc00c2ef60f1f1d292d | 215179ac38fbde3899e55b078622606b31595d2d | refs/heads/master | 2020-03-24T09:55:45.382723 | 2018-04-07T14:15:30 | 2018-04-07T14:15:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,485 | py | # -*-coding: utf-8 -*-
from keras.layers import Input, Dense, Dropout, Flatten, merge,concatenate
from keras.layers import Conv2D, MaxPooling2D, Embedding, Reshape
from keras.models import Model
import numpy as np
from keras import backend as K
from keras.optimizers import Adam
from keras.losses import hinge
from keras... | [
"872310734@qq.com"
] | 872310734@qq.com |
86d43341acd4d75d7e9f6444a05667b88c3356c0 | 42b9bafc3c757543328d93fb60269ad4255aae17 | /env/lib/python3.7/site-packages/jet/tests/settings.py | 0c8cb379fe107502b4dc3633895113b84b4a7f85 | [
"MIT"
] | permissive | mejeng/kasir | 4fe66d1828e72b64d770426d71185cdd3c54127e | cc6f9158b61c0cb45078ddf798af9588c8771311 | refs/heads/master | 2020-09-25T03:36:10.144439 | 2019-11-30T07:59:23 | 2019-11-30T07:59:23 | 225,908,795 | 2 | 0 | MIT | 2019-12-04T16:21:15 | 2019-12-04T16:21:15 | null | UTF-8 | Python | false | false | 1,945 | py | import os
import django
from django.conf import global_settings
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
SECRET_KEY = '!DJANGO_JET_TESTS!'
DEBUG = True
TEMPLATE_DEBUG = DEBUG
DEBUG_PROPAGATE_EXCEPTIONS = True
ROOT_URLCONF = 'jet.tests.urls'
INSTALLED_APPS = (
'jet.dashboard',
'jet',
'djang... | [
"slashsdull@gmail.com"
] | slashsdull@gmail.com |
731d0f6696c9cae00ba15f73151571a42ef6dae3 | 877bd731bc97f220c363914d1e66970e2d9e599e | /python_stack/_django/full_stack/tv_shows/tv_shows_app/migrations/0003_auto_20200604_0321.py | 4dac5bd390a36b9dc89b42752fc9a70c942eba9d | [] | no_license | mpresto/dojo | eaccc08465298d35ae5a8e0d60e547a90bc24e05 | aec14ee041950eea7c35003fa03b0728b4606754 | refs/heads/master | 2021-05-26T00:15:16.551562 | 2020-10-04T00:09:48 | 2020-10-04T00:09:48 | 253,975,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | # Generated by Django 2.2 on 2020-06-04 03:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tv_shows_app', '0002_auto_20200603_0658'),
]
operations = [
migrations.AlterField(
model_name='show',
name='title',
... | [
"monty.preston5@gmail.com"
] | monty.preston5@gmail.com |
1bd128680cb0beaed2787f330cbaf980eefe2ce1 | 01552dc88e7c170de857f5ff0b52178326d5f003 | /guild/query_cmd.py | 00e09e3036d434e24efa3924aaef22b73e522633 | [
"Apache-2.0"
] | permissive | guildai/_guild-python-legacy | b8516f38b3dd4f27859850ec07fe9c4747f4fd8b | e552eff820d8edcfeb10b26bd5c8651548507b4a | refs/heads/master | 2021-01-01T15:52:35.875726 | 2017-09-27T18:58:59 | 2017-09-27T18:58:59 | 97,719,256 | 0 | 0 | Apache-2.0 | 2018-10-20T23:44:54 | 2017-07-19T13:28:21 | HTML | UTF-8 | Python | false | false | 880 | py | import os
import sys
import guild.cmd_support
import guild.db
import guild.op_util
def main(args):
run = guild.cmd_support.run_for_args(args)
if args.details == "series":
_print_series(run)
elif args.details == "files":
_print_files(run)
else:
_print_header(run)
def _print_hea... | [
"g@rre.tt"
] | g@rre.tt |
bffb24fdd89319ceb3cdb0061dc12f8695ef8b9d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03157/s695062063.py | 8c31e11022db6359dcc34abd1270b221bad01b66 | [] | 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,052 | py | from collections import deque
h,w=map(int,input().split())
p=['-'*(w+2)]
for i in range(h):
p.append('-'+input()+'-')
p.append('-'*(w+2))
isl=[]
v=[[0 for i in range(w+2)] for j in range(h+2)]
d=[[0,1],[1,0],[-1,0],[0,-1]]
def bfs(x,y):
if v[x][y]!=0:
return
q=deque()
q.append((x,y))
v[x][... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
dad6dabb0c0bf27caff808349deda0c12cdca566 | 21bf726bf895569a41a8b8d2db6772dc51f46cfd | /MachineLearning/machine_learning_examples/unsupervised_class/hcluster.py | 4f40738d7ea106f838ee6efa0df6eb069eda4234 | [] | no_license | jeffsnguyen/Python-1 | dd924d25337cd6ac21e321d7b2c5ac17c065d94b | 463d32a61a760d076656c73c9f8c9fadf262438d | refs/heads/master | 2022-03-23T09:50:04.476094 | 2019-12-23T12:32:49 | 2019-12-23T12:32:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,161 | py | # https://deeplearningcourses.com/c/cluster-analysis-unsupervised-machine-learning-python
# https://www.udemy.com/cluster-analysis-unsupervised-machine-learning-python
import numpy as np
import matplotlib.pyplot as plt
from scipy.cluster.hierarchy import dendrogram, linkage
def main():
D = 2 # so we can... | [
"jerryxyx@163.com"
] | jerryxyx@163.com |
0b6e69480371618c0daeb8640584b5d89d5114f4 | 9218fe2f12a3f8209a71a7775178a084da4212c0 | /crawler/dspider/spiders/stockFinancialDisclosureTimeSpider.py | be04e6013553e5a05b5bfff82e3a794c736eec91 | [] | no_license | betterManzZ/smart_deal_tool | 678e7f7ecf431df4fb6cef5faf9c5c1ddd397697 | a74cbab04393d60dc829c0110a98c625ba896f22 | refs/heads/master | 2020-06-12T03:31:29.404228 | 2019-06-23T08:05:34 | 2019-06-23T08:05:34 | 194,182,470 | 2 | 0 | null | 2019-06-28T00:57:13 | 2019-06-28T00:57:12 | null | UTF-8 | Python | false | false | 7,762 | py | # -*- coding: utf-8 -*-
import os
import re
import time
import datetime
import const as ct
import pandas as pd
from datetime import datetime
from scrapy import FormRequest
from scrapy.http import TextResponse, HtmlResponse
from pyquery import PyQuery as pq
from dspider.myspider import BasicSpider
from urllib.request im... | [
"hellobiek@gmail.com"
] | hellobiek@gmail.com |
f4be8acda03bcb0ffbd7f9c766fc0c1947499472 | 7370127fe73970fdf0882f0696c1dbbf1e818745 | /pds-queries/2020-spring-census/list-unresponsive.py | 8fe4b8cd3cd420681dcd508b13497b717197e856 | [] | no_license | epiphany40223/epiphany | ab5ef0590ac67d2e353592c45177b8e5f7e22457 | 32956e735f0c5e3fc9231449796431d23b4817f0 | refs/heads/main | 2023-09-01T05:12:17.013064 | 2023-08-27T19:57:16 | 2023-08-27T19:57:16 | 41,978,574 | 5 | 11 | null | 2023-09-11T02:00:09 | 2015-09-05T23:06:07 | Python | UTF-8 | Python | false | false | 5,765 | py | #!/usr/bin/env python3
# Basic script to create a list of families which have not responded to the
# 2020 spring census. This version is based on a CSV file import, so you will
# need to retrieve the latest file.
import sys
sys.path.insert(0, '../../python')
import csv
import ECC
import PDSChurch
import helpers
f... | [
"jeff@squyres.com"
] | jeff@squyres.com |
7f5067f65e16a598942794e6419451da5869da52 | c65af972b843e4f11a9aa9005104ac54a283032d | /practice2/second.py | 2dc4335141cb0ae8f34bc1f2bca7306385900aba | [] | no_license | ljeleven/mypython | a63438c4246606082f000967a5d47256fa297aeb | b652338be3937543f0b35a9111dd0d346eb913b5 | refs/heads/master | 2023-05-24T19:30:37.001198 | 2020-04-09T15:40:40 | 2020-04-09T15:40:40 | 240,815,098 | 0 | 0 | null | 2023-05-22T22:41:00 | 2020-02-16T01:46:29 | Python | UTF-8 | Python | false | false | 728 | py | #__author:"longjin"
#date: 2019/6/9
def bonus(n):
bonus = 0
if n <= 100000:
bonus = n*0.1
elif 100000 < n <= 200000:
bonus = 100000*0.1 + (n-100000)*0.075
elif 200000 < n <= 400000:
bonus = 100000*0.1 + 100000*0.075 + (n-200000)*0.05
elif 400000 < n <= 600000:
bonus... | [
"ljeleven@foxmail.com"
] | ljeleven@foxmail.com |
864ef80c8f12deaf341abf42e44b085fa2dfb5ad | 5ade44090b99ba19edd5cc0b07e4ebf1f8cc416e | /introduction.to.programming.with.turtle/2-3.triangle.py | 348245d3846c5d3332b8ac3cb95229421d5f1f07 | [
"MIT"
] | permissive | Mito445/programming_with_python | af2f201fc3f13cab88fdaa708ecda6da05ad1b46 | 1114eaa7432ea8581d880bcebd1813a9fb873cce | refs/heads/master | 2020-05-27T13:00:53.085344 | 2019-05-21T07:59:18 | 2019-05-21T07:59:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | from easygraphics.turtle import *
create_world()
for i in range(3):
fd(100)
lt(120)
pause()
close_world()
| [
"royqh1979@gmail.com"
] | royqh1979@gmail.com |
abc96381576d91e73fd9c07972847fb15b2ae392 | 9b422078f4ae22fe16610f2ebc54b8c7d905ccad | /xlsxwriter/test/comparison/test_ignore_error05.py | 63452115f9c827a96269ffee2d9f92da2fd2a24a | [
"BSD-2-Clause-Views"
] | permissive | projectsmahendra/XlsxWriter | 73d8c73ea648a911deea63cb46b9069fb4116b60 | 9b9d6fb283c89af8b6c89ad20f72b8208c2aeb45 | refs/heads/master | 2023-07-21T19:40:41.103336 | 2023-07-08T16:54:37 | 2023-07-08T16:54:37 | 353,636,960 | 0 | 0 | NOASSERTION | 2021-04-01T08:57:21 | 2021-04-01T08:57:20 | null | UTF-8 | Python | false | false | 1,015 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2019, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparison_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompareXLSXFiles(ExcelComparisonTest):
"""... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
c25b620107cf61d98745b98607852eb71b1016f7 | bf9a77bd51ba2dd5bf9c6e7cbf0ec9ec403f0b4f | /tests/test_lib_wordpress.py | 71bdb09f5d3ff37d3d02219681a284be863e3876 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | s672/clld | bf3e53698ef19b71181ca8e837b863d8ea423afe | cce7abeb504e0e29b61e7d14e93a1dc1d2294a3b | refs/heads/master | 2023-03-30T06:22:06.732159 | 2021-04-07T06:57:20 | 2021-04-07T06:57:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,419 | py | from clld.lib.wordpress import *
def _requests(mocker, c, status=200):
return mocker.Mock(get=lambda *a, **kw: mocker.Mock(text=c, status_code=status))
def test_sluggify():
assert sluggify('a and B') == 'a-and-b'
def test_Client(mocker):
client = Client('blog.example.org', 'user', 'password')
mo... | [
"xrotwang@googlemail.com"
] | xrotwang@googlemail.com |
ff1b51789b5b92e740b1589c7ae516bcf3bfc011 | a342b1d6c7451cf3982b835dfc81924efe0509b4 | /tests/fixpath.py | 6e87fe37d75741be878ccbd0cf94c64ffdc6390d | [] | no_license | phaustin/eoas_canvas | 23bbc27a99f5d0654dce13be3fc3cbcc022d9250 | 79544df2095c7e536f35c29bbd9f568a0ff3633c | refs/heads/master | 2021-04-03T05:12:50.232463 | 2019-03-01T01:21:31 | 2019-03-01T01:21:31 | 124,586,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | """
import this in your main function to add the parent
to the folder holding the script to the front of sys.path
"""
from pathlib import Path
import sys, os
import site
the_path=Path(sys.argv[0]).resolve()
print(f'fixpath: inserting package directory in path: {the_path}')
the_path=the_path.parents[1]
sys.path.insert(... | [
"paustin@eos.ubc.ca"
] | paustin@eos.ubc.ca |
5e52e7f42b5a8b03de3b12096468a57d982485b9 | 1cfb54adac19bfd69cc58ab23918925a800494c4 | /youtube_project/youtube_app/urls.py | 5cce935a401be7be76fbf852834bf410a85a1441 | [] | no_license | SatishNitk/youtube_clone | f743bae04190d4a3c0881a2a1b3daf23d9d9e468 | 698c94d5ef9689428da6a35b01928fd071978772 | refs/heads/master | 2020-06-18T20:08:56.113547 | 2019-07-28T04:56:52 | 2019-07-28T04:56:52 | 196,431,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py |
from django.urls import path,include
from youtube_app.views import *
urlpatterns = [
path('', HomeView.as_view()),
path('login/',LoginView.as_view()),
path('register/',RegisterView.as_view()),
path('video/',NewVideo.as_view()),
path('logout/',LogoutView.as_view()),
path('comment/',CommentView.as... | [
"satishkrgu95@gmail.com"
] | satishkrgu95@gmail.com |
a8567ccd2b5a4624126ca8ab8456180bbdc05fc2 | 64cee8c8f33ae6be8edf0daa7a3a83efee86c82c | /doc/source/conf.py | 654ff054fca0e5c2a439fd8b5ba07d4f6f22ccd0 | [
"MIT"
] | permissive | shengyongniu/cemba_data | 52881061dac63c5dca4bbedf9bc7f1f345b13575 | 6d076ed7f19ac76650d91fe9172393cc6c10e686 | refs/heads/master | 2021-10-09T14:31:43.849987 | 2018-12-29T23:19:53 | 2018-12-29T23:19:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,946 | py | # -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/master/config
# -- Path setup ------------------------------------------------------------... | [
"liuhq@ucsd.edu"
] | liuhq@ucsd.edu |
6d9f788e635eba1977d3eee0524bb2eada7ec450 | 5f1c3a2930b20c3847496a249692dc8d98f87eee | /Pandas/Excel_DataAnalysis/Question5.py | 272e1db4934d35b2c84d146a8f2e7f6ac7cee2c9 | [] | no_license | AmbyMbayi/CODE_py | c572e10673ba437d06ec0f2ae16022d7cbe21d1c | 5369abf21a8db1b54a5be6cbd49432c7d7775687 | refs/heads/master | 2020-04-24T05:01:46.277759 | 2019-02-22T08:26:04 | 2019-02-22T08:26:04 | 171,723,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | """Write a pandas program to insert a column in the sixth position of the said excel sheet and fill it with NaN values
"""
import pandas as pd
import numpy as np
df = pd.read_excel('coalpublic2013.xls')
df.insert(3, "column1", np.nan)
print(df.head) | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
315888a36f3671ad0377b488fbeba896827df303 | 09fd456a6552f42c124c148978289fae1af2d5c3 | /Graph/210.py | b37dc35636fc78cbaea209ecf36234d07c89537d | [] | 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 | 2,123 | py | # 210. Course Schedule II
# There are a total of n courses you have to take, labeled from 0 to n-1.
# Some courses may have prerequisites, for example to take course 0 you have to first take course 1, which is expressed as a pair: [0,1]
# Given the total number of courses and a list of prerequisite pairs, return the o... | [
"hoang2109@gmail.com"
] | hoang2109@gmail.com |
ce55db8946daf7db06859e2c0e253fee52256393 | 039f2c747a9524daa1e45501ada5fb19bd5dd28f | /Typical DP Contest/TDPCa2.py | 0e482b3d312d102ca64129efa5e8468a4aad6f79 | [
"Unlicense"
] | permissive | yuto-moriizumi/AtCoder | 86dbb4f98fea627c68b5391bf0cc25bcce556b88 | 21acb489f1594bbb1cdc64fbf8421d876b5b476d | refs/heads/master | 2023-03-25T08:10:31.738457 | 2021-03-23T08:48:01 | 2021-03-23T08:48:01 | 242,283,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | n = int(input())
p = list(map(int, input().split()))
dp = [[None for i in range(sum(p)+1)] for _ in range(n+1)]
def canMake(i, v):
if (i == 0):
return v == 0
if (dp[i][v] != None):
return dp[i][v]
# print(i)
if (v - p[i-1] >= 0):
dp[i][v] = canMake(i-1, v) or canMake(i-1, v-p[... | [
"kurvan1112@gmail.com"
] | kurvan1112@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.