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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e0921d86405956f11e9c99f975f6602dfe3062d4 | 498e99bae2b0a107a4f1c8563a74470e8516f465 | /apps/project/forms.py | 4a69db81801e8540a92517735406212b5511a46e | [
"MIT"
] | permissive | xiaoxiaolulu/MagicTestPlatform | 91bcf9125c4c7f254bf8aaf425b7c72ca40b7a49 | dc9b4c55f0b3ace180c30b7f080eb5d88bb38fdb | refs/heads/master | 2022-05-29T00:05:48.030392 | 2020-01-20T09:16:44 | 2020-01-20T09:16:44 | 219,256,372 | 5 | 1 | MIT | 2022-05-25T02:24:22 | 2019-11-03T05:31:53 | Python | UTF-8 | Python | false | false | 2,153 | py | """
项目管理模块表单验证器
~~~~~~~~~~~~~~~~~~~~~~~~~~~
DESCRIPTION
:copyright: (c) 2019 by Null.
"""
from wtforms import (
StringField,
TextAreaField,
IntegerField
)
from wtforms.validators import DataRequired
from wtforms_tornado import Form
class ProjectForm(Form):
name = StringField("项目名称",... | [
"546464268@qq.com"
] | 546464268@qq.com |
51762a5493480f20d4c0ec1971b890da62221661 | 10e94d77e56d9cbb979174795c465b679d03d6b3 | /tensorflow/contrib/session_bundle/example/export_half_plus_two.py | a17617db12e50c46eebfbd7fd97418342833e856 | [
"Apache-2.0"
] | permissive | pint1022/tf-coriander | 68939732c1ec0f052929c13ef6d8f49e44d423e4 | 197a685accca4a3f38285d6ac3ccf3998a200090 | refs/heads/master | 2020-04-14T18:56:40.334257 | 2019-01-11T00:40:11 | 2019-01-11T00:40:11 | 164,038,861 | 1 | 0 | Apache-2.0 | 2019-01-04T00:53:40 | 2019-01-04T00:53:40 | null | UTF-8 | Python | false | false | 5,405 | 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... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
fd163de569441d3f1a78fed668627ac3739d01cf | bc441bb06b8948288f110af63feda4e798f30225 | /resource_manage_sdk/model/container/ingress_rule_pb2.pyi | 90c7370882a3274a625add18341209e9ed58abc9 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,236 | pyi | # @generated by generate_proto_mypy_stubs.py. Do not edit!
import sys
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descriptor___Descriptor,
)
from google.protobuf.internal.containers import (
RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedC... | [
"service@easyops.cn"
] | service@easyops.cn |
084424cd5ba296c1622253af22231705a68e5b7b | 1a9a62b3feb53c7f87352587a774eb772948ebc9 | /service2/application/routes.py | 405564d539c122c26757d1b65970fc1ed9043f10 | [] | no_license | vuchenna/SFIAproject2 | ff1e643cec2947931176af2f77d7b24032d80aed | a5d82331636f49d3f1978989eb5428b4a20e57a8 | refs/heads/master | 2022-12-24T13:09:05.392030 | 2020-03-09T16:36:39 | 2020-03-09T16:36:39 | 244,886,380 | 0 | 0 | null | 2022-12-08T03:46:07 | 2020-03-04T11:45:54 | Python | UTF-8 | Python | false | false | 462 | py | from application import app, db
from application.models import Gender
#from application.forms import GenerateForm
import random,requests
@app.route('/')
@app.route('/home')
def home():
return render_template('home.html', title='Home')
@app.route('/gender', methods=['GET', 'POST'])
def gender():
id = random.r... | [
"you@example.com"
] | you@example.com |
79ecbaa165b4ab251b36e00d45242e63bfd51e85 | 0487c30d3d2a26ee62eb9e82c1b1e6edb7cb8b36 | /tests/sai_qualify/community_cases.py | b21af337103cbad72b54347c09e156056917d5e7 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | gord1306/sonic-mgmt | e4047cbcdb600591816215e765c7f30664cc4543 | 05094321ed58270ac06d1a0ef575a4ab9ea3ddd6 | refs/heads/master | 2022-12-17T08:05:58.944208 | 2022-06-06T02:34:48 | 2022-06-06T02:34:48 | 195,778,851 | 1 | 0 | NOASSERTION | 2019-07-08T09:21:07 | 2019-07-08T09:21:07 | null | UTF-8 | Python | false | false | 5,025 | py | COMMUN_TEST_CASE = [
"saiacl.IPAclTest",
"saiacl.MACSrcAclTest",
"saiacl.L3AclTest",
"saiacl.SeqAclTableGroupTest",
"saiacl.MultBindAclTableGroupTest",
"saiacl.BindAclTableInGroupTest",
"saiacl.L3AclTableTestI",
"saiacl.L3AclTableGroupTestI",
"saia... | [
"noreply@github.com"
] | gord1306.noreply@github.com |
e00073bc15e99ad9f8df5f66533a616d9a50b004 | 4edbeb3e2d3263897810a358d8c95854a468c3ca | /python3/re/sub1.py | a6845b67a8b3cf82fa3820856df278a7eb085aa4 | [
"MIT"
] | permissive | jtraver/dev | f505d15d45b67a59d11306cc7252114c265f388b | 2197e3443c7619b856470558b737d85fe1f77a5a | refs/heads/master | 2023-08-06T02:17:58.601861 | 2023-08-01T16:58:44 | 2023-08-01T16:58:44 | 14,509,952 | 0 | 1 | MIT | 2020-10-14T18:32:48 | 2013-11-19T00:51:19 | Python | UTF-8 | Python | false | false | 631 | py | #!/usr/bin/env python3
#!/usr/bin/python
import re
str1 = "An arbitrary string. Literal containing chars like: []{}!#$!@#!%ls813"
print(" ")
print(str1)
# taken from
# citrusleaf/monitoring-console/server/site-packages/pkg_resources.py
print(" ")
print("re.sub('[^A-Za-z0-9]+', '_', str1)")
print(re.sub('[^A-Za-z0-9... | [
"john@aeropsike.com"
] | john@aeropsike.com |
916f487636f1c022f25759cae3478469254fc569 | fdd050eef1c075965b7717f014ae2eeb51c1483f | /gen_dataset/assemble_rnet_imglist.py | 498b49b60c38c168aa4060135adb76b325bb2eaa | [] | no_license | digital-nomad-cheng/MTCNN_PyTorch_Zero_To_One | a8b33b4b39c6f325280d04f22f0e72c532b33cd3 | 30c3fd34c29aa81c4353029c55721b54cc961534 | refs/heads/master | 2022-11-06T18:30:35.344107 | 2019-10-09T06:30:17 | 2019-10-09T06:30:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 929 | py | import os
import config
import gen_dataset.assemble as assemble
if __name__ == '__main__':
anno_list = []
rnet_landmark_file = os.path.join(config.ANNO_STORE_DIR,config.RNET_LANDMARK_ANNO_FILENAME)
rnet_postive_file = os.path.join(config.ANNO_STORE_DIR, config.RNET_POSTIVE_ANNO_FILENAME)
rn... | [
"vincentcheng929@gmail.com"
] | vincentcheng929@gmail.com |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
902bff8182253dc5452804b38313cae134a0b77a | e24cdd3433911fb9e7193de488811c80d5b97746 | /ByTags/Design/362. Design Hit Counter.py | b74743e6ef81c7fa6ee85683eb7f02fb3da89e51 | [] | no_license | lynkeib/LeetCode | 753f6a07270d956ca802632edfb0480029fe6f51 | 8a82905d40b882b20a9b6f862942f8f3e4bebcf0 | refs/heads/master | 2021-06-16T11:33:17.830068 | 2021-02-18T07:17:20 | 2021-02-18T07:17:20 | 165,439,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,156 | py | class HitCounter(object):
def __init__(self):
"""
Initialize your data structure here.
"""
self.counter = [[0, i + 1] for i in range(300)]
def hit(self, timestamp):
"""
Record a hit.
@param timestamp - The current timestamp (in seconds granularity).
... | [
"liuchengyin1234@126.com"
] | liuchengyin1234@126.com |
038a2afe4dbd87146aadaa7a5e7d1b80e3d07b78 | 0306bea08e9aab18f34a799ce8a73e86921f90f7 | /medium/EvaluareReversePolishNotation.py | f4166dc5308c8152784f3331a6b0a9e6cfd0e66d | [] | no_license | GeorgianBadita/LeetCode | 78686fde88ef65b64f84fb7c2a22ba37ef21b8d9 | e3b0571182369c5308e0c29fb87106bb0b0d615a | refs/heads/master | 2022-10-21T00:23:26.479943 | 2022-10-14T20:27:27 | 2022-10-14T20:27:27 | 251,733,951 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,047 | py | # https://leetcode.com/explore/interview/card/top-interview-questions-medium/114/others/823/
from typing import List
class Solution:
def __init__(self) -> None:
self.__operators = "+-*/"
def apply_operator(self, op1, op, op2):
if op == '+':
return op1 + op2
if op == '-'... | [
"geo.badita@gmail.com"
] | geo.badita@gmail.com |
28140476e361402bc2865261bdff072d090b730d | b5cba88ce8c86740c8c3453134610fd5bafbb8c4 | /Leetcode/17. Letter Combinations of a Phone Number/solution.py | d023f235fd394de279c5c4e274ffb3348e3e229f | [] | no_license | EduardoSantos7/Algorithms4fun | 55fcf9d515ea3b70b93298ac96a58d2ae68dee11 | 6ff182ed596b6322322b087f29e6ad98baec3f97 | refs/heads/master | 2023-07-23T01:38:08.216313 | 2023-07-23T01:35:58 | 2023-07-23T01:35:58 | 227,448,848 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 716 | py | class Solution:
def letterCombinations(self, digits: str) -> List[str]:
if not digits:
return []
letters = {
'2': ['a', 'b', 'c'],
'3': ['d', 'e', 'f'],
'4': ['g', 'h', 'i'],
'5': ['j', 'k', 'l'],
'6': ['m', 'n', 'o'],
... | [
"eduardoluissd@gmail.com"
] | eduardoluissd@gmail.com |
550581cdb8b24a81f41dad30bf26ba3cb86a88a4 | 505963904ce8fedd73caf562ffe993feb98e1043 | /home/urls.py | 113b829e90992f2b6b7a4471dee27cb26be8ce71 | [] | no_license | madmax330/Jobin | 05f0c3be31c1fce10d8df48047affd78c57c45ed | b06d04878ff9f4de1bf9d8cd64cd1c4322610d31 | refs/heads/Develop | 2020-12-08T22:22:44.283964 | 2018-05-30T07:23:27 | 2018-05-30T07:23:27 | 67,643,755 | 0 | 2 | null | 2018-05-30T07:12:30 | 2016-09-07T21:07:10 | JavaScript | UTF-8 | Python | false | false | 1,426 | py | from django.conf.urls import url
from . import views
app_name = 'home'
urlpatterns = [
url(r'^$', views.index_view, name='index'),
url(r'^login/student/$', views.login_student, name='student_login'),
url(r'^login/company/$', views.login_company, name='company_login'),
url(r'^send/contact/message/$',... | [
"madmax330@yahoo.com"
] | madmax330@yahoo.com |
8bd8704b983c3d96858f8d0d288946e59f30920a | 10bfea81cdde6710c6abd4a4ef48a99112d286f8 | /crm/models.py | 7505c38e26858acf86545000549f77849846fab2 | [] | no_license | egAhmed/Django_KMA_Apps | f6b3971a5d2d08f91d7e6d2d76208db1e2877f4e | 83a7491b8c5afe6f60ab78d9bdb826b783c80d08 | refs/heads/master | 2022-12-02T10:28:09.526611 | 2020-08-18T13:24:19 | 2020-08-18T13:24:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,911 | py | from django.db import models
from django.urls import reverse
# from django.contrib.admin import widgets
# from datetime import datetime
# from django.utils import timezone
# from django.utils.timezone import now
# Create your models here.
class Registration(models.Model):
name = models.CharField(max_length=150)
... | [
"aboobida2002@gmail.com"
] | aboobida2002@gmail.com |
d1acfdd2bd0014aee0b1f83318cc3cd27a0d2093 | db0b0935c069a877a7e583cc6cbbe006f3ea271d | /Section2/053.py | bc374f36e5ecb74356822b407f3291a39fd70eda | [] | no_license | partrita/biopython | 9294033c8809441190ea861e484b7678dbb2909a | a488559820980bd054b67395756e01cffa738965 | refs/heads/master | 2020-05-05T13:28:12.465422 | 2019-04-08T06:03:49 | 2019-04-08T06:03:49 | 180,078,766 | 4 | 1 | null | 2019-04-08T05:51:39 | 2019-04-08T05:51:39 | null | UTF-8 | Python | false | false | 180 | py | #053.py
a = [3, 5, 2, 1, 4]
b = [8, 10, 7, 6, 9]
print("sorted(a)")
print(sorted(a, reverse=True))
print("a")
print(a)
print("")
b.sort(reverse=True)
print("b.sort()")
print(b)
| [
"partrita@gmail.com"
] | partrita@gmail.com |
861c5f70e7ecb76286b4a0b2647c81904eed9c51 | 44b2743ff70ce0631e9714ce78c44720fa63a9ad | /app/config/urls.py | 00d26fff98d1af869b8364b221e013f52296ccf8 | [
"MIT"
] | permissive | hoelsner/product-database | 1b1b4db8e968f5bc149605093e4639c48a9ae1ad | c649569fb82bc4b0a5e9ef9615fff8a364ce652f | refs/heads/master | 2023-07-24T21:39:01.870692 | 2023-07-09T17:03:56 | 2023-07-09T17:03:56 | 43,767,455 | 43 | 27 | MIT | 2023-04-16T19:17:25 | 2015-10-06T17:44:50 | Python | UTF-8 | Python | false | false | 683 | py | """
Product Database Config URL configuration (namespace "productdb_config")
"""
from django.conf.urls import url
from app.config import views
# namespace: productdb_config
urlpatterns = [
# user views
url(r'^change/$', views.change_configuration, name='change_settings'),
url(r'^status/$', views.status, na... | [
"henry@codingnetworker.com"
] | henry@codingnetworker.com |
171a3cc32d02abfa9872ea2167a3e1182d2aae6a | a6e4a6f0a73d24a6ba957277899adbd9b84bd594 | /sdk/python/pulumi_azure_native/consumption/latest/__init__.py | f3e9e2805ca06f72ddd2b242d2c80d0413d13a4a | [
"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 | 1,283 | 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! ***
# Export this package's modules as members:
from ._enums import *
from .budget import *
from .budget_by_resource_group_name import *
from .get_budget i... | [
"noreply@github.com"
] | MisinformedDNA.noreply@github.com |
a709e84115ad3c609b6e6e41d13916caa6b916ed | 6044b98e65c38233fb587b3fd40290a7be0b4c6d | /uni_ticket/migrations/0036_ticketreply_read.py | 592ee30f86fc243801323666f87cac4ffb684a03 | [
"Apache-2.0"
] | permissive | libremente/uniTicket | f5bef4ff85edb03a799b5e87a49050becd1822fa | 6f41f0ce9bd0f1238bffcde1c4e12a38266c781b | refs/heads/master | 2022-04-23T05:21:39.528135 | 2020-04-22T16:11:29 | 2020-04-22T16:11:29 | 257,953,451 | 0 | 0 | Apache-2.0 | 2020-04-22T16:11:01 | 2020-04-22T16:11:00 | null | UTF-8 | Python | false | false | 393 | py | # Generated by Django 2.2.3 on 2019-07-30 09:48
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('uni_ticket', '0035_auto_20190725_1632'),
]
operations = [
migrations.AddField(
model_name='ticketreply',
name='read'... | [
"francesco.filicetti@unical.it"
] | francesco.filicetti@unical.it |
02ece8aff15fad1464676b60c95f4ee8493c447c | 31a928cff4960236923b6bc3b68e34bb2f46f470 | /ctc-executioner/setup.py | 768b03ff56cb33d23f6cf759647c444e12ae35e2 | [
"BSD-3-Clause"
] | permissive | webclinic017/ml_monorepo | 707df2afd2f986eb0721d26430e6135c917817c6 | 945f0a83d6b94282c547bb6f4805f3381ad9c16a | refs/heads/master | 2021-10-19T21:02:53.322944 | 2019-02-19T20:58:51 | 2019-02-23T20:06:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | from setuptools import setup
setup(name='gym_ctc_executioner',
packages=['gym_ctc_executioner'],
version='0.0.1',
install_requires=['gym']
)
setup(name='gym_ctc_marketmaker',
packages=['gym_ctc_marketmaker'],
version='0.0.1',
install_requires=['gym']
)
| [
"tmichael.yu@gmail.com"
] | tmichael.yu@gmail.com |
e1be4b994675e0158566681530cd9169bb10ece9 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p3BR/R1/benchmark/startPyquil447.py | b50d0c38f7773bb40682486d38291f1927f81bbc | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,898 | py | # qubit number=2
# total number=83
import pyquil
from pyquil.api import local_forest_runtime, QVMConnection
from pyquil import Program, get_qc
from pyquil.gates import *
import numpy as np
conn = QVMConnection()
def make_circuit()-> Program:
prog = Program() # circuit begin
prog += H(0) # number=1
pr... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.