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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b8f8772cff4eeb35ff9ba3081fb0b24b8b2e87a0 | 8ce656578e04369cea75c81b529b977fb1d58d94 | /bank_guarantee/migrations/0091_auto_20201007_0933.py | 5d8276a6bb98c3327024da8649fbcbcccb77f944 | [] | no_license | JJvzd/django_exp | f9a08c40a6a7535777a8b5005daafe581d8fe1dc | b1df4681e67aad49a1ce6426682df66b81465cb6 | refs/heads/master | 2023-05-31T13:21:24.178394 | 2021-06-22T10:19:43 | 2021-06-22T10:19:43 | 379,227,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | # Generated by Django 2.1.7 on 2020-10-07 06:33
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('bank_guarantee', '0090_auto_20201007_0931'),
]
operations = [
migrations.A... | [
"javad@MacBook-Pro-Namig.local"
] | javad@MacBook-Pro-Namig.local |
bd8ef562dc94c9982961eec05e59a91be8026841 | 74152b9ee97de2657214a1497fd87ac982574d5d | /Lesson5/reverse.py | edc2c281f247a5c1bf232c1708eef4d038163218 | [
"Apache-2.0"
] | permissive | shinkai-tester/python_beginner | 8b7dc0189a1615e86778d1712bf5ca03b0bbce47 | a934328c9a50241cc3f02a423060e16aab53b425 | refs/heads/main | 2023-05-12T20:25:36.470754 | 2021-06-01T13:23:32 | 2021-06-01T13:23:32 | 371,542,145 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | x = input()
a= []
while x != '0':
a.append(x)
x = input()
length = len(a)
for i in range(length):
print(-i - 1, end = ' ')
print(a[- i - 1]) | [
"alinlaegnor@gmail.com"
] | alinlaegnor@gmail.com |
6ee0bf2fa7e401ec7786686e7172e1fa9174dc67 | 03778e9985613ffccd8e2076ed51e86e86f997b6 | /pysad/models/loda.py | 087d84871d730b4752c502f6b81edea44e79645d | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | isci1102/pysad | e3fe263a075fc51ee2bce548da458222ec5a3b7a | dff2ff38258eb8a85c9d34cf5f0b876fc1dc9ede | refs/heads/master | 2023-03-18T03:33:19.345541 | 2020-09-08T01:32:29 | 2020-09-08T01:32:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,018 | py | from pysad.core.base_model import BaseModel
import numpy as np
class LODA(BaseModel):
"""The LODA model :cite:`pevny2016loda` The implemnetation is adapted to the steraming framework from the `PyOD framework <https://pyod.readthedocs.io/en/latest/_modules/pyod/models/loda.html#LODA>`_.
Args:
... | [
"yilmazselimfirat@gmail.com"
] | yilmazselimfirat@gmail.com |
6fe2ed83133466acc1e94ac82eec4c91681d4f48 | deda909b6f5797a05bbaf4f8e56edbc9b2a6de09 | /devops/settings.py | 42a3a2c2691e773ff13a0184c7d93b158bd3bed4 | [
"MIT"
] | permissive | cnbillow/devops | 628a892962a17cf5e99865dc4bffe6b895d7038a | 9883ba547e400758e8743456ceb3655345f9263f | refs/heads/master | 2020-08-30T14:54:44.023237 | 2019-10-25T09:09:40 | 2019-10-25T09:09:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,202 | py | """
Django settings for devops project.
Generated by 'django-admin startproject' using Django 2.2.3.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
imp... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
a8ebdb184a5ca437c1e15382aa65fcad9bb81aa1 | 20b2d61c0959023cb51be92fafe54877aecb9887 | /pabi_asset_management/wizard/account_asset_remove.py | c89442cfc3df27f67907d79bc50b0ba929f6e8dc | [] | no_license | BTCTON/pb2_addons | 6841a23554054f859b0c4acafb4e91bd0c3a14e4 | a5bfd90c202cea894690c96d74a74fa96eb79468 | refs/heads/master | 2021-09-07T16:55:41.195667 | 2018-02-26T11:27:01 | 2018-02-26T11:27:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 765 | py | # -*- encoding: utf-8 -*-
from openerp import fields, models, api
class AccountAssetRemove(models.TransientModel):
_inherit = 'account.asset.remove'
target_status = fields.Many2one(
'account.asset.status',
string='Asset Status',
domain="[('map_state', '=', 'removed')]",
requir... | [
"kittiu@gmail.com"
] | kittiu@gmail.com |
1168edfb4618b69f4fffd2ff9fe9d85e6abe5787 | 87e62af4768c0f594e675551f4c7c1c81ce7f7d9 | /lawyer/pipelines/mongo_pipeline.py | 24655000c001f65246bd768b972da53ad41ff3b0 | [] | no_license | dulei001/Spider | 78d12adbef1d865da6978704fe146cc21a8d2d3e | 628d468501c6502763ce453a58a09813b2a46b8c | refs/heads/master | 2021-01-18T17:27:11.771434 | 2019-05-14T02:14:33 | 2019-05-14T02:14:33 | 86,802,130 | 12 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,689 | py | #!/usr/bin/python
#-*- coding: utf-8 -*-
import os
import uuid
from datetime import datetime
import pymongo
class MongoPipeline(object):
def __init__(self, mongo_uri, mongo_db,mongo_replicat_set,mongo_username,mongo_password):
self.mongo_uri = mongo_uri
self.mongo_db = mongo_db
self.mongo... | [
"280680441@qq.com"
] | 280680441@qq.com |
21cf3a893bbeda22a11b0aeac631f7175b4a9162 | d609e607a7ff6eecfcab196b546201f4d2452746 | /blog/migrations/0001_initial.py | 768601f77d97cdf42cbcadbde4e8d04b8fef8847 | [] | no_license | anhdhbn/django-mqtt | 417b345ea123721ad9faa8950fa3e23a9392b7ad | 2660341dd6c3d57c9704ae66da7a91da2b363aa2 | refs/heads/master | 2022-12-28T09:12:23.881762 | 2020-10-16T14:07:16 | 2020-10-16T14:07:16 | 304,644,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,225 | py | # Generated by Django 3.1.1 on 2020-09-28 02:38
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"anhdhbn@gmail.com"
] | anhdhbn@gmail.com |
3ea96be9668d58a79cad9531613994cad129db1d | c582efcb41f04c77f4fa7d204c109c22e27e93e2 | /18sep/day3/excel/excel1.py | be8baca7d9e3f776578cd884a78be05969120bcb | [] | no_license | shobhit-nigam/infineon | dddeaa4b212eb67ce0f130ff1d8d58dbd0dacbdf | b2830abc7485428b1aeba7abd13bfb18528ce61b | refs/heads/master | 2021-06-22T13:17:52.886845 | 2021-02-26T12:04:29 | 2021-02-26T12:04:29 | 195,349,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,633 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
#pandas
# In[2]:
from openpyxl import load_workbook
# In[3]:
wba = load_workbook('beforelunch.xlsx')
# In[4]:
type(wba)
# In[5]:
print(wba.sheetnames)
# In[8]:
sheeta = wba['first']
# In[7]:
sheeta = wba.get_sheet_by_name('first')
# In[9]:
pr... | [
"noreply@github.com"
] | shobhit-nigam.noreply@github.com |
400dcb020040b3841ef08c80eb55318d7b8d7aa5 | 785f5a4bfd97ac77559110fb831f18a3822b4e17 | /01-python_crash_course/01-ejercicios_teoria/chapter_10_files/remember_me.py | 24cc799b4417700d26b0dae882c652e7a9a0f532 | [] | no_license | lionelherrerobattista/practica_python | c552ae06336eb805172decd0d527b26a17c09cb9 | 44f09bae58748c2c7c2449adc5117591abd2828d | refs/heads/master | 2020-03-28T02:28:09.910563 | 2020-03-14T21:31:31 | 2020-03-14T21:31:31 | 147,572,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 876 | py | import json
def get_stored_username():
"""Get stored username if available."""
filename = 'username.json'
try: #Cargo desde el archivo
with open(filename) as f_obj:
username = json.load(f_obj)
except FileNotFoundError: #si no existe
return None
else:
return user... | [
"-"
] | - |
340462bf30c2ed5cbb3fb0c3dd921c6b94303a12 | 308c7d5dd37ca24096081edea6f73e79ce089da4 | /201-250/203. 删除链表中的节点.py | f097e301332908911f079b841ef1f295937d0a77 | [] | no_license | fengges/leetcode | 4953ca038b085cdb772054fa1483bf816dccb578 | 5d592440b214024cad342c497b381dbce19d8a70 | refs/heads/master | 2022-09-18T17:52:49.525234 | 2022-09-03T08:45:07 | 2022-09-03T08:45:07 | 132,389,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 361 | py | class ListNode:
def __init__(self, x):
self.val = x
self.next = None
class Solution:
def removeElements(self, head, val):
t=ListNode(0)
t.next=head
head=t
while t.next:
if t.next.val==val:
t.next=t.next.next
else:
... | [
"1059387928@qq.com"
] | 1059387928@qq.com |
7016a4710ff4da144f8a58cfb31202c38c667a98 | 37e87b3d5e1ee9009f0ea0671bc0c6edf0e233b7 | /027.py | c7672604738dad2bb9d5985ba4194e99573ec277 | [] | no_license | Jane11111/Leetcode2021 | d9f4987792938597bf89ff72ba6bbcb4a3f9d081 | a95b871578aae0103066962c33b8c0f4ec22d0f2 | refs/heads/master | 2023-07-14T21:29:41.196752 | 2021-08-23T03:28:02 | 2021-08-23T03:28:02 | 344,804,297 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 823 | py | # -*- coding: utf-8 -*-
# @Time : 2021-03-02 11:30
# @Author : zxl
# @FileName: 027.py
class Solution(object):
def swap(self,nums,i,j):
tmp = nums[i]
nums[i] = nums[j]
nums[j] = tmp
def removeElement(self, nums, val):
"""
:type nums: List[int]
:type val: in... | [
"791057615@qq.com"
] | 791057615@qq.com |
2f54a80a00dd9de3108b4b616405f5b7a05bd8a3 | 1577e1cf4e89584a125cffb855ca50a9654c6d55 | /pyobjc/pyobjc/pyobjc-framework-WebKit-2.5.1/PyObjCTest/test_webplugin.py | c34363bdcc0ed21a2ac82af352e13a22c15cf1d2 | [
"MIT"
] | permissive | apple-open-source/macos | a4188b5c2ef113d90281d03cd1b14e5ee52ebffb | 2d2b15f13487673de33297e49f00ef94af743a9a | refs/heads/master | 2023-08-01T11:03:26.870408 | 2023-03-27T00:00:00 | 2023-03-27T00:00:00 | 180,595,052 | 124 | 24 | null | 2022-12-27T14:54:09 | 2019-04-10T14:06:23 | null | UTF-8 | Python | false | false | 324 | py |
from PyObjCTools.TestSupport import *
from WebKit import *
class TestWebPluginHelper (NSObject):
def webPlugInSetIsSelected_(self, v): pass
class TestWebPlugin (TestCase):
def testConstants(self):
self.assertArgIsBOOL(TestWebPluginHelper.webPlugInSetIsSelected_, 0)
if __name__ == "__main__":
mai... | [
"opensource@apple.com"
] | opensource@apple.com |
7f2e9f67a922ae73ed06152cd0babe4ed8aa4e8e | 1749147fb24b13803d3437e0ae94250d67d618bd | /AE/a05_CAE.py | ed687530d4470574deb493be5383e72896d77586 | [] | no_license | MJK0211/bit_seoul | 65dcccb9336d9565bf9b3bc210b1e9c1c8bd840e | 44d78ce3e03f0a9cf44afafc95879e4e92d27d54 | refs/heads/master | 2023-02-06T00:45:52.999272 | 2020-12-26T07:47:30 | 2020-12-26T07:47:30 | 311,308,648 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,261 | py | #a02 카피
# 딥하게 구성
# CNN으로 구성
import numpy as np
from tensorflow.keras.datasets import mnist
# (x_train, y_train), (x_test, y_test) = mnist.load_data()
(x_train, _ ), (x_test, _ ) = mnist.load_data()
x_train = x_train.reshape(60000,28,28,1).astype('float32')/255.
x_test = x_test.reshape(10000,28,28,1).astype('float32... | [
"kimminjong0211@gmail.com"
] | kimminjong0211@gmail.com |
820029127213c4a647d7f8f1e54cc772960af4a9 | 0c325cf7a68ef51067ed8db566d525a20de5b635 | /other/panda365/panda365/migrations/versions/dbf55d071d34_add_admin_votes_num.py | d1fd1247b26e0de8a22962b576839ecbb1dde1b1 | [] | no_license | alinzel/NOTES | 2ab6aa1ef1d601a9ae8c0d23c0df2bca7e1aa241 | 3e0594641a605580e920d0b08a251fbc99f34e2f | refs/heads/master | 2023-01-08T22:48:30.762625 | 2020-01-17T09:14:47 | 2020-01-17T09:14:47 | 175,339,492 | 0 | 0 | null | 2022-12-27T15:01:19 | 2019-03-13T03:28:08 | HTML | UTF-8 | Python | false | false | 1,000 | py | """add admin_votes_num
Revision ID: dbf55d071d34
Revises: 9cc8e9322d7e
Create Date: 2017-06-28 11:47:03.044287
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'dbf55d071d34'
down_revision = '9cc8e9322d7e'
branch_labels = None
depends_on = None
def upgrade():
... | [
"944951481@qq.com"
] | 944951481@qq.com |
3bb168d46e93c5e71ecaeb35497dc68401a176f6 | 9a1169f3d008d81f046578994c7607c2670c0476 | /tests/chainer_tests/distributions_tests/test_gumbel.py | 50cbbd88174542e261faba926c4f892da8e5ec19 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | ishanrai05/chainer | d77d61e481c7c0a9d4837582595bc98b3c7156dd | 758c74122f4463f3b0de61c6609b8688576f59a6 | refs/heads/master | 2020-04-23T16:11:28.496584 | 2019-02-18T09:52:23 | 2019-02-18T09:52:23 | 171,289,639 | 1 | 0 | MIT | 2019-02-18T13:30:46 | 2019-02-18T13:30:46 | null | UTF-8 | Python | false | false | 1,210 | py | import numpy
from chainer import distributions
from chainer import testing
from chainer import utils
@testing.parameterize(*testing.product({
'shape': [(2, 3), ()],
'is_variable': [True, False],
'sample_shape': [(3, 2), ()],
}))
@testing.fix_random()
@testing.with_requires('scipy')
class TestGumbel(testi... | [
"yoshikawa@preferred.jp"
] | yoshikawa@preferred.jp |
829e0449fb5db433b31272b5900ca1b144331321 | 6e5ab77fee1fb4a0310213dd8c6dd8601828b1b9 | /Algorithm/문제/수업/D-13t/AD/[TST] 치킨배달2.py | 41a4c73adabf114f7dac858dd407e941d456012d | [] | no_license | hongyong3/TIL | 36d031c0da9e3e6db3eebb977bd3e12df00a849f | 7f1492128e957a78fc95b255f4f7f2978161e471 | refs/heads/master | 2023-08-19T09:16:03.231757 | 2023-08-18T09:38:47 | 2023-08-18T09:38:47 | 162,100,258 | 1 | 0 | null | 2023-02-11T00:52:32 | 2018-12-17T08:42:42 | Jupyter Notebook | UTF-8 | Python | false | false | 3,564 | py | import sys
sys.stdin = open("[TST] 치킨배달2_input.txt", "r")
# def solve():
# sums = 0
# for i in range(home_count): # 현재 집에서 고른 치킨집과 최소인 거리 찾기
# dist_min = 20*20
# for j in range(chicken_count): # 치킨집
# if not check[j]: continue # 선택안한 치킨집이면 스킵
# dist_min = min(dist_min... | [
"chy66822495@gmail.com"
] | chy66822495@gmail.com |
7125a29ff2c0e1eecfb3db2d2366cbe9fde9ce28 | 006ae2f32313b59e9f2a637631d981ccfd1c3430 | /setup.py | 15fd1c9ac595ba0ec642b2c4ae90dbf1388eff44 | [] | no_license | yourlabs/starlette-cli | 03a941f998c7dead5ff4d439dbfde67aa17f1cb1 | 3c9be7519d32d28e665a0a86b638c27ad845d622 | refs/heads/master | 2023-03-06T03:28:17.117784 | 2021-02-06T19:42:11 | 2021-02-07T00:26:38 | 336,623,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | from setuptools import setup
setup(
name='starlette-cli',
versioning='dev',
setup_requires='setupmeta',
modules=['starlette_cli'],
author='James Pic',
author_email='jamespic@gmail.com',
url='https://yourlabs.io/oss/starlette-cli',
include_package_data=True,
license='MIT',
keywo... | [
"jpic@yourlabs.org"
] | jpic@yourlabs.org |
0d68beccc9cba0e3f18c7002e64278071a90aa98 | ec93fc95f583991bf2dd958f34ce3409f5d6b0a8 | /vouchers/migrations/0009_batch_user.py | cbc1e2a57fe199f16a77a41a00aad901c38cf87c | [] | no_license | deone/vms | b45fcd50535397bebceb6f50dd55bff363bdb200 | 82c4cfafbde96d18776c7a6136f67acad173f520 | refs/heads/master | 2021-06-15T06:00:22.833997 | 2019-06-17T13:36:44 | 2019-06-17T13:36:44 | 44,692,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('vouchers', '0008_auto_20160106_2323'),
... | [
"alwaysdeone@gmail.com"
] | alwaysdeone@gmail.com |
e59655ec1a9e6e1c9dd715db5fc0da5c6cf31946 | 0822d36728e9ed1d4e91d8ee8b5ea39010ac9371 | /robo/pages/rio_grande_do_sul/correiodopovo.py | 889bebdead1f9794b8e7615dff426e0eec6e12f7 | [] | no_license | diegothuran/blog | 11161e6f425d08bf7689190eac0ca5bd7cb65dd7 | 233135a1db24541de98a7aeffd840cf51e5e462e | refs/heads/master | 2022-12-08T14:03:02.876353 | 2019-06-05T17:57:55 | 2019-06-05T17:57:55 | 176,329,704 | 0 | 0 | null | 2022-12-08T04:53:02 | 2019-03-18T16:46:43 | Python | UTF-8 | Python | false | false | 1,356 | py | # coding: utf-8
import sys
sys.path.insert(0, '../../../blog')
from bs4 import BeautifulSoup
import requests
GLOBAL_RANK = 35259
RANK_BRAZIL = 1087
NAME = 'correiodopovo.com.br'
def get_urls():
try:
root = 'http://www.correiodopovo.com.br'
urls = []
links = [
'http:... | [
"diego.thuran@gmail.com"
] | diego.thuran@gmail.com |
84d6040fc0ff051397d0aea6be5fa73dd87c25bf | 2befb6f2a5f1fbbd5340093db43a198abdd5f53b | /pythonProject/customAuth/CustomAuthApp/views.py | 34fcdfebcc1ba80f731777cf404be22738ac9833 | [] | no_license | JanardanPandey/RestAPI | 1956d3529782d18ef2118961f6286e3213665aad | 654933a4d9687076a00c6f4c57fc3dfee1a2c567 | refs/heads/master | 2023-06-14T07:02:31.702000 | 2021-07-02T07:50:59 | 2021-07-02T07:50:59 | 382,357,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | from django.shortcuts import render
from rest_framework import viewsets
from .models import Student
from .serializers import StudentSerializers
# Create your views here.
class studentapi(viewsets.ModelViewSet):
queryset = Student.objects.all()
serializer_class = StudentSerializers | [
"janardanpandey0510@gmail.com"
] | janardanpandey0510@gmail.com |
a2a3f5ea87b79717745563396a14f4d4ee143753 | 550d999981ccaaa32e734fd4c963181c4d5ab6f8 | /core/rest/wscdn.py | 4baa6af0e24fc1f4638f43397d1b4b1bab7096a4 | [
"MIT"
] | permissive | macdaliot/Osmedeus | 4709289aa2791473073241fda2275aa22370569a | cd8020416af81a745af7b06c8c5a1c5881911234 | refs/heads/master | 2023-03-01T22:03:24.438090 | 2019-07-22T09:40:17 | 2019-07-22T09:40:17 | 198,321,076 | 0 | 0 | MIT | 2021-02-09T18:44:54 | 2019-07-23T00:25:33 | Python | UTF-8 | Python | false | false | 1,669 | py | import os
import glob
import json
from flask_restful import Resource, reqparse
from flask_jwt_extended import jwt_required
from flask import send_from_directory
import utils
from pathlib import Path
BASE_DIR = Path(os.path.dirname(os.path.abspath(__file__)))
# incase you can't install ansi2html it's won't break the ap... | [
"jeromej3m@gmail.com"
] | jeromej3m@gmail.com |
343068211e01bf5569aef84eb8a3e7c9ded11ecc | 90b2b50be27da77b6680f4c7b9cfea53267f2f6d | /leetcode/math/48. 旋转图像.py | 2595164dd966a7485695e73f7d34bd7e3f6887ab | [
"Apache-2.0"
] | permissive | xuhuasheng/algorithm-python | 22cd3007d0b63d169d8f84b9b88787d6883e9c76 | 9c47c1add8da1ccfbee8882057883d90615d27b5 | refs/heads/master | 2023-01-18T22:52:22.027636 | 2020-11-20T09:48:23 | 2020-11-20T09:48:23 | 313,158,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,023 | py | # 给定一个 n × n 的二维矩阵表示一个图像。
# 将图像顺时针旋转 90 度。
# 说明:
# 你必须在原地旋转图像,这意味着你需要直接修改输入的二维矩阵。请不要使用另一个矩阵来旋转图像。
# 示例 1:
# 给定 matrix =
# [
# [1,2,3],
# [4,5,6],
# [7,8,9]
# ],
# 原地旋转输入矩阵,使其变为:
# [
# [7,4,1],
# [8,5,2],
# [9,6,3]
# ]
# 来源:力扣(LeetCode)
# 链接:https://leetcode-cn.com/problems/rotate-image
# 著作权归领扣网络所有。... | [
"xu_watson@163.com"
] | xu_watson@163.com |
22f096a774eed7bab451ce2bf6694d1729482d86 | 82fca16c707946faecf6eb2b2f03fa5799b8d9d5 | /student/urls.py | e507a40948619d671373a5a8b214fa2b3ef8adfc | [] | no_license | riteshh101/CrudTest | 487ef5d3337064343c5cf2de7a40bfaaa0363e99 | f0ad5e67e3f6c71c3b89295cf79f6a3f43253e01 | refs/heads/main | 2023-06-15T19:44:33.853855 | 2021-07-14T08:15:29 | 2021-07-14T08:15:29 | 385,862,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,515 | py | """student URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"83176095+riteshh101@users.noreply.github.com"
] | 83176095+riteshh101@users.noreply.github.com |
d540f96d5385b1438d96992cc5fd6eb17fe6230c | 2d4380518d9c591b6b6c09ea51e28a34381fc80c | /CIM16/CDPSM/Geographical/IEC61970/Wires/SynchronousMachine.py | 333e1ee1450fdc72f375c18920597ce6b88c110a | [
"MIT"
] | permissive | fran-jo/PyCIM | 355e36ae14d1b64b01e752c5acd5395bf88cd949 | de942633d966bdf2bd76d680ecb20517fc873281 | refs/heads/master | 2021-01-20T03:00:41.186556 | 2017-09-19T14:15:33 | 2017-09-19T14:15:33 | 89,480,767 | 0 | 1 | null | 2017-04-26T12:57:44 | 2017-04-26T12:57:44 | null | UTF-8 | Python | false | false | 1,709 | py | # Copyright (C) 2010-2011 Richard Lincoln
#
# 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, modify, merge, publish... | [
"fran_jo@hotmail.com"
] | fran_jo@hotmail.com |
25442ed8370e9c2c4552f217bfd5a5cf12faf416 | b510f89dd40c0ed6bda55230fe4615d16de07251 | /picmodels/migrations/0040_auto_20170808_1541.py | ada816c33f11f1a6c27a281e5fa1dcd47fbca85f | [
"MIT"
] | permissive | bbcawodu/careadvisors-backend | 42676d269679c487a97a8870339bbded27a0ccf7 | 5ebd3c0fc189b2486cea92b2a13c0bd8a0ee3838 | refs/heads/master | 2020-03-25T12:47:05.267866 | 2018-08-14T16:29:02 | 2018-08-14T16:29:02 | 143,793,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 698 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('picmodels', '0039_careadvisorcustomer'),
]
operations = [
migrations.RemoveField(
model_name='careadvisorcustome... | [
"awodubradley@gmail.com"
] | awodubradley@gmail.com |
d306eb9cf443b85405b6d6c0b9b89c5ebb7a02ac | ec0dc0fbfe110e50420ecd76e052dcda33bd2ad4 | /functionalprogramming/map_reduce_filter/functionalprgm.py | fae8a188504fc9437ffde660bfe57c99de981f15 | [] | no_license | aishAMZK/luminardjangonew | 88383a64a60f85e2cba5ee99bede5c04af82ec77 | 745ee4409984ae07e70aeeab8632cf8f7754df12 | refs/heads/master | 2023-03-22T11:03:42.458417 | 2021-03-22T16:45:45 | 2021-03-22T16:45:45 | 315,669,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py | #lambda function
f=lambda no1,no2:no1+no2
print(f(10,20))
cube=lambda no:no**3
print(cube(3))
sub=lambda no1,no2:no1-no2
print(sub(20,10))
mul=lambda no1,no2:no1*no2
print(mul(10,20))
div=lambda no1,no2:no1/no2
print(div(20,10)) | [
"aiswaryakrishna46@gmail.com"
] | aiswaryakrishna46@gmail.com |
f6db0d878c673ee37cb07285f33ea9925400fb0b | fed0736dcd16356a74aa405aa730dec14d95fbec | /controller/apps/tinc/migrations/0009_auto__add_field_host_island.py | 9449a35c1d589f203f59162a6d14cb9a336ed63c | [] | no_license | m00dy/vct-controller | 78e233930c17487d736dccdd6f62ca964a4907ad | dd798dc9bd3321b17007ff131e7b1288a2cd3c36 | refs/heads/master | 2020-12-28T22:01:17.251131 | 2015-01-22T14:16:52 | 2015-01-22T14:16:52 | 29,681,858 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,109 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Host.island'
db.add_column(u'tinc_host', 'island',
... | [
"santiago@pangea.org"
] | santiago@pangea.org |
5ecf543cff70919e446533708646fbf6a7ca738e | e5329001263e67a4d3c13d57bb91f2502280e206 | /InvTL/lm_py/pypy/objspace/std/test/test_celldict.py | ceb5a64c290b62c57e64125a367e5a051aebe433 | [] | no_license | yanhongliu/DARLAB | d9432db6e005a39e33501d7ffffe6e648b95b3fc | f739318c9620b44ef03d155f791c7ed4111d80fa | refs/heads/master | 2021-05-27T19:58:58.458846 | 2014-02-04T12:09:26 | 2014-02-04T12:09:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,035 | py | import py
from pypy.conftest import gettestobjspace, option
from pypy.objspace.std.celldict import ModuleCell, ModuleDictImplementation
from pypy.objspace.std.test.test_dictmultiobject import FakeSpace
from pypy.interpreter import gateway
space = FakeSpace()
class TestCellDict(object):
def test_basic_property(sel... | [
"mickg10@gmail.com"
] | mickg10@gmail.com |
7bcea3bd28d9367111a7471451575f50f311e78a | dd573ed68682fd07da08143dd09f6d2324f51345 | /swea/summer/1249_보급로.py | 1cf4f39224b7b34a81ed73ff883fe93da2456bdc | [] | no_license | chelseashin/My-Algorithm | 0f9fb37ea5c6475e8ff6943a5fdaa46f0cd8be61 | db692e158ebed2d607855c8e554fd291c18acb42 | refs/heads/master | 2021-08-06T12:05:23.155679 | 2021-07-04T05:07:43 | 2021-07-04T05:07:43 | 204,362,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,504 | py | import sys
sys.stdin = open("1249_input.txt")
# 상 하 좌 우
dr = (-1, 1, 0, 0)
dc = (0, 0, -1, 1)
def bfs(sr, sc):
global arr, N, visited
Q = [(sr, sc)]
visited[sr][sc] = 0
while Q:
r, c = Q.pop(0)
for i in range(4):
nr = r + dr[i]
nc = c + dc[i]
if not ... | [
"chaewonshin95@gmail.com"
] | chaewonshin95@gmail.com |
4de6d624e297737b79f34f2d263f711951474974 | 522d93a2829470f2d5ddd16c8784b29e8cff2189 | /static_files/admin/global/plugins/clockface/CHANGELOG.txt.py | 4fe83cb2e827277e3e3658a872e1c279e11344b7 | [
"MIT"
] | permissive | omorapatterson/ontraveline | 7c4d5d75466b60469279b7ee041ad2a7d4afa637 | b3248431fd56c932a1d23a67034315b19787b1a0 | refs/heads/master | 2023-02-19T22:40:52.666021 | 2018-02-27T17:30:29 | 2018-02-27T17:30:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | XXXXXXXXX XXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXX XXXXX XXX XXX XXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXX XXXX XXXX XXXXXXX XX XXXX XX XXX XXXXXX XXXXXXXXXX
XXXXXXX XXXXX XXX XXX XXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXX XXXXXXXX | [
"contact@magestree.com"
] | contact@magestree.com |
00fe0c4fb019f721213defd68567862d5fd31ed8 | bfd68f439aff62ccba40c1d4e57f2e7a9f99c523 | /docs/scripts/gauss.b.py | b77f5d57a88c9ad28f1e1b2d09d4df05ea90d526 | [
"MIT"
] | permissive | ivan-pi/RBF | 6225c7ea267929f4866e62b227495985a6d62828 | 675f841bc325848f019276a980773145783d7ca4 | refs/heads/master | 2020-06-20T15:20:58.519211 | 2019-09-09T01:42:06 | 2019-09-09T01:42:06 | 197,162,365 | 1 | 1 | MIT | 2019-07-16T09:22:50 | 2019-07-16T09:22:50 | null | UTF-8 | Python | false | false | 1,581 | py | '''
This script demonstrates how to make a custom *GaussianProcess* by
combining *GaussianProcess* instances. The resulting Gaussian process
has two distinct length-scales.
'''
import numpy as np
import matplotlib.pyplot as plt
from rbf.basis import se
from rbf.gauss import gpiso
np.random.seed(1)
dx = np.linspace(... | [
"treverhines@gmail.com"
] | treverhines@gmail.com |
def0cf113000143b32c2bf32544a4b798364f28a | 1b1804ad30b0103f56db7a4130ddc264d7269c29 | /mga_graphql/mgagraphql.py | eef7140a83553bb5357573ca7b3b9f15d85f4c08 | [
"MIT"
] | permissive | metamorph-inc/mga-graphql | 2127b33e9f0c77d17d0be9e9cc3e72912a1a27ca | bb715bba75f5b0798389e4955a2c20aa91fc2a7a | refs/heads/master | 2021-09-02T03:22:16.685235 | 2017-12-29T22:35:59 | 2017-12-29T22:35:59 | 115,758,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,929 | py | import xml.etree.ElementTree as ET
import _winreg as winreg
import os
import sys
import udm
import collections
import functools
class MgaGraphQlSchemaConverter(object):
TEMPLATE_CLASS = """# auto-generated by mga-graphql
from mga_graphql.mgaclasses import *
from graphene import String, Int, Field, Boolean, List
... | [
"adam.nagel+git@gmail.com"
] | adam.nagel+git@gmail.com |
579f6723b9a9226201392f80914589a5b8098d09 | ced6ca53b222eff6cfd13c4786cec32a7f5a393e | /exam05_Blue_Color_detect.py | 37b03a134e868cd2918b483a66321a6dbc99e923 | [] | no_license | ykiseong303/Image_detect_openCV | b48867b3d34b58675d4ec9e74ed8d3b65641c1f0 | 7c4beae9db46d23c5dd7ba9c57efc881ba2f2b3f | refs/heads/master | 2021-08-08T13:41:46.465522 | 2020-04-24T04:17:31 | 2020-04-24T04:17:31 | 162,654,921 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,757 | py | import numpy as np
import cv2
lower_blue = np.array([90,100,100])
upper_blue = np.array([130,255,255])
lower_red = np.array([6,100,100])
upper_red = np.array([10,255,255])
cap = cv2.VideoCapture(0)
cap.set(3,480)
cap.set(4,320)
right_count = 0
left_count = 0
while True :
ret, frame = cap.read()
cv_image_in... | [
"noreply@github.com"
] | ykiseong303.noreply@github.com |
0da101c0b34a4e6865d62f8973d1159415244fd5 | 02b2af5696f83bc0bdc9b24e4ca187413313bea4 | /payment/settings.py | 80534b47672b22b5e8d3f0599b36cf4fa530ec44 | [] | no_license | Jonolsh/djangoPayment | e6051de9b36a27cc6b687635d5b6d7a0e7880600 | 5b654c96bb6b10f436ad98a36997ced431cb6717 | refs/heads/main | 2023-07-15T20:06:22.637176 | 2021-08-21T08:24:42 | 2021-08-21T08:24:42 | 398,502,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,896 | py | """
Django settings for payment project.
Generated by 'django-admin startproject' using Django 3.2.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathlib... | [
"johndoe@example.com"
] | johndoe@example.com |
a64dd6a6a11bc09c23986bfbffcc98651ae24a13 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/AlipayDataPrinterStatusGetModel.py | c43c09a37737dbcb0c58721d4739802f642f64b0 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 2,461 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class AlipayDataPrinterStatusGetModel(object):
def __init__(self):
self._access_token = None
self._client_id = None
self._client_secret = None
self._device_sn = None
... | [
"jiandong.jd@antfin.com"
] | jiandong.jd@antfin.com |
802845374a8d2e914fa600a6b1fc6df2037e16bd | dd586139c891041a4e84fdda3d3e6180b44f3c72 | /TTH/MEAnalysis/gc/hadd_local.py | c74482f68482d098726baa24a1fe6fdccebda835 | [] | no_license | mmeinhard/CodeThesis | e92c734dacad4e3bfc9065b98b8a8ae00908aae3 | 7792c96048e250e0008861062d4f63069204efeb | refs/heads/master | 2023-07-15T02:53:39.503146 | 2021-08-14T16:44:35 | 2021-08-14T16:44:35 | 396,058,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,025 | py | #!/usr/bin/env python
#This script recursively adds root files in directories
# e.g. /a/b/c/output_*.root -> /a/b/c.root
from TTH.MEAnalysis.ParHadd import par_hadd
import glob
import sys
import os, fnmatch
#recurse over the given path
for path, dirs, files in os.walk(sys.argv[1]):
#allow alternative destination
... | [
"marenm@student.ethz.ch"
] | marenm@student.ethz.ch |
8d08f430112106a5799b7d4f02ad5511ef9e4ea2 | 34148545a20f0b9fe07860d1107e6aab2ec1f75d | /info_spider/Scrapy_E_info_V1_01/build/lib/Scrapy_E_info_V1_01/spiders/chinaLuqiao_V1.py | 28d1c2fbc615c7928c830b6777c66d9cac893c7d | [] | no_license | tangzhutao/chf | 9bb9fa9b6ad75f1b587364e1005922c5bdddb4ca | 4b249aee9689d3669306bbf020ad7fbb7e6b92bc | refs/heads/master | 2022-12-03T03:55:17.308231 | 2020-08-21T09:57:47 | 2020-08-21T09:57:47 | 288,969,437 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,774 | py | # -*- coding: utf-8 -*-
import scrapy
import re
import time
from scrapy.utils import request
from Scrapy_E_info_V1_01.items import InfoItem
class ChinaluqiaoV1Spider(scrapy.Spider):
name = 'chinaLuqiao_V1'
allowed_domains = ['news.9to.com']
# start_urls = ['http://news.9to.com/']
base_url = 'http://ne... | [
"18819492919@163.com"
] | 18819492919@163.com |
50629f2f60951afbc01158af0f3bec30d4730cb3 | 2bdc01012fbcf479e841c97508e1765cf9848100 | /3_13_setcomps.py | 59a7f4e2bae25ff83a02528cb2555fdd82602842 | [] | no_license | xushubo/fluent_python | 81a5000185a47fdecd93c33b1ea3419bef36ffa1 | b4b4951a46b78e8c07047e6c1d5375cdb4d9a469 | refs/heads/master | 2021-09-05T12:15:19.408321 | 2018-01-27T12:40:31 | 2018-01-27T12:40:31 | 104,754,039 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | '''新建一个 Latin-1 字符集合,该集合里的每个字符的 Unicode 名字里都有“SIGN”这个单词'''
from unicodedata import name
sign = {chr(i) for i in range(32, 256) if 'SIGN' in name(chr(i), '')}
print(sign)
s = {1, 2, 3, 4}
z = {3, 4, 5, 6}
print(s.symmetric_difference(z))
print(s ^ z)
print(z ^ s) | [
"tmac523@163.com"
] | tmac523@163.com |
22fcddf32c183ea18e65ac064a58a0099dca38de | a8544cedbec52f929e91e617a5f484d987352525 | /src/api/technique/definitions/transitive/definition.py | ef98df74da87a328b0af622356b6db76a2495a0d | [] | no_license | thearod5/Tracer | 75df513ee2500bffc32c29139983990867239369 | 67ee3d7296fb4c788c111387b335ab9804815655 | refs/heads/master | 2023-05-31T13:53:34.640103 | 2021-06-18T01:00:10 | 2021-06-18T01:00:10 | 349,507,401 | 1 | 0 | null | 2021-06-18T01:00:10 | 2021-03-19T17:41:37 | Python | UTF-8 | Python | false | false | 2,787 | py | """
TODO
"""
from typing import List
from api.technique.definitions.direct.technique import DirectTechnique
from api.technique.parser.itechnique_definition import ITechniqueDefinition
from api.technique.variationpoints.aggregation.aggregation_method import (
AggregationMethod,
)
from api.technique.variationpoints.... | [
"vhsalbertorodriguez@gmail.com"
] | vhsalbertorodriguez@gmail.com |
cf126456d54febb62fdd455046e65ad4da51e205 | 26c5f6bb53331f19e2a0ef0797b752aca9a89b19 | /caffe2/python/tutorials/py_gen/Training_a_Model.py | e8719578536b5a72e5522a148d32b4d6238cb093 | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause"
] | permissive | Maratyszcza/caffe2 | 4c68baedbdaf5378f9da0ebf58b232478f689ae4 | f4794ac7629e6825b2c8be99950ea130b69c4840 | refs/heads/master | 2023-06-20T18:23:06.774651 | 2018-03-26T07:41:33 | 2018-03-26T18:22:53 | 122,715,434 | 1 | 0 | Apache-2.0 | 2018-02-24T07:28:21 | 2018-02-24T07:28:21 | null | UTF-8 | Python | false | false | 1,011 | py | #########################################################
#
# DO NOT EDIT THIS FILE. IT IS GENERATED AUTOMATICALLY. #
# PLEASE LOOK INTO THE README FOR MORE INFORMATION. #
#
#########################################################
# coding: utf-8
# ### Dataset Formats
#
# When you look at a model and its datas... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
811001ee821bfc40f0daa9b620bbaf67d35be28f | 163973e9a6bd5a0c422bfc37c9eba09f51f86a96 | /surveygizmo/api/survey.py | 9dca2b7ebaecfd7623d0b16f86a1ad8c351404d9 | [
"LicenseRef-scancode-unknown-license-reference"
] | permissive | hellofresh/SurveyGizmo | 191bdb859409d42599190badcdf415cdd2c38d6a | 998ea795cc74e12db86bc7686ffa8278702090e8 | refs/heads/master | 2023-07-09T10:33:09.710834 | 2021-05-25T12:03:38 | 2021-05-25T12:03:38 | 47,969,483 | 0 | 1 | BSD-3-Clause | 2023-06-16T10:53:54 | 2015-12-14T10:58:20 | Python | UTF-8 | Python | false | false | 888 | py |
from surveygizmo.api import base
class Survey(base.Resource):
resource_fmt_str = 'survey/%(survey_id)s'
resource_id_keys = ['survey_id']
def list(self, **kwargs):
return super(Survey, self).list(**kwargs)
def get(self, survey_id, **kwargs):
kwargs.update({'survey_id': survey_id, })
... | [
"rpkilby@ncsu.edu"
] | rpkilby@ncsu.edu |
56320efd4df4f8e74fa05e6b1494c05cc8fbf300 | c9500ad778b8521aaa85cb7fe3239989efaa4799 | /plugins/palo_alto_cortex_xdr/icon_palo_alto_cortex_xdr/actions/isolate_endpoint/schema.py | 7dd69ef97caa5030f535de5ecdf10180343c94c7 | [
"MIT"
] | permissive | rapid7/insightconnect-plugins | 5a6465e720f114d71b1a82fe14e42e94db104a0b | 718d15ca36c57231bb89df0aebc53d0210db400c | refs/heads/master | 2023-09-01T09:21:27.143980 | 2023-08-31T10:25:36 | 2023-08-31T10:25:36 | 190,435,635 | 61 | 60 | MIT | 2023-09-14T08:47:37 | 2019-06-05T17:05:12 | Python | UTF-8 | Python | false | false | 2,512 | py | # GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT
import insightconnect_plugin_runtime
import json
class Component:
DESCRIPTION = "Isolate or unisolate an endpoint"
class Input:
ENDPOINT = "endpoint"
ISOLATION_STATE = "isolation_state"
WHITELIST = "whitelist"
class Output:
RESULT = "result"
class ... | [
"noreply@github.com"
] | rapid7.noreply@github.com |
c18d33226b8769a2870153f029f63698bbf582c3 | b87f66b13293782321e20c39aebc05defd8d4b48 | /maps/build/mayavi/enthought/mayavi/core/null_engine.py | 7a2d139d5fd772b3197810db19517fa9f064ac91 | [] | no_license | m-elhussieny/code | 5eae020932d935e4d724c2f3d16126a0d42ebf04 | 5466f5858dbd2f1f082fa0d7417b57c8fb068fad | refs/heads/master | 2021-06-13T18:47:08.700053 | 2016-11-01T05:51:06 | 2016-11-01T05:51:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,488 | py | """
A Null engine for Mayavi.
The `NullEngine` class lets you create a full-fledged (almost) Mayavi
engine without the need for it poping up a window.
It is useful for testing or for using VTK as numerical engine. It does
not allow for rendering.
"""
# Author: Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
# Copyright... | [
"fspaolo@gmail.com"
] | fspaolo@gmail.com |
d14066ade435cd095ff9bd332a3426563ab52023 | a3387fbcc918acb55d289ffb61b9fb603203dc11 | /Puzzles/2021-05/purdy_sol.py | ca220a40c3b870fb1379c630b321d0f1513b6474 | [] | no_license | fbhs-cs/purdys-puzzles | 13e970ff909ff2e093b3b9d9777faac47c099913 | 1cf3f9c52677843fad781e46304e1485a91aae58 | refs/heads/master | 2023-08-17T06:28:06.659751 | 2023-08-09T14:45:43 | 2023-08-09T14:45:43 | 212,085,565 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,345 | py | # https://stackoverflow.com/questions/2049582/how-to-determine-if-a-point-is-in-a-2d-triangle
# Basic idea -- get area of triangle ABC, then get areas of ABD, BCD, and ACD and add them. If their sum is the same is ABC, the D must be inside of ABC.
def area(a, b, c):
return abs(0.5*(a[0]*(b[1]-c[1])+b[0]*(c[1]-a... | [
"cpurdy@flourbluffschools.net"
] | cpurdy@flourbluffschools.net |
868d26e6139cacb59be4c08cda180637caaa1c22 | d9aba5a9c2011acfc9e5693481db01df7c6f816b | /app_cbv/views.py | df27e15be4a66fcf80f9263fa99a4239848f348c | [] | no_license | Kaalesson/webinar_drf | 479f0907d1908c8b78ce76ac9d251dfad32964e7 | 3d5f7de8fae5d88f2d510d2aa1bb02c605757cee | refs/heads/master | 2022-04-18T03:23:26.824931 | 2020-04-19T07:42:46 | 2020-04-19T07:42:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,857 | py | import json
from django.core import serializers
from django.views.generic.base import View
from django.views.generic.list import MultipleObjectMixin
from django.views.generic.detail import SingleObjectMixin
from django.http import HttpResponse
from posts_models.models import Post
from app_cbv.forms import PostForm
... | [
"roman.oxenuk@gmail.com"
] | roman.oxenuk@gmail.com |
257cedc5795f405fed2da26aa6941b3872080efa | ee92057a8ebc91ba90d8055a9bece25d24211499 | /kattis/lowest-common-ancestor-of-a-binary-tree-iv/lowest-common-ancestor-of-a-binary-tree-iv.py | 1f9eec47869c00c4a5d00445d7f95caa871ad059 | [] | no_license | KendrickAng/competitive-programming | ce0a4f44f592f295c2f8cd7e854139f18fb8853a | f9768a2020f801b8e4787cc853398b8258a0bf09 | refs/heads/master | 2022-05-29T07:21:32.607089 | 2022-04-24T16:35:14 | 2022-04-24T16:35:14 | 254,402,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 651 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def lowestCommonAncestor(self, root: 'TreeNode', nodes: 'List[TreeNode]') -> 'TreeNode':
want = set(nodes)
def p... | [
"kendrick.wh@outlook.com"
] | kendrick.wh@outlook.com |
eef8ab803b4bc224b1cad11a87afdc4adf310e16 | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part004780.py | b1840bc7bac055d347c1e02723ae759ff69ebc92 | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,935 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
5f2ba76d460fc6e0ce11508e7aa131f3bd5d91a8 | b33ddc7b89d05e19fdeb69593872fd174fab9f4f | /URI-py/2129.py | e19d317ca7e5f9e76f9a91d89125795d6880fcfc | [] | no_license | ThiagoCComelli/URI-Online-Judge | 8b8d609d880342b39ba0d396c0610ecb7e01a5af | 5348f736b2d683f4b857232c22cccb7c1d8b8d65 | refs/heads/master | 2020-07-23T15:14:05.353948 | 2020-03-10T19:42:12 | 2020-03-10T19:42:12 | 207,606,956 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | # -*- coding: utf-8 -*-
instancia = 1
while True:
try:
n = int(input())
s = 1
i = 2
lista = []
lista1 = []
while i <= n:
s *= i
i += 1
print("Instancia %d"%instancia)
instancia += 1
lista.append(str(s))
for i in ... | [
"thiago.comelli@outlook.com"
] | thiago.comelli@outlook.com |
c6155b355152d4d1086fb83a5604c3b17cf973b4 | 99e1a15d8f605be456f17608843c309dd8a3260f | /src/Battle/Attack/Steps/remove_pp_step.py | 98b488b3986495a6c7f6620716ce5a0796cfbabf | [] | no_license | sgtnourry/Pokemon-Project | e53604096dcba939efca358e4177374bffcf0b38 | 3931eee5fd04e18bb1738a0b27a4c6979dc4db01 | refs/heads/master | 2021-01-17T23:02:25.910738 | 2014-04-12T17:46:27 | 2014-04-12T17:46:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 769 | py | from Battle.Attack.Steps.attack_step import AttackStep
from Battle.Attack.HitDelegates.hitself_delegate import HitSelfDelegate
class RemovePPStep(AttackStep):
""" Represents the Remove PP Step in the Attack Process """
def perform(self, user, target, environment):
""" Perform this step """
... | [
"cloew123@gmail.com"
] | cloew123@gmail.com |
59677c65e22cff6907dbc6fdb170ea5e6560d5ed | d87483a2c0b50ed97c1515d49d62c6e9feaddbe0 | /.history/buyTopStocks_20210202221338.py | 6521c8fe240b688235b1831cfb54ed0095b24ba1 | [
"MIT"
] | permissive | HopperKremer/hoptrader | 0d36b6e33922414003cf689fb81f924da076a54b | 406793c10bc888648290fd15c7c2af62cf8c6c67 | refs/heads/main | 2023-06-12T15:51:00.910310 | 2021-07-06T16:15:41 | 2021-07-06T16:15:41 | 334,754,936 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,432 | py | # from excel import OpenExcel
from tda import auth, client
import os, sys
currentdir = os.path.dirname(os.path.realpath(__file__))
parentdir = os.path.dirname(currentdir)
sys.path.append(parentdir)
import config
from selenium import webdriver
import json
DRIVER_PATH = "/home/hopper/chromedriver"
driver = webdriver.... | [
"hopperkremer@gmail.com"
] | hopperkremer@gmail.com |
6ef7f16d0a9d61f86c6b5fdd9aa5e6ba6c961aa6 | cdfc6b79b770b0f8120bdde772b3a3f25a3cb1aa | /src/pulsarvoip/settings.py | 321256abf1c9e6c6349a39c42e0ddb62e561355a | [] | no_license | avkpol/pulsar | fcd47f5f1ad94e346db01867bfa7c1d15c26c8a5 | a3a6997f12a0dfb6eca9929813723a36eea045bc | refs/heads/master | 2021-01-10T14:01:50.576638 | 2016-01-23T20:42:01 | 2016-01-23T20:42:01 | 47,421,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,272 | py | """
Django settings for pulsarvoip project.
Generated by 'django-admin startproject' using Django 1.8.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build pat... | [
"root@localhost.(none)"
] | root@localhost.(none) |
27b0102a936d518b5d3a99821b8bd379f946a615 | 6d33f5f65e211a48df8b5ff1622f9750ae374962 | /project-2-master/website/migrations/0003_auto_20200612_1807.py | b59a3fa21a233471b9bd7f54e691a6f1186b9108 | [] | no_license | mohammednew1999/project-2 | 0cf190550b40e5cb90cb1af466eb9cf09fda997d | 980373e02081cba6cdbdaf11f62bb8818ffe8b55 | refs/heads/master | 2022-11-09T19:56:32.946642 | 2020-06-19T16:19:17 | 2020-06-19T16:19:17 | 273,076,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | # Generated by Django 3.0.3 on 2020-06-12 15:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('website', '0002_auto_20200612_0027'),
]
operations = [
migrations.RemoveField(
model_name='job',
name='image',
... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
89e82e39587e9370be620e2ff5f9be5c2acc71f9 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /iuenzEsAejQ4ZPqzJ_5.py | 97f4733e0b5371b8e19ec4dd126b2c0a0a240586 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 610 | py | """
This is a **reverse coding challenge**. Normally you're given explicit
directions with how to create a function. Here, you must generate your own
function to satisfy the relationship between the inputs and outputs.
Your task is to create a function that, when fed the inputs below, produce the
sample outputs sho... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
6be22e5d4c80b5a55250d03739fe50e7880025b9 | 45c170fb0673deece06f3055979ece25c3210380 | /toontown/safezone/DistributedTreasureAI.py | 2770a6c849035a4cea106f46e2f2f2521f2627d9 | [] | no_license | MTTPAM/PublicRelease | 5a479f5f696cfe9f2d9dcd96f378b5ce160ec93f | 825f562d5021c65d40115d64523bb850feff6a98 | refs/heads/master | 2021-07-24T09:48:32.607518 | 2018-11-13T03:17:53 | 2018-11-13T03:17:53 | 119,129,731 | 2 | 6 | null | 2018-11-07T22:10:10 | 2018-01-27T03:43:39 | Python | UTF-8 | Python | false | false | 1,423 | py | #Embedded file name: toontown.safezone.DistributedTreasureAI
from otp.ai.AIBase import *
from direct.distributed.ClockDelta import *
from toontown.toonbase import ToontownGlobals
from direct.distributed import DistributedObjectAI
class DistributedTreasureAI(DistributedObjectAI.DistributedObjectAI):
def __init__(s... | [
"linktlh@gmail.com"
] | linktlh@gmail.com |
0304c1f7833d124961c9afefa02b257e43263123 | c4feb6227cc68e96c7454ee7682a91f6f6afd164 | /supervised_learning/0x03-optimization/10-Adam.py | 5bc85b9653a0d029547beba99c525bacc3833130 | [] | no_license | Karenahv/holbertonschool-machine_learning | 4b7ae5ad4cd1f06f8bae87a509d11b5c8069f8c9 | 884db3d605c2d0eee968f03ce7f525f2a557f261 | refs/heads/master | 2022-12-24T16:17:34.753055 | 2020-09-30T02:09:08 | 2020-09-30T02:09:08 | 255,319,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | #!/usr/bin/env python3
"""Adam Optimization algorithm tf"""
import tensorflow as tf
def create_Adam_op(loss, alpha, beta1, beta2, epsilon):
"""Adam Optimization algorithm tf"""
return (tf.train.AdamOptimizer(learning_rate=alpha,
beta1=beta1, beta2=beta2,
... | [
"you@example.com"
] | you@example.com |
8d5db242ef9162a0ad9be8390ea3e6f54acef215 | 965fe92b03b37d2e6fa700281c4ef383fb104ada | /sciencebeam_trainer_delft/sequence_labelling/tools/install_models.py | ce91c1cee4d59f190c4138263475aa26058770a5 | [
"MIT"
] | permissive | elifesciences/sciencebeam-trainer-delft | 1591bebb7f5b9ed178329f4e9e02a9d893ab228d | 2413fe7f0801869208741e4ab6c4096db8d53b5e | refs/heads/develop | 2022-05-20T21:55:13.210432 | 2022-03-28T17:32:31 | 2022-03-28T17:32:31 | 192,557,708 | 5 | 1 | MIT | 2022-03-28T17:33:14 | 2019-06-18T14:34:50 | Python | UTF-8 | Python | false | false | 6,052 | py | import argparse
import logging
import os
import pickle
from pathlib import Path
from shutil import rmtree
from typing import Dict, List
from sciencebeam_trainer_delft.utils.misc import parse_dict, merge_dicts
from sciencebeam_trainer_delft.utils.io import (
get_compression_wrapper,
FileContainer,
open_file... | [
"noreply@github.com"
] | elifesciences.noreply@github.com |
1cde8882a2a466f8d468ea50b918d236f0b5300f | 14b44aa2b73fb3df08c9c085219ebfd320d5d63a | /counter_service/DockerImageCreator.py | 7a4355e1e2ea308b82438c9ad92d2640aa4df143 | [] | no_license | sande2jm/CI-CD-Service | c46f95f380872e9aca02d5c5e5a88578ba6e88b0 | 34535e69a3c39a78cd1d1ca785587d5e78a03580 | refs/heads/master | 2020-03-27T02:16:00.843764 | 2018-08-25T00:28:32 | 2018-08-25T00:28:32 | 145,778,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,258 | py | from subprocess import call
class DockerImageCreator():
def __init__(self):
self.directory_path = "?"
self.serviceName = 'counter_service'
self.repository = 'https://sande2jm@github.com/sande2jm/workflow_configuration.git'
self.cmdList = {'build image': None,
'push image': None }
self.version_filepat... | [
"sande2jm@gmail.com"
] | sande2jm@gmail.com |
44b964b89723e25678bfac030bab339c5473d12a | 915e056a1b633fd693eebeaa4b5ecedbe31c52e4 | /conftest.py | e797fba98d0b3d5bc3418dd82468cbb7cb30ea07 | [
"Apache-2.0"
] | permissive | mszarski/robot | 1336b8d776c08ba16779f8c3d485f7850ba03316 | 5d6e8b591963cf5bfe45c95b7b431e8b312ab5e0 | refs/heads/master | 2023-07-11T08:20:56.669397 | 2021-08-20T12:28:20 | 2021-08-20T12:28:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,943 | py | import ivy
import pytest
import ivy.numpy
import ivy.jax
import ivy.tensorflow
import ivy.torch
import ivy.mxnd
from typing import List, Dict
import itertools
from ivy_tests import helpers
FW_STRS = ['numpy', 'jax', 'tensorflow', 'tensorflow_graph', 'torch', 'mxnd']
def get_test_devices() -> Dict[ivy.Framework, Lis... | [
"daniel.lenton11@imperial.ac.uk"
] | daniel.lenton11@imperial.ac.uk |
2bb754e080d87f35ef161a5936456a0b5c889146 | 2b502aae9bc33bac6c4b28d1e702591f2cbed690 | /terrascript/circonus/d.py | c5e3b67ae0afa9dd35360d2680eab949aa494bc5 | [
"Python-2.0",
"BSD-2-Clause"
] | permissive | LeeroyC710/python-terrascript | 4c8fbe032e9b7dd8844d962f888c28f87a26ff77 | b8f3c3549b149c124e3e48e0cea0396332ad1a1d | refs/heads/master | 2020-12-28T03:58:04.502969 | 2020-01-19T21:46:52 | 2020-01-19T21:46:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | # terrascript/circonus/d.py
import terrascript
class circonus_account(terrascript.Data):
pass
class circonus_collector(terrascript.Data):
pass
| [
"markus@juenemann.net"
] | markus@juenemann.net |
490af94ef458e80333f925dec5be122d96e40d53 | 2d9cedf0ed36dadca1ca2f696290c8261ef7851f | /000006/DataJoint/DJ-NWB-Economo-2018/pipeline/behavior.py | 7bb2e62796665945b1f735a3871f0e3bed1d8aea | [
"MIT",
"Apache-2.0"
] | permissive | dandi/example-notebooks | 4365285697d41fd383110b5af5c30860d72fad22 | be3a8b345dfa9c0145692a30087647bc47f865e8 | refs/heads/master | 2023-08-30T20:41:41.323355 | 2023-08-16T21:21:12 | 2023-08-16T21:21:12 | 231,629,025 | 5 | 8 | Apache-2.0 | 2023-09-12T19:53:10 | 2020-01-03T16:55:02 | Jupyter Notebook | UTF-8 | Python | false | false | 605 | py | '''
Schema of behavioral information.
'''
import re
import os
from datetime import datetime
import sys
import numpy as np
import scipy.io as sio
import datajoint as dj
import h5py as h5
from . import utilities, acquisition, analysis
schema = dj.schema(dj.config['custom'].get('database.prefix', '') + 'behavior')
@... | [
"ben.dichter@gmail.com"
] | ben.dichter@gmail.com |
fb039eaf9df6671dafaff1cd53de5f7fe1230764 | 2481cde6506743565dff2b405a2396daf208ab3e | /src/ranking/migrations/0068_auto_20220522_1139.py | d2f21b149b0871c941a73ecc32a502daabc59c77 | [
"Apache-2.0"
] | permissive | aropan/clist | 4819a3036d179595e4df8c646aff2ed593b9dad3 | 5c805b2af71acee97f993f19d8d4e229f7f5b411 | refs/heads/master | 2023-08-31T11:15:17.987776 | 2023-08-27T21:51:14 | 2023-08-27T21:52:16 | 187,111,853 | 276 | 35 | Apache-2.0 | 2023-09-06T18:42:53 | 2019-05-16T22:57:03 | Python | UTF-8 | Python | false | false | 466 | py | # Generated by Django 3.1.14 on 2022-05-22 11:39
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('ranking', '0067_auto_20220514_1748'),
]
operations = [
migrations.RemoveField(
model_name='module',
name='has_accounts_info... | [
"nap0rbl4@gmail.com"
] | nap0rbl4@gmail.com |
b939786deb554e3bd4a972736f0169755a079824 | 5f5c052aa6a42e7492daf940c9561f5ce84ecb1c | /geatpy/source-code/templets/awGA_templet.py | 8db23bc65aa142fa6c7f217fc9cdac5cf2e4bc6b | [] | no_license | siuyincheung/geatpy | 8b343087c506cef39a7dc377a667ae9f1392acd4 | 48d41c8835004d9b0c36060881ed9cfb07483f1e | refs/heads/master | 2020-03-27T08:15:57.973576 | 2018-08-27T00:21:00 | 2018-08-27T00:21:00 | 146,237,904 | 1 | 0 | null | 2018-08-27T02:39:41 | 2018-08-27T02:39:41 | null | UTF-8 | Python | false | false | 5,445 | py | # -*- coding: utf-8 -*-
import numpy as np
import geatpy as ga # 导入geatpy库
import time
def awGA_templet(AIM_M, AIM_F, PUN_M, PUN_F, ranges, borders, precisions, maxormin, MAXGEN, MAXSIZE, NIND, SUBPOP, GGAP, selectStyle, recombinStyle, recopt, pm, drawing = 1):
"""
awGA_templet.py - 基于awGA的多目标优化编程模板
语法:
... | [
"jazzbin@geatpy.com"
] | jazzbin@geatpy.com |
7a6e8a9cc8568967a2e559fb21c2f931c3151863 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/43/usersdata/64/14191/submittedfiles/mediaLista.py | bd0fc8aa030b09fbb9672685bc889d7ec9e5f44a | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | # -*- coding: utf-8 -*-
from __future__ import division
n = input("Digite a quantidade de valores: ")
a = []
i = 1
media = 0
while i<=n:
a.append(input("Digite o valor da lista: "))
media = sum(a)/n
i = i + 1
print(("2.%f" %a[0])
print (media) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
9689b853fc20ed4974723099e3aa75aa73c7a94f | bcc7e80589acfb08924fa3650c56229eadb0b686 | /root/migrations/0004_auto_20170907_1756.py | fa28e79486c37e4de81709e8913b02f242d06f82 | [
"MIT"
] | permissive | lubchenko05/django_test | 91146f10e2ed205437ca2c7db8db64b40aae8772 | 3b07813e2e9abb68ee568dd62d312b3e6b543e84 | refs/heads/master | 2021-01-23T17:44:13.173264 | 2017-09-07T19:39:15 | 2017-09-07T19:39:15 | 102,777,274 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-09-07 17:56
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('root', '0003_auto_20170907_1755'),
]
operations = [
migrations.RenameField(
... | [
"lubchenko05@gmail.com"
] | lubchenko05@gmail.com |
5b029b43b980a90f876e059544e08e5d6873dc90 | 4b68243d9db908945ee500174a8a12be27d150f9 | /pogoprotos/data/telemetry/rpc_socket_response_telemetry_pb2.py | de2dd50a00da9e38e948f8764f1ed834eee90cfd | [] | no_license | ykram/pogoprotos-py | 7285c86498f57dcbbec8e6c947597e82b2518d80 | a045b0140740625d9a19ded53ece385a16c4ad4a | refs/heads/master | 2020-04-20T10:19:51.628964 | 2019-02-02T02:58:03 | 2019-02-02T02:58:03 | 168,787,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 3,327 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: pogoprotos/data/telemetry/rpc_socket_response_telemetry.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
... | [
"mark@noffle.net"
] | mark@noffle.net |
81236ad98965e7fb469904c3265f320f6fef3a0a | a8248250b783d8b034110d26016f75dea53ca35a | /pypsi/commands/xargs.py | 3795c59d8419c15aadb54531790824d21be0d958 | [
"BSD-3-Clause"
] | permissive | jnashold/pypsi | ce5daf81e8b516e5e43fed8c7838120de53ad26f | d480d6377182d649ed342f6bcc67c33b73e4f1e1 | refs/heads/master | 2020-04-03T11:47:19.971869 | 2014-06-13T20:58:04 | 2014-06-13T20:58:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,520 | py |
from pypsi.base import Command, PypsiArgParser
import sys
import argparse
XArgsUsage = """{name} [-h] [-I repstr] command"""
class XArgsCommand(Command):
'''
Execute a command for each line of input from :data:`sys.stdin`.
'''
def __init__(self, name='xargs', topic='shell', **kwargs):
self.... | [
"meily.adam@gmail.com"
] | meily.adam@gmail.com |
2c87277c3fe7d5a97fb11322f4f3e8b02f18286b | 4e5141121d8b4015db233cbc71946ec3cfbe5fe6 | /samples/basic/crud/gnmi/models/cisco-ios-xr/Cisco-IOS-XR-ethernet-lldp-cfg/gn-delete-xr-ethernet-lldp-cfg-10-ydk.py | 422f102411d15f82fa3282f22a5170de88122b0a | [
"Apache-2.0"
] | permissive | itbj/ydk-py-samples | 898c6c9bad9d6f8072892300d42633d82ec38368 | c5834091da0ebedbb11af7bbf780f268aad7040b | refs/heads/master | 2022-11-20T17:44:58.844428 | 2020-07-25T06:18:02 | 2020-07-25T06:18:02 | 282,382,442 | 1 | 0 | null | 2020-07-25T06:04:51 | 2020-07-25T06:04:50 | null | UTF-8 | Python | false | false | 2,688 | py | #!/usr/bin/env python
#
# Copyright 2016 Cisco Systems, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"deom119@gmail.com"
] | deom119@gmail.com |
657c0b94772a99cfc7f1bd6b61435581ae75725c | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /ACL_PyTorch/contrib/cv/detection/FOTS/FOTS_postprocess.py | 4fd136fe05dcca70e28aeebd1f0374133505db99 | [
"Apache-2.0",
"GPL-1.0-or-later",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 2,862 | py | # Copyright 2022 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"liuzhuheng@huawei.com"
] | liuzhuheng@huawei.com |
3516ad539063e8ff67e0bb14b76e8a42e5a5b2eb | 9b30b51a919ca531a836efa230b2bacfdf9b5c70 | /app.py | dc8db0f050a3b49a178b8cbc0715a16d9820964c | [] | no_license | bharathjinka09/flask-realtime-dashboard | 2c6ed52fb775040e0843f5d0eba2ba3274d1a14d | e963ee205863495635ab6c698de0fa7645a25c50 | refs/heads/master | 2022-11-30T04:16:13.461812 | 2020-08-05T14:26:45 | 2020-08-05T14:26:45 | 285,311,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,065 | py | from flask import Flask, render_template, request
from pusher import Pusher
app = Flask(__name__)
pusher = Pusher(app_id=u'1050289', key=u'8c3492c4c6666ee54c33', secret=u'e393c3c007e4945da628', cluster=u'ap2')
@app.route('/')
def index():
return render_template('index.html')
@app.route('/dashboard')
def dashboard()... | [
"bharathjinka09@gmail.com"
] | bharathjinka09@gmail.com |
013fa03087e0d2197e9d15100d78ab20d480dce7 | bf15a97a377bc49495a8c278cd247387a08361fd | /intersight/models/vnic_eth_network_policy_ref.py | 67418a69847320cddf71c347b40d31a6afb946a9 | [
"Apache-2.0"
] | permissive | movinalot/intersight-python | ffcb434e5fdf3f6e857dd967c794a64b2d2e05de | cdc3b082d75eac93b74029ab610e16d3008fdd8c | refs/heads/master | 2020-12-18T15:46:06.780834 | 2019-10-29T00:39:49 | 2019-10-29T00:39:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,714 | py | # coding: utf-8
"""
Intersight REST API
This is Intersight REST API
OpenAPI spec version: 1.0.9-961
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
class VnicEthNetworkPolicyRef(object):
"""
NOTE: Th... | [
"ategaw@cisco.com"
] | ategaw@cisco.com |
8babf3a3d1553cfe9b0d3f343311bba9ce05fd57 | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r8/Gen/DecFiles/options/13266006.py | d9ba20eadbb64604ed1b5f1bed42ff0502c3c6b0 | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,960 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r8/Gen/DecFiles/options/13266006.py generated: Fri, 27 Mar 2015 15:48:13
#
# Event Type: 13266006
#
# ASCII decay Descriptor: {[[B_s0]nos -> (D_s- => K+ K- pi-) pi+ pi- pi+]cc, [[B_s0]os -> (D_s+ => K- K+ pi+) pi- pi+ pi-]cc}
#
from Gaudi.Configuration import *
importOptions( "$... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
55d74c22f4a72511c7ff700bbe8115ece19dee85 | 358aaf68f3c60ebbbd86b3bc66d4e6c098bcb39e | /fonts/svga141_8x16.py | dda0b24ea4f067938a52a5ce2b3eb9946a955e3b | [
"MIT"
] | permissive | ccccmagicboy/st7735_mpy | d2de0046abd81978d5176dace45a40758377af82 | b15f1bde69fbe6e0eb4931c57e71c136d8e7f024 | refs/heads/master | 2022-08-28T23:18:04.353733 | 2020-05-28T04:19:21 | 2020-05-28T04:19:21 | 254,869,035 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,755 | py | """converted from ..\fonts\SVGA141__8x16.bin """
WIDTH = 8
HEIGHT = 16
FIRST = 0x20
LAST = 0x7f
_FONT =\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x18\x3c\x3c\x3c\x18\x18\x18\x00\x18\x18\x00\x00\x00\x00'\
b'\x00\x66\x66\x66\x24\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x... | [
"cuiwei_cv@163.com"
] | cuiwei_cv@163.com |
55f2ec00b233606f261eb492176f308e1725b9ae | 8cca481c8dd508012aa794e2f9a07e11c3706a87 | /presidio-analyzer/tests/mocks/__init__.py | 3c5c37a7be8f1f7edfdd06c11f5ac8c83c171b4a | [
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"BSD-3-Clause",
"Unlicense",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-warranty-disclaimer",
"CNRI-Python",
"MIT",
"LicenseRef-scancode-secret-labs-2011",
"LicenseRef-scancode-generic-cla"
] | permissive | microsoft/presidio | 174472891e241e292982eee26a666d71ca263d42 | 3effc1467b8714714d5112ef7b627889507ea83d | refs/heads/main | 2023-08-15T20:14:00.962803 | 2023-08-14T19:13:49 | 2023-08-14T19:13:49 | 132,129,752 | 2,092 | 412 | MIT | 2023-09-13T18:17:58 | 2018-05-04T11:08:58 | Python | UTF-8 | Python | false | false | 219 | py | from .nlp_engine_mock import NlpEngineMock
from .app_tracer_mock import AppTracerMock
from .recognizer_registry_mock import RecognizerRegistryMock
__all__ = ["NlpEngineMock", "AppTracerMock", "RecognizerRegistryMock"]
| [
"noreply@github.com"
] | microsoft.noreply@github.com |
afc9478b33f0384681f7c30005fc5f311c6f9d5e | df042e5934ae53a50396593585f33ec94454d7b0 | /ex5.py | e3a39eb398da55edeac87daf6cfa00739b88a0da | [] | no_license | ialeksandrov/Python | 897649bb6784dbf87da9752281d7e52c0c7c0bd8 | ea6f998cc42c65e15f3925a73729079caa829699 | refs/heads/master | 2020-12-07T02:16:15.848599 | 2017-06-28T14:52:34 | 2017-06-28T14:52:34 | 95,467,870 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | my_name = 'Zed A. Shaw'
my_age = 35 # not a lie
my_height = 74 # inches
my_weight = 180 # lbs
my_eyes = 'Blue'
my_teeth = 'White'
my_hair = 'Brown'
print "Lets talk about %s." % my_name
print "He`s %d inches tall." % my_height
print "He`s %d punds heavy." % my_weight
print "Actually that`s not too heavy."
print "He`s ... | [
"ialeksandrov1990@abv.bg"
] | ialeksandrov1990@abv.bg |
b29e5f3d7ee4b2ab0a4763919ec99367e13d3e68 | 60834953e6bfdd8469996f09b9aa290319afc0e3 | /uf/task/__init__.py | dcc739cef9676a653e24b51ae0910f745bc365f6 | [
"Apache-2.0"
] | permissive | zoukaifa/unif | e8c4913a250da597ebe8e911b87ee52c2ab94958 | a6c9c94f60a7b906d9bd410bb446c4e3f2540ffc | refs/heads/master | 2023-06-18T21:28:24.770145 | 2021-07-18T13:55:50 | 2021-07-18T13:55:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 931 | py | # coding:=utf-8
# Copyright 2021 Tencent. 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 applic... | [
"luv_dusk@163.com"
] | luv_dusk@163.com |
e92ac7af4076b062a628790607331d4861bdc044 | 0fb0dba210ff0f63515c464d7acc95ae32d7603c | /Application/Change Time Zone and Run a .bat and .exe File from Network Location/change-time-zone-and-run-a-bat-and-exe-file-from-network-location.py | bd48285676c17116d3f17432047e38abff7dabb4 | [] | no_license | slad99/pythonscripts | 7cbe6b8bb27c8c06e140c46e7c8cf286cbc56d8e | 4e0ebb023899a602cb041ef6f153fd3b7ab032e9 | refs/heads/master | 2022-01-04T21:49:10.486758 | 2019-06-28T14:29:28 | 2019-06-28T14:29:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,811 | py | name='"Syria Standard Time"' #provide the name of the time zone to be changed
#If name is in string, enclose it in '" "'- eg:'"Syria Standard Time"'
#If name is in String+number, enclose it in " " - eg: "UTC+13"
Filepath=r'\\Audi\c\Users\audiR7\Desktop' ##Provide the network share file path
share_use... | [
"noreply@github.com"
] | slad99.noreply@github.com |
bd4b8d8a77f5abb07d761ccd0a8f0be9e2964e06 | 923ae97768992cd8e183133a64cd92a1e423b1a4 | /app/equity/screener_eqs/equity_stats.py | 60ac3138a8c07348582ab5de8f49c111f50b78f2 | [] | no_license | webclinic017/finance_hub | 618cc55110842f63c67127e8cbf06743fb360133 | c61a2170eef444eb77ac7f1e1363173d31f19a16 | refs/heads/master | 2022-01-01T00:26:21.992825 | 2018-02-12T22:58:25 | 2018-02-12T22:58:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,712 | py | import sys
sys.path.append("/home/ubuntu/workspace/finance")
sys.path.append("/usr/local/lib/python2.7/dist-packages")
import datetime
import re, os, string, json, types, pdb
import pandas as pd
import numpy as np
import requests
from app import app
from app.utils.db_utils import DBHelper
from bs4 import BeautifulSoup
... | [
"mccarviks@gmail.com"
] | mccarviks@gmail.com |
b6caeb01e9fc8fe3a5608d1a5a0cea804283620e | a16feb303b7599afac19a89945fc2a9603ae2477 | /Simple_Python/standard/doctest/doctest_14.py | 941442b0f2e103cb3fa96e6818128b466d90e799 | [] | no_license | yafeile/Simple_Study | d75874745ce388b3d0f9acfa9ebc5606a5745d78 | c3c554f14b378b487c632e11f22e5e3118be940c | refs/heads/master | 2021-01-10T22:08:34.636123 | 2015-06-10T11:58:59 | 2015-06-10T11:58:59 | 24,746,770 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | #! /usr/bin/env/python
# -*- coding:utf-8 -*-
"""Tests can appear in any docstring within the module.
Module-level tests cross class and function boundaries.
>>> A('a') == B('b')
False
"""
class A(object):
"""Simple class.
>>> A('instance_name').name
'instance_name'
"""
def __init__(self,name):
... | [
"zhuzhulang@126.com"
] | zhuzhulang@126.com |
71c957d58b0b858f9dc446e5717fdd8d635d2104 | 52be02c1ddf1610356d4818a5fd06e8d9ee98a73 | /algorithms/gps/algorithm/policy/tf_policy.py | bd581a1e71abe192c25b05bf7e8fd20582e8e2b1 | [] | no_license | DengYuelin/multiple_assembly_old | f32e34a2e6633c99639489fb02b2e28edb1db180 | 696c55de23bb217b4471324bf3c3246a1bfcd5d8 | refs/heads/master | 2020-12-22T07:12:06.749844 | 2020-02-03T18:27:39 | 2020-02-03T18:27:39 | 236,664,915 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,965 | py | import pickle
import os
import uuid
import numpy as np
import tensorflow as tf
from gps.algorithm.policy.policy import Policy
class TfPolicy(Policy):
"""
A neural network policy implemented in tensor flow. The network output is
taken to be the mean, and Gaussian noise is added on top of it.
U = net.... | [
"2539722953@qq.com"
] | 2539722953@qq.com |
b74a9b32a04ebaa820dc2c4a2920fe845e39dfed | 07ecc53b5be6b1a34914a0e02265e847f3ac1a65 | /Python/Back Track/126_Hard_单词接龙II.py | 6768248c554e77dae65689c2c4c7cf45f592ba66 | [] | no_license | JasmineRain/Algorithm | 764473109ad12c051f5337ed6f22b517ed9bff30 | 84d7e11c1a01b1994e04a3ab446f0a35eb3d362a | refs/heads/master | 2023-03-14T00:39:51.767074 | 2021-03-09T12:41:44 | 2021-03-09T12:41:44 | 289,603,630 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,425 | py | from collections import defaultdict, deque
from typing import List
class Solution:
# def findLadders(self, beginWord: str, endWord: str, wordList: List[str]) -> List[List[str]]:
# situations = []
# ans = []
# min_length = len(wordList)
# flag = [False] * len(wordList)
#
# ... | [
"530781348@qq.com"
] | 530781348@qq.com |
e98c6affc7deb93b579e0bd0db54454aadddac23 | f256c98a3b3b6d79ad666c1631be6b6a7a702636 | /算法/滑动窗口万能模版/至多包含 K 个不同字符的最长子串.py | 6aa0f601cc492ebe107bff03d2826771ceafa9e4 | [] | no_license | Codewyf-top/python-learning | 87e1ec227da465f353c540b17a1e366e6ca714fa | afb5f7ac6689780892130cfd50c07c9f2cb27cbe | refs/heads/master | 2023-07-11T16:15:03.196402 | 2021-08-15T22:29:40 | 2021-08-15T22:29:40 | 255,283,790 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 822 | py | # -*- coding: utf-8 -*-
"""
@Time : 04/12/2020 10:35
@Auth : Codewyf
@File :至多包含 K 个不同字符的最长子串.py
@IDE :PyCharm
@Motto:Go Ahead Instead of Heasitating
"""
class Solution:
def lengthOfLongestSubstringKDistinct(self, s: str, k: int) -> int:
from collections import defaultdict
lookup = defaultdict(int)... | [
"1090187390@qq.com"
] | 1090187390@qq.com |
06af30c9f731602907247521c2c51b2f90529315 | df716b2868b289a7e264f8d2b0ded52fff38d7fc | /tests/formatters/fseventsd.py | ede435e5c6fe75ff24430b29c96281b4f6fc6ff9 | [
"Apache-2.0"
] | permissive | ir4n6/plaso | 7dd3cebb92de53cc4866ae650d41c255027cf80a | 010f9cbdfc82e21ed6658657fd09a7b44115c464 | refs/heads/master | 2021-04-25T05:50:45.963652 | 2018-03-08T15:11:58 | 2018-03-08T15:11:58 | 122,255,666 | 0 | 0 | Apache-2.0 | 2018-02-20T21:00:50 | 2018-02-20T21:00:50 | null | UTF-8 | Python | false | false | 971 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""Tests for the fseventsd record event formatter."""
from __future__ import unicode_literals
import unittest
from plaso.formatters import fseventsd
from tests.formatters import test_lib
class FseventsdFormatterTest(test_lib.EventFormatterTestCase):
"""Tests for the fse... | [
"onager@deerpie.com"
] | onager@deerpie.com |
7c00d97b441ec38aae554fd8b6aa9ece59a945fb | 67ffddfd7e0ace7490c5d52325838b82644eb458 | /samsung_swea/intermediate/swea_4828.py | 8c8e194b3513abc1136fb48690dfac8781030073 | [] | no_license | ckdrjs96/algorithm | 326f353c5aa89a85ec86ce1aabb06cde341193ce | d5d09b047808b6fc2eeaabdbe7f32c83446b4a1b | refs/heads/main | 2023-08-20T05:12:50.671798 | 2021-10-23T04:20:05 | 2021-10-23T04:20:05 | 324,481,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | ## Bubble sort
def bubble_sort(length,arr):
for i in range(length-1,0,-1):
for j in range(i):
if arr[j] > arr[j+1]:
arr[j],arr[j+1]=arr[j+1],arr[j]
return arr
#T=1
T = int(input())
for test_case in range(1, T + 1):
length=int(input())
arr=list(map(int,input().split(... | [
"ckdrjs96@gmail.com"
] | ckdrjs96@gmail.com |
730e5123f88fd3f69026ea5170652c213985e902 | 1dcd99bb96d9c51b2b561e7c2e54615cf2bc5ced | /Question/190130/test2.py | c871fd2309810405fac0ac5b9cca53666dcead44 | [] | no_license | dongsik93/HomeStudy | 62bbcad93be49ed396fe9d50e840f921bb751d4e | 3a28ff8c0b522a546ea2ed07c939f49bac3699c7 | refs/heads/master | 2020-04-15T02:12:36.615830 | 2019-04-05T14:31:10 | 2019-04-05T14:31:10 | 164,306,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | # class Dele():
# def __init__ (self, **kargs):
# self.kargs = kargs
# def gogo(self):
# for k,v in self.kargs.items():
# if(len(v) <= 5):
# del self.kargs[k]
# return self.kargs
# fruit = Dele(사과="apple",바나나="banana")
# print(fruit.gogo())
class Fr... | [
"ehdtlr9376@naver.com"
] | ehdtlr9376@naver.com |
bddcc803a12f594f0b9490f5b5742354b8c5db80 | 20a9c98bb59304dd406353c0b5c675801081f056 | /ExcelCalculate-with-Django/ExcelCalculate/calculate/views.py | 1fe1617dca40086ec61fe515e5305fa1f388ab8c | [] | no_license | jungeun919/Django | b585fdbf75c973b7f57dc13320db5ab9f50fd10f | 71fe0449b7b849e7ea66a78d38104fa18d5a95f3 | refs/heads/master | 2023-07-21T13:49:36.632867 | 2021-09-04T14:39:42 | 2021-09-04T14:39:42 | 323,032,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,768 | py | from django.shortcuts import render, redirect
from django.http import HttpResponse
import pandas as pd
from datetime import datetime
from .models import *
# Create your views here.
def calculate(request):
file = request.FILES['fileInput']
# 파일 저장하기
origin_file_name = file.name
user_name = request.sess... | [
"renee8369@likelion.org"
] | renee8369@likelion.org |
45d2baa545df614395663f9299fa73660c2b2144 | d4093670913e1e77f896a39af226a241842c5fbc | /dataset/imdb.py | 4d3e808f28fbb9cfc610d2428cd3979e77dc8d5d | [] | no_license | ChuanleiGuo/SSD_Net | ece80251fc19ef311636a2c77c543579ee1a0423 | 0b632e90931e3aad38f2d93339952ac6c5ff79ca | refs/heads/master | 2021-09-04T20:33:16.090057 | 2018-01-22T07:17:38 | 2018-01-22T07:17:38 | 104,025,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,984 | py | # -*- coding: utf-8 -*-
import os
import numpy as np
class Imdb(object):
"""
Base class for dataset loading
# Parameters
name: str
name of dataset
"""
def __init__(self, name):
self.name = name
self.classes = []
self.num_classes = 0
self.image_set_index ... | [
"chuanleiguo@gmail.com"
] | chuanleiguo@gmail.com |
2afe47fd4744b31114f59535086e8495d93f2108 | c7d91529db199322e39e54fe4051a75704ea843e | /竞赛/198场/换酒问题.py | 36be138d140252fd2a79a357886e2cea3edc3d40 | [] | no_license | 2226171237/Algorithmpractice | fc786fd47aced5cd6d96c45f8e728c1e9d1160b7 | 837957ea22aa07ce28a6c23ea0419bd2011e1f88 | refs/heads/master | 2020-12-26T07:20:37.226443 | 2020-09-13T13:31:05 | 2020-09-13T13:31:05 | 237,431,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | class Solution(object):
def numWaterBottles(self, numBottles, numExchange):
"""
:type numBottles: int
:type numExchange: int
:rtype: int
"""
if numExchange>numBottles:
return numBottles
cnt=numBottles # 一次喝完所有瓶
while numBottles>=numExchang... | [
"2226171237@qq.com"
] | 2226171237@qq.com |
3cf0b9388acb7a74ee2c8f455a24d5645b67cfd6 | ded10c2f2f5f91c44ec950237a59225e8486abd8 | /.history/2/path_integral_naive_sampling_20200419015655.py | a6b940f0ba4278a1c6884a485cc85e53c25021d9 | [] | no_license | jearistiz/Statistical-Physics-Projects | 276a86407b32ded4e06b32efb2fadbd8eff8daed | d9c5b16a50856e148dc8604d92b6de3ea21fc552 | refs/heads/master | 2022-11-05T03:41:23.623050 | 2020-06-28T06:36:05 | 2020-06-28T06:36:05 | 254,909,897 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,098 | py | # -*- coding: utf-8 -*-
from __future__ import division
import os
import numpy as np
import matplotlib.pyplot as plt
from time import time
import pandas as pd
# Author: Juan Esteban Aristizabal-Zuluaga
# date: 202004151200
def rho_free(x,xp,beta):
"""Uso: devuelve elemento de matriz dsnsidad para el caso de una ... | [
"jeaz.git@gmail.com"
] | jeaz.git@gmail.com |
bcadd443cd0d9a1dc93142ea5c9b19450c98dde2 | a4deea660ea0616f3b5ee0b8bded03373c5bbfa2 | /concrete_instances/register-variants/cmovpeq_r64_r64/instructions/cmovpeq_r64_r64/cmovpeq_r64_r64.gen.vex.py | da67fb87e1152638aada2e933b8f1cb059b3356f | [] | no_license | Vsevolod-Livinskij/x86-64-instruction-summary | 4a43472e26f0e4ec130be9a82f7e3f3c1361ccfd | c276edab1b19e3929efb3ebe7514489f66087764 | refs/heads/master | 2022-02-02T18:11:07.818345 | 2019-01-25T17:19:21 | 2019-01-25T17:19:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | import angr
proj = angr.Project('./instructions/cmovpeq_r64_r64/cmovpeq_r64_r64.o')
print proj.arch
print proj.entry
print proj.filename
irsb = proj.factory.block(proj.entry).vex
irsb.pp() | [
"sdasgup3@illinois.edu"
] | sdasgup3@illinois.edu |
ca1cf3a33e49903807f26cd1e9bf7bf47a970380 | d46cad930fc1174eded859ca9cb51ce17f17fbf6 | /Fundamentals/Mid-Exam-Preparation/Dec-2019-01-disneyland-journey.py | 1700e3191005c51e0b7a74d38c5396e85e7aa422 | [] | no_license | AntoniyaV/SoftUni-Exercises | 66f79fee065f510748350d629838db9291c71f91 | d7bd9ae6aa511b705a3b2e86018f6f79d4f7ab2b | refs/heads/main | 2023-07-09T10:49:29.456647 | 2021-08-13T18:59:12 | 2021-08-13T18:59:12 | 317,540,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 547 | py | journey_cost = float(input())
months = int(input())
saved_money = 0
for month in range(1, months + 1):
if not month == 1 and not month % 2 == 0:
saved_money -= 0.16 * saved_money
if month % 4 == 0:
bonus = 0.25 * saved_money
saved_money += bonus
saved_money += 0.25 * journey_cost... | [
"antoniya.vladimirova@gmail.com"
] | antoniya.vladimirova@gmail.com |
f00fe3c0bcd52540243acb352de7d91f49e3ccda | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_lightens.py | 63c52972ea8d3d8914a23e132baa694c5beff6ce | [
"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 | 245 | py |
from xai.brain.wordbase.verbs._lighten import _LIGHTEN
#calss header
class _LIGHTENS(_LIGHTEN, ):
def __init__(self,):
_LIGHTEN.__init__(self)
self.name = "LIGHTENS"
self.specie = 'verbs'
self.basic = "lighten"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
bf17a1475e5f1e7bb21eceabf09aebd90c2a6fbc | 37da8476c91c99a06251f7c394426d6a2024b228 | /part2/office_space/setup.py | 99ae96e3c0453a934b80f1f11ce7516d27cf71d0 | [] | no_license | codemation/eco | dc411bd50004ec32ec9a4e98dfd29d522b30b110 | a8befea4c2988d39393f7e890d2ce41cc38442b0 | refs/heads/main | 2022-12-28T03:49:10.513259 | 2020-10-12T07:47:46 | 2020-10-12T07:47:46 | 302,462,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,221 | py | def run(server):
import os
import uvloop, asyncio
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
server.event_loop = asyncio.get_event_loop()
try:
cmddirPath = None
realPath = None
with open('./.cmddir', 'r') as cmddir:
for line in cmddir:
... | [
"joshjamison1@gmail.com"
] | joshjamison1@gmail.com |
aeb043e0851fc98a93b942e06dd5b42e2e37a7c0 | 4bb1a23a62bf6dc83a107d4da8daefd9b383fc99 | /contests/abc113/d.py | 4de619a07c685d182023b2ac038ef298f6e4e46f | [] | no_license | takushi-m/atcoder-work | 0aeea397c85173318497e08cb849efd459a9f6b6 | f6769f0be9c085bde88129a1e9205fb817bb556a | refs/heads/master | 2021-09-24T16:52:58.752112 | 2021-09-11T14:17:10 | 2021-09-11T14:17:10 | 144,509,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | # -*- coding: utf-8 -*-
h,w,k = map(int, input().split())
k -= 1
mod = 1000000007
if w==1:
print(1)
exit()
dp = [[0 for _ in range(w)] for _ in range(h+1)]
dp[0][0] = 1
for hi in range(1,h+1):
for b in range(2**(w-1)):
judge = False
for i in range(w-2):
if (b>>i)&3 == 3:
... | [
"takushi-m@users.noreply.github.com"
] | takushi-m@users.noreply.github.com |
2474496d5a2b4653eb639bce76fc5ac8e2bb2b56 | 3de3dae722829727edfdd6cc3b67443a69043475 | /edexOsgi/com.raytheon.uf.tools.gfesuite/cli/src/siteActivation/deactivateSite.py | 669d7666739672f2a222526845caa7f024eb9d13 | [
"LicenseRef-scancode-public-domain",
"Apache-2.0"
] | permissive | Unidata/awips2 | 9aee5b7ec42c2c0a2fa4d877cb7e0b399db74acb | d76c9f96e6bb06f7239c563203f226e6a6fffeef | refs/heads/unidata_18.2.1 | 2023-08-18T13:00:15.110785 | 2023-08-09T06:06:06 | 2023-08-09T06:06:06 | 19,332,079 | 161 | 75 | NOASSERTION | 2023-09-13T19:06:40 | 2014-05-01T00:59:04 | Java | UTF-8 | Python | false | false | 3,587 | py | ##
# This software was developed and / or modified by Raytheon Company,
# pursuant to Contract DG133W-05-CQ-1067 with the US Government.
#
# U.S. EXPORT CONTROLLED TECHNICAL DATA
# This software product contains export-restricted data whose
# export/transfer/disclosure is restricted by U.S. law. Dissemination
# to non... | [
"mjames@unidata.ucar.edu"
] | mjames@unidata.ucar.edu |
68333ba74102bbf8decdbf1b7b793425a3c06483 | 67ffddfd7e0ace7490c5d52325838b82644eb458 | /programmers/ 2019 KAKAO BLIND RECRUITMENT/오픈채팅방.py | 433080e446bdbd0c11f942b07b4117de3fcef3bc | [] | no_license | ckdrjs96/algorithm | 326f353c5aa89a85ec86ce1aabb06cde341193ce | d5d09b047808b6fc2eeaabdbe7f32c83446b4a1b | refs/heads/main | 2023-08-20T05:12:50.671798 | 2021-10-23T04:20:05 | 2021-10-23T04:20:05 | 324,481,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | def solution(record):
save_dict = dict()
commands = []
for recor in record:
com = recor.split()
if com[0] == 'Enter' or com[0] == 'Change':
save_dict[com[1]] = com[2]
commands.append([com[0], com[1]])
answer = []
for command in commands:
if command[0] ==... | [
"ckdrjs96@gmail.com"
] | ckdrjs96@gmail.com |
1b2238e7e1b2795515b7cb4c80b374b5c310daa4 | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/Trigger/TrigT1/TrigT1CaloSim/share/TrigT1CaloSim_Reprocess_Run2.py | 9a8549942c47e67f4054b7b45b05bd0b6cdcb4c2 | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,209 | py | include('TrigT1CaloCalibConditions/L1CaloCalibConditions_jobOptions.py')
# Get the algorithm sequence
from AthenaCommon.AlgSequence import AlgSequence
topSequence = AlgSequence()
svcMgr.ToolSvc += CfgMgr.LVL1__L1DatabaseOverrideForDataTool('L1DatabaseOverrideForDataTool')
topSequence += CfgMgr.LVL1__TransientDatabas... | [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
97a492b2bae7260471e1857e4f6da5f93a74ea6d | 5fcff46bf18de538dc01989cb906cd84e1f22c92 | /resources/user.py | 58e40841184636cf507bdd06b58952c383967979 | [] | no_license | a-soliman/flask-todo | b37c72f7757152a4a65c038893ebd271c298c98e | d6041cb56618a1e763ee9e3e2b5c5d112d859a2e | refs/heads/master | 2020-03-11T03:51:27.430736 | 2018-04-16T15:42:39 | 2018-04-16T15:42:39 | 128,657,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,411 | py | from flask_restful import Resource, reqparse
import sqlite3
from models.user import UserModel
class UsersList(Resource):
def get(self):
return {'users': [ user.json() for user in UserModel.query.all() ] }
class User(Resource):
def get(self, username):
user = UserModel.find_by_username(usernam... | [
"ahmed.soliman@programmer.net"
] | ahmed.soliman@programmer.net |
8c64e28efaaaa6fb4c06199d21b090b86206cd2a | 7b6c3876aec5f2660300ec67f7ee77a8374bd26d | /multi_tenant/context_processors.py | d6e40515a1b2730a214352d3c3396151c3ee7cdb | [
"MIT"
] | permissive | arineto/django-multi-tenant | 493bda06fd9bc6ae91efed4391d0fa5833750294 | 713d555831b35a487f5a91494a20ee3d955a4b63 | refs/heads/master | 2021-01-17T13:27:27.996692 | 2016-07-11T13:54:54 | 2016-07-11T13:54:54 | 58,878,519 | 7 | 5 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | def subdomain(request):
return {
'subdomain': request.subdomain
}
def tenant(request):
return {
'tenant': request.tenant
}
def theme(request):
return {
'theme': request.tenant.theme if request.tenant else None
}
| [
"arineto30@gmail.com"
] | arineto30@gmail.com |
fdd3da44b6c2f6dfb995e8abbb9aa96cd9112b9f | e42149d118d4104e7e3e3fad9e2c648e1ce02efd | /benchmarks/runner.py | c2be4022b9c69490bc4f5553cf68d14658de2b45 | [] | no_license | bocadilloproject/benchmarks | e9ab07de201b376167669adc46876dba186b50c4 | dabdda61613cc6825186dddb7a69b617d1f1d2c9 | refs/heads/master | 2020-04-11T18:04:55.631117 | 2019-01-01T18:51:10 | 2019-01-01T18:51:10 | 161,985,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,344 | py | import logging
import os
import shutil
import subprocess
from collections import defaultdict
from contextlib import contextmanager
from os.path import join, exists, dirname
from time import sleep
from typing import Tuple, List, NamedTuple
import pandas as pd
from psutil import Process
from benchmarks.config import Co... | [
"florimond.manca@gmail.com"
] | florimond.manca@gmail.com |
94f753ed608d3400a8f995ccd162749b0d16f1bf | 9c894d56f153156b82bc4bbde2db09fb04ec58cf | /17/data/ExoDiBosonResonances/EDBRTreeMaker/test/QCDHT200to300ext.py | 484fd80610066792500efce901ede596cf93a04e | [] | no_license | gqlcms/run2_ntuple | 023bb97238980e3d4e7b8c112bc11e63658f1844 | 196c90facf042a64fddfef1e1c69681ccb9ab71c | refs/heads/master | 2020-08-04T09:01:43.466814 | 2019-10-01T11:40:36 | 2019-10-01T11:40:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,344 | py | from WMCore.Configuration import Configuration
config = Configuration()
config.section_("General")
config.General.requestName = 'QCDHT200to300ext'
config.General.transferLogs = True
config.section_("JobType")
config.JobType.pluginName='Analysis'
config.JobType.sendExternalFolder=True# = 'Analysis'
config.JobType.i... | [
"c.chen@cern.ch"
] | c.chen@cern.ch |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.