blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
65e39f05502ee1e4f16aa0274c7f28f5ee17a0e9 | bf2390ac5b116177acebd424707167c5c22d081a | /include/ClientData.py | e10c43a7a89c916e059cfdba2a21e69ac7991739 | [
"WTFPL"
] | permissive | bigretromike/hydrus | 1cd842129da3e1851a7ad0559790a4895cad6887 | 6da58bc9df51c75fa65173b182166deb3259278e | refs/heads/master | 2021-01-24T20:25:24.164062 | 2015-11-13T09:06:38 | 2015-11-13T09:06:38 | 44,671,599 | 0 | 0 | null | 2015-11-13T09:06:38 | 2015-10-21T11:26:12 | Python | UTF-8 | Python | false | false | 110,042 | py | import ClientConstants as CC
import ClientDefaults
import ClientDownloading
import ClientFiles
import ClientNetworking
import collections
import datetime
import HydrusConstants as HC
import HydrusExceptions
import HydrusSerialisable
import HydrusTags
import threading
import traceback
import os
import random
import shut... | [
"[email protected]"
] | |
8303d30c8032f5f4d4810c52bb87dece4b05a65d | 08a1d871f4be9ea61497751845a5ed9abe2a1012 | /farbox_bucket/utils/cli_color.py | 5819c5e25a1ad977f067ed1c0eba565f31526df8 | [
"MIT",
"LicenseRef-scancode-other-permissive"
] | permissive | itfanr/FarBox | 5bfff706439a6a223f531cfa36100ac21ed4878b | daeda4f5080467f1ddf4b60424b8562f914756bd | refs/heads/master | 2023-04-19T07:23:28.824231 | 2021-05-07T02:29:06 | 2021-05-07T02:29:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,422 | py | #coding: utf8
from __future__ import absolute_import, print_function
#CSI="\x1B["
#RED = CSI+"31;40m"
#GREEN = CSI+'32;40m'
#RESET =CSI+"m"
FLAGS = dict(
RESET = "\x1B[0m",
BOLD = "\x1B[1m",
DIM = "\x1B[2m",
UNDER = "\x1B[4m",
REVERSE = "\x1B[7m",
HIDE = "\x1B[8m",
CLEARSCREEN = "\x1B[2J"... | [
"[email protected]"
] | |
701af4a6dea98585d23863e6340949745d1980e6 | 73758dde83d1a1823c103e1a4ba71e7c95168f71 | /nsd1912/py02/day02/myfunc.py | 684e88105205263137758b3b560f5844088f2eac | [] | no_license | tonggh220/md_5_nsd_notes | 07ffdee7c23963a7a461f2a2340143b0e97bd9e1 | a58a021ad4c7fbdf7df327424dc518f4044c5116 | refs/heads/master | 2023-07-02T01:34:38.798929 | 2021-05-12T08:48:40 | 2021-05-12T08:48:40 | 393,885,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | def func1(x):
if x == 1:
return 1
return x * func1(x- 1)
# 5 * func1(4)
# 5 * 4 * func1(3)
# 5 * 4 * 3 * func1(2)
# 5 * 4 * 3 * 2 * func1(1)
# 5 * 4 * 3 * 2 * 1
if __name__ == '__main__':
print(func1(5))
| [
"[email protected]"
] | |
2c3ddf59ef5bbc9b91706cc3b505f3e28ba85471 | 1ade02a8e0c6d7e442c9d9041f15518d22da3923 | /w8/mock_phase2/run/core/controllers/generic.py | 4478b8a5012a51fa7a71dcc21a18532f1804d5fc | [] | no_license | fodisi/ByteAcademy-Bootcamp | 7980b80636a36db6da3e0fc0e529fbc6b8e097e0 | d53e3f4864f6cba1b85e806c29b01c48e3c2e81d | refs/heads/master | 2020-03-19T12:55:31.489638 | 2018-07-25T16:19:19 | 2018-07-25T16:19:19 | 136,550,128 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | #!/usr/bin/env python3
from flask import Blueprint, render_template
controller = Blueprint('generic', __name__)
@controller.route('/<product_name>')
def home(product_name):
# obj = model.get_product(product_name)
return render_template('index.html', json_obj=obj.to_json)
| [
"[email protected]"
] | |
8da80ee62fb2a9c9ee57874efa1a8a69dc421479 | 694d57c3e512ce916269411b51adef23532420cd | /leetcode/23merge_k_sorted_lists.py | 76d8e6ea698631516ea4cfdd1e87899d4de8cc45 | [] | no_license | clovery410/mycode | 5541c3a99962d7949832a0859f18819f118edfba | e12025e754547d18d5bb50a9dbe5e725fd03fd9c | refs/heads/master | 2021-05-16T02:46:47.996748 | 2017-05-10T23:43:50 | 2017-05-10T23:43:50 | 39,235,141 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,368 | py | import heapq
class ListNode(object):
def __init__(self, x):
self.val = x
self.next = None
class Solution(object):
def mergeKLists(self, lists):
new_head = None
heap = []
for node in lists:
if node:
heapq.heappush(heap, (node.val, node))
... | [
"[email protected]"
] | |
515c154e112ed44885fb11d8cfbd74d1c10c102d | 1b070c5fabfe7e804eac4c7d706f6ccdf6b29ed0 | /partners/migrations/0005_auto_20200620_0044.py | bfe6abd78feb964304d45149cd068cdcdae946a8 | [
"MIT"
] | permissive | cZachJohnson/My-Business | ef80dae6458c2fb7a08465d29e32f9405e52e43d | 792bb13a5b296260e5de7e03fba6445a13922851 | refs/heads/master | 2023-08-25T06:51:39.330270 | 2021-10-25T01:20:34 | 2021-10-25T01:20:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | # Generated by Django 2.2.12 on 2020-06-20 00:44
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("partners", "0004_auto_20200609_0514"),
]
operations = [
migrations.AddField(
model_name="partner",
... | [
"[email protected]"
] | |
6347debad11c0a6b40a7f94a3ab778d780943f36 | 24a88b7dd4d81763fd4212a42c4a73f4c35f8ffc | /apiREST/api/serializers.py | f92010912774eedc0733526c21deca79cd4e444b | [] | no_license | junkluis/leccionMVC | d001c122318dde065ffd9a88aaaad0b7b4533a05 | c311e69f2ae6d102651f9f7e6fc1f9750fc9e4bc | refs/heads/master | 2021-01-15T19:27:48.875724 | 2017-08-14T14:35:29 | 2017-08-14T14:35:29 | 99,823,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | from rest_framework import serializers
from .models import *
class ticketSerializer(serializers.ModelSerializer):
class Meta:
model = ticket
fields = ('fechaEmision', 'Precio', 'Adquiriente', 'Puesto', 'Origen', 'Destino') | [
"[email protected]"
] | |
adf34bdb17df662959d03197aa497d4f9a4eccc1 | 9bbf429d2c2e2f20345d613a719cf01e8f9a0bff | /project/settings.py | 6c1e92b7cc86c64ef10a85cf6336b520a2f2d545 | [] | no_license | sandglasscao/ENU | f78f8a8dfaf3263587885b0622ab6d3182012375 | e3c26fd57f8ef582da576e1cc28b7eb42562c706 | refs/heads/master | 2021-01-23T05:19:03.175439 | 2017-04-14T09:24:22 | 2017-04-14T09:24:22 | 86,297,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,673 | py | """
Django settings for project project.
Generated by 'django-admin startproject' using Django 1.8.2.
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 path... | [
"root@localhost"
] | root@localhost |
68c11e7899d80a15888e4252296049bf2b4e8843 | 2fd087fbc5faf43940153693823969df6c8ec665 | /pyc_decrypted/latest/dropbox/client/watchdog.py | 6983e510c3bd0826ea5395ce93826e40f4907e9b | [] | no_license | mickeystone/DropBoxLibrarySRC | ed132bbffda7f47df172056845e5f8f6c07fb5de | 2e4a151caa88b48653f31a22cb207fff851b75f8 | refs/heads/master | 2021-05-27T05:02:30.255399 | 2013-08-27T13:16:55 | 2013-08-27T13:16:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,772 | py | #Embedded file name: dropbox/client/watchdog.py
import hashlib
import os
import socket
import struct
import threading
import time
from Crypto.Random import random
from trace_report import make_report
from dropbox.build_common import get_build_number
from dropbox.callbacks import Handler
from dropbox.fileutils import sa... | [
"[email protected]"
] | |
3231911515adfd0365eae0b7ab08f656f1a18ce5 | 134c429df7d5c4d067d9761cb1435992b048adaf | /notes/0431/0431.py | 11bc6ce8611f6db618e1efae727ca798d3c25e41 | [] | no_license | PaulGuo5/Leetcode-notes | 65c6ebb61201d6f16386062e4627291afdf2342d | 431b763bf3019bac7c08619d7ffef37e638940e8 | refs/heads/master | 2021-06-23T09:02:58.143862 | 2021-02-26T01:35:15 | 2021-02-26T01:35:15 | 177,007,645 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,261 | py | """
# Definition for a Node.
class Node:
def __init__(self, val=None, children=None):
self.val = val
self.children = children
"""
"""
# Definition for a binary tree node.
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
"""
class Co... | [
"[email protected]"
] | |
6ca88a0dbb97f37b2015940e3978efcb9c8a9f0b | bfc25f1ad7bfe061b57cfab82aba9d0af1453491 | /data/external/repositories_2to3/132160/kaggle-ndsb-master/configurations/[email protected] | 15acaee9e4b2e5862cb947b90c641219ff778759 | [
"MIT"
] | permissive | Keesiu/meta-kaggle | 77d134620ebce530d183467202cf45639d9c6ff2 | 87de739aba2399fd31072ee81b391f9b7a63f540 | refs/heads/master | 2020-03-28T00:23:10.584151 | 2018-12-20T19:09:50 | 2018-12-20T19:09:50 | 147,406,338 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,904 | py | import numpy as np
import theano
import theano.tensor as T
import lasagne as nn
import data
import load
import nn_plankton
import dihedral
import tmp_dnn
import tta
pre_init_path = "CONVROLL4_MODEL_FILE"
validation_split_path = "splits/bagging_split_27.pkl"
patch_size = (95, 95)
augmentation_par... | [
"[email protected]"
] | |
6ceb9d1a80663a73976e941ebaa5c6143e75a5ce | c7e9ec5ce6627f6f68bab1b86a27a4516595154d | /consentrecords/migrations/0089_auto_20180123_2226.py | 738533784e45a55c62c2542c2229561d9a774b5b | [] | no_license | michaelcrubenstein/consentrecords | 7b79e82c9ad4b5efcfbb44a50ff1d4cadf7180e2 | 992fe78c68d1d5c083f9e2cc0e3e9aa24363b93d | refs/heads/master | 2021-01-23T19:28:13.807809 | 2018-07-03T16:10:34 | 2018-07-03T16:10:34 | 41,223,029 | 1 | 1 | null | 2018-07-03T16:10:35 | 2015-08-22T20:21:26 | JavaScript | UTF-8 | Python | false | false | 700 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2018-01-23 22:26
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('consentrecords', '0088_auto_20171227_2107'),
]
operations = [
migrations.Re... | [
"[email protected]"
] | |
0fe411a821c9c8d033e284c43fba39a10774bbb9 | 4a1273f72e7d8a07a3fa67ac9f2709b64ec6bc18 | /retiresmartz/advice_responses.py | 73223c61a7c14be764d3ae4c699eb9fc19d26e8d | [] | no_license | WealthCity/django-project | 6668b92806d8c61ef9e20bd42daec99993cd25b2 | fa31fa82505c3d0fbc54bd8436cfc0e49c896f3e | refs/heads/dev | 2021-01-19T14:10:52.115301 | 2017-04-12T11:23:32 | 2017-04-12T11:23:32 | 88,132,284 | 0 | 1 | null | 2017-04-13T06:26:30 | 2017-04-13T06:26:29 | null | UTF-8 | Python | false | false | 12,283 | py | # -*- coding: utf-8 -*-
from main import constants
from datetime import datetime
import logging
logger = logging.getLogger('api.v1.retiresmartz.advice_responses')
# Retiresmartz Advice feed Logic Calls
# On Track / Off Track
def get_on_track(advice):
return 'If you would like to change any of your retirement deta... | [
"[email protected]"
] | |
1010a87e378223fd5275560d3cf5ea3eb1d65f07 | 017f02454cbb5616a9aa23e3ce76f84832378ec2 | /inferencia/task/pose_estimation/pose_estimation_2d/visualization/pose_estimation_2d_visualizer_factory.py | 451d1b7a92d7c0e6f4d200bafdc3e7bc2a2a02e1 | [
"Apache-2.0"
] | permissive | hampen2929/inferencia | a6e0f0b25abe95c3690ddfc7a225d4a4bdc2cb10 | c83563ff31d47cd441bb8ac3072df32a7fded0ee | refs/heads/main | 2023-08-18T13:53:32.882725 | 2021-09-18T12:15:52 | 2021-09-18T12:15:52 | 379,299,225 | 0 | 2 | Apache-2.0 | 2021-09-18T12:15:53 | 2021-06-22T14:30:36 | Jupyter Notebook | UTF-8 | Python | false | false | 813 | py | from .pose_estimation_2d_visualizer_name import PoseEstimation2DVisualizerName
from ..label.pose_estimation_2d_label_factory import PoseEstimation2DLabelFactory
class PoseEstimation2DVisualizerFactory():
def create(visualizer_name="PoseVisualizer",
label_name="COCOKeyPointLabel"):
if visual... | [
"[email protected]"
] | |
f9fade661402627c5a7c12936bed53fbd8d25454 | 50e90ce3870a66395aa2f4abd6a03c7e7de811e6 | /mishamovie/pipeline_steps/combine_frames.py | f92b81a9ca8a11193857ab424569e84310ab838d | [] | no_license | jgc128/mishamovie | c8dd960756d1cef7504d6060d1d7ceca89869c91 | ce8864fb311bff4c0936046a7efe121b5e5f8a3b | refs/heads/main | 2023-06-08T21:28:30.605756 | 2021-07-04T20:59:32 | 2021-07-04T20:59:32 | 361,487,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,388 | py | """
This script trains a simple model Cats and Dogs dataset and saves it in the SavedModel format
"""
import argparse
import subprocess
def parse_args():
parser = argparse.ArgumentParser(description='Split video into frames')
parser.add_argument('--input_dir', help='Input dir', required=True)
parser.add_... | [
"[email protected]"
] | |
9112a8d3de06671acf5e9fded056dc27c0c8b4a3 | 55726b4940cec0e9df9ba90ab69b27b81c283740 | /DjangoBlog/admin_site.py | d90ec5e4ee94b395af46df4d557eb97ac712a51a | [
"MIT"
] | permissive | zlaiyyf/DjangoBlog | fe655c62f74e929cd874d095cc2f8bf48739bd0d | ccb67c9f08a9b6b8ca65828fece34cda89135187 | refs/heads/master | 2022-12-27T05:06:27.578712 | 2020-10-11T07:47:46 | 2020-10-11T07:47:46 | 264,558,604 | 1 | 0 | MIT | 2020-05-17T01:09:08 | 2020-05-17T01:09:07 | null | UTF-8 | Python | false | false | 2,014 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@version: ??
@author: liangliangyy
@license: MIT Licence
@contact: [email protected]
@site: https://www.lylinux.net/
@software: PyCharm
@file: admin_site.py
@time: 2018/1/7 上午2:21
"""
from django.contrib.admin import AdminSite
from DjangoBlog.utils import get_current_s... | [
"[email protected]"
] | |
3ecb1f5f3ec4c2e5ce2a71a98e9fe46cea17d818 | 9130bdbd90b7a70ac4ae491ddd0d6564c1c733e0 | /venv/lib/python3.8/site-packages/cryptography/hazmat/primitives/keywrap.py | 8ca935cafd0f6662b8152910cd075ef54b4b9ba2 | [] | no_license | baruwaa12/Projects | 6ca92561fb440c63eb48c9d1114b3fc8fa43f593 | 0d9a7b833f24729095308332b28c1cde63e9414d | refs/heads/main | 2022-10-21T14:13:47.551218 | 2022-10-09T11:03:49 | 2022-10-09T11:03:49 | 160,078,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | /home/runner/.cache/pip/pool/2f/84/6a/ccb5454b00837ef6351bc65055c9fc4ab3ccb02f3c73ed14ffceb09910 | [
"[email protected]"
] | |
d6ae857b950288a40f300ca27e242e60df1df9a0 | 4f807eb45da63a633f32425908a4acf19462d96f | /python/src/yatzy/YatzyTest.py | 0b2bf06d8f872a60d16e9e5cdc496e24a2794c6a | [] | no_license | mebusw/Test-Driven-Development | 580c3f31ee0f406afa8d7761bf82acd67cfcd166 | 7a49f2615a78a1cedbb909e60e0232e5e1467287 | refs/heads/master | 2021-01-22T06:32:07.448971 | 2017-02-02T04:56:40 | 2017-02-02T04:56:40 | 5,836,643 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,756 | py | """
The game of yatzy is a simple dice game. Each player
rolls five six-sided dice. The player places the roll in
a category, such as ones, twos, fives, pair, two pairs
etc (see below).
If the roll is compatible with the category, the player
gets a score for the roll according to the rules. If the
roll is not compatibl... | [
"[email protected]"
] | |
4c5e15fd9822cbc0c71851e74db43be6f4bfc722 | 1626e16760c9c5b5dc9bd7c345871c716d5ffd99 | /Problems/2400_2499/2475_Number_of_Unequal_Triplets_in_Array/Project_Python3/Number_of_Unequal_Triplets_in_Array.py | 4242af6250379a0c5a304c43d89f7b0342a51492 | [] | no_license | NobuyukiInoue/LeetCode | 94ddb19e63cb8d0775cdc13f311fe90c87a1d718 | 3f0ffd519404165fd1a735441b212c801fd1ad1e | refs/heads/master | 2023-09-01T07:38:50.939942 | 2023-08-23T09:51:17 | 2023-08-23T09:51:17 | 158,100,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,432 | py | # coding: utf-8
import collections
import os
import sys
import time
from typing import List, Dict, Tuple
class Solution:
def unequalTriplets(self, nums: List[int]) -> int:
# 35ms - 71ms
trips = pairs = 0
cnts = collections.Counter()
for i, num in enumerate(nums):
trips ... | [
"[email protected]"
] | |
d2ffb8597a0d04e3ae245321f7dce967753eb0a2 | 35580ddab92d76862240649bbb91b8e45f330fb0 | /src/srctools/vpk.py | 84789b56fd842cb84326bbf8ea05220628e469d0 | [
"MIT"
] | permissive | TeamSpen210/srctools | 954328566e3ea25e1b88e73c55c93036b133cd76 | 3969e869673e3c76b4bc663d1f73c56a3585f228 | refs/heads/master | 2023-08-28T23:04:28.849165 | 2023-08-26T06:48:44 | 2023-08-26T06:48:44 | 60,130,807 | 44 | 18 | NOASSERTION | 2023-06-18T22:28:05 | 2016-05-31T23:36:26 | Python | UTF-8 | Python | false | false | 25,735 | py | """Classes for reading and writing Valve's VPK format, version 1."""
from typing import IO, Dict, Final, Iterable, Iterator, List, Optional, Tuple, Type, Union
from enum import Enum
from types import TracebackType
import operator
import os
import struct
import attrs
from srctools.binformat import EMPTY_CHECKSUM, chec... | [
"[email protected]"
] | |
a0734bf095a97365a24c7c0c3a07de02f71561a0 | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/automanage/azure-mgmt-automanage/azure/mgmt/automanage/models/_models.py | 4a02132654d4953ef71138b04fa109e55841e150 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 26,908 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"[email protected]"
] | |
a3a1e64f5807e16bd4520e2cc4130a665ca2d582 | 9c991307e29bdbd573c9d98ecd5c89e2ccaac414 | /bin/vhost_gen.py | ceee30e8546da44219849c8cbb2ea3085806c48c | [
"MIT"
] | permissive | murzindima/vhost-gen | b675e06b31909ca1e2cdbe0a16af33f83d1044f6 | 1835496d0e8694a0eceb1ef0f09d69e264e295f3 | refs/heads/master | 2022-08-28T10:24:47.849638 | 2018-08-04T23:47:24 | 2018-08-04T23:47:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,756 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# The MIT License (MIT)
#
# Copyright (c) 2017 cytopia <[email protected]>
"""
vHost creator for Apache 2.2, Apache 2.4 and Nginx.
"""
############################################################
# Imports
########################################################... | [
"[email protected]"
] | |
24a7e0e511a2d8d8023e5a267a26f01231db6504 | bc6492a9a30ac7228caad91643d58653b49ab9e3 | /sympy/parsing/autolev/test-examples/pydy-example-repo/chaos_pendulum.py | 37a8673cd2de946f7185811aa561c209c9982994 | [] | no_license | cosmosZhou/sagemath | 2c54ea04868882340c7ef981b7f499fb205095c9 | 0608b946174e86182c6d35d126cd89d819d1d0b8 | refs/heads/master | 2023-01-06T07:31:37.546716 | 2020-11-12T06:39:22 | 2020-11-12T06:39:22 | 311,177,322 | 1 | 0 | null | 2020-11-12T06:09:11 | 2020-11-08T23:42:40 | Python | UTF-8 | Python | false | false | 2,288 | py | import sympy.physics.mechanics as me
import sympy as sm
import math as m
import numpy as np
g, lb, w, h = sm.symbols('g lb w h', real=True)
theta, phi, omega, alpha = me.dynamicsymbols('theta phi omega alpha')
thetad, phid, omegad, alphad = me.dynamicsymbols('theta phi omega alpha', 1)
thetad2, phid2 = me.dyna... | [
"[email protected]"
] | |
e8903d4f4699625df2cda18ac35f4222d2fd4b28 | 59f8bf58860d021216449b135f486f9b7145f6be | /application/utils/helper.py | b0f149aafc09f1948981c1ab3c93845eb97d3ddc | [] | no_license | JFluo2011/fisher | f5b58e2e151022b2173490b504dda7c704862b19 | d899e2a3dc296cf9d1c2802067d995dde1c3d32e | refs/heads/master | 2022-12-10T12:42:36.376854 | 2018-12-27T07:57:00 | 2018-12-27T07:57:00 | 158,154,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | def keyword_is_isbn(keyword):
tmp = keyword.strip().replace('-', '')
return (len(tmp) in [10, 13]) and tmp.isdigit()
| [
"[email protected]"
] | |
58c58c2aa06311710749227f4e0405344d093517 | 663d429e1f552ef958d37cfe4a0707354b544a9a | /rimi_linux_mysql/tcp_ip_socket/my_async/asyncsocket_chat/client1.py | 4a9a11ecfbb9b7904ff495bf8814706de43aa992 | [] | no_license | nie000/mylinuxlearn | 72a33024648fc4393442511c85d7c439e169a960 | 813ed75a0018446cd661001e8803f50880d09fff | refs/heads/main | 2023-06-20T07:46:11.842538 | 2021-07-15T13:46:43 | 2021-07-15T13:46:43 | 307,377,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | import socket
ss_address = ("0.0.0.0",19528)
ss = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
print('123')
ss.connect(ss_address)
print('456')
while True:
data = input('请输入消息:')
if not data:
break
try:
ss.send(data.encode('utf8'))
print(ss.recv(1024).decode('utf8'))
excep... | [
"[email protected]"
] | |
c7fee91cb539c4e1e261ffa6c3de60b555291813 | 05bf7de1337bc938578accba64416863cec1ed63 | /docs/historical/MSD/MSDTutorial/Post_Processing/common/post_processing_class.py | 493bc56ae42de7f8b5544648a723bab83e78ce4c | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-other-permissive"
] | permissive | metamorph-inc/openmeta-mms | d0dccae88e7532594f02c5eff8daa74c6c0e4010 | 2644cb7273916e36c3725785fc9a44948d64c343 | refs/heads/master | 2023-04-06T11:09:36.316306 | 2023-03-28T18:17:55 | 2023-03-28T18:17:55 | 70,078,378 | 21 | 8 | NOASSERTION | 2023-01-14T09:31:14 | 2016-10-05T16:29:54 | Python | UTF-8 | Python | false | false | 24,179 | py | import os
import json
import sys
import re
import numpy as np
from py_modelica.mat_file_functions.mat_file_to_dict import MatFile2Dict
# Rescue if the limit-checking should get stuck in an infinite while-loop.
# Which should be impossible to start with, but if I am wrong...
MAX_ITERATIONS = 100000
class PostProcess:... | [
"[email protected]"
] | |
01cabaa83df787a973353fd6f3c195237768f961 | c4a2c5d2ee3bb946333bec267c337858c2eaa87c | /bhiveapi/hivenoderpc.py | 58ce7500c87b948f6e6633ae663e981fa3749a04 | [
"MIT"
] | permissive | TheCrazyGM/bhive | 93b237140def25a8cb4de0160678db116b45d4e0 | 1494e90a99123ecfc5efbd927258f9ba59443e2e | refs/heads/master | 2021-04-10T20:15:59.966431 | 2020-03-22T23:50:52 | 2020-03-22T23:50:52 | 248,962,200 | 3 | 1 | NOASSERTION | 2020-10-27T22:24:53 | 2020-03-21T11:29:02 | Python | UTF-8 | Python | false | false | 9,554 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from builtins import bytes, int, str
import re
import sys
from .graphenerpc import GrapheneRPC
from . import exceptions
import logging
log = logging.getLogger(__name__)
... | [
"[email protected]"
] | |
b9fb87d81b8ea6206160a6408edaca8fa28184b1 | 917974ea96ab36b7fa648dd57762b08e0650f459 | /MySQL/实例/MysqlOperate.py | 4fc8797c3170f610a8f5362ad0be20118f0f1282 | [] | no_license | zhoulongqa/pythonCode | 0d4957c65d2202f7551ba9ab96c06dd86e7b52d5 | 8ffd7503c3e50c5039c907fcf60a028e3829ec40 | refs/heads/master | 2021-09-08T22:23:47.892837 | 2018-03-12T12:20:10 | 2018-03-12T12:20:10 | 124,881,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,406 | py | # encoding=utf-8
import MySQLdb
import random
def getDatabaseConnection():
conn = MySQLdb.connect(
host='localhost',
port=3306,
user='root',
passwd='123123',
charset='utf8')
cur = conn.cursor()
return conn, cur
def closeDatabase(conn, cur):
cur.... | [
"[email protected]"
] | |
d15edac876db06faf9c9c07283a6d10c33c1f8f7 | 6d82c2f984855f0d430ebeb9d5d65adae8a6ed94 | /cdent/parser/pir/grammar.py | d3816445808fe4d76e78862d1a4b2149f3acea58 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | ingydotnet/cdent-py | bce12cfc8ffb10060ba3a67970af3649d01ca37c | 013e967f1436269965e166a91e16bcde3995b765 | refs/heads/master | 2023-05-29T19:11:25.698386 | 2011-09-21T15:15:08 | 2011-09-21T15:15:08 | 139,786 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,085 | py | """
C'Dent Pir parser grammar module.
"""
from cdent.grammar import *
class Grammar():
def __init__(self):
self.__dict__.update(
{ 'BlankLine': Re({'_': '[\\ \\t]*\\r?\\n'}),
'Class': All({'_': [Rule({'_': 'ClassStart'}), Rule({'_': 'ClassBody'}), Rule({'_': 'ClassEnd'})]}),
'ClassBody': All({'_': [In... | [
"[email protected]"
] | |
327f9765f5dd9fd7ec5ddb1747f3de2bffe48a72 | 5acc20092ee93935594a7e0522924245a43e5531 | /support_vector_machines/plot_oneclass_svm.py | b3dd6215ed3a9101ee39baa85ae115e8380814cf | [] | no_license | shengchaohua/sklearn-examples | aae2332c4382a57a70c1887777c125e6dc4579d6 | 1dac6a9b5e703185a8da1df7c724022fbd56a9e4 | refs/heads/master | 2020-05-05T01:19:20.037746 | 2019-10-18T08:55:01 | 2019-10-18T08:55:01 | 179,599,221 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,014 | py | import numpy as np
import matplotlib.pyplot as plt
import matplotlib.font_manager
from sklearn import svm
xx, yy = np.meshgrid(np.linspace(-5, 5, 500), np.linspace(-5, 5, 500))
# Generate train data
X = 0.3 * np.random.randn(100, 2)
X_train = np.r_[X + 2, X - 2]
# Generate some regular novel observations
X = 0.3 * np.... | [
"[email protected]"
] | |
3fa18fbb6c6c984c8016aa0330fccb80274eeeb2 | e4414bd8152e52855db7ab9065ae12b7329143e0 | /python/src/two_more_random.py | b87bee878dbdfeb7ad6ff81d257bf7e780ba71dd | [] | no_license | catalinc/programmingpraxis-solutions | 39cb847877ec46d2fb85740791c24889ab5654a8 | c0b13906aa76ffac705bf108db138fb9a38bc16a | refs/heads/master | 2021-03-27T16:46:47.781839 | 2017-09-09T15:17:38 | 2017-09-09T15:17:38 | 53,532,233 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | # A solution for http://programmingpraxis.com/2012/08/21/two-more-random-exercises/
import math
def rand_middle_square(seed):
n = seed
seed_len = int(round(math.log(seed, 10)))
while True:
yield n
n = (n * n) / (10 ** (seed_len / 2)) % (10 ** seed_len)
def randu(seed):
n = seed
... | [
"[email protected]"
] | |
1a9658d9fae0218278448f9af37f2b5c5e6f3593 | b9696a277966d85548ebf23c77d24554dd98b1c1 | /LasAndClf-dev/get_data_packages/collectdata2bc.py | 9ff8239bd1826c85a88010e5fb370669aed10557 | [] | no_license | hsulab/multiVASP | f1d277b015f97532588f4db21ce14bae68dafed9 | e05bf8c03ff1653ad2621fdd61b8a706138dc37b | refs/heads/master | 2020-03-07T09:12:32.199150 | 2019-10-22T14:30:18 | 2019-10-22T14:30:18 | 127,394,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,986 | py | #!/usr/local/bin/python3
# -*- coding: utf-8 -*-
import os
import re
import time
import numpy as np
import pandas as pd
"""
"""
class GeoData():
# Geometry Features Data
def __init__(self, name):
self.name = name
# Path Settings
__dirpath = os.path.join(os.path.expanduser('~'), 'Desktop/CH... | [
"[email protected]"
] | |
6b93ecdbb92e6d5706872b8722d49a411dcbc403 | fdd6c6a1b8e6e7e8cd267de97a1b435777342e1b | /tests/test_altdphi.py | 3a840650b023a7e240e31fe5fb070f9cd216cce3 | [
"BSD-3-Clause"
] | permissive | TaiSakuma/altdphi | bccec475432dec5aebafda4e47d12fcc5cf048d6 | ed74418fe6e0e4b08582d80093102795276d17d6 | refs/heads/master | 2021-03-16T08:45:10.249447 | 2019-05-14T16:44:40 | 2019-05-14T16:44:40 | 118,086,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,152 | py | # Tai Sakuma <[email protected]>
import numpy as np
import pytest
from altdphi import AltDphi
from .testing import assert_altdphi_equal
from .expected import *
##__________________________________________________________________||
@pytest.fixture(
params=[
(event_nojet, altdphi_nojet, altdphi_met_noj... | [
"[email protected]"
] | |
728158a4d9026a97e17a89c008935c78bba93cc3 | 2f6817fc8f6ddb48f5f88c913d8e40b672fc3dbf | /MLP/lec13-4[Kmeans].py | 84ab79f09472a0230ce9c1721fc34ce47e22cf64 | [] | no_license | cutz-j/TodayILearned | 320b5774de68a0f4f68fda28a6a8b980097d6ada | 429b24e063283a0d752ccdfbff455abd30ba3859 | refs/heads/master | 2020-03-23T17:34:51.389065 | 2018-11-24T08:49:41 | 2018-11-24T08:49:41 | 141,865,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,201 | py | import pandas as pd
from sklearn import datasets
from sklearn.cluster import KMeans
import matplotlib.pyplot as plt
from sklearn.pipeline import make_pipeline
from sklearn.preprocessing import StandardScaler
iris = datasets.load_iris()
labels = pd.DataFrame(iris.target)
labels.columns = ['labels']
data = pd.DataFrame... | [
"[email protected]"
] | |
c3e43afbae66f6aa4658cc2e059a94f5e45187c6 | b5d738624d7016f7e10796485624c567099374ab | /starthinker/util/dcm/schema/Activity_Metrics.py | cfddd432e314017727e16532df1791ab7115aa76 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | dvandra/starthinker | 212d8166752c36fbe6a5e0988fb5ad598f35c4a6 | 07a8c1f8bf3c7493b1833d54ca0acc9305a04bc9 | refs/heads/master | 2020-06-14T05:19:08.348496 | 2019-07-02T17:54:06 | 2019-07-02T17:54:06 | 194,915,001 | 1 | 0 | Apache-2.0 | 2019-07-02T18:25:23 | 2019-07-02T18:25:23 | null | UTF-8 | Python | false | false | 3,495 | py | ###########################################################################
#
# Copyright 2017 Google 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
#
# https://www.apache.org/... | [
"[email protected]"
] | |
8147ee54973388356c60c895c778940a1eee9e84 | 8d014c5513a0eeca086010b018b67336f8d042e0 | /wicam_vlc.py | 480b078447c514a89f8b8c568d94727f18331028 | [] | no_license | rkuo2000/cv2 | 26ce0a06b4040eabb82319ec44cab5c3639b9495 | 16e64e7092d6654ea470e469d6b15f308ecd1788 | refs/heads/master | 2022-10-12T00:11:35.964818 | 2022-09-30T06:50:35 | 2022-09-30T06:50:35 | 108,848,948 | 5 | 29 | null | 2022-09-29T11:01:48 | 2017-10-30T12:38:58 | Python | UTF-8 | Python | false | false | 457 | py | # Install VLC Player on PC
# Add Environtment System Variables: VLC_PLUGIN_PATH = C:\Program Files\VideoLAN\VLC\plugins
# pip install python-vlc
# WiFi connected to WiCam module (streaming video)
import cv2
import vlc
#player=vlc.MediaPlayer('rtsp://192.168.100.1/cam1/h264')
player=vlc.MediaPlayer('rtsp://192.... | [
"[email protected]"
] | |
2d50a33f7a6f96a094b2b5a8c3082d850f8c3b9a | dea8cfa596d52d5db0e28ac43504e7212b43081b | /python/AtCoder Beginner Contest 123/Five Dishes .py | 5b3b87bc101c5841242a539782cdaf0a6b8925b9 | [] | no_license | Yuta123456/AtCoder | 9871a44f12a8fca87b0e2863a999b716128de1ac | ca04422699719563e311f7d973459ba1dc238c2c | refs/heads/master | 2023-01-04T22:33:54.120454 | 2020-11-04T05:20:37 | 2020-11-04T05:20:37 | 286,409,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 483 | py | def ceil(x):
k = x % 10
if k == 0:
return x
else:
return x + (10 - k)
d = []
for i in range(5):
d.append(int(input()))
d_min = []
min = 124
sum = 0
index = -1
for i in range(5):
d_min.append((d[i]) % 10)
for i in range(5):
if d_min[i] != 0:
if min > d_min[i]:
... | [
"[email protected]"
] | |
40b35aefa6aa53d7c9e97137d474309dfdb68a8e | 0d0cf0165ca108e8d94056c2bae5ad07fe9f9377 | /15_Feature_Engineering_for_Machine_Learning_in_Python/2_Dealing_with_Messy_Data/howSparseIsMyData.py | 6c17397750627c6381fd7a7979223548ea23969e | [] | no_license | MACHEIKH/Datacamp_Machine_Learning_For_Everyone | 550ec4038ebdb69993e16fe22d5136f00101b692 | 9fe8947f490da221430e6dccce6e2165a42470f3 | refs/heads/main | 2023-01-22T06:26:15.996504 | 2020-11-24T11:21:53 | 2020-11-24T11:21:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | # How sparse is my data?
# Most data sets contain missing values, often represented as NaN (Not a Number). If you are working with Pandas you can easily check how many missing values exist in each column.
# Let's find out how many of the developers taking the survey chose to enter their age (found in the Age column of... | [
"[email protected]"
] | |
42d6cbdf04e5bbb6398833f05d3653f58dbacfa6 | c5291e50a3c72c885922378573a0ad423fcedf05 | /analysis/analysis/urls.py | 0a94cc17c066e5075d59765c816f00b7aac7ce4e | [] | no_license | raghurammanyam/django-projects | bcc3ed6285882af437a2995514cef33760fb063e | dd20ae354f7f111a0176a1cc047c099bd23e9f05 | refs/heads/master | 2022-12-12T19:22:31.698114 | 2018-12-09T09:41:45 | 2018-12-09T09:41:45 | 137,443,359 | 0 | 0 | null | 2022-11-22T03:01:07 | 2018-06-15T05:08:15 | Python | UTF-8 | Python | false | false | 929 | py | """analysis URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/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-base... | [
"[email protected]"
] | |
2093ce0cb85111f3f214151ed4bcb78b1d2e34fc | ff4fe07752b61aa6404f85a8b4752e21e8a5bac8 | /challenge-209/eric-cheung/python/ch-2.py | 624ac7029fd2589ae8c5e87fe90970b576910183 | [] | no_license | choroba/perlweeklychallenge-club | 7c7127b3380664ca829158f2b6161c2f0153dfd9 | 2b2c6ec6ece04737ba9a572109d5e7072fdaa14a | refs/heads/master | 2023-08-10T08:11:40.142292 | 2023-08-06T20:44:13 | 2023-08-06T20:44:13 | 189,776,839 | 0 | 1 | null | 2019-06-01T20:56:32 | 2019-06-01T20:56:32 | null | UTF-8 | Python | false | false | 1,044 | py |
## arrAccount = [["A", "[email protected]", "[email protected]"], ["B", "[email protected]"], ["A", "[email protected]", "[email protected]"]] ## Example 1
arrAccount = [["A", "[email protected]", "[email protected]"], ["B", "[email protected]"], ["A", "[email protected]"], ["B", "[email protected]", "[email protected]"]] ## Example 2
arrUser = [arrAccount[0][0]]
arrEmail = [arrAccount[0][1:]]
arrFinal = [... | [
"[email protected]"
] | |
19cdad09fcea597b9049e86da3c0e55f919ffb8e | 14f30311d0c93053d159118f5b978f26352fa201 | /NAIP/loop_FeatureCollection.py | 9c19c5419f0d1ff011badcc08639be57065e84e5 | [
"MIT"
] | permissive | kylebarron/earthengine-py-notebooks | 590a343c5011f3e9a346c2379016e262aa13801f | 4e9e3bae244fb66284f77c264f19aa297fb0fea1 | refs/heads/master | 2022-07-31T07:33:21.109880 | 2020-05-18T23:42:26 | 2020-05-18T23:42:26 | 257,686,790 | 0 | 0 | MIT | 2020-04-21T18:50:58 | 2020-04-21T18:50:57 | null | UTF-8 | Python | false | false | 8,278 | py | # %%
"""
<table class="ee-notebook-buttons" align="left">
<td><a target="_blank" href="https://github.com/giswqs/earthengine-py-notebooks/tree/master/NAIP/loop_FeatureCollection.ipynb"><img width=32px src="https://www.tensorflow.org/images/GitHub-Mark-32px.png" /> View source on GitHub</a></td>
<td><a target="... | [
"[email protected]"
] | |
5e3155e560a1c4c9932aad5f2150648b1da46f76 | fd7d7e1410874d18823bbe3c0f3c521cb54e079c | /news/migrations/0008_auto_20191002_1652.py | 50dcb8502c426938f35aa56cdf27f8b4495221b8 | [
"MIT"
] | permissive | alex-muliande/tribune | 9c1728311e42b16cf90e3b6e94b64a2b1ed3c8be | 86316dd4b20a76320b4b20b86266f89aac02a326 | refs/heads/master | 2023-08-03T13:20:47.852749 | 2019-10-03T09:25:46 | 2019-10-03T09:25:46 | 212,532,363 | 1 | 0 | MIT | 2021-09-08T01:19:17 | 2019-10-03T08:37:00 | Python | UTF-8 | Python | false | false | 466 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-10-02 13:52
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('news', '0007_article_article_image'),
]
operations = [
migrations.AlterField(... | [
"[email protected]"
] | |
39e6bf4ecf39d328147ec7c400a110efd5dcabae | 292b43454189f1cb5e67fc0a6f77b9b76cc5c156 | /dvaapp/views.py | 66c904e64b907a77f5ec8839082008beb94f1765 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | junjiez/DeepVideoAnalytics | b9f4e00d800c972ae71233699f341d6f733c2d61 | 03e708a12e1941cedb1449fc7bbc02b3c0fca1d2 | refs/heads/master | 2021-06-25T21:18:49.767732 | 2017-09-12T19:16:22 | 2017-09-12T19:16:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53,986 | py | from django.shortcuts import render, redirect
from django.conf import settings
from django.http import JsonResponse
import requests
import glob
import json
from django.views.generic import ListView, DetailView
from django.utils import timezone
from .forms import UploadFileForm, YTVideoForm, AnnotationForm
from .models ... | [
"[email protected]"
] | |
c2374a4c2a0f8125c15d4daa87dc1bee036aa59b | ef54d37f8a3303013ca7469871a320d303957ed7 | /robo4.2/fusion/tests/wpst_crm/ci_fit/config/I11/CI-FIT-16-CI-FIT-17_old.py | 573ae00df59b8aacdb29e3a48d49f44cd672ae90 | [] | no_license | richa92/Jenkin_Regression_Testing | d18badfcf16bda682dfe7bcbbd66f54a9a27a58d | 24a74926170cbdfafa47e972644e2fe5b627d8ff | refs/heads/master | 2020-07-12T10:01:59.099137 | 2019-08-27T12:14:53 | 2019-08-27T12:14:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159,115 | py | def make_range_list(vrange):
rlist = []
for x in xrange(vrange['start'], (vrange['end'] + 1)):
rlist.append(vrange['prefix'] + str(x) + vrange['suffix'])
return rlist
admin_credentials = {'userName': 'Administrator', 'password': 'hpvse123'}
vcenter = {'server': '15.186.4.110', 'user': 'Administrat... | [
"[email protected]"
] | |
243e12cea1928f4024ea0d1bbd062a8b27808eb6 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /avBHBMAwf9ibDpfNM_17.py | 90a9250d618305bcb7990c7a48831401227015ca | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py |
import requests
def content_type(url):
r = requests.get('https://edabit.com/')
return r.headers['content-type']
| [
"[email protected]"
] | |
e4da1c60a852bd610107e481b15b04c840883e61 | 306a4c0c7ed32e879f76e6c101da70c46679f6bc | /copying_files_folders.py | 2ff064ba2279ee561714d6f97429272228f18007 | [] | no_license | ksoh512/automatetheboringstuff | 3552f803d73644862e2e31d307b50aff82b6a839 | 0d9ee8de7927dbe0e0f08dbfb73867ffd9bf563c | refs/heads/master | 2021-01-20T03:02:14.554780 | 2017-08-24T22:52:37 | 2017-08-24T22:52:37 | 101,343,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | import shutil, os
os.chdir('C:\\')
''' COPY FILES '''
shutil.copy('C:\\spam.txt', 'C:\\Users\\koh\\Documents\\codes\\automattheboringstuff')
shutil.copy('C:\\eggs.txt', 'C:\\Users\\koh\\Documents\\codes\\automattheboringstuff')
'''COPY FOLDERS AND FILES CONTAINED IN IT'''
shutil.copytree('C:\\delicious'... | [
"[email protected]"
] | |
c0642e90ddb142bbe67af2cbb81148287054d3d3 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/530bd27ed2c4c8e3f6a44b332569c3f73dfcb332-<test_np_mixed_precision_binary_funcs>-fix.py | 8e9d3b67eb8f1b2c486e7784f60da806ef689c24 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,667 | py | @with_seed()
@use_np
def test_np_mixed_precision_binary_funcs():
def check_mixed_precision_binary_func(func, low, high, lshape, rshape, ltype, rtype):
class TestMixedBinary(HybridBlock):
def __init__(self, func):
super(TestMixedBinary, self).__init__()
self._fu... | [
"[email protected]"
] | |
9947a3418aa2766666e453d116400e76bc1b5cfe | decefb13f8a603c1f5cc7eb00634b4649915204f | /packages/node-mobile/deps/openssl/config/archs/solaris-x86-gcc/asm/openssl.gypi | 60c75c7f2eafd2a30bcd31118d95d85e81e6b0a0 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown",
"Zlib",
"CC0-1.0",
"ISC",
"LicenseRef-scancode-public-domain",
"ICU",
"MIT",
"LicenseRef-scancode-public-domain-disclaimer",
"Artistic-2.0",
"BSD-3-Clause",
"NTP",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause",
"LicenseR... | permissive | open-pwa/open-pwa | f092b377dc6cb04123a16ef96811ad09a9956c26 | 4c88c8520b4f6e7af8701393fd2cedbe1b209e8f | refs/heads/master | 2022-05-28T22:05:19.514921 | 2022-05-20T07:27:10 | 2022-05-20T07:27:10 | 247,925,596 | 24 | 1 | Apache-2.0 | 2021-08-10T07:38:42 | 2020-03-17T09:13:00 | C++ | UTF-8 | Python | false | false | 28,783 | gypi | {
'variables': {
'openssl_sources': [
'openssl/ssl/bio_ssl.c',
'openssl/ssl/d1_lib.c',
'openssl/ssl/d1_msg.c',
'openssl/ssl/d1_srtp.c',
'openssl/ssl/methods.c',
'openssl/ssl/packet.c',
'openssl/ssl/pqueue.c',
'openssl/ssl/record/dtls1_bitmap.c',
'openssl/ssl/r... | [
"[email protected]"
] | |
34c27860cdf81fee0a1067a3153e527e6bec3bf2 | 126970b5a7aef7def577922f9ed4bc0889ec5804 | /products/views.py | 6d46af5e0d4df6315060a0e34a7600163f3b5171 | [] | no_license | HeshamSayed/ElectroBekia | 6544955d1449ce03e6fd432bfdff05422a9f92ba | 42fab2ed3dc43f6f3e3e75cc17a7a26cb747d385 | refs/heads/master | 2022-12-13T21:47:10.673963 | 2019-06-18T16:03:04 | 2019-06-18T16:03:04 | 186,132,437 | 0 | 3 | null | 2022-12-08T05:08:00 | 2019-05-11T12:50:58 | CSS | UTF-8 | Python | false | false | 623 | py | from django.shortcuts import render, get_object_or_404
from .models import *
from cart.forms import CartAddProductForm
def product_list(request):
categories = Category.objects.all()
products = Product.objects.all()
context = {
'categories': categories,
'products': products,
}
return render(request... | [
"[email protected]"
] | |
360817c27d99ca21241781e95372efb461f4a4b0 | dba16143d8fa6aa73ca1d4df7bcfaca42824412c | /src/year2021/day05b.py | 7312f094f2e1e4a1e1a73ecd10c0b4f4b98def4c | [
"Unlicense"
] | permissive | lancelote/advent_of_code | 84559bf633189db3c3e4008b7777b1112f7ecd30 | 4b8ac6a97859b1320f77ba0ee91168b58db28cdb | refs/heads/master | 2023-02-03T14:13:07.674369 | 2023-01-24T20:06:43 | 2023-01-24T20:06:43 | 47,609,324 | 11 | 0 | null | 2019-10-07T07:06:42 | 2015-12-08T08:35:51 | Python | UTF-8 | Python | false | false | 305 | py | """2021 - Day 5 Part 2: Hydrothermal Venture."""
from src.year2021.day05a import Floor
from src.year2021.day05a import Segment
def solve(task: str) -> int:
segments = [Segment.from_line(line) for line in task.splitlines()]
floor = Floor()
floor.draw(segments)
return floor.num_overlap
| [
"[email protected]"
] | |
0c4ced2b9b0cda7893c263ca688f35f779c8fbfb | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_257/ch16_2020_09_23_12_39_52_743421.py | 18424641beeb01c2388537b04c4757f22a441245 | [] | 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 | 133 | py | conta= float(input("Valor da conta com 10%: R$ "))
conta += conta*10/100
print("Valor da conta com 10%: R$ {0:.2f}".format(conta)) | [
"[email protected]"
] | |
1c44748dba44714166cfa7f35d87338249edc098 | 088e000eb5f16e6d0d56c19833b37de4e67d1097 | /inference-engine/ie_bridges/python/sample/benchmark_app/benchmark/utils/inputs_filling.py | 00a294524716055d8a481d0892e5cc307a9458b6 | [
"Apache-2.0"
] | permissive | projectceladon/dldt | 614ba719a428cbb46d64ab8d1e845ac25e85a53e | ba6e22b1b5ee4cbefcc30e8d9493cddb0bb3dfdf | refs/heads/2019 | 2022-11-24T10:22:34.693033 | 2019-08-09T16:02:42 | 2019-08-09T16:02:42 | 204,383,002 | 1 | 1 | Apache-2.0 | 2022-11-22T04:06:09 | 2019-08-26T02:48:52 | C++ | UTF-8 | Python | false | false | 8,029 | py | """
Copyright (C) 2018-2019 Intel Corporation
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 i... | [
"[email protected]"
] | |
b11132f9a28ade952b2c9bb6c536a6194a591483 | c4e729edfb9b056b9aa111a31eebefe41f39ac46 | /cloudweb/db/message/message_object.py | 5f4f03c9a16d5b91d0beb86ef7b8ac7b1a9f8a7d | [] | no_license | sun3shines/web | 870a558538278ecb4a39e5d9cab4ba2ebb626ca3 | 9e6f83e6e793f86ecdf7202daae3903cc052f266 | refs/heads/master | 2021-01-18T23:49:48.722245 | 2016-07-02T10:25:24 | 2016-07-02T10:25:24 | 54,888,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,712 | py | # -*- coding: utf-8 -*-
from urllib import unquote
from cloudweb.db.db_record import record_put
# msgPut -> db_message_object_put
# msgGet -> db_message_object_get
# msgHead -> db_message_object_head
# msgMeta -> db_message_object_meta
# msgDelete -> db_message_object_delete
# msgDeleteRecycle -> db_message_object_de... | [
"[email protected]"
] | |
f78c3b2044a52976c4a838d5b89dbdf2832b3022 | 3b8a4101995b1ba889dc685901a62db72ab13184 | /examples/tweets/config.py | 9956e34e66ccae84cc8211d70d5b54357f47a9c3 | [
"BSD-3-Clause"
] | permissive | tchen0123/pulsar | 586aeb69419c0eac034431405979edd91b4347b2 | 53a311e51974a27f6ef081c38193b41dede1412f | refs/heads/master | 2021-01-18T19:12:04.143947 | 2015-07-21T06:29:04 | 2015-07-21T06:29:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | twitter_api_key = 'twitter API key of your registered twitter application'
twitter_api_secret = 'consumer secret'
twitter_access_token = 'Access token'
twitter_access_secret = 'Access token secret'
twitter_stream_filter = {'track': 'python'}
| [
"[email protected]"
] | |
b03ac5488518a3f330bc0113472150497457e28f | 44d2f40d4229f1cb26cec013cb18751d8006a219 | /snippets_backend/settings/development.py | ffcb584fad67c3d5c1faf1d5e6527be5cf605b3f | [] | no_license | prettyirrelevant/snippets-backend | 4bcb1d4c2cfa9bcd099856f026320c1250f08dc3 | 0006c194870904620599ca52b8b1510b11c1e2e9 | refs/heads/master | 2023-03-21T19:36:22.230824 | 2021-03-22T09:57:14 | 2021-03-22T09:57:14 | 331,959,739 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,559 | py | """
Django settings for snippets_backend project.
Generated by 'django-admin startproject' using Django 3.1.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
fro... | [
"[email protected]"
] | |
07ececcce929817e0e7dd845a6f6bbe686954a00 | 701ff727e23005eebc4410b30752f32e64ead30e | /config/settings.py | 78b947ed91b70730b28c4c615c31a10434da97e3 | [] | no_license | sinjorjob/django-chat | 79ae5a94464301b2913be18ef5c81d2c870817b2 | d35d7fdb3888cdefa1a4daead05f10454a20ef4f | refs/heads/master | 2023-06-25T09:18:51.551222 | 2021-07-30T19:13:02 | 2021-07-30T19:13:02 | 391,166,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,930 | py | """
Django settings for config project.
Generated by 'django-admin startproject' using Django 3.2.5.
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/
"""
f... | [
"[email protected]"
] | |
2252b90ba8deb223db2d75fe3370861ede934d35 | bcc5ebe8c5d0b78c43087f0c292e329cb8d78e6a | /venv/bin/pasteurize | fbc9fe65369d9648f41dfaf9c689c7a6bbe36855 | [
"MIT"
] | permissive | RaymondDashWu/generative-structures-dapp | 1ce0fc0028c97de49c2843d4b3e30c84e92fb769 | 06819e9333c663a8be3eca444b55dd244d31f87b | refs/heads/master | 2022-12-26T22:59:14.699771 | 2019-08-09T20:13:59 | 2019-08-09T20:13:59 | 193,174,106 | 0 | 0 | MIT | 2022-12-03T14:43:11 | 2019-06-22T00:27:31 | Python | UTF-8 | Python | false | false | 320 | #!/Users/raymondmbp/makeschool/BEW-2.4-Decentralized-Apps-Distributed-Protocols/generative-structures/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from libpasteurize.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"[email protected]"
] | ||
515f571aec0c41aa280a7ad4f155a691de756151 | e7efae2b83216d9621bd93390959d652de779c3d | /datadog_checks_dev/datadog_checks/dev/tooling/commands/agent/__init__.py | 8153698063f3e5affe147fad62925b3a12cfa3e0 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"BSD-3-Clause-Modification",
"Unlicense",
"Apache-2.0",
"LGPL-3.0-only",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"CC0-1.0"
] | permissive | DataDog/integrations-core | ee1886cc7655972b2791e6ab8a1c62ab35afdb47 | 406072e4294edff5b46b513f0cdf7c2c00fac9d2 | refs/heads/master | 2023-08-31T04:08:06.243593 | 2023-08-30T18:22:10 | 2023-08-30T18:22:10 | 47,203,045 | 852 | 1,548 | BSD-3-Clause | 2023-09-14T16:39:54 | 2015-12-01T16:41:45 | Python | UTF-8 | Python | false | false | 617 | py | # (C) Datadog, Inc. 2018-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
import click
from ..console import CONTEXT_SETTINGS
from .changelog import changelog
from .integrations import integrations
from .integrations_changelog import integrations_changelog
from .requirements im... | [
"[email protected]"
] | |
70926b02978529fa9edc66e2ea1a2862ddad1222 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_074/ch153_2020_04_13_20_39_02_324902.py | 7c41c4092f5c5dbd3653ad6e6e0f0b55a83b2984 | [] | 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 | 391 | py | def agrupa_por_idade(dicio):
dicio={[nome]:idade}
key=nome
dic={}
if idade<=11:
dic.update={criança:[nome]}
return dic
if idade>=12 and idade>=17:
dic.update={adolescente:[nome]}
return dic
if idade>=18 and idade<=59:
dic.update={adulto:[nome]}
ret... | [
"[email protected]"
] | |
83fec668e56fcdff66e94ad5af3d22793aba1ac8 | 2e67bdd45c0427490880ca02f913a923a0890cdf | /foodcartapp/migrations/0043_order_products.py | 759a18dabb4d27be55133c80f21cd2960ebab509 | [] | no_license | KozhevnikovM/devman-star-burger | 5ed72c2a8a99bee12770bd2d28aa35c92be0cff8 | 54836d0216ea1117ea12ddfff11afbef15e7a3b5 | refs/heads/master | 2023-04-12T23:23:28.862134 | 2021-04-19T13:17:15 | 2021-04-19T13:17:15 | 355,147,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | # Generated by Django 3.0.7 on 2021-03-23 12:36
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('foodcartapp', '0042_auto_20210317_1251'),
]
operations = [
migrations.AddField(
model_name='order',
name='products',... | [
"[email protected]"
] | |
849bc3bb90ec4d300eed4c9ce126e2b3ed2aeef5 | b483c598fa375e9af02348960f210b9f482bd655 | /pythonbrasil/exercicios/listas/LT resp 06.py | 4a956fe6704cf8f89b2b9ac2bdcf1bef84176545 | [
"MIT"
] | permissive | brunofonsousa/python | 6f766d08bf193180ea9a4903cb93ffd167db588d | 8f2f26c77015c0baaa76174e004406b4115272c7 | refs/heads/master | 2022-09-30T14:58:01.080749 | 2020-06-08T09:55:35 | 2020-06-08T09:55:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | '''
Faça um Programa que peça as quatro notas de 10 alunos, calcule e
armazene num vetor a média de cada aluno, imprima o número de alunos
com média maior ou igual a 7.0.
'''
alunos = 2
nota = 0
soma = 0
for i in range(1,3):
notas = []
for j in range(1,3):
nota += float(input("Digite a %iª nota do alu... | [
"[email protected]"
] | |
683033b34e5ba82571bedabf75dda4cfedc1e88c | bb62f4738e32b82904b61d4be9d21b41d05ed694 | /motion_planners/rrt_connect.py | bb1702b156f42c9066f8eda37cc052634eb5eeba | [
"MIT"
] | permissive | yhome22/motion-planners | 34049b1f65cb8f45d656ce61d94e4a605d861615 | 891423418a9c6ac5d6fbe2bbc9c51087ae7d9b03 | refs/heads/master | 2023-06-11T10:38:10.807421 | 2021-06-15T23:54:51 | 2021-06-15T23:54:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,461 | py | import time
from .primitives import extend_towards
from .rrt import TreeNode, configs
from .utils import irange, RRT_ITERATIONS, INF, elapsed_time
def wrap_collision_fn(collision_fn):
# TODO: joint limits
# import inspect
# print(inspect.getargspec(collision_fn))
# print(dir(collision_fn))
def fn(... | [
"[email protected]"
] | |
938d74f683b6899da1a3a4e45a9ca95feeccf13d | 5b777b268b804bc984f87d714ef25677ab10fab1 | /causallib/estimation/marginal_outcome.py | 6c83f15371c3f78daa5f11e480dbc6c2d0148bae | [
"Apache-2.0"
] | permissive | vishalbelsare/causallib | 71c06cafbf9d3f2163c4921d64cab8d36413ca67 | 9f0ddb4696d580cf0a529a6c6ce98b40b34e3796 | refs/heads/master | 2023-07-10T09:57:57.293064 | 2022-12-19T15:19:28 | 2022-12-19T15:19:28 | 230,206,247 | 0 | 0 | Apache-2.0 | 2022-12-22T00:45:47 | 2019-12-26T06:14:10 | Python | UTF-8 | Python | false | false | 3,669 | py | """
(C) Copyright 2019 IBM Corp.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
... | [
"[email protected]"
] | |
9e2d106caf576c763e11e32eb14eb27cc379899f | 3c0fb20d77a8b4b63691fc8233cce44a50ecf36b | /src/core/geom/data/transform.py | 124b6149b51c0042e0b47a1a0325c7e1461de25c | [] | no_license | jorjuato/panda3dstudio | 8a9b35000b8850c0d2968f529a983b66ad01f2f8 | b6cf2a1d126273ca64ecec29f23eba7bf297f418 | refs/heads/master | 2020-12-06T19:16:42.105673 | 2016-04-26T18:14:44 | 2016-04-26T18:14:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,187 | py | from ...base import *
class GeomTransformBase(BaseObject):
def __init__(self):
self._verts_to_transf = {"vert": {}, "edge": {}, "poly": {}}
self._rows_to_transf = {"vert": None, "edge": None, "poly": None}
self._transf_start_data = {"bbox": None, "pos_array": None}
def _update_verts... | [
"[email protected]"
] | |
d627be799d34ca09b15dbb8a8ba4999497693d40 | babc3e26d66a8084c9f84a0431338bafabae6ffd | /TaeJuneJoung/COD/lv2.OddOccurrencesInArray.py | d4d409749fec81fd81fda721db9af44dc3514b7c | [] | no_license | hoteldelluna/AlgoStudy | 5c23a1bfb07dbfbabc5bedd541d61784d58d3edc | 49ec098cecf2b775727d5648161f773e5488089b | refs/heads/dev | 2022-10-09T14:29:00.580834 | 2020-01-25T14:40:55 | 2020-01-25T14:40:55 | 201,632,052 | 5 | 0 | null | 2020-01-25T14:40:57 | 2019-08-10T13:11:41 | Python | UTF-8 | Python | false | false | 1,356 | py | """
무조건 하나만 홀수가 발생하니
마지막 index는 짝수일 수밖에 없다.(0부터 시작이니)
[조건]
1. A의 크기가 1인 경우
2. 홀수가 중간에 있는 경우
3. 홀수가 맨 마지막에 있는 경우
"""
def solution(A):
A.sort()
for i in range(0, len(A)-1, 2):
if A[i] != A[i+1]:
# 조건2 - 홀수가 1개밖에 없으니 답이 아니라면 짝수개이므로 앞에 것이 틀리다.
return A[i]
# 조건1, 3 - 조건2에서 ... | [
"[email protected]"
] | |
92ea82d00e3baa47f0708f8943155310bef045d0 | eda9187adfd53c03f55207ad05d09d2d118baa4f | /python3_base/exception.py | 78bffed238c1ab8437126e7d6c33d8e406d2aae6 | [] | no_license | HuiZhaozh/python_tutorials | 168761c9d21ad127a604512d7c6c6b38b4faa3c7 | bde4245741081656875bcba2e4e4fcb6b711a3d9 | refs/heads/master | 2023-07-07T20:36:20.137647 | 2020-04-24T07:18:25 | 2020-04-24T07:18:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | # -*- coding:utf-8 -*-
# /usr/bin/python
'''
Author:Yan Errol
Email:[email protected]
Wechat:qq260187357
Date:2019-04-29--21:59
Describe:异常诊断
'''
import time
def func():
try:
for i in range(5):
if i >3:
raise Exception("数字大于3了==")
except Exception as ret:
print (re... | [
"[email protected]"
] | |
46a9ea2d394fede56dd4689d643f5f6492dbb5d8 | 9e05aa78126e76040e4afdd83c1eba95a9c787f5 | /generator/list2.py | 9ddb23a03b2684eb7ade8a8f5033cda8d41be041 | [
"MIT"
] | permissive | lreis2415/geovalidator | 8df4cb4671288b1242d0035cf1cde1944676e1df | dd64b0577aa458b39022afa503e890e966eb56d8 | refs/heads/master | 2022-12-10T18:32:41.293337 | 2021-03-10T01:04:20 | 2021-03-10T01:04:20 | 233,007,264 | 0 | 0 | MIT | 2022-12-08T08:04:28 | 2020-01-10T09:00:31 | Python | UTF-8 | Python | false | false | 1,131 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# author: houzhiwei
# time: 2020/1/4 16:10
from rdflib import BNode, Graph, RDF, Namespace, Literal
from rdflib.namespace import DCTERMS
g = Graph()
# namespaces
data = Namespace("http://www.egc.org/ont/data#")
saga = Namespace("http://www.egc.org/ont/process/saga#")
sh =... | [
"[email protected]"
] | |
7562eab065b565fc40986e5b85bde0cffe2bf27d | dfcb65de02953afaac24cc926ee32fcdede1ac21 | /src/pyrin/caching/local/handlers/__init__.py | 4f7d9594e8de35a0a70f0749192b9e0b9fa7c5d4 | [
"BSD-3-Clause"
] | permissive | mononobi/pyrin | 031d0c38da945b76b07ea100554ffc7f8081b05e | 9d4776498225de4f3d16a4600b5b19212abe8562 | refs/heads/master | 2023-08-31T03:56:44.700142 | 2023-08-20T22:20:06 | 2023-08-20T22:20:06 | 185,481,041 | 20 | 8 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | # -*- coding: utf-8 -*-
"""
caching local handlers package.
"""
from pyrin.packaging.base import Package
class CachingLocalHandlersPackage(Package):
"""
caching local handlers package class.
"""
NAME = __name__
DEPENDS = ['pyrin.configuration',
'pyrin.globalization.datetime',
... | [
"[email protected]"
] | |
8f8808d79b13456226c20d29fa09308ae24382df | cdf23a2b22b0d0643f9bf48fd8c7d0a8ef83945d | /qstrader/utils/console.py | beee1fa020b1139e7988a543dd9ea3de95049652 | [
"MIT"
] | permissive | PabloHebe/qstrader | 2e23d267e0e2cf6632011eaea486891c8eed4c17 | 81c9473fbb782220c5cced2e331fb7a7b0b0082d | refs/heads/master | 2022-08-27T10:28:27.411188 | 2019-12-16T14:17:40 | 2019-12-16T14:17:40 | 111,547,620 | 0 | 1 | MIT | 2020-01-05T12:54:16 | 2017-11-21T12:42:55 | Python | UTF-8 | Python | false | false | 258 | py | BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE = range(8)
def string_colour(text, colour=WHITE):
"""
Create string text in a particular colour to the terminal.
"""
seq = "\x1b[1;%dm" % (30 + colour) + text + "\x1b[0m"
return seq
| [
"[email protected]"
] | |
c7d99b683e6acbbe80cbc85721394ac0f1c7323f | f999bc5a6e0da4f0904ef2112d7b6191f180ca5b | /Advent of code/Day2_Part1.py | 44f5dafb0aa805206e823978d61b1740a82b147f | [] | no_license | ritesh-deshmukh/Algorithms-and-Data-Structures | 721485fbe91a5bdb4d7f99042077e3f813d177cf | 2d3a9842824305b1c64b727abd7c354d221b7cda | refs/heads/master | 2022-11-09T00:18:51.203415 | 2018-10-08T22:31:05 | 2018-10-08T22:31:05 | 132,504,988 | 0 | 1 | null | 2022-10-23T00:51:15 | 2018-05-07T19:07:33 | Python | UTF-8 | Python | false | false | 1,297 | py | # f = open("elves_input", "r")
# if f.mode == "r":
# input_task = f.read()
# input_task = f.readlines()
# for symbol in input_task:
# dimensions = symbol.split("x")
# print(dimensions)
with open('elves_input') as f:
dimensions_data = []
for line in f:
line = line.split('x') # to deal with... | [
"[email protected]"
] | |
1e68f4426a5b3835594ad8792a036f353f9b5734 | 32eba552c1a8bccb3a329d3d152b6b042161be3c | /15_pj_pdf_merger.py | d316f0b6a7a805701c4abd4debff148e5b564734 | [] | no_license | ilmoi/ATBS | d3f501dbf4b1099b76c42bead3ec48de3a935a86 | 7f6993751e2ad18af36de04168d32b049d85a9c1 | refs/heads/master | 2022-07-11T21:56:23.284871 | 2020-05-15T05:26:06 | 2020-05-15T05:26:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,486 | py | """Finds all pdfs in cur dir > sorts alphabetically > merges together taking the first page only once."""
import PyPDF2
import os
import re
# prep the files list
files = os.listdir()
chosen = []
r = re.compile(r'.*\.pdf')
for file in files:
try:
mo = r.search(file)
# print(mo.group())
chos... | [
"[email protected]"
] | |
9dedd846ed49f891c3ea2109f26b3eed81fcdf88 | 320bf3ddd6233577d9f2f08f046eaef96f881e4e | /simplemooc/core/urls.py | eb0570de064c9f271570646c26f555b2bce99b28 | [
"MIT"
] | permissive | leorzz/simplemooc | 057ba3e220c20907017edfd8d0fc0422f9a6d99c | 8b1c5e939d534b1fd729596df4c59fc69708b896 | refs/heads/master | 2022-10-22T02:24:46.733062 | 2017-12-17T16:37:04 | 2017-12-17T16:37:04 | 112,488,280 | 0 | 1 | MIT | 2022-10-08T17:50:17 | 2017-11-29T14:52:23 | Python | UTF-8 | Python | false | false | 523 | py | from django.conf.urls import include, url
from django.contrib import admin
admin.autodiscover()
import simplemooc.core.views
urlpatterns = [
url(r'^$', simplemooc.core.views.home, name='home'),
url(r'^contact/$',simplemooc.core.views.contact, name='contact'),
url(r'^about/$',simplemooc.core.views.about, n... | [
"[email protected]"
] | |
c2cfda99592ea8ed25c13139448162753c8e3e09 | 6ff7b3cd99aea670792aad35f49b4d762bd3952a | /migrations/versions/f8f3d3338933_initial.py | e1fddda3a2e45b3ac97c7d14513b75afa99b9458 | [] | no_license | melardev/FlaskApiCrud | 3af8c1f375f6aefe258334368fdc7bcab900a2a0 | 40e0ffe6f690a1698a3c3f6dd1a03398260cd073 | refs/heads/master | 2020-04-27T23:06:51.527985 | 2019-03-10T00:52:26 | 2019-03-10T00:52:26 | 174,762,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 953 | py | """'initial'
Revision ID: f8f3d3338933
Revises:
Create Date: 2019-03-08 21:02:46.699000
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'f8f3d3338933'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generate... | [
"[email protected]"
] | |
dfbba26851a42e9ca1b1a62230992475e7e16da9 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/12/usersdata/76/5514/submittedfiles/impedimento.py | e64198eb3222c4320efd7c71f70c7c45cd091526 | [] | 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 | 276 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
#COMECE SEU CÓDIGO AQUI
L = input('Digite o valor de L:')
R = input('Digite o valor de R:')
D = input('Digite o valor de D:')
if R>50 and L<R and R>D:
print('S')
if R>50 and L<R and R<D:
print('N') | [
"[email protected]"
] | |
aad8c4965b91dbc1a68802b5dc45aa593d98d20a | d65cb684d344ab072d0f9801afbd074768a059a2 | /Suanfa/天际线问题Suanfa1_3.py | e826e906c21a8c27b4b7e96acc49c55fb8d6548d | [] | no_license | QiuHongHao123/Algorithm-Practise | a918debd002182010b78e284df038c01d9921619 | e7a7b7537edbbb8fa35c2dddf2b122cf863e479d | refs/heads/master | 2023-03-14T09:16:28.407137 | 2021-03-01T11:57:54 | 2021-03-01T11:57:54 | 272,642,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,274 | py | def getSkyline(buildings):
if not buildings: return []
if len(buildings) == 1:
return [[buildings[0][0], buildings[0][2]], [buildings[0][1], 0]]
mid = len(buildings) // 2
left = getSkyline(buildings[:mid])
right = getSkyline(buildings[mid:])
return merge(left, right)
def merge(left, rig... | [
"[email protected]"
] | |
869d7f8aec582f9c09dfa15e9791d99d7c9c617d | 170a4c0b1accb9468567f6a88254ff738f2a8166 | /EQ5D.py | 3fab62e39350976be780783eaeae004522dfd006 | [] | no_license | yazhisun/Labs_PreferenceScores | 2ecd9acdb21403f912200db1fa41f0f6e325ef18 | 3eb0ec0e55f1772b15a3108dd0a85dbcf75e1743 | refs/heads/master | 2021-05-09T22:56:44.996009 | 2018-01-18T16:03:31 | 2018-01-18T16:03:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py |
# EQ-5D regression coefficients
Constant = 0.081
N3 = 0.269
dictCoefficients = {'Mobility': [0, 0.069, 0.314],
'Self-Care': [0, 0.104, 0.214],
'Usual Activity': [0, 0.036, 0.094],
'Pain/Discomfort': [0, 0.123, 0.386],
... | [
"[email protected]"
] | |
49681f30a6612dac501c48d0b1e070e630b6bf72 | fd9257a4cc04b89c2b8c92008770a82ccdfe85bd | /build/spdlog/catkin_generated/generate_cached_setup.py | 3db5318c1429f193fb60f8495755cfd61895d77f | [] | no_license | Zauberr/KAL | 40b135f02e9ae9c7bf55b064094aaff88c43628e | 225e538058b632c8c14cc638e12fcb124bd81e29 | refs/heads/master | 2020-08-16T18:26:19.863213 | 2019-10-16T13:38:46 | 2019-10-16T13:38:46 | 215,537,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,350 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/mrtros/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.path.... | [
"[email protected]"
] | |
37b973fff2fbbb70adca43095f7713a15f44886e | b6fc54cff7037f5e4ef26cb4a645d5ea5a6fecdf | /000989letpy/letpy_059_is_20200503.py | 6e16cfdee1ebd5c0dcfe90e1764e2c9e70037371 | [
"Apache-2.0"
] | permissive | SafonovMikhail/python_000577 | 5483eaf2f7c73bc619ce1f5de67d8d689d2e7dd4 | f2dccac82a37df430c4eb7425b5d084d83520409 | refs/heads/master | 2022-12-08T10:53:57.202746 | 2022-12-07T09:09:51 | 2022-12-07T09:09:51 | 204,713,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53 | py | a = "Hello, world!"
b = "Hello, world!"
print(a is b) | [
"[email protected]"
] | |
4c69aba309858501551b000e6236b893e0d8f7f7 | 30b2eb381ec8f3225671274e77a55b63206dfb60 | /leetcode/p0461/solve.py | d9975e98a22b92ab40c7733e7fe0660fbb2ee3ca | [] | no_license | b1ueskydragon/PythonGround | 52888f32336e5e20be8490454beb67e676be7057 | 5a401250e88926235f581e6c004d1a4acb44230d | refs/heads/master | 2021-07-10T03:00:38.340959 | 2021-04-02T03:34:29 | 2021-04-02T03:34:29 | 98,208,402 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | class Solution:
def hammingDistance(self, x: int, y: int) -> int:
xor = x ^ y
ones = 0
while xor:
if (xor | 1) == xor:
ones += 1
xor >>= 1
return ones
if __name__ == '__main__':
s = Solution()
"""
011
101
---
110
... | [
"[email protected]"
] | |
61d86514b4f788b34ca4fa7e4b2e2c9fe7d8d723 | c07de6f278e7ffc11b4e1c7b37fdeae0d8aeb4a1 | /Section A/group10/task_1/part_1.py | 81576b2078ad1bfc40b4448aba58bd1cf2c06845 | [] | no_license | Medhashah/Big-DataProject | 729c1d14efc5096bae3dd150e9c218fa583a7861 | 571473626e82881b07073edf1de52f2b3563b294 | refs/heads/master | 2020-10-01T07:30:25.637471 | 2019-12-12T21:16:08 | 2019-12-12T21:16:08 | 227,487,323 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,176 | py | import json
import subprocess
import os
from dateutil import parser
from pyspark.sql import SparkSession
from pyspark.sql.functions import *
import pyspark.sql.functions as F
import time
import sys
def main(start_index, end_index):
spark = SparkSession \
.builder \
.appName("big_data_prof") \
... | [
"[email protected]"
] | |
5493b2f3a565402852a6d878c4d63e0d4b1c5509 | 3263139017e2e3cc253e93a9fb92604b00176466 | /pias/pias_logging.py | 761213610fb3cf88f47af4c7ab242ecf47990d20 | [] | no_license | saalfeldlab/pias | 245fb589b30e197fc03c152231ecc138d6ac7ae3 | acc7c19dc0ca81b846816ec0d0edf7ff87d46665 | refs/heads/master | 2020-04-22T06:38:58.126298 | 2019-03-10T19:01:53 | 2019-03-10T19:01:56 | 170,197,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | import logging
print(logging)
trace = logging.DEBUG- 5
logging.TRACE = trace
logging.addLevelName(trace, 'TRACE')
class PiasLogger(logging.getLoggerClass()):
def trace(self, msg, *args, **kwargs):
self.log(trace, msg, *args, **kwargs)
logging.setLoggerClass(PiasLogger)
levels = ('NOTSET', 'DEBUG', 'INFO'... | [
"[email protected]"
] | |
ba81708752f0fb17ace59645543fa3e7548bc1cb | 6bfcb3b91c2489cab0d9788079f69f37cf7e1387 | /test/test-bbox.py | fdd971e119df9736e87277292955aa7e59241bc5 | [
"BSD-3-Clause"
] | permissive | glamod/cdm-lens | 02f77f4270594acfadcf5b628bcdd8ea9a574b46 | d257906a3cd9fd01c118777803ef6b880b15ba81 | refs/heads/master | 2023-01-28T17:44:25.861444 | 2023-01-13T08:55:13 | 2023-01-13T08:55:13 | 212,615,087 | 1 | 0 | NOASSERTION | 2022-12-08T06:50:15 | 2019-10-03T15:34:44 | Python | UTF-8 | Python | false | false | 2,423 | py | import requests
import pandas as pd
import io
import math
TMPL = 'http://glamod2.ceda.ac.uk/select/?domain=land&frequency=monthly&variable=accumulated_precipitation,air_temperature&intended_use=non-commercial&data_quality=quality_controlled&column_selection=detailed_metadata&year=1974&month=03&bbox={w}.0,{s}.0,{e}.0,... | [
"[email protected]"
] | |
1e4c3dc8648edeb0f51d861b4003419811ebc27a | 28b6e6a35b6591f36140b6cb907ac60c71dbcab1 | /app/migrations/0001_initial.py | b9dba1404818a767036d64bf7989c45046f5bdcf | [] | no_license | mahmud-sajib/Social-Profile-Rest-Api | 97c89af42439d08e730b3901fc76ac21cc3a7280 | 5c84ad847ce3303d63284a4363a2b1b4aaf76319 | refs/heads/master | 2023-03-22T09:24:00.439550 | 2021-03-15T08:18:44 | 2021-03-15T08:18:44 | 347,887,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 989 | py | # Generated by Django 3.1 on 2021-02-28 06:31
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),
]
opera... | [
"[email protected]"
] | |
0a6291eaae1de1fc9b8321ad436642d3776c3ae5 | d48dfa622e07d346a91be3aa8e8657e409faf552 | /RozbudowaKodu/lab_files/lab_file_2.py | 6b25fe1a7a19217f18835bf54768e39c3fa1b477 | [] | no_license | sineczek/PythonSrednioZaawansowany | 71c8c94f7cdc193482a50b94315b86e1f0ab0039 | 75823b36de99ef9ac487672cf131a0b84ce23d2b | refs/heads/main | 2023-03-14T04:33:26.853500 | 2021-03-06T18:13:02 | 2021-03-06T18:13:02 | 332,524,333 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | import math
argument_list = []
results_list = []
for i in range (1000000):
argument_list.append(i/10)
for x in argument_list:
results_list.append(abs(x**3 - x**0.5))
print('min = {} max = {}'.format(min(results_list), max(results_list))) | [
"[email protected]"
] | |
c668614ba1c31b9ddada5697bd9bd9833931bd3e | d28a65d23c204a9736b597ae510d9dd54d2ffd0f | /bin/newdb | cbffe8f0ede31ac97c8ea7393d309dee7b9fa505 | [
"BSD-3-Clause"
] | permissive | cts2/rf2db | 99ba327611e620fc5533245064afcc1daff7c164 | 985cd7ad84c8907306a0d7d309d4a1c0fb422ba4 | refs/heads/master | 2020-05-17T22:37:25.476553 | 2015-08-24T22:18:19 | 2015-08-24T22:18:19 | 15,264,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,053 | #!/usr/local/bin/python
# -*- coding: utf-8 -*-
# Copyright (c) 2013, Mayo Clinic
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# Redistributions of source code must retain the above copyr... | [
"[email protected]"
] | ||
852065b653ca396ea321c7ff5ad1faeaba1cebe6 | 88b4b883c1a262b5f9ca2c97bf1835d6d73d9f0b | /src/api/python/hce/ftests/ftest_exit_code_simple.py | b2c4a8d9a82b0002258fc983f2ffd5611aca4435 | [] | no_license | hce-project/hce-bundle | 2f93dc219d717b9983c4bb534884e4a4b95e9b7b | 856a6df2acccd67d7af640ed09f05b2c99895f2e | refs/heads/master | 2021-09-07T22:55:20.964266 | 2018-03-02T12:00:42 | 2018-03-02T12:00:42 | 104,993,955 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | #!/usr/bin/python
"""
HCE project, Python bindings, Distributed Tasks Manager application.
RTCFinalizer Class content main functional for finalize realtime crawling.
@package: dc
@file rtc-finalizer.py
@author Oleksii <[email protected]>, bgv, Alexander Vybornyh <[email protected]>
@link: http:/... | [
"bgv@bgv-d9"
] | bgv@bgv-d9 |
65e1d34a1f7f96955c2ec68156d6da06d5ed4e7f | 9c38f3a354844f5080632005630d249d6487ebb3 | /haspy/test/simple/classdef_4.py | e8b6676653624320671c3245c2ff360d34222689 | [
"MIT"
] | permissive | keithroe/keithscode | ee7247ad6bdd844279f29a56718992cb886f9215 | 470c6b833b9b8bc2c78d1b43aac896b0ce9c9a7c | refs/heads/master | 2021-01-10T08:48:12.729594 | 2018-10-16T17:48:31 | 2018-10-16T17:48:31 | 51,531,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25 | py | @b(c)
@d
class a:
pass
| [
"keithroe@cba41313-dcc7-113d-0d3d-2a2d30939b49"
] | keithroe@cba41313-dcc7-113d-0d3d-2a2d30939b49 |
8025ba35b9d424317c8728eb00872d51f226b847 | 5fe083b1082dd960dda5789b1cac7287be1d882b | /bin/parse_oneway.py | ade40fc8bd3d76417799a19345007a36ee098b97 | [
"MIT"
] | permissive | single-cell-rna-sequencing/scanorama | d412a98386354483a7ae768cb314731084c36431 | 60d21e5f71722baedc1cc0c2f0bff0338116b16a | refs/heads/master | 2020-05-18T19:03:02.178470 | 2018-12-11T23:14:55 | 2018-12-11T23:14:55 | 184,600,314 | 0 | 1 | null | 2019-05-02T14:55:33 | 2019-05-02T14:55:33 | null | UTF-8 | Python | false | false | 1,088 | py | import numpy as np
from scanorama import plt
plt.rcParams.update({'font.size': 25})
import sys
scano, uncor = {}, {}
in_scano = True
for line in open(sys.argv[1]):
fields = line.rstrip().split()
if len(fields) > 3:
continue
try:
F = float(fields[1])
except ValueError:
continue
... | [
"[email protected]"
] | |
32f4c462ec8097a34c1519e066a80a65f1a14c8f | 4f3a4c194451eae32f1ff7cf3b0db947e3892365 | /contest24/matrix.py | 6a654f89bbe393517b379bdacf7311c9a7f2387e | [] | no_license | szhongren/leetcode | 84dd848edbfd728b344927f4f3c376b89b6a81f4 | 8cda0518440488992d7e2c70cb8555ec7b34083f | refs/heads/master | 2021-12-01T01:34:54.639508 | 2021-11-30T05:54:45 | 2021-11-30T05:54:45 | 83,624,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,146 | py | """
Given a matrix consists of 0 and 1, find the distance of the nearest 0 for each cell.
The distance between two adjacent cells is 1.
Example 1:
Input:
0 0 0
0 1 0
0 0 0
Output:
0 0 0
0 1 0
0 0 0
Example 2:
Input:
0 0 0
0 1 0
1 1 1
Output:
0 0 0
0 1 0
1 2 1
Note:
The numb... | [
"[email protected]"
] | |
86c74660e97fcfad69873b6025a9430d87b3496f | 492d3e666b87eff971628a74fe13facde01e2949 | /htmlcov/_python_Django_My Projects_student-portal_Lib_site-packages_django_db_migrations_graph_py.html.py | 05c7ac90efdcb13c551ee039f2457e7c75ee6996 | [] | no_license | OmarFateh/Student-Portal | 42050da15327aa01944dc79b5e00ca34deb51531 | 167ffd3a4183529c0cbc5db4ab232026711ea915 | refs/heads/master | 2023-06-13T01:03:16.475588 | 2021-07-08T11:09:09 | 2021-07-08T11:09:09 | 382,895,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96,031 | py | XXXXXXXXX XXXXX
XXXXXX
XXXXXX
XXXXX XXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXX
XXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXX XX
XXXXXXXXXXXXXXX XXX XXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXX
XXXXX XXXXXXX... | [
"[email protected]"
] | |
dbee469da3d768ac8bd9b40a106f32df70d98ae3 | 069dafce9f495f09bf8c2f76dbf5c045b7551721 | /run_size_V1_inhibition_overlapping.py | 2445079f234bb3bce526b0f73ebe9143a77a5600 | [] | no_license | dguarino/T2 | 26b1bc640812aa5438b09f9fab2bc73096cd7eef | 66b786928508089492f5f696c7c1576e098c6615 | refs/heads/master | 2020-04-03T22:39:06.059845 | 2020-03-13T15:43:02 | 2020-03-13T15:43:02 | 41,812,819 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,661 | py | # -*- coding: utf-8 -*-
"""
This is
"""
from pyNN import nest
import sys
import mozaik
import mozaik.controller
from mozaik.controller import run_workflow, setup_logging
from mozaik.storage.datastore import Hdf5DataStore, PickledDataStore
from parameters import ParameterSet
from model_V1_full import ThalamoCorticalMo... | [
"[email protected]"
] | |
72624296abb72df145e8940e711e87d4f531eab1 | 09ae3f372d1000f118ad80874870ae420a4be66f | /scikit-learn-master/sklearn/datasets/tests/test_base.py | 08a6ba29413cf8bbe4e7c2cdcbf499993f650548 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | lqkweb/learnMLflow | 998f80c3828879b8d542125bc95c6345b8e9b29a | 13c5decaebba95b1b90f92021be35e343b4764af | refs/heads/master | 2022-10-18T06:17:23.584172 | 2019-01-18T09:51:38 | 2019-01-18T09:51:38 | 166,145,472 | 2 | 0 | Apache-2.0 | 2022-09-30T18:26:17 | 2019-01-17T02:22:29 | Python | UTF-8 | Python | false | false | 8,270 | py | import os
import shutil
import tempfile
import warnings
import numpy
from pickle import loads
from pickle import dumps
from functools import partial
import pytest
from sklearn.datasets import get_data_home
from sklearn.datasets import clear_data_home
from sklearn.datasets import load_files
from sklearn.datasets impor... | [
"[email protected]"
] | |
d74fff88ba05004f13b29253044811a8d2b7d787 | 3249577773cf18e5c09ea36de62477ddb43b662b | /Python/flask_fundamentals/Disappearing Ninja/server.py | 91bc33c8de93b14123c980e0d252bf8f7f89d6c4 | [] | no_license | HollinRoberts/code | 5394abe2a7c42bbbe83d8f64a99c50a52f05792b | 8026522ab169c4174037fdf1b271de60b75d79bf | refs/heads/master | 2021-01-01T16:12:11.674680 | 2017-10-18T21:08:10 | 2017-10-18T21:08:10 | 97,786,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | from flask import Flask, render_template, request, redirect
app = Flask(__name__)
@app.route("/")
def index():
return render_template("index.html")
@app.route("/ninja")
def ninja():
return render_template("ninja.html")
@app.route("/ninja/<color>")
def ninja_color(color):
if color=="blue":
... | [
"[email protected]"
] | |
d59c7349c687bb89df6ffe6c91d0cb52724efdaa | d4eb113c44c86322b3811513a7286d176f106eb6 | /experiments/variational_autoencoder/validation/compare_results.py | 9533452ba1c680b701a373947b1b8279453615c6 | [] | no_license | philip-brohan/Machine-Learning | 67a2eb780383b3436da4fef1d763f39d255ae696 | dc53b9c336d5f12272257f327abe49dec436ea04 | refs/heads/master | 2021-03-27T12:33:07.518279 | 2020-04-30T19:38:02 | 2020-04-30T19:38:02 | 56,614,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,113 | py | #!/usr/bin/env python
# Model training results plot
import tensorflow as tf
tf.enable_eager_execution()
import numpy
import IRData.twcr as twcr
import iris
import datetime
import argparse
import os
import math
import pickle
import Meteorographica as mg
import matplotlib
from matplotlib.backends.backend_agg import ... | [
"[email protected]"
] | |
a2010a39af08d72a34b058f92fd12104c0aa8d29 | aa0cc19eedf38baca2ecef3de6f2a4c69ce68675 | /clld/scripts/postgres2sqlite.py | 168f94320038122afe286f29dcc8c331998e4f23 | [] | no_license | mitcho/clld | de84c54247138efa53ee5f68a87edc2a0ab06bbf | dcf5f063a44ac5167f677f05b2c66b0d094d4ff3 | refs/heads/master | 2021-01-18T09:56:18.486647 | 2013-08-23T15:13:18 | 2013-08-23T15:13:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,229 | py | """
python postgres2sqlite.py apics 2>&1 >/dev/null | less
Unfortunately this approach does not seem to work, thus, our only option is
intialize_db and making sure all db changes are done via alembic migrations.
"""
from subprocess import call
from importlib import import_module
import pkg_resources
import re
from tem... | [
"[email protected]"
] | |
f60880e5d4192b5bcbd9bd669c188d6935c9d098 | 4bee31f6a823fb1aebbd3dfe1d163aa0b1d41a7c | /seata/registry/FileRegistry.py | 460f4982eb6b95f9f7bcc623f50e55a313c15d63 | [
"Apache-2.0"
] | permissive | rohankumardubey/seata-python | 92532d1e8f8c961f2317aa8c23e2f53fe07711e9 | 66fb3382217a43effa3d1bc5ec2b62204d499dba | refs/heads/master | 2023-08-17T08:29:12.603412 | 2021-09-27T06:04:56 | 2021-09-27T06:04:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,249 | py | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
# @author jsbxyyx
# @since 1.0
from seata.config.Config import ConfigFactory
from seata.core.rpc.Address import Address
from seata.registry.Registry import Registry
class FileRegistry(Registry):
config = ConfigFactory.get_config()
def __init__(self):
pass... | [
"[email protected]"
] | |
a06e048a185a9d0251f8d18dda29718efb09a160 | 462e52636f351a30da5bf2159bc9b30719bbe79b | /stuff/finished libraries/pytorch/_torch_docs.py | 5737af3d182faaa9e7a7cddb16dc5de740dcd382 | [] | no_license | SoutiRini/Top-20-Python-Libraries | c27b1ae77e11209bfe97405f8e324c54d4d49db4 | 1adcc6255dc59b25a831df2d23fa759e1e7c3264 | refs/heads/master | 2022-12-08T11:09:19.587218 | 2020-08-28T22:16:41 | 2020-08-28T22:16:41 | 291,153,411 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 267,122 | py | """Adds docstrings to functions defined in the torch._C"""
import re
import torch._C
from torch._C import _add_docstr as add_docstr
def parse_kwargs(desc):
"""Maps a description of args to a dictionary of {argname: description}.
Input:
(' weight (Tensor): a weight tensor\n' +
' So... | [
"[email protected]"
] | |
efaf5827b686a2a2c8b12a2e327f2178fa269f5c | 7954d761dde104a9d977006c514ff976a9c88444 | /backend/menu/migrations/0001_initial.py | a6a707da319ae2e8ae9d0ffbe9ae598eb1ac1002 | [] | no_license | crowdbotics-apps/firebase-25585 | 3c693fee6f6e75805fe5b8d40f24ee6b137e29e3 | 5473848fbdad0683030c8f3bd64d03fdc4a1382c | refs/heads/master | 2023-04-05T13:07:26.443879 | 2021-04-09T10:28:31 | 2021-04-09T10:28:31 | 356,229,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,144 | py | # Generated by Django 2.2.19 on 2021-04-09 10:26
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('delivery_user_profile', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | [
"[email protected]"
] | |
2973c8a04aa45789fe2dd63d8482dcf76c80e95b | 53440fe1e7370b564d3e1161a2a39bd99425f2f7 | /fairing/constants/constants.py | 703f260d7848b679e869cb80c980ec0ea0265a54 | [
"Apache-2.0"
] | permissive | karthikrajkumar/fairing | a89123c0c1385f691bb8d2b301926360c9e70ed3 | 4f9e007365101443e1230ee206980ed6014f7d31 | refs/heads/master | 2020-06-24T01:11:10.950976 | 2019-07-22T03:06:52 | 2019-07-22T03:06:52 | 198,804,843 | 0 | 0 | Apache-2.0 | 2019-07-25T09:51:13 | 2019-07-25T09:51:13 | null | UTF-8 | Python | false | false | 1,125 | py | TEMP_TAR_GZ_FILENAME = '/tmp/fairing.layer.tar.gz'
DEFAULT_IMAGE_NAME = 'fairing-job'
DEFAULT_BASE_IMAGE = 'gcr.io/kubeflow-images-public/fairing:dev'
DEFAULT_REGISTRY = 'index.docker.io'
DEFAULT_DEST_PREFIX = '/app/'
DEFAULT_CONTEXT_FILENAME = '/tmp/fairing.context.tar.gz'
DEFAULT_GENERATED_DOCKERFILE_FILENAME = '/tm... | [
"[email protected]"
] | |
a0321890fdf0babae23c4b46e7dca8a0e7afbf90 | 60dff076fae5d36af71af1066ac7eb4f833d2f2f | /tools/ci_build/github/apple/c/assemble_c_pod_package.py | 18dc8a19d23ceffa99f30900c4c998c464d550e2 | [
"MIT"
] | permissive | NervanaSystems/onnxruntime | 79e60f9c6feb8c147868d27de8077a276755cc90 | 96b3c09e2a5e0a5b4f98ed9059a719d9c7b73724 | refs/heads/master | 2023-06-22T02:55:35.250834 | 2023-01-03T22:54:46 | 2023-01-03T22:54:46 | 162,268,647 | 1 | 3 | MIT | 2021-01-14T12:56:23 | 2018-12-18T10:09:13 | C++ | UTF-8 | Python | false | false | 2,687 | py | #!/usr/bin/env python3
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
import argparse
import pathlib
import shutil
import sys
_script_dir = pathlib.Path(__file__).parent.resolve(strict=True)
sys.path.append(str(_script_dir.parent))
from package_assembly_utils import ... | [
"[email protected]"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.