blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
31dcf667c0db74a850441f9c4885b9081b781d39 | a2ad9d53c323fae1d47017772ce133db0918b0e6 | /apps/organization/migrations/0003_auto_20180415_2005.py | 865b476dd804b266eb512f569576a9059321e10d | [] | no_license | SmileForS/MxOnline_Django | 27175e3195e1b2b98ec389ed380c1ba6d85f7dd3 | 61ef01909907c71857085819b49f0d658c7cd07b | refs/heads/master | 2020-03-09T17:50:03.438976 | 2018-04-15T14:57:46 | 2018-04-15T14:57:46 | 128,917,414 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 759 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.8 on 2018-04-15 20:05
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('organization', '0002_auto_20180414_0929'),
]
operations = [
migrations.AddFi... | [
"cpyfluoxiaohui@163.com"
] | cpyfluoxiaohui@163.com |
28893aa30f2a72be36b0840421a09737b7faaa2f | 68affb8e8597753057396b4a3714b7a2f534fbf7 | /pj/pj/settings.py | 5a853f1a17eb4d69eedd85276feb322b54d9fd76 | [
"MIT"
] | permissive | TrongNghiaRyt/SE347-project-Django-Website | 5c230a4cefff29a07dcc3b95f3aa1035271ceb5c | 383632f6f3f51553c3664a9b61a0a72b81981420 | refs/heads/master | 2020-11-27T20:40:48.143030 | 2019-12-25T12:56:15 | 2019-12-25T12:56:15 | 229,594,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,378 | py | """
Django settings for pj project.
Generated by 'django-admin startproject' using Django 2.2.6.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
# Buil... | [
"34794845+TrongNghiaRyt@users.noreply.github.com"
] | 34794845+TrongNghiaRyt@users.noreply.github.com |
a6ebb2ef63e9034635a5a9a0794251d2cc8912fd | 92fb4d62071cc02993c6af8eedced27741567d97 | /tests/test_search.py | 4366a847be256e774f6389b780dea8efbb1de31c | [
"MIT"
] | permissive | klorenz/python-elastico | f5efa26e814bf89e9affdfebed5b51f6f16f2aa8 | 9a39e6cfe33d3081cc52424284c19e9698343006 | refs/heads/master | 2020-03-25T20:19:30.108547 | 2019-01-22T08:40:24 | 2019-01-22T08:40:24 | 144,126,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 807 | py | from dateutil.parser import parse as parse_dt
from elastico.search import search
def test_search():
from datetime import datetime
actions = [
{
"_index": "foo",
"_type": "doc",
"_id": i,
"any": "data-%s" % i,
"@timestamp": parse_dt('2017-01-01')
}
... | [
"kiwi@franka.dyndns.org"
] | kiwi@franka.dyndns.org |
d6041c909ade93c15742fc9b51f6283385a54fc8 | 3a5d8cdc7ac14c389fd9426f3f39c3b1dc906dda | /nautobot/extras/tests/test_customfields.py | 5d69afc8223b63ba5fd3bbf99c5f90c513061ee9 | [
"Apache-2.0"
] | permissive | nammie-punshine/nautobot | f3cdb9d269c37a74706c105d237b883650f10465 | d6227b211ad89f25233a8791937cd75092421c8a | refs/heads/main | 2023-03-08T10:51:29.437859 | 2021-02-24T20:44:32 | 2021-02-24T20:44:32 | 342,080,836 | 0 | 0 | Apache-2.0 | 2021-02-25T01:01:36 | 2021-02-25T01:01:36 | null | UTF-8 | Python | false | false | 31,650 | py | from django.contrib.contenttypes.models import ContentType
from django.core.exceptions import ValidationError
from django.urls import reverse
from rest_framework import status
from nautobot.dcim.filters import SiteFilterSet
from nautobot.dcim.forms import SiteCSVForm
from nautobot.dcim.models import Site, Rack
from na... | [
"lampwins@gmail.com"
] | lampwins@gmail.com |
6085fa5fa51974ff53fe7e99f64baa10359cb313 | 5b51f0ccdfdc6f9d74a0259fc723c1557d115776 | /ex39.py | 8526dd6345ee6b626f7319aec36ceeb66aa2c2ed | [] | no_license | vacpy/learn_py | 4943b65c7b462d0686d0a6dace9918c69d713cc2 | cb2b37216ba8410cb621648acbf241b27315e301 | refs/heads/master | 2020-03-12T19:48:38.155583 | 2018-05-01T14:56:51 | 2018-05-01T14:56:51 | 130,792,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,155 | py | # /usr/bin/python
# _*_coding:UTF-8_*_
#################### Dictionary lovely dictionary #####################
#Create a mapping of state to abbreviation(缩写词)
states ={
'Oregon':'OR',
'Florida':'FL',
'California':'CA',
'New York':'NY',
'Michigan':'MI'
} ... | [
"noreply@github.com"
] | vacpy.noreply@github.com |
2a96aaa69a1a43083900fb4b48c371c79a72b6f6 | 20f5b61affc0bb74c97fd1239f3c3f2a06b47849 | /net/loss.py | feb3332623b2c62e1f64aeab4e4ad27d57ebe44d | [] | no_license | n063h/ml_final | 2f54fc9adc1a15a08d85bf2bb18fdd3218ec8e71 | 3d3adb9941cf798bb813757339ee7accadb234fd | refs/heads/main | 2023-02-04T00:01:37.177865 | 2020-12-27T17:23:39 | 2020-12-27T17:23:39 | 322,206,279 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,694 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
device = torch.device('cuda:0' if torch.cuda.is_available() else 'cpu')
class featureMapLoss(nn.Module):
def __init__(self,loss='yolo'):
super(featureMapLoss, self).__init__()
self.loss=loss
def forward(self, pred_tensor, targe... | [
"20210240109@fudan.edu.cn"
] | 20210240109@fudan.edu.cn |
ec43c00394ec7bc8a8dccee4e12ea3ec428e49f6 | 2af4823ae83fbcc780ef538bd02fa5bf3a51208c | /ABC129/A.py | 17ef028046926f60cdd3a1b8c937294515ab1d34 | [] | no_license | jre233kei/procon-atcoder | 102420cc246a5123ac9774f8b28440f1d8b70b0f | c463c9c92d45f19fba32d0c8a25f97d73db67bc5 | refs/heads/master | 2022-12-04T09:30:39.271433 | 2020-08-14T11:38:46 | 2020-08-14T11:38:46 | 276,779,835 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 58 | py | p,q,r = map(int, input().split())
print(min(p+q,q+r,p+r)) | [
"jre233kei+github@gmail.com"
] | jre233kei+github@gmail.com |
59c5b022f4fb9fa93415e6168bf273a82b3edd24 | 87e0a352cb1081b6d9ba414c32b672bed8ad70f4 | /grid2D.py | 51df9980ff006f03f260f4e5bf834fd55b6ce483 | [] | no_license | ykzhou/lieb-thirring | 5f0df15fff702122d4beb15404ccac5df16477b3 | 5341371b58374b673ac06ab8f42323ebec3e9bbe | refs/heads/master | 2020-04-16T07:42:37.394694 | 2012-04-26T13:05:57 | 2012-04-26T13:05:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 676 | py | from __future__ import division
import functions
import numpy as np
import scipy
import scipy.sparse
class Grid2D:
def __init__(self,N=100,L=10.0,d=1):
self.N = N
self.L = L
self.d = d
self.onedgrid = np.linspace(-L,L,N)
self.x,self.y = np.meshgrid(self.onedgrid, self.onedgr... | [
"antoine.levitt@gmail.com"
] | antoine.levitt@gmail.com |
82a04ed80cb067a982cfd53c08ad02cbef9bec70 | e24ea16a26386cabda970299f4cf6ab8905ec307 | /tests/data/instance_test.py | 7c8ef03f29f8e329d39976d5b3073ce1d127d206 | [
"Apache-2.0"
] | permissive | eladsegal/allennlp | c3f7ee9c0586ba63f435442abfff15546524450b | f1f803e85aff1b67319c8cf51674095b9a5a6c18 | refs/heads/master | 2023-03-18T21:48:31.101172 | 2021-07-29T20:52:34 | 2021-07-29T20:52:34 | 221,441,294 | 3 | 1 | Apache-2.0 | 2023-03-07T13:58:12 | 2019-11-13T11:15:12 | Python | UTF-8 | Python | false | false | 1,643 | py | from allennlp.common.testing import AllenNlpTestCase
from allennlp.data import Instance
from allennlp.data.fields import TextField, LabelField
from allennlp.data.token_indexers import PretrainedTransformerIndexer
from allennlp.data.tokenizers import Token
class TestInstance(AllenNlpTestCase):
def test_instance_im... | [
"noreply@github.com"
] | eladsegal.noreply@github.com |
7dd7314d9e9433d8012c255fa879d845639f1134 | 5516cf5a3aa871d78791ba5669a16368c179d645 | /runtests.py | 9c8f8b24a7a99e2bebe3b9e7cc1c454adafb661b | [] | no_license | lambdalisue/django-observer | 1af577e4e02d710e8806312ad8d195142e9f68f4 | 052e0da55eefc8072cc78e0b9d72bc29c4e528c0 | refs/heads/develop | 2021-01-01T16:13:01.150667 | 2018-03-06T01:41:47 | 2018-03-06T01:41:47 | 3,034,956 | 27 | 4 | null | 2018-03-06T01:41:48 | 2011-12-22T16:19:58 | Python | UTF-8 | Python | false | false | 2,045 | py | #!/usr/bin/env python
#==============================================================================
# A generic django app test running script.
#
# Author: Alisue <lambdaliuse@hashnote.net>
# License: MIT license
#==============================================================================
import os
import sys
i... | [
"lambdalisue@hashnote.net"
] | lambdalisue@hashnote.net |
76481456f12c3d410caac04e2b3c59996e86c378 | 8e7b60de4dc314a4419d86067db4a65de847bff1 | /Assignment3/gui.py | 18e6634070dad5d7ac1825fc746ae872355b5c6e | [] | no_license | teofilp/Artificial-Intelligence | c3ee4a137298fb01770c91c59fc2dfe783e12c9f | 0950099fd0a6fecbf44a96f6149de217a8829136 | refs/heads/main | 2023-05-12T04:45:29.496676 | 2021-06-03T11:10:30 | 2021-06-03T11:10:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,506 | py | # -*- coding: utf-8 -*-
from pygame.locals import *
import pygame, time
from utils import *
from domain import *
def initPyGame(dimension):
# init the pygame
pygame.init()
logo = pygame.image.load("logo32x32.png")
pygame.display.set_icon(logo)
pygame.display.set_caption("drone explorat... | [
"noreply@github.com"
] | teofilp.noreply@github.com |
e37c3f1033d9c67cfcf99289be5263a434d8c8ba | 8ef8e6818c977c26d937d09b46be0d748022ea09 | /cv/semantic_segmentation/unet++/pytorch/tools/convert_datasets/drive.py | 4ede22c59d5268852092f96560f28285dc1da66d | [
"Apache-2.0"
] | permissive | Deep-Spark/DeepSparkHub | eb5996607e63ccd2c706789f64b3cc0070e7f8ef | 9d643e88946fc4a24f2d4d073c08b05ea693f4c5 | refs/heads/master | 2023-09-01T11:26:49.648759 | 2023-08-25T01:50:18 | 2023-08-25T01:50:18 | 534,133,249 | 7 | 6 | Apache-2.0 | 2023-03-28T02:54:59 | 2022-09-08T09:07:01 | Python | UTF-8 | Python | false | false | 4,237 | py | # Copyright (c) OpenMMLab. All rights reserved.
import argparse
import os
import os.path as osp
import tempfile
import zipfile
import cv2
import mmcv
def parse_args():
parser = argparse.ArgumentParser(
description='Convert DRIVE dataset to mmsegmentation format')
parser.add_argument(
'trainin... | [
"mingjiang.li@iluvatar.ai"
] | mingjiang.li@iluvatar.ai |
8b4bb0160b2b5b09c9b5cd8ecf09b5b6879dafaf | 6817457f2f7cb635e84d5ac23c76873628fb04cf | /src/dama/data/csv.py | 238e7ff00d7b2d00f3f5813c3dd483769a1050b8 | [
"Apache-2.0"
] | permissive | elaeon/dama_ml | 5d9a63e0daabe332a08b13813de57d9ed2608015 | 8b56c62a28c69987fc5dbd8a47406a3a22214371 | refs/heads/master | 2021-10-26T05:24:10.166028 | 2019-04-11T00:55:44 | 2019-04-11T00:55:44 | 58,218,206 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,797 | py | # https://stackoverflow.com/questions/13044562/python-mechanism-to-identify-compressed-file-type-and-uncompress
import csv
import zipfile
# import bz2
# import gzip
import numpy as np
from io import StringIO, TextIOWrapper
from operator import itemgetter
from tqdm import tqdm
def get_compressed_file_manager_ext(file... | [
"mara80@gmail.com"
] | mara80@gmail.com |
4faf6c7566c0ff3ad6f931736c833bc214d55dae | ec94aebf07c808e21f5083042f4e8220c957b0da | /speedUpdating.py | b703139a08b2fc79afbfc3a8936e38a7fede8f29 | [] | no_license | Attler/speed-updating | ef50e0f969a06e6758b6552c6ec45cdf49146ea7 | 66103742c557bdca806d61529d46ebc6f8564f3a | refs/heads/master | 2022-12-12T13:50:50.971079 | 2020-09-13T14:16:22 | 2020-09-13T14:16:22 | 294,152,026 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,788 | py | import csv
import math
from random import randrange, shuffle
import copy
input_file = 'Speed Updating Questions.csv'
# Reads input of .csv file of list of persons and their answers to the form questions
# def read_form(input):
# with open(input, encoding="utf8") as csvfile:
# people = []
# reader... | [
"Jason.hepbun@students.mq.edu.au"
] | Jason.hepbun@students.mq.edu.au |
ec7bb247496ec2cb345949a5669594ad7dbcdaa0 | b44ee1ca67e5e1abf38535764ba51d392f9bc74c | /question_01_99/question_21.py | 7627dba8f1ec1db0e9bfbec5abe55035352502a7 | [] | no_license | song61069140/LeetCodePython | c9cec3735e7006c26b4f159543996160ae29382b | 2a953428018d1656695dbfe58d0bc7c9888224da | refs/heads/master | 2020-08-01T05:12:02.451158 | 2019-11-23T01:16:12 | 2019-11-23T01:16:12 | 210,875,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 883 | py | """
将两个有序链表合并为一个新的有序链表并返回。新链表是通过拼接给定的两个链表的所有节点组成的。
示例:
输入:1->2->4, 1->3->4
输出:1->1->2->3->4->4
来源:力扣(LeetCode)
链接:https://leetcode-cn.com/problems/merge-two-sorted-lists
著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出处。
"""
# Definition for singly-linked list.
class ListNode(object):
def __init__(self, x):
self.... | [
"song61069140@gmail.com"
] | song61069140@gmail.com |
248015e3a03e3313933cea852de548f414c40a1c | 737fadb5c9ce8baca27e052e052d516c93c14173 | /lainxi.py | c6f6cbaf986d2413308dfe8d7ab689871138b6b0 | [] | no_license | Winona1234/maoyan | afe6a639a6b8522c203adb4a984c0242b5ea5e33 | 18e94dc118c53bd478ff9b6e0c3e17ecf7776273 | refs/heads/master | 2023-01-04T16:24:25.753013 | 2020-10-28T07:54:11 | 2020-10-28T07:54:11 | 307,943,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | # -*- coding=utf-8 -*-
# @Time:2020/10/11 12:04 下午
# Author :王文娜
# @File:lainxi.py
# @Software:PyCharm
print('hello world'.strip())
print('hello world'.split(' '))
print('hello world'.replace(' ','#')) | [
"wangwena2018@163.com"
] | wangwena2018@163.com |
4be2d42dd8b3ba052d22c1ec358b13481d058d20 | 6b899fe7bb952fe46ef6ae9cccdca4f2e0cfe89e | /conf.py | 5c4d31ab9c7b8a2722fff897537f203cf379f997 | [] | no_license | cknowledge/docs | 8d1461c299f578207aeaf01916d05c299b97f49c | 62983632ef5208dea8334db4cd78dc79eda23592 | refs/heads/master | 2022-12-27T04:20:13.076580 | 2020-10-11T14:32:06 | 2020-10-11T14:32:06 | 287,727,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,663 | py | # -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/master/config
# -- Path setup ------------------------------------------------------------... | [
"Grigori.Fursin@cTuning.org"
] | Grigori.Fursin@cTuning.org |
42ad8c9644b372819d2919e610498c96c2128557 | 64ff26ba380bf35aa161022a7dce2572acad95f9 | /app/forms.py | 1af1ce03a3c8833d0ed5ad4b93a933070cb9fb53 | [] | no_license | naritotakizawa/django-monthly-formset-sample | 9e517e1305fbf57a2677f069bfd9a82b312709cb | 7e6667077a0e986695de230cdc5e616576896eef | refs/heads/master | 2020-05-30T14:41:20.274643 | 2019-06-02T02:45:50 | 2019-06-02T02:45:50 | 189,797,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | from django import forms
from .models import Monthly, Daily
DailyInlineFormset = forms.inlineformset_factory(
Monthly, Daily, exclude=['day'], # 日にちは編集できないようにする
extra=0, can_delete=False
)
# 一般的にはclass MonthlyForm のように作りますが、ちょっとしたものなら関数で作ることもできます。
MonthlyForm = forms.modelform_factory(Monthly, fie... | [
"toritoritorina@gmail.com"
] | toritoritorina@gmail.com |
dc173b3cec82d48d340fb71841d9891121935bf7 | 89294b5cc300950b878cd7ed0def132081408da0 | /attic_greek/test_modules/contracted_future.py | b0cc9cf0494ba78e253b5b6f643a69c59f396450 | [] | no_license | matt-gardner/language-study | aa434d3cf40b6752baeee0ccc9a40b80e0497ba1 | c0d7066851ce4e04a8a0cf3c33bc9f91ae34e304 | refs/heads/master | 2020-12-24T16:24:17.531025 | 2016-03-12T23:03:39 | 2016-03-12T23:03:39 | 27,920,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,262 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
from attic_greek.conjugation import GreekConjugation
from attic_greek.test_modules import verbs, verb_cases, GreekTestCase
import unicodedata
class ContractedFutureTest(GreekTestCase):
"""We just test a few forms here, because we've tested most of this already.
... | [
"mjg82@byu.edu"
] | mjg82@byu.edu |
2db96682befc29600a69ec10146c79fa2573df68 | b6ae8525b61f8302381efa3da1963c3d60d290f2 | /starterapp/views.py | 4ff3e035b06b511d0bb1d9ef4982b0ad51a85ccd | [] | no_license | vince06fr/django-buddy | b7d713ba90d832753619c9a9ae0913f16ce3eeff | 180b8011d38e5e2fecbe542fccb49466833422a8 | refs/heads/master | 2020-12-25T10:37:53.525148 | 2012-10-25T03:03:20 | 2012-10-25T03:03:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,164 | py | from django.contrib.auth import authenticate, login
from django.contrib.auth import logout as auth_logout
from django.core.urlresolvers import reverse
from django.http import HttpResponseRedirect
from django.views.generic.base import View
from django.shortcuts import render, render_to_response
def logout(request):
... | [
"suneel0101@gmail.com"
] | suneel0101@gmail.com |
2def90018f3c113b4160350c30adc34418af87e3 | 70166e12579c44656720eec0c9e0e6cf8cf26e1f | /setup.py | 5797f494056230aa30e7554341448c3b1ce4d60e | [
"MIT"
] | permissive | kasbah/scrapy-puppeteer | 5b8556fa7d6e6a816a698d6f76bbb7f83e548021 | 512cfe99b2c3f9aad6c0d3d35299d3ccd6c91121 | refs/heads/master | 2020-12-26T12:30:38.378438 | 2019-12-18T10:46:59 | 2019-12-18T10:46:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 993 | py | """This module contains the packaging routine for the pybook package"""
from setuptools import setup, find_packages
try:
from pip.download import PipSession
from pip.req import parse_requirements
except ImportError:
# It is quick hack to support pip 10 that has changed its internal
# structure of the m... | [
"clement.denoix@algolia.com"
] | clement.denoix@algolia.com |
6debb4e0601a04825071d7b4aa701b5beb720d03 | b6c4650e0719d09c39dd3950a0e861414c2a6910 | /funções01.py | 735ddf21c8c58c6ac787c4fccf475331117ceeb6 | [] | no_license | gabriel301297/Exerciciofun-es- | 765f83b29985c3874f443d4b811f7b3ea9e4bcb7 | c80ec28f01cb795efcfb07d3123f064b757ca77d | refs/heads/master | 2022-11-03T01:46:13.188266 | 2020-06-18T23:54:04 | 2020-06-18T23:54:04 | 273,358,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | #Faça um programa para imprimir:
def imprime(n):
"""Funcao que retorna P se o valor informado for > que 0 e N se for <."""
if n > 0:
print('P')
elif n <= 0:
print('N')
return imprime
imprime(1) | [
"noreply@github.com"
] | gabriel301297.noreply@github.com |
00ef5b03f237a3f2966a55200ada0d942f795447 | 211076d8dda4e6751ef0643e0201e9c18845b528 | /pneumothorax/conf/model008.py | 426cf286bbcf8744324d91d8ccd82d849f40b922 | [] | no_license | jovenwayfarer/udacity-ml-nanodegree | c83d3778da0ccf58dbdd682cac44ec02107227cf | 6d96de938a5d18550a50c8cadd28bde887b68222 | refs/heads/master | 2022-04-20T01:14:22.104892 | 2020-04-10T00:46:21 | 2020-04-10T00:46:21 | 290,711,786 | 1 | 0 | null | 2020-08-27T07:49:32 | 2020-08-27T07:49:32 | null | UTF-8 | Python | false | false | 3,372 | py | import albumentations as albu
workdir = './model/model008'
seed = 69
n_fold = 5
epochs = 20
sample_classes = True
resume_from = None
retrain_from = './model/model007/model_1024_0.pth' # <---- fold 0...4
train_rle_path = './input/stage_2_train.csv'
train_imgdir = './input/1024-s2/train'
train_folds = './cache/train_... | [
"akuritsyn@gmail.com"
] | akuritsyn@gmail.com |
db28575f2623496636938161f33ab45251ac66c2 | f098fd2d7fb2aa5e739965d2f6b44d15f6516172 | /mapmunchies_site/stories/models.py | 01e3e66824087a39cdcf3bd60cc7c98592e35c6e | [] | no_license | xiaopies/MapMunchies | 985654f66d1fa4165fb0e158eee3052f342aeef7 | e97bb492d27460b412b4e389cc7900b1e9e2862d | refs/heads/main | 2023-08-17T04:22:59.697462 | 2021-09-27T02:18:11 | 2021-09-27T02:18:11 | 398,145,210 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,706 | py | from django.db import models
from django.utils import timezone
from django.core.validators import MinLengthValidator, MinValueValidator
from django.contrib.auth.models import User
from django.db.models.expressions import RawSQL
def get_borough_list():
list_of_bouroghs = {
1:'brooklyn',
2:'manhattan... | [
"jasonjiangny@gmail.com"
] | jasonjiangny@gmail.com |
a239599b70d3afef7e329805a9d8116e6a53cb82 | 231bd95d5e4a67a5aea60c81c2a46f672885f93d | /src/copy_files.py | c161ec8f3c0ec77d323a2c5035a5dc3a58358384 | [] | no_license | CharmSpace/DTC-Logo-Recognition | f2d0d87fbff48d69e178506e81d9f8c8b029fe07 | dd4f5c90af48caa3829a05febb7d01eeb716ec2c | refs/heads/master | 2022-11-11T12:09:05.617918 | 2020-06-30T06:36:32 | 2020-06-30T06:36:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,296 | py | import os
import argparse
#from multiprocessing import ThreadPool
import shutil
import time
from itertools import zip_longest
def copy_jpg_files(args):
"""Retrieve files in folder and write them to new folder"""
in_parent_folder = args.in_dir
out_parent_folder = args.out_dir
# walk through each folder... | [
"mellitus4u@gmail.com"
] | mellitus4u@gmail.com |
e495ada4039944f53250977ba85cb229b3f625cc | 7947a9f764722686a2802e393a7e27008690a118 | /StyleAnalyser/initdb.py | dd92356e82e5051ac31440eae59191c00c67c3bc | [] | no_license | NILGroup/TFG-1920-CarlosMoreno | e5766d11eee76a3f82e6af2872cc34acff7b16a4 | de580fddae4387ac4db4cf9d1a7ad602c5cba584 | refs/heads/master | 2022-11-08T13:49:46.639450 | 2020-06-26T11:14:31 | 2020-06-26T11:14:31 | 196,052,196 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Apr 22 17:50:25 2020
@author: Carlos Moreno Morera
"""
import mongoengine
def init_db():
"""
Inits the connection with the MongoDB.
Returns
-------
None.
"""
mongoengine.register_connection(alias='core', name='analysis')
mongoengine.connect... | [
"carmor06@ucm.es"
] | carmor06@ucm.es |
e032f991668a174940ca3888d349666a1ad96a4e | af6af3615070b37d2b70634e4a2d1f4f4d4a5c29 | /tcsdiscordbot.py | f504d79159d16edc334159f86a1d462ff6e6350b | [
"MIT"
] | permissive | Jurredr/TCSDiscordBot | 1eccdc94b2d5aed16aa97fa9832b7887aa8b99ba | 24fcef8c673eb29eff28b070b588f22c5c391605 | refs/heads/main | 2023-04-24T12:26:05.126093 | 2021-03-16T13:46:39 | 2021-03-16T13:46:39 | 347,976,445 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,271 | py | import discord
from discord.ext import commands
from docstring_parser import Style
from docstring_parser import parse as parse_docstring
from cogs.utils.smth import *
from globalfuncs import *
async def prefix(_, message):
return commands.when_mentioned_or('?')(_, message)
class HelpCommand(commands.DefaultHel... | [
"noreply@github.com"
] | Jurredr.noreply@github.com |
3a651703ee75f1c6ffe569daa5bc28b4a275eef6 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /120_design_patterns/009_decorator/examples/4-python-design-patterns-building-more-m4-exercise-files/Decorator/decorators/red.py | e0ed3028f3471e49fd42bc27d43d86d7acf6f24e | [] | 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 | 235 | py | from .abs_decorator import AbsDecorator
class Red(AbsDecorator):
@property
def description(self):
return self.car.description + ', Ferarri red'
@property
def cost(self):
return self.car.cost + 1200.00
| [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
e1794bb2df20a06d8c588241f48122e0f78e04b5 | f6dd4a402e329f112ee14bd25544ec122e6c4173 | /setup.py | 8d84ea9ca14bfabf8fa202184bac336174e82224 | [] | no_license | diegompin/code_complenet2020 | 68231cdfe18417c20dfac9cfde385aa3a0b84bf1 | ab6070ad8a52c55371b9678735931ca5cb5eda52 | refs/heads/master | 2022-07-06T19:23:52.589159 | 2019-11-17T08:17:27 | 2019-11-17T08:17:27 | 222,216,280 | 2 | 0 | null | 2022-06-21T23:28:12 | 2019-11-17T08:05:33 | Python | UTF-8 | Python | false | false | 716 | py | from setuptools import setup
import os
def package_files(directory):
paths = []
for (path, directories, filenames) in os.walk(directory):
for filename in filenames:
paths.append(os.path.join('..', path, filename))
return paths
extra_files = package_files('mhs')
setup(
name='mhs',... | [
"2016bestworld"
] | 2016bestworld |
81d5c0a0c3768e21c0cce5ca5137131e974b601f | 8e02857c8d7c862652007cbbe147c6c363b094ef | /iroha_files.py | 8ddefd3f5a11a845e4ca20e9962ba45d316c1633 | [] | permissive | nlsynth/iroha | fb1d503c05f50c09dc928167e2fb84f8ff03565d | 7fc5da7408b7ffb449d28737ab01fe0feea885c1 | refs/heads/master | 2021-07-16T15:11:56.684866 | 2021-07-09T13:42:27 | 2021-07-09T13:42:27 | 47,931,688 | 37 | 5 | BSD-3-Clause | 2021-07-09T13:42:28 | 2015-12-13T18:46:24 | C++ | UTF-8 | Python | false | false | 1,429 | py | # Script to create tar.gz package. This will replace automake based "make dist".
import os
PACKAGE="iroha"
VERSION="0.1.0"
ARCHIVE=PACKAGE + "-" + VERSION
EXTRA = ["NEWS",
"configure", "lib/gen_instantiation.py", "Makefile",
"iroha_files.py", "src/iroha.gyp", "config.mk"]
DOCS = ["docs/glossary.md... | [
"tabata.yusuke@gmail.com"
] | tabata.yusuke@gmail.com |
935397969bf0ea3e29fd10298ceb1172ffcceb61 | 9b722ca41671eb2cea19bac5126d0920639261bd | /.history/app_20201124111415.py | 2b976e9cf211bde93d3e1eb0e991fcec45a0bc6d | [] | no_license | thawalk/db_flask_server | 7928fd481f99d30bdccc60d97f02db78324cfdbe | cd55f1c9bf84c734457ee02d9f64a6833e295fad | refs/heads/master | 2023-01-25T02:40:19.097457 | 2020-12-06T07:45:50 | 2020-12-06T07:45:50 | 314,229,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,373 | py | import json
from flask import Flask, jsonify, url_for, request, redirect,Response,Request
# from flask_pymongo import PyMongo
import pymongo
from bson.json_util import dumps
import mysql.connector
from werkzeug.serving import run_simple
import os
from dotenv import load_dotenv
import datetime
import time
app = Flask(_... | [
"akmal_hakim_teo@hotmail.com"
] | akmal_hakim_teo@hotmail.com |
0573cfcea8c49ecfb5e2c912d40802836435360d | 6b74f4f5b2c28bea4ba003fc198dc3f109372869 | /human_detector.py | 4a55e416b909f859264158deea7c5f929bbc84ef | [
"MIT"
] | permissive | kei1107/human_detection_with_aterm_usb_camera | 30b42097802a81e6e8e2e6777f16900924e0c39c | 95bb8e67c8be428b562b190d789c7d49985b3cd3 | refs/heads/master | 2020-12-07T09:01:28.586693 | 2020-07-17T02:17:40 | 2020-07-17T02:17:40 | 232,690,098 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,025 | py | import base64
import os
import shutil
import requests
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
import src
import sys
import time
from datetime import datetime
import pytz
from io import BytesIO
from PIL import Image
from keras.applications.imagenet_utils import preprocess_in... | [
"clavis1107@gmail.com"
] | clavis1107@gmail.com |
793ddda057a87a3282347556bd109bb246a5a62b | e6eaff0a201f1a297cbd008ef4634768b9e7bcb2 | /portfolio/views.py | de3914653ddf7591910819919c4bbcec40afddee | [] | no_license | rishik-verma/django3-personal-portfolio | de019827a1aeb6e65e8f129bff052e432b6b625e | 698b58a17a417d614128e82cc6d94ea763084f76 | refs/heads/master | 2022-08-19T13:58:52.315905 | 2020-05-27T17:27:06 | 2020-05-27T17:27:06 | 267,383,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | from django.shortcuts import render
from .models import Project
# Create your views here.
def home(request):
projects=Project.objects.all() #fetch all objects from database
return render(request,'portfolio/home.html',{'projects':projects})
| [
"rishikvb81@gmail.com"
] | rishikvb81@gmail.com |
2bdb5fdf674de49ac64042e627006dc6a4d961db | 076bfcf8377df4453c281483309d0f933345c737 | /sadf.py | e9b55d0cc95eca1a71b6b925b383f4e0ba9fe18f | [] | no_license | yaping03/CourseMall | a6776d7ac36d2e3f94c6b65c375f06953d164a83 | ca730d53275c1ea073e4a3394f122ba8d43f67a6 | refs/heads/master | 2020-05-07T17:04:33.539287 | 2019-04-11T11:59:21 | 2019-04-11T11:59:21 | 180,712,705 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,748 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
import datetime
v = [' File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/threading.py", line 882, in _bootstrap\n self._bootstrap_inner()\n', ' File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/threading.py", line 914, in _bootst... | [
"820974538@qq.com"
] | 820974538@qq.com |
9af51cdf56cdd30fe398278a39e82cb6c3e5b41d | 49f0dab00cb3c47d1d7836391d2a6d95ea6f346b | /src/agentdlg.py | 204b00581f87ad577009544ca050ee5aed97a53a | [] | no_license | alonso9v9/AI_Maze_Solver | 46b55451d3a152f61665c0099f523bb2ccd3795a | aa96ecc9ef5ffcafd33dfe2d7dd358bde2186a3f | refs/heads/master | 2023-02-04T11:17:35.922832 | 2020-12-25T19:33:15 | 2020-12-25T19:33:15 | 324,421,190 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,865 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'agent.ui'
#
# Created by: PyQt5 UI code generator 5.15.0
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
import math
from PyQt5 import QtC... | [
"alonso9v9@gmail.com"
] | alonso9v9@gmail.com |
67a52b02acbbe45b3421fa32b3b7742da78b68db | a6d934791aa9069718a7a3090dc332b21a44870e | /validater/exceptions.py | 6ec6d0476bb1d30414d13a2384c133e7c5b4c034 | [
"MIT"
] | permissive | ppproxy/validater | ce993b35f7ee26f4e29f038133e3036f599c2536 | 05923875c99ec85ce95e7ac3faa53d64f7b94436 | refs/heads/master | 2020-12-26T11:20:46.358456 | 2016-09-17T21:38:28 | 2016-09-17T21:38:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,824 | py | class ValidaterError(ValueError):
"""Mark invalid position"""
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
# marks' item: (is_key, index_or_key)
self.marks = []
def mark_index(self, index):
self.marks.insert(0, (False, index))
return self
... | [
"guyskk@qq.com"
] | guyskk@qq.com |
92d8e815e14f4c9b30c1e936f4f134092378124f | fc1ed3d37b61c7fde55e667aca558062f052d208 | /models/uncertainty_module.py | bc7cf2e8d7206b8ad7d178931e0b635bf8b9ccc9 | [
"MIT"
] | permissive | renjiechao88/ProbFace | 2305e1fd68c3b566e1e0dd2c20b4c66cd4276e71 | cd7ef37e6fe6f62f98af7d0cebfb05674dda6739 | refs/heads/main | 2023-06-04T08:38:08.695445 | 2021-06-21T07:04:59 | 2021-06-21T07:04:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,808 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import math
import tensorflow as tf
import tensorflow.contrib.slim as slim
batch_norm_params = {
'decay': 0.995,
'epsilon': 0.001,
'center': True,
'scale': True,
'updates_collections': Non... | [
"kaenchan@163.com"
] | kaenchan@163.com |
8108d0914dda3fab0d0cb371dddf18eef4c7b557 | c5d838598ee22b8c6125bd46f3f6078f4e28376e | /mixpanel_cli/auth.py | 1148c1f1fd7a4bdcf2a63688636a77775a286d91 | [
"MIT"
] | permissive | atomic-labs/mixpanel-cli | a989578bd2dc259a17214bd442237091ca43ea4f | d271e512a35124d663f60e6742b500c99fcac1fb | refs/heads/master | 2021-01-10T19:12:49.765428 | 2014-01-22T01:11:02 | 2014-01-22T01:11:02 | 15,955,794 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | import time
import hashlib
def authenticate_parameters(api_key, api_secret, parameters, expire=60):
params = {}
params.update(parameters)
params["expire"] = int(time.time()) + expire
params["api_key"] = api_key
sig_base_string = ""
for k in sorted(params.keys()):
sig_base_string += "%s=... | [
"ben.pedrick@gmail.com"
] | ben.pedrick@gmail.com |
c469fe2dcb449ee3400c521f8eb1549e7ba6e21d | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/stupiding_kaggle_EEG/kaggle_EEG-master/models/len2048p4_resize3_bs_c1r4p5_f9n256r35p1_v67.py | 1d5cadde7ff34bcec4455bb9ed7040d4500b3aad | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 15,902 | py | import numpy as np
import theano
import theano.tensor as T
import lasagne as nn
from lasagne.layers import dnn
from batch_norm import BatchNormLayer
import metrics
import time
rs = T.shared_randomstreams.RandomStreams()
rs.seed(int(time.time()))
data_path = 'eeg_train.npy'
train_series = [0, 1, 2, 3, 4, 5]
valid_seri... | [
"659338505@qq.com"
] | 659338505@qq.com |
da97e1667044cb0a40ecdee0bd59859fdebfe826 | 0a7d49300a547eecc823b78a891057f1017db1b2 | /rabbitmq/topic_send.py | 888d59edb662dad9fd96ea9cd0090a8f9c8e439b | [] | no_license | PeterZhangxing/codewars | f315b2ce610207e84a2f0927bc47b4b1dd89bee4 | 8e4dfaaeae782a37f6baca4c024b1c2a1dc83cba | refs/heads/master | 2020-09-22T12:09:59.419919 | 2020-03-02T12:52:55 | 2020-03-02T12:52:55 | 224,330,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 775 | py | import pika,sys
credentials = pika.PlainCredentials('zx2005', 'redhat')
# 使用上面定义的用户名密码,连接远程的队列服务器
connection = pika.BlockingConnection(pika.ConnectionParameters(
"10.1.11.128",
credentials=credentials
))
# 在tcp连接基础上,建立rabbit协议连接
channel = connection.channel()
# 申明通过字符串匹配,来确定发送数据到哪个队列的交换器
channel.exchange_de... | [
"964725349@qq.com"
] | 964725349@qq.com |
e65847855532814dff90be0f26da0a9d74bd64ad | 449d5f4bdc83fc3a30c730e443c66b99ee0beaa8 | /explore.py | cd9f6908f274e1d017fc4b746a76b97ed486c950 | [] | no_license | LinhQuach13/regression-exercises | 32309b136afeba78ed334fa9911e7237d84e17ea | fb9a4cb007c6b6d5ad045ce6d3ada1560ecd5f02 | refs/heads/master | 2023-05-30T13:36:12.488143 | 2021-06-10T21:43:39 | 2021-06-10T21:43:39 | 373,301,170 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,913 | py | import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
import numpy as np
from env import host, user, password
# visualize
import seaborn as sns
import matplotlib.pyplot as plt
plt.rc('figure', figsize=(11, 9))
plt.rc('font', size=13)
# turn off pink warning boxes
import warnings
warnings.filterwar... | [
"Linh.M.Quach1@gmail.com"
] | Linh.M.Quach1@gmail.com |
29eb3d63fc6b0b5a8feec92dd42aaccb8c3f3c16 | d855e8ce6e43bdefb75df6c382f78a336e2f6559 | /LeCeption.py | f40e425902d1e5d390a0a44e8781bb4985094408 | [] | no_license | TheInventorMan/Traffic-Sign-Classifier | ff0df1bbe35b543e2e2c6813291539522df4623c | c2cfb0d2a005be98dacbbc7f63767611642ebc12 | refs/heads/master | 2020-06-17T11:37:27.448105 | 2019-07-09T03:05:50 | 2019-07-09T03:05:50 | 195,912,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,383 | py | import tensorflow as tf
from tensorflow.contrib.layers import flatten
def LeCeption(x):
mu = 0
sigma = 0.1
# Layer 1: Convolutional. Input = 32x32x1. Output = 28x28x6.
conv1_W = tf.Variable(tf.truncated_normal(shape=(5, 5, 1, 6), mean = mu, stddev = sigma))
conv1_b = tf.Variable(tf.zeros(6... | [
"mnasir@mit.edu"
] | mnasir@mit.edu |
b1b1056e1f4c10ad5a9611023811b6a1e72a169d | 6d57e245add80e6c77bd3032913f98eaee130c98 | /code/orbit_pv.py | a0a2a93e7d437f1a43c1cc5b0926ff8bd1ce3fb9 | [] | no_license | keflavich/atca_gc_h2co | a306de6205a3f1d2bae0c5d80e355dc2fbe33672 | 4ec085d1f0aa6d63d4f0c769d57f5803cfc3a24a | refs/heads/master | 2023-01-23T21:22:49.527921 | 2015-09-27T08:02:16 | 2015-09-27T08:02:16 | 42,525,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,408 | py | import os
import numpy as np
import pvextractor
from pvextractor.geometry.poly_slices import extract_poly_slice
import spectral_cube
from spectral_cube import SpectralCube, BooleanArrayMask, Projection
import aplpy
import pylab as pl
import matplotlib
import copy
from astropy import units as u
from astropy import coord... | [
"keflavich@gmail.com"
] | keflavich@gmail.com |
ea6a89ee9ef07d139f1b15d21613f28a0e4a44a6 | ffbe68f6b32cb47fa24d88cdf12f489ea03b58aa | /identityoperator.py | 99f72258ae220ec04375a95a2afe7aec867c6443 | [] | no_license | Vipretha/Vipretha | 3fe27f986cdb7f6d675753adf7d79d5eacb52b02 | ccded940e59115602399cdfe89a304eb75c951bd | refs/heads/main | 2023-08-17T00:36:29.719078 | 2021-10-04T05:18:53 | 2021-10-04T05:18:53 | 402,299,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | a=70
b=38
if(a is b):
print ("a and b are same")
else:
print("a and b are not same")
b=70
if(b is a):
print("b and a are same")
else:
print("b and a are not same") | [
"noreply@github.com"
] | Vipretha.noreply@github.com |
afd569127414d4de2f6c0cf86dbb1fa6c09b1535 | 56fc8fe58ec8d576ec857f19a8adc43b49e19125 | /DjangoDrf/DjangoDrf/settings.py | b6ac5e68c4de3e0f5473a6352e333c8f3d869f45 | [] | no_license | Qpigzhu/Drf | 53ae3dfd7d2715ea49bbfca02ada1a9239cb25a2 | e4faa165a81abe8e641b992b6f86cc46cb01ac16 | refs/heads/master | 2022-12-13T16:30:33.868771 | 2018-12-12T02:34:11 | 2018-12-12T02:34:11 | 161,421,986 | 0 | 0 | null | 2022-12-08T01:20:24 | 2018-12-12T02:32:20 | JavaScript | UTF-8 | Python | false | false | 5,141 | py | """
Django settings for DjangoDrf project.
Generated by 'django-admin startproject' using Django 2.0.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
... | [
"331103418@qq.com"
] | 331103418@qq.com |
70639d45671e5396a8a8c8e6ca9b2f500e141e72 | 575f91e81238eeba0a114d2360a7a727440649ba | /cifar_models/densenet.py | 47ac6ec0233f40a9a9d1e6f4029535f3508a3b27 | [] | no_license | Lappuccino/SimulatorAttack | 34075c2f5c6f424062a2e06ff32379c17e31f619 | 94d91639c55d594f1b9ee4212c3b99b1f0941a9c | refs/heads/master | 2023-06-09T09:35:51.018553 | 2021-06-18T03:45:00 | 2021-06-18T03:45:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,688 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
import math
__all__ = ['densenet']
class Bottleneck(nn.Module):
def __init__(self, inplanes, expansion=4, growthRate=12, dropRate=0):
super(Bottleneck, self).__init__()
planes = expansion * growthRate
self.bn1 = nn.Batch... | [
"sharpstill@163.com"
] | sharpstill@163.com |
822c99d79857911dcf6e2c367f13cab24f178bd6 | 971f88cd52eb97407ce7c65e66e48b641c0f5973 | /Linear Equations Calculator.py | c7c8d1bca7041edcedd364e9dca88b6e218df0eb | [] | no_license | IanBotashev/Python-Programs | 127a2b6098c7a8c728b9eb04568525ed4a90649a | 5e4ac7892d5bfab90cbd1bfc704493e91943262d | refs/heads/master | 2020-09-06T09:26:47.863046 | 2019-11-08T05:34:45 | 2019-11-08T05:34:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,506 | py | #Some code from Python.org
#Some code from StackOverflow.com
#This is a work-in-progress
#First variables:
mainvar = 1
tasdfasfdhjasdhfkjashdfk = 2
while tasdfasfdhjasdhfkjashdfk == 2:
#Variables called in this loop:
typee = 0
x = 1
n = 2.1
rwethereyet = 1
wait = 1
tingytwo = 1
... | [
"noreply@github.com"
] | IanBotashev.noreply@github.com |
53b118fb80ab4e424b51bac2cc1c9c19ec9a21c5 | 07aaf101828a3662c6ca4c5eed90619a676aa56e | /demos/021_linked_lists/ll_answers.py | 0e5bd1084f17164b488c7aaec4400c6f74e463ab | [] | no_license | hillarysim/YeetingOurWayInto61a | c7c8836ab660dd6844cc87fdd1d448d4a5742af4 | c05a539c8c3f8bd9d146cb3067a9ef9011358d36 | refs/heads/master | 2022-11-21T14:38:15.791580 | 2020-07-20T00:05:49 | 2020-07-20T00:05:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | x = Foolz("dino")
# prints dino
print(x)
# Division Error?
x
# 1/0.1
str(x)
# "Division Error?"
def nonMutativeLink(l, func):
if l is Link.empty:
return Link.empty
else:
return Link(func(link.first), nonMutativeLink(l.rest, func))
def mutativeLink(l, func):
if l is Link.empty:
... | [
"ctwong958@berkeley.edu"
] | ctwong958@berkeley.edu |
4e9111ec60477725635a3a1c5dc41784e9dd1e57 | 0c5a631622648b3cdf8534c2daf7569a1e17ff9a | /tests/benchmarks/constructs/InplaceOperationIntegerMul.py | f67fc5a5c13c35d2a1fdc02eda16ef077d8fa56b | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | wweiradio/Nuitka | 9c5b7cf8dcde41dc43e3b17e8427ed5af77a4930 | 1914597d47585f3c899d76490fa6d173eca966d0 | refs/heads/master | 2021-01-11T22:39:25.276905 | 2016-12-10T11:27:30 | 2016-12-10T11:27:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,305 | py | # Copyright 2016, Kay Hayen, mailto:kay.hayen@gmail.com
#
# Python test originally created or extracted from other peoples work. The
# parts from me are licensed as below. It is at least Free Software where
# it's copied from other people. In these cases, that will normally be
# indicated.
#
# L... | [
"kay.hayen@gmail.com"
] | kay.hayen@gmail.com |
88ff6e12447e7c702d0ed437b186edb4560eebfe | 9c2e0c84f9beac4c942cf05ac65a15253058f8ea | /tests/test_cffi.py | eddf079fd50532c9f0e80111a79a1aa5ba07c311 | [
"BSD-3-Clause"
] | permissive | smile-luobin/python-zstandard | 881af6eda22254dbaa22eef9b9f930ddfb97c6e0 | ca0199a2e29145111cee8af60385e24d776413cc | refs/heads/master | 2021-01-11T09:08:41.664687 | 2016-12-19T17:10:25 | 2016-12-19T17:10:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 838 | py | import io
try:
import unittest2 as unittest
except ImportError:
import unittest
import zstd
try:
import zstd_cffi
except ImportError:
raise unittest.SkipTest('cffi version of zstd not available')
class TestCFFIWriteToToCDecompressor(unittest.TestCase):
def test_simple(self):
orig = io.B... | [
"gregory.szorc@gmail.com"
] | gregory.szorc@gmail.com |
54be96328bf4d1ff35e0f3ba31e9309c38bc8a35 | 839a2babf0f74f5ab45aedfedb527613935ae19a | /content/blog/2022-09-15-data-structures-and-algorithms-cheatsheet/py/heap_mine_test.py | cbd63f828addc063872a438e35f686d86a64d0a3 | [
"MIT"
] | permissive | 9oelM/9oelM.github.io | 84eb41e7c748620a943a742ed7d7d192b006a75e | f001ace931d2963a39045c980d192fd7b8f7dd91 | refs/heads/dev | 2023-08-30T20:02:11.473984 | 2023-08-22T02:35:41 | 2023-08-22T02:35:41 | 105,492,752 | 4 | 1 | MIT | 2023-02-09T00:45:01 | 2017-10-02T02:56:12 | JavaScript | UTF-8 | Python | false | false | 1,154 | py | import copy
import heapq
from heap_mine import MinHeap
my_heap = MinHeap()
def compare_and_check(a, b):
if a != b:
raise Exception(f"not same: {a} and {b}")
def test():
for arr in [
[9,8,7,6,5,4,3,214,124,51,516,7,48,8,345869,8,16,6176,16,78,71],
[1],
[2,1],
[1,1],
[1,2],
[1,2,3],
... | [
"hj923@hotmail.com"
] | hj923@hotmail.com |
2b17d9d8ff94ed08700f722f676a4dba21eb7587 | 15afc6a3270d9b42cc84a788853ce46456be01f2 | /section_ii/project_a/chapter_12/example_5/game_functions.py | b4fef3ea991ce9d343994785e415a8b4da160af9 | [] | no_license | xieqing0428/python_helloworld | 161c90564638dc49e3a82a00607a762b36a39212 | e08f63616aabe609ff1ac53b8e0ab32eaf2a472b | refs/heads/master | 2020-04-16T11:01:37.918248 | 2019-02-14T07:19:09 | 2019-02-14T07:19:09 | 165,521,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,787 | py | # -*- coding:utf-8 -*-
"""
@author: Alessa0
@file: game_functions.py
@time: 2019-01-19 17:29
"""
import sys
import pygame
from python_helloworld.section_ii.project_a.chapter_12.example_5.bullet \
import Bullet
def check_events(ufo_settings, screen, ufo, bullets):
"""检查按键事件"""
for event in pygame.event.... | [
"849565690@qq.com"
] | 849565690@qq.com |
a81d92c2056b58b1664cc2b35d3227bbf00f6719 | d64b15f01374254c6628abaa0535186738dca6d3 | /SSVI/SSVI_TF_d.py | 2f08fc4b902b68f0fe0d012754c5086f82776c80 | [] | no_license | dnguyen1196/SSVI-tensor-factorization | b3fa82c8967eb5a415c9d29dc2e290535ee8f41f | e371094de77bfa866d411bd84a7e65463e5a96f9 | refs/heads/master | 2020-03-15T14:37:25.008000 | 2018-05-17T16:02:06 | 2018-05-17T16:02:06 | 132,193,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,751 | py | import Probability.ProbFun as probs
import numpy as np
from numpy.linalg import inv
from numpy.linalg import norm
import time
"""
SSVI_TF.py
SSVI algorithm to learn the hidden matrix factors behind tensor
factorization
"""
class H_SSVI_TF_2d():
def __init__(self, model, tensor, rank, rho_cov, k1=1, k2=10, scheme="... | [
"ducnguyenmanh96@gmail.com"
] | ducnguyenmanh96@gmail.com |
3f45d74e68ce58dcac1bcf428cac778127060fec | 886005f0847c094dec01b41769475e1e966b8b7f | /leetcode/1051. Height Checker.py | 117394356b153ba84d8dd3c2e53166a902caf255 | [] | no_license | alex-radchenko-github/codewars-and-leetcode | e4d55c5e6c5279a2cada5eb9e04ad1183ed36087 | 20a56eb4753a9ead190a7c529f2c06c99d64f325 | refs/heads/main | 2023-01-02T22:45:38.878716 | 2020-11-03T04:49:59 | 2020-11-03T04:49:59 | 307,790,531 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 234 | py | def heightChecker(heights):
return len(list(filter(lambda x: x[0]!=x[1], list(zip(heights, sorted(heights))))))
# return list(zip(heights, sorted(heights)))
print(heightChecker([1,1,4,2,1,3]))
print(heightChecker([5,1,2,3,4])) | [
"48209253+radchenko511@users.noreply.github.com"
] | 48209253+radchenko511@users.noreply.github.com |
97b29febcb2be2ac2dafb2215f884fec355564c1 | 747b5ad3163d745d2ebe72b473e1346554a94045 | /utilities/Augmentation.py | 4414fa70e3b7795dc2f922074e1d4dd7af8efad4 | [] | no_license | bibliotecadebabel/EvAI | d5227db96341cf8bdf44d2c23ae6b2987aab6a5f | 2beeaf68e28c86aedb9fb6d3cb80753676d85933 | refs/heads/master | 2023-04-09T17:14:55.039442 | 2021-04-15T20:44:32 | 2021-04-15T20:44:32 | 208,825,808 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,733 | py | import numpy as np
import torch
ENABLE_EXTRA = False
class Ricap():
def __init__(self, beta):
self.__beta = beta
self.__w = {}
self.__c = {}
# Autor = 4ui_iurz1 (2019)
# Repositorio de Github = https://github.com/4uiiurz1/pytorch-ricap
def doRicap(self, inputs, target, cu... | [
"felixmorales@github.com"
] | felixmorales@github.com |
c0c172189cdab047727594e3f9156a35dd596250 | 1d825df911d2b0a4cc36b26da9a8883eed9de8ec | /lib/utilities.py | 2605f7d86b54724839568903680e797c0ca2b32c | [] | no_license | sinofeng/wpi-svm | 74793e91ac5330a3665caa71d44b36931fc59f0e | 5ad078a9a3475eb6a3fe3efd12e8fca39e4857ef | refs/heads/master | 2021-03-17T22:02:54.675868 | 2012-10-27T13:44:37 | 2012-10-27T13:44:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,315 | py | # -*- coding: utf-8 -*-
import re
class Logger(object):
def __init__(self, file_path):
self.log_h = open(file_path, 'wb')
def log(self, line):
print line
self.log_h.write(line+'\n')
def close(self):
self.log_h.close()
def parse_field(dict, key):
""" Simple dict wrapper
dict: name of dict object
key: n... | [
"chen_xm@sjtu.edu.cn"
] | chen_xm@sjtu.edu.cn |
73b427dd65269dfe448cdf4dd9b71647982cd4cd | 14289b4de03edaf950fdae17536c1b04f9d0874d | /python-course/day-05/code/10.读取文件的位置.py | 8889ca90e85e764c1d4fa23ac436405328940e45 | [] | no_license | piggy1024/python-learn | cc03c1302a707c48d616c9a837d9b3d49e07bf15 | 2d54e56dfe7b5c2ca90ae1dc846d8ea4774a7629 | refs/heads/main | 2023-01-02T00:27:09.822020 | 2020-10-24T01:50:38 | 2020-10-24T01:50:38 | 306,784,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | # 10.读取文件的位置.py
# seek(参数1,参数2) 参数1是要切换到哪里
# 参数2:
# 0 从头计算 ,默认值
# 1 从当前位置计算
# 2 从最后位置开始计算
# 一个中文三个字节
with open(r'../demo.txt','rb') as file_obj:
print(file_obj.seek(-10,2))
print(file_obj.read())
print('当前读取到哪儿:',file_obj.tell()) | [
"1293266846@qq.com"
] | 1293266846@qq.com |
1b5b8f50a106043c4e3d113b9d076523c1060bb4 | 356bdbebb47c1acc7122a8275ebb3f01771de785 | /mcb.pyw | 9f04d67abea79c6c8e4bc94bace3f6825816da08 | [] | no_license | rawbsrn/Automating-Python | e178b6a33f29e0332aa25605134b439da1089748 | e4635aa0609d1fd07154e9cfad6ed574c2bdb9df | refs/heads/main | 2023-07-30T07:39:38.641260 | 2021-09-17T00:55:24 | 2021-09-17T00:55:24 | 399,982,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 944 | pyw | #! python3
#mcb.pyw - Save & load pieces of text to the clipboard
# Usage: py.exe mcb.pyw save <keyword> - Saves clipboard to keyword.
# py.exe mcb.pyw <keyword> - Loads keyword to clipboard.
# py.exe mcb.pyw list - Loads all keywords to clipboard.
# py.exe mcb.pyw delete <keyword> - delete specifi... | [
"89554888+rawbsrn@users.noreply.github.com"
] | 89554888+rawbsrn@users.noreply.github.com |
412e62dd7a5a5818adb3d0a2a10997b21864d00a | 40efb62bc628ad3de7534051feccb97b6427e53a | /Homework/Python/ILPLarge/Q1.py | 7247d04b51c3fa9c1d57729f3255704a51ff1488 | [] | no_license | nguyntyler/DigitalCrafts-Class | f1de5865fcc7dd0ed26429bd87f84ebc07797a97 | ec275667c6a4f8823951fa1f69b596dea0981bd6 | refs/heads/master | 2023-02-14T18:48:11.607893 | 2021-01-10T00:16:44 | 2021-01-10T00:16:44 | 303,833,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | x = range(1, 101)
for i in x:
print(i * (i + 1) // 2)
# This is true or should be
| [
"nguyn.tyler@gmail.com"
] | nguyn.tyler@gmail.com |
5fd75c72f34d71f069aca48047fd059fac481dc1 | ab3abc31e6c4c292088d390355844f04f46b9141 | /src/detection_video.py | be5b6268ab6d577327b2a557b693c76953954ff1 | [] | no_license | zhikiat62/face-mask-detect | 98a860147f6af9e7165ac7c732cb842e054cdf89 | 1ae132b38c4e24c2ed2033fdf341ea96dab7d89c | refs/heads/main | 2023-06-02T13:59:23.174843 | 2021-06-18T10:02:58 | 2021-06-18T10:02:58 | 373,211,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,179 | py | # import the necessary packages
from tensorflow.keras.applications.mobilenet_v2 import preprocess_input
from tensorflow.keras.preprocessing.image import img_to_array
from tensorflow.keras.models import load_model
from imutils.video import VideoStream
import numpy as np
import argparse
import imutils
import time... | [
"noreply@github.com"
] | zhikiat62.noreply@github.com |
469da1f8198f033b07ed962c63dd9cb8ed6ffa3d | 3c73527b7553869700e43877ff4c16260d4a0b69 | /algorithm/binary_tree.py | 0ab38b84ed516097aab123b2ee4cd61a6ce23138 | [] | no_license | jeklen/programmingExercise | 09dd5b4ff0733b1994fc6d3a79ca6ea2902c2629 | 50d9472d8b817653c7af94cd74dec25e99ae4de0 | refs/heads/master | 2021-06-05T12:18:26.758662 | 2016-10-24T08:00:54 | 2016-10-24T08:00:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,506 | py | class Node:
"""
Tree node: left and right child + data which can be any object
"""
def __init__(self, data):
"""
Node constructor
@param data node data object
"""
self.left = None
self.right = None
self.data = data
def insert(self, data):
... | [
"zhql0907@outlook.com"
] | zhql0907@outlook.com |
af52d3bbef2942a8ee05414948f62f44ad230416 | a9c29d5e0eb3593d4d02ee92317721bf0f8416c4 | /keyboards/inline/__init__.py | f158e699b1f87b2790dad87e24d7d4a72cf81e25 | [] | no_license | Basilo142/aiobot | 25c11b7a16fbea644dce1b3c1aff384dd91d0673 | 2506d83eab308afb03eaa7f133871fa1f90b3969 | refs/heads/master | 2023-08-24T07:12:01.579463 | 2021-11-05T16:34:41 | 2021-11-05T16:34:41 | 407,207,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52 | py | from .key_inline import inline_buttons, drugaya_key
| [
"diadiun@bitbucket.org"
] | diadiun@bitbucket.org |
827f9e02239c8b99b08743da6e5b2535b09bcdf9 | 0c5abd937d2e9bce0a5cd5b437b1e0bfc244ceb6 | /common/utils.py | a82588d7c61fe3e3080dfa3962ec3d044270c734 | [] | no_license | pda-gb/Client-server_applications_2.BD_and_PyQT | 2787000094b027978cd359cbc59acdf2a9f3d4c6 | 681c7bdaf83fa4905a6167d10d2aace774088a3b | refs/heads/master | 2023-02-22T21:47:21.265299 | 2021-01-22T01:39:42 | 2021-01-22T01:39:42 | 331,393,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,155 | py | """Утилиты"""
import json
from common.variables import MAX_PACKAGE_LENGTH, ENCODING
def get_message(_sock):
"""
Приём сообщения, декодирование из байт, если ошибка, выдать текст ошибки
"""
response_as_byte = _sock.recv(MAX_PACKAGE_LENGTH)
if response_as_byte != b'':
if isinstance(response... | [
"pda.prostor@gmail.com"
] | pda.prostor@gmail.com |
3f3c6507befaaa43634a91d4c7e360ccb848abf3 | 0166fe426b2dc36e974a26f8b406094c67550f46 | /Broswer-Interaction/Executables/login_enabled_CT.command | 796bf1000a7cfe5ea6f6393ac135c307d5ef47cb | [] | no_license | DreadArceus/Automation | 693ff18c2f47c85741ed1bc2b1337a93bdde150e | 98736cc933de0c9e498c32b0e4ff320affaf70cc | refs/heads/master | 2023-03-31T00:22:41.400544 | 2021-04-09T03:21:01 | 2021-04-09T03:21:01 | 291,393,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 903 | command | #!/usr/bin/env python3
import time
import webbrowser
from selenium import webdriver
from bs4 import BeautifulSoup
driver = webdriver.Safari()
driver.get('https://erp.lnmiit.ac.in/ugadm/Dashboard.aspx')
soupI = BeautifulSoup()
while True:
if driver.current_url != 'https://erp.lnmiit.ac.in/ugadm/Dashboard.aspx':
... | [
"dcmtalwar@gmail.com"
] | dcmtalwar@gmail.com |
66153ba19dfeb3194214bb436dfa73f2c1b4926d | 84197b3cb75d2c2ea8ba40252e146375941b077a | /flask_app/__init__.py | 8259943fd7d955ba3c6b6a07d549483f6c19bb66 | [] | no_license | bkhurley/beat_the_crowd | aa5451cb5fddffc904ad211b5fe7168656a42664 | f291038e77dbd158dcfb156e01655f2ddfecd436 | refs/heads/master | 2021-05-11T21:43:04.294702 | 2018-05-17T17:36:46 | 2018-05-17T17:36:46 | 117,475,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | from flask import Flask
app = Flask(__name__)
from flask_app import views2 | [
"hurley.brian@gmail.com"
] | hurley.brian@gmail.com |
c14f7e2a3991057490ce8edbd390f6aea7335c0d | a1c6b5467a9c1dddeffd66ab3f415b9dbdcb56e9 | /COVIDIC/manage.py | ceec6756d6103201d803e41c219c41dcc03f79dd | [] | no_license | hanpikeu/Covidic-Frontends | 9569267d09866db106d38f6121c75d00e5157df3 | a565a1713bcbafa9542851ea9b622bd29acc98fc | refs/heads/master | 2021-04-01T07:57:44.627392 | 2020-03-18T16:58:01 | 2020-03-18T16:58:01 | 248,170,555 | 0 | 0 | null | 2020-03-18T07:57:01 | 2020-03-18T07:57:00 | null | UTF-8 | Python | false | false | 627 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'COVIDIC.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Import... | [
"viasta20311@gmail.com"
] | viasta20311@gmail.com |
c5a8b2ac1773693bce5629c33839801ad745a20c | 4888923eb948d61b54d87750c9e4810e5b6dc7df | /backend/venv/bin/isort | eb426718aef2de9b32464aea804666524a5eb79c | [] | no_license | EricRobertCampbell/auth0-poc | 5305f8bee8408d84e174c9b593053581f555901c | 0d5718760d47777ccabca2fdc67e689cd37ba81b | refs/heads/master | 2022-12-30T02:52:03.962759 | 2020-10-16T23:04:05 | 2020-10-16T23:04:05 | 304,756,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | #!/home/eric/documents/auth0-poc/backend/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from isort.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"eric.robert.campbell@gmail.com"
] | eric.robert.campbell@gmail.com | |
1652435f5d485a9de09c979c03c31ba7d17307fc | ab4f0df599159b2c3929c24b12e2766718efdacb | /cubepy/index.py | 3787946118858decc7656993b76f715643b3cacf | [
"MIT"
] | permissive | jorgedouglas71/pyplan-ide | f01ec438f727ee0dea01b0d265155b49a26ccdb8 | 5ad0e4a2592b5f2716ff680018f717c65de140f5 | refs/heads/master | 2020-09-25T03:10:01.201707 | 2019-12-04T15:39:55 | 2019-12-04T15:39:55 | 225,904,173 | 0 | 0 | MIT | 2019-12-04T15:57:06 | 2019-12-04T15:57:05 | null | UTF-8 | Python | false | false | 2,793 | py | import numpy as np
from cubepy.axis import Axis
class Index(Axis):
"""A named sequence of unique indexed values. Can be used as indexable axis in Cube.
Name is a string. Values are stored in one-dimensional numpy array.
"""
def __init__(self, name, values):
"""Initialize a new Index object. ... | [
"fbrussa@novix.com"
] | fbrussa@novix.com |
175fb277a49966e29ff8712330bb24e13e1ad305 | fa7c420ef42b33f9488e5e6b75462ebe7c7a3e54 | /DataProcessingPipeline/pycharm/datamaking_real_time_data_pipeline/real_time_data_pipeline.py | 18b84f209f2da83a820e82a864227b772dae1165 | [] | no_license | sravyapagadala1/DataProcessingPipelineGCP | 0ca2d4b16f60afea4b5b9f07a24ce999d248f389 | 21cee99f51306583ac57be693a286216fc7750c4 | refs/heads/master | 2022-09-13T18:33:40.675803 | 2020-05-28T11:51:56 | 2020-05-28T11:51:56 | 267,575,666 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,443 | py | from pyspark.sql import SparkSession
from pyspark.sql.functions import *
from pyspark.sql.types import *
KAFKA_TOPIC_NAME_CONS = "transmsg"
KAFKA_BOOTSTRAP_SERVERS_CONS = '35.238.42.190:9092'
if __name__ == "__main__":
print("Real-Time Data Pipeline Started ...")
spark = SparkSession \
.bu... | [
"noreply@github.com"
] | sravyapagadala1.noreply@github.com |
daa036edc8eb665395f09338474ee089044a4872 | 59731d4fe8ba2778a25c4345dedcb4ad4e759fe0 | /deepService/eventHandlers/UpdateJobHandler.py | 9b14ccdac0dc3ba661c09b15d14e694bf55bae93 | [] | no_license | goodshark/kube-deep | cbf7d4ac2af001d7c504937b9fee0cf64b8b1e97 | 0c07366fa998fbf82df5a2a91f91be32031eb703 | refs/heads/master | 2020-03-27T08:30:05.556710 | 2018-12-14T08:56:19 | 2018-12-14T08:56:19 | 146,261,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,126 | py | # coding: utf-8
from EventHandler import EventHandler
from util.ApiConfiger import ApiConfig
from util.RedisHelper import RedisHelper
import kubernetes
from kubernetes import client, config, watch
from kubernetes.client.rest import ApiException
import json
import re
import traceback
class UpdateJobHandler(EventHandler... | [
"root@tf-1.novalocal"
] | root@tf-1.novalocal |
6926911d576e910dfcf6812e7dd08b64e45c509e | ed0a4b5ebe0a93054766b1d6948fe31d006a19d8 | /GradeCalculator.py | 61890e98deb52972643ef4ca341176b5c8a04bee | [] | no_license | max-conroy/Python | 5c19ce989d2f0bd942f2c23917b31c69ca81b4b6 | d058de635005d05d1dc7fc45de98e7f571877de1 | refs/heads/master | 2021-11-24T19:59:04.068020 | 2016-01-29T01:24:46 | 2016-01-29T01:24:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,036 | py |
# Group #2 - Program 2 - Grade Averaging Program
# Andrew Weaver, Jordan Westfall, Max Conroy
# CSC 485 - Special Topics in Computer Science - Python
#Basic grade calculator program
# Command handler
def main():
printTitle()
promptInput()
... | [
"conroy316@yahoo.com"
] | conroy316@yahoo.com |
4b6de09716039e8e42ef1b4f23ea314d2d2a8e8e | 4e28a9fe973d7f6dc318aa191e25c44032b89f54 | /PycharmProjects/demo0/描述符.py | 677f10e086ca595b607deb7904fdd469e9da3656 | [] | no_license | octolittlefish/python | 0f159cc85c92a4a5328fe31c988f1999480cbe11 | ef7b08d658566baf81578d594d6d6c256c17017e | refs/heads/master | 2021-01-22T20:55:13.867795 | 2017-05-14T05:14:39 | 2017-05-14T05:14:39 | 85,378,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,046 | py | # class MyDecriptor:
# def __get__(self, instance, owner):
# print("getting...",self,instance,owner)
# def __set__(self, instance, value):
# print("setting...",self,instance,value)
# def __delete__(self, instance):
# print("deleting...",self,instance)
#
# class Test:
# x = MyDecr... | [
"278715853@qq.com"
] | 278715853@qq.com |
6d5fe15c4c31ed1dfb107a67ad6c71c152d2c48b | d9272149dbf3b1157324291cefa55cacedad1082 | /testing.py | 501a3f585a6af61014c131fe59829f4af42d5deb | [] | no_license | mymindcastadrift/gen-eigh | 680147e625e9dcc5b0d9aecc5b58fec8f3693871 | c33326655b05d24fef287fe2b449483181243139 | refs/heads/master | 2016-09-16T13:09:09.965067 | 2015-08-23T22:00:18 | 2015-08-23T22:00:18 | 39,964,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,934 | py | import numpy as np
from scipy import linalg
import matrixgenerator as matgen
from choleskywilkinson import cholesky_wilkinson
from fixheiberger import fix_heiberger
# Error functions =====================================
def column_vect_norms(X):
norm =[]
for i in range(X.shape[1]):
x = linalg.norm(X[:,i])
n... | [
"="
] | = |
1df1b029fa86fd9b6464ffa2209d9062ebf5005d | e82e417d06b41f3ff28bfd69b251595ed3865e5e | /BattleFire.py | 54675e125de6457e02ed97b431ece5f3de65f56a | [] | no_license | ameyabhamare/pokemon-xyz | 540c0d0f94d7e5f91e514bb2b320057edbd110fe | eab61a58f4d5375e7997c3e5c71b99e28e9be893 | refs/heads/master | 2022-11-15T07:37:10.425054 | 2020-07-14T05:02:23 | 2020-07-14T05:02:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,684 | py |
import pygame
import random
WIDTH = 950
HEIGHT = 700
FPS = 15
pygame.font.init()
smallText=pygame.font.Font('freesansbold.ttf',15)
smallText1=pygame.font.Font('freesansbold.ttf',22)
def text_objects(text, font):
textSurface=font.render(text,True,BLACK)
return textSurface, textSurface.get_rect()
#colour defini... | [
"aditeya.baral@gmail.com"
] | aditeya.baral@gmail.com |
388935c6fb29e2aa10a63eb2d25d24fa7bcf8547 | e653913c3e1a294d3294790cbf96da4d0d45b9de | /lib/fast_rcnn/softmax_loss.py | a2fcd289773978cef3c292732404cdd87dd27363 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause"
] | permissive | dereyly/faster-rcnn-my | 895919325a0e24bf822e4a914fe91691647fbf44 | 8f30c996102ab59ece8bf683cdbe4bbab4e8a29b | refs/heads/master | 2021-04-15T13:33:07.377526 | 2018-04-27T18:05:47 | 2018-04-27T18:05:47 | 126,897,428 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,222 | py | __author__ = 'dereyly'
import sys
#sys.path.append('/home/dereyly/progs/caffe_cudnn33/python_33')
#sys.path.append('/home/dereyly/progs/caffe-master-triplet/python')
import caffe
import numpy as np
'''
layer {
name: 'rcls_lost_my'
type: 'Python'
bottom: 'feats'
bottom: 'labels'
top: 'cls_lost_my'
python_pa... | [
"dereyly@gmail.com"
] | dereyly@gmail.com |
ee4f68abfd11e4e51c357513e5d469d5820fcd77 | 4b6d8d8f7f9fb2a73c634b1915741a2fabd25f26 | /main.py | a509b0f8d19546d423e5acff5f1bf577f1c748c6 | [] | no_license | gustavusd/TicTacToe | 249366d5f5fc8f1ca36702b09789bf7c8e596873 | d457ab1fc36eb60c9b2a19fc9e45f7d2bde67a93 | refs/heads/master | 2022-11-19T20:12:10.745007 | 2020-07-20T18:39:02 | 2020-07-20T18:39:02 | 281,197,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 981 | py | from Board import Board
from Player import Player
from AI import AI
# As a precondition you must enter valid moves
def main():
board = Board([[]])
board.new_game()
player = Player(board.game_state)
ai = AI(board.game_state)
board.who_start = input("Enter x: ")
board.display_board()
while b... | [
"gustavus7@gmail.com"
] | gustavus7@gmail.com |
ae4f8568a71b51624bc620ef95973987e0088220 | 6df36df3f0280f49b97b64db51089e63c3333eba | /Tor/registration_client.py | 4e2199733d392206db688dbe425e2f3dbfb6dbe3 | [] | no_license | ErichL/Projects | efe38cdde6207c222e1705463ed34bee68a8e0b4 | 055c053603f3740ccd09888140d75925628e8de5 | refs/heads/master | 2021-01-18T18:16:27.542330 | 2017-09-30T06:52:08 | 2017-09-30T06:52:08 | 33,706,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,814 | py | import socket
import struct
import select
import signal
import pyuv
import subprocess
import sys
import os
#-----------------------------------------------
# Usage: python registration_client.py servicePort serviceName serviceData
# Registers a service whose IP is that the host it's running
# on and whose port, na... | [
"erichlee96@gmail.com"
] | erichlee96@gmail.com |
3f88725fdeac52cf836f310d51cfec6c8abd73d7 | a7e5d600a938d2746ab40f90c42b539f93d076cb | /population_script.py | 9d39fc8232fd3bfa97811cfe03f37855ab59a251 | [] | no_license | TheWerewolves/IT_Team_Project | 2fee7dd8f9b9774eb11327b81de3d4055a184a2b | 215fa77174980a54de2b9c5353f873721c257950 | refs/heads/master | 2022-12-09T21:49:21.930089 | 2020-03-31T20:20:34 | 2020-03-31T20:20:34 | 246,424,879 | 0 | 0 | null | 2022-12-08T03:56:12 | 2020-03-10T22:51:52 | Python | UTF-8 | Python | false | false | 14,557 | py | import os
os.environ.setdefault('DJANGO_SETTINGS_MODULE',
'IT_Team_Project.settings')
import django
django.setup()
from django.contrib.auth.models import User
from gamers_havn.models import Account, Game, Article
def populate():
accounts = [
{
'user': {
... | [
"yuutojurgen@gmail.com"
] | yuutojurgen@gmail.com |
9d31cb6fbc29af9594d709b85b0aae24e8c96cd9 | 373035950bdc8956cc0b74675aea2d1857263129 | /spar_python/report_generation/ta2/ta2_report_generator.py | 60f4d6ca6486e898b11b055d04aadb3851bd8bee | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | limkokholefork/SPARTA | 5d122cd2e920775d61a5404688aabbafa164f22e | 6eeb28b2dd147088b6e851876b36eeba3e700f16 | refs/heads/master | 2021-11-11T21:09:38.366985 | 2017-06-02T16:21:48 | 2017-06-02T16:21:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,345 | py | # *****************************************************************
# Copyright 2013 MIT Lincoln Laboratory
# Project: SPAR
# Authors: SY
# Description: TA2 report generator
#
#
# Modifications:
# Date Name Modification
# ---- ----... | [
"mitchelljd@ll.mit.edu"
] | mitchelljd@ll.mit.edu |
72620f4f255b14b91a7e4a7879e1322dd751f2e5 | 5e4d1d78fa3a7bf292e8f61b6f71cfac7b9afae5 | /Approx.py | e0baca63c22ff280d1dc4467705a0795a9d6d7b1 | [
"MIT"
] | permissive | MUYANGGUO/MVC-6140-Project | 205bca63982c5b01018c8da236d081168fcf9505 | 64ddac497802fd27b8895e264db44c552968d642 | refs/heads/main | 2023-01-29T10:54:03.528061 | 2020-12-05T04:02:00 | 2020-12-05T04:02:00 | 310,880,048 | 1 | 1 | MIT | 2020-11-22T22:42:51 | 2020-11-07T15:58:04 | Python | UTF-8 | Python | false | false | 893 | py | import time
import sys
sys.setrecursionlimit(100000)
def Approx(graph, cutoff_time, seed):
start = time.time()
print('Approximation method\n')
visited = set()
num_vertex = len(graph.nodes)
non_leaf = set()
for i in range(1, num_vertex + 1):
if i not in visited:
dfs(i, visi... | [
"yjiao47@gatech.edu"
] | yjiao47@gatech.edu |
164c0db846e167a5197716060bd51aa999e4c08c | 5f18c3201b7f411ea300ee96e302b8cbda2c44a6 | /braille/BrailleFile.py | c1336e19d6a4d1c614f4425e0f6db1ab008b3cbd | [
"MIT"
] | permissive | sulealothman/arbraille | 2204fac70e30bdc58f721e84b0748519754ad55b | 80cf33bfc0368814778c76e3fd82da27042235f1 | refs/heads/master | 2023-01-19T18:07:15.859978 | 2020-11-29T16:36:08 | 2020-11-29T16:36:08 | 316,991,437 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | class BrailleFile:
def read(self, filePath=""):
path = filePath if(filePath.strip() != "") else input("Enter file path for translate : ")
path = path if(path.find('\\')) else path.replace('\\', '\\\\')
with open(path, "r", encoding='utf-8') as f: content = f.read()
return content
def write(self, content, fi... | [
"sothman@mte.sa"
] | sothman@mte.sa |
830e866737f1edd33ffd9bb50f6062cbdd7a64d7 | d626c65a4d4990c733b72f9d93a8365c789cd000 | /RFID.py | 6ee8bc3e1abbc092168240877398383f814c1d2a | [] | no_license | Alex5200/Raspi-rfid-temp | 486b6c77ed285a2d990d6b47710400dba27f9440 | d4a072b9395d7ae9599855c06ee1b23b7ab5ec4e | refs/heads/main | 2023-02-28T21:56:31.546140 | 2021-02-13T17:13:10 | 2021-02-13T17:13:10 | 333,729,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,152 | py | #!/usr/bin/env python3.5
#-- coding: utf-8 --
import RPi.GPIO as GPIO #Importe la bibliothèque pour contrôler les GPIOs
from pirc522 import RFID
import time
GPIO.setmode(GPIO.BOARD) #Définit le mode de numérotation (Board)
GPIO.setwarnings(False) #On désactive les messages d'alerte
rc522 = RFID() #On instancie la ... | [
"noreply@github.com"
] | Alex5200.noreply@github.com |
c6e04bd7d9ecc645f515936cf297d14781787c56 | d748e95c78bd3d259fd977a6496591abb70c9bf8 | /main.py | 053a9502d6c2c60c97b5766c339164d831d95f0f | [] | no_license | Martikos/spiderman | ff36ea0c25490c2f620dc72a3588c8244d592317 | 6be33cb0762c2891fd7e90e201c3720b5fdfffa2 | refs/heads/master | 2020-04-22T00:14:07.050561 | 2013-12-02T15:38:08 | 2013-12-02T15:38:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,686 | py | from datetime import datetime
import json
import operator
import requests
import sys
from collections import deque
from tornado.httpclient import AsyncHTTPClient
from tornado.web import asynchronous
import tornado.ioloop
import tornado.web
# globals
network = {}
n_videos = 100
video_requests = []
video_queue = deque... | [
"marc.m.adam@gmail.com"
] | marc.m.adam@gmail.com |
610eee5ef0c52adcdcf9e1dd3953f8605cce1f25 | f043fee89c0e2030386adcebb74d08164b7b974f | /reagent/ope/estimators/estimator.py | f53db8aecd9b5a794e2b422655c7546d20379046 | [
"BSD-3-Clause"
] | permissive | IronOnet/ReAgent | c2d22e7dc63eaf61e0a50e9343110c6df79a9b40 | 67434f458cde1f2c946237e866a73392279a7ede | refs/heads/master | 2023-04-06T17:31:59.751700 | 2021-04-12T21:56:19 | 2021-04-12T21:57:05 | 357,700,053 | 2 | 0 | BSD-3-Clause | 2021-04-13T22:04:09 | 2021-04-13T22:04:09 | null | UTF-8 | Python | false | false | 9,051 | py | #!/usr/bin/env python3
import logging
import math
import pickle
import tempfile
from abc import ABC, abstractmethod
from dataclasses import dataclass, field
from multiprocessing import Pool
from typing import Iterable, List, Mapping, Optional, Tuple, Union
import torch
from reagent.evaluation.cpe import bootstrapped_... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
5ef3284f1486ca9ee29e8dec423629dcea7fd80f | 8b40cbc0b0f61d79f02e91ae77e495ba3b261f41 | /docs/src/main/sphinx/conf.py | 25dec8253fa455ff834174bf74d22741ab87e212 | [
"Apache-2.0"
] | permissive | wutao0914/Addax | bbf94bf41747dd6c2a6e23cb00bd073d2e4a0873 | 2a07616997a8196450ccb06aec8470bfc55aef0b | refs/heads/master | 2023-06-29T17:45:38.094235 | 2021-08-03T07:43:56 | 2021-08-03T07:43:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,549 | py | #
# 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
# distributed under ... | [
"wgzhao@gmail.com"
] | wgzhao@gmail.com |
eea391d7180a0c41cb83d97792b66fc90728bfd0 | 6cceeeea6fb4f103ef01b31881aab56982290af1 | /supervised_learning/0x03-optimization/11-learning_rate_decay.py | f5a6728c6040a52b8f936b824da447b117ba7c24 | [] | no_license | KatyaKalache/holbertonschool-machine_learning | 7be17a2abf5873f2eb0e82804074ef388eb8cda6 | 7a23ec62d7deee6260067c8125f0e32ac9ef9f0e | refs/heads/master | 2020-04-11T10:46:14.714349 | 2020-04-10T08:35:21 | 2020-04-10T08:35:21 | 161,725,673 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | #!/usr/bin/env python3
"""
Updates the learning rate using inverse time decay in numpy
"""
import tensorflow as tf
def learning_rate_decay(alpha, decay_rate, global_step, decay_step):
"""
Returns: the updated value for alpha
"""
alpha = 1 / (1+decay_rate * global_step) * alpha
return alpha
| [
"katya@kalache.fr"
] | katya@kalache.fr |
e14fa0f754db6caa0b959315e215e069d526c9a5 | 1470e5ae228a9e6758dfa2f9b658e09004f70b26 | /order/models.py | 88c68b18f760d1815ff8b2f40345b714a1f0884c | [] | no_license | stephenmom/supermarket | 927c0d14c4a4715f6711d81405c47b5dbe1a3417 | b35e999872d4cadbc9a013ede5aaadb47513e755 | refs/heads/master | 2020-04-07T04:35:22.338232 | 2018-12-01T08:24:26 | 2018-12-01T08:24:26 | 158,059,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,422 | py | from django.db import models
# Create your models here.
class Payment(models.Model):
"""
支付方式
"""
pay_name = models.CharField(verbose_name='支付方式',
max_length=20
)
payment_add_time = models.DateTimeField(auto_now_add=True, verbos... | [
"378399539@qq.com"
] | 378399539@qq.com |
6067bbd37e8a224f7631ed115119aaf1aadcdd13 | b578620339b4ec1512aa7b5600b2743979eb6277 | /order/admin.py | f624eef469c78013ec2bdee4d187a9fb8a9fbb02 | [] | no_license | yurabysaha/de_market | 4c8e62e075d8105b74192b413a38fad05a3d91df | 7f62245d9016f793ba22444273ea30304d279f88 | refs/heads/master | 2022-12-14T14:48:24.784171 | 2019-07-05T11:40:29 | 2019-07-05T11:40:29 | 131,822,227 | 0 | 1 | null | 2022-12-08T02:04:12 | 2018-05-02T08:36:41 | HTML | UTF-8 | Python | false | false | 572 | py | from django.contrib import admin
from django.utils.translation import gettext_lazy as _
from order.models import Order
class ItemInline(admin.TabularInline):
model = Order.items.through
extra = 0
model._meta.verbose_name_plural = _("Order Items")
class OrderAdmin(admin.ModelAdmin):
"""Add items to ... | [
"yurabysaha@gmail.com"
] | yurabysaha@gmail.com |
1a769f9ffd96e7be46b22935ea0efd109b45e026 | 508100dd49629021d4dcc7c761ee64fac5e0210b | /watson/framework/debug/panels/__init__.py | 485157ccb8a8baa9d6aa19a22f085fda0392b9d2 | [
"BSD-2-Clause"
] | permissive | watsonpy/watson-framework | e3f4c92ea9c35e789365a8a007bb883ad5dee928 | ffe157cb3fe24366ee55869d4260cce778012b4a | refs/heads/master | 2021-05-24T02:48:19.753723 | 2019-10-03T04:28:39 | 2019-10-03T04:28:39 | 16,093,806 | 69 | 8 | BSD-3-Clause | 2021-03-29T20:36:27 | 2014-01-21T05:39:46 | Python | UTF-8 | Python | false | false | 411 | py | # -*- coding: utf-8 -*-
from watson.framework.debug.panels.application import Panel as Application # noqa
from watson.framework.debug.panels.framework import Panel as Framework # noqa
from watson.framework.debug.panels.profile import Panel as Profile # noqa
from watson.framework.debug.panels.request import Panel as ... | [
"simon.coulton@gmail.com"
] | simon.coulton@gmail.com |
05df224ac370a076e23826a50a19a9f620729ab2 | cfb6883e85b799756440411c13c6c8044490dc52 | /kaggle/safe_driver/safe_driver_lgb_FM.py | fa661e57f050fd41aedd9a1602a14cc32c0ae8b8 | [] | no_license | WonderAndMaps/CodeStorage | 28d1b4ff7cbcd814402dcc60b6982d59a17c8d88 | 9a21cbe586c2c91dc6ccde788bf32e78f22e86a0 | refs/heads/master | 2020-03-22T10:29:51.864519 | 2019-04-22T19:31:12 | 2019-04-22T19:31:12 | 139,907,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,226 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Oct 19 18:03:00 2017
@author: dell
"""
import lightgbm as lgb
from lightgbm.sklearn import LGBMClassifier
import os
import pandas as pd
from sklearn import metrics
import datetime
os.chdir('C:\\Users\\dell\\Desktop\\Safe driver')
train = pd.read_csv("train.csv")
cat_cols = ... | [
"yfu@bazean.com"
] | yfu@bazean.com |
fc7948279f7238a48bcf8b27b3e480e488b08328 | c4dfd3aacb7449b574bc8a337d4b449b84a10250 | /4_kafka_connect_rest_proxy/exercise4.3.py | 1a4bcd0ff4de0d38bc10ce176dd955239cebb6a0 | [
"MIT"
] | permissive | seoruosa/streaming-data-nanodegree | 1a4c7549857e9dfcac09cf10e381c6e7ff5ed7fd | 14961bc42c626e74ac23cc94f69e25eab39a2da1 | refs/heads/master | 2023-05-28T11:16:47.174927 | 2020-03-26T04:19:21 | 2020-03-26T04:19:21 | 231,152,564 | 0 | 0 | MIT | 2023-08-14T22:07:44 | 2019-12-31T22:27:32 | Python | UTF-8 | Python | false | false | 2,662 | py | # Please complete the TODO items in this code
import asyncio
import json
import requests
KAFKA_CONNECT_URL = "http://localhost:8083/connectors"
CONNECTOR_NAME = "jdbc-connector"
def configure_connector():
"""Calls Kafka Connect to create the Connector"""
print("creating or updating kafka connect connector.... | [
"thiago.giachetto@gmail.com"
] | thiago.giachetto@gmail.com |
e340f100361951a498bb07f1744c08dc926eb9c5 | 9929ba720faf432a5bf3f5cc51dc9f429c24cb84 | /QUANTTOOLS/Market/MarketTools/TradingTools/trading.py | 6a435ccfa9a49189aa85ab900c650755f61fb1e8 | [] | no_license | chaopaoo12/QuantTools | 45fb344fc085bd7a40d94f646d0982d6b93db1a8 | 2bb1c5ad6aab3d454cfe32b6e6c86107992bed0c | refs/heads/master | 2023-08-18T04:03:11.944128 | 2023-08-13T10:58:49 | 2023-08-13T10:58:49 | 174,860,433 | 9 | 11 | null | null | null | null | UTF-8 | Python | false | false | 25,224 | py | from QUANTAXIS.QAUtil import QA_util_log_info, QA_util_get_pre_trade_date
from QUANTTOOLS.Message.message_func.wechat import send_actionnotice
from QUANTTOOLS.Trader.account_manage.base_func.Client import get_Client,check_Client
from QUANTTOOLS.Trader.account_manage.TradAction.BUY import BUY
from QUANTTOOLS.Trader.acco... | [
"chaopaoo12@hotmail.com"
] | chaopaoo12@hotmail.com |
2467bdec3fd716f87345d0e6f34cb4d81bdc4fc5 | fe7d80aa667ea7f34b60fc927e54d279f7bf81cb | /cnn_simple_v3/tools/use_isl_tfrecord.py | b3060f33736a9a7769b8c6705c72fe2260d59235 | [] | no_license | qq191513/myRecognize | 3b20b8ca7f1935d6b177b368eb72f0282db8799e | 8a183ca1e8ababd4f52b87a86f92c78eda5f4dc5 | refs/heads/master | 2020-03-21T18:26:24.286107 | 2019-06-26T08:21:40 | 2019-06-26T08:21:40 | 138,891,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,762 | py | import numpy as np
import matplotlib.pyplot as plt
import tensorflow as tf
import cv2
import time
import os
import tools.config_isl as cfg
preprocess_paraments={}
example_name = {}
##########################要改的东西#######################################
#tfrecords文件的路径
tfrecord_path = '/home/mo/work/data_set/italy_tf/'... | [
"1915138054@qq.com"
] | 1915138054@qq.com |
7b7fe151ae6868ef06c88f81d3b03699cae95014 | f334b883a00a55703fb023f3e0027970687d23e4 | /Desafios/des058.py | bddb48534b5f9514624d0daebf72c6007375b3f0 | [] | no_license | RodrigoMorosky/CursoPythonCV | 7f99ed049e2b33c161f408206de053bc77c636b6 | ff68d0a9bd399837048ae12309963086820e49ab | refs/heads/main | 2023-08-02T13:52:21.412302 | 2021-09-16T12:11:01 | 2021-09-16T12:11:01 | 407,150,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | import random
n = random.randint(0, 10)
print('Estou pensando em um número... tente adivinhar!')
a = 0
b = 0
while a != n:
a = int(input('Digite o número: '))
b = b + 1
print("Você tentou {} até acertar!".format(b))
| [
"80373831+RodrigoMorosky@users.noreply.github.com"
] | 80373831+RodrigoMorosky@users.noreply.github.com |
84d9b06cb86e28aea0e8281e0b9a358f030fa30a | a15d770809eb3ca8b780ec7a20ee0d95275a5c1d | /scraper/create_html.py | daeacc5f3f175709330a6cc27da567b521921b70 | [] | no_license | altcoins-code/altcoins | 924b7d2b7e151820254461466d27797d991677c7 | e048d42da91f584cd4650a18103a3724b4393631 | refs/heads/master | 2021-01-01T17:45:52.642810 | 2017-10-12T06:08:34 | 2017-10-12T06:08:34 | 98,150,336 | 1 | 0 | null | 2017-07-24T04:57:34 | 2017-07-24T04:57:34 | null | UTF-8 | Python | false | false | 1,545 | py | import pandas as pd
import pytz
from base64 import b64decode as use
'''
Hacky code for generating web assets and stuff
'''
def create_plots(data):
# iterate of array of raw data and make svg plot
plots = []
for i, row in enumerate(data):
id = 'plot%d' % i
fcn = "plot('%s', %s)... | [
"jk@jk.com"
] | jk@jk.com |
eab7b2f16184650f664061fcc7cb8ee4042760bd | eaf4287cf189cf0f87a60aafe4b6935f20a30d22 | /code/old_stubs/stub_from_start_thresh.py | 4c5eb277fbc5f0b023ce8cc4c2857a5aac1e6d0e | [] | no_license | zatsiorsky/p4 | bdd3a945cacfb64522e8305bf87eecd3257cf3ab | ad88d1203989d6344d336b8014e84541bcc94209 | refs/heads/master | 2021-01-20T04:08:05.441804 | 2017-04-30T02:23:11 | 2017-04-30T02:23:11 | 89,639,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,206 | py | # Imports.
import numpy as np
import numpy.random as npr
import pandas as pd
import os.path
import datetime
from itertools import product
from SwingyMonkey import SwingyMonkey
from collections import Counter
class Learner(object):
'''
This agent jumps randomly.
'''
def __init__(self, eta = 0.2, gamma = 1, epsi... | [
"RRADOVANOVIC@COLLEGE.HARVARD.EDU"
] | RRADOVANOVIC@COLLEGE.HARVARD.EDU |
f87e741810819e9f190a8b3bb658ed080e3c400b | 5659621ec26b13d0b07b4ceb5055db296c575ac0 | /task_bubble_sort.py | 2764839607c73d2e71dd1760863d7058a51376d8 | [] | no_license | tungyr/itmo-home-work | 2ce56d9d5932ff97c0898a09ced4f756d7e668ab | 97e16d3ceec4be86b6ba05e3da93c7605ad6833f | refs/heads/master | 2020-03-11T13:33:18.778798 | 2018-06-17T11:40:53 | 2018-06-17T11:40:53 | 130,028,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | def bubble_sort(lst): #объявление функции
for i in range(len(lst)): #перебор диапазона с длиной lst
for j in range(len(lst) - 1, i, -1): #перебор диапазона lst c обменом значений
if lst[j] < lst[j-1]:
lst[j], lst[j-1] = lst[j-1], lst[j]
return lst
bubble_sort([1... | [
"rotkivem@gmail.com"
] | rotkivem@gmail.com |
57d3eb4ff5547a801d23688a7a2426b29909ed15 | a08aad7b213584198c4e82a10427443b09ff43ee | /Problem2.py | 2e2294281753809b878aa5ef67147ec8f41a0774 | [] | no_license | shantanu609/DP-1 | 1a1365d741f71d0b8fd4c8f636405e7a60632cf0 | a27aac431988a22b22fbef5a5908cc98a56a1716 | refs/heads/master | 2022-09-20T16:49:37.615034 | 2020-06-04T21:32:04 | 2020-06-04T21:32:04 | 269,257,060 | 0 | 0 | null | 2020-06-04T04:04:54 | 2020-06-04T04:04:54 | null | UTF-8 | Python | false | false | 701 | py | # Time Complexity : O(n)
# Space Complexity : O(1)
# Did this code successfully run on Leetcode : Yes
# Any problem you faced while coding this : No
# Your code here along with comments explaining your approach
class Solution:
def rob(self, nums):
if not nums or len(nums) ==0:
return 0
... | [
"shantanu_shinde_@mail.fresnostate.edu"
] | shantanu_shinde_@mail.fresnostate.edu |
c7c7a0d7d7981c861e381a3f4550b2c9e6a8748b | 200b52c1fe17cd47e20522b989adb05bd9cc3cfa | /airflow/providers/dbt/cloud/sensors/dbt.py | 5838f6d6247d2550a94b43600f4f72f056937a4f | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | fritzwijaya/airflow | cbb70fd8832b23e31e4426e72652c76e0df9fba8 | 5a4106d96e670b82004dd6fa221cf3c29b2496a9 | refs/heads/master | 2023-07-07T18:46:09.854983 | 2023-06-22T00:52:20 | 2023-06-22T00:52:20 | 206,764,905 | 1 | 0 | Apache-2.0 | 2019-09-06T09:53:33 | 2019-09-06T09:53:33 | null | UTF-8 | Python | false | false | 5,614 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | fritzwijaya.noreply@github.com |
c4f5a91d526049e1800127af99d730c61ea08b2b | b06d8c770ba343f5c21780f5a47898bc12871d21 | /source/api/urls.py | 66fb1f2b1e8077b83ae3a40a68e14440fe637763 | [] | no_license | neroznik/home_work70 | e6c897145fcffea08b2e204bdc449afcb6ef8100 | fe2d3560415addf50304a10d09bac9f93de9fee7 | refs/heads/main | 2022-12-27T14:34:22.073983 | 2020-10-15T11:48:41 | 2020-10-15T11:48:41 | 304,308,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 933 | py | """main URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based vi... | [
"neroznik@yandex.ru"
] | neroznik@yandex.ru |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.