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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2a21be4baa493ba4ebbd659cb4cf4c518e170455 | 11583bb4cbcd1518bec8f1316cb3588b2bc2c1c6 | /zaif_last_price.py | c57d70cc6face15056fbc3e7e9755b12f1a1cb0f | [] | no_license | aki-06/zaif_last_price | e41ac7bfa55f6a5e959e0b757ec4f6924e69a0aa | 2f6eae8f1df5443d8da0776f2a617a1b7b938a06 | refs/heads/master | 2021-08-14T11:31:48.766514 | 2017-11-15T14:25:38 | 2017-11-15T14:25:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 818 | py | import zaifapi
from zaifapi import *
if __name__ == '__main__':
zaif = ZaifPublicApi()
zaif_btc_jpy = zaif.last_price(('btc_jpy'))
zaif_xem_jpy = zaif.last_price(('xem_jpy'))
zaif_eth_jpy = zaif.last_price(('eth_jpy'))
zaif_mona_jpy = zaif.last_price(('mona_jpy'))
zaif_bch_jpy = zaif.last_... | [
"akihiro.nemoto.06@gmail.com"
] | akihiro.nemoto.06@gmail.com |
0ea91e5a0cf17f128231b27e498ed8faef5c8244 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03131/s109288213.py | d83fd52fecf6c54b08e12805530c326dab31a380 | [] | 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 | 199 | py | K,A,B=map(int,input().split())
b_count=1
if B-A<=2:
b_count+=K
else:
b_chenge_count=max(0,int((K-(A-1))/2))
b_count+=b_chenge_count*(B-A)+(A-1)+(K-(A-1)-b_chenge_count*2)
print(b_count) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
83240fb402ffb441f8ea27fc70d086d6e2787731 | 276dd5dd778adefd039e6f6a71dc574386729401 | /demo2/grpc-services/users/client/sample_client.py | 861eb08c3d04ea39c85a816e156ae04b0ad6b8a4 | [
"MIT"
] | permissive | amitsaha/python-grpc-demo | 4880e64b4b993df4b7eb96f2946b6607fb2dfa82 | 48546bfda83062a3fcb015d352fecb46346e8c92 | refs/heads/master | 2023-01-12T10:01:36.396783 | 2022-10-08T05:10:39 | 2022-10-08T05:10:39 | 101,063,881 | 145 | 52 | MIT | 2022-12-27T17:26:21 | 2017-08-22T13:07:17 | Python | UTF-8 | Python | false | false | 777 | py | import users_pb2_grpc as users_service
import users_types_pb2 as users_messages
from client_wrapper import ServiceClient
def run():
users = ServiceClient(users_service, 'UsersStub', 'localhost', 50051)
# Insert example metadata
metadata = [('ip', '127.0.0.1')]
response = users.CreateUser(
user... | [
"amitsaha.in@gmail.com"
] | amitsaha.in@gmail.com |
787d0ead8e3e61a69f630621e29795a58e9c52c3 | 3531bbff49b36aff6289911bc061865e7e59bd46 | /src/HttpGenerator/Plugins/PythonNullWebserverContentProcessorPlugin.py | ef8a2dc856cbfc76161efbbb5e7a1f253b0867ea | [
"LicenseRef-scancode-unknown-license-reference",
"BSL-1.0",
"Python-2.0"
] | permissive | davidbrownell/Common_Web | c5e66fc7ca03cdbd640ef1fe7cc12dafa9c04ef6 | fe3ee9d46cf9f2184434cf950d2c4281b5ec21e7 | refs/heads/master | 2022-09-05T18:33:34.014472 | 2022-06-08T16:44:54 | 2022-06-08T16:44:54 | 95,167,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,940 | py | # ----------------------------------------------------------------------
# |
# | PythonNullWebserverContentProcessorPlugin.py
# |
# | David Brownell <db@DavidBrownell.com>
# | 2020-08-28 22:15:38
# |
# ----------------------------------------------------------------------
# |
# | Copyright David Browne... | [
"db@DavidBrownell.com"
] | db@DavidBrownell.com |
3e859dd4d8c7da1dd8f6989bb05ffe7879d48075 | 505343f6ace00d22f8753c1a943a5794a619e698 | /katas/Python/8 kyu/Transportation on vacation 568d0dd208ee69389d000016.py | b4a45d8a8d95e7a907075fea11eac61bcc059cae | [] | no_license | bullet1337/codewars | 7652e50bf768bc47976a9124dd98b93602d4d458 | ba7f13ddd766158b41e036dae5d6b15f7f08761a | refs/heads/master | 2020-03-27T05:04:03.751302 | 2019-04-30T17:45:39 | 2019-04-30T17:45:39 | 145,991,995 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | # https://www.codewars.com/kata/568d0dd208ee69389d000016
def rental_car_cost(d):
return d * 40 - (50 if d >= 7 else 20 if d >= 3 else 0) | [
"alichek95@mail.ru"
] | alichek95@mail.ru |
a17c64a742a45832da07a086ce11578fdb82b72e | d532b85841b459c61d88d380e88dd08d29836d43 | /solutions/1418_display_table_of_food_orders_in_a_restaurant.py | 70d472684cea39e66b5cec60e2c88f8f5d159460 | [
"MIT"
] | permissive | YiqunPeng/leetcode_pro | ad942468df5506de9dc48a4019933f658e2a3121 | 4a508a982b125a3a90ea893ae70863df7c99cc70 | refs/heads/master | 2022-05-15T09:32:02.699180 | 2022-05-14T16:32:17 | 2022-05-14T16:32:17 | 182,453,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 744 | py | class Solution:
def displayTable(self, orders: List[List[str]]) -> List[List[str]]:
"""Hash table.
"""
foods = set()
tables = {}
for order in orders:
t, f = int(order[1]), order[2]
if t not in tables:
tables[t] = {f: 1}
else... | [
"ypeng1@andrew.cmu.edu"
] | ypeng1@andrew.cmu.edu |
8050dc76614b274c3c99011b53fa8d657839b7a3 | c3c7398ec14865ea34c7f03aa5e012ddb19f0d5b | /DjangoUeditor/adminx.py | e98927add372e607762b88e5328ade5003c6c29b | [] | no_license | mzm5466/blog | 0e022f0ce85a0079cb72ffd9f472c7684f94d9fb | 13625fe7028a0df11a30d7de32751e34d681de00 | refs/heads/master | 2021-01-23T16:51:58.296591 | 2018-11-17T06:05:50 | 2018-11-17T06:05:50 | 102,748,039 | 0 | 0 | null | 2018-11-12T23:28:57 | 2017-09-07T14:36:32 | JavaScript | UTF-8 | Python | false | false | 1,388 | py | #!/usr/bin/python
#-*- coding:utf-8 -*-
#__author__ = 'sai'
#DjangoUeditor Xadmin plugin
import xadmin
from django.db.models import TextField
from xadmin.views import BaseAdminPlugin, ModelFormAdminView, DetailAdminView
from DjangoUeditor.models import UEditorField
from DjangoUeditor.widgets import UEditorWidget
from ... | [
"you@example.com"
] | you@example.com |
c102131c6d4a516bfdb9a46b2857ea494a2a4e61 | 2dfedaf52ea247e7545bcf1b62e78e306dbb369f | /tele_theta_gang_bot.py | a352295798f52ff7912945a3006f56b417923c49 | [
"MIT"
] | permissive | nasgoncalves/trading-utils | 5602d6e52d6b62f138d38fe80877af0d0bec58e3 | aa9d3cdb6e9052ff1022a23d5074ec1c540f9161 | refs/heads/main | 2023-04-19T19:47:16.050050 | 2021-05-17T18:53:13 | 2021-05-17T18:53:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,794 | py | import logging
import os
from datetime import datetime
from telegram import Update
from telegram.ext import (
Updater,
CommandHandler,
MessageHandler,
Filters,
CallbackContext,
)
from common.bot_wrapper import start, help_command
from common.environment import TELEGRAM_THETA_GANG_BOT
from common.e... | [
"575441+namuan@users.noreply.github.com"
] | 575441+namuan@users.noreply.github.com |
df02039395f5072d5716d3dda7922462f52db60f | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit_QC35.py | 47df0d95aeb43e7c3b36125d2db8b174fe628db7 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,509 | py | # qubit number=3
# total number=9
import numpy as np
from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ
import networkx as nx
from qiskit.visualization import plot_histogram
from typing import *
from pprint import pprint
from math import log2
from collection... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
5c1262d982e0f6f45641b15959d0970ac3994a78 | 312d40d6023858891dd32bda67579f7284a54c15 | /29/00/add_history.py | 2bd0fedf2437bfc094faa83500c7f3938f0ff799 | [
"CC0-1.0"
] | permissive | pylangstudy/201708 | b67a49f091f5f949954e7b9a910a07761fe9a7d1 | 126b1af96a1d1f57522d5a1d435b58597bea2e57 | refs/heads/master | 2021-01-01T20:49:15.973299 | 2017-08-31T00:18:55 | 2017-08-31T00:18:55 | 98,936,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,005 | py | import readline
import datetime
history_file = 'history_file.txt'
readline.set_history_length(1000)
readline.read_history_file(history_file)
print(f'readline.get_history_length():{readline.get_history_length()}')
#ファイル保存はせず、履歴に追加する
for i in range(5): readline.add_history(f'{datetime.datetime.now():%Y-%m-%d %H:%M:%S.%f... | [
"pylangstudy@yahoo.co.jp"
] | pylangstudy@yahoo.co.jp |
a76bf89cd9ee66550c29ffffd5bd08c7c8ea0fbd | 3cb6bf94471cf493963c62103bffd3522d432a1e | /backend/users/migrations/0002_auto_20210110_2318.py | 5bf0cc03769bacd76deade31efff899f15fa33a4 | [] | no_license | crowdbotics-apps/triss-tv-app-23760 | be8603d67beacf744474d8bf193d629188e209a4 | a2d50e494b7b601657d70b970d6d161ba3c4bd3f | refs/heads/master | 2023-02-13T14:18:11.525879 | 2021-01-10T23:19:06 | 2021-01-10T23:19:06 | 328,499,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 894 | py | # Generated by Django 2.2.17 on 2021-01-10 23:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='user',
name='email',
field... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
3c8c38ea7cc58deaec59f3c9d44ae9a8059ae81c | 367d2670c75d385d122bca60b9f550ca5b3888c1 | /gem5/env/lib/python3.6/site-packages/celery/security/utils.py | 4714a945c6eed54165b302ff53b82d81957f194c | [
"BSD-3-Clause",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.0-or-later",
"MIT"
] | permissive | Anish-Saxena/aqua_rowhammer_mitigation | 4f060037d50fb17707338a6edcaa0ac33c39d559 | 3fef5b6aa80c006a4bd6ed4bedd726016142a81c | refs/heads/main | 2023-04-13T05:35:20.872581 | 2023-01-05T21:10:39 | 2023-01-05T21:10:39 | 519,395,072 | 4 | 3 | Unlicense | 2023-01-05T21:10:40 | 2022-07-30T02:03:02 | C++ | UTF-8 | Python | false | false | 845 | py | """Utilities used by the message signing serializer."""
import sys
from contextlib import contextmanager
import cryptography.exceptions
from cryptography.hazmat.primitives import hashes
from celery.exceptions import SecurityError, reraise
__all__ = ('get_digest_algorithm', 'reraise_errors',)
def get_digest_algorit... | [
"asaxena317@krishna-srv4.ece.gatech.edu"
] | asaxena317@krishna-srv4.ece.gatech.edu |
c88e2f5ce525712cffc7291eb254f0f2c831710b | 0499622f93b196f828db7443c05e029fb07f7819 | /miic/src/app/course/serializers.py | eba8782401a4b63095df45533942a46179813cc0 | [] | no_license | kradalby/enigma | ba868d09fb86151de8bab60f2e8c96621d96817c | 1be944ae0a731fc39fdcb2733661520060c8b8f9 | refs/heads/master | 2021-03-22T05:00:31.626446 | 2018-12-21T11:47:27 | 2018-12-21T11:47:27 | 88,087,880 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | from rest_framework import serializers
from .models import Course
class CourseSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = Course
field = '__all__'
| [
"kradalby@kradalby.no"
] | kradalby@kradalby.no |
ec374bf3fdb296ed277d629d332a16e10b662344 | 390a705b795ce223a932cb9fed39f28dcb96933a | /fts/test_ph4_4addcommittee.py | c0ce75fb2fc9e4ab0d706f3e4bc2fd4326cf9874 | [
"LicenseRef-scancode-public-domain"
] | permissive | DonaldMcC/gdms | d74765b4c2356b709adf44438fe929f1e848117a | ee427c28435c9fc76b5c81835fd749789529dd1a | refs/heads/master | 2021-06-22T17:36:08.806735 | 2021-06-18T18:35:39 | 2021-06-18T18:35:39 | 30,919,501 | 6 | 3 | null | 2016-05-30T21:09:09 | 2015-02-17T14:05:53 | Python | UTF-8 | Python | false | false | 4,258 | py | # These tests are all based on the tutorial at http://killer-web-development.com/
# if registration is successful this may work but lets
# try and get user logged in first
from functional_tests import FunctionalTest, ROOT, USERS
import time
from selenium.webdriver.support.ui import WebDriverWait
class AddEvent (Fun... | [
"donaldm2020@gmail.com"
] | donaldm2020@gmail.com |
a7c91ccdca3907968a379edf1b5c5e93736b9841 | 1aaba2be0479b43a76f3e85ea62cad8d42827d49 | /lib/pymedphys/_experimental/streamlit/apps/wlutz/_config.py | 729cb4145a1f603bd63282aa604a23adbd1edcdf | [
"Apache-2.0"
] | permissive | changran/pymedphys | a44a9aa9ec375c17ea73815c1a8e2a6a5a002c1e | 164a7a5c6051ab4c8fd6efdb79c3bfb0684b65df | refs/heads/main | 2023-07-30T21:32:07.697743 | 2021-09-10T11:37:02 | 2021-09-10T11:37:02 | 407,394,958 | 1 | 0 | Apache-2.0 | 2021-09-17T03:42:49 | 2021-09-17T03:42:48 | null | UTF-8 | Python | false | false | 426 | py | import pathlib
import pymedphys
from pymedphys._streamlit.utilities import config as st_config
def download_demo_data():
cwd = pathlib.Path.cwd()
pymedphys.zip_data_paths("wlutz-demo-files.zip", extract_directory=cwd)
return cwd.joinpath("wlutz-demo-files")
def get_config(demo_mode):
if demo_mode:... | [
"me@simonbiggs.net"
] | me@simonbiggs.net |
699b4704ebf635c6003115c3036eecf1060a2e4c | 45ba55b4fbdaf1657fde92beaeba4f173265afcd | /strawberry/experimental/pydantic/_compat.py | acc666f6203a928f1eb2d7b33d69d2381976ca54 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | strawberry-graphql/strawberry | af96afd4edd1788c59e150597a12501fbc7bf444 | 6d86d1c08c1244e00535840d9d87925431bc6a1c | refs/heads/main | 2023-08-30T03:34:12.929874 | 2023-08-24T12:01:09 | 2023-08-24T12:01:09 | 162,690,887 | 3,408 | 529 | MIT | 2023-09-14T21:49:44 | 2018-12-21T08:56:55 | Python | UTF-8 | Python | false | false | 3,165 | py | import dataclasses
from dataclasses import dataclass
from typing import TYPE_CHECKING, Any, Callable, Dict, Optional, Type
import pydantic
from pydantic import BaseModel
from pydantic.version import VERSION as PYDANTIC_VERSION
if TYPE_CHECKING:
from pydantic.fields import FieldInfo
IS_PYDANTIC_V2: bool = PYDANTI... | [
"noreply@github.com"
] | strawberry-graphql.noreply@github.com |
b5ee6d5a3b546ae9bfd3fe883befddb05375e281 | 4324d19af69080f45ff60b733c940f7dc1aa6dae | /google-ads-python/google/ads/google_ads/v0/proto/resources/topic_view_pb2.py | 8479d48ea067e902b438526e2c67da3d9c2985f8 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | ljborton/Forked_Work | cc8a3813c146ea4547aca9caeb03e649bbdb9076 | 7aaf67af8d9f86f9dc0530a1ad23951bcb535c92 | refs/heads/master | 2023-07-19T22:26:48.085129 | 2019-11-27T02:53:51 | 2019-11-27T02:53:51 | 224,321,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 3,068 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads_v0/proto/resources/topic_view.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
from ... | [
"noreply@github.com"
] | ljborton.noreply@github.com |
0c7a2e5aca3dd8f431def73dd1ccb655570c9897 | 84297380d00453e71f65c591dca046bd41a32184 | /ABC/ABC165/A.py | 52ca6878fd2f4b0799ac8c12ddf0293950e1d009 | [] | no_license | daiki1998/atcoder | a5ef25245b1bbc3a5e33044846a3c16213603bd3 | d864a7cb11e41dbf6a691f5d128fdfe122b07046 | refs/heads/main | 2023-03-06T22:55:29.863716 | 2021-02-18T12:01:24 | 2021-02-18T12:01:24 | 323,401,954 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py |
K = int(input())
A, B = map(int, input().split())
res = "NG"
for i in range(B+1):
if A <= K*i <= B:
res = "OK"
print(res) | [
"shimokawadaiki@shimokawadaikinoMacBook-Pro.local"
] | shimokawadaiki@shimokawadaikinoMacBook-Pro.local |
c25fc95d3fd80a2aaae02c8f79e75ce5c24a2c92 | 4f8a6af26d8220238e608577202ffc88c14f403e | /pedido/migrations/0002_remove_pedido_numero.py | e3535aa67a570fbec3c9f9f6c9be5a3d236b2e69 | [] | no_license | ryujiin/dc | 87338fb9820d8768391ea65c5b6cc1a6ea94db4f | b6f5b6a8624611f6513fd581457f171783800935 | refs/heads/master | 2021-01-01T06:33:38.940622 | 2015-08-24T02:42:55 | 2015-08-24T02:42:55 | 31,668,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('pedido', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='pedido',
name='numero... | [
"ryujiin22@gmail.com"
] | ryujiin22@gmail.com |
a92c0a10aeeed0a16c66d9b710b73c346446f7a8 | d99eba79ac942f4ca4dbc3187ef97f593d6dbc46 | /anatomy_tagging/migrations/0019_auto_constraints.py | b6c370a32b240276bc6d4139c4420397cab504f0 | [] | no_license | adaptive-learning/anatomy-tagging | 6028b0749b54efaac7d32738959b5eaf4d78f0bd | 46561468d96c5cc9cc4c6c9b093b27cea69b65b6 | refs/heads/master | 2020-04-10T01:47:14.149395 | 2017-06-19T17:08:36 | 2017-06-19T17:08:36 | 30,142,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,569 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('anatomy_tagging', '0018_auto_composite_relation_type'),
]
operations = [
migrations.AlterField(
model_name='term... | [
"jan.papousek@gmail.com"
] | jan.papousek@gmail.com |
46c93d3cf171f2c155c9f767abf4d8d7896ab549 | 890c8b8e90e516a5a3880eca9b2d217662fe7d84 | /armulator/armv6/opcodes/abstract_opcodes/ldrh_immediate_arm.py | 82362526630b6123504a3ea2f746261e0e88d05c | [
"MIT"
] | permissive | doronz88/armulator | b864135996f876c7857b79a314d4aa06cc19c549 | 0294feac2785c8947e5943ac0c34f941ee4b5fff | refs/heads/master | 2022-11-05T08:14:42.405335 | 2020-06-18T23:53:17 | 2020-06-18T23:53:17 | 273,363,061 | 2 | 0 | null | 2020-06-18T23:51:03 | 2020-06-18T23:51:02 | null | UTF-8 | Python | false | false | 1,383 | py | from armulator.armv6.opcodes.abstract_opcode import AbstractOpcode
from armulator.armv6.bits_ops import add as bits_add, sub as bits_sub, zero_extend
from bitstring import BitArray
class LdrhImmediateArm(AbstractOpcode):
def __init__(self, add, wback, index, imm32, t, n):
super(LdrhImmediateArm, self).__i... | [
"matan1008@gmail.com"
] | matan1008@gmail.com |
de1e554cbb1e97d15a561b0089ad7efb7e68848a | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-codeartsdeploy/huaweicloudsdkcodeartsdeploy/v2/model/env_execution_body.py | b1206af38ed6c9f476f85bc485956faecbbe6825 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 5,498 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class EnvExecutionBody:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute n... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
50688ed44d8bd1d4a1ef450b21069878a4a36032 | 0fccee4c738449f5e0a8f52ea5acabf51db0e910 | /genfragments/EightTeV/EstarToEG_L10000_M2400_8TeV_pythia8_cff.py | 5391ffb60a29f8eaa4a3b41e7b1861224dd1978b | [] | no_license | cms-sw/genproductions | f308ffaf3586c19b29853db40e6d662e937940ff | dd3d3a3826343d4f75ec36b4662b6e9ff1f270f4 | refs/heads/master | 2023-08-30T17:26:02.581596 | 2023-08-29T14:53:43 | 2023-08-29T14:53:43 | 11,424,867 | 69 | 987 | null | 2023-09-14T12:41:28 | 2013-07-15T14:18:33 | Python | UTF-8 | Python | false | false | 874 | py | import FWCore.ParameterSet.Config as cms
generator = cms.EDFilter("Pythia8GeneratorFilter",
maxEventsToPrint = cms.untracked.int32(0),
pythiaPylistVerbosity = cms.untracked.int32(1),
pythiaHepMCVerbosity = cms.untracked.bool(False),
... | [
"sha1-481a5a2ac9973b7cab990140e7a395466f50a31e@cern.ch"
] | sha1-481a5a2ac9973b7cab990140e7a395466f50a31e@cern.ch |
3789c4bb30efb30fcd70b94d844283827ef69b86 | 3f60f9e1081fd08824254006f7fd2fd1b4b56731 | /POI/no_salary_dec_tree.py | c31cfe251192ddb24877623e1ef3d4958b723947 | [] | no_license | mihirkelkar/Text_Mining_Enron | 0e37abfe7cc916b6f278ddd6bb72ac4b48283425 | b7e2d59bc38bb62e68a61d2348aa5302f5cf5918 | refs/heads/master | 2020-04-15T21:49:42.673886 | 2015-04-18T00:03:58 | 2015-04-18T00:03:58 | 30,212,104 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,798 | py | import matplotlib.pyplot as plt
import sys
import pickle
import sklearn
import time
import numpy as np
from data_sorter import featuresProcess
from data_sorter import split
from sklearn import cross_validation
from sklearn.tree import DecisionTreeClassifier
outliers = ["SKILLING JEFFREY K", "LAY KENNETH L", "FREVERT ... | [
"kelkarmhr@gmail.com"
] | kelkarmhr@gmail.com |
1da5bc816ff092ff1efd02e934a8a810db7b83ba | f13acd0d707ea9ab0d2f2f010717b35adcee142f | /AtCoder_Virtual_Contest/20190105-ganariya2525/abc096/c.py | c0bd9f5ae1b4dfa37263a8c56a23310888195f2c | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | KATO-Hiro/AtCoder | 126b9fe89fa3a7cffcbd1c29d42394e7d02fa7c7 | bf43320bc1af606bfbd23c610b3432cddd1806b9 | refs/heads/master | 2023-08-18T20:06:42.876863 | 2023-08-17T23:45:21 | 2023-08-17T23:45:21 | 121,067,516 | 4 | 0 | CC0-1.0 | 2023-09-14T21:59:38 | 2018-02-11T00:32:45 | Python | UTF-8 | Python | false | false | 671 | py | # -*- coding: utf-8 -*-
def main():
h, w = map(int, input().split())
board = [list(input()) for _ in range(h)]
dx = [0, 0, -1, 1]
dy = [-1, 1, 0, 0]
for i in range(h):
for k in range(w):
if board[i][k] == '#':
count = 0
for m in r... | [
"k.hiro1818@gmail.com"
] | k.hiro1818@gmail.com |
38e50d3f24f37b25e2e10924332a53123811847a | 49ba5356bdc5df7dd9803b56fe507c5164a90716 | /shortest-unsorted-continuous-subarray/solution.py | 68ff764fd997e9bff5e3f3237167c7e462af3c0e | [] | no_license | uxlsl/leetcode_practice | d80ad481c9d8ee71cce0f3c66e98446ced149635 | d8ed762d1005975f0de4f07760c9671195621c88 | refs/heads/master | 2021-04-25T18:12:28.136504 | 2020-03-11T07:54:15 | 2020-03-11T07:54:15 | 121,472,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | class Solution(object):
def findUnsortedSubarray(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
nums_s = sorted(nums)
i = 0
while i < len(nums) and nums_s[i] == nums[i]:
i += 1
j = len(nums) - 1
while 0 <= j and nums_s[j] =... | [
"songlin.lin@yunfangdata.com"
] | songlin.lin@yunfangdata.com |
06ab1173149ebf74e0df8962d78ccda462a2138a | 1d7eec692553afc411ec1e7325634f71a2aed291 | /backend/social_auth/urls.py | a8a59a7deeb00710a61c0465859ccf7d521cd772 | [] | no_license | Andy-Nkumane/Tilde | a41a2a65b3901b92263ae94d527de403f59a5caf | 80de97edaf99f4831ca8cb989b93e3be5e09fdd6 | refs/heads/develop | 2023-05-09T10:02:41.240517 | 2021-05-28T09:20:51 | 2021-05-28T09:20:51 | 299,501,586 | 0 | 0 | null | 2020-10-25T22:37:30 | 2020-09-29T04:10:48 | Python | UTF-8 | Python | false | false | 465 | py | from django.urls import path
from . import views
urlpatterns = [
path(
"github_oauth_start/",
views.authorize_github_start,
name="authorize_github_start",
),
path(
"github_oauth_callback/",
views.authorize_github_callback,
name="authorize_github_callback",
... | [
"sheena.oconnell@gmail.com"
] | sheena.oconnell@gmail.com |
1ea9b9d12aa2d29c8695d3633efd804228328fd3 | 498fcf34fa4482be5c9fefc488666e60edcf46c7 | /math/0x00-linear_algebra/100-slice_like_a_ninja.py | 528b04754521035294e7fdf6a8121f20db0302c4 | [] | no_license | MansourKef/holbertonschool-machine_learning | 7dbc465def04c311c1afb0e8b8903cbe34c72ad3 | 19f78fc09f0ebeb9f27f3f76b98e7a0e9212fd22 | refs/heads/main | 2023-03-12T16:18:08.919099 | 2021-03-05T09:42:09 | 2021-03-05T09:42:09 | 317,303,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | #!/usr/bin/env python3
"""
np_slice.
"""
def np_slice(matrix, axes={}):
"""Slices a matrix."""
len_dic = len(axes)
args = []
list_axes = []
max_val = max(axes.keys())
for j in range(max_val + 1):
list_axes.append(j)
for i in list_axes:
if i in axes.keys():
sl =... | [
"2798@holbertonschool.com"
] | 2798@holbertonschool.com |
cb036973b6b10d9a97cf5c01c03aa9f66500336d | 77de000e7d9f11a5c00ec8f6a9502c9c772bbe65 | /paying_for_college/admin.py | c20f0c8dd6e545bd09c7cbbdf82b523da4dd7fad | [
"CC0-1.0"
] | permissive | mistergone/college-costs | 5081ceedfd2bb560adfb6ac412471d79dc3e4b80 | 7fcb9155d23f363d7d1a22da4df8887996c4b8a6 | refs/heads/master | 2021-01-17T07:52:45.351978 | 2016-05-27T18:21:01 | 2016-05-27T18:21:01 | 45,491,267 | 0 | 0 | null | 2015-11-03T19:45:04 | 2015-11-03T19:45:04 | null | UTF-8 | Python | false | false | 1,661 | py | #!/usr/bin/env python
from __future__ import absolute_import
from django.contrib import admin
from .models import School, Program, Alias, Nickname, Contact, Disclosure
from .models import BAHRate, Feedback, Worksheet, ConstantRate, ConstantCap
class DisclosureAdmin(admin.ModelAdmin):
list_display = ('name', 'inst... | [
"higs4281@gmail.com"
] | higs4281@gmail.com |
f4bfb83c2408bd57b3ce899378717e5b6fe39407 | 5552380060fd8be832a61d1cc4020c16dde40452 | /home/migrations/0004_bank_branch_file.py | 244237a150562d68ccb2eac9f7f5cf4d1998f799 | [] | no_license | rayhancse08/LawChamber | a1f4121a911d92cdf7cd4c885767b2080fa5fbb0 | 40f2306d50bc9c2d2b7c08b44e527ab45a7dc756 | refs/heads/master | 2021-09-10T06:32:48.473590 | 2018-03-21T16:12:58 | 2018-03-21T16:12:58 | 125,860,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,087 | py | # Generated by Django 2.0.3 on 2018-03-19 13:31
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('home', '0003_contact'),
]
operations = [
migrations.CreateModel(
name='Bank',
field... | [
"rayhancse08@gmail.com"
] | rayhancse08@gmail.com |
5ca7bb44464eb2b8bc4a97eed49157497214cee6 | aced407b41f6669f69e9eb8bd599260d50c0bd3f | /server/libs/top/api/rest/TaobaokeItemsDetailGetRequest.py | 13b1b69b497043b5f31870c254d245496fe97a64 | [] | no_license | alswl/music_sofa | 42f7d15431f11b97bf67b604cfde0a0e9e3860cc | c4e5425ef6c80c3e57c91ba568f7cbfe63faa378 | refs/heads/master | 2016-09-12T18:37:34.357510 | 2016-05-20T11:49:52 | 2016-05-20T11:49:52 | 58,946,171 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | '''
Created by auto_sdk on 2013-11-07 12:53:22
'''
from top.api.base import RestApi
class TaobaokeItemsDetailGetRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.fields = None
self.is_mobile = None
self.nick = None
self.num_iids = None
self.ou... | [
"alswlx@gmail.com"
] | alswlx@gmail.com |
93d70c998b5ffa9aa7583bfab766cfc5b0a7927b | bc82de9237a6aa28fd7623a27b35c02ae8416702 | /allennlp/modules/seq2seq_decoders/decoder_net.py | aa73863dd2f546fc9ee2b7c5a40ada2af3ff2e00 | [
"Apache-2.0"
] | permissive | Snnzhao/GrailQA | 78190a8a5bae934c07f4035786f658ef4764c510 | e89e66380402e51bac56f59c7d24d4400bcd11b6 | refs/heads/main | 2023-04-26T19:49:21.683922 | 2021-04-11T09:40:34 | 2021-04-11T09:40:34 | 370,937,323 | 1 | 0 | Apache-2.0 | 2021-05-26T07:00:21 | 2021-05-26T07:00:20 | null | UTF-8 | Python | false | false | 4,117 | py | from typing import Tuple, Dict, Optional
import torch
from allennlp.common import Registrable
class DecoderNet(torch.nn.Module, Registrable):
# pylint: disable=abstract-method
"""
This class abstracts the neural architectures for decoding the encoded states and
embedded previous step prediction vectors... | [
"gu.826@cse-cnc196739s.coeit.osu.edu"
] | gu.826@cse-cnc196739s.coeit.osu.edu |
9ca6d92b19008f566d7bad5323b3263b78cd3d47 | 09e0efb05c9cd29c7aa4301cec7fb95d24d2bdc2 | /nionui_app/nionui_examples/ui_demo/StatusBar.py | 99f1fd1396a4fbf0ae59bae7916bfa90a1e1e115 | [
"Apache-2.0"
] | permissive | AEljarrat/nionui | 4c452037f7e3ee6710c19b18afeb45e35e9ec361 | 3714a54d56f472a8a0f7b9f8a8240103ca790374 | refs/heads/master | 2022-11-30T19:54:10.714060 | 2020-08-06T21:37:47 | 2020-08-06T21:37:47 | 286,014,692 | 0 | 0 | NOASSERTION | 2020-08-08T09:40:31 | 2020-08-08T09:40:30 | null | UTF-8 | Python | false | false | 686 | py | from nion.utils import Model
class Handler:
slider_value_model = Model.PropertyModel(50)
def reset(self, widget):
self.slider_value_model.value = 50
def construct_ui(ui):
label = ui.create_label(text="@binding(slider_value_model.value)")
button = ui.create_push_button(text="Reset to 50",... | [
"cmeyer1969@gmail.com"
] | cmeyer1969@gmail.com |
fa40c9f5c291d466245994d71e3b05bde8d0668f | 976230c7d6270f9fbec052e01f9799e13059f79c | /tests/spatio_temporal/test_daily.py | 0c473f4a8bf1f201c13a2cf6200948d00b171507 | [
"MIT"
] | permissive | amet123/jyotisha | 01cd60884f729814e6757d2a7186a6a4e3941a1f | 83930880ca74d6ddc95cc72f7026ef63a2e1c3be | refs/heads/master | 2020-03-16T09:44:13.310195 | 2018-02-10T02:43:19 | 2018-02-10T02:43:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,037 | py | import logging
from jyotisha.panchangam.spatio_temporal import City
logging.basicConfig(
level=logging.DEBUG,
format="%(levelname)s: %(asctime)s {%(filename)s:%(lineno)d}: %(message)s "
)
def test_solar_day():
from jyotisha.panchangam.spatio_temporal import daily
panchangam = daily.Panchangam(city=City('Chen... | [
"vishvas.vasuki@gmail.com"
] | vishvas.vasuki@gmail.com |
c1c2f08f213c1883d5c0d7e36a037127caeebd14 | 29ab920cf5c02ca6351e1c98824b8ebdb08933b0 | /src/core/models.py | d6b1641b0977a3f01e92bd8e2d76097fcb2dff09 | [
"MIT"
] | permissive | yordan-marinov/su_dj_todo_app | 237c8a14c17d349a75a437ab810c396269d3b571 | 34adcf3c17fcda30e57d76099780d0cf5f3f0fe6 | refs/heads/main | 2023-05-15T12:05:08.948196 | 2021-06-16T08:01:03 | 2021-06-16T08:01:03 | 375,369,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Task(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE, null=True, blank=True)
title = models.CharField(max_length=120)
description = models.TextField(null=True, blank=True)
... | [
"jordanmarinov8@gmail.com"
] | jordanmarinov8@gmail.com |
47eccdae8acbd25874bd94626617616ed0ee61fe | 5fdcf15f818eb2d0c7b5dd39443064d5bc42aff9 | /lc_reorganizing_string.py | 8ab639672dbe010d9b0fc8e9842a0ca17c1438dc | [] | no_license | vincentt117/coding_challenge | acf3664034a71ffd70c5f1ac0f6a66768e097a6e | 5deff070bb9f6b19a1cfc0a6086ac155496fbb78 | refs/heads/master | 2021-07-02T05:43:08.007851 | 2020-08-27T02:16:19 | 2020-08-27T02:16:19 | 146,027,883 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 886 | py | # Optimal solution retrieved from Leetcode - https://leetcode.com/problems/reorganize-string/
class Solution:
def reorganizeString(self, S: str) -> str:
pq = [(-S.count(x), x) for x in set(S)]
heapq.heapify(pq)
if any(-nc > (len(S) + 1) / 2 for nc, x in pq):
return ""
a... | [
"vincentt117@gmail.com"
] | vincentt117@gmail.com |
97c63ac9e665a2d66342e42e241c92b0489a2ee3 | 18d51ac0a6ca14c8221c26f0dacd8d3721ca28e9 | /73_hun.py | 5a18a272bbd749e2a12f95c01d715dc788f4067d | [] | no_license | mahakalai/mahak | 05f96d52880ed7b2e5eb70dd1dbf14fc533236e8 | 613be9df7743ef59b1f0e07b7df987d29bb23ec7 | refs/heads/master | 2020-04-15T05:01:58.541930 | 2019-07-15T16:28:32 | 2019-07-15T16:28:32 | 164,406,486 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | s=input()
s1=input()
l=[]
if s==s1:
print(s)
else:
for i in range(0,len(s)):
for j in range(i+1,len(s)):
k=s1[i:j]
if k in s:
l.append(k)
print(max(l, key=len))
| [
"noreply@github.com"
] | mahakalai.noreply@github.com |
21e0a4a5c520b5364f7115b1ed1387993123f14b | bea2c1ad58a1d45705ba8f9e4527e4ffac4969cb | /sfepy/discrete/parse_regions.py | c0b71f0ee8b1d0bc7fd05dcd16232c367e61ac0b | [
"BSD-3-Clause"
] | permissive | fethio/sfepy | 8423e9083e3144e1fd97d24c31eda1646167ff5b | 78efe51d6038dc92f5bfeac4c57614746fe28117 | refs/heads/master | 2021-01-16T20:59:29.459626 | 2016-07-01T15:06:11 | 2016-07-01T15:06:11 | 61,715,917 | 1 | 1 | null | 2016-07-01T15:06:11 | 2016-06-22T12:06:07 | Python | UTF-8 | Python | false | false | 6,738 | py | """
Grammar for selecting regions of a domain.
Regions serve for selection of certain parts of the computational domain
represented as a finite element mesh. They are used to define the boundary
conditions, the domains of terms and materials etc.
Notes
-----
History: pre-git versions already from from 13.06.2006.
"""... | [
"cimrman3@ntc.zcu.cz"
] | cimrman3@ntc.zcu.cz |
e678647f567f69e613f9801f9ae2ac7ac80e1659 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/63/usersdata/185/30193/submittedfiles/swamee.py | cf9c5669d5d51a92ee3a60133f07bc131b3da0cc | [] | 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 | 352 | py | # -*- coding: utf-8 -*-
import math
#COMECE SEU CÓDIGO AQUI
f=float(input('digite f:'))
L=float(input('digite L:'))
Q=float(input('digite Q:'))
DeltaH=float(input('digite DeltaH:'))
V=float(input('digite V:'))
g=9.81
E=0.000002
D=((8*f*L*(Q*Q))/((math.pi**2)*g*DeltaH))**1/5
Rey=(4*Q)/(math.pi*D*V)
K=0.25/(math.log10((E... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
1d1b706b79d817045a4458163d9e0a30057bb120 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_nets.py | 9595b4e462c02417b87f949ef703a5e57f707413 | [
"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 | 227 | py |
from xai.brain.wordbase.adjectives._net import _NET
#calss header
class _NETS(_NET, ):
def __init__(self,):
_NET.__init__(self)
self.name = "NETS"
self.specie = 'adjectives'
self.basic = "net"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
7967013853faa251a7c164a1774ad60bcab38057 | 84a240d463a7c286a4ff3b0c344a0e80e681ce38 | /src/chap03/10_time_dependencies/test.py | 1ae0ad5dbbf3e72fb61a6fcfb782ede2deaa843d | [] | no_license | perillaroc/ecflow-tutorial-code | 87f12b11f942b2323e45f8f8c205f665ceaeca7f | e00d0556a161a4c221b854f99dbbd0898ee14762 | refs/heads/master | 2021-09-06T04:30:48.812500 | 2018-02-02T06:48:41 | 2018-02-02T06:48:41 | 119,969,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,034 | py | import os
from pathlib import Path
from ecflow import Defs, Suite, Task, Family, Edit, Trigger, Event, Complete, Meter, Time, Day, Date
def create_family_f1():
return Family(
"f1",
Edit(SLEEP=20),
Task("t1",
Time("03:00 23:00 00:30")),
Task("t2",
Day("sund... | [
"perillaroc@gmail.com"
] | perillaroc@gmail.com |
b8993aa7ccaea8513fd07124d6005cdbd77c5068 | dd6cf539f20a0143acbdda1ed3f64b18b08a29b5 | /whiteList_v5/Config/2019第一季度脚本/config_fangtoo.py | 8af88ee3c64feb458b58b8f158acd47a212eef70 | [
"MIT"
] | permissive | myirelias/white_list | eec6a900cc3eea0f227425327ab55a6b46ba873d | 2bf344d2dc8f5cb3afbde71e248c019651ee3a7a | refs/heads/master | 2020-04-15T11:10:44.850942 | 2019-11-05T01:51:41 | 2019-11-05T01:51:41 | 164,618,155 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,178 | py | # 房途网
TASK_NAME = 'fangtoo'
# 起始URL
START_URL = 'http://www.fangtoo.com/'
# 控制域,必须为list格式
DOMAIN = ['fangtoo']
# 请求头
HEADERS = {
'Host': 'www.fangtoo.com',
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:53.0) Gecko/20100101 Firefox/53.0',
'Accept': 'text/html,application/xhtml+xml,application... | [
"myIrelia@aliyun.com"
] | myIrelia@aliyun.com |
451b171eedc679c5013c736a0918b085ca36b46c | fbea3e5d1ecab07b15887b321cd650349f22df95 | /peterklepec_webpage/cms/dashboard.py | 4df6b11b0df775c579e8ece440fb36e4e21e822a | [] | no_license | simonrakovic/peterklepec | 2e2004c04450898107da61314ec2ba03ee93bbe7 | 58114cfbd4f85d08a4749aa34492f52e11a9925e | refs/heads/master | 2021-01-21T07:53:35.429724 | 2016-09-21T12:34:52 | 2016-09-21T12:34:52 | 24,656,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,632 | py | """
This file was generated with the customdashboard management command and
contains the class for the main dashboard.
To activate your index dashboard add the following to your settings.py::
GRAPPELLI_INDEX_DASHBOARD = 'peterklepec_webpage.dashboard.CustomIndexDashboard'
"""
from django.utils.translation import ... | [
"simonrakovic@gmail.com"
] | simonrakovic@gmail.com |
9500c48e7a7fbda723ca05e82f6932e50a80cc2a | 53ba1c29d6122b8afeb6578f1a338621c61f507d | /FCCeeAnalyses/ZH_Zmumu/dataframe/plots.py | 1478a35a3cf293e86dc3db7e5dd11aed9830304d | [] | no_license | selvaggi/FCChhAnalyses | dd420f5bdba60147322cc16b49479ca200e8a54c | 8f397c77229c68ad87947e6912466da4b0a6654b | refs/heads/master | 2021-04-27T17:08:28.824726 | 2020-05-21T07:42:43 | 2020-05-21T07:42:43 | 136,484,120 | 1 | 0 | null | 2019-05-02T13:12:39 | 2018-06-07T13:49:23 | Python | UTF-8 | Python | false | false | 1,547 | py | import ROOT
# global parameters
intLumi = 5.0e+06 #in pb-1
ana_tex = "e^{+}e^{-} #rightarrow ZH #rightarrow #mu^{+}#mu^{-} + X"
delphesVersion = "3.4.2"
energy = 240.0
collider = "FCC-ee"
inputDir = "Outputs/FCCee/ZH_Zmumu/"
formats = ['png','pdf']
yaxis = ['lin','log'... | [
"clement.helsens@cern.ch"
] | clement.helsens@cern.ch |
51cf6cb246c8fc7206420f5ca0b4ca38daf503b7 | 9a2413b572c0f89b1f80899a10237657d9393bd6 | /sdk/python/pulumi_keycloak/generic_client_role_mapper.py | 7482298398ca25d54904f73e31411f577ced592b | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | jaxxstorm/pulumi-keycloak | 5c25363ece6af49dad40bd693ce07b1fa0dedd74 | 2fc7b1060b725a40d2ada745aa0d10130243a0b5 | refs/heads/master | 2022-10-10T13:11:04.290703 | 2020-06-05T19:11:19 | 2020-06-05T19:11:19 | 270,870,883 | 0 | 0 | NOASSERTION | 2020-06-09T01:08:56 | 2020-06-09T01:08:55 | null | UTF-8 | Python | false | false | 4,797 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import json
import warnings
import pulumi
import pulumi.runtime
from typing import Union
from . import utilities, tables
class Generic... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
4c10cbd3c907d2b700a4587d67043ec7b66c5280 | f098c361ee79bb8b7a8402fcf20b37f17fb36983 | /Back-End/Python/Basics/Part -3- Hash Maps/04- Serialization and Deserialization/_04_JSON_singledispatch.py | 5bac467735833efd499c104e8e24e933427f5fe3 | [
"MIT",
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | rnsdoodi/Programming-CookBook | 4d619537a6875ffbcb42cbdaf01d80db1feba9b4 | 9bd9c105fdd823aea1c3f391f5018fd1f8f37182 | refs/heads/master | 2023-09-05T22:09:08.282385 | 2021-10-31T11:57:40 | 2021-10-31T11:57:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,389 | py | import json
from datetime import datetime
log_record = {
'time': datetime.utcnow(),
'message': 'Testing...',
'other': {'a', 'b', 'c'}
}
def custom_json_formatter(arg):
if isinstance(arg, datetime):
return arg.isoformat()
elif isinstance(arg, set):
return list(arg)
print(json.dum... | [
"58447627+Koubae@users.noreply.github.com"
] | 58447627+Koubae@users.noreply.github.com |
cee671906f006b2298a9e9071b8bf2c43320fd39 | 5c7b6f96aef9a2c605c8e16eb0e3f6e2ab958947 | /settings.py | 454c3f98b426329036c61e8949009c6ba0b54d30 | [] | no_license | chapkovski/progressbaracrossrounds | 0137ce4a552edf9027eb092f1d9e0abde5cc6e8e | 62905f17d456fc6a7a57fa1fe91b510593740518 | refs/heads/master | 2021-07-03T20:53:58.758511 | 2020-09-03T22:19:49 | 2020-09-03T22:19:49 | 87,289,409 | 0 | 0 | null | 2021-06-10T20:38:02 | 2017-04-05T09:07:49 | Python | UTF-8 | Python | false | false | 1,797 | py | import os
from os import environ
import dj_database_url
from boto.mturk import qualification
import otree.settings
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
# the environment variable OTREE_PRODUCTION controls whether Django runs in
# DEBUG mode. If OTREE_PRODUCTION==1, then DEBUG=False
if... | [
"chapkovski@gmail.com"
] | chapkovski@gmail.com |
6372a17f6b0d06d1112a8594098c1279fd098c30 | 6eb58e32b469c37428185ab4456184905a5b4fb5 | /analysis_code/newdata_dataread_BP_MHTSTRATEGY_v2_hacktemp.py | c830e7ec48f7165d32ca2acd9803182abd11b3b1 | [] | no_license | rchenmit/mht_analysis | 0b8bfff7730df835975c7c41d65f007ad269e3a9 | 678d4419bdaed9ed9d0041df3a2cd8638074590f | refs/heads/master | 2020-04-06T03:40:41.577209 | 2015-01-12T00:14:48 | 2015-01-12T00:14:48 | 19,548,658 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,094 | py | ## Robert Chen
## Monday 3/12/2014
##
## trying to parse this in python
##
import os
import sys
if os.name == 'nt': #'nt' = windows
sys.path.append('C:\\anaconda\\lib\\site-packages') #in windows, alot of modules were installed with Anaconda
import pandas as pd
import numpy as np
import math
import copy
import csv
... | [
"robchen401@gmail.com"
] | robchen401@gmail.com |
b19d4c48e98253f0c798e34a47492d4728a86040 | 440e4f13d6b3939f0290931bcd984591f191f9f9 | /demo/XmlResourceSubclass.py | 3ffb043f8b415e55275f9873d23bd8a36a423eb2 | [] | no_license | AlfiyaZi/Phoenix | b445e6906eb61d037c83957ce601d731dc04acfa | c524ed1a3794ec4d2baaba6b12d6d7ef37aa7695 | refs/heads/master | 2020-06-16T18:04:42.696173 | 2016-11-24T18:39:47 | 2016-11-24T18:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,717 | py | #!/usr/bin/env python
import wx
import wx.xrc as xrc
#----------------------------------------------------------------------
resourceText = br'''<?xml version="1.0"?>
<resource>
<!-- Notice that the class IS a standard wx class, and a custom
subclass is specified as "moduleName.ClassName" Try changing
... | [
"robin@alldunn.com"
] | robin@alldunn.com |
d72b7ab5be64ba723348d6436a369f88a256597d | bce29ac8dccfc51983dcc00c433287866e9d63e7 | /1222-5223.py | 2fd13043ddeebbd63a8be746dccad6b295a1017f | [] | no_license | aiifabbf/leetcode-memo | b2c3f110073367b4b6db95722e96a794b5fe0453 | 5be09b4a804cb600e61e24617b9b2a1cc78fab3f | refs/heads/master | 2021-06-11T18:41:16.550017 | 2021-04-20T15:15:50 | 2021-04-20T15:15:50 | 175,244,504 | 10 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,916 | py | """
给一个8x8的棋盘、皇后的位置、国王的位置,问哪些皇后可以吃掉国王。
很简单,从国王开始往8个方向(上、下、左、右、上左、上右、下左、下右)分别搜索,每个方向遇到的第一个皇后就是能吃掉国王的皇后。注意如果出现国王和皇后之间隔了另一个皇后,比如
::
王 后1 后2
后2是没办法吃掉国王的。
但是要写的好看挺难的……我写了8个for循环。
"""
from typing import *
class Solution:
def queensAttacktheKing(self, queens: List[List[int]], king: List[int]) -> List[List... | [
"aiifabbf@outlook.com"
] | aiifabbf@outlook.com |
36820395946cd35b82cf0890ad00f03f16354844 | 906b3df6f4cb2141910c19dbe8e29fe493205ed2 | /contracts.py | b39f4cb339e5a70daf16f74cbf15b0b6b99822c0 | [] | no_license | webclinic017/IB_to_XCEL_Python | 6af80ed3855e97664f38c50a945554678cc1f834 | 66dfefdb047d373486434e065324e676a9f7618e | refs/heads/main | 2023-06-18T20:38:33.784478 | 2021-07-15T15:29:31 | 2021-07-15T15:29:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,991 | py | from ibapi.contract import Contract
july_vixFuture_contract = Contract()
july_vixFuture_contract.symbol = 'VXK1'
july_vixFuture_contract.secType = 'FUT'
july_vixFuture_contract.tradingClass = 'VX'
july_vixFuture_contract.exchange = 'CFE'
july_vixFuture_contract.currency = 'USD'
july_vixFuture_contract.la... | [
"noreply@github.com"
] | webclinic017.noreply@github.com |
8a221e3053dcc8502c46d16f04827b083c3b5bd0 | 8159c2c650d53fb188a26b508dfff524296707d1 | /lore/deities/alki_l.py | 905ce33ad3e1bc0fadf8acc8293b6ce5991ca540 | [] | no_license | Teifion/Rob3 | 501663bf5077da0c28a7db4960c74c4477dd11bf | 81fc2f9930434b5a4de52b75eb6a8d78dd708f77 | refs/heads/master | 2021-01-16T19:20:29.666426 | 2011-05-30T13:34:17 | 2011-05-30T13:34:17 | 1,819,452 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | data = {
"cat": "deities",
"page": "alki",
}
blocks = [
{
"id": "summary",
"text": "Summary text"
},
{
"id": "Backstory",
"text": """"""
},
{
"level": "secret",
"text": "Secret info"
},
{
"id": "gm_notes",
"level": "gm",
"text": "GM info"
}
] | [
"sarkalian@gmail.com"
] | sarkalian@gmail.com |
770d33e367fca4988fdf64c78ac4aef27d69ca8f | 9682dab1ce9e00e11708872fa26febc847d4d18c | /pycorrector/seq2seq/corpus_reader.py | 46822ab4f180f6abb8baed21724debbfb98f1cc9 | [
"Apache-2.0"
] | permissive | fireflycsq/pycorrector | 1ed2a6df9ec05bb9055b2052f92301212ebab235 | d1096e4cee99ba95bb4df945707bbd2b8972717a | refs/heads/master | 2020-03-21T15:43:51.228521 | 2018-06-12T07:34:44 | 2018-06-12T07:34:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,961 | py | # -*- coding: utf-8 -*-
# Author: XuMing <xuming624@qq.com>
# Brief: Corpus for model
import random
from pycorrector.seq2seq.reader import Reader, PAD_TOKEN, EOS_TOKEN, GO_TOKEN
class FCEReader(Reader):
"""
Read FCE data set
"""
UNKNOWN_TOKEN = 'UNK'
DROPOUT_TOKENS = {"a", "an", "the", "'ll", "'s... | [
"507153809@qq.com"
] | 507153809@qq.com |
4a810f7029a6f0806c1dc6e4f8679c877af55d4b | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/tags/2007.2/kernel/drivers/eciadsl/actions.py | 77a821cb1f94a9b37fd3943be25d766c74b060e7 | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2005, 2006 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/copyleft/gpl.txt.
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
WorkDir = "eciads... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
03bcad2f49a796e50d41e05a57f6c096d03928b1 | 642e8d6d8cd8d08a73bdcf82ae9689a09284025c | /celery/tests/test_pickle.py | bf2f4ccc4968b6c53b399fa9e10f0ffbaf43368d | [
"BSD-3-Clause"
] | permissive | abecciu/celery | 941f29c033b54b766166f17aa8c5e4be05df08b9 | f0c399e34d56c7a2a14cb42bfb2b6455c68ef0c0 | refs/heads/master | 2021-01-14T12:57:11.230199 | 2009-09-10T13:44:51 | 2009-09-10T13:44:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,631 | py | import unittest
from celery.serialization import pickle
class RegularException(Exception):
pass
class ArgOverrideException(Exception):
def __init__(self, message, status_code=10):
self.status_code = status_code
super(ArgOverrideException, self).__init__(message, status_code)
class TestPic... | [
"askh@opera.com"
] | askh@opera.com |
ee8fcb6113dfdf4554705e7c1cf7fe5e5b3c6017 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03253/s028075824.py | 5a75ef3726225d5282ae0dd3a1b8e2323b4d2dfd | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,029 | py | import sys
import math
sys.setrecursionlimit(1000000) # 再帰上限を増やす
def calc_combi(n, m, mod=1000000007):
""" nCmの組み合わせ数を数える """
if n - m < m:
return calc_combi(n, n - m)
ans_mull, ans_div = 1, 1
for i in range(m):
ans_mull *= (n - i)
ans_div *= (i + 1)
ans_mull %= mod
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d7d22bee196dd88cf02a813ed99e658a7a9134a1 | d0758e0ca004226cec8ad8b26c9565c98534a8b8 | /11-videogames/Julio/3 - Moscas/game.py | 91460a45758ba15d812fa0b32ac1bfb74b85c7e4 | [] | no_license | pythoncanarias/eoi | 334d64a96afc76ac1fa10282378f291b6d8c94b3 | 349367254f85e3e4273cede067ca950913a1332c | refs/heads/master | 2023-07-06T08:00:11.366345 | 2023-06-30T15:19:33 | 2023-06-30T15:19:33 | 222,742,870 | 26 | 19 | null | 2023-06-25T16:03:46 | 2019-11-19T16:41:25 | Jupyter Notebook | UTF-8 | Python | false | false | 1,274 | py | import pygame
import math
from settings import *
from sprites import Player
class Game:
def __init__(self):
pygame.init()
self.screen = pygame.display.set_mode([WIDTH, HEIGHT])
pygame.display.set_caption(TITLE)
self.clock = pygame.time.Clock()
self.all_sprites... | [
"euribates@gmail.com"
] | euribates@gmail.com |
5b666edc2f564f9e62ca32f883d55c4dc29f7449 | 567eac942e94c653dda710d52c1eb6db0847a075 | /0x0B-python-input_output/100-append_after.py | c1d85581606a8e1587723e9fb8ea9451eb415a89 | [] | no_license | mecomontes/Higher-Level-Programming | beeb4a410ff99fa062a86bd0a7f4d87a39889283 | 3a78f6eeedc70e2f447c49ccaf0838f5878f651c | refs/heads/main | 2023-06-26T18:02:29.046302 | 2021-07-13T14:58:24 | 2021-07-13T14:58:24 | 385,641,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
"""
Created on Tru Jun 3 15:13:37 2020
@author: Robinson Montes
"""
def append_after(filename="", search_string="", new_string=""):
"""
Inserts a line after each line containing a specific string
Arguments:
filename (str): The name of the file
s... | [
"1574@holbertonschool.com"
] | 1574@holbertonschool.com |
9e16773835ce51e64709f46cb6093b668958019f | 2bf6bf2eeb72b9eb4b8a41f36fb56585e140a611 | /pickle_to_tex.py | 82080a24d542ddb03dc447346c6cdf65cb6965bc | [
"MIT"
] | permissive | Daniel-Bu/exposure | 0fcff9177764cc85bb46298cfcdfaf5aeb29b6ec | 74549ac75822fba41125cb0a086905a51db49d7b | refs/heads/master | 2020-09-27T07:34:49.726377 | 2019-12-07T07:06:34 | 2019-12-07T07:06:34 | 226,464,955 | 0 | 0 | MIT | 2019-12-07T06:12:36 | 2019-12-07T06:12:35 | null | UTF-8 | Python | false | false | 5,295 | py | # This script converts output pickle to step-by-step latex figures
import numpy as np
import os
import pickle as pickle
import shutil
NUM_STEPS = 5
CURVE_STEPS = 8
files = []
filters = [
'Expo.',
'Gam.',
'W.B.',
'Satu.',
'Tone',
'Cst.',
'BW',
'Color',
]
def visualize_detail(name, pa... | [
"yuanmhu@gmail.com"
] | yuanmhu@gmail.com |
c5b30f8b5cad9ac276560858501ff8ed4aa8a8b1 | 0a7b77367cde1a64d95d1aab53b6a4f344056a9c | /mcod/organizations/views.py | 685347e8b0ddc6c20caa3f4d05cff315812b5080 | [] | no_license | kaglowka/danyzespolapi | 529c2c7fc5d35c630498c8438e59dbcc3c00c437 | 0b3c07c68cf61faa81756822af9eec7c497bba2f | refs/heads/master | 2023-01-13T19:11:40.247512 | 2018-10-28T12:36:47 | 2018-10-28T12:36:47 | 154,993,674 | 0 | 0 | null | 2022-12-26T20:44:19 | 2018-10-27T17:57:34 | CSS | UTF-8 | Python | false | false | 2,487 | py | # -*- coding: utf-8 -*-
import falcon
from dal import autocomplete
from django.apps import apps
from elasticsearch_dsl import Q
from mcod.datasets.documents import DatasetsDoc
from mcod.datasets.schemas import DatasetsList
from mcod.datasets.serializers import DatasetSerializer, DatasetsMeta
from mcod.lib.handlers imp... | [
"krz.glowka@gmail.com"
] | krz.glowka@gmail.com |
1821ffa05b0f39dd18622808d4a83cb6c4da538e | c3132612a7ac311e501e432e1a4c7592bbd7a713 | /day16/code/08_爬虫.py | f5ee39d962d3e580dd54293573568a861feddcd3 | [] | no_license | everqiujuan/python | 7b8e169107012c3d7829d4ebd9860482fc0d8fec | b0a98de943217e24da60f79dec4fe8ebf4f1c713 | refs/heads/master | 2020-06-21T16:57:22.260311 | 2019-07-18T05:58:44 | 2019-07-18T05:58:44 | 184,990,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 990 | py | #
# 爬虫: 蜘蛛Spider
#
# requests
import requests
import re
# pip 第三方包管理
# pip install requests 安装包
# pip uninstall requests 卸载包
# pip freeze 显示自己安装的包
# pip list 显示所有包
# pip -V 查看版本
# pip show requests 查看包详情
url = 'https://search.51job.com/list/040000,000000,0000,00,9,99,python,2,1.html?l... | [
"1748636236@qq.com"
] | 1748636236@qq.com |
305d43af585283a2419fc1f458c295e373db6e69 | ebd5c4632bb5f85c9e3311fd70f6f1bf92fae53f | /Sourcem8/otp/uberdog/OtpAvatarManagerAI.py | fe784b18b21426dfb9dc945b89ef2a60b8896819 | [] | no_license | BrandonAlex/Pirates-Online-Retribution | 7f881a64ec74e595aaf62e78a39375d2d51f4d2e | 980b7448f798e255eecfb6bd2ebb67b299b27dd7 | refs/heads/master | 2020-04-02T14:22:28.626453 | 2018-10-24T15:33:17 | 2018-10-24T15:33:17 | 154,521,816 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,377 | py | from direct.directnotify import DirectNotifyGlobal
from direct.distributed.DistributedObjectAI import DistributedObjectAI
class OtpAvatarManagerAI(DistributedObjectAI):
notify = DirectNotifyGlobal.directNotify.newCategory("OtpAvatarManagerAI")
def online(self):
pass
def requestAvatarList(self, to... | [
"brandoncarden12345@gmail.com"
] | brandoncarden12345@gmail.com |
71f5c1ce2364f53f0df7d090799750a7ae5ef7d2 | 6cc9adf9c0d840139d70a51f9e05731c4f26fe4c | /Programmers/8.py | 5bbe6b7fd4a2d2760dfc09ee32bdb38a7e843cb8 | [] | no_license | y2sec/Algorithm | 2e05447d401c8c8d0c183c73fb1ce94d26080382 | 712d572bedfbf36dc27e1cc1272143e2b3b73b7f | refs/heads/master | 2023-07-08T00:38:46.809836 | 2021-09-04T06:23:54 | 2021-09-04T06:23:54 | 317,202,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | # 문자열 압축
def solution(s):
answer = len(s)
for i in range(1, len(s) // 2 + 1):
start = 0
cnt = 1
change = ''
while start < len(s):
if s[start:start + i] == s[start + i:start + i + i]:
cnt += 1
elif cnt >= 2:
change += str(c... | [
"bae3835@gmail.com"
] | bae3835@gmail.com |
d43a0031adc40a69d9b2814a1c978c8cd490e873 | 910463f16caddc5a4e06d6ca362d62af20910dba | /CH_14_multithreading_and_multiprocessing/T_15_thread_local.py | 5e4a0a8ab9363c44c745791a81890bf00047fd8a | [
"MIT"
] | permissive | AniketS-cpu/Mastering-Python-Second-Edition-test | 3621ac06fc2cff577992396cd924fe09a349d52e | 84de81c355d7ca21a1849eed04a15b722538f521 | refs/heads/master | 2023-06-09T12:42:53.963075 | 2021-07-04T14:54:18 | 2021-07-04T20:43:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | import threading
import concurrent.futures
context = threading.local()
def init_counter():
context.counter = 10
def increment(name):
current_value = context.counter
print(f'{name} value before increment: {current_value}')
context.counter = current_value + 1
print(f'{name} value after increment... | [
"Wolph@wol.ph"
] | Wolph@wol.ph |
a613d147df8ad21434ac4cf9eead8e054bb3143b | b71c43b7f7785ca6718d74aff762557f5591758d | /Python/Week1/CodingDojo_Python/Django_Projects/email_validation/apps/emails/urls.py | 5f6c9ebfc8cb14cc19aa4e6250f72d24b019c58b | [] | no_license | jqchang/DojoAssignments | 4be9db6039763905eada2253873997ba5bfd1058 | 3c5a8b351879ccc380af9ce3b5267ca26ea62681 | refs/heads/master | 2021-01-13T15:28:45.189452 | 2017-04-15T23:31:58 | 2017-04-15T23:31:58 | 79,868,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | from django.conf.urls import url
from . import views
# from django.contrib import admin
urlpatterns = [
url(r'^$', views.index),
url(r'^process$', views.process),
url(r'^success$', views.success),
url(r'^delete/(?P<id>\d+)$', views.delete)
]
| [
"jqchang@gmail.com"
] | jqchang@gmail.com |
2412d1167b7c0b04015b6e4b11532237a2e2543d | 2b0eab74af8d23244ff11699830f9bb10fbd717a | /energies/migrations/0007_energyvector_data.py | e945aa4ab0b6a070aaa73901fa7bf9c5246097dd | [] | no_license | alexandrenorman/mixeur | c7e25cd20b03c78b361cb40e3e359a6dc5d9b06b | 95d21cd6036a99c5f399b700a5426e9e2e17e878 | refs/heads/main | 2023-03-13T23:50:11.800627 | 2021-03-07T15:49:15 | 2021-03-07T15:49:15 | 345,384,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,103 | py | # Generated by Django 2.2 on 2019-05-02 14:54
from decimal import Decimal
from django.db import migrations
def load_data(apps, schema_editor):
EnergyVector = apps.get_model("energies", "EnergyVector")
Energy = apps.get_model("energies", "Energy")
energies = {energy.identifier: energy for energy in Energ... | [
"norman@xael.org"
] | norman@xael.org |
b3b2a6a978e363f8f53a0106b14af35f54d5c484 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_examples/_algorithms_challenges/pybites/advanced/98/grid.py | 0b25292e5ce34d129230783fd6a21739685074b5 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 2,104 | py | import re
DOWN, UP, LEFT, RIGHT = '⇓', '⇑', '⇐', '⇒'
START_VALUE = 1
def print_sequence_route(grid, start_coordinates=None):
"""Receive grid string, convert to 2D matrix of ints, find the
START_VALUE coordinates and move through the numbers in order printing
them. Each time you turn append the grid... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
4d7a13431523e52f557cb9288ca2df2918ca4592 | 6e9d6a682f20054e13d3764e95b8bd3b7b64fabf | /dailychallenge794.py | 480c50e622ac834ef1ded759d169a5654425fa0f | [] | no_license | SeanyDcode/codechallenges | 30a271e04bc2b360bca923ae868be65a9533c8db | 947cf3034911b381afaf777794d22d2af06aa5ba | refs/heads/master | 2022-11-07T21:22:56.927863 | 2022-10-18T23:33:13 | 2022-10-18T23:33:13 | 154,498,776 | 1 | 0 | null | 2022-10-18T23:02:05 | 2018-10-24T12:38:45 | Python | UTF-8 | Python | false | false | 515 | py | # from dailycodingproblem.com
#
# Daily Challenge #794
# Implement a stack that has the following methods:
#
# push(val), which pushes an element onto the stack
# pop(), which pops off and returns the topmost element of the stack. If there are no elements in the stack, then
# it should throw an error or return null.
#... | [
"noreply@github.com"
] | SeanyDcode.noreply@github.com |
cac5589c71a79b0bc92bda216d163e76b9777908 | b4f0f536c721178a69128eba0afb39fde6f62ffb | /tests/e2e/redis_client.py | 1a61fcb32ee7863df6606f0f932eb42ff2f39bfc | [
"MIT"
] | permissive | jeantardelli/architecture-patterns-with-python | c049257febc369c7d213428019387fe19d38998a | d48c7d6d4a44073b815c7e6770e44cf2e231e35b | refs/heads/main | 2023-05-27T05:12:12.951919 | 2021-06-04T18:48:43 | 2021-06-04T18:48:43 | 355,638,599 | 1 | 0 | MIT | 2021-06-04T18:48:44 | 2021-04-07T18:03:08 | Python | UTF-8 | Python | false | false | 390 | py | import json
import redis
from allocation import config
r = redis.Redis(**config.get_redis_host_and_port())
def subscribe_to(channel):
pubsub = r.pubsub()
pubsub.subscribe(channel)
confirmation = pubsub.get_message(timeout=3)
assert confirmation["type"] == "subscribe"
return pubsub
def publish_m... | [
"jeantardelli@gmail.com"
] | jeantardelli@gmail.com |
c54a4eef064dc72dd2b30f222d245099b69f7005 | b1547d22520133f03c7529086f70d4ae83d24237 | /script/conntect.py | adb439f4a913590a349ab9d91767eb1d6ecc3e6f | [] | no_license | wrwahut/flask_demo | 913b6a3e4cd56fadb834895f559d25af742f1a7f | 699beaa1a6c9f0f413147ff237bb6256c651e953 | refs/heads/master | 2020-03-29T22:03:54.659686 | 2019-01-03T07:48:38 | 2019-01-03T07:48:38 | 150,401,389 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 917 | py | # -*- coding:utf-8 -*-
import requests
from flask import request
import json
req_session = requests.session()
class Caller(object):
def __init__(self, url_fix,args={}):
self.url = "http://localhost:10002/resource/user/" + url_fix
self.args = args
self.headers = {
"content-type... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
00233f22e2e5ef66eb8018f58af6d447b2945cbb | dcbef06d5a00f07756339b9e62c684dec2fee425 | /nuitka/code_generation/LoopCodes.py | b553f9f6b95a7db4207f65448e6f7735be2edebb | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | Nuitka/Nuitka | f9543d8d95bfa0b81d4e60af0dfad99fb72893a4 | d87faf2f7e1d6ed9bfe4cf8c1d648f34307e33f2 | refs/heads/develop | 2023-08-28T14:00:32.861328 | 2023-08-27T09:16:45 | 2023-08-27T09:16:45 | 9,626,741 | 8,573 | 599 | Apache-2.0 | 2023-09-13T02:49:41 | 2013-04-23T15:40:33 | Python | UTF-8 | Python | false | false | 3,141 | py | # Copyright 2023, Kay Hayen, mailto:kay.hayen@gmail.com
#
# Part of "Nuitka", an optimizing Python compiler that is compatible and
# integrates with CPython, but also works on its own.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in complianc... | [
"kay.hayen@gmail.com"
] | kay.hayen@gmail.com |
9770456866da2c0a4a7485ed4ccefca3170983b2 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02417/s513271588.py | dd2618394ee3a3fd9727f547170f17cf79edd3e4 | [] | 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 | 285 | py | import string
from sys import stdin
chs = dict([(ch, 0) for ch in string.ascii_lowercase])
for line in stdin:
for ch in line:
c = ch.lower()
if c not in chs:
continue
chs[c] += 1
for ch in string.ascii_lowercase:
print(ch, ':', chs[ch]) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
20c35fdc0ddd1e4481b51b2d8e0f88a9989398f7 | df770e5961aa7a0790314da663c426c8b3a93092 | /python/adult_sklearn.py | f344a98e3b820e08c867ac05917d704ba14a9690 | [] | no_license | dengl11/CS315B-Project | be996d461582110e70c3f9e621d13d80ed78a160 | 0da493eb5f6030562d2d2d7546ac7c107f9d2879 | refs/heads/master | 2021-08-28T18:34:41.655923 | 2017-12-13T00:06:29 | 2017-12-13T00:06:29 | 108,506,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,339 | py | ############################################################
# My Decision Tree Classification
############################################################
import numpy as np
from sklearn.metrics import accuracy_score
from sklearn.tree import DecisionTreeClassifier
from my_decision_tree import *
# param
max_depth =... | [
"dengl11@stanford.edu"
] | dengl11@stanford.edu |
03733d50c66db99aab90d764c67c8102c1927d32 | fdce456e2f0ea12f854e98583cfda95955b9a36b | /seekerbuilder/migrations/0016_auto_20210916_1303.py | ad0d13f013270eb5cd84ec0db637506231ce82d1 | [] | no_license | atifasr/jobportal | e5fdc8058759311e8d4ca2c0291066ad86059fb6 | 3fe211598daa66f2a76c2b3d4d26d73459ac7457 | refs/heads/master | 2023-08-05T02:01:00.870360 | 2021-09-29T11:59:29 | 2021-09-29T11:59:29 | 388,807,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,245 | py | # Generated by Django 3.2.5 on 2021-09-16 07:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('job_management', '0019_auto_20210913_2147'),
('seekerbuilder', '0015_auto_20210914_1503'),
]
operations = [
migrations.AlterModelOpt... | [
"atifshafi63@gmail.com"
] | atifshafi63@gmail.com |
c81c481c4164984cc48621ac820341764eda0f70 | eec9c673984da80f42d2a296ee2cb068639db169 | /tods/tests/feature_analysis/test_StastiticalStd.py | e0e968bb983bc7b56792b66f46ebdad5e1844590 | [
"Apache-2.0"
] | permissive | datamllab/tods | 0766f48e7736fd2dca1cbc59fef019447039fed8 | 314dd6efc6ed3f8d25e100b08de4115edc636e14 | refs/heads/master | 2023-09-03T22:44:31.929096 | 2023-08-24T17:21:27 | 2023-08-24T17:21:27 | 293,719,013 | 1,094 | 175 | Apache-2.0 | 2023-08-24T17:21:28 | 2020-09-08T06:18:12 | Python | UTF-8 | Python | false | false | 5,434 | py | import unittest
from d3m import container, utils
from d3m.metadata import base as metadata_base
from tods.feature_analysis import StatisticalStd
class StatisticalStdTestCase(unittest.TestCase):
def test_basic(self):
self.maxDiff=None
main = container.DataFrame({'timestamp': [1, 3, 2, 5], 'values'... | [
"khlai037@gmail.com"
] | khlai037@gmail.com |
110218098957e307e9f699349df924065f373b44 | f4d0c26d3aa27c77a7c27d9002a08465a0638cbb | /csv_schema/migrations/0008_auto_20171025_1410.py | 5a5a669d07a6928196bbb33dce2d54f89af67d33 | [] | no_license | uk-gov-mirror/nhsengland.NCDR-reference-library | 3afe0711f47dc1b5fa25646bc870a806b3512ce5 | cac30ee0787e81fb9868731576c242c7ea3dbde8 | refs/heads/master | 2023-04-03T15:10:19.320708 | 2017-11-03T15:03:27 | 2017-11-03T15:03:27 | 356,799,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-10-25 14:10
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('csv_schema', '0007_auto_20171025_1119'),
]
operations = [
migrations.AlterUniqueTog... | [
"fredkingham@gmail.com"
] | fredkingham@gmail.com |
6750c234e65cc1a9d0a5a6882b55fffe847f320d | 781e2692049e87a4256320c76e82a19be257a05d | /assignments/python/wc/src/884.py | a8d74bc04bec198c408a24561663646aefed2414 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 169 | py | def word_count(phrase):
phrase = phrase.split()
occurences = {}
for word in set(phrase):
occurences[word] = phrase.count(word)
return occurences
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
d313990cc102d01487a3785a466d81c1356d418e | d3dc1d50f683566c9d71722f218afc9340ed6ab5 | /mql.tolog/tests/test_tolog_converter.py | c083f199c167dc39587fb81161ecaf545da5e0ec | [] | no_license | heuer/mappa | b20ec8a61979a75802af19803c54ee339e65807c | fc89cf32560d2e9ea6b380127b77fb3587bbd06c | refs/heads/master | 2021-01-23T15:31:54.242393 | 2015-03-16T17:17:35 | 2015-03-16T17:17:35 | 32,339,134 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,721 | py | # -*- coding: utf-8 -*-
#
# Copyright (c) 2007 - 2014 -- Lars Heuer - Semagia <http://www.semagia.com/>.
# All rights reserved.
#
# BSD license.
#
"""\
Tests against the "back-to-tolog" stylesheet.
:author: Lars Heuer (heuer[at]semagia.com)
:organization: Semagia - <http://www.semagia.com/>
:license: BSD Li... | [
"Lars@localhost"
] | Lars@localhost |
87ea03bc8f13ab1d0b3226d73cc1dd151a73eb2f | e8f76b7162c9781a4457cd06f5405925a9a18593 | /vbb_backend/users/admin.py | df843087d8aa089373a17f4662347cf93c4abe73 | [
"MIT"
] | permissive | wasswarichard/backend-vbb-portal | bcb54d4cf63f91862704ef5f6e5953b76d8839e8 | 8e4deec8a6e71b17da3476b0a05dbfe73d547b55 | refs/heads/master | 2023-03-24T21:09:25.364768 | 2021-03-16T18:53:26 | 2021-03-16T18:53:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | from django.contrib import admin
from vbb_backend.users.models import User, Mentor, Student, HeadMaster
from django.contrib.auth.admin import UserAdmin
class MyUserAdmin(UserAdmin):
model = User
fieldsets = UserAdmin.fieldsets + (
(None, {"fields": ("user_type", "external_id")}),
)
admin.site... | [
"vichuhari100@gmail.com"
] | vichuhari100@gmail.com |
1fd18852d0cbcda793b74043c834504fd069e531 | e296f0f3d7db598aba5658de3ff8c767634e533e | /zoo/migrations/069_add_columns_is_visible_and_moderated_by_and_moderated_at_to_photos_photo.py | c04134e45dbcd4f0f9271346ff9617625c56833f | [] | no_license | devfort/wildlifenearyou | b2ac05070aa6face60156d6e7c85f98f00013c25 | 8e618aea90bbcedc45a4e30199e31880ea9e6dca | refs/heads/master | 2021-01-13T01:25:29.467549 | 2010-06-10T06:37:43 | 2010-06-10T06:37:43 | 7,874,317 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | from django.conf import settings
if settings.DATABASE_ENGINE == 'mysql':
from dmigrations.mysql import migrations as m
elif settings.DATABASE_ENGINE == 'sqlite3':
from dmigrations.sqlite3 import migrations as m
import datetime
migration = m.Compound([
m.AddColumn('photos', 'photo', 'is_visible', 'bool NOT N... | [
"simon@simonwillison.net"
] | simon@simonwillison.net |
4886128779480e9bd970b67106abee8174e3da54 | b0ef0b7b7752564b703b4438e2624a4645299006 | /usedcar/userinfo/models.py | 3e3221136a2010eb538098c2a6e27d5b90d3e2aa | [] | no_license | beantomemory/django | 66f1ff3f7fbc72df18ee01e394e733b1135fb01c | 1b588cf3888724a5f4d86df04d7ebc91d7f20000 | refs/heads/master | 2020-04-19T09:17:32.771039 | 2019-01-29T07:21:01 | 2019-01-29T07:21:01 | 168,105,733 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,989 | py | from django.db import models
from django.contrib.auth.models import AbstractUser
# Create your models here.
sex_choice = (
(0, "男"),
(1, "女"),
)
role_choice = (
(0, "买家"),
(1, "卖家"),
(2, "平台"),
)
bank_choice = (
(0, "中国工商银行"),
(1, "中国建设银行"),
(2, "中国农业银行"),
(3, "招商银行"),
(4, "北京银... | [
"tarena@tedu.cn"
] | tarena@tedu.cn |
7554d991424a83b97388e0f2edccaa713a4db8e9 | 7f114a1fb511b816c116d5b9e67cb998e3e23956 | /PyplayS31.py | c0da34dbd4a6b96011dfd4aadb0932634bbc90f4 | [] | no_license | Bharanij27/bharanirep | 90ac34eb28deaa7ec96d042de456de71b96866d7 | 982133a7939c889d433c178a601441fa087293d9 | refs/heads/master | 2021-08-07T20:22:36.244395 | 2020-06-05T04:58:10 | 2020-06-05T04:58:10 | 186,580,768 | 0 | 6 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | n=list(input())
s=0
for i in range(0,len(n)):
if n[i]=='(': s=s+1
elif n[i]==')': s=s-1
if s==0: print("yes")
else: print("no")
| [
"noreply@github.com"
] | Bharanij27.noreply@github.com |
704a4aee8b6f27bb5942d6c99ff9aad57ada94b8 | d2f50124ff3bec70b9b3139ecb063b06e526781d | /biable/migrations/0030_auto_20170104_1540.py | e5309f4b5538cf1b5c001ee7667bcac85e3fe29f | [] | no_license | odecsarrollo/odecopack-componentes | e8d993f089bf53bbf3c53d1265e70ac5c06b59b8 | b583a115fb30205d358d97644c38d66636b573ff | refs/heads/master | 2022-12-12T00:33:02.874268 | 2020-08-13T18:45:01 | 2020-08-13T18:45:01 | 189,262,705 | 0 | 0 | null | 2022-12-08T11:23:46 | 2019-05-29T16:37:21 | Python | UTF-8 | Python | false | false | 872 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2017-01-04 20:40
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('biable', '0029_auto_20170104_1528'),
]
operations ... | [
"fabio.garcia.sanchez@gmail.com"
] | fabio.garcia.sanchez@gmail.com |
ef1d6fd47f5542551fbfe13739016b1565abc26b | 1bddfbc901946b6cdef47e5325626d26a9865a51 | /setup.py | c7120cb1461fa0651511e8b384ddc401e186d6a8 | [] | no_license | kagesenshi/dkiscm.importer | ce56eccf70ac776692a0e1015d3e5bc311680979 | c255bca2a755cd3681106c5d3ee2f917de359e2b | refs/heads/master | 2016-09-11T00:58:54.109283 | 2013-10-01T20:05:23 | 2013-10-01T20:05:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,667 | py | from setuptools import setup, find_packages
import os
version = '1.4.dev0'
setup(name='dkiscm.importer',
version=version,
description="",
long_description=open("README.rst").read() + "\n" +
open(os.path.join("docs", "HISTORY.rst")).read(),
# Get more strings from
#... | [
"izhar@inigo-tech.com"
] | izhar@inigo-tech.com |
56702c50ea0061115156969d39cfedd65bcc9d30 | 63c0a3e5599be2a038bb713abc69584db42a3aae | /system_status.py | baf403826f3a9dc1bef32657a89548c790de8370 | [] | no_license | dmitryduev/sserv-njs | 6ccc98512547ba399e62dd83a99eef6ffe92c075 | 17e53069a2804506aca2a2b984ab465c5b5ff718 | refs/heads/master | 2020-05-22T04:39:53.115636 | 2018-04-11T06:44:43 | 2018-04-11T06:44:43 | 49,021,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,005 | py | from __future__ import print_function
import time
import psutil
import datetime
import json
import traceback
import argparse
if __name__ == '__main__':
''' Create command line argument parser '''
parser = argparse.ArgumentParser(formatter_class=argparse.RawDescriptionHelpFormatter,
... | [
"dmitry.duev@gmail.com"
] | dmitry.duev@gmail.com |
c6de41952c29d959461ae7ba8c7269444ef04189 | 2c20cd2b84b44f6711d53e02f681b455100d5bdc | /setup.py | e3f064e118ecf33fe25b41078bef36e51b3bfdde | [
"MIT"
] | permissive | YAtOff/s3rsync | a28c69c21a1091ee3d53362af8a9d40357d0469a | ebb36e47602491ef7dcb073bed9527f6243e317b | refs/heads/master | 2023-05-12T04:05:19.950099 | 2020-01-10T10:57:28 | 2020-01-10T10:57:28 | 224,131,742 | 0 | 1 | MIT | 2023-05-01T21:17:12 | 2019-11-26T07:43:08 | Python | UTF-8 | Python | false | false | 184 | py | from setuptools import setup, find_packages
setup(
name="s3rsync",
version="1.0.0",
description="",
packages=find_packages(exclude=("tests",)),
zip_safe=False,
)
| [
"yavor.atov@gmail.com"
] | yavor.atov@gmail.com |
35c2d0ab34307b215c50250f7de343a66666276a | 9b5c995b247803b64895223fc51f407e9da2df45 | /IQ/Files/create_file_and_write_data.py | 2cc9b05c3f86d4e7f3dbc1997bc0e34c16dac890 | [] | no_license | Shyam-Personal/python_repo | 3453156ed73efaa91fa5e01dd15a1a0e664d3d22 | 1809de5afbecc1fd17cd70ae80a1eb4b9282d554 | refs/heads/master | 2021-01-25T14:10:30.394842 | 2019-09-23T13:26:47 | 2019-09-23T13:26:47 | 123,660,813 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | """
Create 10 files of 1MB size each.
"""
def main():
try:
#Solution 1
data = "A"*1024*1024
for i in range(10):
filename = "Test_{:03d}".format(i)
with open(filename, "w") as fh:
fh.write(data)
except Exception as e:
print("Exception wh... | [
"shyamdeshmukh1@gmail.com"
] | shyamdeshmukh1@gmail.com |
272486de2b4247c949cc78cd8e0754d37480de58 | b2913030cf1646310b08efaa57c2199bb08e37c9 | /general/apero_updates/inprogress/is_night_obs.py | c5c6c4306f1de856f7212981e99d50db3911ae68 | [
"MIT"
] | permissive | njcuk9999/apero-utils | 6f5b5083537562a31573b5c4cc76908c5fe194b9 | 368d53182428ca8befcdd3e5c8ca054f61913711 | refs/heads/master | 2023-08-31T02:56:01.369406 | 2023-08-18T15:12:59 | 2023-08-18T15:12:59 | 238,777,509 | 3 | 5 | MIT | 2023-08-17T14:15:41 | 2020-02-06T20:24:49 | Python | UTF-8 | Python | false | false | 2,454 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
# CODE NAME HERE
# CODE DESCRIPTION HERE
Created on 2023-01-31 at 11:24
@author: cook
"""
import numpy as np
import matplotlib.pyplot as plt
from astropy.io import fits
from astropy.table import Table
from astropy import units as u
from tqdm import tqdm
import warni... | [
"neil.james.cook@gmail.com"
] | neil.james.cook@gmail.com |
182247988bf376661723c18e69b7095523833c84 | 04eb5ed2afbd0b2a190e38a48f1c8b86f63b5497 | /client/tests/mocks.py | c7f5fe1971df6068e73fca1512cc9aca0a5d54af | [
"MIT"
] | permissive | Playfloor/pyre-check | 04d671c63ce882891f978c8d1f6540d236dd22ab | 2e8b86fe7ed9fd84a026c188d08877a77b142309 | refs/heads/main | 2023-08-21T11:08:30.229589 | 2021-10-06T03:20:01 | 2021-10-06T03:21:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,028 | py | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# pyre-unsafe
from pathlib import Path
from typing import Optional
from unittest.mock import MagicMock
from .. import command_arguments, con... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
7281a1d2b651d0b7b363e815d9c84fe19146565a | 116aadef9866be33782c6cbd06901703728295cc | /tests/conftest.py | 3b640c81e07bc3e0f36f219c27129fc10614ecc5 | [
"Apache-2.0"
] | permissive | dracos/datasette-tiles | 9c4cf6ca683a703f08e1f69cbc4def3694d7bcc3 | f7aa1a49df23584445cf154ad0e3e6d750965b15 | refs/heads/main | 2023-02-28T22:33:08.331682 | 2021-02-03T22:21:57 | 2021-02-03T22:21:57 | 335,932,265 | 0 | 0 | null | 2021-02-04T11:24:40 | 2021-02-04T11:24:39 | null | UTF-8 | Python | false | false | 2,211 | py | import asyncio
from datasette.app import Datasette
from datasette.database import Database
import pytest
CREATE_TILES_TABLE = "CREATE TABLE tiles (zoom_level integer, tile_column integer, tile_row integer, tile_data blob)"
CREATE_METADATA_TABLE = "CREATE TABLE metadata (name text, value text)"
@pytest.fixture(scope... | [
"swillison@gmail.com"
] | swillison@gmail.com |
292b77898a0865b25cff82a3cada848553b42769 | 1e37cc605d52a8264329ba23e2bc7a74408b0f22 | /chrome_from_url.py | 11afc3ec2f015d2f264d0fd1b2ff6d06e5837a79 | [] | no_license | maasano/download_file_from_web | 7df45639a26f9911bb0ae42727d7a5acfb396659 | fa6ce6d57f30c71e9ccd982a3e6f6e314187c8c6 | refs/heads/master | 2022-03-06T06:19:47.662728 | 2019-12-06T04:07:42 | 2019-12-06T04:07:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | # URL でダウンロード
from selenium import webdriver
import os
import time
import csv
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
import urllib.request
driver = webdriver.Chrome()
url = "https://pythonchan... | [
"YOUR@EMAIL.com"
] | YOUR@EMAIL.com |
99613f69b3d7edc99a5dc7a75e483837ae852e7c | 0fa00ecf2dd671515dc001d4b14049ec6a0c1f1c | /custom_components/spook/ectoplasms/repairs/services/create.py | 6d46089ce9dab0e2aa31caa286d4f9116eebb2cd | [
"Unlicense"
] | permissive | bacco007/HomeAssistantConfig | d91a5368344f50abbea881bd1e6dfc57a0e456ca | 8548d9999ddd54f13d6a307e013abcb8c897a74e | refs/heads/master | 2023-08-30T07:07:33.571959 | 2023-08-29T20:00:00 | 2023-08-29T20:00:00 | 230,585,631 | 98 | 16 | Unlicense | 2023-09-09T08:28:39 | 2019-12-28T09:05:02 | Python | UTF-8 | Python | false | false | 1,658 | py | """Spook - Not your homie."""
from __future__ import annotations
from typing import TYPE_CHECKING
import voluptuous as vol
from homeassistant.components.repairs import DOMAIN as REPAIRS_DOMAIN
from homeassistant.helpers import config_validation as cv, issue_registry as ir
from homeassistant.util.ulid import ulid
fr... | [
"thomas@thomasbaxter.info"
] | thomas@thomasbaxter.info |
4057875c237527412532aabab219ffd580c79c80 | 25dda94672497e3287a7403e283fb279ad171b79 | /boj/11286 절대값 힙.py | 339ce72781b6d758e8e55eb60f6416475b82351b | [] | no_license | woorud/Algorithm | c94b844e8c96a446c5fdee5c0abb159bfee384d7 | f5b8e3cf0aea7fc4400e6f5bb0c1531fad93e541 | refs/heads/master | 2023-02-23T13:53:28.645036 | 2021-01-29T12:24:23 | 2021-01-29T12:24:23 | 230,908,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | import heapq, sys
n = int(sys.stdin.readline())
absheap = []
heapq.heapify(absheap)
for i in range(n):
num = int(sys.stdin.readline())
if num != 0:
heapq.heappush(absheap, (abs(num), num))
else:
try:
print(heapq.heappop(absheap)[1])
except:
print(0) | [
"woorud96@gmail.com"
] | woorud96@gmail.com |
30f9b23d261d536ea04bb46352a57de101437555 | 248793d43cd41e588fe343fe6f7dd82f667d2eb8 | /num4ch.py | 5a15eaf1bf1360318191d485c7cfb5cbe665d42b | [] | no_license | dongzeyuan/Algorithms | 85dfe22abc0ef539f7d9ff4efa205810e80d70cc | a57bfe5a2887947419f5d6deb6988ce94917c286 | refs/heads/master | 2020-03-09T01:03:15.737335 | 2018-04-07T06:53:47 | 2018-04-07T06:53:47 | 128,503,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,601 | py | # coding=UTF-8
import wx
class MyFrame(wx.Frame):
'''这是个测试各种函数用法的框架'''
def __init__(self):
wx.Frame.__init__(self, None, -1, 'TestFrame', size=(400, 300))
panel = wx.Panel(self, -1)
# 创建个文本框组件
# 4-04,这个组件定义,必须定义为self.的形式,下面回调函数才能使用该变量
self.num_txt = wx.TextCtrl(panel... | [
"dongfujing88@gmail.com"
] | dongfujing88@gmail.com |
418ab74777c51e9c75e706afd4e9ced9af142f16 | f669b07bf4e1047c7fa4f36983f5d8d9f607a42c | /.metadata/.plugins/org.eclipse.core.resources/.history/c0/20134fb0049000161aace3ce0a3d140b | 4ecac11caf1f115505b487e0511d733ae686192b | [] | no_license | tca85/python | d07b4453b38b5c5a024e2a6f8b8795dac6d928b1 | 436a23250539ef8055f817ada20cb21eab65cc42 | refs/heads/master | 2021-01-10T22:53:01.118480 | 2016-10-24T21:46:59 | 2016-10-24T21:46:59 | 70,340,585 | 1 | 0 | null | null | null | null | ISO-8859-1 | Python | false | false | 1,233 | #!/usr/bin/python
# -*- coding: latin1 -*-
'''
Created on Oct 5, 2016
@author: tca85
'''
# Para importar a classe é melhor utilizar os atalhos do Eclipse,
# mas também segue o seguinte padrão:
# from pacote + nome do arquivo import NomeClasse
from pacote.Teste import Teste
from pacote.Arquivo import Arquivo
from pa... | [
"thiago.alves.85@gmail.com"
] | thiago.alves.85@gmail.com | |
db3a5e796dccbcd86c59c07f265a266fba9cb209 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_267/ch66_2020_06_21_19_51_02_942607.py | 0e1afeb82048df4970ad1ba78a24fc6673a561ca | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | def lista_sufixos(string):
lista_sufixos = []
while i < len(string):
lista_sufixos.append(string(i+1:))
i+=1
return lista_sufixos
| [
"you@example.com"
] | you@example.com |
bd0a4edb0505e032600598e3d09c283a811f850c | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r10p1/Gen/DecFiles/options/51000001.py | 7e66d0a6b9ad05613ad85688a4de506f6035643c | [] | 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 | 961 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r10p1/Gen/DecFiles/options/51000001.py generated: Wed, 25 Jan 2017 15:25:34
#
# Event Type: 51000000
#
# ASCII decay Descriptor: e- => ?
#
from Configurables import ParticleGun
from Configurables import MomentumRange
ParticleGun().addTool( MomentumRange )
from GaudiKernel import... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
1402215de795362c3bf280285a432acd439ed1a3 | ad13583673551857615498b9605d9dcab63bb2c3 | /output/instances/nistData/atomic/byte/Schema+Instance/NISTXML-SV-IV-atomic-byte-minExclusive-4-3.py | 546cd4d622222e004eb7c096b36aa268f39fa7a8 | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 259 | py | from output.models.nist_data.atomic.byte.schema_instance.nistschema_sv_iv_atomic_byte_min_exclusive_4_xsd.nistschema_sv_iv_atomic_byte_min_exclusive_4 import NistschemaSvIvAtomicByteMinExclusive4
obj = NistschemaSvIvAtomicByteMinExclusive4(
value=109
)
| [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
17e70d2e41bdd516debf650b514fe200ab485a25 | bcc199a7e71b97af6fbfd916d5a0e537369c04d9 | /leetcode/solved/43_Multiply_Strings/solution.py | 90b9fe407e659af20688b1f0a37aefc2a67638f3 | [] | no_license | sungminoh/algorithms | 9c647e82472905a2c4e505c810b622b734d9d20d | 1389a009a02e90e8700a7a00e0b7f797c129cdf4 | refs/heads/master | 2023-05-01T23:12:53.372060 | 2023-04-24T06:34:12 | 2023-04-24T06:34:12 | 87,406,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,935 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2020 sungminoh <smoh2044@gmail.com>
#
# Distributed under terms of the MIT license.
"""
Given two non-negative integers num1 and num2 represented as strings, return the product of num1 and num2, also represented as a string.
Note: You mus... | [
"smoh2044@gmail.com"
] | smoh2044@gmail.com |
e7b70b9f8478cbe00449d124f054ef12ee82c03b | e27333261b8e579564016c71d2061cc33972a8b8 | /.history/api/IR_engine_20210728234203.py | 14e0af8534a9c7489e013618793835e8ca8fd7ab | [] | no_license | Dustyik/NewsTweet_InformationRetrieval | 882e63dd20bc9101cbf48afa6c3302febf1989b1 | d9a6d92b51c288f5bcd21ea1cc54772910fa58f7 | refs/heads/master | 2023-07-01T09:12:53.215563 | 2021-08-12T08:28:33 | 2021-08-12T08:28:33 | 382,780,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,671 | py | import pandas as pd
import numpy as np
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.metrics.pairwise import cosine_similarity
from sklearn.metrics.pairwise import euclidean_distances
from nltk.stem import PorterStemmer
from nltk.tok... | [
"chiayik_tan@mymail.sutd.edu.sg"
] | chiayik_tan@mymail.sutd.edu.sg |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.