blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a49bed0ad6fb441cd8b332aad95442e6b04774ed | 84bad7d10540d988e0a68051c0b9ff75a8a40b72 | /agrigo/manage.py | 329e08312ab6214c529e78643d9fb30594c0cd60 | [
"BSD-3-Clause"
] | permissive | cmdrspartacus/agrigo | cd22bac9c301c980259de65e71c60154c6a3f5f9 | de6ae4980786ca29ff4ab743f64b1759016e1f57 | refs/heads/master | 2016-09-13T03:09:51.420817 | 2016-05-16T13:14:34 | 2016-05-16T13:14:34 | 58,933,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,463 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Management script."""
import os
from glob import glob
from subprocess import call
from flask_migrate import Migrate, MigrateCommand
from flask_script import Command, Manager, Option, Server, Shell
from flask_script.commands import Clean, ShowUrls
from agrigo.app import... | [
"tobiasorlando@gmail.com"
] | tobiasorlando@gmail.com |
eabc4c1e37dc5cde8f65a964309ab319a2938e79 | 0862289d532ee9750d461e12b62583494987b39f | /run.py | 3ace771921d0de564ec78e562f8654082c9f2aa5 | [] | no_license | habibah-adam/uyghur_school | 71d99ce44b25e36fdf57c7ec23e88de5d47bea2d | 9a93e1adb12820f7611a790d8bc108412dc39017 | refs/heads/master | 2023-03-23T19:49:31.458789 | 2021-03-13T02:02:53 | 2021-03-13T02:02:53 | 345,954,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | from school_app import create_app, db
app = create_app()
if __name__ == "__main__":
app.run(debug=True) | [
"hebibe2s@gmail.com"
] | hebibe2s@gmail.com |
f4f95db04d1c22ec1a024380dac59917668cfa2d | d39eabbd338b6ad565c411784c62ba6cacbd88cc | /alfred/server/CommandLineInterface.py | 5acd514f5a166f9d39c669de08dfe1d5f0b48557 | [
"MIT"
] | permissive | nakul225/alfred | f4d8680c614146c87824b14aedb7901a21e97136 | 0dfc90b830ca06403102db2de27c3f70607e976c | refs/heads/master | 2021-01-01T06:03:27.866914 | 2017-07-17T01:37:19 | 2017-07-17T01:37:19 | 97,346,900 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,611 | py | '''
Created on Mar 20, 2017
@author: nakul
'''
import traceback
import sys
class CommandLineInterface:
# Implementation that provides cmd line input/response interaction
def __init__(self, providedLife):
self.life = providedLife
def _show_usage(self):
print "\n============================... | [
"nakul225@gmail.com"
] | nakul225@gmail.com |
55c78f9adc431c314924891a2846056a21118d3d | f5ddc6122e361e9a6508ced36a3ebfc3c0814356 | /beanstalkd/south_migrations/0001_initial.py | 0feafbae89dbb4b68ad52f1d1664693fbbc7e076 | [
"Apache-2.0"
] | permissive | baitcode/django-beanstalkd | 84c920bd8860a0af4fbbf1f06137f73390594c43 | 27696832fd5bffcabe96f787d2608fb1fbb0ec5a | refs/heads/master | 2021-01-24T06:04:53.263333 | 2014-10-30T11:41:03 | 2014-10-30T11:41:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,995 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Tube'
db.create_table('beanstalk_tube', (
('id', self.gf('django.db.models.fi... | [
"ilya@ostrovok.ru"
] | ilya@ostrovok.ru |
496a84c1d1d106e52d4af6fdde5b9432b262f5e0 | da23df96d1d93d9b3526f7576e76e0a3d87aa17e | /exercises/3.tuple_exe.py | 8e4471dac512ab7f5e17fea3b6f3488c06d2c834 | [] | no_license | zhoucong2/python- | 3d27b9290cefc04d0179808d0c6b34bc6623eaef | 3d0aa0ea1235c73b75b87742eda7d356cda1250c | refs/heads/master | 2023-01-30T16:47:23.992700 | 2020-12-10T10:05:46 | 2020-12-10T10:05:46 | 312,167,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | tuple1=(1,2,3)
x,y,z = tuple1#元组解包
tuple2 = x,y,z#元组封包
print(x,y,z,tuple2)
| [
"505614943@qq.com"
] | 505614943@qq.com |
29307944764273393298ed15682e1772ffc0005a | eea7adb1221e39e949e9f13b92805f1f63c61696 | /leetcode-04/solutions/python3/0026.py | cffe5152560aba1f85e3de6977536a78c4a951fd | [] | no_license | zhangchunbao515/leetcode | 4fb7e5ac67a51679f5ba89eed56cd21f53cd736d | d191d3724f6f4b84a66d0917d16fbfc58205d948 | refs/heads/master | 2020-08-02T21:39:05.798311 | 2019-09-28T14:44:14 | 2019-09-28T14:44:14 | 211,514,370 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | class Solution:
def removeDuplicates(self, nums: List[int]) -> int:
if len(nums) <= 1:
return len(nums)
j = 0
for i in range(len(nums)):
if nums[i] != nums[j]:
j += 1
nums[j] = nums[i]
return j + 1
| [
"zhangchunbao515@163.com"
] | zhangchunbao515@163.com |
b5131dfd5ec3d93cfb93ae353873b30d8f0cf541 | 5eb51cc393c35be33d8faca9548df0170c29bfc7 | /base/getMeminfo.py | c728252269b1408de3315cb285df3750bb113edc | [] | no_license | wxpokay/autogui | 965f3dc1aa908ab62347f6872365f54c84eb9ea9 | 3f128b663bff61428f344579faab62668281a1a9 | refs/heads/master | 2021-01-22T17:22:38.663439 | 2016-03-14T08:46:38 | 2016-03-14T08:46:38 | 49,067,292 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,053 | py | # -*- coding: utf-8 -*-
'''
Created on 2016-3-7
@author: Administrator
'''
import os
import time
import subprocess
script_dir = os.path.dirname(os.path.realpath(__file__))
print script_dir
result = "F:\\workspace\\autogui\\meminfo\\"
#获取系统当前时间
now = time.strftime('%Y-%m-%d-%H_%M_%S', time.localtime(time.time()))
d... | [
"wuxiaoping1120@126.com"
] | wuxiaoping1120@126.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 |
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 |
454eb93dccb38e7fc7963f055b5cbdc78b1c6663 | 95544e6ac0847dd7b21e6ec180d31a1bc5dedaed | /H4/TypeX/WatchingApp(TYPEX)-H4/env.py | 37bb28626a2cdaf685df1d5954a74e8c1c6c963b | [] | no_license | meanJustin/Real-Time-Trade-Watching-app | f965731da8e01bb81b8517c2080506246073c78c | 867dde7a5a8ad2f67c2a19b46b15283720884678 | refs/heads/main | 2023-01-04T13:27:54.179141 | 2020-10-23T02:05:30 | 2020-10-23T02:05:30 | 306,504,056 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 562 | py |
#assign the source filepath
FILEPATH = "C:\\Users\\VMAK CAPITAL\\AppData\\Roaming\\MetaQuotes\\Terminal\\CEA95A93FC8D185DD2235895C53A5FFF\\MQL4\\Files\\"
#FILEPATH = ".\\Assets\\"
#assign the mastersheet filepath
MASTERFILEPATH = ".\\Assets\\"
#the measure is second
CYCLE_TIME = 3600 * 4
#the period of every index ... | [
"69616732+meanJustin@users.noreply.github.com"
] | 69616732+meanJustin@users.noreply.github.com |
1186de1cba914cdcc904a0e0a09520080aa16289 | 46492cc7429c83fe362b0ed566fc54982e52c46e | /pitches/main/forms.py | bb9c5b6a6c3f20f413c47970a696323c03307838 | [
"MIT"
] | permissive | jakhax/pitches | 15c8d87825c879b56cd931d26d398e736636134f | e56358d00089bd46addd54192220bcca0478e0da | refs/heads/master | 2020-03-18T00:36:09.254870 | 2018-05-20T14:48:14 | 2018-05-20T14:48:14 | 134,102,974 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,399 | py | from flask import current_app, session
from flask_babel import lazy_gettext
from flask_wtf import FlaskForm
from wtforms import StringField, TextAreaField, BooleanField, SelectField, SubmitField, IntegerField
from wtforms import ValidationError
from wtforms.validators import DataRequired, InputRequired, Length, Email, ... | [
"jackogina60@gmail.com"
] | jackogina60@gmail.com |
f8d2154649e59afa419b79b4777684cdda82eb5c | 56b4d00870af18752b4414495b08e2ec3adf3ae4 | /src/clims/api/endpoints/process_assignments.py | c5fd2f83c03d0928f0637275f0b82856ee822b26 | [
"BSD-2-Clause"
] | permissive | commonlims/commonlims | 26c3f937eaa18e6935c5d3fcec823053ab7fefd9 | 36a02ed244c7b59ee1f2523e64e4749e404ab0f7 | refs/heads/develop | 2021-07-01T17:20:46.586630 | 2021-02-02T08:53:22 | 2021-02-02T08:53:22 | 185,200,241 | 4 | 1 | NOASSERTION | 2021-02-02T08:53:23 | 2019-05-06T13:16:37 | Python | UTF-8 | Python | false | false | 1,028 | py | from __future__ import absolute_import
from rest_framework.permissions import IsAuthenticated
from rest_framework.response import Response
from sentry.api.base import Endpoint, SessionAuthentication
class ProcessAssignmentsEndpoint(Endpoint):
authentication_classes = (SessionAuthentication, )
permission_cla... | [
"costeinar@gmail.com"
] | costeinar@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 |
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 |
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 |
eef750f84f81a27c35f5f451faf9e9a1b93c1cc4 | 4c117ea3617a576ddd07d8ea8aaab1a925fc402f | /bin/individualization/VennPlot.py | 18f444e66a82a4f9f64427b83e18f591f031b0f6 | [] | no_license | 452990729/Rep-seq | 7be6058ba3284bea81282f2db7fd3bd7895173ba | e217b115791e0aba064b2426e4502a5c1b032a94 | refs/heads/master | 2021-12-11T14:27:46.912144 | 2019-06-04T03:49:40 | 2019-06-04T03:49:40 | 190,124,555 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,549 | py | #!/usr/bin/env python
import os
import sys
import re
import matplotlib
matplotlib.use('Agg')
import venn
from matplotlib import pyplot as plt
def HandleFq(file_in):
base = '_'.join(re.split('_', os.path.basename(file_in))[:2])
list_tmp = []
m = 0
with open(file_in, 'r') as in1:
for line in in... | [
"452990729@qq.com"
] | 452990729@qq.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 |
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 |
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 |
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 |
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 |
fb1dc48dad15f690de8d830e797d4ab28dc0f404 | e247ce1a6e98772ad1fd7593f01d21971da7e738 | /AlgorithmTest/Test/MatplotlibTest/TestMatlab.py | 5706795c7c76e2b650e1c9ce131fc42f51dcb704 | [
"MIT",
"Apache-2.0"
] | permissive | A666666685A/Multi-constrainedQoSRouting | a394d82d3acd71032918a8ffd651e42934f49baa | 8ea2bd2a8602ed51379c7a89ea1fdf370b8f1ca7 | refs/heads/master | 2023-08-11T19:57:59.550777 | 2021-09-19T04:01:41 | 2021-09-19T04:01:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | s=raw_input("Input your age:")
if s =="":
raise Exception("Input must no be empty.")
try:
i=int(s)
except ValueError:
print "Could not convert data to an integer."
except:
print "Unknown exception!"
else: # It is useful for code that must be executed if the try clause does not raise an except... | [
"yueludanfeng@gmail.com"
] | yueludanfeng@gmail.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 |
5cd5782af0c7af2c6f90c48001a91cd1e255da08 | c9e95974e3f3320f2da36ba23403d46e00ac884d | /projects/mars/model_classes/MarsSurface.py | 00b902223fb2354c3cade7b796303c0febaf41b3 | [
"MIT"
] | permissive | ModelFlow/modelflow | 877ff8d80ab2987b0572bebcf3753ae0942a5ae2 | c2b720b2da8bb17462baff5c00bbe942644474b0 | refs/heads/master | 2023-07-12T17:22:49.540043 | 2021-08-26T03:51:26 | 2021-08-26T03:51:26 | 280,748,869 | 8 | 0 | MIT | 2021-08-18T19:48:57 | 2020-07-18T22:17:52 | Python | UTF-8 | Python | false | false | 729 | py | class MarsSurface:
name = "Mars Surface"
params = []
states = [
{
"key": "atmospheric_co2",
"label": "Atmospheric CO2",
"units": "kg",
"private": False,
"value": 999999999,
"confidence": 0,
"notes": "",
"... | [
"1890491+adamraudonis@users.noreply.github.com"
] | 1890491+adamraudonis@users.noreply.github.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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
a2dd70fc69879a4648eb45dac4bea8dae1233790 | d83118503614bb83ad8edb72dda7f449a1226f8b | /src/dprj/platinumegg/app/cabaret/views/application/effect.py | 40b158532e97911174a83a5334610da7b7a1310a | [] | no_license | hitandaway100/caba | 686fe4390e182e158cd9714c90024a082deb8c69 | 492bf477ac00c380f2b2758c86b46aa7e58bbad9 | refs/heads/master | 2021-08-23T05:59:28.910129 | 2017-12-03T19:03:15 | 2017-12-03T19:03:15 | 112,512,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54,649 | py | # -*- coding: utf-8 -*-
from platinumegg.app.cabaret.views.apphandler import AppHandler
from platinumegg.app.cabaret.util.api import BackendApi
import settings
from platinumegg.app.cabaret.util.url_maker import UrlMaker
from platinumegg.lib.pljson import Json
import settings_sub
from urlparse import urlparse
import url... | [
"shangye@mail.com"
] | shangye@mail.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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.