blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a6441669daeaaaf8536b5dd43eeb0515f40772e0 | c74d04ae6e2d39010535ef514cff86b1a07129a8 | /core.py | 972bb5e8149cc5350cd334b5c4bc830b772153c1 | [
"MIT"
] | permissive | alexbotello/AsyncBandsintown | f2a960c394b05db87fb6a0c7dafc95ba1c2cf7d6 | 6bf3b71afb6f46623b0c69b10d900ebccee3742a | refs/heads/master | 2021-03-31T00:09:39.421782 | 2018-03-12T21:46:27 | 2018-03-12T21:46:27 | 124,952,607 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,702 | py | import json
import asyncio
from aiohttp import ClientSession
from errors import TooManyRequests, MissingArgument
class BandsInTownRequest:
"""
A class that implements asynchronous API requests to
the Bandsintown API
Usage
---------
request = BandsInTownRequest()
request.fetch(lo... | [
"alexander.botello@g.austincc.edu"
] | alexander.botello@g.austincc.edu |
82cb0e1c860eacbc8339b448f410e559f7b7dab8 | 443c4ba6c91a470f67d8b8cd4c6e874e6210e340 | /T06_2072037/T06A_2072037.py | edeccc1f52be90a2e049054cb875fdcd45cfa01f | [] | no_license | WillyNathan2/Python-Dasar | 00969e9ae10b9a8e48d63b5ba060766bdcd15210 | 689f03c80d48690105d9c6422922a9db06ae2837 | refs/heads/main | 2023-07-18T06:14:26.936803 | 2021-08-04T15:15:49 | 2021-08-04T15:15:49 | 392,678,982 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 932 | py | # File : T06A_2072037.py
# Nama : Willy Natanael Sijabat 2072037
# Deskripsi : latihan uts , membuat program menghitung jumlah potongan
# Kamus : lelang = tipe integer
# first = tipe integer
# second = tipe integer
# lelang1 = tipe integer
# lelang2 = tipe integer
def main ():... | [
"noreply@github.com"
] | noreply@github.com |
9459025e08e77497ed8300c6eba2749d1eddbfc3 | da1951e02839627cbeac359746ea014815942d36 | /steps/step09.py | 07022ca42a901e8d04bf0009c2807e27e5e59f52 | [] | no_license | konny0311/record-deep-learning-from-scratch-3 | c6a89ad45a27389c33320ad9e8358d038bc43510 | 4f89b971bcab22a52ec55862d4d004512351c21e | refs/heads/master | 2022-11-20T05:38:05.446356 | 2020-07-09T11:52:09 | 2020-07-09T11:52:09 | 273,641,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,825 | py | import numpy as np
class Variable:
def __init__(self, data):
if data is not None:
if not isinstance(data, np.ndarray):
raise TypeError('{} is not supported'.format(type(data)))
self.data = data
self.grad = None
self.creator = None
def set_... | [
"tatsuya.kono.dev@gmail.com"
] | tatsuya.kono.dev@gmail.com |
456ab1afef896230c9171be3e053faa9cd3d69f8 | 8878f3122742138f5d1126ef5f16e680376941d2 | /streamer.py | 4f968ac07d081c3c0d777dff10a602731d6e5400 | [] | no_license | jssprz/annotationsite | 42c151404966621642f05ed383d4c9cbb1b1af6d | be393ef26321fd18962849757a80db605a007ea1 | refs/heads/master | 2021-10-29T10:12:39.047261 | 2021-10-28T05:18:17 | 2021-10-28T05:18:17 | 185,083,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,662 | py | """Defines TwitterStreamer class that inherits TwythonStreamer
"""
import os
import sys
import csv
import urllib3
import time
from requests.exceptions import ConnectionError, ChunkedEncodingError
from twython import TwythonStreamer
from argparse import ArgumentParser
from configuration import ConfigurationFile
# sys.... | [
"jperezmartin90@gmail.com"
] | jperezmartin90@gmail.com |
cefbe68fce30d43acff1a4d027231de685d1d6c0 | e6913abba3f5cfd396e62c7e514674dbcb3631bb | /vidfeat/_meta.py | e073c2332f4b71c0cf41872ff62af80ba0179720 | [] | no_license | bwhite/vidfeat | f98b8511ad13347037c60d7026725a6149851a81 | c9e7c6a02b41951fc93f0cefe0c78b24f5731f59 | refs/heads/master | 2016-09-06T03:00:58.791493 | 2012-06-19T21:54:01 | 2012-06-19T21:54:01 | 1,878,956 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 545 | py | import vidfeat
class MetaFrameFeature(vidfeat.ClassifierFrameFeature):
def __init__(self, *frame_features, **kw):
self._frame_features = frame_features
super(MetaFrameFeature, self).__init__(classifier=None, **kw)
def _feature(self, image):
return self.feature(image)
def train(se... | [
"bwhite@dappervision.com"
] | bwhite@dappervision.com |
e12c3b4269c5e8695176c21b98c4e2336b7b88d7 | 51a053e41784a8a4674720a5252d41868a8af1d9 | /video_repository_api/records/tasks.py | e3fa4cff81063139d0e7d0a17aa984ea91e3b5d2 | [
"MIT"
] | permissive | CESNET/video-repository-api | 60fb4196722c93163cdb0a76711971399a4a8254 | d9f5a503978e238d62a10688f4b95186ee29d788 | refs/heads/master | 2023-08-16T05:15:30.898414 | 2020-06-10T12:59:55 | 2020-06-10T12:59:55 | 264,980,626 | 0 | 0 | MIT | 2020-06-09T11:50:15 | 2020-05-18T15:25:36 | Python | UTF-8 | Python | false | false | 1,596 | py | # -*- coding: utf-8 -*-
#
# Copyright (C) 2020 CERN.
#
# OARepo Micro API is free software; you can redistribute it and/or modify it under
# the terms of the MIT License; see LICENSE file for more details.
"""Tasks for OARepo Micro API."""
from __future__ import absolute_import, print_function
import sqlalchemy
from... | [
"mirekys@gmail.com"
] | mirekys@gmail.com |
6d6156f98b66b449b2f5af7a779594253b74b615 | 119a1a4312b05e883aeb11be866739e76e4c8374 | /torch/fft/__init__.py | a0d823d17eed326d5fdb71ad51d24a4ef1778963 | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | RoyXnadler/pytorch | 54b857c456c137bff4456947701e0c7218063caf | ed0b8a3e836ade5652335bbfb6635d2edc4a1e8e | refs/heads/master | 2023-07-17T23:49:41.625370 | 2021-08-12T18:03:32 | 2021-08-12T18:05:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,628 | py | import sys
import torch
from torch._C import _add_docstr, _fft # type: ignore[attr-defined]
from torch._torch_docs import factory_common_args, common_args
__all__ = [
"fft",
"ifft",
"fft2",
"ifft2",
"fftn",
"ifftn",
"rfft",
"irfft",
"rfft2",
"irfft2",
"rfftn",
"irfftn"... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
3ce96fc7109b07764424446a5f4cc743abe837a4 | a9e599a985ff87139dd471fd036150f0fbb1b114 | /k8s-yaml-mapper.py | 8e986137681c3182d73fad09810809353c205eda | [
"MIT"
] | permissive | pidpawel/k8s-yaml-mapper | 172a99568e0e9dc577fc85d7b844d41b33ddbb6c | 5adbc871abbff57659698c566acc29f0947a57dd | refs/heads/master | 2023-01-03T16:43:25.989324 | 2020-10-24T17:57:17 | 2020-10-24T17:57:17 | 306,939,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,861 | py | #!/usr/bin/python3
import click
import yaml
from pprint import pprint
from typing import Dict, Any, Union, List
YamlObjectT = Dict[Any, Any]
def extract_namespace(source: YamlObjectT) -> str:
return (
source["metadata"]["namespace"]
if "namespace" in source["metadata"]
else "default"
... | [
"git@pidpawel.eu"
] | git@pidpawel.eu |
850fedb6e541e86892fbdfb36419277781c6c757 | f035c581cfd09ea85d128e5638d28a0470772ffa | /datosSimples/ejercicio5.py | a9b07fd3bcfc68008777eb8bd27b841d1ad25fd9 | [] | no_license | Tanerin/BasicPython | c65cece7ed05a21a79841fa85e80585b8b5bc9d2 | 9a4693f214f6ef203ec1d62237fb90df06503147 | refs/heads/master | 2023-03-24T18:57:05.883912 | 2021-03-19T22:43:56 | 2021-03-19T22:43:56 | 322,974,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | #Escribir un porgorama que pregunte al usuario su nombre y diga cunatas letras tiene
name = input("Inserta tu nombre: ")
print(name.upper()+ " tiene "+str(len(name))+" letras") | [
"qtulises@gmail.com"
] | qtulises@gmail.com |
138d6c9d9434ba90837f2c533ef5e302bcc2bf4f | 9b0d0cb1725f065d0280f23ff93cfdacb304f25a | /project_animal.py | d65e299feeedb2b992f0e8a4d4745f2650d50b85 | [] | no_license | bornohin/project_animal | 1c21b4ef13b0213935ac765d01c5e355745a2050 | 9268a7200415eeebdd3739b2e710412a65880e56 | refs/heads/master | 2023-03-02T10:26:44.517287 | 2021-02-08T22:27:11 | 2021-02-08T22:27:11 | 264,569,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,538 | py | camel = """
Switching on camera from habitat with camels...
___.-''''-.
/___ @ |
',,,,. | _.'''''''._
' | / \\
| \ _.-' \\
| '.-' '-.
| ',
| '',
... | [
"noreply@github.com"
] | noreply@github.com |
30c58bfaf43e0bf405a1eb4bad69c3c54bd6c0f6 | aa1e637de90f69f9ae742d42d5b777421617d10c | /nitro/resource/config/network/vpathparam.py | 21dc2bd6433e3c6ce39a52a6610a411633f4c0fa | [
"Apache-2.0",
"Python-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | km0420j/nitro-python | db7fcb49fcad3e7a1ae0a99e4fc8675665da29ba | d03eb11f492a35a2a8b2a140322fbce22d25a8f7 | refs/heads/master | 2021-10-21T18:12:50.218465 | 2019-03-05T14:00:15 | 2019-03-05T15:35:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,535 | py | #
# Copyright (c) 2008-2015 Citrix Systems, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License")
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | [
"lennart.weller@hansemerkur.de"
] | lennart.weller@hansemerkur.de |
00982a46d32995700c0f826a8676fe80d7279be0 | b991b3822572e13c1a0e17f037564326d4932ff6 | /goat-latin/Accepted/8-19-2020, 1_05_26 PM/Solution.py | 549797355662f3d30e5bef643f731380493d544d | [] | no_license | isaigm/leetcode | 8f1188a824e78f11b8223302fe625e9a8bf9262a | e53b04a9f627ff95aaae9f8e5315f5f688c6b9e2 | refs/heads/master | 2023-01-06T02:07:41.118942 | 2022-12-31T23:13:20 | 2022-12-31T23:13:20 | 248,679,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | // https://leetcode.com/problems/goat-latin
class Solution:
def toGoatLatin(self, S: str) -> str:
words = S.split()
vowels = ('a','e','i','o','u','A','E','I','O','U')
idx = 1
res = ""
for w in words:
if w.startswith(vowels):
w += 'ma'
... | [
"isaigm23@gmail.com"
] | isaigm23@gmail.com |
8de7d4ee4106af87d9c7f4e820996fa73ad2c9ce | c093d8b30adeaec927f42f2e0491f1993a370750 | /myproject/urls.py | 6e82fb8fe41f7219e0fb6b31a61ab5a82dc2515c | [] | no_license | adhish-kapoor/Django | 07b1dc8b836f3fc296b23ca75d58c111a3ffc60f | c4d63e985c66cf68d68f6daf23b0b161c32369d8 | refs/heads/master | 2022-01-29T03:39:37.591743 | 2019-07-26T07:13:08 | 2019-07-26T07:13:08 | 198,049,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 878 | py | """myproject 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-bas... | [
"Adhish.Kapoor@blackbaud.me"
] | Adhish.Kapoor@blackbaud.me |
885799b4c3f0628c43c5ec2abbed9ecec49107d3 | 633b9b347c91c4c957f113a770ee79fd2fe7a4ba | /data_loader.py | 6a007df6ed43bd3197ce14935d4298785edf2b5c | [] | no_license | shouyi98/binance-monitor | 2cbdf02293f588f46a26e2c9cc9bfb7f5beeabf9 | eabf9f518bae212656b456186c8db28eb9408004 | refs/heads/main | 2023-08-26T09:02:45.970052 | 2021-11-05T14:44:58 | 2021-11-05T14:44:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,241 | py | # 包含数据的读写相关程序
import os
import time
from binance import instance
import utils
# 币安所有已上线币种 (不包括稳定币/看涨币/看跌币等币种,顺序不定)
COINS = [
"BTCUSDT", "ETHUSDT", "BNBUSDT", "NEOUSDT", "LTCUSDT", "QTUMUSDT", "ADAUSDT", "XRPUSDT", "EOSUSDT", "TUSDUSDT", "IOTAUSDT", "XLMUSDT", "ONTUSDT", "TRXUSDT", "ETCUSDT", "ICXUSDT", "NULSUSD... | [
"geyingli@tencent.com"
] | geyingli@tencent.com |
48acbc5438add20a7b31b34a843d3cc98736b57b | 4cb097db8fdfa02d1157d2288461ef9be03e0436 | /src/services/chat.py | a134a962f86e4fb4d2591f8c05f3107b4acb3471 | [] | no_license | Bella-Tan/live-chat | ef66b6d2df2f540c9998c792a9ae64e33f4236ef | 1b67ab1e2bf152287712110f28e107baf1223ae3 | refs/heads/master | 2023-08-25T18:05:11.344586 | 2019-10-24T02:55:43 | 2019-10-24T02:55:43 | 217,187,722 | 0 | 0 | null | 2023-08-14T21:54:26 | 2019-10-24T01:44:53 | Python | UTF-8 | Python | false | false | 1,121 | py | import threading
from settings import Settings
from models.channel import Channel
_MODE = Settings.get_mode()
class ChatService(object):
channels = {}
lock = threading.Lock()
@classmethod
def register(cls, channel_id, name, role, handler):
with cls.lock:
if channel_id not in cls... | [
"dan.tan@logicmonitor.com"
] | dan.tan@logicmonitor.com |
b02d4f0fa2f415311297efd63ce372647c19fb3d | 7bc39882dd1844a3bcfc0b68bbb0efb7d1545e60 | /django_project/web_app/migrations/0004_auto_20200506_2128.py | 0ae863cd575d4612a11da353c225538b74612faf | [
"MIT"
] | permissive | Aakanksha-Thota/StudentInternshipPortal | e2e22813d0889c74f9e75276f00cbf9bef32e4ac | 2250d2245a79554e1b4d76eb76e5c159af32193f | refs/heads/master | 2022-06-08T07:09:25.008573 | 2020-05-07T07:30:36 | 2020-05-07T07:30:36 | 261,842,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | # Generated by Django 3.0.2 on 2020-05-06 15:58
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('web_app', '0003_auto_20200506_1850'),
]
operations = [
migrations.AlterField(
model_name='signup1'... | [
"aakanksha13.thota@gmail.com"
] | aakanksha13.thota@gmail.com |
9d4008edd0205d455e48736747d7de954804f003 | a91750b9bcc6aaeff8aae48f0607bf6a5d41d386 | /Project/catkin_ws/build/universal_robot/ur10_moveit_config/catkin_generated/pkg.installspace.context.pc.py | e98ca6596d7d265d1c2a9ee6e8668825216b4963 | [] | no_license | lydiarong/2019_Numerical_Analysis | 6c053fd1306b01c3b5f8bf563b8d4a2643aca60d | b21f03a44e87ba14ce4d86ba77549e193b1801d2 | refs/heads/master | 2020-12-12T11:59:25.684819 | 2020-01-15T18:16:14 | 2020-01-15T18:16:14 | 234,120,192 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "ur10_moveit_config"
PROJECT_SPACE_DIR... | [
"rongchy@shanghaitech.edu.cn"
] | rongchy@shanghaitech.edu.cn |
5758d3decf74ee5a2713dd2a654e343da9bbb3fa | 5de27ccb7a3088a138d94e07b96fc1a5b7f04925 | /gen_IRI/gen_IRI_data.py | 7db6c265e9faf3e43feca5e4becc561fe378d794 | [] | no_license | hffan/gendata_prj | 1fefd9c0dc683640e807558ddd7d370acabdebe1 | 2a645807d2fe023d116ce3c212ffd5a5757fe757 | refs/heads/master | 2022-12-12T09:37:24.250227 | 2020-09-02T06:31:17 | 2020-09-02T06:31:17 | 292,197,538 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46,158 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
"""
@info:
1. nohup linux后台启动此脚本
2. crontab里添加守护进程脚本,daemon.sh,判断此脚本是否被杀,被杀直接启动
3. crontab里添加守护进程脚本,daemon.sh,保证系统中只有1个生产脚本在启动
4. nohup python -u /home/DQ1044/code/code_gendata/apscheduler_gendata.py >/home/DQ1044/code/code_gendata/debug.log 2>&1 &
5. 输出重定向,可以查看py文件是... | [
"like19910306@163.com"
] | like19910306@163.com |
5342cdda84a13c44f1736b86662160483b522308 | 3d2939ae9ce30b15c1c3cd18bb7bc1db655863fe | /openturns/1.8/user_manual/_generated/openturns-VonMises-1.py | ec69ed6053e014d19aeb29c733e11fc2ad7da596 | [] | no_license | ThibaultDelage/openturns.github.io | 07c9d6c98118a7695c35192a59814c23a71cb861 | 726a8f9ae97dc27d78a822f4d46976af56691802 | refs/heads/master | 2020-05-07T14:06:08.368744 | 2019-04-08T14:05:56 | 2019-04-08T14:05:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,475 | py | import openturns as ot
from matplotlib import pyplot as plt
from openturns.viewer import View
if (ot.VonMises().__class__.__name__=='ComposedDistribution'):
correlation = ot.CorrelationMatrix(2)
correlation[1, 0] = 0.25
aCopula = ot.NormalCopula(correlation)
marginals = [ot.Normal(1.0, 2.0), ot.Normal(2... | [
"schueller@phimeca.com"
] | schueller@phimeca.com |
67a95c9ec684a2531ebb6d9ee7e05cf54dc79ffc | bbc24b70b4bcc5f8b1ebef58914a8a5fc4207143 | /pypuppetdb/api/base.py | 4c05f62a06ad86ac6c3956c9ad08f42e5861b59f | [
"Apache-2.0"
] | permissive | voxpupuli/pypuppetdb | 05fea659e7e9d7ceb51b3942b3b1d335f0d76828 | ac203c8e3ab625c2c0a9a201f071e61af9b9ba05 | refs/heads/master | 2023-08-16T20:02:56.501125 | 2023-08-12T19:58:11 | 2023-08-12T19:58:11 | 11,746,419 | 52 | 60 | Apache-2.0 | 2023-09-07T15:41:11 | 2013-07-29T18:21:06 | Python | UTF-8 | Python | false | false | 16,240 | py | import json
import logging
from urllib.parse import quote
import requests
from pypuppetdb.errors import APIError, EmptyResponseError
log = logging.getLogger(__name__)
ENDPOINTS = {
"facts": "pdb/query/v4/facts",
"fact-names": "pdb/query/v4/fact-names",
"nodes": "pdb/query/v4/nodes",
"resources": "pd... | [
"grzegorz.dubicki@gmail.com"
] | grzegorz.dubicki@gmail.com |
b7213ada9b9da863087e638d065f28ff31499b7a | 96a799739e80329ee3517e0af8ed85780a6ad9ef | /for.py | 831da1c329f4dbe1497f05ebfccb3e99f33b6d77 | [] | no_license | davidjharcourt/ModernPython3Bootcamp | 1a3deb29e4354a5834315961e2f705d0c4834453 | 1c7242aaaa961f48674b7373cc317eb462dc3947 | refs/heads/master | 2020-09-13T12:30:09.775275 | 2019-11-24T16:50:09 | 2019-11-24T16:50:09 | 222,780,197 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | # for x in range(1,10):
# print(x)
# print(x*x)
for letter in "coffee":
print(letter) | [
"davidjharcourt@gmail.com"
] | davidjharcourt@gmail.com |
c3546ed4628818cc35908e070158d54286275c62 | d084c175920851c7166c4995d19d86e6f178949f | /algorithm_threading.py | 09b2f984ac77f2db821708fd2051a319fc1109b2 | [] | no_license | Muxasan/ParaLeL | 3f6f5c90df86238a577c4d66eefdb40fe5b7455f | 26c892a0a9dc9710d818fba8a19b221928c6fcfe | refs/heads/master | 2021-09-01T08:09:15.330363 | 2017-12-25T23:25:10 | 2017-12-25T23:25:10 | 111,984,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,825 | py | from requests import get #импортируем метод get для запросов
from pymystem3 import Mystem #морфологический анализатор для русского языка
from nltk.tokenize import PunktSentenceTokenizer as PST #Класс для выделения предложений
from nltk.tokenize import WordPunctTokenizer as WPT #класс для разделения слов в пр... | [
"noreply@github.com"
] | noreply@github.com |
f2db9500d575e6a9143960d689e8dca6a4c6416a | f1e662adb91b2168f86f50390aff9bd2c50db224 | /testroom/player_test.py | 1d1defe129cdee2389ce4d8ffa33c1eacff28fa5 | [] | no_license | steeletyphoon/text.advs | 5a9dff4f845d7c41acf211988c4d4785a88f9592 | 3697ccce32f5c7c0adddcd5544c2a705626a7c1e | refs/heads/master | 2021-01-10T03:25:06.313746 | 2016-03-03T15:14:40 | 2016-03-03T15:14:40 | 52,608,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118 | py | #!/usr/bin/env python3
import player from Player
p = Player()
print(p.strength)
p.printInventory()
p.pickUp("item")
| [
"ssteele823@gmail.com"
] | ssteele823@gmail.com |
1f99b134d5d9411b26d038191f42014f8d534d8f | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/I_w_M_to_W_focus_Zok/ch096/wiColorJ/Sob_k05_s001_EroM/pyr_Tcrop255_p20_j15/pyr_2s/L6/step09_2side_L6.py | e65676bd0f5bd5a5abd293a8bdc4681bb66d9e79 | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,688 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
bfeda2e598488183a49c393c1167976dab9bd370 | 558580fda169888f2570805d90897ff8d8ef1558 | /src/words_tweeted.py | fe3f8eb907d65f2a40115489af3500fc691c3c6b | [] | no_license | jonneff/cc-example-1 | 2ee807824b16083f28d3c2fc5caf709fa89d7237 | f4b1ec7456f25077de00d3ecb5172d0b74538b3f | refs/heads/master | 2021-01-17T04:56:27.247388 | 2015-07-31T18:43:58 | 2015-07-31T18:43:58 | 38,722,645 | 0 | 0 | null | 2015-07-08T00:36:55 | 2015-07-08T00:36:54 | null | UTF-8 | Python | false | false | 1,517 | py | # Feature 1: Calculate the total number of times each word has been tweeted.
# My design approach is to use map and reduce in Spark context.
# First, initialize SparkContext
from pyspark import SparkConf, SparkContext
conf = SparkConf().setMaster("local").setAppName("Words Tweeted")
sc = SparkContext(conf = conf)
... | [
"jon.m.neff@gmail.com"
] | jon.m.neff@gmail.com |
f1fdf6807ee54edc80cdc3445fd63c36dd4686dd | fb081aa5746bf65511aa8d7f6cca9bf1bbd959bb | /day2/day2.py | ac7e53729c6f56c0e0a741f647ff904d0b7b31d6 | [] | no_license | bronemos/aoc-2020 | 4d11faea956b3809499a3780b10f97d21ad01808 | 11d6ae058f8e4c79b10a543d770663ca2dbea1e1 | refs/heads/master | 2023-01-24T16:21:26.223648 | 2020-12-16T14:57:14 | 2020-12-16T14:57:14 | 318,328,196 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | with open('input2.txt', 'r') as f:
print(len([line for line in [x.strip().split(' ') for x in f.readlines()] if (line[1][0] in (line[2][int(line[0].split('-')[0]) - 1], line[2][int(line[0].split('-')[1]) - 1])) and line[2][int(line[0].split('-')[0]) - 1] != line[2][int(line[0].split('-')[1]) - 1]]))
| [
"spieglb@gmail.com"
] | spieglb@gmail.com |
66808f79efd0955928936c28fc4fd0d78cc67aac | b5d916d99a8b186c5cbc109a8efc626ecc24635d | /technicalcourses/models.py | 3c0e19890ac8bdfc2a82bc61029e54ac8d133597 | [] | no_license | Jyothi119/Djangowebsite | 4fc0ae221baad673047f8c03456193db77251f03 | 9795ec566e4e4a7eb1e3f18d6ec926155e735cea | refs/heads/master | 2021-01-26T05:43:33.710710 | 2020-03-08T19:44:39 | 2020-03-08T19:44:39 | 243,331,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | from django.db import models
class allcourses(models.Model):
coursename=models.CharField(max_length=200)
insname=models.CharField(max_length=200)
def __str__(self):
return self.coursename
return self.insname
class details(models.Model):
course=models.ForeignKey(allcourses, on_delete=m... | [
"you@example.com"
] | you@example.com |
111d05c97f34c6a47ea1f48c5d1a5811d7d193f9 | 449eedb2c7c4edc41efd74c8a1bf037ab295282a | /Практика програмирвания Python (2019)/1 урок/практика Исполнитель Робот/robot-tasks-master/task_17.py | e7a0127c7842a60e7e0ef535abe36320a64a79e6 | [] | no_license | stsln/python | 803117557ead0994e317d500100fa6cbd6c2a7f4 | 01f2c9952d7dbf6607ffee64a1c341d92b06f85c | refs/heads/master | 2021-08-09T20:03:44.963298 | 2020-12-14T17:21:21 | 2020-12-14T17:21:21 | 231,936,086 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | #!/usr/bin/python3
from pyrob.api import *
@task
def task_8_27():
while not cell_is_filled():
move_up()
move_right()
if cell_is_filled():
pass
else:
move_left(2)
pass
pass
if __name__ == '__main__':
run_tasks()
| [
"34548685+stsln@users.noreply.github.com"
] | 34548685+stsln@users.noreply.github.com |
b16dbc54ba4146d524f3415e574c22d7c5e00977 | 9d68e4c8e210b4a25483887a5d10850bdbe0b712 | /148.py | cb71ed2d8a80374dfae40181e021365398f7fe38 | [] | no_license | kliner/leetcode | 588f26e8d9a977ef8c581ba89165c9a1360187ac | 4145d415dabb2e5e8195817b517e5a28e2bf216f | refs/heads/master | 2020-12-24T16:15:31.060680 | 2016-02-25T15:38:29 | 2016-02-25T15:38:29 | 33,992,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,357 | py | # Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
class Solution:
# @param {ListNode} head
# @return {ListNode}
def sortList(self, head):
if head == None or head.next == None:
return head
h1 = head
h2 = self.split(head)
# if h2 != None:
# p... | [
"kliner@live.cn"
] | kliner@live.cn |
927997fed91afc709b135d2ba691baae52e11531 | bdab992a11224e3d970b5ed3a9c924c51ac9da7c | /xfntr/mainwindow.py | 23178b97f5fd68c38cc622aac18fcffe1bf078dd | [
"MIT"
] | permissive | zleung9/xfntr-win | eff27297847b2b7c5087a9839d27be741cc331d1 | bb71667b79978b401b787ff5386b529b3da321ef | refs/heads/master | 2023-02-16T07:30:11.773521 | 2021-01-13T20:21:34 | 2021-01-13T20:21:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44,783 | py | import sys
import os
# Use absolute path instead of relative path ('./') to avoid trouble when installed by pip
dir_path = os.path.dirname(os.path.realpath(__file__)) # the current directory
dir_path_test = os.path.join(dir_path,'test')
print(dir_path)
UI_path = dir_path + '/GUI/'
import time
import multiprocessing
#... | [
"zhul9311@gmail.com"
] | zhul9311@gmail.com |
4c171b198d1d3eb3b20f0aad0d3fa153169dc931 | ee46a65c930784b2d802a95c5a3bbc8065097458 | /djangoProject/settings.py | 4db5c015ca01adbace729676a703091e16307e32 | [] | no_license | felixodette/djangoProject | 854264a228523ee8b967502794c8f2ea63be66d1 | f96db8e3f9f7be4ce088c8274edee76ea5f29247 | refs/heads/master | 2023-04-03T23:59:16.077663 | 2021-04-09T06:32:13 | 2021-04-09T06:32:13 | 356,007,297 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,302 | py | """
Django settings for djangoProject project.
Generated by 'django-admin startproject' using Django 3.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pat... | [
"40231363+felixodette@users.noreply.github.com"
] | 40231363+felixodette@users.noreply.github.com |
7e7f88cd928341ff774e7d22b546872d5eb9b483 | 2ae3a2f406e559581517f5158412187d6f1d2565 | /train.py | 4bf6db5fd950757a04a657172aaf7cabc4c255b4 | [
"MIT"
] | permissive | venkatakrishs/neurecon | 7a2c0150fa3c0a98bd47db9233a10e762a1f382e | 972e810ec252cfd16f630b1de6d2802d1b8de59a | refs/heads/main | 2023-08-01T11:06:23.502832 | 2021-09-14T06:22:45 | 2021-09-14T06:22:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,229 | py | from models.frameworks import get_model
from models.base import get_optimizer, get_scheduler
from utils import rend_util, train_util, mesh_util, io_util
from utils.dist_util import get_local_rank, init_env, is_master, get_rank, get_world_size
from utils.print_fn import log
from utils.logger import Logger
from utils.che... | [
"ffventus@gmail.com"
] | ffventus@gmail.com |
6fed2beb321d68bf4dfb921f8205984c3f44ec6e | fba4ce7daaf264878f1bc20d87735093f825d7a2 | /devel/lib/python2.7/dist-packages/rosserial_vex_cortex/__init__.py | 380696c238c75479c9e4e6a9493360e7e4e13672 | [] | no_license | 30Siddharth/Backup_UGV | d973c6e744f52884cca2920dffa3c32bce532c09 | 861ecfd404ddd37facee49a856f6c4826d9eddc8 | refs/heads/master | 2023-01-08T14:00:30.977752 | 2020-11-16T19:59:51 | 2020-11-16T19:59:51 | 313,412,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,042 | py | # -*- coding: utf-8 -*-
# generated from catkin/cmake/template/__init__.py.in
# keep symbol table as clean as possible by deleting all unnecessary symbols
from os import path as os_path
from sys import path as sys_path
from pkgutil import extend_path
__extended_path = "/home/team5/catkin_ws/src/rosserial/rosserial_v... | [
"hemrak@seas.upenn.edu"
] | hemrak@seas.upenn.edu |
65244c1278943c1fad3059c86085f9f749f75bc2 | 29950117b39a8dd913bfd9da7c023b34546597c4 | /Research/music.py | 8c6f801e12b7385ed779368b17a8653e0c41f56b | [] | no_license | Nitrokitty/PortfolioCode | 6c6d733d178fa372ec4ff99825f7b8d075a15b81 | e0397a843bd5586ca0ca98b0e503d1082a2b09aa | refs/heads/master | 2021-09-03T02:18:36.076624 | 2018-01-04T21:00:47 | 2018-01-04T21:00:47 | 111,212,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,928 | py |
def all(array):
def staffs(image, radius=2, depth_ang=1, depth_rad=1, threshold=50):
import numpy as np
'''def Dx(image):
return image[1:,:]-image[:-1,:]'''
def defining(img):
image=img.copy()
zero=np.zeros_like(image)
for y in range(imag... | [
"talleyad@email.sc.edu"
] | talleyad@email.sc.edu |
ea9689064cc657cbe01e39ec8964ed18352d8f93 | 9ffe6ffb31e394eb4e5ae34ae86ce3512d33a795 | /utils/inference.py | 65546c45bad984c8351d9b2a4f001d2adc16da71 | [] | no_license | GoNgXiAoPeNg1/co-attention-co-segmentation | 1b2c514ef7e6346d47757c5f8dd4909d920f740f | 5245bcdc6c1925bdaadb6a074deb28a686222244 | refs/heads/master | 2020-07-21T15:11:26.225295 | 2019-09-07T03:05:05 | 2019-09-07T03:05:05 | 206,905,290 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,675 | py | import os
from math import ceil
import numpy as np
import pdb
import time
# from pylab import *
# import sys
import cv2
from PIL import Image
from utils.utils import *
def pairwise(iterable):
a = iter(iterable)
return zip(a, a)
def inference(input_transform, net, image_list, data_dir, save_dir)... | [
"noreply@github.com"
] | noreply@github.com |
9c5b13b5cfac8a23f0a57d67947ddb739b38b93b | c596e98e04f41bbae8899377919b7bdc4a5b516c | /myproject/settings.py | 6eb3f101888dee5678d3fc30701310028083b8fc | [] | no_license | divyeshbhatt/django-board-2.0 | 674f40584cb7c6af8eec2faac8f90344261f67ff | 73c5b4d78e5c408311b917e461267df7114a1ba3 | refs/heads/master | 2021-01-23T23:46:26.526710 | 2018-02-24T11:54:05 | 2018-02-24T11:54:05 | 122,736,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,357 | py | """
Django settings for myproject 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
... | [
"divyesh171975@gmail.com"
] | divyesh171975@gmail.com |
d6b3316034c265f187fb014217291c4e5c2ea598 | 8b7724c6e138c22ec8e45ea9f141d8e8c447bf7e | /POO/class1.py | 9872e30c47f05a4a11e07f731ace62d4703c6aa7 | [] | no_license | satishveluru/Tutoriales | 83254c67305772daae5485c7757e41beaae31922 | d1e409f18bc963b3bdcce1fa397b89819b1bbc26 | refs/heads/master | 2020-03-09T03:36:13.281583 | 2014-03-24T01:34:49 | 2014-03-24T01:34:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | #!/usr/bin/python
import sys
def function():pass
print type(1)
print type("")
print type([])
print type({})
print type(())
print type(object)
print type(function)
print type(sys)
| [
"claraa@uni.pe"
] | claraa@uni.pe |
89e429f07df618cb57e6a79f4bd4d324b4cabb08 | ccb87e34b5d105e35794591ba3aada625c8a838f | /Python_Class/py3intro3day 2/EXAMPLES/lambda_sort.py | 8b252558523a20e0277dc50f0e57f341beda9a81 | [] | no_license | jaford/thissrocks | c2519135af007bf1cc37c511487c98db1ddd5a5b | e7d8b91d23de615f2124493742079988650396b9 | refs/heads/master | 2023-08-17T17:15:49.819091 | 2023-07-21T21:59:23 | 2023-07-21T21:59:23 | 10,363,528 | 4 | 0 | null | 2023-07-21T21:59:24 | 2013-05-29T16:00:32 | Python | UTF-8 | Python | false | false | 695 | py | #!/usr/bin/env python
fruit = ["pomegranate", "cherry", "apricot", "date", "Apple",
"lemon", "Kiwi", "ORANGE", "lime", "Watermelon", "guava",
"papaya", "FIG", "pear", "banana", "Tamarind", "persimmon",
"elderberry", "peach", "BLUEberry", "lychee", "grape"]
nums = [800, 80, 1000, 32, ... | [
"jamesford3@gmail.com"
] | jamesford3@gmail.com |
9dbe22ddf123036ba49bb38dd5fd68c80d8d2fd8 | 7d9f5046d8d68f25aef9cbdddb5ef367e9f89274 | /MinGyu/train.py | 29fb0a786e41465ac1bb701ced1544abe9db94ad | [] | no_license | SEOzizou/image-classification-level1-31 | b9ee715e34b5e5a6cb6d9733beaa4f18f40e25e3 | d5ac6c7af77fd4dd8ddb536b2f3971d1fa078c18 | refs/heads/master | 2023-07-15T02:07:19.300372 | 2021-09-04T08:38:41 | 2021-09-04T08:38:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,584 | py | import argparse
import glob
import json
import multiprocessing
import os
import random
import re
from importlib import import_module
from pathlib import Path
import matplotlib.pyplot as plt
import numpy as np
import torch
from torch.optim.lr_scheduler import StepLR
from torch.utils.data import DataLoader
from torch.ut... | [
"aboq2496@naver.com"
] | aboq2496@naver.com |
f40c57d8b34a42938cf3bed6d161d464cad82283 | 456e1da4c721f8c72b6ec6991cd483f22b13c005 | /app/main/user_views.py | 7cdf4d5b42554d25b9d33f806f78c93fbf263aa1 | [] | no_license | Snivyc/flask-books-management-system | dd8308fa7bd482fa3d4f901d17e279d0e96f119e | 413379aa07f259e33c767cef4b5274bf8ce72e66 | refs/heads/master | 2021-01-18T21:56:48.741415 | 2018-02-07T05:05:05 | 2018-02-09T11:43:58 | 87,031,969 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 712 | py | from ..connectSQL import *
from ..loginTest import is_user
from flask import render_template, session
@main.route('/user')
@is_user
def user_page():
db = get_db()
cur = db.execute("SELECT * FROM BORROW WHERE ID=%s" % session.get('ID'))
books = cur.fetchall()
print(books)
cur = db.execute("SELECT DE... | [
"陈天浩"
] | 陈天浩 |
d1ca7ad9f8f171493376ff9b12cd23bfe529815b | e1f519fc0c4f76d11db9584f74c5b49ca95b0798 | /cs_notes/arrays/set_mismatch.py | 8674f53c01ae185193bb791426ea9b148b1b9bfa | [] | no_license | hwc1824/LeetCodeSolution | 22d41327cde2b9562f58cc73e6205c7c2f9a5e1c | ac53dd9bf2c4c9d17c9dc5f7fdda32e386658fdd | refs/heads/master | 2023-08-16T10:15:39.351933 | 2018-12-19T00:43:07 | 2018-12-19T00:43:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,726 | py | # 645. Set Mismatch (Easy)
# https://leetcode.com/problems/set-mismatch/description/
class Solution:
def findErrorNums(self, nums):
"""
:type nums: List[int]
:rtype: List[int]
"""
len_n = len(nums)
correct_sum = (len_n*(len_n+1))//2
actual_sum = 0
dup... | [
"eraxer0165749@gmail.com"
] | eraxer0165749@gmail.com |
ac8326632e14a837ba69f1e47791e2ff74ab7812 | b1ce0060aea9f763317b98524f960e6e0855921b | /akaocr/engine/solver/checkpoint.py | 6e5824c3d68ad10c8921e4851876f9cbae0f4ff0 | [
"MIT"
] | permissive | qai-research/Efficient_Text_Detection | e34692961e837e5ce5574403c15c5da96ca63369 | e5cfe51148cc4fbf4c4f3afede040e4ebd624e8b | refs/heads/main | 2023-06-09T22:38:14.351455 | 2021-05-18T07:55:18 | 2021-05-18T07:55:18 | 359,759,397 | 3 | 0 | MIT | 2021-06-26T08:56:54 | 2021-04-20T09:32:23 | Python | UTF-8 | Python | false | false | 18,183 | py | # -*- coding: utf-8 -*-
"""
_____________________________________________________________________________
Created By : Nguyen Viet Bac - Bacnv6
Created Date: Wed January 6 10:38:00 VNT 2021
Project : AkaOCR core
_____________________________________________________________________________
This file borrow che... | [
"huukim98@gmail.com"
] | huukim98@gmail.com |
bda325853386ce92540cfdb791b2f0cf2623cae5 | 7fada1dd14df5d4c467a77e88467407a7c507f1d | /digital_forensic/follower.py | c1901d0b0888d422a74117da135e1e6b87984b37 | [
"Apache-2.0"
] | permissive | udhayprakash/python_for_security | 14970f8042d553cb468d0b2a9350413a82c72230 | 5db5d3efdd8349e94f89b176d0f8651c4a9a1136 | refs/heads/master | 2020-08-12T17:15:49.164526 | 2019-10-17T18:43:02 | 2019-10-17T18:43:02 | 214,807,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 856 | py | import tweepy
import time
twitter_app_consumer_key = '**************************'
twitter_consumer_secret = '**************************'
twitter_access_token = '**************************'
twitter_access_secret = '**************************'
MyAuth = tweepy.auth.OAuthHandler(twitter_app_consumer_key, twitter_consumer_... | [
"uday3prakash@gmail.com"
] | uday3prakash@gmail.com |
09260f2d7ed818a819e5ed6658c78e7646165833 | e9867d5896b040768dd690d117be68f0ee7b472a | /napari/types.py | e96f50aa82fca1986f790fdd7291a7a146dddcfa | [
"BSD-3-Clause"
] | permissive | Mishrasubha/napari | 59533d2c314d031396bb8b75fdc96413d5ab1db0 | c4d1038fc3ed30dc228949cbdedf12826ec2efc2 | refs/heads/main | 2021-12-03T09:01:25.276522 | 2021-10-29T05:07:08 | 2021-10-29T05:07:08 | 422,462,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,162 | py | from functools import partial, wraps
from pathlib import Path
from types import TracebackType
from typing import (
TYPE_CHECKING,
Any,
Callable,
Dict,
Iterable,
List,
NewType,
Sequence,
Tuple,
Type,
Union,
)
import numpy as np
from typing_extensions import TypedDict
if TYPE... | [
"noreply@github.com"
] | noreply@github.com |
227e2cc9657f1830ec5cc30581312004d0ae44fe | 40598cb4073015fb7ba581cde2308eed62f93d23 | /rq_retry_scheduler/util.py | 9825ba288025c739c76d3a71dd7e444c037b33f7 | [
"MIT"
] | permissive | mikemill/rq_retry_scheduler | f206f8ed1c7885cbb7cbbac12d85cec369591cf8 | b73069311aceb1f93ffc7128837557d445091dbc | refs/heads/master | 2020-12-11T03:45:09.409878 | 2018-12-17T15:08:53 | 2018-12-17T15:08:53 | 68,482,936 | 4 | 1 | MIT | 2018-12-17T14:48:27 | 2016-09-17T23:13:09 | Python | UTF-8 | Python | false | false | 81 | py | import calendar
def to_unix(dt):
return calendar.timegm(dt.utctimetuple())
| [
"mmiller@viedu.org"
] | mmiller@viedu.org |
58c957b6ffabc3e68d931e87d678d8c39abc3908 | c1ff870879152fba2b54eddfb7591ec322eb3061 | /plugins/languageAPI/jsAPI/3rdParty/nodejs/10.1.0/source/deps/openssl/config/archs/darwin64-x86_64-cc/asm/openssl.gypi | 20d6fbba6aea4e1aad38dddbddfe804c0044c682 | [
"LicenseRef-scancode-free-unknown",
"MIT",
"ISC",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"Artistic-2.0",
"NAIST-2003",
"BSD-3-Clause",
"Zlib",
"NTP",
"LicenseRef-scancode-openssl",
"ICU",
"LicenseRef-scancode-unicode",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | MTASZTAKI/ApertusVR | 1a9809fb7af81c3cd7fb732ed481ebe4ce66fefa | 424ec5515ae08780542f33cc4841a8f9a96337b3 | refs/heads/0.9 | 2022-12-11T20:03:42.926813 | 2019-10-11T09:29:45 | 2019-10-11T09:29:45 | 73,708,854 | 188 | 55 | MIT | 2022-12-11T08:53:21 | 2016-11-14T13:48:00 | C++ | UTF-8 | Python | false | false | 27,731 | 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/pqueue.c',
'openssl/ssl/record/dtls1_bitmap.c',
'openssl/ssl/record/rec_layer_d1.c',
'... | [
"peter.kovacs@sztaki.mta.hu"
] | peter.kovacs@sztaki.mta.hu |
d77627855e96d1edeb96501d2d92a210a98aa15c | 7a34f61a5cfe2a6d7c4a9c44d50826db4afde1ea | /Leetcode/Explore-Cards/Graph/detect_cycle_dfs.py | 9a8b033f5f7691d67ff2e51874d8914a3047547f | [] | no_license | anupam312nwd/Algorithms | c4bf9fa5fb0b84d16ba88d52db726b571a3ff91b | 960b5551b9a687f75b83b13b3fdbbc814e7a6d56 | refs/heads/master | 2022-08-09T22:57:36.623449 | 2022-07-31T01:24:10 | 2022-07-31T01:24:10 | 231,528,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,575 | py | #!/usr/bin/env python
import networkx as nx
import matplotlib.pyplot as plt
plt.figure(figsize=(12, 12))
def detect_cycle_recur(v, graph):
visited = {v: False for v in graph}
path = {v: False for v in graph}
def helper(vertex, visited, path):
visited[vertex] = True
path[vertex] = True
... | [
"anupam312nwd@gmail.com"
] | anupam312nwd@gmail.com |
a65ed467e024d6ed11e34510975d9a0a88caa101 | e0ea43158373f337274043470bf19dda1738be9d | /data_generate.py | f11b71870883153539a77a304718cd54cec49562 | [] | no_license | RosenX/Ali_Music | 04816d4af834a96c098af71970215952bb336622 | a8a4b1e89af705ff082bc4be9498ddb78dd03b85 | refs/heads/master | 2021-01-21T09:29:16.534111 | 2016-07-21T04:25:00 | 2016-07-21T04:25:00 | 55,294,403 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,894 | py | #coding=utf-8
from const import *
def rule_split_data(file_in):
action = pd.read_csv(file_in, parse_dates=['play_time'])
split_date = pd.to_datetime('20150701',format='%Y%m%d')
train_set = action[action['play_time'] < split_date]
test_set = action[action['play_time'] >= split_date]
print len(train... | [
"Rosen9212@gmail.com"
] | Rosen9212@gmail.com |
5dd4e09d7474c598222396bdbabf4e59ed63e232 | 43f3b7e4a5b7a1210ffa72c5a855d7542d68290d | /Results/Python/Begin/35.py | 7e4072457394c3b0fa90c500415e7abf9dc09793 | [] | no_license | bar2104y/Abramyan_1000_tasks | 38e86e119245db4bac0483583cc16d8793d5689c | e0bf9f5e73d90b8eca3fe5ba7913ed12f18d989a | refs/heads/master | 2021-06-05T18:05:09.788453 | 2020-06-30T19:52:31 | 2020-06-30T19:52:31 | 150,898,700 | 5 | 2 | null | 2018-10-02T17:16:28 | 2018-09-29T20:01:33 | Python | UTF-8 | Python | false | false | 150 | py | v = int(input("V Boat: "))
u = int(input("V River: "))
t1 = int(input("T lake: "))
t2 = int(input("T river: "))
s = v*t1 + t2*(v-u)
print("S =",s) | [
"bar2104y@yandex.ru"
] | bar2104y@yandex.ru |
e1873694f9ede4a43d79039da204489809bbd467 | 9e2fc37af6e759cd504bd80c10e11a252375d3e7 | /venv/Scripts/pip3.7-script.py | f4a58e197ffc6b8d9ee4794785e44e2112961d22 | [] | no_license | Liuyanan1801210591/ScrapyCrawl_ChinaViewsOf_TripAdvisor | 2170f6e13eac9eb5a32a860ebd10b38ec32175bb | 0056505a506120beac353af1c7e07eaef47f7ffd | refs/heads/master | 2020-05-16T01:34:38.144438 | 2019-05-09T14:34:03 | 2019-05-09T14:34:03 | 182,605,764 | 0 | 0 | null | null | null | null | GB18030 | Python | false | false | 467 | py | #!E:\LiuYanan_DATA\2019-北大-研一下\春季课程信息\_大数据专题\spot_crawl\venv\Scripts\python.exe -x
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.7'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.ex... | [
"1801210591@pku.edu.cn"
] | 1801210591@pku.edu.cn |
1d3b757c0e6f3730146f1902278344d7b7e688c9 | 90bf2d99dd2eee637b0be7fff5760ce508d8069b | /extract_data.py | c455f6ae78e42b41d896642336dd7f2d18b0b98b | [] | no_license | yashDaftardar/Predict_Job_Model-Python- | f324c859ef727273285477efb4d8c8735f4ac063 | 0656e695d004913bbed7d9bbe3f2c89b62398612 | refs/heads/main | 2023-05-10T07:17:30.468829 | 2021-06-03T04:24:14 | 2021-06-03T04:24:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,016 | py | import re
import requests
from bs4 import BeautifulSoup
import os
import time
import csv
from sys import platform
def text(job,loc):
if platform=='win32':
file=os.getcwd()+'\\'+job+'\\'+loc+'\\'
elif platform=='darwin':
file=os.getcwd()+'/'+job+'/'+loc+'/'
texts=os.listdir(file)
for t... | [
"ydaftard@stevens.edu"
] | ydaftard@stevens.edu |
47831010bef11e3cf2acb9249a23f05d70b7361f | f82757475ea13965581c2147ff57123b361c5d62 | /gi-stubs/repository/RygelServer/TrackableItemIface.py | 64a57d3cb6e35e3c805d5b5bdef8f3dfd4cbdb74 | [] | no_license | ttys3/pygobject-stubs | 9b15d1b473db06f47e5ffba5ad0a31d6d1becb57 | d0e6e93399212aada4386d2ce80344eb9a31db48 | refs/heads/master | 2022-09-23T12:58:44.526554 | 2020-06-06T04:15:00 | 2020-06-06T04:15:00 | 269,693,287 | 8 | 2 | null | 2020-06-05T15:57:54 | 2020-06-05T15:57:54 | null | UTF-8 | Python | false | false | 4,708 | py | # encoding: utf-8
# module gi.repository.RygelServer
# from /usr/lib64/girepository-1.0/RygelServer-2.6.typelib
# by generator 1.147
"""
An object which wraps an introspection typelib.
This wrapping creates a python module like representation of the typelib
using gi repository as a foundation. Accessing attrib... | [
"ttys3@outlook.com"
] | ttys3@outlook.com |
ac5da099a1fdcee474eb554aa214818452d5e531 | dc130fd4506ccda92c67f77ea8bdf69b32d3337a | /collab/migrations/0006_collaborateurs_typecontrat.py | 15854935aad316d642f3791666c635d3b8ac5c68 | [] | no_license | oquem/DCThemis | 1bbd8740a996c5227c219c9b5285de6b6a310576 | b03a963b81bae5121495528574d754de3c095dbe | refs/heads/master | 2022-11-13T08:00:29.777614 | 2020-07-06T08:24:59 | 2020-07-06T08:24:59 | 277,500,229 | 0 | 0 | null | 2020-07-06T09:34:02 | 2020-07-06T09:34:01 | null | UTF-8 | Python | false | false | 454 | py | # Generated by Django 2.2.5 on 2020-05-11 12:45
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('collab', '0005_auto_20200511_1440'),
]
operations = [
migrations.AddField(
model_name='collaborateurs',
name='typeCo... | [
"alexis.piloy@gmail.com"
] | alexis.piloy@gmail.com |
8acd1637330128bc4aa2bb2f6886e3724127399a | 3a12b6e3010ab970d256d6321560285347793654 | /exception.py | 58139be692ef0c12d616b97a5479187cf3efb269 | [] | no_license | andersonrpufca/CC0003-2019.1 | 1ef698b75ef249e5fcab22cddc536ba2d9f37402 | f797f1793c10552cbe0d2cfd4bbfa195aa8d8a2a | refs/heads/master | 2020-05-26T13:43:32.253650 | 2019-06-13T13:03:09 | 2019-06-13T13:03:09 | 188,251,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Jun 6 10:40:48 2019
@author: ufca
"""
try:
valor = int(input()) / int(input())
except ZeroDivisionError:
print('ai dento')
except Exception as e:
print('outra coisa: ', e)
else:
print(valor)
finally:
print("morreu maria preá") | [
"anderson.rodrigues@aluno.ufca.edu.br"
] | anderson.rodrigues@aluno.ufca.edu.br |
6c30d9db576e5e849376868e2cdd71c9e937581f | 82e0a2a2f0b995d7eaf99ab687867a284ca86b55 | /testing/settings.py | 7f4f1a035759fcb04fec34d4c3e471e062a287f5 | [] | no_license | chandrasekhar0722/testing | b6150eb9b539966228bfcbdb487625982c439ce2 | dc58bdd3f5bd4a208533ea2792542eb547502bac | refs/heads/master | 2016-09-05T18:29:48.627882 | 2014-07-20T09:56:02 | 2014-07-20T09:56:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,064 | py | # Django settings for testing project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'NA... | [
"chandrasekhar0722@gmail.com"
] | chandrasekhar0722@gmail.com |
10b3d96a6b4da11496ed42598ece3a082b4a4470 | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part007061.py | 3722e6f38567273a674d0a8fff7bb7410ff281c8 | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,855 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
335b0745b395195732d1b2d73b8d82eebba46d8e | 9563b8ffc04ffef6a5497e5b19a2278b287d0f1f | /main.py | 7fdbe0fa243d1e4aa22adc0c14e88648f85467e0 | [] | no_license | victoriaharutyunyan/Quiz-_Simulator | 0af85a6fb8f66f6bb384a69b828c277026cc05b0 | 03ce94ccc917c8f754dadb3e64c0ae4c3f5e2149 | refs/heads/master | 2021-01-08T16:28:49.971271 | 2020-09-18T17:02:43 | 2020-09-18T17:02:43 | 242,079,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | import Instructor
import student
def main1():
print("Welcome to Quiz Simulator App")
while True:
user_type = input("Are you an instructor or a student?")
if (user_type.lower() == "instructor"):
Instructor.main()
break
elif (user_type.lower() == "student"):
... | [
"viktorya_harutyunyan@edu.aua.am"
] | viktorya_harutyunyan@edu.aua.am |
08e7f6f2c2b6189ed401d5a933b5da6fca8e9b3c | 6101c4c967ee568c9000255f1ccd84777760efe8 | /main.py | 7bb92aa51b41596253c6659373251eee6252142d | [] | no_license | Sean0719/K-Shortest-Paths | 826d98848c167b0ff1abec75adf3c14939e0e424 | 82e2338d7f90424f90b68475569a863869336e0f | refs/heads/master | 2020-04-13T19:43:23.608790 | 2017-10-24T01:03:32 | 2017-10-24T01:03:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,395 | py | from yen import YenAlgorithm
import sys
import tools
import colorama
import os
import time
def main():
if len(sys.argv)!=2:
sys.exit("Programma lanciato con parametri sbagliati: ./my_prog test_file")
graph, num_nodes, num_arcs, graph_imm_path = tools.getGraphStructure(sys.argv[1]) #Viene creata... | [
"ctontn@gmail.com"
] | ctontn@gmail.com |
7572029a3c3cade62a7dc9e5b5d2b53ecd727100 | 34e019b68eb8e9ffc50c7361b63f2f7f72ecc78a | /train_multi.py | 188e2e1eb8bd1752e17c3495aaa072e4cd0e0452 | [] | no_license | kaushiknk98/Sign-Language-Recognition-System | 272b54a7dccfd5f52d9c20b64a3a5c2286be3b8f | 622b6f5ff5dc0d9f4a62b2d3867fec6cfd8a76a2 | refs/heads/master | 2020-08-31T08:09:25.618021 | 2019-10-30T23:27:14 | 2019-10-30T23:27:14 | 218,644,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,501 | py | import sys
import os
from keras.preprocessing.image import ImageDataGenerator
from keras import optimizers
from keras.models import Sequential
from keras.layers import Dropout, Flatten, Dense, Activation
from keras.layers.convolutional import Convolution2D, MaxPooling2D
from keras import callbacks
DEV = False
argvs = ... | [
"noreply@github.com"
] | noreply@github.com |
d71fa3516ad860b123718c71bf28a5e9ebc7398b | 18a98a468f736106e52daa7fad9d07a31d5f02c5 | /capitalize.py | 8655363dd63e17de6119ef8b4549a0fd16f6ba78 | [] | no_license | Leeoku/MIT-6.001x | 8d4ad1c60e677dce16547728ad1cb5c44307a826 | 3376aba33f8b5e0ae8a3c245eb4a89a4d0fa5ac8 | refs/heads/master | 2020-03-21T02:04:02.919013 | 2018-08-14T21:42:28 | 2018-08-14T21:42:28 | 137,977,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py |
def capitalize(txt):
s = list(txt)
#make everything lowercase
for i in range(len(s)):
if 90 >= ord(s[i]) >= 65:
s[i] = chr(ord(s[i]) + 32)
print(s)
for i in range(len(s) - 1):
print(s[i])
#check if not symbol and next letter is not capital
if i == 0 and 9... | [
"leeoku@gmail.com"
] | leeoku@gmail.com |
3a91bc5b1c064f250ea2cc067aa8b5a186c3362e | b25e95c16da0ff39b3dea6774a777e1fc4ac334a | /share/rpcauth/rpcauth.py | 7f818e99b83d94d0ee96f95b40258d6cd8c1bbc0 | [
"MIT"
] | permissive | bitcoinphantom/bitcoinphantom | 36b6a926b765d3b14dd7a1c79b8abad6600b62a4 | 9cebfa9ed4d72aa1fa89f4d21631a9043f19369f | refs/heads/master | 2022-06-25T20:16:36.688562 | 2019-12-01T15:23:37 | 2019-12-01T15:23:37 | 225,180,101 | 0 | 0 | MIT | 2022-06-06T19:21:51 | 2019-12-01T15:04:08 | C | UTF-8 | Python | false | false | 1,449 | py | #!/usr/bin/env python3
# Copyright (c) 2015-2017 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
import sys
import os
from random import SystemRandom
import base64
import hmac
def generate_salt():
... | [
"edbtcx@protonmail.com"
] | edbtcx@protonmail.com |
c65c7d55b10f7b54eb9f8820ccf4e85206e429f7 | e99f70498907f52e33c8c894cd435ec196b72eaf | /core/settings/development.py | 2e064db949eaaaf4501e7b6e9d936fd366da3317 | [
"MIT"
] | permissive | mohammadanarul/join-branches | c1985c51fcb20424b7e250b18dd40936f9b36d6c | 0eab773c95667e4a6d887b0c850dd6ed05405ae4 | refs/heads/main | 2023-08-27T14:26:41.612956 | 2021-11-07T14:50:12 | 2021-11-07T14:50:12 | 377,850,399 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,512 | py | from .base import *
SECRET_KEY = config('SECRET_KEY')
DEBUG = True
ALLOWED_HOSTS = ['localhost', '127.0.0.1']
INSTALLED_APPS += ['debug_toolbar',]
MIDDLEWARE += ['debug_toolbar.middleware.DebugToolbarMiddleware',]
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.pa... | [
"mdanarul7075@gmail.com"
] | mdanarul7075@gmail.com |
c487ac89e7deb1146f21ea4fcd186636412f5a7a | d8b46f46c6304c986073e565537e2c215d63bfc3 | /Sporting Codes/Part-A-Support/shuffle2DPieces.py | 8416e4232a3df7ae51db8385e30816ae6b65f64b | [] | no_license | AkhilMovva/Genetic-Algorithms-2 | 4748936c430dc5bac85026ef6cf5fc402335002b | 40b18ad60e7ca7c7661668c52df5b08fe711f48d | refs/heads/main | 2023-03-17T08:25:02.732487 | 2021-03-09T21:02:55 | 2021-03-09T21:02:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | import random
def scatter(pieces,l,w):
for i in pieces:
i[0] = random.randint(0,l)
i[1] = random.randint(0,w)
return pieces
| [
"noreply@github.com"
] | noreply@github.com |
21ae293062c7d941034123bd620e706b3e2ba45c | 05559463caefa34f56fc17f7513283f3569eaa29 | /build/catkin_generated/generate_cached_setup.py | 736cfd13508640f0349444240e2da1d3a1d5a01a | [] | no_license | ajay-chaurasiya/vpns_ws | 95e360a30369ca774a07077ea5ee7029be70e901 | c7277970589d4608bd29ca7613c71806b675b7d0 | refs/heads/master | 2022-01-09T16:06:11.222126 | 2019-07-02T11:52:35 | 2019-07-02T11:52:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,291 | 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/ros/kinetic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.... | [
"aj.ac2095@gmail.com"
] | aj.ac2095@gmail.com |
631ae6e384ef58a6b51fb19df6fe11acb4f482a5 | c2d40df5d78a93bdbe25eadd71b384729dd6bfba | /tests/rules/test_git_push_pull.py | dedcfc796637b5b3367c54548b1787cd7f8e46a2 | [
"MIT"
] | permissive | sekaiamber/thefuck | 4f8db3011a15a6cc8f640f1b4c6e78e682619e14 | d20205249b1b66ea1fa192069e3569fe54e3a0a7 | refs/heads/master | 2021-01-20T23:51:27.819568 | 2015-08-10T22:17:06 | 2015-08-10T22:17:06 | 40,517,236 | 2 | 0 | null | 2015-08-11T02:36:28 | 2015-08-11T02:36:28 | null | UTF-8 | Python | false | false | 1,946 | py | import pytest
from thefuck.rules.git_push_pull import match, get_new_command
from tests.utils import Command
git_err = '''
To /tmp/foo
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to '/tmp/bar'
hint: Updates were rejected because the tip of your current branch is behind
... | [
"nvbn.rm@gmail.com"
] | nvbn.rm@gmail.com |
ceff3dbaa9f46b570f5d7439a52457d5c73d75ae | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /6cj6i2DACHTbtNnCD_21.py | 44311aa82d8e002a6ab94385513aa94e8dc320bb | [] | 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 | 163 | py |
def two_product(lst, n):
sList = sorted(lst)
for i in sList:
for j in sList:
if i * j == n:
return [i, j]
return
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
d7932da5a66ae59ce1539a7820a8df703b59cb22 | d18d0dd6d6d1eb5ebcb45faa196711c8841d4850 | /第1章/1-5.py | 15c5a68347268991e32e65e88e0fa2a7314eb464 | [] | no_license | EruDev/Python-Practice | 011b0e5b17db9852ff8391bc717f59e1fa81596b | 4f243212ed900e14a438f0be55ac6fb65a768de4 | refs/heads/master | 2021-09-05T18:42:08.950348 | 2018-01-30T10:05:17 | 2018-01-30T10:05:17 | 116,343,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 718 | py | # 何如统计序列中元素的出现频率
# 方法二
"""
利用collections下的Counter可以统计词频,也可以显示出出现频率较高的数字
In [8]: from collections import Counter
In [9]: c2 = Counter(data)
In [10]: c2
Out[10]:
Counter({1: 4,
2: 1,
3: 2,
4: 1,
5: 1,
6: 1,
7: 2,
8: 1,
10: 2,
11: 2,
... | [
"1027926875@qq.com"
] | 1027926875@qq.com |
6396b98bb1050bbf9951b53eb43e77020a19744d | c78b7f5b798e2c70b869ac68c606361fd3bcd35d | /src/services/rulz.py | 9bb35969be91f59802f2135fd1d20e2761d5458e | [] | no_license | leonardoleenen/rules | 0d30c1cf7f2eef52362a053c5ce9705ff0cf414f | 1d85fd95a74872a7c2cffcea9593b5966a88a8df | refs/heads/master | 2020-03-21T18:31:35.536623 | 2018-06-27T19:17:08 | 2018-06-27T19:17:08 | 138,897,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97,384 | py | # -*- coding: UTF-8 -*-
'''
:Authors
- Enzo D. Grosso
'''
from flask import Blueprint, current_app, jsonify, request
from flask_cors import cross_origin
from security.security import secure_service
from utils import repo, analizer_handler
from time import time as timestamp
from datetime import datetime
from utils.... | [
"leonardo.leenen@agtech.com.ar"
] | leonardo.leenen@agtech.com.ar |
f16223f96704dedac5c3e9513d427b4d24cd0f09 | 39cfcbc8ff1f482d31e5ae7b9e2c4aacbe67d817 | /backend/ihero_backend/apps/threats/models.py | d046ea946e03c6868971bb27b2bded6c5bf0a9c7 | [] | no_license | Kyzard0/iHero | 6b4343bf320025daa30858bcb6116769233337b8 | 36c1b6be33a4735ac4e094160aefa721967d2f97 | refs/heads/master | 2023-05-28T18:15:27.779156 | 2021-06-04T01:08:00 | 2021-06-04T01:08:00 | 372,687,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,043 | py | from datetime import datetime
from django.db import models
from heroes.models import Hero
from .enums import THREATS_RANKS
class Threat(models.Model):
unique_id = models.CharField(max_length=32, unique=True,
null=True, blank=True)
name = models.CharField(max_length=50)
l... | [
"diego_rafael_97@hotmail.com"
] | diego_rafael_97@hotmail.com |
1758ed4bcc46ea058bb1b8b59fca67448bdd3329 | 13d1b1a20dc83800278d5872da2ad794ef80c255 | /hashTable.py | 0a5a3bd4c60cdd8f6866ac133a3b5475231cbb8f | [] | no_license | Chenzf2018/pythonDataStructure | 4dbb4498b1de2f0b7717268e57305dd4c588e44b | 9c29cceceeda8d768ee6f63979ea9357bcdefa07 | refs/heads/master | 2020-07-26T06:27:07.239183 | 2018-06-11T10:58:58 | 2018-06-11T10:58:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 970 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
'hash'
__author__ = 'lxp'
#《大话数据结构》365页
class HashTable(object):
def __init__(self):
self.elem = None
self.count = None
def initHashTable(self):
self.count = int(input("count = "))
self.elem = [None] * self.count
return
def hash(self, key):
return (ke... | [
"LiuXPeng@users.noreply.github.com"
] | LiuXPeng@users.noreply.github.com |
629bb766b59426f264fbe5d799e13cdcde48929d | 1d96db84225301d972f07cad95c2a13f4fbafa84 | /python/scipy_examples/fitting_with_optimize_ABSTRACTED.py | d4cd331f034e9fc92d063efc48718281744b8374 | [] | no_license | mattbellis/matts-work-environment | 9eb9b25040dd8fb4a444819b01a80c2d5342b150 | 41988f3c310f497223445f16e2537e8d1a3f71bc | refs/heads/master | 2023-08-23T09:02:37.193619 | 2023-08-09T05:36:32 | 2023-08-09T05:36:32 | 32,194,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,569 | py | import numpy as np
import matplotlib.pylab as plt
import scipy.stats as stats
from scipy.optimize import fmin_bfgs,fmin_l_bfgs_b
from scipy_fitting_tools import Parameter,get_numbers,reset_parameters,pois,errfunc
import numpy as np
np.random.seed(0)
################################################################... | [
"matthew.bellis@gmail.com"
] | matthew.bellis@gmail.com |
e5872ed4ca8e02a9a0750f1e91cec14e04750c8c | 609d62a60e5c544074d83bfb15129d1c73128a68 | /registration/models.py | 538899b1eeb074c8b131180168fbec1fe1552afa | [
"BSD-3-Clause"
] | permissive | arocks/django-registration-1.5 | 666b74f93bdefbf9bdaa6c543f816552e4d18068 | 8effe40f1c6902d8bfcc741cf98a20dc75bed011 | refs/heads/master | 2021-01-18T14:48:45.130413 | 2014-01-06T07:26:38 | 2014-01-06T07:26:38 | 10,294,615 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 10,538 | py | import datetime
import hashlib
import random
import re
from django.conf import settings
try:
from django.contrib.auth import get_user_model
except ImportError: # django < 1.5
from django.contrib.auth.models import User
else:
User = get_user_model()
from django.db import models
from django.db import transa... | [
"mw166301@gmail.com"
] | mw166301@gmail.com |
c80a6940f291742a9592eeda76b27a0af5d014f8 | 64f3a8ecd6eab0a82bc4970be07f60f3b3b071bd | /Examples/15_get_job_info.py | 6134c1261cbbe3de5a8b50cc068ffe19281334b5 | [] | no_license | friendkak/IBM-DataStage-API | 5fe0f928307d3fa430a5074e043c568c59646873 | 702263a8f2ad455ae9706ec27ce128324a940a55 | refs/heads/master | 2022-12-12T02:59:41.048694 | 2020-08-26T12:22:22 | 2020-08-26T12:22:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,880 | py | # -*- coding: utf-8 -*-
import sys
sys.path.append('..')
from config import *
from ibm_datastage_api import DSAPI
hproj = None
hjob = None
dsapi = DSAPI()
try:
res, err = dsapi.DSLoadLibrary(API_LIB_FILE)
if err:
raise Exception("Loading the library failed: {}".format(err))
print("Setting the para... | [
"reijnnn@gmail.com"
] | reijnnn@gmail.com |
0dc1f2c28db51d01993123fcafd7bea069e473a4 | 747febe786dd6b7fd6c63cfe73dbe3023354daa8 | /src/the_tale/the_tale/urls.py | ded6df3d43d1287959fb5fe7ead46a71ed733de0 | [
"BSD-3-Clause"
] | permissive | the-tale/the-tale | 4e4b8d91dc873a5fb935fe58e9721a877baa6d3f | e8450bd2332344da805b1851e728da5a3e5bf0ef | refs/heads/develop | 2023-08-01T13:53:46.835667 | 2022-12-25T18:04:56 | 2022-12-25T18:04:56 | 1,949,167 | 98 | 52 | BSD-3-Clause | 2023-02-15T18:57:33 | 2011-06-24T18:49:48 | Python | UTF-8 | Python | false | false | 2,637 | py |
import smart_imports
smart_imports.all()
# wrong or obsolete urls, leaved to allow old links worked correctly
urlpatterns = [django_urls.url('^folclor/(?P<path>.*)$', RedirectView.as_view(url='/folklore/%(path)s')),
django_urls.url('^accounts/clans/(?P<path>.*)$', RedirectView.as_view(u... | [
"a.eletsky@gmail.com"
] | a.eletsky@gmail.com |
fd0156c8d7c2a2ee9cb1aeb41f8652b521feb746 | 80624c2de37272a163d3284d48c274eb733ca8ff | /separate functions/jpgcreator.py | 073944af8a649b76503136fe6687dd08c367c2fe | [] | no_license | sirabas369/RealsensePython | c947760e52d5d868c2b942cbd37ba8208176b71a | d4f5cf5c0be9ec7d84e9d759886144c8127d445d | refs/heads/master | 2023-03-17T04:23:24.753859 | 2019-11-18T20:38:08 | 2019-11-18T20:38:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,154 | py | import pyrealsense2 as rs
import numpy as np
import cv2
import os
import multiprocessing as mp
from itertools import islice
def color_to_jpg(input_file):
"""create jpg with the input file in the folder jpg"""
#print input_file
bagname = os.path.basename(input_file)
bagdir = os.path.dirname(input_file)
... | [
"soarwing52hot@gmail.com"
] | soarwing52hot@gmail.com |
129ff24fa3243ef44656ec99c13da8d5f4fbc0af | e264013b2c10ca241aeaeb61cc0c0e199ac83976 | /RNN/TrainData.py | 1debe7b55292bc9e0f0f48abef8b9591e22ad7a4 | [] | no_license | AlexFoo95/Sentiment-Analysis-on-Stock-News-Headlines | 16d773ec332be52356f7fb6fade1fb09a3274b83 | 821bdffdb70541bb9360a9c92142fa5417b918b5 | refs/heads/master | 2020-06-01T11:45:49.504327 | 2019-06-07T15:50:16 | 2019-06-07T15:50:16 | 190,767,751 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,369 | py | from RNN import RNN
import tensorflow as tf
from SentimentDataset import SentimentDataset
from Graph import freeze_graph
import numpy as np
def train(train_id_data, num_vocabs, num_taget_class):
max_epoch = 200
model_dir = "E:\Pycharm Project\FYP\RNN\Trained_models\save_models.ckpt"
hps = RNN.get_default_... | [
"Foo.C.H95@student.usm.my"
] | Foo.C.H95@student.usm.my |
ddb1051f8c18efd932e82a056993c04133fdff9b | 704ae8dd89ef569e684fa2cb33204a1421e37f9f | /api_prototype/mariam/Box_of_A&B_reactions_b.py | 7c65515ac282342149a776d5730f109902dd43d6 | [] | no_license | mcellteam/libMCellPP | 5846122623c88cb3d3fba88462876b7089287986 | 52bc4d45c7d38aa260015c7041fff9f0da6cf6eb | refs/heads/master | 2020-12-08T14:03:31.287488 | 2020-04-14T23:24:09 | 2020-04-14T23:24:09 | 67,175,548 | 1 | 3 | null | 2019-10-02T18:01:48 | 2016-09-02T00:13:12 | Python | UTF-8 | Python | false | false | 489 | py | import PyMcell as pm
#creat the world
world = pm.create_world()
# create molecule A
molA = pm_create_mols(name = A, dc = 1e-6, N=1000)
# create molecule B
molB = pm_create_mols(name = B, dc = 1e-6)
#intial distribution space
space = world.boundaries(x>-1 and x<1 and y>-1 and y<1 and z>-1 and z<1)
#start reaction, wi... | [
"noreply@github.com"
] | noreply@github.com |
53535da6906640a78141c24f304d31eaa7316cda | 3af057f5b00a934cd5364e7373d042ac68c5da61 | /desdobra.py | e408186217d03a2139e780a0b5773c8f3ec93ff4 | [] | no_license | joilsonlira/python_estudo_1 | 39a58cf8118352db8c01d4724c574f427a5b4f19 | 894a0a3101cc7a4c39878f0c5a75f2e9876d741a | refs/heads/master | 2023-08-18T18:06:43.774588 | 2021-10-04T18:24:19 | 2021-10-04T18:24:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,902 | py | """
*******ESCOPO*******
1. Gerara dezenas aleatoriamente sem criterios. [FEITO]
2. verificar se tem e eliminar conjuntos repetidos.
"""
from random import sample
from verify import *
def full_aleatorio(range_inicio,range_fim,quantidade_dezenas,quantidade_aposta):
dezenas_aleatorias=[]
del dezenas_aleatori... | [
"joilson.lira@live.com"
] | joilson.lira@live.com |
3a23bcb6a34ebf1ede0901f31bd7ca34d94bfc4e | 1bcc38d8b030d6e5d96b353cc4f41ea4f5f9baaf | /tests/acceptance/action_tests/some_more_pages.py | 8bb5a0a14ce873cfbea5e2fb04321f920abf134b | [] | no_license | irae/pyccuracy | a3debcb94813c0b724335a51b5375cc61f4736a3 | a93b31f4a072c4bca992c89888522668185a5a89 | refs/heads/master | 2021-01-24T02:10:41.478672 | 2012-01-10T20:15:10 | 2012-01-10T20:15:10 | 3,042,194 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from pyccuracy import Page
class YetAnotherPage(Page):
url = "page_tests.htm"
def register(self):
self.quick_register(u"text2", "#divText2")
| [
"bernardo@corp.globo.com"
] | bernardo@corp.globo.com |
03f8df6a189c4f594e18ff8fc0f6e353fb27f83d | 38ae0a339102c9fa0c24ecac7901a0103f87c1fe | /Lib/site-packages/django/db/migrations/graph.py | 8b8a4d9bead4f1c4afabac42ebfaeaa2d1e51369 | [] | no_license | Tanzin-Ul-Islam/Django_dynamic_filterform | 11cf897391abc56929b3e6d5156660312a65ef13 | 76eb92d65a8cab5a9b294f87c144e425227feee5 | refs/heads/main | 2023-02-23T02:38:51.562393 | 2021-01-26T20:36:20 | 2021-01-26T20:36:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,842 | py | from functools import total_ordering
from django.db.migrations.state import ProjectState
from .exceptions import CircularDependencyError, NodeNotFoundError
@total_ordering
class Node:
"""
A single node in the migration graph. Contains direct links to adjacent
nodes in either direction.
"""
def _... | [
"tanzin.cse@gmail.com"
] | tanzin.cse@gmail.com |
e24294ca889173dae3e68e1d05a083690af738d6 | 7f4bf424fb68a196d431ce806cd3dc1c7b0c924d | /build/ira_laser_tools/catkin_generated/pkg.develspace.context.pc.py | a44e33174ec48f82ce58de1c673ccf653f140c92 | [] | no_license | CappiJoe/master_thesis_code | 0609ee6e06d8186bebd06bdaa86850cd3458ec94 | 0ef0cadd73668036b9578db78fed01c542aaefbc | refs/heads/master | 2022-09-06T23:37:11.912293 | 2020-05-25T20:08:19 | 2020-05-25T20:08:19 | 266,092,389 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/student/casper/workspace/devel/include".split(';') if "/home/student/casper/workspace/devel/include" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX =... | [
"casper.rodsrud@gmail.com"
] | casper.rodsrud@gmail.com |
29f6fb08a59c7ff5ffca211be3c79add85e2d216 | 64913255f26d02a9680dd7ee0879e7c96a6c0071 | /polyq/alignment_reader_pandas.py | e3d0e4411b777150cf60e3cd66d54aa17554b647 | [] | no_license | hz7/sequence-analysis | 929a87983004613d80cbe9aeda946331f3945426 | d3c3a40218c4f8aff39c7a6c58292f6010bb41cf | refs/heads/master | 2021-01-10T18:45:07.728173 | 2012-04-25T17:29:58 | 2012-04-25T17:29:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,900 | py | '''
Goes through the alignment folders (using pandas to pivot)
Outputs csv: gene, density for species1, density for species2, ...
'''
import os, numpy, re
from Bio import SeqIO, Motif, Seq, Alphabet
from pandas import DataFrame, pivot_table
INPUT_DIR = 'c:/holt/alignments'
OUTPUT = 'c:/holt/out_pandas.csv'
SPECIES_... | [
"cubrikal@gmail.com"
] | cubrikal@gmail.com |
dff27956c830320fced5b38b2cc77dbb51d31cde | 60c4255fb0cf7ed817ff09d8113bf404cde8e12b | /env/lib/python2.7/site-packages/django/contrib/localflavor/gb/forms.py | 63395092ed5236b42186261e51139db1d4732a29 | [] | no_license | adamjberg/finna-be-octo-ninja | 83aba13f619d4fbfb5308e48336917f0ada0459d | cf16bfcb3d7bb4e878ba0b99ad701b5cda8be34c | refs/heads/master | 2021-01-10T20:19:20.849476 | 2014-01-11T05:42:23 | 2014-01-11T05:42:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,047 | py | """
GB-specific Form helpers
"""
from __future__ import absolute_import, unicode_literals
import re
from django.contrib.localflavor.gb.gb_regions import GB_NATIONS_CHOICES, GB_REGION_CHOICES
from django.forms.fields import CharField, Select
from django.forms import ValidationError
from django.utils.transl... | [
"ilikecattle@gmail.com"
] | ilikecattle@gmail.com |
5b9f02f46b303848958912ee031ecafaf0a581bd | bcc72e6fa84ce81568dfe615f362cd095652f1b7 | /installer/core/providers/aws/__init__.py | 2939b1594eeb24bda27de0011b05faba21b5e1d3 | [
"Apache-2.0"
] | permissive | alexander-dev-hub/pacbot | 3410207e2030bb8d46e96c0f10cb0cfc0c7045b8 | 0b819091728eb370893dc795bcad018d85bdf24e | refs/heads/master | 2022-11-25T00:58:12.418257 | 2019-09-02T12:29:43 | 2019-09-02T12:29:43 | 205,841,199 | 1 | 0 | Apache-2.0 | 2022-11-16T12:35:20 | 2019-09-02T11:23:34 | Java | UTF-8 | Python | false | false | 9,055 | py | from core.terraform.utils import get_terraform_provider_file
from core.mixins import MsgMixin
from core.terraform import PyTerraform
from core.terraform.resources import TerraformResource
from core import constants as K
from core.config import Settings
import inspect
import json
import os
import uuid
class BaseAction... | [
"wangming19871126@gmail.com"
] | wangming19871126@gmail.com |
3e4d2070d0052ea1a515df5ce7bb930251ff764c | b3927ea330d0fbf46fd5931c4b9fcb329f89a86d | /MLVis.py | a510b0216744809f4f4445d891df7f6b2b41503e | [] | no_license | generic-github-user/MLVis | 77c740650d539826c2cc41d39418fe96b11b7b7b | bfdd79f3b7fd3a663e0b3116d2bb09d955f1cb13 | refs/heads/main | 2023-06-24T15:06:47.508895 | 2021-07-21T17:28:46 | 2021-07-21T17:28:46 | 387,984,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,408 | py | #!/usr/bin/env python
# coding: utf-8
# MLVis provides tools for interactively visualizing machine learning models. It is designed to support multiple levels of abstraction, but focuses on the TensorFlow/Keras layers API. The main functionality is a web-based graph visualization of an ML model's components, which inte... | [
"40661852+generic-github-user@users.noreply.github.com"
] | 40661852+generic-github-user@users.noreply.github.com |
b21454d098da79e3a8ed4e89d2a1e4b10fb0324f | a8731ed73a1fbae2d1e490fc8951aa17873aa7d4 | /check_inds.py | 4a89772eeb99a2bbcfcd2cd2e416841be5b35920 | [] | no_license | juancq/character-evolver | 452bf84afd52766502fbe6ba6471519d1a7635e1 | 5dcae96916dbfef03cc8f6625e4a4c31fe25224f | refs/heads/master | 2021-01-23T18:08:21.058617 | 2017-05-22T02:08:58 | 2017-05-22T02:08:58 | 129,113 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 22,258 | py | try:
import psyco
psyco.full()
except:
print 'no psyco'
import sys
import random
import ctypes
sys.path.insert(0,'..')
import PythonOgreConfig
import ogre.renderer.OGRE as ogre
import ogre.gui.CEGUI as CEGUI
import ogre.io.OIS as OIS
import SampleFramework as sf
import evolve
SP... | [
"juan@dragonite.(none)"
] | juan@dragonite.(none) |
acdb18f6fcd9efce6f95874f28b566573c3fa32a | 784d4021b750fd7ea20eb8f444ebf4546af8e908 | /Counter.py | b48cb0fc955889cef60bbc199f9a45a5d71d8a4e | [] | no_license | DSmith126/CSS-225 | c0c14caf9fe1fc730ff59ba0a34780ccf6f0d8ad | 38e4f8a9611bfe15dc8343512ae81184ef02a896 | refs/heads/master | 2020-04-28T23:04:55.718898 | 2019-03-20T21:54:13 | 2019-03-20T21:54:13 | 175,641,789 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | L = []
counter = 0
while counter < 11:
L.append(counter)
counter += 1
print(L)
| [
"noreply@github.com"
] | noreply@github.com |
24ceb0d58ea3ce27a9d20c6b06ba544314c56dcb | 77c143660f1aa966d431e7dd799ff1d356a29547 | /Basic/Files/readline.py | 62d2a8256b4a9fe4db0bb78f9e88dc6c85cc0655 | [] | no_license | xavierloos/python3-course | 456c2b43cab43f79587ff481b7a02781c14b53ab | 259bea1218217f9a55c94d2452426e05907d32a1 | refs/heads/main | 2023-07-05T14:03:39.817245 | 2021-08-22T18:48:04 | 2021-08-22T18:48:04 | 385,955,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py | # 1.Using a with statement, create a file object pointing to the file just_the_first.txt. Store that file object in the variable first_line_doc.
# 2.Save the first line of just_the_first.txt into the variable first_line.
# 3.Print out the variable first_line.
with open("just_the_first.txt") as first_line_doc:
fi... | [
"xavier.loos04@gmail.com"
] | xavier.loos04@gmail.com |
5dce6f011f789e9daa5d87c1db63576369e554de | 59ad6e6e0ac3a09286c7d1dc60fd1b9a76d13cab | /pyhon3Pre/ex05.py | f5afe4b270907bca36bee3d02ae0ae5310c60c0a | [] | no_license | ta-ryo/Python3 | c6e398ae0b1def018a922fc06eb517568ea9e070 | bf6a7921a5416339f15ce48532eefa16f4978dae | refs/heads/master | 2020-04-26T17:36:39.468243 | 2019-05-10T12:09:24 | 2019-05-10T12:16:39 | 173,719,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | num_10 = input("10進数> ")
if int(num_10) > 255:
print("255より小さな数字で打ち直しです")
num_10 = int(input("10進数> "))
con_num_10 = int(num_10)
ans = []
while con_num_10 > 1:
ans.append(int(con_num_10 % 2))
con_num_10 = int(con_num_10/2)
else:
ans.append(int(con_num_10))
while len(ans) < 8:
ans.append(0)
ans.r... | [
"e165716@ie.u-ryukyu.ac.jp"
] | e165716@ie.u-ryukyu.ac.jp |
14bed740f8847ec33c85e5dde1b8fda03f9aef12 | eb6d3841d9966cc4aea25da5c4805fd433fd3186 | /models/t5gen.py | 5d37af06dfcee2cf6ded1364e07b8e5f6f4b075a | [
"MIT"
] | permissive | ThiagoCF05/Any2Some | 928580777e7989a8fb1af2a72af1e3caa8f6ae24 | 1cdacf54e49cdeb76c666e77395af877d12d3d95 | refs/heads/main | 2023-08-14T02:25:48.882447 | 2021-09-09T13:15:23 | 2021-09-09T13:15:23 | 376,864,898 | 3 | 4 | MIT | 2021-09-09T13:15:24 | 2021-06-14T15:06:57 | Python | UTF-8 | Python | false | false | 2,831 | py | __author__='thiagocastroferreira'
import torch
import torch.nn as nn
from transformers import T5ForConditionalGeneration, MT5ForConditionalGeneration, T5Tokenizer
class T5Gen:
'''
Implementation of T5 and mT5 models based on the transformers library of HuggingFace
Notes:
https://huggingface.co/t... | [
"thiago.castro.ferreira@gmail.com"
] | thiago.castro.ferreira@gmail.com |
a4fcef75525d7e454f816ddc15f9ebfddcada544 | 3a11a1c6f27b1ca1dc2ea3083c32ae9735efd228 | /tensorflow/lab1_helloworld.py | c4db3453e1a80026643c930a55bb24f56719cdf5 | [] | no_license | rosierui/ml | 3a051f99cd80679cf78e05d63639bab1af5aeba8 | 8d8973b671cd9923990c22454d7c7e136276a8db | refs/heads/master | 2020-08-22T04:16:34.248953 | 2019-12-08T07:42:17 | 2019-12-08T07:42:17 | 216,315,877 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 985 | py | # https://codelabs.developers.google.com/codelabs/tensorflow-lab1-helloworld/#0
# https://www.youtube.com/watch?v=KNAWp2S3w94 ML Zero to Hero, part 1
import tensorflow as tf
import numpy as np
from tensorflow import keras
model = tf.keras.Sequential([keras.layers.Dense(units=1, input_shape=[1])])
"""
Next, the model... | [
"moonwave.systems@gmail.com"
] | moonwave.systems@gmail.com |
80c9a3395fc201a0d153ea0c3e84c615aeaa55e1 | a1a0776512b6f4fb9f1e460a52d69c87acf34738 | /tests/test_hooks/conan-center/test_conan-center.py | 840ff2f603ec1d2b14b3ccc12bb44532608d2200 | [
"MIT"
] | permissive | memsharded/hooks | 05a27a5b2f433884a88ed36cae74f5d9f20c1af6 | 0d022d654239d607c945be76ab9a350869031eac | refs/heads/master | 2020-05-30T07:00:47.606952 | 2019-05-28T17:01:38 | 2019-05-28T17:01:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,636 | py | # coding=utf-8
import os
import textwrap
from conans import tools
from tests.utils.test_cases.conan_client import ConanClientTestCase
class ConanCenterTests(ConanClientTestCase):
conanfile_base = textwrap.dedent("""\
from conans import ConanFile
class AConan(ConanFile):
url = "fake... | [
"danimanzaneque@gmail.com"
] | danimanzaneque@gmail.com |
9376779f91d45b267f60903eaf65ee08c95ce691 | f99ded2518dfdd53b8ecf113af5ad062faf641fc | /__init__.py | e279a59de85f4bd077edf83a947be5f3b20043e6 | [] | no_license | fsxchen/ThreadPool | b09b093ca890155796712a0fe0599dc2766069f7 | 0d48862957dfca17303e6b1dbdba16b799fc87ab | refs/heads/master | 2020-05-27T21:19:16.233599 | 2017-03-08T03:10:14 | 2017-03-08T03:10:14 | 83,660,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,947 | py | '''
@author: arron
'''
import sys
import threading
import queue
import traceback
# 定义一些Exception,用于自定义异常处理
class NoResultsPending(Exception):
"""All works requests have been processed"""
pass
class NoWorkersAvailable(Exception):
"""No worket threads available to process remaining requests."""
pass
d... | [
"fsxchen@gmail.com"
] | fsxchen@gmail.com |
f396bdc6162f9fa4eda310102ec903bb7a3db3ef | fa93e53a9eee6cb476b8998d62067fce2fbcea13 | /build/mouse_teleop/catkin_generated/pkg.develspace.context.pc.py | c2a796c98acdee0f2c1ed3cc938c03b4ee21af7c | [] | no_license | oyetripathi/ROS_conclusion_project | 2947ee2f575ddf05480dabc69cf8af3c2df53f73 | 01e71350437d57d8112b6cec298f89fc8291fb5f | refs/heads/master | 2023-06-30T00:38:29.711137 | 2021-08-05T09:17:54 | 2021-08-05T09:17:54 | 392,716,311 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "mouse_teleop"
PROJECT_SPACE_DIR = "/h... | [
"sandeepan.ghosh.ece20@itbhu.ac.in"
] | sandeepan.ghosh.ece20@itbhu.ac.in |
567970062927099f69ec0b2a464957a25527ff4e | 6e061f593aad262de2655767c9ea94b9142b51ea | /authentication/migrations/0002_user_is_verified.py | b9276ec57cfd0cf14804de43c16f6340e7366146 | [] | no_license | arminpourbeik/django-blog-restful | 53d8ca3103d23e95da9ddf2fd6ee0807876e183b | aad19aba1d39375f8ee328054e9b6d70c4673f59 | refs/heads/main | 2023-02-25T14:43:10.297108 | 2021-01-28T20:27:02 | 2021-01-28T20:27:02 | 329,924,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | # Generated by Django 3.1.5 on 2021-01-17 10:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('authentication', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='user',
name='is_verified',
... | [
"armin.pourbeik@gmail.com"
] | armin.pourbeik@gmail.com |
25d5190a553a4e235a6adfb49cbbae1c6373fafc | bbe447a740929eaee1955bd9c1517cf760dd5cb9 | /keygrabber/adwords/adwords_api_python_14.2.1/examples/adspygoogle/adwords/v201008/get_all_alerts.py | 4d21466fd75fcb699828f91b9b3d5813ed661315 | [
"Apache-2.0"
] | permissive | MujaahidSalie/aranciulla | f3d32e7dd68ecfca620fe4d3bf22ecb4762f5893 | 34197dfbdb01479f288611a0cb700e925c4e56ce | refs/heads/master | 2020-09-07T02:16:25.261598 | 2011-11-01T21:20:46 | 2011-11-01T21:20:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,655 | py | #!/usr/bin/python
#
# Copyright 2010 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | [
"vincenzo.ampolo@gmail.com"
] | vincenzo.ampolo@gmail.com |
d186ca6f087bf78a583e3f50f64e39a970f3ddff | 256a7cb9266ccb93eaef8e3f619a102056bee807 | /lesson12/siamese_keras.py | b0dd8e58b817377d8554e6a511f4270ad54b76fb | [
"MIT"
] | permissive | hadifar/tensorflow-starter | 80e23493d8e0975a05bc9334ca336fd1bbe1b2aa | 187b6956e3a0cc45a065e753240eced93bc4c592 | refs/heads/master | 2020-03-23T20:50:45.912368 | 2019-01-05T16:03:17 | 2019-01-05T16:03:17 | 142,066,156 | 10 | 5 | null | null | null | null | UTF-8 | Python | false | false | 4,583 | py | # -*- coding: utf-8 -*-
#
# Copyright 2018 Amir Hadifar. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless req... | [
"hadifar.amir@gmail.com"
] | hadifar.amir@gmail.com |
25cf162514764073f1d8a92aba8bb1c9c3049ec3 | 2cb341d63d898bf23791b58a94c1c4eb5377dcde | /chatFunctions.py | bfa6660c25a36b51598f3d9b777578ada295f11c | [] | no_license | Klaus404/assistant-geo | 3299cef9dbb3d7f6bb40a20f46be027716919b9f | f3f53f22c7f98c71a7673c19142ded548fc39690 | refs/heads/main | 2023-06-12T09:13:02.966048 | 2021-07-07T11:00:04 | 2021-07-07T11:00:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,605 | py | import datetime
import os
import random
import shutil
import subprocess
import time
import pyjokes
# from bs4 import BeautifulSoup
# import win32com.client as wincl
# from urllib.request import urlopen
# import tkinter as tk
import webbrowser
from datetime import datetime
from random import randrange
# import pyjokes
#... | [
"barbuclaudiu404@gmail.com"
] | barbuclaudiu404@gmail.com |
35a8ac27c8ef029c096c109afdf467a99e39b526 | efc08ca15409574c1e14e2d8caf2f670f57e00f2 | /CS362/randomTesting/tests.py | 79edbaa0d1fb887b225fe59a96acfc875e330604 | [] | no_license | johnnybecerra/school | 3e7d1f5477acde707ad01105b55fc1279dc4819a | 71dae6e319150b010cdebac0bed1fe143dd6b547 | refs/heads/main | 2023-03-06T10:39:09.738011 | 2021-02-23T01:33:03 | 2021-02-23T01:33:03 | 339,597,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,629 | py | # Jhonatan Becerra
# Random Testing
import random
from credit_card_validator import credit_card_validator
# holds the different card brands
brandName = ["VISA", "MASTERCARD", "AMEX", "RANDOM1", "RANDOM2"]
# holds the length of the number for a brand
brandLen = [16, 16, 15, 15, 16]
# createCreditNumber generates an... | [
"becerrjh@oregonstate.edu"
] | becerrjh@oregonstate.edu |
290d7a99a936ef677ca43d9309f829efcd4cce01 | 3e916f947ceebbac47b47e3abd2e08804bbeaee6 | /django project/upload/urls.py | 0d16d1d5f50d73ead4be1d0202f7ae913608480b | [] | no_license | songbin-pony/stock | 7bc30b4312034f23c67afc59a17d870e0e829de0 | ddbe7603c23e35fa6bd7a7dcca71a3e09a17d1b5 | refs/heads/master | 2023-04-05T19:28:59.356339 | 2021-05-12T11:22:33 | 2021-05-12T11:22:33 | 366,283,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | from django.urls import path
from upload.views import uploadimg
urlpatterns = [
path('uploadimg/', uploadimg),
]
| [
"pony_songbin@163.com"
] | pony_songbin@163.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.