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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a695bc06ce684d2ee84feed4520602f58645f929 | c4991e2c816b97f36cdd6de8f3fe235e72b8ac1c | /laporan/helper_scripts/cleancsv.py | 0dd91afe1126239f52d8737882e5e64d020486b4 | [] | no_license | Capstone-Project-B21-CAP0113/ml-tf | 6bfc5a831b46273ae7e79530cacc411584d6226b | a5fe62687e0aa8b420c0b6baf3d81756cc26cedf | refs/heads/main | 2023-05-10T02:51:25.779101 | 2021-06-09T06:45:39 | 2021-06-09T06:45:39 | 368,582,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 799 | py | import csv
import os
import string
filepath = os.path.dirname(os.path.abspath(__file__))
filename = os.path.join(filepath, "..", "raw_data", "laporan.csv")
targetname = os.path.join(filepath, "..", "cleaned_data", "laporan.csv")
rows = []
with open(filename, "r", newline="", encoding="ISO-8859-1") as file:
... | [
"mrizki.agungp@gmail.com"
] | mrizki.agungp@gmail.com |
62944c9463507cf794cdc4d07af1d651c8746200 | 16a1e6c3e07c60e855500f492dc48c59df7977c1 | /src/simple_blog/migrations/0005_auto_20190703_1213.py | ad9c84e5ff12b71ccf50642eae856edce0a94fb6 | [] | no_license | polly-morphism/django_learn | fc0d5ebe3697423715e6a3ec5bee115893edd0da | 62666d534ee755f66c7ef45a059a250b69dc7bda | refs/heads/master | 2023-04-30T00:51:47.406880 | 2019-07-04T14:17:42 | 2019-07-04T14:17:42 | 194,562,810 | 0 | 0 | null | 2023-04-21T20:40:27 | 2019-06-30T21:26:09 | Python | UTF-8 | Python | false | false | 392 | py | # Generated by Django 2.0.2 on 2019-07-03 12:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('simple_blog', '0004_auto_20190702_1025'),
]
operations = [
migrations.AlterField(
model_name='blogpost',
name='title... | [
"polinasirko@gmail.com"
] | polinasirko@gmail.com |
8efeda44d905898ff678ae343caf148717963d54 | 38c606ed14564591c1aa6e65c7dab255aebf76f9 | /0x11-python-network_1/5-hbtn_header.py | 2c76d103cd07681c5295f2c7dd0ea62d4798e81a | [] | no_license | camilooob/holbertonschool-higher_level_programming | d7cee708b308bed86fcc384d7451de26fa9cafaa | db9b6760e7e4998c5f00a4f2cfeb17ec14e44cab | refs/heads/master | 2020-09-29T00:19:25.736344 | 2020-05-15T01:34:32 | 2020-05-15T01:34:32 | 226,900,553 | 1 | 8 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | #!/usr/bin/python3
"""the package request"""
if __name__ == "__main__":
import requests
import sys
r = requests.get(sys.argv[1])
print(r.headers.get('X-Request-Id'))
| [
"camilobaq@hotmail.com"
] | camilobaq@hotmail.com |
ec38fded91da8c42d88d6db25141cbe9973e26e2 | 716fd93c7de69e10e54ed1efef60bd91b7c2f118 | /main/ByteFeatureExtraction.py | b7a82b52ba385b87489c439418c47005d888d7c6 | [] | no_license | sharminpathan/microsoft-malware-classsification-challenge | bba58b7ae86c24ff053a417d00a8f54e5b92f8aa | d1749817fbcd0205a3598aa21d724b7d12f192af | refs/heads/master | 2021-06-08T15:13:18.400086 | 2016-09-23T18:42:55 | 2016-09-23T18:42:55 | 71,841,253 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,672 | py | from __future__ import print_function
from pyspark.sql import SQLContext, Row, SparkSession
import sys
from pyspark.sql.types import *
import re
import os
# sc = SparkContext(conf=SparkConf().setAppName("MalwareClassifier"))
spark = SparkSession \
.builder \
.appName("OpcodeExtraction") \
.getOrCreate()
s... | [
"noreply@github.com"
] | noreply@github.com |
e3f8fa6106a55397778e7a92beef1263e413f784 | 794a797aa4991455f563e895c8d7fcc1ee027d4b | /web_proj/users/views.py | e59a449601f1a39c6edd480ba30902a4e5553ab2 | [] | no_license | INT31302/destroy-django | 95501f063550cfce46addef433024564e5217fd5 | 2784cdc92418ddf8db9db7ecaab86f26b6281946 | refs/heads/master | 2021-01-04T10:37:29.215056 | 2020-02-26T11:49:18 | 2020-02-26T11:49:18 | 240,507,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,674 | py | from django.shortcuts import render, redirect
from .forms import UserLoginForm, UserCreationForm
from django.contrib.auth import get_user_model
from django.contrib import auth
from django.http import HttpResponseRedirect
from django.urls import reverse
def login(request):
if request.method == "GET":
conte... | [
"tkdwo287@gmail.com"
] | tkdwo287@gmail.com |
a65c10c99ffc0188afff812eb4dd157e925471de | 62389833015a808eb204265745cd77d97e40fc66 | /tests/nodeos_voting_test.py | 720b4150211714c89d63892d1dce3aec417a00f8 | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | amadeobrands/eos | 9b9c1597608e85505a4d6ded91c27fd8231bf8f3 | 74c6c27e9555aa093355625fceba86f2a072d9b9 | refs/heads/master | 2020-03-21T16:45:25.245770 | 2018-06-26T18:53:08 | 2018-06-26T18:53:08 | 138,791,617 | 1 | 0 | MIT | 2018-06-26T20:47:21 | 2018-06-26T20:47:21 | null | UTF-8 | Python | false | false | 930 | py | #!/usr/bin/env python3
import testUtils
import decimal
import re
###############################################################
# nodeos_voting_test
# --dump-error-details <Upon error print etc/eosio/node_*/config.ini and var/lib/node_*/stderr.log to stdout>
# --keep-logs <Don't delete var/lib/node_* folders upon t... | [
"johnc@objectcomputing.com"
] | johnc@objectcomputing.com |
858cc9748de831e9a2a85e7db00bd03e602606c5 | dccac0b6a21d2110fa6045b1d6a64c22280104ce | /givinggraph/companycause/company_cause_pickler.py | 41d1db121175a378b19d9bb82c835275a130efdb | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | erichilarysmithsr/givinggraph | cf3319e823c3d1c15b021430fdfe26b4719acb2e | 9f48a8767d9672079a616676a1c29054672fb8d3 | refs/heads/master | 2021-01-20T17:03:47.775235 | 2020-08-31T12:20:55 | 2020-08-31T12:20:55 | 35,964,712 | 0 | 1 | MIT | 2020-08-31T12:20:56 | 2015-05-20T18:00:04 | Python | UTF-8 | Python | false | false | 2,537 | py | #!/usr/bin/env python
#
# Description: This takes the company-cause relationship
# data and pickles it for the classifier to run on.
#
import argparse
from collections import defaultdict
import io
import re
import pickle
import string
company_words = set()
punct_re = re.compile('[%s]' % re.escape(string.punctuation)... | [
"atqamar@gmail.com"
] | atqamar@gmail.com |
fb6fe6a61827c33a91fb6298e582ac17bc9a7dcd | f03fe75e6506394ef337b24a9c546f5a09e4e0ba | /mountapi/http/response.py | 6bd7275b1ad3f57acd9e2018899fc0a58089f2e0 | [
"MIT"
] | permissive | pszpetkowski/mountAPI | d75911faab4bd06f749612bb1f21f026003aca5e | a9b47fa316857797ed98dbc7717f62f4f75ab07b | refs/heads/master | 2022-01-20T11:55:16.840465 | 2018-05-24T19:52:46 | 2018-05-24T19:52:46 | 134,129,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,346 | py | import time
from wsgiref.handlers import format_date_time
from mountapi.http.exceptions import HttpClientError
from mountapi.http.status import Status, HTTP_200_OK
from mountapi.lib import json
class Response:
def __init__(self, content=None, status: Status = None):
if isinstance(content, str):
... | [
"piotr.szpetkowski@pyquest.space"
] | piotr.szpetkowski@pyquest.space |
dc366e5f9d3e23b0a058bfa1e95c81120b0bb442 | c32ae13373f89c40496059d4d9fb18b9db9d320d | /Algorithms/AL_prim_algorithm.py | d2ceeb2393601b011920ea25c6bd77bfebf4ed7b | [] | no_license | Roha-Lee/data-structure-and-algorithm-study | b65cfedc7ae21208ad4620bfaf448f087c35a1d4 | 27728070baea859ab6f9b611c20758ae68f4a3be | refs/heads/master | 2023-08-21T06:26:04.314742 | 2021-10-05T15:59:08 | 2021-10-05T15:59:08 | 404,923,666 | 1 | 0 | null | 2021-10-05T15:59:09 | 2021-09-10T01:48:57 | Python | UTF-8 | Python | false | false | 2,126 | py | import heapq
from collections import defaultdict
from heapdict import heapdict
def prim(graph):
new_edges = []
adjacent_edges = defaultdict(list)
for w, s, t in graph['edges']:
adjacent_edges[s].append((w, s, t))
adjacent_edges[t].append((w, t, s))
queue = []
nodes = graph['vertices... | [
"rohagru@gmail.com"
] | rohagru@gmail.com |
6d5f990d8d3028f01181e6c34b162bd29b142c84 | 58035ab2fd07cb8e8951d0ef6190e3a5e0083e7d | /Intermediário/aula_41_excessoes_try_except/aula_41_try_except_condicional.py | c76b737bb835dec996e8f05e76922d8e9b513ae9 | [] | no_license | lavinomenezes/Curso-python-3-do-zero-ao-avancado | 4fae6c2efee0b74c1012e6fdcc9f834289ba329e | 2da94bfa32d6f178e91b07a08a7f94972d4444c5 | refs/heads/main | 2023-08-16T09:55:09.466218 | 2021-10-05T12:17:15 | 2021-10-05T12:17:15 | 413,801,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | def conv(v):
try:
v = int(v)
return v
except ValueError:
try:
v = float(v)
return v
except:
pass
n = conv(input())
if n is not None:
print(n * 5)
else:
print("Isso não é numero") | [
"lprogramacao@protonmail.com"
] | lprogramacao@protonmail.com |
0332091c980a247b508924dc4e03710be5f08839 | b0856a2d66cc4c71705b8c16c169848070294cf6 | /removeDupSortedArray.py | 3f60a7ee970822ff9418506693aa240504fabb51 | [] | no_license | jfriend08/LeetCode | 9e378ff015edc3102a4785b0832cf0eeb09f5fc2 | f76d3cf2e7fd91767f80bd60eed080a7bad06e62 | refs/heads/master | 2021-01-21T19:28:25.354537 | 2016-01-15T04:53:11 | 2016-01-15T04:53:11 | 28,518,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 832 | py | '''
Follow up for "Remove Duplicates":
What if duplicates are allowed at most twice?
For example,
Given sorted array nums = [1,1,1,2,2,3],
Your function should return length = 5, with the first five elements of nums being 1, 1, 2, 2 and 3.
It doesn't matter what you leave beyond the new length.
Subscribe to see whic... | [
"ys486@cornell.edu"
] | ys486@cornell.edu |
03690b2f621b493ce7076a3b1f0858c93e63b9bf | 84825a00091d9d3bb6a1f57b79904d9614cefe95 | /train_ignore.py | 6f1686b92e3c08040e27993860ba4869ef98860d | [] | no_license | jkooy/segmentation-ignore | 3039db6d23f3b569ff0159f341c5f03938f8dd3b | e0f35b1214ada8391346e15df7abff526592e3ed | refs/heads/master | 2022-12-15T08:07:11.943541 | 2020-09-13T22:56:25 | 2020-09-13T22:56:25 | 288,622,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,163 | py | import argparse
import os
import numpy as np
from tqdm import tqdm
from mypath import Path
from dataloaders import make_data_loader
from modeling.sync_batchnorm.replicate import patch_replication_callback
from modeling.deeplab import *
from utils import SegmentationLosses
from utils.calculate_weights import calculate_... | [
"609431036@qq.com"
] | 609431036@qq.com |
6986e4a3aefa6b38a25901843b1e0235afa0a0f9 | f99a238019b2c6344b310ffa7b1cad74f696a34c | /app/configurations/serializer.py | 7eaafc21b05ce0dbd4d6528fda55b3229604ea8d | [] | no_license | alexandrealfa/Medicall_Api | b4df47afbb56eae0d4be0d53fd9859dbc57b246b | 193263f72d86e839286d2de4a37fc47925c199f6 | refs/heads/master | 2023-04-05T23:06:21.194557 | 2021-04-27T15:42:49 | 2021-04-27T15:42:49 | 360,715,381 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | from flask import Flask
from flask_marshmallow import Marshmallow
ma = Marshmallow()
def init_app(app: Flask):
ma.init_app(app) | [
"Profissional@alexandrealfa.com"
] | Profissional@alexandrealfa.com |
97ca3f7c7b2929ed35618e50cc05f7800801eb49 | 4c6927247a3a5fcc73d6101a3cb905f85f03c7a8 | /Models/train_classifier.py | 8088da0f280d084f9ed4330a493c7e2d2106351b | [
"Unlicense"
] | permissive | PZebarth/Python-ML-Pipeline | 2c0ca9ea4b44b388b0ba83f44a9653f5967fa32e | b12b32db850c95298b225638f7a32e54e5d1221f | refs/heads/main | 2023-02-10T05:34:53.559108 | 2021-01-05T19:18:28 | 2021-01-05T19:18:28 | 325,661,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,565 | py | import sys
from sqlalchemy import create_engine
import pandas as pd
import nltk
nltk.download(['punkt', 'wordnet', 'averaged_perceptron_tagger'])
from nltk.tokenize import word_tokenize
from nltk.stem import WordNetLemmatizer
from sklearn.pipeline import Pipeline, FeatureUnion
from sklearn.feature_extraction.text impor... | [
"noreply@github.com"
] | noreply@github.com |
7c1474662eb7c545cc6e3b85fcff298c9b0e3059 | 9ec5cf9f52ff107ca4596629d193718d3082ad9a | /user_interface.py | becd87cd17a8adfe48f3ef749918162b4ce039bf | [
"MIT"
] | permissive | rnandon/RPSLS | 28672af059c2fe11c7862bf97fe41cbb8a2414f4 | d70581e3abd6c30c3878bb509a9bef5e25a83619 | refs/heads/main | 2023-06-30T19:31:21.954791 | 2021-07-21T14:10:18 | 2021-07-21T14:10:18 | 386,705,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,448 | py | ### IMPORTS
### ================================
from time import sleep
# User Interface class: Handles all interactions with terminal and user
class User_Interface:
### INIT METHODS
### ======================================================================
def __init__(self, menu_width=80, o... | [
"ryan@ryannd.com"
] | ryan@ryannd.com |
e34031ead30b061df8ad2a49abc53d039f59b9a8 | 3ddf743c71a63ab50f05585bcaeb1beb616c7952 | /bims/_struct.py | 8d77d6ff4cd903e6f0cb9e86c4b06022563c9a4e | [] | no_license | lyreal666/pythonNotes | c75ef715243777f403eef36bb200641d046ca439 | 817a596a002f8d7dee14846fb7c4c089fb0224ee | refs/heads/master | 2020-03-18T09:09:40.879883 | 2018-06-07T15:50:55 | 2018-06-07T15:50:55 | 134,547,817 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,874 | py | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
import struct
import base64
__author__ = 'Ly'
'''
使用 struct 模块获取二进制字节字符
BMP格式采用小端方式存储数据,文件头的结构按顺序如下:
两个字节:'BM'表示Windows位图,'BA'表示OS/2位图;
一个4字节整数:表示位图大小;
一个4字节整数:保留位,始终为0;
一个4字节整数:实际图像的偏移量;
一个4字节整数:Header的字节数;
一个4字节整数:图像宽度;... | [
"2713151713@qq.com"
] | 2713151713@qq.com |
8867f39a15ecd8cd0dd71e88553af2701a2d68cf | afe99c7c6130c69ddf9fc5a648dca362e0d246df | /helloFlask.py | 3fab0e62835b0b087ba62d46a4340e9cb306e0b0 | [] | no_license | mrscorrigan/helloFlask | 6603e752800146b3199bb36011e08b3058e36281 | 8b98a8d32cd346f0fbc6d6140eb03c14fbb00e62 | refs/heads/master | 2021-01-11T00:14:26.807894 | 2016-10-11T13:33:03 | 2016-10-11T13:33:03 | 70,572,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 570 | py | from flask import Flask, render_template
app = Flask(__name__)
countries = [{
'Country' : 'Ireland',
'Capital' : 'Dublin',
'Population' : '4.5 million'},
{'Country' : 'France',
'Capital' : 'Paris',
'Population' : '60 million'},
{'Country' : 'England',
'Capital' : 'London',
'Pop... | [
"stephen.corrigan@live.co.uk"
] | stephen.corrigan@live.co.uk |
fb697305a58694c4deb40e0b22f339d6d2a99677 | 25e7b6238bb4b5b219dabd019b5db74c87e7b09a | /quantist3/ok/tests/test_change_data_form.py | 04d051361f1ee3306e5c66b823105a79ac22a1f0 | [] | no_license | pan-cai/quantist3 | 33976db1e1780db992334f34fdecf7bf952f2908 | 7cf71c4a64704cb00c0457ca56729d020a0f7739 | refs/heads/master | 2021-05-05T17:06:25.161287 | 2018-01-20T16:38:55 | 2018-01-20T16:38:55 | 117,344,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | # -*- coding: utf-8 -*-
from unittest import TestCase
import matplotlib.pyplot as plt
from sklearn.preprocessing import MinMaxScaler
import seaborn as sns
import pandas as pd
import global_list as gl
class TestChangeDataForm(TestCase):
def test_forex_basic(self):
data = gl.TEST_FOREX_XAUUSDD_DATA
... | [
"liupan8910@163.com"
] | liupan8910@163.com |
172e64c35f84f0536cb29864b0cfe3bec9409520 | 768f5f74ef4fbb03cf6d0e052b18b0775e0f1250 | /node_modules/socket.io-client/node_modules/ws/build/config.gypi | 12d98e954983376d9d8db4b1f7960c0e2ee61f2d | [
"MIT"
] | permissive | gnanagowthaman/SailAngularzur | f6ca1f3ff9805a5e8eba99fec04b1beb32f8fbf7 | 90e2953c3f0f05c4aad97c1604261ae84ee27e90 | refs/heads/master | 2020-03-12T16:23:22.843392 | 2018-07-07T13:42:03 | 2018-07-07T13:42:03 | 130,714,891 | 0 | 0 | null | 2018-07-07T13:42:04 | 2018-04-23T15:05:48 | null | UTF-8 | Python | false | false | 5,254 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"coverage": "false",
"debug_devtools": "node",
"debug_http2"... | [
"gnana@vahaitech.com"
] | gnana@vahaitech.com |
bfe8e4bc295bbf5a06577105e22905e15b024ebe | 1aec3c93eaa1fc271ea80141a3a41a24cd60c8d9 | /mcrouter/test/test_loadbalancer_route.py | 854b6970f6db6a6b80bfcb4620c6a999a5ebd5a3 | [
"BSD-3-Clause"
] | permissive | boboozy/mcrouter | 810859b997ea2c687c67723a3ad94aa88e93b746 | d78f599bd3887a87d5785422a25e3ac07b0de169 | refs/heads/master | 2021-07-25T09:52:09.175808 | 2017-11-04T01:02:51 | 2017-11-04T01:11:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,743 | py | # Copyright (c) 2015-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
from __future__ import a... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
a8988a72dbe29d4bb33b7047b87fdca681431144 | 0cdf1a68a2c92fccb9bee72caded43bd529d19fa | /myblog/bin/easy_install-3.6 | ecf6cebedf88a1b974e412782c2a044b8072ea6a | [] | no_license | nicolett85/momlife | 9a0fb0660d0be904a6118d6cb32ff609a7900ac5 | a6caf8e5148daef6a5d0b62b240aa2bbee53681d | refs/heads/master | 2020-04-21T08:20:36.887276 | 2019-03-11T18:23:04 | 2019-03-11T18:23:04 | 169,416,734 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | 6 | #!/Users/nim/Momlife/myblog/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"nicole.melzer1@freenet.de"
] | nicole.melzer1@freenet.de |
15c9096c932868854571f4061ed0c3a68eec026e | 6efc2eb23678741263da7ac6bd868a9f3a37d38b | /01.stock_investment/05.chart_analysis/test_boto3/test_s3_download.py | 363a8247b52c0222ee245d335c3d2c697ee9f4c1 | [] | no_license | predora005/business-research | c6272b129353a302673cf8a13c1629b5ade4a50e | 96743cc6a0b592c87e6d0f2de341fc3bbb3ef3b1 | refs/heads/main | 2023-06-18T08:08:24.537951 | 2021-07-22T04:19:09 | 2021-07-22T04:19:09 | 314,985,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,270 | py | # coding: utf-8
import boto3
import tempfile
##################################################
# メイン
##################################################
if __name__ == '__main__':
BUCKET_NAME = ''
OBJECT_NAME1 = 'dir1/file1.txt'
FILE_NAME1 = 'file1.txt'
OBJECT_NAME2 = 'dir1/file2.txt'
FILE_NA... | [
"46834065+predora005@users.noreply.github.com"
] | 46834065+predora005@users.noreply.github.com |
f0e7916ceda6be72c1bab7f4e085da19a24d89ff | d8a50cbc09cef1c99ba1b2d9b3c2d90502ffd2c8 | /Demo/app.py | c8b6217d5693a46a874f1066cf71b9b73cb05773 | [] | no_license | NgTuanLoc/Melbourne-Housing-Prediction | 82466bf72418600a8e7517e62b6e408602b30a5d | b322d508fcbe010397930bd970333106b8882980 | refs/heads/master | 2023-04-05T04:57:04.602587 | 2021-04-20T15:25:01 | 2021-04-20T15:25:01 | 359,858,596 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,553 | py | import numpy as np
import pandas as pd
from flask import Flask, request, jsonify, render_template
import pickle
from model import SVM, RF, KNN, full_pipeline, data, features, test, SVM_Grid, KNN_Grid, RF_Random, convert
app = Flask(__name__)
@app.route('/index')
@app.route('/')
def home():
return r... | [
"18521011@gm.uit.edu.vn"
] | 18521011@gm.uit.edu.vn |
a98daa0410363b639ee81fc77a48ba3c678abf66 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/insights/get_guest_diagnostics_settings_association.py | 3440cdd68c76aa4250f607aaf13bbb8ba2ffb7dc | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,562 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__a... | [
"noreply@github.com"
] | noreply@github.com |
59fe0e859dc6987503f7f78594e9789a09d02ae2 | cc60064828984edca97af87427159981e89f582d | /torch/_dynamo/output_graph.py | aee9bfebcf4d9f2f436a509da52fcbe1f879468d | [
"BSD-2-Clause",
"LicenseRef-scancode-secret-labs-2011",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | d4l3k/pytorch | fdd28e089aa77c1cd897da02c9dd765d53f5ab05 | 11890156e7d10d1fb72c41a38a1b94fc27004d2b | refs/heads/master | 2023-04-16T01:22:23.749295 | 2023-04-04T13:09:25 | 2023-04-06T01:51:10 | 153,366,388 | 0 | 0 | NOASSERTION | 2018-10-16T23:14:39 | 2018-10-16T23:14:38 | null | UTF-8 | Python | false | false | 34,350 | py | import collections
import copy
import functools
import itertools
import logging
import operator
import re
import sys
import traceback
from dataclasses import dataclass
from typing import Any, Dict, List, NamedTuple, Optional, OrderedDict, Set, Union
import torch._guards
import torch._logging
import torch.nn
from tor... | [
"pytorchmergebot@users.noreply.github.com"
] | pytorchmergebot@users.noreply.github.com |
2c198ce9caa80d3848e36c87c340082b71dfce04 | 4d37628a27c5a50a70fa06f78be346223c37ade0 | /jobs/migrations.py | 88f61681fe41fbe0da93397de6760842a9ab4e57 | [
"MIT"
] | permissive | vinissimus/jobs | 93dbc0fd2c755b63d685165996b27a260e5e367c | 6e15749465f7da44e4dc0ad2f520ea6f7fbb67fe | refs/heads/master | 2023-01-01T01:29:50.332671 | 2020-10-23T15:27:49 | 2020-10-23T15:27:49 | 281,219,465 | 7 | 0 | MIT | 2020-10-23T15:31:47 | 2020-07-20T20:30:13 | Python | UTF-8 | Python | false | false | 1,978 | py | from .utils import setup_stdout_logging
from pathlib import Path
import asyncio
import asyncpg
import glob
import logging
import sys
import typing
logger = logging.getLogger("jobs")
current = Path(__file__)
def get_migrations_path() -> Path:
return current.parent / "sql"
def get_available():
files: typin... | [
"jordic@gmail.com"
] | jordic@gmail.com |
88cd8b0357888139ff786f741b6c8b37d83347f8 | 85ba5ef5e07b2afc1f043448fa99922f95c4051f | /newproject/mainapp/migrations/0005_auto_20201031_1120.py | 11fa3ca10c01884771561faf1f41f726f0f765b8 | [
"Apache-2.0"
] | permissive | Floou/new-django-project | 62367a7490b162d5f17360005a90f53dcf8ff810 | b16af7b1d75ab32a5c18c406b965e13af4a465b5 | refs/heads/main | 2023-01-16T05:40:52.558224 | 2020-11-24T10:22:46 | 2020-11-24T10:22:46 | 305,136,987 | 0 | 0 | Apache-2.0 | 2020-11-26T10:33:49 | 2020-10-18T15:45:38 | Python | UTF-8 | Python | false | false | 3,144 | py | # Generated by Django 2.2 on 2020-10-31 06:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mainapp', '0004_auto_20201030_2245'),
]
operations = [
migrations.RemoveField(
model_name='match',
name='tool',
... | [
"holygalaxy444@gmail.com"
] | holygalaxy444@gmail.com |
eec8945dbcbb6005896f2f79e0af6bfef503477a | 7d73f11e797e1cc5eaed09a49c0e5fa3fc505242 | /sess/Kwant.py | 650ca558dfa043b72ca17500dd48fffb51dd06ff | [] | no_license | philetus/heks | 2596a702804c12b7b07978f5aa3be60cf9fd66c5 | 6844c188b4602e59e11dfa240b0b31505bb32f97 | refs/heads/master | 2021-01-10T20:07:47.361066 | 2013-12-18T21:04:20 | 2013-12-18T21:04:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | from Gleff_s import Gleff_s
class Kwant:
"""container for one or more leeff nods representing a quantity
"""
def __init__(self, rent):
self.rent = rent
self.ked_s = []
self.esy_leeff = False
self.trgr_d = False
# default and acceptable children
... | [
"philetus@gmail.com"
] | philetus@gmail.com |
b77fb5f005efdd5c4f2ca65558fcaf8e4c8faa64 | c09f257d720201e46f78cd2b6a8341cb6068b18f | /admtooCore/migrations/0010_userclass_group.py | 7cbc3e80291e87303663c0961bb2ebfdff3c356b | [] | no_license | sxpert/admlabo | 53010e37c4af19dbed8e4e54ecf44314c8978ddd | 08c331087febce50a564da6b27dcd778c1626353 | refs/heads/master | 2021-01-11T06:52:45.883845 | 2017-06-01T11:57:45 | 2017-06-01T11:57:45 | 71,981,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('admtooCore', '0009_newuser_os_lang'),
]
operations = [
migrations.AddField(
model_name='userclass',
... | [
"raphael.jacquot@obs.ujf-grenoble.fr"
] | raphael.jacquot@obs.ujf-grenoble.fr |
174155d348b686c6c3722940f778241c84ea97ad | 1a824a3e0a1d9969686f9d7783ba6b652d813e89 | /main.py | 160116be674b7171301545c2f68b3400f48f5ef1 | [
"MIT"
] | permissive | murilocg/ActivityAnalysisOfCodeReview | 282db5675fded29f96118cd605e6af86d28cfd6f | ad0f14bf93838e7ec4e6204a6361310c119c4bb0 | refs/heads/main | 2023-03-29T22:53:26.159007 | 2021-04-11T02:24:14 | 2021-04-11T02:24:14 | 354,158,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,316 | py | import app.extract_data.process_repositories as process_repositories
import app.extract_data.process_pull_requests as process_pull_requests
import app.report.create_report as create_report
import app.filter_data.filter_pull_requests as filter_pull_requests
import os
def main(repo_first, repo_limit, pr_first, token):
... | [
"murilo.costa@dtidigital.com.br"
] | murilo.costa@dtidigital.com.br |
f80e0eb67f0790a4fdf274aeb6c73eb6e9eec19b | cdc996370837c00003296556afdb33e2f2fee884 | /devel_scripts/launcher.py | 5237995d7e1aaac822ae3a4d546bf7b117644b25 | [] | no_license | capitaneanu/borunte_robot | 1d4f14aadb2aa9e041ea0fdccc85d424cf155fb2 | 85e8765cbfae879f297c5254733a2dea48daeba0 | refs/heads/master | 2022-09-15T03:09:14.062484 | 2020-05-20T17:39:01 | 2020-05-20T17:39:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,218 | py | # -*- coding: utf-8 -*-
import os
import shlex
import sys
import time
TIMEOUT = 1.0
processes = [] # type: List[sh.RunningCommand]
class ProgramTerminated(Exception):
pass
def check_pid(pid):
""" Check For the existence of a unix pid. """
try:
os.kill(pid, 0)
except OSError:
retur... | [
"mail@roessler.systems"
] | mail@roessler.systems |
1fcab9c53a7ede0ecb7dfb6ee6e2ec6b84a8d078 | 0f44be0680ccbc2f8f96abfe97f5d1a094cd6e98 | /erokov.py | 494d719d07af47089ded91dc77709f24a452c75e | [] | no_license | kimihito/erokov | f75bf3199531af17a700dac854f00df19b59d3c1 | 32390edbade3d84f8be87367654ff1f6c229ca62 | refs/heads/master | 2016-09-05T23:20:41.926046 | 2012-08-27T10:33:11 | 2012-08-27T10:33:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,019 | py | #!/usr/bin/env python
# coding: utf-8
#AVのタイトルをマルコフ連鎖で作るスクリプトを書いてます
import random
import MeCab
def wakati(text):
t = MeCab.Tagger("-Owakati")
m = t.parse(text)
result = m.split(" ")
return result
if __name__ == "__main__":
filename = "title_sort_uniq.txt"
wordlist = []
src = open(filenam... | [
"tatsurotamashiro@gmail.com"
] | tatsurotamashiro@gmail.com |
0b95e3e1bbb3f55d15b1c6c094ba74b27204d4e7 | 1a5bdc323b1d13022cabdfe2519207b95d152448 | /h_computation.py | 1fcbb6e7a29abb6a1d305c3b39926951a763200f | [] | no_license | sampathgunasena/hydrogen_computation | 04467b83720970afb4aaad986b7b67e2104cdcea | b45dea4d32942a8f016f6a10086a540fcc26d371 | refs/heads/master | 2023-01-24T09:58:16.361907 | 2020-12-11T16:32:14 | 2020-12-11T16:32:14 | 320,627,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,160 | py | ########################################################################################
#
#script that solves schrodinger equation via generalised eigen value decomposition method
#
#######################################################################################
import numpy as np
from scipy import linalg
impo... | [
"sampathprasadg@gmail.com"
] | sampathprasadg@gmail.com |
624e6493ba366cde8a495ba0effb21374417bbd1 | 4d0213e588149b9fa86fbe35faea8657052d9254 | /setup.py | 27b1a3f4ad3e7c71aeb236803df30c35aed1ff6d | [
"Apache-2.0"
] | permissive | Pyligent/gen-efficientnet-pytorch | 1e492dec87fa33458e452472c65ed0f7afd1a876 | b3bc163478737924f508978a6f0c96e07046e025 | refs/heads/master | 2020-12-14T15:51:36.930259 | 2019-10-30T22:31:10 | 2019-10-30T22:31:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,688 | py | """ Setup
"""
from setuptools import setup, find_packages
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
exec(open('geffnet/version.... | [
"rwightman@gmail.com"
] | rwightman@gmail.com |
1a936a9e7953688d553a7624af7c366260d7accf | e9946f265bf832d94f4af6e2315a51a2bba30e30 | /node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build/config.gypi | 3fcf9d17ffc9169de57e8f73a00108318176f919 | [
"Apache-2.0",
"MIT"
] | permissive | scharton/swagwise-skeleton | 7882806bc0db1f548c02680e570391f9824a95e0 | 1d50baab1215825b39980f4c4260ed028ca20cff | refs/heads/master | 2021-01-21T00:35:51.575782 | 2014-07-31T04:07:05 | 2014-07-31T04:07:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,031 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"clang": 1,
"host_arch": "x64",
"node_install_npm": "true",
"node_prefi... | [
"scharton@gmail.com"
] | scharton@gmail.com |
85f5723a1b5f6ace5827d42b8a4f999504cb1d52 | 92e3840c3b799a8dffffa2aa5fc3ee9c4c3e3bea | /src/apps/video_tags/classification/en_vtag_process.py | 58b8abccecb8387790fdc8ab9f5d4b6aab2f13de | [] | no_license | ZouJoshua/nlp_server | a5c1de32b1fcce769fd70af71425897f0dd03abf | ef53a3dc5856aff5e6ba8ad449f0b21962acbd80 | refs/heads/master | 2022-12-05T14:51:45.816542 | 2019-09-19T10:32:54 | 2019-09-19T10:32:54 | 173,694,625 | 0 | 0 | null | 2022-11-21T21:38:00 | 2019-03-04T07:24:12 | Python | UTF-8 | Python | false | false | 19,874 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@Author : Joshua
@Time : 2019/3/4 12:26
@File : predict.py
@Desc : 印度英语视频tag处理
"""
from pyquery import PyQuery
import re
import logging
import json
import requests
from nltk import ne_chunk, pos_tag, word_tokenize
from nltk.tree import Tree
class EnProces... | [
"joshua_zou@163.com"
] | joshua_zou@163.com |
e3fccd35bcac0946969cbb7de0a9f8057ab2c8ee | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/BsPlanInviteConfig.py | f6e1ed05d6ca34d93fd5c47f5c13a9c375717bbe | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 1,362 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class BsPlanInviteConfig(object):
def __init__(self):
self._end_time = None
self._start_time = None
@property
def end_time(self):
return self._end_time
@end_time.s... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
44a5e08d9cac25512e3bde356d613603a2b8634d | efbaa5ed71ff8d18eb4634554ade11388eab354d | /pytenable-tio-agent-search.py | 0e84276a17b3e5f4739c1ae78b1ea458ef091c5c | [] | no_license | ThisTooShallXSS/tio_automation | 9595f19450f97e13c125a8f620f9b52cd9c5497f | e1a607d1c7eea2b58b258cd37561a8a963187918 | refs/heads/master | 2022-09-18T12:59:31.719196 | 2022-09-07T15:36:59 | 2022-09-07T15:36:59 | 127,326,575 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,020 | py | """ --------------------------------------------------------------------------------------------------------------------
PyTenable - Tenable.io Search Agent Details by Agent Name
Before you can run this, you must generate an API Key that can be used for authentication.
You can generate the API key using these steps: ... | [
"dhewitt@tenable.com"
] | dhewitt@tenable.com |
f7a62a6bfdeea9f804803f5f08804e7de81f0233 | 6e0b343068262087c683df6104b42f39121d4237 | /tagger.py | ec6b8ec73497d38319eaeb0d539429446b007bb8 | [
"Apache-2.0"
] | permissive | jay-booker/tagger | 15a2d5fb77ac0395b40a451649e6aac2b29de485 | db11745e7692b502ba13b07429c0877272e2b90f | refs/heads/master | 2020-12-30T15:28:58.338207 | 2017-05-13T01:34:07 | 2017-05-13T01:34:07 | 91,140,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 915 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import os.path
from shutil import copy
from numpy import *
def taggerTest():
classList=[]
for i in range(1,10):
file_path = ur'blog/%d.txt'%i
docList=open(file_path).read() #打开文本文件
classList[i]=raw_input()
if classList[... | [
"2621356581@qq.com"
] | 2621356581@qq.com |
6cbf68cfefcf531b80bbf4328d132845e0942789 | aa52f9f3a4610ea80e79f975d59f96b0ceb0a964 | /users/migrations/0003_remove_user_username.py | 0c338afcb3c1db7fee2a82aa4c5d6ecf268d8ea9 | [] | no_license | FaisKhan/hostipalCRM | a57b991ff293b1147fca7276d00db51660f12ad9 | 30243ec4866172ce638c8752b74c566975b71b0f | refs/heads/master | 2023-03-17T12:35:02.284249 | 2021-03-21T19:34:58 | 2021-03-21T19:34:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | # Generated by Django 3.1.7 on 2021-03-21 18:37
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('users', '0002_auto_20210105_1952'),
]
operations = [
migrations.RemoveField(
model_name='user',
name='username',
),
... | [
"pankajmandrai22@gmail.com"
] | pankajmandrai22@gmail.com |
8442d347a65050e0a2f5b3af4c5780d32da6872a | e1c75b98e7dd5e7e07ee6171c76366b7f0b202a7 | /l4project/exercises_system_project/exerciser/tests.py | 7db201187334d06150f6511115ae4a5cc4bf165c | [] | no_license | emivulpe/weave_novo | f318bdf902faa58949e30ea0e3c9b263cdc38021 | 6939937538efcecc2c7e969a995eb2c63efba93b | refs/heads/master | 2021-03-12T22:18:48.868267 | 2015-03-27T17:08:51 | 2015-03-27T17:08:51 | 32,998,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,133 | py | from django.test import TestCase, Client
from exerciser.models import Application, User, Teacher, Step, Group, AcademicYear, Student, Question, Option
from django.utils import timezone
from django.core.urlresolvers import reverse
from django.conf import settings
from django.utils.importlib import import_module
#import... | [
"emivulpe@abv.bg"
] | emivulpe@abv.bg |
03213cca6b6982658fae655340fce5d5c656b08d | 1d88f6dcd0689c8b7a5f8e42cadac8f46837a353 | /database_setup.py | 21d18dfba463e6069a54919aa56ba6626cfb5e89 | [] | no_license | Aarthyravi/Item-catalog | 2d61f1b1b1eaa65e5a14cf0ae598d474733ffb5f | 0bb1df314295c6ae8585f3f7fc7b996367bf9e84 | refs/heads/master | 2021-01-20T14:50:04.246072 | 2017-06-12T19:54:38 | 2017-06-12T19:54:38 | 90,681,271 | 2 | 1 | null | 2017-05-10T16:38:55 | 2017-05-08T23:25:17 | Python | UTF-8 | Python | false | false | 1,744 | py | import os
import sys
from sqlalchemy import Column, ForeignKey, Integer, String
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relationship, backref
from sqlalchemy import create_engine
Base = declarative_base()
class User(Base):
__tablename__ = 'user'
id = C... | [
"noreply@github.com"
] | noreply@github.com |
3ecd4acf486810b559bb1eb756b9b32e70f99558 | f05084e33f189c3ca16982a6704fa808831fa71a | /yayo/cart/views.py | 5009693a7231de1285c2d32c1e33dd096dbdca83 | [] | no_license | willyowi/Yayo-maluku-shop | f7581ae4c5ca0a1dc6a9daa92701d0965d27914c | 7c8844bd3cbd97fdac01f991b45ca55b5f419c38 | refs/heads/master | 2021-01-06T16:06:36.397007 | 2020-02-18T15:20:46 | 2020-02-18T15:20:46 | 241,390,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 890 | py | from django.shortcuts import render,redirect,get_object_or_404
from django.views.decorators.http import require_POST
from shop.models import Product
from .cart import Cart
from .forms import CartAddProductForm
# Create your views here.
@require_POST
def cart_add(request, product_id):
cart = Cart(request)
produ... | [
"wilsonowino1@gmail.com"
] | wilsonowino1@gmail.com |
78af662df05acb6737539f48c49fead8f92cfc09 | d59267485f570cf6b2150e54855b481c43f9e7f7 | /src/leave_tutor_maker.py | e2c86286243f15d48e092787f61baa08b2f91ab1 | [
"MIT"
] | permissive | NKUST-ITC/NKUST-AP-API | d22d044884862fa48f37dec377801d4865807a3b | 96b5961170fb99f87490be9abdf869a8556c25d3 | refs/heads/master | 2021-06-18T14:31:20.491382 | 2021-01-09T02:58:40 | 2021-01-09T02:58:40 | 188,676,351 | 7 | 6 | MIT | 2021-03-31T19:08:04 | 2019-05-26T11:49:30 | Python | UTF-8 | Python | false | false | 844 | py | from utils.leave_tool import teacher_list
import json
if __name__ == "__main__":
campus_list = [
{'id': 1, "campus_name": '建工校區'},
{'id': 2, "campus_name": '燕巢校區'},
{'id': 3, "campus_name": '第一校區'},
{'id': 4, "campus_name": '楠梓校區'},
{'id': 5, "campus_name": '旗津校區'}
]
... | [
"wow@taki.dog"
] | wow@taki.dog |
2a19cd96099adcbad5170c2df54d9cead8f36f92 | 043a2ac159574b58beb2ca8f574d22dd00ffb9ec | /message.py | 1022b2b8a456bb2b22fd47fefd3545daa12bc0ed | [] | no_license | shirleyng92/shirley-py18 | f963319d07d9d6ccbc742111bbc0056706e268a5 | 3f142cc216db6759c49be35e656e38c51a1572b2 | refs/heads/master | 2020-04-03T14:19:28.906846 | 2018-11-23T01:57:17 | 2018-11-23T01:57:17 | 155,317,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Oct 30 12:04:20 2018
@author: shirley.ng
"""
message = "Test Message"
print(message.lower())
print(message.upper())
print(message.swapcase()) | [
"kah.shirley@gmail.com"
] | kah.shirley@gmail.com |
9f2c888cefcb36f53f24c59107c582549cd9639f | ed56e7d42fc4ed4cbbb6c8d987a3de01b09b19d7 | /mmpdblib/fragment_io.py | 65ed409752943039634c6e887b6d0b9c3da2ebc9 | [
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | rnaimehaom/mmpdb_v2 | b3b5a9d6c44bdbe6ab70254bd61acfa85d50e945 | b9fec0a21e9c3d5ad26fee938aa58a1467b72b73 | refs/heads/main | 2023-07-17T08:09:07.062883 | 2021-08-16T13:01:36 | 2021-08-16T13:01:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,575 | py | # mmpdb - matched molecular pair database generation and analysis
#
# Copyright (c) 2015-2017, F. Hoffmann-La Roche Ltd.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must ret... | [
"seritaka@gmail.com"
] | seritaka@gmail.com |
6ebc2e58e5cbf4e6730008505a1a7ceab1780374 | f497c8c504334f69f5569b48ef1bb5cc0305d009 | /chapter03_SyntaxBestPractices_abovetheClassLevel/skip__init__.py | 6e2e97564f6459d67cc29a3eccf5946f81b505c4 | [] | no_license | gloryfromca/ExpertPythonProgramming | 8c70df8ac62ce8547934322b178b69455c73bf18 | 50c14847182c29d5323b03f9d8b3ef1288084a38 | refs/heads/master | 2020-03-07T03:26:06.019407 | 2018-03-30T12:20:33 | 2018-03-30T12:20:33 | 127,235,239 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | class NonZero(int):
def __new__(cls, value):
return super().__new__(cls, value) if value != 0 else None
def __init__(self, value):
print("value is: " + str(value))
print(NonZero(1))
print('=============================')
class NonZero(int):
def __new__(cls, value):
return value if ... | [
"huizhang1995@gmail.com"
] | huizhang1995@gmail.com |
6b1a01203f4a242049e9bd1a1259b9c32fc96e5b | dd3e3d677b3234524860dce3e92aa256b20bd725 | /updated_web_sever/src_new/manage.py | 1827f5d696e03eba91733261aeb9697847a33cc7 | [] | no_license | trabelsim/SKSR | 3e042a5b4ccf46920ae13e3f0569e43ac1e5d5e1 | 81184e02e471af3b2b9819f2603009a38a105c5d | refs/heads/master | 2022-11-12T05:19:36.857571 | 2020-06-25T10:37:34 | 2020-06-25T10:37:34 | 255,897,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 645 | 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', 'sksr.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
rais... | [
"noreply@github.com"
] | noreply@github.com |
a0de098b7fb337afcf4e32da975420b2f2bc696d | 343463189f96335e565b6a3a2c6849561b7bd2ac | /pdw_008_get_full_inherited_dict.py | a3ded763e82c03ee5f4d12ce2d495306ed383d7b | [] | no_license | acbalanza/PythonDoesWhat | 3b5831921fc9c6ec879926730d128ebabcef453b | 70547163b4a8171cada6415910b225fc823af621 | refs/heads/master | 2021-05-26T14:33:46.427022 | 2013-08-29T06:55:34 | 2013-08-29T06:55:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 988 | py | pdw_id = 8
title = "Get full inherited __dict__"
author = "Kurt"
pub_date = (2010, 12, 6, 10, 57)
tags = ('dict', 'inheritance')
"""
``__dict__`` (or ``vars()``) is great, but sometimes you want to get more
than just a given instance's members. For instance, in:
"""
class A(object):
testA = "A"
tes... | [
"makuro@gmail.com"
] | makuro@gmail.com |
a30781f84b1feca4e4a793f1a648138952c65940 | b2cefb7a2a83aa93ee1b15a780b5ddf6c498215b | /examples/nlp/duplex_text_normalization/data/data_split.py | 3b053a34419980bc0351c55707a288cbdab02f16 | [
"Apache-2.0"
] | permissive | VahidooX/NeMo | bfde8c9b48c818342a9c6290fb9dee62fafeca38 | 866cc3f66fab3a796a6b74ef7a9e362c2282a976 | refs/heads/main | 2023-07-23T19:13:39.948228 | 2022-04-29T21:51:54 | 2022-04-29T21:51:54 | 227,733,473 | 1 | 2 | Apache-2.0 | 2022-09-15T15:30:13 | 2019-12-13T01:55:21 | Jupyter Notebook | UTF-8 | Python | false | false | 5,238 | py | # Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. 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 requ... | [
"noreply@github.com"
] | noreply@github.com |
0218e149fe0ab10e2548c94f6a93ff8e3d23e1de | 227807bb34a91b94e4c832ae14bb21fe6297b456 | /src/python/layers/neuralode.py | 9656da6157bc8a11c7d9ad4cd2fe5b4038275469 | [] | no_license | connorzl/DeformCoSeg | 386af79704d8ceb1d6da23670b8ec7e1b10f61d9 | 981d001212eb3446fcee606e3a5ada3196d17e3c | refs/heads/master | 2023-02-05T01:12:05.305998 | 2020-09-08T00:07:37 | 2020-09-08T00:07:37 | 288,631,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,904 | py | import torch
from torch import nn
from torchdiffeq import odeint
import numpy as np
class ODEFunc(nn.Module):
def __init__(self):
super(ODEFunc, self).__init__()
m = 50
nlin = nn.ReLU()
self.net = nn.Sequential(
nn.Linear(4, m),
nlin,
nn.Linear(m... | [
"hjwdzh@gmail.com"
] | hjwdzh@gmail.com |
540590ef128c7fc98cb5a28c475cbf774c51ff24 | d96787f92bd86c8d8bcf01a4e7ec8f7feec24194 | /kattis/nizovi/solution.py | 9c70b792c4c93471dd6c04868b1338089c92b9f2 | [] | no_license | iandioch/solutions | 133cbc3af58fadcde0b2e981fb0e7d05801070a7 | 8b3e458b3c01179ddf776bfbb897f263f22f3693 | refs/heads/master | 2023-04-09T03:39:16.952817 | 2023-03-15T20:00:53 | 2023-03-15T20:00:53 | 47,693,495 | 48 | 40 | null | 2019-10-22T14:52:59 | 2015-12-09T13:36:55 | Python | UTF-8 | Python | false | false | 721 | py | s = input()
curr = ''
indent = 0
lines = []
for c in s:
curr += c
if curr == '{':
lines.append('{}{}'.format(' '*indent, c))
curr = ''
indent += 2
elif curr.endswith('}') or curr.endswith('},'):
d = curr.find('}')
if len(curr[:d]) > 0:
lines.append('{}{}'... | [
"iandioch11@gmail.com"
] | iandioch11@gmail.com |
a52afe00239a068bf21f59ef14158190e2601cab | ea7d223d83134f02d92d7771a02a64196fbcbdc7 | /CreditCards/views/auth.py | ecc06036ac8a489b3093161a92012aa7ee7fb198 | [] | no_license | vishalkallem/Personal-Manager | 5d58864b42ee2ac97d78ebfa752ef006c8a5d36d | 0f04ae4dc5da2b54c71830257674808a8370076a | refs/heads/master | 2020-04-11T04:08:10.046578 | 2018-12-12T14:49:43 | 2018-12-12T14:49:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,322 | py | from django.views import View
from django.shortcuts import render, redirect
from django.contrib import messages
from django.contrib.auth import login, authenticate, logout
from django.contrib.auth.models import User
from CreditCards.forms.auth import *
class SignUpController(View):
def get(self, reques... | [
"noreply@github.com"
] | noreply@github.com |
744e247595723089f2db9932761d4a68b5fa65c8 | 8abcd291bb0e83457593c33aa904efaae8193778 | /activemq-mon.py | 83e45d2790ad49f50c93c7730d293a3e6d24ec53 | [] | no_license | btguys/activeMQ-mon | 4b46abce0e3b8038deff75da5dd080831c2441c8 | c60ac06e90e64b0a79af931a80ebf4aa6af0a560 | refs/heads/master | 2021-01-16T21:37:41.273862 | 2016-07-14T09:46:47 | 2016-07-14T09:46:47 | 63,322,092 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,597 | py | #!/bin/env python
#-*- coding:utf-8 -*-
__author__ = 'qiuyongjie'
import string, xml.dom.minidom, sys, urllib2, base64, json, time, socket
ip = "127.0.0.1"
endpoint = socket.gethostname()
step = 60
ts = int(time.time())
tag = ''
keys = ('size','consumerCount','enqueueCount','dequeueCount')
request = urllib2.Request... | [
"yjqiu@cctechhk.com"
] | yjqiu@cctechhk.com |
907a3117714649a6d18e4ff188d89b213ab23196 | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /DaVinci_v39r1/tuplemaking/misidrestripping2015/runssmisidrestripping2012.py | 990ae9cec1042354b70a1ce99da16007f43cbb9e | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,035 | py | # $Id: $
# Test your line(s) of the stripping
#
# NOTE: Please make a copy of this file for your testing, and do NOT change this one!
#
##use CommonParticlesArchive
#from CommonParticlesArchive import CommonParticlesArchiveConf
#CommonParticlesArchiveConf().redirect("stripping21r1p1a")
#
#from Gaudi.Configuration i... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
2e618ec30de1abe5e786ff02bf4e9c6a5555c288 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2364/60623/305882.py | 64207e9aa3a3c85e563c2b8fdf16e3f809b357a9 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 55 | py | a=input()
if a=='100':
print(10)
else:
print(a) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
c07ea095d26e9c98fab8360a7d68827391dce5d3 | 26f7f766ef8393ad31ca620818fa5c6c630d1ec7 | /students/migrations/0011_auto_20210814_1736.py | dde06d0745a46ac8c836c84fa7e7bad46c41a385 | [] | no_license | jemgithub0418/cvs | 8621dde853edaca44cbac9d50c4a8ddab60f2ee8 | d19344391d1d097f1859b07dd342ef1516d5b8ff | refs/heads/master | 2023-07-11T23:08:57.780206 | 2021-08-16T08:13:08 | 2021-08-16T08:13:08 | 353,946,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,126 | py | # Generated by Django 3.1.7 on 2021-08-14 09:36
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('students', '0010_auto_20210814_1727'),
]
operations = [
migrations.AddField(
model_na... | [
"jeremijaredramos.gmail.com"
] | jeremijaredramos.gmail.com |
b6e7ed8e10f237b72cc2b014204ea9dd5c8549b9 | 8eb45e774eed886192f2088d0f692c3fe0c1fe3d | /test_store.py | 15bd836a3139b404a3811db0d468b887bfa99892 | [
"Apache-2.0"
] | permissive | C-EO/snapstore | cbc2e548fdb62b8194bc1d99fe7d21a4c71b7e98 | 6d54a2c491701f18ee736149c16ba3f4e3958160 | refs/heads/master | 2022-01-08T22:29:57.730413 | 2018-10-29T20:32:06 | 2018-10-29T20:32:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,797 | py | import store
import unittest
from flask import json
class StoreTestCase(unittest.TestCase):
def setUp(self):
# TODO: setup fixture data, test revision bumps
store.app.config['TESTING'] = True
self.c = store.app.test_client()
self.headers = {
'X-Ubuntu-Series': 16,
... | [
"bret.barker@canonical.com"
] | bret.barker@canonical.com |
50cdb57985ff7079984d9965a6af7e120f8fcc61 | 6d941762888f76cd55cb1efae8a3c3d1c064b76d | /dbtrigger/config/__init__.py | 747d5855e2f0a87decd0e4d84d8145ec2606cb7c | [
"MIT"
] | permissive | julienc91/dbtrigger | ac551914d34b100e7122cc3e96c91190cf51e89d | d06916a019641377bf3d45b2e8e38399643450db | refs/heads/master | 2020-03-31T18:49:24.309774 | 2018-10-28T19:42:06 | 2018-10-28T19:42:06 | 152,474,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | # -*- coding: utf-8 -*-
import appdirs
from .config import Settings
settings = Settings(appdirs.user_data_dir('dbtrigger'))
| [
"git@julienc.io"
] | git@julienc.io |
54b5ff124fe95b4e02d8269ba0f78709c44407b9 | d3aa3b4cae0db74140607e896b3e8134a83614d1 | /main.py | 181530a47064374934257761f8b9fbbcbf4de7ca | [
"Apache-2.0"
] | permissive | luosolo/SuPyPlex | 6629eff3cc442fa8d510aab721d474c7c24d77c9 | 7c7f8c8dd41c1da9eec1936549f59d7005955168 | refs/heads/main | 2023-01-04T02:43:29.510414 | 2020-10-28T21:58:56 | 2020-10-28T21:58:56 | 308,093,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | from supyplex.game import SuPyplex
from os import path
ROOT_DIR = path.dirname(path.abspath("main.py"))
if __name__ == '__main__':
game = SuPyplex(ROOT_DIR)
game.setup()
game.main_loop()
| [
"sandro.labruzzo@isti.cnr.it"
] | sandro.labruzzo@isti.cnr.it |
b02a3215d5c955daec98e2db06f5171974b90720 | 05ec80585e500eb75baade82bada8f0c5a2a76dc | /Backtracking/GenerateIP.py | 4b339410a665caec82a4815768bb4049c6a8bab4 | [] | no_license | NenadPantelic/GeeksforGeeks-Must-Do-Interview-preparation | 24477da148d4b9fe8113f669f21984d081327563 | 180c6b1bc6a4b6e1b44c409c220368b391b672b8 | refs/heads/master | 2021-01-05T19:16:22.436554 | 2020-11-15T14:39:02 | 2020-11-15T14:39:02 | 241,113,139 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,550 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Feb 25 21:19:12 2020
@author: nenad
"""
def is_valid(ip, pos,segments):
len_flag = True
# ip is not valid in form 0x e.g 121.03.22.234
if len(ip) > 1 and ip[0] == "0":
len_flag = False
# check ip length, value and if ip's part i... | [
"nenadpantelickg@gmail.com"
] | nenadpantelickg@gmail.com |
b632edb4abed10644c2eca37adee10ff3ebf2a1e | 080397d0e6d573ef6d7eb9c2bc6b1b5787cfe0d1 | /tests/twitter_learning_journal/builders/test_cache_path_builder.py | 2dfeb176343ff67367981b17880cefdbe6d09dac | [
"Beerware"
] | permissive | DEV3L/twitter-learning-journal | ecd0eb922e369b10fd6e039d652eed7078601139 | a51d22a60a3d1249add352d8357975a7f2db585c | refs/heads/master | 2021-09-20T17:27:11.157096 | 2018-08-13T11:58:34 | 2018-08-13T11:58:34 | 114,556,953 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | from app.twitter_learning_journal.builders.cache_path_builder import build_cache_path
def test_build_cache_path():
expected_cache_path = './data/pickle/tweets/test'
assert expected_cache_path == build_cache_path(sub_directory='test')
| [
"jus.beall@gmail.com"
] | jus.beall@gmail.com |
2141ff44b91cb0e955de2264973b3405ba521111 | e5dcd8f886c7db7f66446fdbcb239f1075fcdb57 | /airline/users/views.py | fc478d817399aee4373f4f75d194e5b1ff808da4 | [
"MIT"
] | permissive | avulaankith/Django-Codes | bf4f40816c6ad4d599bfa28cdfbf01a9caa508b9 | e4216f6a51b5baa745d5a0214afcaf024d048f44 | refs/heads/main | 2023-07-14T18:12:16.855718 | 2021-09-02T03:46:03 | 2021-09-02T03:46:03 | 402,280,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,055 | py | from django.contrib.auth import authenticate, login, logout
from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import render
from django.urls import reverse
# Create your views here.
def index(request):
if not request.user.is_authenticated:
return HttpResponseRedirect(revers... | [
"avulaankith@gmail.com"
] | avulaankith@gmail.com |
dc9388fcc7ecf66dabb9bc64fe98c2f689c370d6 | 20176bf4fbd8aec139c7b5a27f2c2e155e173e6e | /data/all-pratic/Anusha Koila/print_odd_num.py | d290d9c8c6e77770c4fb451217c46810fd11629d | [] | no_license | githubjyotiranjan/pytraining | 4ac4a1f83cc4270e2939d9d32c705019c5bc61c5 | 8b50c4ab7848bd4cbfdfbc06489768d577289c66 | refs/heads/master | 2020-03-19T06:22:20.793296 | 2018-06-15T20:08:11 | 2018-06-15T20:08:11 | 136,013,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | #print odd numbers
#raise exception when negtive numbers are inputted
try:
num = int(input("Enter an number :"))
except erro1:
if(num<0):
print("Negative numbers not allowed")
else:
print("ODD numbers list :\n ")
for i in range(1,num):
res=i%2
if(res!=0):
print(i)
... | [
"jsatapathy007@gmail.com"
] | jsatapathy007@gmail.com |
87a581165b5f12912053dbd78b6fc1deb72afe4c | 771f79ef8115d3f0d9efd0e2b3514bb5c8ecca8a | /AvgMark.py | da64dee9590229e34e9ea084f918a212b75bc4fc | [] | no_license | harris112/UniProjs | 031139c90ea6b99b409d72f9063160535064c48d | 87b422cc327f53535cd7029c911b040a86bc32b8 | refs/heads/master | 2021-05-15T16:55:42.366567 | 2018-03-08T09:01:46 | 2018-03-08T09:01:46 | 107,562,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | name = input('Enter student name please:')
mark1 = int(input('Enter first mark:'))
mark2 = int(input('Enter second mark:'))
mark3 = int(input('Enter third mark:'))
mark4 = int(input('Enter fourth mark:'))
mark5 = int(input('Enter fifth mark:'))
sum = mark1+mark2+mark3+mark4+mark5
average = sum / 5
print ( ' Average m... | [
"U1774154@unimail.hud.ac.uk"
] | U1774154@unimail.hud.ac.uk |
09211b6e271fa9c3294ac4db7a0b0daa4b1b7b19 | a75015a0755e1e619889dce12fcf4128e8267b01 | /irtokz/indic_tokenizer.py | 51e11c4f08aa39f8311a0bc7e39c9a6c8cbcba74 | [
"MIT"
] | permissive | ltrc/indic-tokenizer | 12ec2011359f45069067f4248145da4a3e901793 | a7b25f396e41390100ce4b2b86a7c1a6ab744afe | refs/heads/master | 2021-01-18T05:09:31.308492 | 2018-10-25T11:11:10 | 2018-10-25T11:11:10 | 43,815,728 | 3 | 5 | null | null | null | null | UTF-8 | Python | false | false | 14,712 | py | #!/usr/bin/env python
# -*- coding=utf-8 -*-
from __future__ import division, unicode_literals
import re
import os.path
class IndicTokenizer():
def __init__(self, lang='hin', split_sen=False):
self.lang = lang
self.split_sen = split_sen
file_path = os.path.dirname(os.path.abspath(__file_... | [
"bhatirshad127@gmail.com"
] | bhatirshad127@gmail.com |
0e624691d23c9e9340509f22109a49d05cecac24 | 02f6458703527b013f3d280a08fd4db897d6a9c2 | /read_lemmas_CHILDES_by_dir.py | 3a20a54187bbc7ca6e21392f615eb18770de0877 | [] | no_license | jkodner05/method | fc36b19f95c186281c10461689b066f36e8a7826 | 8f9f7ecd43199ea0d143b023527da6493d160f80 | refs/heads/master | 2020-04-23T05:27:31.508730 | 2020-01-08T01:18:32 | 2020-01-08T01:18:32 | 170,940,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,812 | py | import argparse, re, os
from os.path import basename
from collections import defaultdict
import statistics
import matplotlib.pyplot as plt
exclude_speakers = set(["CHI", "ROS", "DAV", "ARR", "DAN", "JEN"])
exclude_lemmas = set(["be","not","me","us","you","dog","house","eye","bowl","nose","finger","boot","boat","bicycl... | [
"jkodner05@yahoo.com"
] | jkodner05@yahoo.com |
e751ef226fef8f821e13fe4da35609a2cd119307 | 6b1567f9c6a98f978274750c2f96fee81362d2ea | /if语句.py | babcdd0cde8e6ae479abd22dc6facb46f852916d | [] | no_license | Cunning96/gittest | 6f843b2a517c91215a49056291d98a2fb14cbbd9 | 0aae2bcf69e3cc69b59ddc8e5c6ce96e8be54e38 | refs/heads/master | 2022-11-14T00:00:25.848656 | 2020-07-14T08:23:18 | 2020-07-14T08:23:18 | 279,516,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,301 | py | """
第五章 if语句(整合教科书(6-249行)及视频课程(253-末行))
"""
# 一、书本教程内容
# 5.1 简单if语句
cars = ['audi', 'volkswagen', 'subaru', 'nissan', 'toyota', 'geely', 'bmw', 'skoda', 'buick', 'chevrolet']
for car in cars:
if car == 'geely': # 如果遍历到的车厂为geely
print(car.upper()) # 则字母全部大写
else: # 若不是geely
print(ca... | [
"lirongji96@163.com"
] | lirongji96@163.com |
3142d5009781ba0f8c34ac388e740b211d9b0c54 | 84e419d3f4c410d4ab7ecba48bc812e1a18f2471 | /assignment1/trainer.py | 71f72cac2a066db2926f7524ea014f43f8712b55 | [] | no_license | ludvikka/tdt4265-exercise-1 | f2836858c4e1915926151fc0793f2319709ac1ca | 1e7ec7531ca5f3a6c858a36e78d744678a5ef131 | refs/heads/master | 2023-03-05T21:20:15.237629 | 2021-02-05T12:57:50 | 2021-02-05T12:57:50 | 333,704,896 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,838 | py | import numpy as np
import utils
# NO NEED TO CHANGE THIS CODE
class BaseTrainer:
def __init__(
self,
model,
learning_rate: float,
batch_size: int,
shuffle_dataset: bool,
X_train: np.ndarray, Y_train: np.ndarray,
X_val: np.ndarra... | [
"ludkasbo@gmail.com"
] | ludkasbo@gmail.com |
7a96d50e392eac40cdadc6ce8f77f3935ba7d551 | 4ee22e60f72add3993b8f5ca9cb004eec862a2ae | /PTransE/doc2vec_transformation/paths_from_PCRA_output.py | 3c367cfa6d3502c69bf92d0524a515cb8d917917 | [
"MIT"
] | permissive | darvid7/KB2E | 037a6f6563e7ad5a0aed38ed14c53fffc236680d | 589f87f1d33935c7dbeea73e1177d5d079d7e844 | refs/heads/master | 2020-03-19T16:35:07.137829 | 2018-09-01T12:06:31 | 2018-09-01T12:06:31 | 136,720,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,755 | py | import os
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("-p", "--path")
parser = parser.parse_args()
print(os.getcwd())
# PCRA_OUTPUT_PATH = "../data/train_pra_sample_1000_lines.txt"
paths = []
with open(parser.path, "r") as fh:
header_toggle = True
for line in fh:
line = l... | [
"david.anthony.lei@gmail.com"
] | david.anthony.lei@gmail.com |
e96605d4527a4551d1105f8932434a99310e65b9 | 561c590ec93131ceb58c21912a375b6e0d50bedb | /jiang_fenci/hmm_segment/segment/model.py | f02feafaf66f8f9e98368fd143fd2570a3590bb7 | [] | no_license | chuanfanyoudong/nlp_learn | 3607555e59789240afd6c4a9620cc6e678e0afb3 | 9fbb6781640ab9aba561dc2de0066a1f1e5882a0 | refs/heads/master | 2020-04-07T13:25:16.118562 | 2019-04-24T07:18:33 | 2019-04-24T07:18:33 | 158,406,684 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,045 | py | # -*- coding: utf-8 -*-
"""
SEGMENT
--------
封装hmm分词模型
"""
import numpy as np
from hmmlearn.hmm import MultinomialHMM
from jiang_fenci.hmm_segment.segment.corpus import get_corpus
__model = None
class Segment:
def __init__(self):
self.corpus = get_corpus()
self.states, self.init_p = self.get_ini... | [
"qaz3762541@163.com"
] | qaz3762541@163.com |
57188da6617341c1573abc4a7a65fe48de96e55e | 9a8d2d226560d63f0d7df2545efe26bf395db06c | /conditions.py | a3be6428a68704486084651ac18ac10fd4e995aa | [] | no_license | Fakhruddin90/python-tutorial | 49235e767dc616640a48d4bb3ca8e1b41dd4d468 | 54fc5669a1c8157985190c387c3a4137d98f6729 | refs/heads/master | 2022-12-01T06:40:46.243746 | 2020-08-13T09:37:22 | 2020-08-13T09:37:22 | 287,238,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | x = 28
if x > 0:
print("x is positive")
elif x < 0:
print("x is negative")
else:
print("x is zero") | [
"Fakhruddin90.com"
] | Fakhruddin90.com |
e5f5194a4d099c2be8675f621b9cf47c993456c2 | 762b088015430f246c2fbc8992b46d220b4d7023 | /String/intToRoman.py | 194b33c72477d4cbfc240b5bb7779a2bff68178e | [] | no_license | its-sachin/InterviewBit | 3f137f960702ea31e510b4a54386f41273e0e3c4 | 3f83bce9a4e2bc285d1a75e41e6de5122b5ed470 | refs/heads/master | 2023-06-25T09:40:06.422635 | 2021-07-23T10:33:23 | 2021-07-23T10:33:23 | 382,411,938 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | class Solution:
# @param A : integer
# @return a strings
def intToRoman(self, num: int)->str:
d = {1: ['I', 'X', 'C', 'M'], 2: ['II', 'XX', 'CC', 'MM'], 3: ['III', 'XXX', 'CCC', 'MMM'], 4: ['IV', 'XL', 'CD'], 5: ['V', 'L', 'D'], 6: ['VI', 'LX', 'DC'], 7: ['VII', 'LXX', 'DCC'], 8: ['VIII', 'LXXX', 'DC... | [
"67999058+its-sachin@users.noreply.github.com"
] | 67999058+its-sachin@users.noreply.github.com |
938eaa007e714c01f2aa6135f7480b71167d0efc | 5a3ab0a36cea526c7900fe33db57429eed8a857c | /main_solid_cubes_surface.py | 81d80ca709c50842e324801e59497c772e052ce6 | [] | no_license | LLizardi/cubes | 71aad819f6ca64ecc57c4131eaa22b7c48f3e416 | de3028cd50ac4bebe3f405dc07c589af50f991c5 | refs/heads/master | 2020-05-07T05:44:59.480315 | 2019-04-09T04:21:14 | 2019-04-09T04:21:14 | 180,283,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,627 | py | from math import pi, atan, log, sqrt
import numpy as np
import warnings
warnings.filterwarnings('ignore')
from datetime import datetime as dt
import sys
from itertools import combinations,permutations
from class_cube import cube
def create_mesh(N):
cubes = []
if N<=1:
cubes.append(cube())
retu... | [
"noreply@github.com"
] | noreply@github.com |
93196c7e4c3d9aee7a600a779e6f089b06a181e0 | 13eae91d078c8b88c990bb6da1b9cdb8e3648b76 | /cogs/Downloader/lib/fontTools/misc/macRes.py | e8b3cbc20ed28d5048adec1ba0a12c560f11c715 | [] | no_license | skylarr1227/skybizzle | 98303c99a5ea897469e381e06dcda3725d6500d6 | 63c38995437d6880bd9bf0de52d406c904cbbd24 | refs/heads/master | 2023-05-13T00:12:46.827511 | 2019-11-12T01:03:45 | 2019-11-12T01:03:45 | 221,097,000 | 0 | 1 | null | 2023-05-07T06:22:44 | 2019-11-12T00:40:38 | Python | UTF-8 | Python | false | false | 6,591 | py | """ Tools for reading Mac resource forks. """
from fontTools.misc.py23 import *
import struct
from fontTools.misc import sstruct
from collections import OrderedDict
try:
from collections.abc import MutableMapping
except ImportError:
from UserDict import DictMixin as MutableMapping
class ResourceError(Exception):
p... | [
"skylarr1227@gmail.comgit config --global user.email skylarr1227@gmail.com"
] | skylarr1227@gmail.comgit config --global user.email skylarr1227@gmail.com |
af9bfb5814f5f4141fc5fd9980c003da790129c1 | 2dbd4a34f6da93c0e70e8517971672a010db93dc | /py_m/lexer_.py | 2bc01b0157aa225fd69bd537af1b174f584f269a | [] | no_license | kawain/copy_interpreter | 44eebe43c6b9ddefa94066577dcd5779a933f426 | 94e7a6d5d03b528b9138c17a5a6828f6332fa98d | refs/heads/master | 2023-04-26T02:51:46.457263 | 2021-05-22T07:48:52 | 2021-05-22T07:48:52 | 356,544,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,363 | py | from token_ import TokenType, Token
class Lexer:
"""字句解析"""
def __init__(self, input, position=0, next_position=0, ch=""):
self.input = input
self.position = position
self.next_position = next_position
self.ch = ch
self.size = len(self.input)
self... | [
"unknown@example.com"
] | unknown@example.com |
d4cb57f250e733e13d0676e9b5d25d710f3cafad | 7f52bb7c3a5ed3be6821306137c5217362d06dc3 | /manage.py | 3b50f6ea9203cf02974bbf61451c2a74f68e4d63 | [] | no_license | payush/cristianoronaldoyopmailcom-307 | 547f36250cf3c9c94bdea0fe8c7a1e3e1194294a | d2f2a1f76ab354e391bab8a628782c80a3b1c97a | refs/heads/master | 2020-03-23T14:24:53.428495 | 2018-07-20T06:44:00 | 2018-07-20T06:44:00 | 141,674,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 828 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "cristianoronaldoyopmailcom_307.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other r... | [
"ayushpuroheet@gmail.com"
] | ayushpuroheet@gmail.com |
70938badd7297e124107dca01ead60ecba9b844c | fdb48a4812dc17c4a591b4c30a7d71231a0fba7c | /score.py | 320331b76f5dcd2ab242dff34f96de1339f8bd40 | [
"MIT"
] | permissive | s-a-nersisyan/PP_miRNA_arrays | ee3312b9cccf917f8375a022ef72d33a5b0c36a1 | 6c68fa3b4a22232684fd9f2e77d3529012dea2bc | refs/heads/master | 2020-07-29T08:52:14.591943 | 2020-02-16T05:57:54 | 2020-02-16T05:57:54 | 209,736,358 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,111 | py | # This script inputs a pre-MIRNA - miRNA expression table (see README) and
# calculates a score for each row
import sys
import pickle
import numpy as np
from scipy.stats import spearmanr
def main(input_fname):
# Open input file and skip the header
in_f = open(input_fname)
in_f.readline()
# Load prepa... | [
"s.a.nersisyan@gmail.com"
] | s.a.nersisyan@gmail.com |
d8b395d8ac0a6477ee1af27e443fb18de8465eb8 | e6f79a62e811c0752f0701ef7e21c0bac42764e8 | /DAC/num2dac.py | bca05838342d5bd71a5099e1ce3fc58050c350cc | [] | no_license | KseniaYurko/DAC-ADC | 4caf0e22a97236f1762e36033ddfe22208bf58e6 | 503cdd244e86743bf8810dab40b880774420c891 | refs/heads/master | 2023-05-06T16:40:52.145441 | 2021-05-23T16:24:32 | 2021-05-23T16:24:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | import RPi.GPIO as GPIO
import time
N = [10, 9, 11, 5, 6, 13, 19, 26]
GPIO.setmode(GPIO.BCM)
GPIO.setup(N, GPIO.OUT)
c
for i in range(8):
GPIO.output(N[i], int(binary[num - 1 - i]))
num2dac(3) | [
"iurko.kk@phystech.edu"
] | iurko.kk@phystech.edu |
b4035d14d48d4b7424181bca29f863136400598d | 1cf5b9efcaa6de40513174d400621bfa8f1d3ed4 | /pythonBackend/MyStreamListener.py | 2123076d4f50ddc5a7c27e396fff5c1d7d2e4566 | [] | no_license | edfilbasan/gotsentiment | 212a812ee95f16613aa978b25d9560c5da496d61 | 7540743a0309073fdb08ad6c73df137dc8a2698e | refs/heads/master | 2023-01-14T03:37:18.131126 | 2020-02-17T23:15:56 | 2020-02-17T23:15:56 | 181,374,344 | 3 | 1 | null | 2022-12-10T11:21:47 | 2019-04-14T22:04:10 | Python | UTF-8 | Python | false | false | 1,800 | py | import tweepy
import csv
import re
#override tweepy.StreamListener to add logic to on_status
class MyStreamListener(tweepy.StreamListener):
tweet = {}
idSelf = 0
# Receives tweets, operates on them (more operations to come?)
def on_status(self, status):
try:
if (hasattr(status,'extended_tweet')):
... | [
"ntm32@cornell.edu"
] | ntm32@cornell.edu |
8582899f0b6cd0f7f1531c256890a8f8e05394a0 | af9d2d87f3ea36d5d42e2d56c8e8c730d674b6f7 | /Breadth_First_Search_Practice/513 Find Bottom Left Tree Value/solution.py | 685f40ef680943453861fbed7bb5a356cc2989d0 | [] | no_license | ShiqinHuo/LeetCode_Notes | 6830a3e8d7afdd76c257fc28f0029a3d5ec1abf1 | f3ab388d2d47aac36e2f96156f149d447151878a | refs/heads/master | 2021-05-25T09:17:04.838015 | 2020-03-24T13:29:26 | 2020-03-24T13:29:26 | 126,961,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def findBottomLeftValue(self, root):
"""
:type root: TreeNode
:rtype: int
"""
current_row = [root... | [
"ShiqinHuo@gmail.com"
] | ShiqinHuo@gmail.com |
47e01a8d79922beb1795fe91191db98c2627286b | 61a8f496dbe1880398b0156940b1789ddfe8e081 | /Week_7_Lab/Advanced/q10.py | 3c2bfdedd51b4b0239a8993191d0ee3ac329def6 | [] | no_license | luca2849/CM1103-Problem-Solving-With-Python | e369cdc032249e3625ae5dbbd926703e20d11dd9 | a10b7ee6b972b23528a983dd7fff78d097c08465 | refs/heads/master | 2020-04-04T15:07:01.179113 | 2018-12-13T12:07:19 | 2018-12-13T12:07:19 | 156,024,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | py | def rec_power(a,n):
# if n is 1 then return a
if n == 1:
return a
# recursively call this function for n/2 and call it factor
n = n/2
factor = rec_power(a, n)
# if n/2 is even return the square of factor
if (n/2) % 2 == 0:
return factor * factor
# if n/2 is odd then retur... | [
"="
] | = |
a6c3cf2f1f9a3458d0b562aef5935f76de142de7 | 1956883d52e4019bbf8bd7bbc3744cdd1376e128 | /abutton.py | 96ea6f9b2354e36232ba86e55ad6e83e85bbaeda | [
"MIT"
] | permissive | Otumian-empire/tkinter-basic-gui | 5d7f7c697e9ac40f34b598b166186733d0931202 | 8a561fde8f770119bc3108511388371b1bdcabf5 | refs/heads/master | 2020-06-18T13:41:17.248470 | 2019-07-15T18:51:40 | 2019-07-15T18:51:40 | 196,320,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | from tkinter import *
root = Tk()
x = 0
def increase():
global x
x += 1
label.configure(text=x)
def decrease():
global x
x -= 1
label.configure(text=x)
label = Label(text=x)
sendbutton = Button(text="increase", command=increase)
deletebutton = Button(text="decrease", command=decrease)
send... | [
"popecan1000@gmail.com"
] | popecan1000@gmail.com |
a5f03b6460749d35d829fc1dc57d5916aea8e21e | 29200a862498323d77b18666bb9eb2a1554d5209 | /bfresample.py | 00002bf1251658dc142eda6104b03bb238225361 | [] | no_license | arms22/bfdump | f278416eeb4227b43a688734004fea6af6601ab2 | 1e665bcfeb53125e2525daec62398bbba29e411c | refs/heads/master | 2020-05-01T02:51:07.921521 | 2019-03-23T01:30:14 | 2019-03-23T01:30:14 | 177,230,110 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,464 | py | import sys
import argparse
import pandas as pd
parser = argparse.ArgumentParser(description="")
parser.add_argument('csv', nargs='?', type=argparse.FileType('r'), default=sys.stdin)
parser.add_argument("--rule", dest='rule', type=str, default='1T')
parser.add_argument("--index_col", dest='index_col', type=str, ... | [
"arms22@gmail.com"
] | arms22@gmail.com |
8b61414def568b0fb5a70aa3d6138923df7e26b9 | e3fe2b429116b428f7ce2577e388934f574d3e4e | /models.py | e8e7f6bdc7f90a953e270aab665a01a1760b234b | [] | no_license | FutureWL/Imooc-Python-Flask-Video-Artcms | 8875d5c2799c735f4183d354fa381ea7287b0d09 | baa6a14aa47dd0c46720fcce93cbc95b23117e30 | refs/heads/master | 2022-12-21T13:26:56.156609 | 2019-04-17T09:18:13 | 2019-04-17T09:18:13 | 181,664,216 | 0 | 0 | null | 2022-12-08T04:59:25 | 2019-04-16T10:05:23 | JavaScript | UTF-8 | Python | false | false | 1,519 | py | # coding:utf8
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from werkzeug.security import check_password_hash
app = Flask(__name__)
app.config["SQLALCHEMY_DATABASE_URI"] = "mysql+pymysql://root:root@localhost:8889/artcms_pro"
app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = True
db = SQLAlchemy(app)
"... | [
"624263934@qq.com"
] | 624263934@qq.com |
40bb0128d71f1ed4d0776ae4e076f7440e468d39 | 1f8f423532070a9b49bad7b15af6cd12d0d3e5d0 | /app/src/applications/auth/query/AvlanAuthQuery.py | 17ef5e1a3063861b3a694771e6074e435b172010 | [] | no_license | r2r-dev/avlan-docker | 357ce99db914660a0ffdb2022ee139f213e5514b | 1fe6b045bc9d03cbc81b69431e98af45958358d0 | refs/heads/master | 2021-06-12T00:54:19.901286 | 2017-01-29T22:22:32 | 2017-01-29T22:22:32 | 68,092,562 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 953 | py | from src.applications.base.query.AvlanBaseQuery import AvlanBaseQuery
from src.applications.auth.storage.AvlanTokenStorage import AvlanTokenStorage
class AvlanAuthQuery(AvlanBaseQuery):
def create_token(self, value, date):
token = AvlanTokenStorage()
token.value = value
token.expirationDat... | [
"artur.stachecki@gmail.com"
] | artur.stachecki@gmail.com |
fd77865f99149986c2796021bc34b0517e28cb94 | 9b5d40bc51370f7a1d86834735f5238476d91c20 | /beacon.py | 2e2999e55f483502ae0d39959cab4c5fdd78e991 | [] | no_license | rodolfo-r-a-da-silva/live-telemetry-viewer-pyqt | e702b60be22151ed68eada6d31ba449957cf3731 | 9c9bee1f495f05f8f35535f9f0e6d70855d6a265 | refs/heads/master | 2023-03-26T14:25:26.409490 | 2021-03-22T16:49:20 | 2021-03-22T16:49:20 | 350,517,491 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 63 | py | class Functions():
def __init__(self):
print("b") | [
"artur.chagas@usp.br"
] | artur.chagas@usp.br |
faebb5a0349e309e0695aa79d9415aaf1078fc69 | 39f98e5a10547b17311ddecc8acfde520a0bd866 | /paper-code/configs/__init__.py | f36d121b1c00decd7637617fdc1528d362e7da9e | [] | no_license | metapost/APROX-Robust-Stochastic-Optimization-Algorithms | 75010ab324d5dd8a33950d4bc65bf9c0e8858066 | 1ebcd302ef5baea5eec833da8e913b8ade3cad96 | refs/heads/master | 2021-05-19T17:09:06.704476 | 2019-11-07T01:04:51 | 2019-11-07T01:04:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59 | py | from .configs import *
from .settings import apply_setting
| [
"hilal.asi94@gmail.com"
] | hilal.asi94@gmail.com |
51f52e800e8f09fc08922501bc56b4bfc8eb4896 | a049b9ebe0ecaf6cb5bca728d31acdf8d0a3a737 | /M3_multi_mirror_mirror.py | fea6de6d7499d4c57d6b47e4c9a3b7e5284c3e30 | [] | no_license | mistajuliax/MACHIN3tools | 330ccf7136f6323195cb2ab5fd9a450da181e6f3 | c3115433be1aa68fea17453c1c1f666a51cb44d6 | refs/heads/master | 2022-06-22T18:48:08.204318 | 2017-04-18T00:05:04 | 2017-04-18T00:05:04 | 88,886,365 | 0 | 0 | null | 2017-04-20T16:18:40 | 2017-04-20T16:18:40 | null | UTF-8 | Python | false | false | 3,002 | py | bl_info = {
"name": "Multi Mirror Mirror",
"author": "MACHIN3",
"version": (0, 1),
"blender": (2, 77, 0),
"location": "Spacebar Menu/ Shift + Alt + X/Y/Z",
"description": "Mirror Mirror Tool, but allows mirroring of multiple objects at once.",
"warning": "",
"wiki_url": "",
"category... | [
"social@machin3.io"
] | social@machin3.io |
81042f16ac1b22ab0924fb904a3ab405642edbb9 | d644194bb4da2a4e7bc3f79268530790d9995e47 | /events/utils/FileService.py | 177b8cd46bb69ff709bd4adc9e2d7568d3303975 | [] | no_license | lhalam/event_manager | d6294237f11f5c75f196f0db737897dc8c0ba3d0 | e3bd2949f49080639eaca30ac242d9a98aa71f20 | refs/heads/dev | 2021-01-11T04:00:45.877314 | 2016-12-29T19:57:34 | 2016-12-29T19:57:34 | 71,260,068 | 1 | 1 | null | 2016-12-29T19:57:35 | 2016-10-18T15:01:24 | JavaScript | UTF-8 | Python | false | false | 1,162 | py | from django.views.generic.base import View
from boto.s3.key import Key
from boto.s3.connection import S3Connection
from events import local_settings
class FileManager(View):
CONN = S3Connection(local_settings.ACCESS_KEY_ID, local_settings.AWS_SECRET_ACCESS_KEY)
@staticmethod
def delete_by_key(key):
... | [
"grizly.vl@gmail.com"
] | grizly.vl@gmail.com |
9678a91e6b91dca0a5b441f54375da06394cbea3 | 4981cddfc4c9a7c3d8a2ec93592707a572e4e4b4 | /Project/game_class.py | 5449f5a2b8a4f49ec05089b6d50713cfa266b309 | [] | no_license | JaeHyeon-Yu/Project | ec9c7b5b6c52babb714c771ae2f9639815bcf171 | 1aff96a8528ef039875bd3204b98006f770066bc | refs/heads/master | 2020-04-04T02:03:06.464788 | 2018-12-02T12:38:13 | 2018-12-02T12:38:13 | 155,687,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | from pico2d import *
from card import *
from player import *
from monster import *
from background import *
from hpmp import * | [
"43131666+JaeHyeon-Yu@users.noreply.github.com"
] | 43131666+JaeHyeon-Yu@users.noreply.github.com |
8ec3bf12cacdc47c54db00c9ea91520d09aa8fc4 | 747f759311d404af31c0f80029e88098193f6269 | /addons/email_account/wizard/wizard_send_email.py | 2ad2aa3b9779c2e69e1d813316fd08d361ac84a4 | [] | no_license | sgeerish/sirr_production | 9b0d0f7804a928c0c582ddb4ccb7fcc084469a18 | 1081f3a5ff8864a31b2dcd89406fac076a908e78 | refs/heads/master | 2020-05-19T07:21:37.047958 | 2013-09-15T13:03:36 | 2013-09-15T13:03:36 | 9,648,444 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 79 | py | /home/openerp/production/extra-addons/email_account/wizard/wizard_send_email.py | [
"geerish@omerp.net"
] | geerish@omerp.net |
adbd024cf5420b91b9fdfbf7e1bfc06c9100629a | 983f6d96e10643421816beb9204c9cc1a5a93b50 | /HASHGRAPH/continuous_send.py | ea721e46ccab70751b749725f4cc2c1c7c9ad344 | [] | no_license | USAFACyberPower/Hashgraph | 9865f5f9a4269cb37dae8332b309384f7a92e906 | 1e7baef7022157c0f4daf6efb55bfe833e52b573 | refs/heads/master | 2022-12-17T11:04:17.080277 | 2020-09-10T17:01:39 | 2020-09-10T17:01:39 | 294,466,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | #!/usr/bin/env python3
import socket
import random
HOST = ['192.168.20.182', '192.168.20.230'] # The server's hostname or IP address
PORT = 65432 # The port used by the server
while True:
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
s_host = 0
s_send = str(random.random())
try:
... | [
"59588023+ZelfDread@users.noreply.github.com"
] | 59588023+ZelfDread@users.noreply.github.com |
4c5aa5950353440cacb41eae8812b9ebad525a8f | 536656cd89e4fa3a92b5dcab28657d60d1d244bd | /chrome/test/enterprise/e2e/policy/extension_blacklist/extension_blacklist.py | d14b00fa20cb00fb2767361a0b60407fe2824f33 | [
"BSD-3-Clause"
] | permissive | ECS-251-W2020/chromium | 79caebf50443f297557d9510620bf8d44a68399a | ac814e85cb870a6b569e184c7a60a70ff3cb19f9 | refs/heads/master | 2022-08-19T17:42:46.887573 | 2020-03-18T06:08:44 | 2020-03-18T06:08:44 | 248,141,336 | 7 | 8 | BSD-3-Clause | 2022-07-06T20:32:48 | 2020-03-18T04:52:18 | null | UTF-8 | Python | false | false | 2,267 | py | # Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import logging
import os
from chrome_ent_test.infra.core import environment, before_all, test
from infra import ChromeEnterpriseTestCase
@environment(file=... | [
"pcding@ucdavis.edu"
] | pcding@ucdavis.edu |
afdc9e6a0d519cd1b27adb70b9fb7fc4ecc25f8f | bd829ad194fb5d7610cbe062103dfebdfc791f4e | /tests/conftest.py | 45dccd041cba9511fd325dade231012f031f687c | [] | no_license | avracadabra/api-gateway | df9e25d01dd56d7d9e20ead9fdd20aaddc568ddf | 4e30e3f3d2235278cd78bdb0c3a961c8073f0879 | refs/heads/master | 2022-08-10T06:55:51.909344 | 2020-05-10T12:54:13 | 2020-05-10T12:54:13 | 260,641,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 245 | py | import pytest
from starlette.testclient import TestClient
from avracadabra.api.app import create_app
@pytest.fixture(name="client", scope="session")
def fixture_test_client():
with TestClient(create_app()) as client:
yield client
| [
"pverkest@anybox.fr"
] | pverkest@anybox.fr |
af8010a1e412e867091d19bae06ae1b90c345783 | f993e252fc740471e71a6748685988fc0b5f2e34 | /backend/driver/migrations/0001_initial.py | 66dea496859c52c65d3e087e3245db062a3abc77 | [] | no_license | crowdbotics-apps/cobros-app-22778 | b9b9561d693fc979de0af693ffa9e4ca4d57873d | 0774fc76d1b8b484790ed1ec070c1f6455905c65 | refs/heads/master | 2023-01-12T16:46:05.469345 | 2020-11-19T17:57:14 | 2020-11-19T17:57:14 | 314,314,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,540 | py | # Generated by Django 2.2.17 on 2020-11-19 17:02
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
("del... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
57234362fb224659d519596c67ccad380e195e2b | dba6d074ceed96714e1cd32834d7ceafcd1bb08b | /tweet.py | e9dfc685fc4d7222e0a57238264b42bfc5e3d2fb | [] | no_license | cosu/gvbalert | 6de6b61501d7de523b98f066ddc897008a7b86c2 | fb75716b708fa2fa8da513168e15d2b3b23cf760 | refs/heads/master | 2021-01-11T17:52:02.081730 | 2017-04-05T21:35:38 | 2017-04-05T21:35:38 | 79,852,829 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,562 | py | import attr
from parsing import extract_event_type, extract_lines, extract_ride_type, extract_reason, remove_links, extract_destination
DISTURBANCE = {'en': ['disturbance'], 'nl': ['verstoring']}
DELAY = {'en': ['delay'], 'nl': ['langzaam', 'vertraging', 'dienstregeling']}
CROWDED = {'en': 'crowded', 'nl': ['druk']}
... | [
"cosu@cosu.ro"
] | cosu@cosu.ro |
c0ed17888c60fcab123c626b184ea63afe1eb11f | 504d143a2b3172b5f59ecb0c9ce6912d7cdc669d | /football-tracker/main.py | 4fd23e35415af58cf930dbe20fde04a31f4d46c1 | [] | no_license | xzebra/aplc-ucode19 | 786f049b4e6ce91fad6f0e62f02dc9384412228a | 67a6d8b2d2d7b5c859a888233d5fd6de0ee7f857 | refs/heads/master | 2020-05-01T08:24:16.470712 | 2019-03-24T09:28:54 | 2019-03-24T09:28:54 | 177,377,892 | 0 | 0 | null | 2019-03-24T06:14:14 | 2019-03-24T06:14:13 | null | UTF-8 | Python | false | false | 2,679 | py | import boto3
import base64
import cv2
import csv
client = boto3.client('rekognition')
REDUCTION = 0
ball_movement = []
def save_ball_data():
with open('lame_bolas.csv', mode='w') as csvfile:
writer = csv.writer(csvfile)
#writer.writerow(['X', 'Y', 'Height', 'Width'])
for mov... | [
"jromanosp@hotmail.com"
] | jromanosp@hotmail.com |
67991a4734fbf184aa111ce23f7c1989d0e99200 | 5b9b682f24f61cfc54dab88cf02d67f97d6c318f | /0x0C-python-almost_a_circle/models/square.py | d9356838c00a7d4614ae74f9e0f057ac28c7ddd8 | [] | no_license | Lvmvr22/alx-higher_level_programming | 90cab81ebeca4b852138ed1a7b853d1493fbcacc | db76df49f35cf304f1910ea48cea72bba624b43a | refs/heads/main | 2023-07-13T06:35:25.729309 | 2021-08-24T11:23:16 | 2021-08-24T11:23:16 | 362,140,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,751 | py | #!/usr/bin/python3
# square.py
"""Defines the square class
"""
from models.rectangle import Rectangle
class Square(Rectangle):
"""Class Square inherits from Rectangle
Args:
size, x=0, y=0, id=None
Raisses:
"""
def __init__(self, size, x=0, y=0, id=None):
"""Intiates the square obj... | [
"lamarnyairo@gmail.com"
] | lamarnyairo@gmail.com |
14536dfa37f4ea568e6c92a11016ff172bc3a4b4 | 210958516fa1354dbf4027b5602e448be54449b9 | /python_codes/manipulate_plot_q_s.py | 85f10009c7eea20f5c689197d57e28513acfd436 | [] | no_license | Somayeh91/PSPL-Plus-Gaussian-Fit | f3527f0a735aa32c6a05d1405ee97c44e92345a2 | 40905cb1616ef5089fcd178440aeedb73a1ce7fc | refs/heads/master | 2022-12-01T13:11:06.207735 | 2020-08-17T17:02:16 | 2020-08-17T17:02:16 | 288,234,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,455 | py | import glob,os,sys
import numpy as np
import matplotlib.pyplot as plt
import matplotlib as mat
from numpy import *
import re
import scipy.stats as st
from os.path import expanduser
import cmath
import scipy.optimize as op
import time
import gzip
import pandas as pd
def med_med (true,fitted):
temp = fitted - true
... | [
"noreply@github.com"
] | noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.