blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9a2b4bd952a3bd412a603232556bd9cad7508e62 | 9638fccea89ece61f7ba1f985f488bf3e8671155 | /venv/bin/jp.py | 3187218827e61b01a87d6828b56a3e2045077914 | [] | no_license | ked66/ResearchNotes | 7ada6bc14a54dd9c86719f901e090265738642b9 | c653e02f78bf195dc417394baf0342033a9984e4 | refs/heads/master | 2023-03-04T05:00:48.261084 | 2021-02-12T20:15:27 | 2021-02-12T20:15:27 | 316,547,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,717 | py | #!/Users/katie/PycharmProjects/ResearchNotes/venv/bin/python
import sys
import json
import argparse
from pprint import pformat
import jmespath
from jmespath import exceptions
def main():
parser = argparse.ArgumentParser()
parser.add_argument('expression')
parser.add_argument('-f', '--filename',
... | [
"ked66@cornell.edu"
] | ked66@cornell.edu |
f2d8006fa9d4e809157de1688060502edc3218c4 | 2368972f5cd45704b5ab1b4877f6409fc38bf693 | /app/app.py | 15563cc268e2f61394e02d4b08bcdf53cec19708 | [] | no_license | sergiodias28/manobra | 7d67498521aabb0d8c9a5d9ebce97d39099913cb | 5f38eef2035547807ae8aaa095a76961cb372852 | refs/heads/master | 2021-01-19T00:24:57.666548 | 2016-08-11T23:12:26 | 2016-08-11T23:12:26 | 65,052,300 | 0 | 0 | null | 2016-08-11T23:12:27 | 2016-08-05T22:15:02 | Python | ISO-8859-1 | Python | false | false | 2,234 | py | # -*- coding: utf-8 -*-
"""
Autman
~~~~~~
Sistema de automanção de manobras.
:copyright: (c) 2016 by Sergio Dias.
:license: BSD, see LICENSE for more details.
"""
import os
import sys
from sqlite3 import dbapi2 as sqlite3
from flask import Flask, request, session, g, jsonify, redirect, url_for, abor... | [
"engsergiodias28@gmail.com"
] | engsergiodias28@gmail.com |
baae6fae01fff3f6aec29b4e4d2b1d0690ecc8d7 | 41c74240ef78070ee5ad19ece21672e629da6881 | /elections/migrations/0001_initial.py | 47ba1d9d4599cd1ce1a4b0c10cf6582b2cf65c5b | [] | no_license | NamGungGeon/DjangoStudy | 33d3f3d66bcc6a9dafa9cbeee10f55b705d1755f | 7985d384f26538b78414148c485d4a126c199ad0 | refs/heads/master | 2021-01-23T20:07:23.033394 | 2017-09-08T11:03:46 | 2017-09-08T11:03:46 | 102,852,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 732 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-09-03 14:08
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Candid... | [
"rndrjs123@naver.com"
] | rndrjs123@naver.com |
23206587aae4835dbc893edeaad63d67170d75c3 | 23e877d2e65cdc49cf9a456845470f97194674bc | /src/main/resources/http/http_request.py | e9a3e1cdc87380b5ff871b18466c069841a84cdd | [
"MIT"
] | permissive | xebialabs-community/xld-github-dynamic-dictionaries-plugin | 77da6a4fea1ca2b96207d77b0396011e088ac850 | 67c3a596f4a7f58f9d0a939bb57091d1f82c51ee | refs/heads/master | 2021-07-13T17:15:15.222551 | 2020-11-02T12:49:14 | 2020-11-02T12:49:14 | 68,606,897 | 2 | 2 | MIT | 2021-03-26T22:14:23 | 2016-09-19T13:09:01 | Python | UTF-8 | Python | false | false | 9,826 | py | #
# Copyright 2020 XEBIALABS
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, subli... | [
"bmoussaud@xebialabs.com"
] | bmoussaud@xebialabs.com |
a399756b98d4f56f840f7c66e636e9b73a4a9272 | 86a1aab74d3c1c991c8effa835ce8f9dfcf980b3 | /utils/src/arguments.py | 36b2e4e521b8431242ca3521587776f357f90e0d | [
"MIT"
] | permissive | CBIIT/nci-hitif | a97e93c005c079d7650b2ef73bcd77e518a30fcd | 2f825cbcba92ff2fdffac60de56604578f31e937 | refs/heads/master | 2023-04-15T04:55:05.703576 | 2021-04-21T20:11:06 | 2021-04-21T20:11:06 | 97,508,922 | 1 | 5 | MIT | 2023-03-24T23:35:20 | 2017-07-17T18:25:44 | Jupyter Notebook | UTF-8 | Python | false | false | 2,106 | py | import argparse
def get_unet_parser():
parser = argparse.ArgumentParser(description="spot learner")
parser.add_argument('images', help="The 2d numpy array image stack or 128 * 128")
parser.add_argument('masks', help="The 2d numpy array mask (16bits) stack or 128 * 128")
parser.add_argument('--nlayer... | [
"george.zaki@nih.gov"
] | george.zaki@nih.gov |
db996257ef666016749abab744fca60cc7c79dc3 | 2d2fcc54af513a84bc624589dc7c6a0316848784 | /microbe/lib/python3.6/hmac.py | 3433dd988ff9ff0a1ec0203ba62a078b796dcc94 | [] | no_license | tatyana-perlova/microbe-x | 9becf3a176e1277a3bb4ffcd96d4b25365038bb8 | 5b364c09dcf43c3ab237c8d9304a4eaa9ecff33f | refs/heads/master | 2022-12-13T18:29:59.372327 | 2018-02-06T19:35:11 | 2018-02-06T19:35:11 | 120,374,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46 | py | /home/perlusha/anaconda3/lib/python3.6/hmac.py | [
"tatyana.perlova@gmail.com"
] | tatyana.perlova@gmail.com |
230c93a04644bae6fca2f3d207a8e00cba3a24de | beae5a43e5bf3d3627d49531e5cc8365c204d15c | /contactnetwork/migrations/0002_auto_20180117_1457.py | 7da9fdc770627bede76a26f59e0e2291f2f612df | [
"Apache-2.0"
] | permissive | protwis/protwis | e8bbe928a571bc9d7186f62963d49afe1ed286bd | 75993654db2b36e2a8f67fa38f9c9428ee4b4d90 | refs/heads/master | 2023-09-01T18:16:34.015041 | 2023-04-06T11:22:30 | 2023-04-06T11:22:30 | 50,017,823 | 31 | 92 | Apache-2.0 | 2023-07-28T06:56:59 | 2016-01-20T09:02:48 | Python | UTF-8 | Python | false | false | 3,796 | py | # Generated by Django 2.0.1 on 2018-01-17 13:57
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('contactnetwork', '0001_initial'),
('structure', '0001_initial'),
('residue', '0001_initi... | [
"christian@munk.be"
] | christian@munk.be |
b561d9b1c21f08c5647bd599c14beb24eee2dc86 | e3d06e2f11e5afc623ffbd59143fa8b3dbd8f1f7 | /DCGAN_train.py | 056a21a18c7d859cb7c96536dd32ba00f620ae1e | [] | no_license | yangpeiwen/implementation | 931f6f1d8d475affcb95b6fd0baacfc0ec1325f5 | a2bf3e1de98a78173f73e003bd888de9cd4a77e9 | refs/heads/master | 2020-04-29T15:18:00.296864 | 2019-03-27T12:47:09 | 2019-03-27T12:47:09 | 176,223,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,365 | py | #!/usr/bin/env python
# coding: utf-8
# In[ ]:
#D网络中使用LeakyReLU作为激活函数
from __future__ import division, print_function, absolute_import
import matplotlib.pyplot as plt
import numpy as np
import tensorflow as tf
from network_construction import DCGAN
#载入mnist数据集
from tensorflow.examples.tutorials.mnist import input_d... | [
"yangpeiwen"
] | yangpeiwen |
15d614e5ec83637c824c55ec0c2d7c4291482954 | 55877a854a6325b0ba8265645b94184f56839480 | /spider/settings.py | e54a1a60ae1f076b59f6850ee210e7d072d32e79 | [] | no_license | xiaowuwuwuwuwu/scrapy_pager_frame | cc48cee4daaa655d78be336678ed18aa6e9037ca | bc3d9bd26b842fe66dba98ca3982ffd2fa1b8d39 | refs/heads/master | 2020-09-22T15:44:49.016852 | 2019-12-02T02:17:38 | 2019-12-02T02:17:38 | 225,263,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,803 | py | # -*- coding: utf-8 -*-
# Scrapy settings for tutorial project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
# http://scrapy.readthedocs.org/en/lates... | [
"1059174412@qq.com"
] | 1059174412@qq.com |
c423950c678b966d72c428c4dadd7d1045308bbb | c536c764aab4170c64f3f8b78bd91593dcb161a3 | /vigenereb62.py | 037292215097560084e9451db9c5655b7c2fb996 | [] | no_license | numberly/vigenere-b62 | 63bbc95c1f9390e9623a5882a9c2a14d110851b4 | 3dea3394ee557ba2e589af014cbc4454ebbbc874 | refs/heads/master | 2023-02-16T02:13:31.254670 | 2021-01-11T15:24:58 | 2021-01-11T15:24:58 | 328,698,862 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | def iter_reverse_digits(number, base):
while number != 0:
digit = number % base
yield digit
number -= digit
number //= base
def encode(alphabets, seed, size=6):
if len(alphabets) < size:
raise ValueError("There should be an alphabet per character you want")
secret =... | [
"julien@thebault.co"
] | julien@thebault.co |
a29347fa5a55f754c48ba25f7b9c8c93f00f8db4 | a45e45b5b3b706f369f586e7b03c5972eb21b926 | /pythonsyntax/any7.py | 61226e6cc4351b5b432ec75fe82928ac0cf3f5e7 | [] | no_license | khagerman/Python-Practice | 44882bbcf876ab06536da0d4ec0e1a5d9b2bf10d | 982dc7595691f32a6da6ef8fb918ec9dfdfdfd93 | refs/heads/main | 2023-03-27T15:27:51.889132 | 2021-03-31T21:38:08 | 2021-03-31T21:38:08 | 350,499,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | def any7(nums):
"""Are any of these numbers a 7? (True/False)"""
# YOUR CODE HERE
for num in nums:
if num == 7:
return True
return False
print("should be true", any7([1, 2, 7, 4, 5]))
print("should be false", any7([1, 2, 4, 5]))
| [
"71734063+khagerman@users.noreply.github.com"
] | 71734063+khagerman@users.noreply.github.com |
705c2db27a5d0906938b557caab4e18133150a24 | 19ac1d0131a14ba218fd2c55d585170222eb9400 | /social_login/wsgi.py | 9523f947cda705e24cea5e1c828e7fb9ee17044c | [] | no_license | oereo/social-login | 4ed27658c585dd0a24484e628e053070fe012518 | 41e67b889354189c986da45bcf03c20c1f1063e3 | refs/heads/master | 2023-01-15T22:38:06.667909 | 2020-11-22T12:12:08 | 2020-11-22T12:12:08 | 303,985,281 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
WSGI config for social_login project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_... | [
"dlstpgns0406@gmail.com"
] | dlstpgns0406@gmail.com |
1bff440e67a7189665b42fe0833a0c9b007950e7 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_defenders.py | bb7548df4efbbe4fec4aeb39f3eec118e52a2ba7 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py |
from xai.brain.wordbase.nouns._defender import _DEFENDER
#calss header
class _DEFENDERS(_DEFENDER, ):
def __init__(self,):
_DEFENDER.__init__(self)
self.name = "DEFENDERS"
self.specie = 'nouns'
self.basic = "defender"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
8339c4b6670fe18b61771e18903739838373f58c | 01ce2eec1fbad3fb2d98085ebfa9f27c7efb4152 | /itertools/itertools-combinations.py | b32166fe2a76aece52bb636b0b8705a63f17c3ce | [
"MIT"
] | permissive | anishLearnsToCode/hackerrank-python | 4cfeaf85e33f05342df887896fa60dae5cc600a5 | 7d707c07af051e7b00471ebe547effd7e1d6d9d9 | refs/heads/master | 2023-01-01T23:39:01.143328 | 2020-11-01T07:31:15 | 2020-11-01T07:31:15 | 265,767,347 | 8 | 4 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | # https://www.hackerrank.com/challenges/itertools-combinations/problem
import itertools
line = input().split()
word = sorted(line[0])
k = int(line[1])
for i in range(1, k + 1):
for j in itertools.combinations(word, i):
print(''.join(j))
| [
"anish_bt2k16@dtu.ac.in"
] | anish_bt2k16@dtu.ac.in |
e4603076015ad9b338c87de21b02807faa509853 | 91948d5be26636f1f2b941cb933701ea626a695b | /amazon_longest_substring_with_no_repeat.py | 30208e55e14fb6ba9b3eabe03ddda30851bc6a3b | [
"MIT"
] | permissive | loghmanb/daily-coding-problem | 4ae7dd201fde5ee1601e0acae9e9fc468dcd75c9 | b2055dded4276611e0e7f1eb088e0027f603aa7b | refs/heads/master | 2023-08-14T05:53:12.678760 | 2023-08-05T18:12:38 | 2023-08-05T18:12:38 | 212,894,228 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,709 | py | '''
Longest Substring Without Repeat
Asked in: Amazon
https://www.interviewbit.com/problems/longest-substring-without-repeat/
Given a string,
find the length of the longest substring without repeating characters.
Example:
The longest substring without repeating letters for "abcabcbb" is "abc", which the length is 3... | [
"loghmanb@gmail.com"
] | loghmanb@gmail.com |
aecd6191686bd841066715f69f2dbd3ae327fd10 | 6c55174a3ecfc0757ed04700ea4c549e6b9c45d2 | /lib/koala/utils/mail.py | 7b1dd4c0909e722872e3f53c3cf673b8b6b516a3 | [] | no_license | adefelicibus/koala-server | ce7cbc584b0775482b60e2eb72794104f2fe0cf3 | defec28c30a9fc4df2b81efeb8df4fc727768540 | refs/heads/master | 2020-05-25T15:43:43.772302 | 2016-04-26T02:08:56 | 2016-04-26T02:08:56 | 38,928,778 | 2 | 3 | null | 2016-02-23T20:37:11 | 2015-07-11T14:38:48 | Python | UTF-8 | Python | false | false | 2,478 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from email.Utils import formatdate
from email import encoders
from email.mime.base import MIMEBase
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
import smtplib
import datetime
import os
from koala.utils import show_error_message
# TOD... | [
"adefelicibus@gmail.com"
] | adefelicibus@gmail.com |
ac0eac50d356d658ba3b95fa27707c44039e1d5d | a96b98aaec11160c0b9c5f3cee3471c2f50e8c1d | /flask_backend/question-classification.py | 120ba1ab70086e7ddb7908cd6d156d938cf2b7b6 | [] | no_license | duvsr01/NLP-based-QA-System-for-custom-KG | ea486c5cdede0ef6a4882b3490e15b9be6e4ce97 | ae7af74b21079b1cc441676064e9aa387d8177a2 | refs/heads/main | 2023-04-30T21:52:52.736928 | 2021-05-15T00:26:40 | 2021-05-15T00:26:40 | 305,169,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,947 | py | import pickle
# Training data
# X is the sample sentences
X = [
'How many courses are taught by Dan Harkey?',
'What is number of faculty in SJSU?',
'How many machine learning courses are on Coursera?',
'How many students are in the world?',
'What is the email of Ram Shyam?',
'What is the email... | [
"vijendersingh.aswal@sjsu.edu"
] | vijendersingh.aswal@sjsu.edu |
4dbac7a2a1cb6e13f4d8d326dca4790eaae5658c | 2715a573e2faf4d52af2578c40e4fd3cbac80c05 | /analysis/spectrum.py | 9134c26ebdcf3d665cf13ef2876cc2d3e022a42b | [] | no_license | legend-exp/CAGE | 9a67d945727831c3b084e177db3a2ff28e4599b1 | 71dfd9f27b6125853e2d3e09d07db7836bf10348 | refs/heads/master | 2023-08-03T21:45:57.955025 | 2023-08-03T20:18:33 | 2023-08-03T20:18:33 | 198,919,238 | 0 | 15 | null | 2022-07-01T17:00:15 | 2019-07-26T00:35:47 | Jupyter Notebook | UTF-8 | Python | false | false | 439 | py | import sys, h5py
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import pygama.io.io_base as io
def main():
filename = '/Users/gothman/Data/CAGE/pygama_dsp/dsp_run42.lh5'
plot_spectrum(filename)
def plot_spectrum(filename):
lh5 = io.LH5Store()
df = lh5.read_object('data', file... | [
"gulden.othman@gmail.com"
] | gulden.othman@gmail.com |
4082075c20005fab8b339bf42d30021fa63be367 | efdc94781d5be9e018c84d5ac5d1b988c2806c68 | /images_dialog.py | 0d5eaf1776a5d2229eca96f68c63264926d00079 | [] | no_license | vadimmpog/PyCalib | bf0a8d46a086feef4bca5d33d7222578c1e98ff0 | 0508dd1745ef341f86f5d9b7977f05d7dc3c031b | refs/heads/main | 2023-08-20T03:07:56.594670 | 2021-10-27T06:43:37 | 2021-10-27T06:43:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,255 | py | from PyQt5 import QtCore
from PyQt5.QtGui import QPixmap, QImage
from PyQt5.QtWidgets import QDialog
from PyQt5 import QtWidgets
import imutils
class ImagesDialog(QDialog):
def __init__(self, frames, show=False):
super().__init__()
self.current_image = 0
self.frames = frames
self.... | [
"vadimmm120@yandex.ru"
] | vadimmm120@yandex.ru |
5722c5bd79ba59802f5e4174de590823f9b31f54 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5631989306621952_1/Python/Hotshot8325/Q2.py | c61b1a46284a8ff8a0e7daff7477923bbd7b7f0f | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 968 | py | #CodeJam pancake problem
import csv
import string
#import data from test file in the form [[[],[]],[[],[]].... with [[],[]] being one test case
with open('a-large.in') as csvfile:
testCase = csv.reader(csvfile, delimiter = ' ', quotechar='|')
rowNum = 0
inputText = []
#swapCount = []
... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
22dbc2be582ff1eae04ea4b6343fb46b0511f014 | 20552c79d92593ab8c574a61ac0dcbd25aa09e2e | /Account/models.py | 825a6a29f4baa7fb9b2f27a207b867a72a95be82 | [] | no_license | junaidgirkar/Unicode_REST-API | 85580f2c85148c1b11ee2fffaae8d8b40aa91def | d9f812f867aabec7df9458511dfb03e7794d7de7 | refs/heads/master | 2023-01-04T11:27:17.964846 | 2020-10-29T13:21:04 | 2020-10-29T13:21:04 | 297,365,250 | 1 | 2 | null | 2020-10-29T13:21:06 | 2020-09-21T14:29:20 | Python | UTF-8 | Python | false | false | 2,331 | py | from django.db import models
from django.contrib.auth.models import AbstractBaseUser, BaseUserManager
from django.contrib.auth.models import PermissionsMixin
from django.utils.translation import ugettext_lazy as _
from .managers import UserManager, StudentManager, TeacherManager
# Create your models here.
class User(... | [
"60307291+junaidgirkar@users.noreply.github.com"
] | 60307291+junaidgirkar@users.noreply.github.com |
f50d553f88129bfc29a4c1bc98e9a6ddfe0af18b | 090bceb6c9418b39056f8aa0204051da621eef01 | /app/views.py | b24b5d9864c45018044b7a0e75b6974701d0c3e8 | [] | no_license | panasevychol/beetroot-test | 627a1bb7b2935d908ed9b4da530ee77d21ae21fa | 102b4dc1616f83038c5851da3f2c9dd83b8b2723 | refs/heads/master | 2021-05-01T22:42:43.723675 | 2016-12-30T13:13:51 | 2016-12-30T13:13:51 | 77,614,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | import json
import sys
import time
from flask import render_template, request
from . import app
from .utils import find_games
@app.route('/')
def index():
keywords = request.args.get('keywords', '')
return render_template('index.html', games=find_games(keywords))
| [
"panasevychol@gmail.com"
] | panasevychol@gmail.com |
65069c192bdcfc8bf792f8d1e63112e0837c7ea7 | 708e17ad98f3143abaf811357883e680991d711f | /python3/happyNum.py | 26195bfb19651e99a7333f4f60b484243ba43fcc | [] | no_license | yichuanma95/leetcode-solns | a363cc8e85f2e8cdd5d2cde6e976cd76d4c4ea93 | 6812253b90bdd5a35c6bfba8eac54da9be26d56c | refs/heads/master | 2021-05-24T18:05:02.588481 | 2020-10-08T00:39:58 | 2020-10-08T00:39:58 | 253,690,413 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,132 | py | '''
Problem 202: Happy Number
Write an algorithm to determine if a number is "happy".
A happy number is a number defined by the following process: Starting with any positive
integer, replace the number by the sum of the squares of its digits, and repeat the process
until the number equals 1 (where it will stay), or i... | [
"ma.yich@husky.neu.edu"
] | ma.yich@husky.neu.edu |
5f6965f66911a55288b83b23515ceb2fe17157db | 9303cc8be6a467be84ff03a1e476c299d7001077 | /main.py | 9e2c4a87e3f5afc2f68c3148a7bf9ada1678b59f | [
"MIT"
] | permissive | AuthFailed/nCoV-tgbot | 8c5908983c7f299ae17f134756d87306e5c5acf4 | d2ecea97b76b6d733d38573cce1a72b8c4a9868e | refs/heads/master | 2022-09-04T23:04:32.702175 | 2022-08-25T00:40:00 | 2022-08-25T00:40:00 | 237,244,007 | 0 | 0 | MIT | 2020-01-30T17:14:49 | 2020-01-30T15:33:42 | Python | UTF-8 | Python | false | false | 4,474 | py | from aiogram import executor
from aiogram.types import *
import info_handler
import keyboard as kb
from config import dp, bot
@dp.message_handler(commands=["start"])
async def start_message(msg: Message):
await msg.reply(
text="Привет! Я отслеживаю статистику заражения 2019-nCoV.\n"
"Использ... | [
"lenz1e973nyro"
] | lenz1e973nyro |
b3c4bd9dc92f583c4160e397ad5aca581ce33ed0 | a14e3faea802cbe20e0c65995bf67b84c41bf0f4 | /tests/test_car_generator.py | 7f6bf58e5bcc413c4cd1624b849d2bdd5335d003 | [
"MIT"
] | permissive | DrimTim32/py_proj_lights | aafdc4b1a0d8de8926c56f92682a9058b3b92db7 | a056e7292b0b81db95316d5d0f517c69a0d473e8 | refs/heads/master | 2020-07-29T00:37:29.021483 | 2017-02-07T15:51:09 | 2017-02-07T15:51:09 | 73,689,047 | 0 | 0 | MIT | 2020-07-14T19:00:44 | 2016-11-14T09:35:24 | Python | UTF-8 | Python | false | false | 769 | py | """This file contains tests for car generator"""
import sys
from simulation import Directions, TurnDirection
from simulation.generators import CarProperGenerator
if "core" not in sys.path[0]:
sys.path.insert(0, 'core')
def test_lights_generator():
prob = {Directions.TOP: [[0, 0, 0]],
Directions.... | [
"barteks95@gmail.com"
] | barteks95@gmail.com |
564f8f9e85d4c8a6057469a98f58669f1dfe7534 | ae22eebfadfdeb33f5c972702a92be266248c5f7 | /Project2_Flask/main_functions.py | a1d535862e0995209a154d4e27cb6ac53a887988 | [] | no_license | ecaru003/COP4813_Project2 | 964831ad9a50634dbaf0b2a397a18b3a76316b63 | 2cfc87d373340c36de11bb7c856addf4dcb905bc | refs/heads/master | 2023-07-24T12:58:28.901004 | 2021-09-01T21:33:38 | 2021-09-01T21:33:38 | 315,692,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | import json
def read_from_file(file_name):
with open(file_name,"r") as read_file:
data=json.load(read_file)
print("You successfully read from {}.".format(file_name))
return data
def save_to_file(data,file_name):
with open(file_name,"w") as write_file:
json.dump(data,write_file,inde... | [
"ecaru003@fiu.edu"
] | ecaru003@fiu.edu |
566302b568f0103bd3c6c2d54e6988ac6dd06f4b | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /JD9vSKZGrxQhLbA9r_11.py | 8153c6d8cc99992256ea1d82f8771cd6328f44f3 | [] | 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 | 255 | py |
def pile_of_cubes(m):
if m >= 10252519345963644753026: return None
x = m**0.5
if (x%1==0):
c = 1
while (x != c and x > 0):
x = x - c
c = c + 1
if (x == c):
return c
return None
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
83a5e8277279567beb43b9117f28f6b87142acf6 | 9f1a165798a13b4fd24b94d23eb137a6763a1bed | /tickets/migrations/0001_initial_squashed_0006_auto_20200610_1403.py | 36b5098cc5ffd8d4476caa47cb08b33bf448b406 | [
"MIT"
] | permissive | AdamCottrill/ticket_tracker | 42455ed9e4b0439df08694b0f73713163aace68a | 72fad3cf9c0e7f44ca62650a2338a5ac7696bcbf | refs/heads/master | 2023-03-04T11:15:55.097923 | 2022-08-25T20:10:46 | 2022-08-25T20:10:46 | 198,422,697 | 1 | 3 | MIT | 2023-02-15T18:25:54 | 2019-07-23T12:07:00 | Python | UTF-8 | Python | false | false | 9,882 | py | # Generated by Django 2.2.13 on 2020-06-10 18:13
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.db.models.manager
import taggit.managers
class Migration(migrations.Migration):
replaces = [
("tickets", "0001_initial"),
("ti... | [
"adam.cottrill@ontario.ca"
] | adam.cottrill@ontario.ca |
7da8e44c7b81b0928a7aa944b72042d967acb70c | 34f3d3c01a29b05e58d7dccca2ac5776e2324d0f | /files/zipModule.py | c6eb11ca46c953549e13a40ae56467d84e0acd7d | [] | no_license | nethirangasai/pythonpgms | d50c485c7f13ba0bdd78b79508d4792caf5e7a20 | c0bfddfea95b22e32cfa53ee8b531b6535b1df42 | refs/heads/master | 2020-05-27T09:55:00.094520 | 2019-05-26T07:56:01 | 2019-05-26T07:56:01 | 188,574,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | from zipfile import ZipFile,ZIP_DEFLATED
f=ZipFile('files.zip','w',ZIP_DEFLATED)
f.write('csvReading.py')
f.write('csvWriting.py')
f.write('students.csv')
f.close() | [
"rangasai.nethi@gmail.com"
] | rangasai.nethi@gmail.com |
a7f1b70b6ba4951bee8aab80789e69f1581b33d1 | c6bf1b52dce9eff35a91f261aa3c33f83c887d3a | /bai 4.15.py | 63f32d74a7b6c67b8ee870d15e735a7cfe4a8ca7 | [] | no_license | bachdinhthang59ktdh/b-i-t-p-ktlt-tr-n-l-p | bfc88fe8a97a0524680d1063daa8d5283a38f8e1 | 7500173e45d0ac032d8657c82e53742de43f1b15 | refs/heads/master | 2022-08-31T22:55:29.845869 | 2020-05-25T06:22:38 | 2020-05-25T06:22:38 | 262,918,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | s=input('nhap chuoi s').split()
s.sort()
for h in s:
print(h)
| [
"noreply@github.com"
] | bachdinhthang59ktdh.noreply@github.com |
d292bf9b5228884b9307bbd114fbf6aae0eda93e | 19b2856c718dab5380d381053c0f1d664faeab53 | /Login/migrations/0001_initial.py | 56a3b97852967f2bab2bfc9395c58579d0fbc9da | [] | no_license | ywl1584/ywl1584.GraduationProject.io | 7f62c50c939274039f304ccee378345fd083a2bf | 18d6b1d199d3ba56ebee8de1c5551e01c7ab5bd5 | refs/heads/master | 2020-04-25T02:22:49.021355 | 2019-02-25T04:59:27 | 2019-02-25T04:59:27 | 172,437,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 992 | py | # Generated by Django 2.1.2 on 2018-10-28 07:42
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',
fields=[
('id', models.AutoField(aut... | [
"your email address1270834936@qq.com"
] | your email address1270834936@qq.com |
b48dcc67a5875823dc15b6cb4f7142b0cdc08af1 | 64cea21dc4834cc876b6788f4cb8572982d2f60a | /product_pricelist_report_qweb/tests/common.py | 34ce1ca81ed41750f6ce505f83679205947fda18 | [] | no_license | yelizariev/addons-vauxoo | 708463f847a75898d99fd8c2045d20ab9083b703 | 511dc410b4eba1f8ea939c6af02a5adea5122c92 | refs/heads/8.0 | 2020-12-11T09:04:04.912471 | 2016-03-17T06:00:36 | 2016-03-17T06:00:36 | 53,125,976 | 3 | 2 | null | 2016-03-04T10:01:48 | 2016-03-04T10:01:48 | null | UTF-8 | Python | false | false | 1,707 | py | # coding: utf-8
# ##########################################################################
# Module Writen to ODOO, Open Source Management Solution
#
# Copyright (c) 2015 Vauxoo - http://www.vauxoo.com/
# All Rights Reserved.
# info Vauxoo (info@vauxoo.com)
# ##############################################... | [
"hbto@vauxoo.com"
] | hbto@vauxoo.com |
32dab3a9805a876cadd1c98c55ad23f5d16cff81 | 2a58920968814b87ee93decf2b887747dbb56c12 | /helpers/create_module/find_path.py | d81d21182ecc2c75dade8d606fbc7d80fa6d75c5 | [] | no_license | chrysa/gae-toolbox-2 | 5e52b2c2ce66358feb82bdd078d6b9ab9f08da2e | b666567359888ff29d2c3dddb0453b762a65d75a | refs/heads/master | 2020-03-29T20:53:11.495776 | 2014-04-16T12:10:17 | 2014-04-16T12:10:17 | 15,781,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,370 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# disco-toolbox-2.helpers.find_path -- fichier de génération du chemin relatif du script en cours d'éxécution
import os
def find_path(module_type, mod_folder):
"""fonction de génération du chemin relatif du script en cours d'éxécution
:param module_type: type de ... | [
"agreau@student.42.fr"
] | agreau@student.42.fr |
c9062fbe8e75b4749ea59e439897d1de93808c00 | a88ac040aa274d94ac8decbbf43a585af56cf825 | /src/perftest.py | d8bb9fedffb0ea4c58157bde543ff3c510c1343f | [] | no_license | s7evinkelevra/Agent-Model | 6dd0544326502c00572db2c2f4cf9785092e9ef3 | f25cde7190736778dbf0d0a5a45fa3a3f3f1efc3 | refs/heads/master | 2023-08-13T02:26:04.232434 | 2021-09-30T12:24:50 | 2021-09-30T12:24:50 | 403,736,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,984 | py | from Bio.Seq import Seq
from matplotlib.ticker import LinearLocator
from matplotlib import cm
import random
from pprint import pprint
import itertools
from collections import deque
import uuid
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import time
rng = np.random.default_rng()
# Random ba... | [
"kelevra.1337@gmail.com"
] | kelevra.1337@gmail.com |
57d8840f3ae45365005e9730310b3b9956021a54 | eace995a65e1029cfb88c9a2764a831717b7b4cb | /rpn.py | 30dcecb9a78d6373463dd42462d47f1d69f267b8 | [
"MIT"
] | permissive | HoangTuan110/rpn-calc | 010115637c80417aefa088db04532c602ad0810e | 8418999cd039cb0f63b828844e34b291e768533b | refs/heads/main | 2023-04-08T13:06:35.181722 | 2021-04-11T11:27:06 | 2021-04-11T11:27:06 | 356,848,524 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,334 | py | """
This is a simple RPN (Reverse Polish Notation) calculator written in Python.
It may be quite slow, but I don't care lol.
"""
def calc(code):
# Variables
tokens = code.split(" ")
stack = []
ops = "+-*/"
result = ""
# Helper functions
push = lambd... | [
"noreply@github.com"
] | HoangTuan110.noreply@github.com |
9eb23f2fb0bdb9407531c0cc21444f0cba5aaead | aa1b98be1dabf14752750999b35aec8d819122fe | /utils.py | 382c10d19fc66a245748c89531951d5c14186ced | [] | no_license | tevonsb/a5 | 8fe8df7461c8515b649e3d3b601befc968c694d1 | 8d183228ed280582c45dba589f413405a49a49c4 | refs/heads/master | 2020-04-25T00:42:54.714606 | 2019-02-24T20:33:58 | 2019-02-24T20:33:58 | 172,386,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,328 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
CS224N 2018-19: Homework 5
nmt.py: NMT Model
Pencheng Yin <pcyin@cs.cmu.edu>
Sahil Chopra <schopra8@stanford.edu>
"""
import math
from typing import List
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
def pad_sents_char(sents,... | [
"tevon.strandbrown@gmail.com"
] | tevon.strandbrown@gmail.com |
338f0fba5917e4ae0b096d9a4b4b41e5389d4123 | 05e2452e154806455d2d829466055f0ac8a11f92 | /Name/wsgi.py | 64efb28a6a226a33c4fe67a9c9bcc6ede1cd3dee | [] | no_license | WesamAlmasri/Translator | 35a295ca8aa2ded1ccc315e19494201475491cf4 | 875a324a4cb7a75c7b80f51ba420c3efc2306092 | refs/heads/main | 2023-04-03T03:48:56.830044 | 2021-04-03T13:20:30 | 2021-04-03T13:20:30 | 353,406,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
WSGI config for Name project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJ... | [
"mr0virus@gmail.com"
] | mr0virus@gmail.com |
029e8d41228f8d09c6e0cb103693dbf48021707d | eb008a137a8da49d48985240bea8c29e0966293a | /tools/config.py | 5d5a6fcb30acfb04f0bf90925fd32b94d98ea154 | [] | no_license | Kukushenok/GunParty | 4a5f7de407b68061c46cc645658b11cba3edd2d8 | acac4ea8bd80ec9101a8a2f64a08f594f0edf31c | refs/heads/master | 2021-05-12T11:09:17.202229 | 2018-02-24T18:32:15 | 2018-02-24T18:32:15 | 117,379,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,190 | py | import configparser
import os
import pygame
class Config():
def __init__(self,defaultPath = None,path = None):
self.defaultPath = defaultPath
self.config = configparser.ConfigParser()
self.defaultConfig = configparser.ConfigParser()
if path:
self.config.read(os.path.join(... | [
"mrcoolmoder@gmail.com"
] | mrcoolmoder@gmail.com |
b9862bab92c4aa791fbc0851e03b13c965d9dff8 | 8ee86008310da9954e3c200dd4711d295d449329 | /blog/urls.py | 0e0724f937f23bacaf9bde8904f4b9f53f37edd2 | [] | no_license | madp3e/Blog | 846fef127330b9f600c7b0c15a080efb5de4a148 | 1379041c68c6e4045d25a5f1bf9ff325457788e7 | refs/heads/master | 2022-11-26T22:39:36.391205 | 2019-12-12T11:47:25 | 2019-12-12T11:47:25 | 227,589,494 | 0 | 0 | null | 2022-11-22T04:37:45 | 2019-12-12T11:19:41 | Python | UTF-8 | Python | false | false | 774 | py | from django.urls import path
from . import views
from .views import (PostListView,
PostDetailView,
PostCreateView,
PostUpdateView,
PostDeleteView,
UserPostListView)
urlpatterns = [
path("", PostListView.as_view(), n... | [
"ahmadfaizuddin17@gmail.com"
] | ahmadfaizuddin17@gmail.com |
01056432f916ec5052c06f42038020cc0f7a42d4 | 27b2cee1701a2e3073ecf020065f697c5b145de0 | /txboto/auth_handler.py | 86da5f1288ca2ecd9647ca8feb619d35631317b4 | [
"ADSL",
"BSD-3-Clause"
] | permissive | 2mf/txboto | 25209b2d5c465ca093581dda281ae65e3e17103e | 3ecc5c5e86b650edc6c3b42064a07d42faa210e4 | refs/heads/master | 2020-04-25T08:40:47.640350 | 2017-02-22T11:38:21 | 2017-02-22T11:38:21 | 45,603,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,618 | py | # Copyright 2010 Google Inc.
# Copyright (c) 2015 Silver Egg Technology, Co., Ltd.
# Copyright (c) 2015 Michael Franke
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# 1. Redistributions of sou... | [
"mf33456@gmail.com"
] | mf33456@gmail.com |
3a829b2c788daa3d8a5b5cdfa4c5b6ccd3daabd7 | fefa88dd63533ed36ec4f86c029b5d9a00a3ad82 | /monapi/serializers.py | 987d80eaf5e66ca2d97f70f100a17e9b7334545c | [] | no_license | jeremyguiller/Api-mairie | f8fee21610acfb2ec20fdb761d5cb854a82480e5 | 7f1a6173e5ef0c25f2971f8a7e41adf8e88b8d8c | refs/heads/master | 2023-04-06T15:33:48.750300 | 2021-04-26T11:44:03 | 2021-04-26T11:44:03 | 361,729,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 763 | py | from rest_framework import serializers , fields
from .models import Location,Texte,Image,Administrateur
class Locationserializer(serializers.HyperlinkedModelSerializer):
date = serializers.DateTimeField()
class Meta:
model = Location
fields = ('date','name','confirmer')
class Admi... | [
"guillerjeremy@gmail.com"
] | guillerjeremy@gmail.com |
fa76acace0c4cd47c3cdb6b96aa8b5eed60ae7bf | 8a41ef3e60355b867116754444d3b844721b7ff9 | /how2pizza/pizza/admin.py | ea329c4b7c6a2a8d549786f75503dd73fe4627be | [
"MIT"
] | permissive | ianonavy/how2pizza | 12cc99b1f8adc6aa5513d396cb67ecb62039554e | ebac7b0cd2ea3be851eddb3fe221c11d1a2a426a | refs/heads/master | 2021-01-23T22:07:46.822089 | 2015-05-28T05:55:59 | 2015-05-28T05:55:59 | 31,512,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | from django.contrib import admin
from pizza.models import PizzaOrder, PizzaOrderUserChoice, PizzaType
@admin.register(PizzaOrder)
class PizzaOrderAdmin(admin.ModelAdmin):
list_display = ('id', 'created_at')
@admin.register(PizzaOrderUserChoice)
class PizzaOrderUserChoiceAdmin(admin.ModelAdmin):
pass
@admi... | [
"ianonavy@gmail.com"
] | ianonavy@gmail.com |
7421e6059aeff1e3016934fea7f9e2910344351e | 83648babb83497ff162ccfa6104c1f09029bcb37 | /local_global.py | aa1da55f52fde40d694f0c3e6e2fb5b0626ebf22 | [] | no_license | seeni-eldho/pythonProgram | aeeb5ec559049feb4d331b3a40e09f21f9b799b2 | 3361c4673d85e0bfb0df93414c573bdd3a4944b0 | refs/heads/master | 2023-08-07T17:54:24.405327 | 2021-09-22T09:40:04 | 2021-09-22T09:40:04 | 402,530,682 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 82 | py | x=5
def foo():
global y
y=7
print('loccal',y)
foo()
print('local',y)
| [
"seenieldho85@gmail.com"
] | seenieldho85@gmail.com |
05f1c23936d977e70fdef1e44fc27ab9f069cadf | 55647a80c8b412af9df0ba3f50595cc2f29c25e6 | /res/scripts/common/Lib/encodings/gbk.py | 4b4a46dcbfdea9c2f98724c76a52405e54febf9c | [] | no_license | cnsuhao/WOT-0.9.17-CT | 0035eb6070fb4fab8d8ee9f8bbc676c10d511cfb | d1f932d8cabaf8aa21708622e87f83c8d24d6451 | refs/heads/master | 2021-06-08T18:11:07.039293 | 2016-11-19T19:12:37 | 2016-11-19T19:12:37 | null | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 1,136 | py | # 2016.11.19 19:58:56 Střední Evropa (běžný čas)
# Embedded file name: scripts/common/Lib/encodings/gbk.py
import _codecs_cn, codecs
import _multibytecodec as mbc
codec = _codecs_cn.getcodec('gbk')
class Codec(codecs.Codec):
encode = codec.encode
decode = codec.decode
class IncrementalEncoder(mbc.MultibyteIn... | [
"info@webium.sk"
] | info@webium.sk |
c8e453ae1f4aa67ae58b7f6d6dd39e2b6c2afb3d | 0367d2c25de1584fd064522e9b9efc8fa52d1478 | /odd_eve_list.py | c97aec023602a1865225836fc042828587cb288f | [] | no_license | sk013/Python_Basic_Programs | 9d69698f28246f6787c695e20d5b2b4a45417019 | c44ed384e8185261ef4fd715694362269837d6c8 | refs/heads/main | 2023-05-03T12:04:20.144301 | 2021-05-26T17:43:22 | 2021-05-26T17:43:22 | 371,121,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | def odd_eve(l):
odd = []
eve = []
for i in l:
if i%2==0:
eve.append(i)
else :
odd.append(i)
output = [eve,odd]
return output
numbers = [1,2,4,3,5,6,54,2,36,43,31]
print(odd_eve(numbers)) | [
"noreply@github.com"
] | sk013.noreply@github.com |
782612e4635027ea04a2431e6dc0a11bcc45d1ee | e82ba9e19c415e5eeff4a48f52dbd7efc4ae4d6b | /9.sort/BubbleSort2.py | a43b5016f4aa1cde02f156f1bd522421ff774c94 | [] | no_license | GoldK11/dataSKKU | 8a4dbbd5adb6b766a28cdfaba3b9a744992d4e41 | 24b5e82e5456daf3c07db271e1b6932661c967a3 | refs/heads/master | 2021-08-23T01:33:16.984279 | 2017-12-02T05:39:34 | 2017-12-02T05:39:34 | 112,315,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,661 | py | # 0 부터 ( 좀 이상함)
def bubbleSort(l):
count =0
for i in range(len(l)):
for j in range(i+1,len(l)):
count+=1
if l[i]>l[j]:
(l[i],l[j])=(l[j],l[i])
return count
l = [53, 112, 174, 200, 258, 123, 184, 254, 232, 136, 198, 3, 286, 6, 62, 57, 110, 10, 17, 189, 291, 2... | [
"ssori113@gmail.com"
] | ssori113@gmail.com |
cd75f26df497e0e47746786f0197f8dc9b218f06 | 930c207e245c320b108e9699bbbb036260a36d6a | /BRICK-RDFAlchemy/generatedCode/brick/brickschema/org/schema/_1_0_2/Brick/FCU_Return_Air_Temperature_Sensor.py | d4ac39c9698a57051d03037b2f79dc41b5511c4b | [] | no_license | InnovationSE/BRICK-Generated-By-OLGA | 24d278f543471e1ce622f5f45d9e305790181fff | 7874dfa450a8a2b6a6f9927c0f91f9c7d2abd4d2 | refs/heads/master | 2021-07-01T14:13:11.302860 | 2017-09-21T12:44:17 | 2017-09-21T12:44:17 | 104,251,784 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | from rdflib import Namespace, Graph, Literal, RDF, URIRef
from rdfalchemy.rdfSubject import rdfSubject
from rdfalchemy import rdfSingle, rdfMultiple, rdfList
from brick.brickschema.org.schema._1_0_2.Brick.Return_Air_Temperature_Sensor import Return_Air_Temperature_Sensor
class FCU_Return_Air_Temperature_Sensor(Retur... | [
"Andre.Ponnouradjane@non.schneider-electric.com"
] | Andre.Ponnouradjane@non.schneider-electric.com |
b66bdcf6efc1e3d36d06876d5a98947743683ff5 | 95a05bee4ef9a16da7185e7651685d7df71d55af | /metadata.py | 4daf5b1243803c996a12e9c057b935b032fb26d4 | [
"Unlicense"
] | permissive | ArniDagur/auto-rental | 0f0b342c1a0d320100f4bcaba4a881f78358b76e | 8b7fcf724c7501c0414454771addbd36be185b26 | refs/heads/master | 2020-04-10T16:44:39.510794 | 2018-12-10T10:06:25 | 2018-12-10T10:06:25 | 161,154,249 | 0 | 0 | Unlicense | 2018-12-10T10:01:58 | 2018-12-10T10:01:58 | null | UTF-8 | Python | false | false | 444 | py | import os
from appdirs import user_data_dir
# Information for humans:
# -----------------------------------------------------------------------------
APPNAME = 'Auto-Rental'
AUTHOR = 'hopur-32'
# Information for computers:
# -----------------------------------------------------------------------------
DATA_DIR = user... | [
"arnidg@protonmail.ch"
] | arnidg@protonmail.ch |
6a2758f58f6ef665dec7ea80ebf419557651d695 | 1443c180718ea74cb0862d112a7c08d6ec5d1828 | /flaskfundamental/DojoSurvey2/DojoSurvey.py | 2061cf3d5200337887342ecb7b0ebbf99da85a33 | [] | no_license | Dragonlizard1/Python_Project | 7ca7e7f4245f1d1394542127c107fe5f79e0cafe | be83d84dddc6b1c30fd231a0e15f60da5a5bceb2 | refs/heads/master | 2020-03-12T23:41:16.856306 | 2018-04-24T16:39:50 | 2018-04-24T16:39:50 | 130,871,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 964 | py | from flask import Flask, render_template, request, session, redirect, flash
app = Flask(__name__)
app.secret_key = 'ThisIsSecret'
@app.route("/")
def index():
return render_template("form.html")
@app.route("/result", methods = ["POST"])
def infoprocess():
name = request.form["name"]
location = requ... | [
"bobbyimaging@gmail.com"
] | bobbyimaging@gmail.com |
46f9807e15556efa7d2439bee101b14f588ee791 | 44413721791e00e5e0d728d2063cce9d072680bc | /env/bin/jupyter-nbextension | f272010110d6ad96be430c20709bbda7f2ea6cb7 | [] | no_license | andriyka/term-extraction-and-ontology-learning | 5174ba52db93bc3dd22b75a41c998c5e23a3bcd5 | 2fa478f1f6f28949d461331f6e8348f86bd344e1 | refs/heads/master | 2020-03-21T19:05:07.755413 | 2018-07-09T16:46:58 | 2018-07-09T16:46:58 | 138,929,875 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | #!/home/ankus/Documents/ucu/terms/ate/env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from notebook.nbextensions import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"ankus@ciklum.com"
] | ankus@ciklum.com | |
b52563bc708de755093f4abaf4427720c8741e1c | 654acf62f757435f11afe3edb784c19ba9a996b5 | /Cmimid/src/generalizetokens.py | b8d1ba37156b9a633f7d37b92cf041e669f90ced | [] | no_license | anonymous-scientist/anonymous-scientist.github.io | 92337f97ed48f68f2b8de0f2a23de31fac6ee702 | b699788fc0c44d03e4d3e172428202f52a57fd08 | refs/heads/master | 2020-07-05T21:10:15.055470 | 2020-03-11T10:22:38 | 2020-03-11T10:22:38 | 202,777,252 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,277 | py | #!/usr/bin/env python
import sys
import pudb
import grammartools
# ulimit -s 100000
sys.setrecursionlimit(99000)
import random
import string
import util
import copy
import json
import re
import fuzz as F
import subprocess
b = pudb.set_trace
def is_nt(token):
return token.startswith('<') and token.endswith('>')
def... | [
"anonymous@anonymous.net"
] | anonymous@anonymous.net |
b74ebd69ba2428966df06b67ec9e088623bd0bc7 | b7b2728bcfeda781ef79540dc46577f4a772e471 | /django_hbase/models/exceptions.py | 6cfcf27b10ce6d62f13764fc2cea8fbbda7e7c11 | [] | no_license | Veronica1026/django-twitter | 7dd8e0efe84d50654bc92f83bf6ac0bb0c6b432e | e28e8fe5443db48b761cd2e4e6a43e0d0c3590ff | refs/heads/main | 2023-08-25T16:15:36.092192 | 2021-10-23T10:41:00 | 2021-10-23T10:41:00 | 364,218,123 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | class BadRowKeyError(Exception):
pass
class EmptyColumnError(Exception):
pass
| [
"543587590@qq.com"
] | 543587590@qq.com |
1158acb79cf822c0ded1ea29f10b77727305c073 | cd142a4e15d3576546fcb44841417039f0b8fb00 | /build/double/catkin_generated/pkg.installspace.context.pc.py | 9b014836f2e3e476722b6c40aa901294660dad37 | [] | no_license | mgou123/rplidar | 4389819eb1998d404d1066c7b4a983972d236ce7 | 608c1f6da2d3e5a8bac06e8d55d8569af828a40b | refs/heads/master | 2022-11-10T05:51:56.403293 | 2020-06-29T04:16:14 | 2020-06-29T04:16:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "roscpp;std_msgs;sensor_msgs".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "double"
PR... | [
"492798337@qq.com"
] | 492798337@qq.com |
7ff7ebba377cd3e6d83e88368536f529b763202f | e966ac971af90faff55fce232620f3d0ad7f7fb8 | /com/swj/OOP/Fundamental.py | a0241ea4e38f9bd58018cf65265a64b4d8590778 | [] | no_license | shouguouo/PythonDemo | f987b9849e01806ccb6c370bbd4d4ba9675629ec | d9011506e3474054e2f5b1246f8e014facea7961 | refs/heads/master | 2021-09-21T23:55:53.258819 | 2018-09-03T15:47:27 | 2018-09-03T15:47:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,441 | py | # -*- coding: utf-8 -*-
# class Student(object): # 表示从object类中继承
# pass
# bart = Student()
# print(bart)
# print(Student)
# bart.name = 'swj'
# print(bart.name)
# class Student(object):
# def __init__(self, name, score): # 第一个参数永远是self表示创建的实例本身 不用传 其他参数需要传
# self.name = name
# self.score = sc... | [
"1132331056@qq.com"
] | 1132331056@qq.com |
bb49d8dd28b9c93d2856e8511907f5a8c6efa6fb | ade3b5a88b2129d2e305d7be1a36dcda283a4c59 | /Lab3/utils.py | 8d718c9de473a5d7800d0b6f86c650cb1ac74dc5 | [] | no_license | jelenab98/DL_FER | 0e299003d1a41a7b502853b0643cb9e0bf8138a9 | 258eba86c708b53f96e92f2c2f5e9cb458e093ef | refs/heads/master | 2023-08-21T21:51:47.256101 | 2021-10-26T14:44:54 | 2021-10-26T14:44:54 | 347,167,124 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,674 | py | <<<<<<< HEAD
from sklearn.metrics import confusion_matrix as conf_matrix
from torch.nn.utils.rnn import pad_sequence
from torch.nn.utils import clip_grad_norm_
from torch.utils.data import Dataset
from torch.nn import Embedding
from pathlib import Path
from tqdm import tqdm
import pandas as pd
import numpy as np
impo... | [
"jelena.bratulic@gmail.hr"
] | jelena.bratulic@gmail.hr |
488243e5d4538da2bac8bd00083dfb737797e000 | 4dcee7dff58a6f0364283787aa7ad1dff16721e1 | /pre_pred_bert.py | 85a565945bd985a6dbd43cc220760b93320738a5 | [] | no_license | karthikpuranik11/Masked-LM | ead8bcb5bcaedb8b62b627cc6dab2ce3c5fefcbe | bb049e493bc9968e3c50cac1fe88ebe7c436523f | refs/heads/main | 2023-03-18T21:51:27.842906 | 2021-03-07T17:37:54 | 2021-03-07T17:37:54 | 342,780,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | a=predict_masked_sent('The animals came to the meeting.', top_k=5)
for j in range(len(a)):
x=0
a[j]=a[j].split()
#print(a[j])
tok = pos_tag(a[j])
for k in range(len(tok)):
if tok[k][0]=='[MASK]':
break
elif tok[k][1]=='IN' or tok[k][1]=='TO':
pred=' '.join(a[j])
print(pred... | [
"noreply@github.com"
] | karthikpuranik11.noreply@github.com |
0d3f672dc0e572c955fb17809d11692cbcc434be | c01e107f3b781df76f83ca470c22c32cacf7ddb3 | /src/qsimulator.py | 1d6549fd4668f7e4d098970cfbe3b45a9491cc92 | [] | no_license | UB-Quantic/EG-VQClass | 593d24d10da3295532fa2064d098b59de433e91e | ff3ae612d666c80d6dbc38d461ecae79e3c82208 | refs/heads/master | 2020-04-27T17:28:11.308759 | 2019-03-26T20:28:21 | 2019-03-26T20:28:21 | 174,520,998 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 13,336 | py | import numpy as np
import math
import cmath
Pi = math.pi
class QC(object):
def __init__(self, qubits):
self.size = qubits
"""
The quantum state is initialized with all qubits at 0.
"""
self.state = [0]*2**self.size
self.state[0] = 1.
def initialize(self):
... | [
"emgilfuster@gmail.com"
] | emgilfuster@gmail.com |
76755ff963dbd261a204a635342afde89fe3cf1b | f12ca610566e7249c892811bafc37594abe7895a | /orangecontrib/text/country_codes.py | 17a5b1ff2687507b4e62449ea0e34095ab18856a | [
"BSD-2-Clause"
] | permissive | nagyistoce/orange3-text | d04e6dfa68a7e86a4947c08bc2a078b4c0e772f5 | fbdc3320b00a88c62ba866a671f28694958f6921 | refs/heads/master | 2021-01-21T09:43:25.598139 | 2015-06-27T14:32:09 | 2015-06-27T14:32:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,422 | py | """Country names to ISO3166_alpha2 codes mapping
Roughly generated by the following bash script on GNU/Linux:
while read cc name; do
[ ! "$cc" ] &&
continue
out=$(isoquery $cc | cut -f3 --complement);
[ ! "$out" ] &&
out="$cc"
[ "$(echo $out | cut -f3)" = "$... | [
"kerncece@gmail.com"
] | kerncece@gmail.com |
2847baf0977045d715c296153c4a804ffd01798a | 0592c83ef8bed931d310c1233a0e329a21876cbe | /tests/test_dataset.py | d4f1a84980c48f6536ff0ed15f5ab4dc09a3e1f3 | [] | no_license | datastory-org/frame2package | 81d12439715f42dce8cdbd80853c16bba481da28 | bea7e7d45ced2e9792078088b1e6271360bc86f8 | refs/heads/master | 2020-04-17T04:50:40.112731 | 2019-06-18T10:58:18 | 2019-06-18T10:58:18 | 166,248,711 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,867 | py | import unittest
import pandas as pd
from frame2package import Dataset, Concept
class DatasetTestCase(unittest.TestCase):
def setUp(self):
data = [
{
'country': 'Sweden',
'capital': 'Stockholm',
'year': 2000,
'population': 9_000_00... | [
"robin.linderborg@gmail.com"
] | robin.linderborg@gmail.com |
6af4d1ec5bd8fce9532cd1238fb58d598e8ad97f | ad7dd3db001cbf322d0944c120b42e78b9fe00b9 | /champakraja/ramu.py | febc73ee66c76c06e50b7ac645f3a8c690a56002 | [
"MIT"
] | permissive | jeldikk/champakraja | ebfd4ff04a0a1e48b2d6f31c4695e4ddae532e64 | 1462be4c8458b5bc2816b9aa69c1845482e702e1 | refs/heads/master | 2022-12-03T03:04:33.217318 | 2020-08-22T16:53:09 | 2020-08-22T16:53:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | from .base import character
class ramu(character):
def __init__(self,name):
self._name = name
@property
def name(self):
return self._name
def books(self):
return ('chandamama', 'swathi', 'ramayanam', 'Mahabharatham',)
def hobbies(self):
return ('respecting', 'wo... | [
"jeldi.kamal2011@gmail.com"
] | jeldi.kamal2011@gmail.com |
d371052b610c7808f4397cc46872d84018712958 | 78224a508b75e7958cec6a2759b8ba4c46cb4bfc | /exchange/okex/HttpMD5Util.py | a15b45816241c7353aa08cd55590e4fe1a805b91 | [] | no_license | 80000v/CryptoArb | 34e731b11c3b29a3643c1aa79b921e0ef879b4d9 | 5b9d3e05af99a70a09481f1370bc863f7ca84d66 | refs/heads/master | 2021-04-20T10:24:07.959747 | 2019-04-04T14:17:46 | 2019-04-04T14:17:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,370 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#用于进行http请求,以及MD5加密,生成签名的工具类
import requests
import hashlib
#初始化apikey,secretkey,url
apikey = '1cd704d7-d549-436b-a5ee-df7e401843d3'
secretkey = '1AE1EE7238F5485D35E128194B821181'
okcoinRESTURL = 'https://www.okcoin.cn'
BaseUrl = "/v2/auth/login"
DEFAULT_POST_HEADERS = {
# "... | [
"huang.xinyu@wanlitechnologies.com"
] | huang.xinyu@wanlitechnologies.com |
237743cb29e83580cbade37977253888764a05b4 | f4f54015298eedfbbdfcaaf5e2a9603112f803a5 | /sachin/gocept.filestore-0.3/gocept.filestore-0.3/src/gocept/filestore/tests.py | 39487c46c2cf44f18a2df60610d46b4e1e9848c4 | [] | no_license | raviramawat8/Old_Python_Codes | f61e19bff46856fda230a096aa789c7e54bd97ca | f940aed0611b0636e1a1b6826fa009ceb2473c2b | refs/heads/master | 2020-03-22T22:54:50.964816 | 2018-06-16T01:39:43 | 2018-06-16T01:39:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | # Copyright (c) 2007 gocept gmbh & co. kg
# See also LICENSE.txt
# $Id: tests.py 5111 2007-08-30 11:27:23Z zagy $
import unittest
from zope.testing import doctest
def test_suite():
suite = unittest.TestSuite()
suite.addTest(doctest.DocFileSuite(
'README.txt',
optionflags=doctest.ELLIPSIS))
... | [
"sachinyadav3496@gmail.com"
] | sachinyadav3496@gmail.com |
672931fd1ee8dae6d584fb3ff8d812002ab628cc | e62a8c1ee3ac295f8028164d6ba4993c189fd774 | /btpython/testbikieu.py | 4397d561992f473bb43fea830ed8f408eaa117f4 | [] | no_license | thanhthai3457/Linux | 8ac32919a59189ff35e9c2c3883303893bd245f7 | 55fd16be99922a1c6c9958ae3c1f0af40879b5a7 | refs/heads/master | 2020-03-11T18:43:05.248945 | 2018-06-13T15:45:50 | 2018-06-13T15:45:50 | 130,185,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | from bikeu import thai
sv1 = thai()
sv1.set_ten()
sv1.set_sdt()
print ("Thông tin")
sv1.In()
| [
"thanh@example.com"
] | thanh@example.com |
1b6117c360304db090e45da73264909875f05ed9 | 5beb2410b95be9d26cfca2094a446ec2be16ce50 | /ma/01.py | 4d605bc065cc51c0c1723ede396f4b18f370e22a | [] | no_license | 1361217049/python | abbde08f88125aa21e6f24aa5183798972c02af3 | ae92c33437e617203b28aaf6c644c26a0c17fb69 | refs/heads/master | 2020-04-01T06:42:34.757234 | 2018-10-14T10:00:33 | 2018-10-14T10:00:33 | 152,960,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | #定义一个类
class Student():
def out(self):
print("我爱++++")
pass
han=Student()
han.out()
Student.__dict__
print(1) | [
"1361217049@qq.com"
] | 1361217049@qq.com |
1eb7d4b356ecdfbafd7359821f946512d7724998 | bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d | /lib/googlecloudsdk/generated_clients/apis/artifactregistry/v1beta2/resources.py | 1c5440583e39b379a1c8a68cde0b2d6841f35146 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | google-cloud-sdk-unofficial/google-cloud-sdk | 05fbb473d629195f25887fc5bfaa712f2cbc0a24 | 392abf004b16203030e6efd2f0af24db7c8d669e | refs/heads/master | 2023-08-31T05:40:41.317697 | 2023-08-23T18:23:16 | 2023-08-23T18:23:16 | 335,182,594 | 9 | 2 | NOASSERTION | 2022-10-29T20:49:13 | 2021-02-02T05:47:30 | Python | UTF-8 | Python | false | false | 3,295 | py | # -*- coding: utf-8 -*- #
# Copyright 2023 Google LLC. 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 requir... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
691231d66568dfb3947334005eca7c99975d2ce9 | 32d4e716d6291b95716541e55e166e9b8fc87ef4 | /parser.py | 7650fbaadac29f60240aa6bd7799aca1dd83e175 | [] | no_license | ShamilyanOksana/Parser | d0555e8e27679fb3c9876e1b2eab5503e032013a | 05dcf604ff14d8ff60f4c8cdb619bd9c540dfa3c | refs/heads/master | 2021-09-01T12:08:17.433032 | 2017-12-26T22:25:25 | 2017-12-26T22:25:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,514 | py | import requests
from bs4 import BeautifulSoup
class Phone:
pass
def get_html(url):
url = "https://www.avito.ru/taganrog/telefony/samsung?q=sumsung&p=1"
r = requests.get(url)
return r.text
def get_total_pages(html):
soup = BeautifulSoup(html, 'lxml')
pages = soup.find('div', class_='pagin... | [
"shamilyanoksana@gmail.com"
] | shamilyanoksana@gmail.com |
9805ffe4daef50c8bdfe737999913fe9357c8479 | e4da82e4beb9b1af7694fd5b49824a1c53ee59ff | /AutoWorkup/SEMTools/registration/averagebraingenerator.py | b206faa7d7b842adead8675771f35338e6d91db4 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | ipekoguz/BRAINSTools | c8732a9206525adb5779eb0c2ed97f448e2df47f | dc32fa0820a0d0b3bd882fa744e79194c9c137bc | refs/heads/master | 2021-01-18T08:37:03.883250 | 2013-05-14T21:08:33 | 2013-05-14T21:08:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,709 | py | # -*- coding: utf8 -*-
"""Autogenerated file - DO NOT EDIT
If you spot a bug, please report it on the mailing list and/or change the generator."""
from nipype.interfaces.base import CommandLine, CommandLineInputSpec, SEMLikeCommandLine, TraitedSpec, File, Directory, traits, isdefined, InputMultiPath, OutputMultiPath
... | [
"hans-johnson@uiowa.edu"
] | hans-johnson@uiowa.edu |
85daa9a73cfbe7b2a17557ab40ced26375f501d9 | 911fc2c6bc552d83fb0d2481d556e0979cd20101 | /mdb.py | 1756c62bf6bbe864e38ce14e929d13411a37b47c | [] | no_license | riyasleo10/AM_filter_bot | 75ed5b67632efa8c3d18911b6fdeb5437ad190c5 | 4193148a0cc4e5e2eaf7caf94943d2a44f4cb3f6 | refs/heads/main | 2023-03-22T11:31:36.098569 | 2021-03-18T17:42:54 | 2021-03-18T17:42:54 | 348,805,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,001 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @trojanzhex
import re
import pymongo
from pymongo.errors import DuplicateKeyError
from marshmallow.exceptions import ValidationError
from config import DATABASE_URI, DATABASE_NAME
myclient = pymongo.MongoClient(DATABASE_URI)
mydb = myclient[DATABASE_NAME]
async ... | [
"noreply@github.com"
] | riyasleo10.noreply@github.com |
2ff9dcabc42e8fe5f217ef5bf6abf5b015fb7183 | 4f5513932010a81b0330917d2aa2f4fde39a04d6 | /wall_app/models.py | 948459eec11f5d2f4b83d54fc36e7e806e8f502e | [] | no_license | pfuentea/the_wall | c58067f0219040900b4240ec71f50afcbb4ceff2 | 550f59945720d8b148aed12b7856cbc443dd8c60 | refs/heads/main | 2023-07-22T07:18:13.667222 | 2021-09-08T03:15:57 | 2021-09-08T03:15:57 | 402,581,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,918 | py | from django.db import models
# Create your models here.
class UserManager(models.Manager):
def basic_validator(self, postData):
errors={}
if postData['password_confirm']!=postData['password']:
errors["password"] = "Las contraseñas deben coincidir"
return errors
class User(mode... | [
"patricio.fuentealba.feliu@gmail.com"
] | patricio.fuentealba.feliu@gmail.com |
4d9f3c3aaa1eb99f9250a21ad48e579ff04e13ed | 211092990562ac699369246c59dff2bee9192a49 | /hw2/T2_P3.py | 233ca33a51ad90369b3a0ad7bccce2b706851567 | [] | no_license | haritoshpatel1997/Harvard_Course_CS181_2021 | 337b00211b6f34586d9c1fd7950bbeee56dae9eb | 3bc223f1f022bd4e224298b6d299b42c45672100 | refs/heads/main | 2023-04-06T10:35:31.811861 | 2021-04-23T15:16:05 | 2021-04-23T15:16:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,703 | py | # Don't change these imports. Note that the last two are the
# class implementations that you will implement in
# T2_P3_LogisticRegression.py and T2_P3_GaussianGenerativeModel.py
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib.colors as c
import matplotlib.patches as mpatches
fr... | [
"jonathanchu33@gmail.com"
] | jonathanchu33@gmail.com |
4ff8a625e52e7a2fc0f40fd40fdb70a36086c6e2 | ad13583673551857615498b9605d9dcab63bb2c3 | /output/instances/sunData/SType/ST_facets/ST_facets00201m/ST_facets00201m9_p.py | 6b09bb1b8dd9512268b76bbd79e2c658e0d3fc7d | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 139 | py | from output.models.sun_data.stype.st_facets.st_facets00201m.st_facets00201m9_xsd.st_facets00201m9 import Test
obj = Test(
value=10
)
| [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
d733e8db920ee09bf0f15babc827291aeda2b2a9 | af6e9d54859eaa36742bd670da15ea5542793ca8 | /5task/send.py | 8833b1047975b74b572e5f9ffd283c0979f66fbe | [] | no_license | gavritenkov/vezdecode | e5c068addfa56d0c5a277b861766330ad0c725e0 | 79c9dda1044dd69cbebb0cdf1e08030188251b4b | refs/heads/master | 2023-04-11T09:31:14.123289 | 2021-04-24T18:07:59 | 2021-04-24T18:07:59 | 361,219,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,509 | py | import string
import smtplib
import random
import urllib.request
from cryptography.fernet import Fernet
import base64
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import hashes
from cryptography.hazmat.primitives.kdf.pbkdf2 import PBKDF2HMAC
#Генератор ключей
def key_gen... | [
"kgavritenkov@gmail.com"
] | kgavritenkov@gmail.com |
625ed010dc1eb9f52ce77596a5a4e7dfeafa600d | 6226e852484e3ceaf27389a021b3215a6ee02e3d | /Entrega 1/balistica.py | 884537fba547bed4c42d61deec34e11d28f84cec | [] | no_license | DiegoAparicio/MCOC2020-P1 | d7e7dd2cd1a66694c914d4f552bf0ba5e76f44d2 | 84e2b7c7a1d3dfdd9eddb3f8f3e6ff4a111240ff | refs/heads/master | 2022-12-23T08:21:15.692241 | 2020-09-12T01:11:16 | 2020-09-12T01:11:16 | 289,975,895 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,411 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Aug 24 09:48:20 2020
@author: 56977
"""
import scipy as sp
from scipy.integrate import odeint
#parametros:
p = 1.225 #kg/m3
cd = 0.47
cm = 0.01
inch = 2.54*cm
D = 8.5*inch
r = D/2
A = sp.pi*r**2
CD = 0.5*p*cd*A
g = 9.81 #m/s2
m = 15
Vs = [0... | [
"noreply@github.com"
] | DiegoAparicio.noreply@github.com |
eddff0d30d84daa619346f62be32cd51bd14262c | 702c8a229ec80537e9864959220c75aaabb28548 | /taobao.py | 01f8d6dd7e92faac959d6bc370761b440d2e7af4 | [] | no_license | 17181370591/wode | 67de606298da7daf9e73dae8822a03ade9065ddc | 4c574ec33f17c2b65f1fec7eb0adfb6dd05f141e | refs/heads/master | 2021-06-23T18:21:18.796955 | 2019-06-13T09:56:48 | 2019-06-13T09:56:48 | 114,825,512 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | from urllib.request import urlopen
from bs4 import BeautifulSoup
import re
p=urlopen('https://buyertrade.taobao.com/trade/itemlist/list_bought_items.htm?spm=a3204.7139825.a2226mz.9.I5133L&t=20110530')
print(p.read())
| [
"noreply@github.com"
] | 17181370591.noreply@github.com |
8927c9bfdeb3e5161e03c5bbfb20291758317781 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2367/60791/254956.py | 3891197249694bfc95edf61b7fdb4f59e0c7209d | [] | 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 | 127 | py | k = int(input())
n = '1'
if(k%2==0 or k%5==0):
print(-1)
else:
while(int(n)%k != 0):
n += '1'
print(len(n)) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
c7ffbc120879b204d210b4e4d5cc28f0f5f98edd | 086722e5e0a7a88654ad78c696d5e22e6b700e1a | /pythonwithcsv.py | be793bbffb4556da3531ea3dc7e4b33b3c8fe6d2 | [] | no_license | 84karandeepsingh/datavizwithcsv | 5541840d3e7e3b126c1017fd28c6b0865f164415 | 7cb82d8063802aebdf59a647bfc19f9b32063850 | refs/heads/master | 2020-04-06T19:51:51.419261 | 2018-11-15T21:01:34 | 2018-11-15T21:01:34 | 157,752,241 | 0 | 0 | null | 2018-11-15T21:01:35 | 2018-11-15T18:05:13 | Python | UTF-8 | Python | false | false | 2,459 | py | import csv
import numpy as np
import matplotlib.pyplot as plt
# figure out what data we want to use
categories = [] # these are the column headers in the CSV file
installs = [] # this is the installs row
ratings = [] # this is the ratings row
with open('data/googeplaystore.csv') as csvfile:
reader = csv.reader(c... | [
"k_thind92494@tss-hr420-dm29.fc.ca"
] | k_thind92494@tss-hr420-dm29.fc.ca |
e6dfd9cb391b1dc09795b1911c78d7980a0ff1ee | b7f45072d056b80ed49e6bcde91877d8576e970d | /ImageJ/py/Wayne-blob-example.py | 610a35e6e5ddb80455ce608015ed6b1efdfc7ff2 | [] | no_license | jrminter/tips | 128a18ee55655a13085c174d532c77bcea412754 | f48f8b202f8bf9e36cb6d487a23208371c79718e | refs/heads/master | 2022-06-14T08:46:28.972743 | 2022-05-30T19:29:28 | 2022-05-30T19:29:28 | 11,463,325 | 5 | 8 | null | 2019-12-18T16:24:02 | 2013-07-17T00:16:43 | Jupyter Notebook | UTF-8 | Python | false | false | 321 | py | from org.python.core import codecs
codecs.setDefaultEncoding('utf-8')
import os
from ij import IJ, WindowManager
IJ.run("Close All")
img = IJ.openImage("http://wsr.imagej.net/images/blobs.gif")
IJ.setAutoThreshold(img, "Default")
IJ.run(img, "Analyze Particles...", " show=[Bare Outlines] include in_situ")
img.show()... | [
"jrminter@gmail.com"
] | jrminter@gmail.com |
6d89a520c12d1cf396cf97386448d6f6738ff2d8 | 2597f120ba197ec63497263b75b003f17dd41d37 | /manage.py | 54c3bd9664497fe87eee913f00da595bf9bbee72 | [] | no_license | vir-mir/reactjs-test | e86be29b939d77b9d5be5ea5c7ffe47dd7a54293 | 8e2da61fb7c13ae85a2ce835fb84893ad855d547 | refs/heads/master | 2021-01-02T09:26:14.815846 | 2014-07-30T04:11:26 | 2014-07-30T04:11:26 | 29,864,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "virmir.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"virmir49@gmail.com"
] | virmir49@gmail.com |
3477ca40e3be9c089491a0edef84de178170c43e | 533c1ccd1eb1c4c735c6473381c64770d8103246 | /lbpi/wrappers/adt_ens.py | 29a1a2ef5f96d665989172968bf34b8e0216c90f | [
"MIT"
] | permissive | nairvinayv/random_scripts | fc9278ce4be4908368311993918854de8330e032 | 6e1cc8d82cf61ae245108a69ffa1359f636f37f7 | refs/heads/master | 2022-02-14T09:01:20.866580 | 2022-02-02T21:33:05 | 2022-02-02T21:33:05 | 39,131,991 | 0 | 0 | MIT | 2021-09-27T04:50:05 | 2015-07-15T10:58:07 | Shell | UTF-8 | Python | false | false | 3,320 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri May 26 09:14:50 2017
This script is for making sure two uploaded receptor conformations are of the
same ensembles which will be used for the calculation of average SNR of multiple
conformations
@author: nabina
"""
#import re
import sys,os
import su... | [
"noreply@github.com"
] | nairvinayv.noreply@github.com |
078d8878c03008b44ffb9bcebc52d9ae1bf3d187 | dbc08e2b8b1d257b4ad0a12eeefb5d8ac2168045 | /ClassifyProducts.py | 1377966c9d462c28a9a812de9fbcb8962c764702 | [] | no_license | lauraabend/NLP_ProductClassifier | 885329bad7f0dd26688361b679cfa1e25f14be5e | 0c659165a7c444ef07c34cbf2452ad57ad6510de | refs/heads/master | 2021-01-18T12:46:00.842400 | 2016-07-01T21:17:08 | 2016-07-01T21:17:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,295 | py | from nltk.corpus import wordnet
import numpy as np
import pandas as pd
from nltk.tokenize import TweetTokenizer
from nltk.tag import pos_tag
from nltk.stem.porter import *
from nltk.corpus import stopwords
from sklearn.metrics import confusion_matrix
from sklearn.metrics import classification_report
def assign_produc... | [
"martin.maseda@gmail.com"
] | martin.maseda@gmail.com |
e18cb7dd81804a2ba328dc66b22ac4a5eb10f3e6 | 92d79bbe1e94e192e9d4a728f99f6aecea500645 | /attack/df_attack_2_tab_next.py | 33f57d3a58533a0b661b278d2c17db343feda980 | [] | no_license | westzyan/attackWFP | e6f61dc7a6636640a298162941c5b7c882c1fc80 | 5e2227308b3ab7be5b607c4d8dddb4871ed56fc4 | refs/heads/master | 2023-03-02T19:16:14.846449 | 2021-02-09T18:04:42 | 2021-02-09T18:04:42 | 325,488,478 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,558 | py | from sklearn.metrics import confusion_matrix, precision_recall_fscore_support, classification_report
from Model_DF import DFNet
import random
from keras.utils import np_utils
from keras.optimizers import Adamax
import numpy as np
import os
import tensorflow as tf
import keras
config = tf.ConfigProto()
config.gpu_optio... | [
"15639067131@163.com"
] | 15639067131@163.com |
1864abd09c45d30c777b5127b78b028f192c006a | ce3f2b03f38076b75544ab901662e6aeda35d97a | /manage.py | 0f521b7d0f5bf1caf2215a08b13f9ff161682059 | [] | no_license | DivingCats/reflask | 98799b7f693101a211152701cace06ef627233f3 | 1be5c61f3cf48b4e6e6a15fee56930f8166d3cd6 | refs/heads/master | 2022-12-09T22:13:58.644735 | 2020-02-08T09:56:14 | 2020-02-08T09:56:14 | 230,551,305 | 0 | 0 | null | 2022-12-08T03:34:28 | 2019-12-28T03:11:44 | Python | UTF-8 | Python | false | false | 610 | py | # -*- coding: utf-8 -*-
# @Time : 2020/2/5 20:55
# @Author : DivingKitten
# @File : manage.py
# @Software: PyCharm
# @Desc : 启动脚本
from app import create_app
from flask_script import Manager, Shell
app = create_app('default')
manager = Manager(app)
def make_shell_context():
return dict(app=app)
manag... | [
"Unility@163.com"
] | Unility@163.com |
a0a6e2b478307867d176521ffe24feb3a9ea24cb | 382c3368b5a8a13d57bcff7951334e57f919d964 | /remote-scripts/samples/APC40_20/SpecialMixerComponent.py | c157f77a22c018cdeaf7228a4fc43b005f301133 | [
"Apache-2.0"
] | permissive | jim-cooley/abletonremotescripts | c60a22956773253584ffce9bc210c0804bb153e1 | a652c1cbe496548f16a79bb7f81ce3ea3545649c | refs/heads/master | 2021-01-22T02:48:04.820586 | 2017-04-06T09:58:58 | 2017-04-06T09:58:58 | 28,599,515 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,246 | py | # emacs-mode: -*- python-*-
# -*- coding: utf-8 -*-
from _Framework.MixerComponent import MixerComponent
from SpecialChannelStripComponent import SpecialChannelStripComponent
from _Framework.ButtonElement import ButtonElement #added
from _Framework.EncoderElement import EncoderElement #added
class SpecialMixerCompo... | [
"jim@ubixlabs.com"
] | jim@ubixlabs.com |
f45604bd7b04946b6c72a23f38771783457a5ae7 | 9998ff1d80a5442970ffdc0b2dd343e3cab30ee8 | /fiaqm.py | 8d1e36ec5d2bdf3d45320c614cf86650b2282341 | [
"MIT"
] | permissive | cgomezsu/FIAQM | 9baac1a9410a6ad19e67fff024a9ff15f24df70c | da44e370f40e573233a148414229359e7782ad0c | refs/heads/main | 2023-05-13T02:17:19.833979 | 2021-05-24T01:25:17 | 2021-05-24T01:25:17 | 301,475,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,902 | py | """
v.e.s.
Federated Congestion Predictor + Intelligent AQM
MIT License
Copyright (c) 2020 Cesar A. Gomez
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, inclu... | [
"noreply@github.com"
] | cgomezsu.noreply@github.com |
500aef746d79ed087cee6c69260b5b7ab0ba585d | 12c15a95f6105f58cce4595db4541e2967abc86a | /PyFury/CodeMonk V2/XOR.py | dec64e446ce09fcec64e31f94dcc7013cd2395c2 | [] | no_license | avinash28196/PyFury-V1.0 | da5c85fd561ee7edc01f7ece9f4657191ae0f015 | 84ed41c13e2fdd96fc1556915709f0c87655af56 | refs/heads/master | 2021-07-05T08:42:10.291793 | 2019-02-25T17:06:46 | 2019-02-25T17:06:46 | 125,209,323 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | Test = int(input())
for i in range(Test):
N = int(input())
count = 0
for i in range (1,N+1):
for j in range(i+1, N+1):
# print (i, j)
xor = i ^ j
if (xor <= N or xor == N):
count += 1
print(count)
| [
"nextbitgeek@Avinashs-MacBook-Pro.local"
] | nextbitgeek@Avinashs-MacBook-Pro.local |
235950d4728104e2a077b449c15418d2a6e7154c | 057554afbdfec2f8689a999a15ba0848c620ab4f | /find_available_room.py | d3ca3e14301c511f7ba7b3c8037a7f21148694ab | [
"Apache-2.0"
] | permissive | cnaert/roomfinder2 | fe40c2728d19c92688ef4b86699db660f36fefb8 | 75040a2842058334fb5dfa9d12491e321bc88b43 | refs/heads/master | 2021-01-19T21:59:25.368371 | 2017-04-19T11:13:33 | 2017-04-19T11:13:33 | 88,688,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,600 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
reload(sys)
sys.setdefaultencoding("utf-8")
import subprocess
import getpass
from string import Template
import xml.etree.ElementTree as ET
import csv, codecs
import argparse
import datetime
now = datetime.datetime.now().replace(microsecond=0)
starttime_defaul... | [
"cyrille.naert@dimensiondata.com"
] | cyrille.naert@dimensiondata.com |
e6e7dda1c960f07e3ef950b406a97d1171f4fa8d | fe0edb968d9d20c8dcdd994e293db418c451ce53 | /amazon/LCAOfBinaryTree/solution.py | 5d3bd6f8a9f7c77189b09b2403dbaeac851e2ceb | [] | no_license | childxr/lintleetcode | d079b1a01fb623f2cb093b0fe665c21a18ec1b6a | e8d472ab237d61fed923df25c91823371c63445b | refs/heads/master | 2020-03-20T08:39:10.473582 | 2018-08-04T22:56:55 | 2018-08-04T22:56:55 | 137,315,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 894 | py | """
Definition of TreeNode:
class TreeNode:
def __init__(self, val):
self.val = val
self.left, self.right = None, None
"""
class Solution:
"""
@param: root: The root of the binary search tree.
@param: A: A TreeNode in a Binary.
@param: B: A TreeNode in a Binary.
@return: Return... | [
"rxie@juniper.net"
] | rxie@juniper.net |
172576681e45df0d4e6966c9a2513b6ebdfbff4e | 846cbb8cc97c667c1f2969fca12b835c3843f170 | /magpy/lib/format_sfs.py | a36994e4972d2df583ae37a95c7050c0af4825eb | [
"LicenseRef-scancode-unknown-license-reference"
] | permissive | geomagpy/magpy | f33a4a7ae95f95d2e5e3d09b571d2fa6f2905174 | 79f3420c4526c735869715e8c358848d790e982b | refs/heads/master | 2023-08-17T08:39:48.757501 | 2023-07-19T11:25:00 | 2023-07-19T11:25:00 | 47,394,862 | 40 | 20 | BSD-3-Clause | 2021-01-26T12:29:02 | 2015-12-04T09:38:09 | Python | UTF-8 | Python | false | false | 5,996 | py | """
MagPy
Auxiliary input filter - WIC/WIK
Written by Roman Leonhardt June 2012
- contains test and read function, toDo: write function
"""
from magpy.stream import *
def isSFDMI(filename):
"""
Checks whether a file is spanish DMI format.
Time is in seconds relative to one day
"""
try:
te... | [
"roman.leonhardt@zamg.ac.at"
] | roman.leonhardt@zamg.ac.at |
014cbf61158fb280b11d2f149b026f48d5234c0e | 2e2a54e30f8c8018fe0d163a5fd4b0d854ef165d | /src/gluonts/torch/model/deep_npts/_network.py | c29d1935c3d32e884ec124b33fde866e0b55aa92 | [
"Apache-2.0"
] | permissive | kashif/gluon-ts | b742021ca0292ca2885b3b079150f24cdf3e6dec | a818f69dc049c1c1d57e09d2ccb8b5f7a0cff656 | refs/heads/master | 2023-09-05T00:00:22.861992 | 2023-08-09T15:47:28 | 2023-08-09T15:47:28 | 222,552,468 | 5 | 0 | null | 2019-11-18T21:56:52 | 2019-11-18T21:56:52 | null | UTF-8 | Python | false | false | 14,377 | py | # Copyright 2018 Amazon.com, Inc. or its 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | [
"noreply@github.com"
] | kashif.noreply@github.com |
edbda326ea8cc86ed561de36cac7f9cfb7b215e5 | 97763df96bc21d91e46e3a98f9ee2b55f557035e | /qa/rpc-tests/wallet.py | 096b0a373b81c77ca811d0f202f25b8aea30c591 | [
"MIT"
] | permissive | jaagcoin/JAAGCoin-Core | 2f0138c38e28b98878bbcd5f011ab84d1441bb57 | 87073dbff406e2d95a6e9d81521973c3c8cef350 | refs/heads/master | 2020-03-26T05:34:39.790028 | 2018-08-30T15:46:16 | 2018-08-30T15:46:16 | 144,563,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,705 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2016 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import *
class W... | [
"dmitriy@Dmitriys-iMac.local"
] | dmitriy@Dmitriys-iMac.local |
0cca7a3e106b4584b3b916276cb3e704eb75122f | e66efe2baf16c48398087e1e2322ae4e8e77b5f1 | /deepbrain/train/segmenter/count_frequency.py | 858fb7942997b6c83726df7342a20dcfe6b2a46e | [
"MIT"
] | permissive | codewithkaranjeswani/deepbrain | b43e72e95c185dd96ec78f92f42afd7741fac75c | ac16db831ba0fb213c08b4449657f5895b136324 | refs/heads/master | 2022-11-25T11:12:41.954520 | 2020-08-03T15:52:48 | 2020-08-03T15:52:48 | 284,741,744 | 0 | 0 | MIT | 2020-08-03T15:50:43 | 2020-08-03T15:50:43 | null | UTF-8 | Python | false | false | 1,581 | py | # Count class frequency to deal with unbalance
import tensorflow as tf
import os
import nibabel as nib
import numpy as np
import random
import re
from skimage.transform import resize
from pathlib import Path
from const import *
# CSF: 1, 2, 23, 24, 0, 18 -> 1
# WM: 16, 17 -> 2
# GM: Rest -> 3
# Brain Stem: 7 -> 4
# C... | [
"i.itzcovich@gmail.com"
] | i.itzcovich@gmail.com |
725d9518757190bbff990c8383cf7ec9d56e3cc5 | c0d537532f11cf742493093c3c325b4625fdc6e4 | /Q4/HW3_Q4.py | ca25aabc6ff5e1c28eeec4da92089f07eb0f066c | [] | no_license | plusbzz/cs224w-hw3 | c9b4296425f467e203d12e4008b871d6dd89333f | 7d513c991ff6e16433b6a4241950a2a3b2c15a96 | refs/heads/master | 2016-09-06T06:56:45.495051 | 2013-11-07T05:35:46 | 2013-11-07T05:35:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,469 | py |
# Homework 3: Question 4
from snap import *
from random import sample,choice
from ggplot import *
N=10670
M=22002
nodes=arange(N)
dia_sample = 20
# Creating graphs
# Create a random Gnm network
g_nm = PUNGraph_New()
for i in nodes: g_nm.AddNode(i)
while True:
s,t = sample(nodes,2)
g_nm.AddEdge... | [
"plusbzz@gmail.com"
] | plusbzz@gmail.com |
6d39bfe89b71cb0c05cdf5b5824bde77c2647498 | fca3fe7557c00a379e90cda8016a8719ca57fe28 | /jexp/tests.py | 32a07ef74a77e0e252e4893441888e74bb850e8b | [
"BSD-3-Clause"
] | permissive | mhluongo/jexp | d8a4db0a2d4f0f5f70471c2e36ecc22c8835b73e | e23b375c00bb62cab9671bc76250023125b4e60f | refs/heads/master | 2021-01-13T01:15:08.980614 | 2011-09-02T00:11:13 | 2011-09-02T00:11:13 | 2,158,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | from nose.tools import eq_
from jexp import J
a = J('a')
b = J('b')
#logical tests
def test_or():
eq_(str(a | b), '(a||b)')
def test_and():
eq_(str(a & b), '(a&&b)')
def test_inv():
eq_(str(~a), '(!a)')
#math tests
def test_negate():
eq_(str(-a), '(-a)')
| [
"mhluongo@gmail.com"
] | mhluongo@gmail.com |
fd8cfb47b2d8e17dae6ea7bb6a37a38a95978a58 | ef5f8a1d7b098391b5e5fce57edc83870204fe69 | /albert_model/clue_classifier_utils_char_no_space.py | b1755d70cbfbb75c08b321f41ecb2ab40f4d9ea6 | [
"Apache-2.0"
] | permissive | guome/subchar-transformers | 9829ded6c312adabf481c11ea25a2eaa069a1aaa | 54c3bfb5c197946fa5a8b6ed5524b81284259613 | refs/heads/master | 2022-07-04T16:21:12.589815 | 2020-05-13T12:49:54 | 2020-05-13T12:49:54 | 263,630,138 | 1 | 0 | null | 2020-05-13T12:57:25 | 2020-05-13T12:57:24 | null | UTF-8 | Python | false | false | 21,002 | py | # -*- coding: utf-8 -*-
# @Author: bo.shi
# @Date: 2019-12-01 22:28:41
# @Last Modified by: bo.shi
# @Last Modified time: 2019-12-02 18:36:50
# coding=utf-8
# Copyright 2019 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in complia... | [
"michael_wzhu91@163.com"
] | michael_wzhu91@163.com |
35509fe6b955bd2603e79013b82691a6ac50a9c7 | 1fa21cd2c288a9f87295631e10f747fe075a1502 | /Trip Planner APIs/trip.py | fe94241adebdc4d7399310e515b6760df7830685 | [] | no_license | bmrn/TfNSW_APIs | 4bc22e800796f848ff5f1ced2c04dd56a0666472 | b4cbe176ce811698739b5fd33517fb36edbfa68d | refs/heads/master | 2021-01-19T22:55:33.722331 | 2017-04-28T06:33:23 | 2017-04-28T06:33:23 | 88,893,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,853 | py | from urllib.parse import urlencode
import requests
import json
import tssetup
from pprint import pprint
api_key = tssetup.getKey()
base_url = "https://api.transport.nsw.gov.au/v1/tp/"
query_type = "trip?"
#initialise query param dictionary
qdict = {}
#add parameters
qdict["outputFormat"] = "rapidJSON"
qdict["coordOu... | [
"ausben@gmail.com"
] | ausben@gmail.com |
25bd69a2f916412574ed02402bb69fe8bb639fc1 | a1bfa15fdb28c2eb4f46c6a694dd310e0a174846 | /jpg2mojo.py | c128a00be0cb268eea657c795fa607d5b2657c2a | [] | no_license | Rhoana/MojoToolkit | 2971f6634adbcf40a5b8658b29de7fb6215498c2 | c64e6d0c266dbb61105a8cadda16db7a2f76e0eb | refs/heads/master | 2020-12-21T12:06:05.149710 | 2017-09-18T16:42:31 | 2017-09-18T16:42:31 | 73,499,035 | 0 | 1 | null | 2016-11-11T17:49:48 | 2016-11-11T17:49:47 | null | UTF-8 | Python | false | false | 2,135 | py | #!/usr/bin/python
import os
import cv2
import glob
import argparse
import numpy as np
from toMojo.np2imgo import Imgo
from toMojo.np2sego import Sego
help = {
'out': 'output mojo parent (default mojo)',
'jpg2mojo': 'Stack all jpgs into a mojo folder!',
'jpgs': 'input folder with all jpgs (default jpgs)',
... | [
"thejohnhoffer@coxgpu04.rc.fas.harvard.edu"
] | thejohnhoffer@coxgpu04.rc.fas.harvard.edu |
808213727226448e77ae3540979e0a54ba99ac8c | 29d6101cc76550b3dbb47e885a6c160f46551bc1 | /test | 61dbb6fd4297fef87fa9d79ea8c095ff1b07c43c | [] | no_license | awesomebjt/lpic-self-tests | b7dcc4062550b6ec06ef20ecb3c31c976ce46b32 | bd772b1e25549e96caf02671b882212a3ab0cc13 | refs/heads/master | 2023-07-12T02:42:21.945693 | 2020-08-27T02:13:42 | 2020-08-27T02:13:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | #!/usr/bin/python
import json
from random import randint
import sys
try:
content = json.loads(open(sys.argv[1],'r').read())
except Exception as e:
print("Failed to load self-test. Did you provide the right file name as the first argument?")
raise e
total = 0
correct = 0
while len(content) > 0:
q = ... | [
"bjt@rabidquill.com"
] | bjt@rabidquill.com | |
2c2aebeebd8ad4a79fc47d44907d6a0fd9cdc88d | f68c7045d39039bcc58b8d096aca7edf433429ca | /env/bin/easy_install | 2a206bc40153a884b403668cb00e8f28646c0b1c | [
"MIT"
] | permissive | kelvin-daniel/instagram | beca157eb4eb1130ebd86825a9f99d96b903da02 | 2ede5319266f4312a9440d4985d098bc7545c2ae | refs/heads/master | 2022-12-30T17:31:37.451798 | 2020-10-26T09:02:55 | 2020-10-26T09:02:55 | 304,535,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | #!/home/kevon/Documents/moringa_school/Django/instagram/env/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())
| [
"kaymutor@gmail.com"
] | kaymutor@gmail.com | |
0639bb8bfaf5d12027ea12b6ee6bbe9dec7363a0 | 6b7176e32e8e6b105d5ad8b4bda038ad9ae6a281 | /P25034-zhaojie/week-11/homework.py | 31a196df26a7d4580903c49e0900fa52b26d02c2 | [
"Apache-2.0"
] | permissive | xiaohh2016/python-25 | 20c7e0a157c4be5707891d1839644e015b28dbb4 | 8981ba89bfb32754c3f9c881ee8fcaf13332ce51 | refs/heads/master | 2021-01-05T18:50:53.838337 | 2020-02-12T08:46:53 | 2020-02-12T08:46:53 | 241,107,053 | 0 | 0 | Apache-2.0 | 2020-02-17T12:52:31 | 2020-02-17T12:52:31 | null | UTF-8 | Python | false | false | 1,910 | py | #!/usr/bin/env python
# encoding:utf-8
# file: homework.py
# 自己实现python自带的map、zip和filter函数
# 还没学到 yield语法不熟 先简单实现
# 实现map函数
def my_map(*args):
"""文档字符串位置
"""
if len(args) < 2:
# 先不用异常的方式处理 只是打印
print('map()至少需要两个参数')
else:
# 判断是否为可迭代对象 先不处理
fnc_nme = args[0]
n... | [
"jasonz666@qq.com"
] | jasonz666@qq.com |
fe2dc08589eec0c27d13129f015869399ee3dae0 | 4bb72ba6ee6ed3ad887b799b27434946a92ff9d2 | /algo/CryptoSystem.py | 07c2ccc7e3f2ab9244ec99bd40722b77700c684c | [] | no_license | Libi92/ECCBDD | 33de3d9b2a91d671304f3e5bc6b134e7046d55f8 | baa7b2c9177c6110e1cfa57bea6c936b30a4985a | refs/heads/master | 2020-03-22T10:04:52.317899 | 2018-07-08T07:24:56 | 2018-07-08T07:24:56 | 139,879,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,516 | py | import datetime
from functools import reduce
from algo import curve
from algo.ecc import EC
from algo.logger import Logger
from algo.point import Point
PXY_MATRIX_SIZE = 5
class CryptoSystem:
def __init__(self, g, ec):
self.g = g
self.ec = ec
def bit_invert(self, b):
inv = map(lambd... | [
"libinbabup@hotmail.com"
] | libinbabup@hotmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.