language
stringclasses
15 values
src_encoding
stringclasses
34 values
length_bytes
int64
6
7.85M
score
float64
1.5
5.69
int_score
int64
2
5
detected_licenses
listlengths
0
160
license_type
stringclasses
2 values
text
stringlengths
9
7.85M
Java
UTF-8
2,704
2.296875
2
[]
no_license
package freijo.castro.diego.tareapmdm07_practicafinal.pendientes; import android.content.Context; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.TextView; import java.text.DecimalFormat; import java.util.ArrayList; import freijo.castro.diego.tareapmdm07_practicafinal.R; public class PendientesAdaptador extends BaseAdapter { private Context context; private ArrayList<Pendiente> arrayList; private DecimalFormat decimalFormat=new DecimalFormat("0.00"); public PendientesAdaptador(Context context, ArrayList<Pendiente> arrayList) { this.context = context; this.arrayList = arrayList; } @Override public int getCount() { return arrayList.size(); } @Override public Object getItem(int position) { return arrayList.get(position); } @Override public long getItemId(int position) { return position; } @Override public View getView(int position, View convertView, ViewGroup parent) { String strDireccion = ""; if (convertView == null) { LayoutInflater layoutInflater = (LayoutInflater) context.getSystemService(context.LAYOUT_INFLATER_SERVICE); convertView = layoutInflater.inflate(R.layout.pendientes_fila, null); } TextView tvFecha = (TextView) convertView.findViewById(R.id.tvFecha); TextView tvCliente = (TextView) convertView.findViewById(R.id.tvCliente); TextView tvReferencia = (TextView) convertView.findViewById(R.id.tvReferencia); TextView tvConcepto = (TextView) convertView.findViewById(R.id.tvConcepto); TextView tvCantidad = (TextView) convertView.findViewById(R.id.tvCantidad); TextView tvPrecio = (TextView) convertView.findViewById(R.id.tvPrecio); TextView tvTotal = (TextView) convertView.findViewById(R.id.tvTotal); tvFecha.setText(arrayList.get(position).getFecha()); tvCliente.setText(arrayList.get(position).getCifCliente()+" "+arrayList.get(position).getNombreCliente()); tvReferencia.setText(arrayList.get(position).getReferencia()); tvConcepto.setText(arrayList.get(position).getConcepto()); tvCantidad.setText(decimalFormat.format(arrayList.get(position).getCantidad()).replace(".",",")); tvPrecio.setText(decimalFormat.format(arrayList.get(position).getPrecio()).replace(".",",")); float total=arrayList.get(position).getCantidad()*arrayList.get(position).getPrecio(); tvTotal.setText(decimalFormat.format(total).replace(".",",")); return convertView; } }
C#
UTF-8
6,267
2.515625
3
[]
no_license
using System; using System.Collections.Generic; using System.Net.Http; using System.Text; using System.Threading.Tasks; using Newtonsoft.Json; using TriviaNation.Core.Models; namespace TriviaNation.Core.Drivers { public class WebServiceDriver : IDisposable, IWebServiceDriver { public readonly string _BaseRequestURL = @"https://nxumf3nld2.execute-api.us-east-1.amazonaws.com/Prod/admin/"; public HttpClient _Client; public WebServiceDriver() { _Client = new HttpClient(); } #region Insert public async Task<bool> InsertUser(IUser newUser) { var response = new HttpResponseMessage(); if (newUser is StudentUser suser) { var content = JsonConvert.SerializeObject(suser); response = await _Client.PostAsync(_BaseRequestURL + "InsertStudent", new StringContent(content, Encoding.UTF8, "application/json")).ConfigureAwait(false); } else if (newUser is AdminUser auser) { var content = JsonConvert.SerializeObject(auser); response = await _Client.PostAsync(_BaseRequestURL + "InsertAdmin", new StringContent(content, Encoding.UTF8, "application/json")).ConfigureAwait(false); } if (response.IsSuccessStatusCode) { var didPost = await response.Content.ReadAsStringAsync().ConfigureAwait(false); if (JsonConvert.DeserializeObject<bool>(didPost)) { return true; } } return false; } public async Task<bool> InsertQuestionBank(IQuestionBank questionBank, string instructorsEmail) { var content = JsonConvert.SerializeObject(questionBank); var response = await _Client.PostAsync(_BaseRequestURL + "InsertQuestionBank/" + instructorsEmail, new StringContent(content, Encoding.UTF8, "application/json")).ConfigureAwait(false); if (response.IsSuccessStatusCode) { var didPost = await response.Content.ReadAsStringAsync().ConfigureAwait(false); if (JsonConvert.DeserializeObject<bool>(didPost)) { return true; } } return false; } public async Task<bool> InsertGameSession(IGameSession gameSession, string instructorsEmail) { var content = JsonConvert.SerializeObject(gameSession); var response = await _Client.PostAsync(_BaseRequestURL + "InsertGameSession/" + instructorsEmail, new StringContent(content, Encoding.UTF8, "application/json")).ConfigureAwait(false); if (response.IsSuccessStatusCode) { var didPost = await response.Content.ReadAsStringAsync().ConfigureAwait(false); if (JsonConvert.DeserializeObject<bool>(didPost)) { return true; } } return false; } #endregion #region Get Many public async Task<List<StudentUser>> GetAllUsersByInstructor(string instructorsEmail) { var students = new List<StudentUser>(); var response = await _Client.GetAsync(_BaseRequestURL + "GetAllUsersByInstructor/" + instructorsEmail); if (response.IsSuccessStatusCode) { var content = await response.Content.ReadAsStringAsync(); students = JsonConvert.DeserializeObject<List<StudentUser>>(content); } return students; } public async Task<List<IQuestionBank>> GetQuestionBanksByInstructor(string instructorsEmail) { var questionBanks = new List<QuestionBank>(); var response = await _Client.GetAsync(_BaseRequestURL + "GetQuestionBanksByInstructor/" + instructorsEmail); if (response.IsSuccessStatusCode) { var content = await response.Content.ReadAsStringAsync(); questionBanks = JsonConvert.DeserializeObject<List<QuestionBank>>(content); } return new List<IQuestionBank>(questionBanks); } public async Task<List<IGameSession>> GetGameSessionsByInstructor(string instructorEmail) { var gameSessions = new List<GameSession>(); var response = await _Client.GetAsync(_BaseRequestURL + "GetGameSessionsByInstructor/" + instructorEmail); if (response.IsSuccessStatusCode) { var content = await response.Content.ReadAsStringAsync(); gameSessions = JsonConvert.DeserializeObject<List<GameSession>>(content); } return new List<IGameSession>(gameSessions); } #endregion #region Get One public async Task<IUser> GetUserByEmail(string email) { IUser user = null; var request = _BaseRequestURL + "GetUserByEmail/" + email; var response = await _Client.GetAsync(request); if (response.IsSuccessStatusCode) { var content = await response.Content.ReadAsStringAsync(); user = JsonConvert.DeserializeObject<StudentUser>(content); user.Password = null; if (((StudentUser) user).InstructorId == null) { return new AdminUser(user.Name, user.Email); } } return user ?? new StudentUser("", ""); } public async Task<IQuestionBank> GetQuestionBankById(string uniqueId) { IQuestionBank questionBank = null; var response = await _Client.GetAsync(_BaseRequestURL + "GetQuestionBankById/" + uniqueId); if (response.IsSuccessStatusCode) { var content = await response.Content.ReadAsStringAsync(); questionBank = JsonConvert.DeserializeObject<QuestionBank>(content); } return questionBank ?? new QuestionBank(null); } public async Task<IGameSession> GetGameSessionById(string uniqueId) { IGameSession gameSession = null; var response = await _Client.GetAsync(_BaseRequestURL + "GetGameSessionById/" + uniqueId); if (response.IsSuccessStatusCode) { var content = await response.Content.ReadAsStringAsync(); gameSession = JsonConvert.DeserializeObject<GameSession>(content); } return gameSession; } #endregion #region Delete public async Task<bool> DeleteUser(IUser user) { var content = JsonConvert.SerializeObject(user); var request = new HttpRequestMessage { Content = new StringContent(content, Encoding.UTF8, "application/json"), Method = HttpMethod.Delete, RequestUri = new Uri(_BaseRequestURL + "DeleteUser") }; var response = await _Client.SendAsync(request).ConfigureAwait(false); if (response.IsSuccessStatusCode) { var didDelete = await response.Content.ReadAsStringAsync().ConfigureAwait(false); if (JsonConvert.DeserializeObject<bool>(didDelete)) { return true; } } return false; } #endregion public void Dispose() { _Client.Dispose(); } } }
Markdown
UTF-8
969
2.546875
3
[ "Apache-2.0" ]
permissive
## 0.4.0 -- 9 Feb 2018 Internally, now uses [dorothy](https://github.com/daveray/dorothy) to generate the GraphViz DOT source. A decorator option makes it possible to customize individual component node attributes in an open-ended way. ## 0.3.0 -- 2 Feb 2018 New options allow node attributes in the graph to be controlled for specific components. ## 0.2.0 -- 19 Jan 2018 Update dependencies, add new options: :horizontal -- to layout the diagram left-to-right instead of top-to-bottom. :save-as -- to specify path to the GraphViz file that is generated. ## 0.1.1 -- 11 Mar 2016 You may now control the output format (for example, to output as SVG or PNG, rather than PDF). The enabled flag has been removed; `visualize-system` will now always visualize the system. Invalid dependencies are now highlighted in red. [Closed Issues](https://github.com/walmartlabs/system-viz/issues?q=milestone%3A0.1.1+is%3Aclosed) ## 0.1.0 -- 10 Dec 2015 Initial release.
C++
UTF-8
4,649
3.390625
3
[ "MIT" ]
permissive
/** Given a 2D array of digits, try to find the occurrence of a given 2D pattern of digits. For example, consider the following 2D matrix: 1234567890 0987654321 1111111111 1111111111 2222222222 Assume we need to look for the following 2D pattern: 876543 111111 111111 If we scan through the original array, we observe that the 2D pattern begins at the second row and the third column of the larger grid (the 8 in the second row and third column of the larger grid is the top-left corner of the pattern we are searching for). So, a 2D pattern of P digits is said to be present in a larger grid G, if the latter contains a contiguous, rectangular 2D grid of digits matching with the pattern P, similar to the example shown above. Input Format The first line contains an integer, T, which is the number of test cases. T test cases follow, each having a structure as described below: The first line contains two space-separated integers, R and C, indicating the number of rows and columns in the grid G, respectively. This is followed by R lines, each with a string of C digits, which represent the grid G. The following line contains two space-separated integers, r and c, indicating the number of rows and columns in the pattern grid P. This is followed by r lines, each with a string of c digits, which represent the pattern P. Constraints 1 <= T <= 5 1 <= R,r,C,c <= 1000 1 <= r <= R 1 <= c <= C Test Case Generation Each individual test case has been generated by first specifying the size (R and C) of the large 2D matrix, and then randomly generating the digits in it. A limited number of digits in the larger matrix may be changed by the problem setter (no more than 5% of the total number of digits in the matrix). So the larger 2D matrix is almost-random. The pattern matrix has been manually-curated by the problem setter. Output Format Display 'YES' or 'NO', depending on whether (or not) you find that the larger grid G contains the rectangular pattern P. The evaluation will be case sensitive. Sample Input 2 10 10 7283455864 6731158619 8988242643 3830589324 2229505813 5633845374 6473530293 7053106601 0834282956 4607924137 3 4 9505 3845 3530 15 15 400453592126560 114213133098692 474386082879648 522356951189169 887109450487496 252802633388782 502771484966748 075975207693780 511799789562806 404007454272504 549043809916080 962410809534811 445893523733475 768705303214174 650629270887160 2 2 99 99 Sample Output YES NO Explanation The first test in the input file is: 10 10 7283455864 6731158619 8988242643 3830589324 2229505813 5633845374 6473530293 7053106601 0834282956 4607924137 3 4 9505 3845 3530 As one may see, the given 2D grid is indeed present in the larger grid, as marked in bold below. 7283455864 6731158619 8988242643 3830589324 2229505813 5633845374 6473530293 7053106601 0834282956 4607924137 The second test in the input file is: 15 15 400453592126560 114213133098692 474386082879648 522356951189169 887109450487496 252802633388782 502771484966748 075975207693780 511799789562806 404007454272504 549043809916080 962410809534811 445893523733475 768705303214174 650629270887160 2 2 99 99 The search pattern is: 99 99 This cannot be found in the larger grid. **/ #include <cmath> #include <cstdio> #include <vector> #include <iostream> #include <algorithm> using namespace std; int main(){ int t; cin >> t; for(int a0 = 0; a0 < t; a0++){ // get the grid int R; int C; cin >> R >> C; vector<string> G(R); for(int G_i = 0;G_i < R;G_i++){ cin >> G[G_i]; } // get the pattern int r; int c; cin >> r >> c; vector<string> P(r); for(int P_i = 0;P_i < r;P_i++){ cin >> P[P_i]; } // scan the grid bool found = false; for(unsigned i = 0; i <= R-r; i++){ for(unsigned j = 0; j <= C-c; j++){ if(G[i][j] == P[0][0]){ found = true; for(unsigned m = 0; m < r ; m++){ for(unsigned n = 0; n < c ; n++){ if(G[i+m][j+n] != P[m][n]){ found = false; break; } } } if(found) // the dreaded GOTO keeps the code lean here goto yes; } } } yes: if(found){ cout << "YES\n"; } else { cout << "NO\n"; } } return 0; }
PHP
UTF-8
2,398
3.265625
3
[]
no_license
<?php class Slide { private $from; private $to; private $duration; private $id; private $position; public function fromHrs() { if ('everyday' == $this->duration['type']) { $tmp =explode(':',$this->duration['from-time-everyday']); return $tmp[0]; } else { return 0; } } public function fromMin() { if ('everyday' == $this->duration['type']) { $duration = explode(':',$this->duration['to-time-everyday']); return substr($duration[1],0,2); } else { return 0; } } public function amountInSec() { if ('amount' == $this->duration['type']) { return $this->duration['hrs']*60*60 + $this->duration['min']*60 + $this->duration['sec']; } return $this->to() - $this->from(); } public function from() { switch($this->duration['type']) { case 'exact': return strtotime($this->duration['from'] . ' ' . $this->duration['from-time']); break; case 'everyday': return strtotime('11-01-01' . ' ' . $this->duration['from-time-everyday']); break; } return 0; } public function to() { switch($this->duration['type']) { case 'exact': return strtotime($this->duration['to'] . ' ' . $this->duration['to-time']); break; case 'everyday': return strtotime('11-01-01' . ' ' . $this->duration['to-time-everyday']); break; } return 0; } public function duration() { return $this->duration; } public function id() { return $this->id; } public function position() { return $this->position; } public function setFrom($from) { $this->from = $from; } public function setTo($to) { $this->to = $to; } public function setDuration($duration) { $this->duration = $duration; } public function setPosition($position) { $this->position = $position; } public function setDurationInSec($sex) { $this->durationInSec = $sex; } public function __construct($id, $position = 0, $duration) { $this->id = $id; $this->from = "0"; $this->to = "0"; $this->duration = $duration; $this->position = $position; } }
Java
UTF-8
902
2.5
2
[]
no_license
package com.gestion.pilotage.service; import java.util.List; import com.gestion.pilotage.model.User; /** * Service to manage user. * * @author rija.n.ramampiandra * */ public interface UserService { /** * Add user to DB. * * @param p * the user. */ public void addUser(User p); /** * Maj user. * * @param p * the user. * */ public void updateUser(User p); /** * Liste des users. * * @return the list. */ public List<User> findAllUsers(); /** * Get user by id. * * @param id * the id. * @return the user. */ public User findUserById(int id); /** * Removo user. * * @param id * the id. */ public void removeUser(int id); /** * Obtenir le client. * * @param criteria * the criteria. * @return the user. */ List<User> findByCriteria(User criteria); }
Markdown
UTF-8
7,616
3.65625
4
[]
no_license
# 0901. 需求第二定律 我们开始讲需求第二定律。需求定律,无论是第一、第二,还是第三定律,都是对人性非常深刻的刻画。你懂了需求第二定律,你就会更懂人性。 需求第二定律有很多版本。需求第二定律是说:需求对价格的弹性,和价格变化之后流逝的时间长度成正比。也就是说,随着时间的推移,需求对价格的弹性会增加。 ## 需求的价格弹性 那么,这里面我们就遇到了一个术语,什么叫“弹性”。 我们这个专栏,几乎没有数学公式。我想这可能是咱们唯一一次,遇到数学公式的地方,不得不用数学公式。但实际上它也很简单。 需求对价格的弹性,就是需求量的变化百分比,除以价格变化的百分比。它的含义是说:每当价格变化百分之一,需求量会变化百分之几。你看看我给你准备的下图的公式就非常清楚了。 需求对价格的弹性是一个百分比除以百分比的常数。比方说,如果价格变化了2%,需求量因此变化了5%,那么就是 5% ÷ 2% = 2.5,也就是说弹性大于 1。弹性大于1是什么意思呢?它是说,价格稍微有点变化,需求量就有很大的变化。 ![](https://raw.githubusercontent.com/dalong0514/selfstudy/master/图片链接库/薛兆丰/价格弹性1.jpg) ![](https://raw.githubusercontent.com/dalong0514/selfstudy/master/图片链接库/薛兆丰/价格弹性2.jpg) > 需求价格弹性(the price elasticity of demand)(因为永远是负的,所以不提是负的) 什么样的产品会这样呢?一般来说奢侈品是这样的。香水、名烟、名表、名照相机,它们有这个特点。当价格上升一点点以后,人们可用可不用,这时候它们的需求量就会有比较大的变化。 这样,需求量的变化率除以价格的变化率除出来,就是一个大于1的常数。弹性大于 1,它指的是奢侈品。倒过来,如果 1% 的价格变化导致的需求量的变化不足 1%,那么这时候除出来的弹性数字就小于 1。弹性小于 1,什么意思呢?它指的是必需品。 比方说我们生活中的盐,盐的价格再怎么变化,我们对盐的需求量不会产生太大的变化,盐的需求量也不会下降一倍,这样除出来的弹性就小于1。每当我们见到需求对价格的弹性小于1的商品,我们通常就说它是生活的必需品。 这里要注意的是,由于价格的变化方向,和需求量的变化方向永远是反向的,价格增加需求量下降,所以弹性永远是一个负数,由于它永远是负的,咱们也就不提它是负数了,所以一般我们只要讲到弹性,就讲它的绝对值就可以了。 ## 需求曲线上的弹性处处不等,价格越高弹性越大 好,弹性的公式介绍到这里,我们就要做一个重要的区分。 ![](https://raw.githubusercontent.com/dalong0514/selfstudy/master/图片链接库/薛兆丰/价格弹性3.jpg) ![](https://raw.githubusercontent.com/dalong0514/selfstudy/master/图片链接库/薛兆丰/价格弹性4.jpg) 你还记得我们中学学过的解析几何吗?同一条曲线上面,每一点的斜率它们都是相等的,但是你要注意弹性的公式,并不是斜率的公式。弹性不等于斜率。在一条需求曲线上面,它的斜率是处处相等的,但是在同样一条需求曲线上面,它每一点的弹性是不一样的。 你要注意这个公式,你就能看出区别来。 ![](https://raw.githubusercontent.com/dalong0514/selfstudy/master/图片链接库/薛兆丰/价格弹性5.jpg) 一条倾斜向下的需求曲线,当它价格比较高的部分,它的弹性是大于 1 的;它的价格比较低的部分,它的弹性是小于 1 的。而每一点的弹性都是不一样的,是在渐变的。 这个特征非常有意思,你想,它的含义是什么? 刚才我们不是说,弹性大于 1 代表的是奢侈品,弹性小于 1 代表的是必需品吗?但是同样一条需求曲线随着价格的变动、随着价格的不同,它的弹性就会发生变化。 当价格比较高的时候,弹性大于1,也就是说,这时候这种商品是奢侈品;但是当价格跌到一定程度以后,这种产品就变成了必需品。 没错,它的含义正是这样。也就是说,同样一种商品,它究竟是奢侈品还是必需品,没有定数,取决于价格的高低。这是一个很重要的经济学的含义。 ## 一件商品是奢侈品还是必需品,完全取决于价格 我们凡是见到有人讨论一种商品,一口咬定说它是奢侈品的,或者一口咬定说它是必需品的,你就知道他对弹性的概念不理解。因为掌握了弹性概念的人,他会明白任何商品,都既可以是奢侈品,也可以是必需品,这完全取决于价格的高低。 比方说,坐地铁到底属于奢侈品还是必需品啊?很多人说,这当然属于必需品啊,没有地铁咱们就上不了班。 我给你举一个例子。北京自从奥运以后,地铁票价就一直是一个统一价——两块钱。不论你跑多远,都是两块钱。这么做,对政府的财政压力就很大,地铁公司就一直希望重新调整价格。很多人就说不能调整,因为地铁是必需品,无论价格高低,人们都是会同样坐地铁的,所以不应该调整这个价格。而实际上,地铁公司终于在 2014 年 12 月 9 日,恢复按路段收费。 那一天,你猜需求量有没有变化?价格产生了变化,需求量当然会发生变化,这是咱们坚如磐石的需求第一定律预测的,那天北京地铁的乘客数量在不同的时段、不同的路段分别下降了 9%、15%、20% 之多。所以说一个商品到底是必需品还是奢侈品,跟价格有密切的关系。 再比方说水,水到底是奢侈品还是必需品?一般人会说,水当然是必需品。 但是你要看,在水资源特别匮乏的地方,人们使用水的数量,跟水资源非常丰富的地方,人们使用水的数量是完全不一样的。 在水资源丰富的地方,人们不仅喝水,他们还洗澡,不仅洗淋浴,他们还泡澡,不仅自己泡澡,还要浇花,还要洗车,还要做喷泉。 在水资源不够的地方呢。那他们当然很省了,他们不会浇花,也不会随便洗车,澡也不是随便洗的,他们洗完脸又洗脚,洗完脚又擦鞋,擦完鞋还要拿来冲厕所。 同样,我们生活在大城市的打工一族,往往都认为今天坐出租车是一种必需品。但实际上,10 年前、20 年前、30 年前出租车肯定是奢侈品,一般人是坐不起出租车的。出租车司机只在宾馆门口趴活,他们接的都是外宾。随着价格的下降,出租车才变成了我们上下班必需的交通工具。 ## 课堂小结 今天我们介绍了弹性的概念。我们说弹性跟斜率不一样,在一条需求曲线上面,斜率是处处相等的,但是在同样一条需求曲线上面,弹性却处处不等。在价格比较高的部分,弹性大于 1,也就是说一种商品具有弹性,代表这种商品是一种奢侈品;在价格比较低的部分,弹性小于 1,它代表的是,这种商品是一种必需品。同样一种商品,到底它是奢侈品还是必需品,取决于价格的不同。 ## 课后思考 今天我留给你的问题是,究竟有没有什么商品是无论价格多高,人的需求量都是一样的?
Shell
UTF-8
228
3.203125
3
[]
no_license
#!/usr/bin/bash # Script to print currently logged in users information, and current date & time. clear echo "Hello $USER" echo -e "Today is \c ";date echo -e "Number of user login : \c" ; who | wc -l echo "Calendar" cal exit 0
C++
UTF-8
1,787
3.15625
3
[]
no_license
#include "Image.h" #include<iostream> #include<fstream> using namespace std; Image::Image(int w, int h, int channel, const char* path) { this->width = w; this->height = h; this->channel = channel; this->filename = path; this->frameSize = width * height * channel; } unsigned char* Image::imageData() { FILE *fp = NULL; fp = fopen(filename, "rb"); this->imagedata = (unsigned char*)malloc(sizeof(unsigned char)*frameSize); if (!fp) { cout << "Fail to open file" << endl; return NULL; } fread(imagedata, sizeof(unsigned char), frameSize, fp); fclose(fp); return imagedata; } int Image::getWidth() { return width; } int Image::getHeight() { return height; } long Image::getFrameSize() { return frameSize; } unsigned char* Image::getRedCom() { int size = height * width * channel; unsigned char * redCom = (unsigned char*)malloc(sizeof(unsigned char)* size); if (imagedata != NULL) { for (int i = 0; i<size; i = i + 3) { redCom[i / 3] = imagedata[i]; } return redCom; } else { cout << "initiate image data first" << endl; return NULL; } } unsigned char* Image::getGreenCom() { int size = height * width * channel; unsigned char * redCom = (unsigned char*)malloc(sizeof(unsigned char)* size); if (imagedata != NULL) { for (int i = 1; i<size; i = i + 3) { redCom[i / 3] = imagedata[i]; } return redCom; } else { cout << "initiate image data first" << endl; return NULL; } } unsigned char* Image::getBlueCom() { int size = height * width * channel; unsigned char * redCom = (unsigned char*)malloc(sizeof(unsigned char)* size); if (imagedata != NULL) { for (int i = 2; i<size; i = i + 3) { redCom[i / 3] = imagedata[i]; } return redCom; } else { cout << "initiate image data first" << endl; return NULL; } }
Java
UTF-8
925
1.945313
2
[]
no_license
package org.zerock.persistence; import java.util.List; import javax.inject.Inject; import org.apache.ibatis.session.SqlSession; import org.springframework.stereotype.Repository; @Repository public class BoardDAOImpl implements BoardDAO{ @Inject private SqlSession session; private static String namespace = "org.zerock.mapper.BoardMapper"; @Override public void create(BoardDAO vo) throws Exception { // TODO Auto-generated method stub } @Override public BoardDAO read(Integer bno) throws Exception { // TODO Auto-generated method stub return null; } @Override public void update(BoardDAO vo) throws Exception { // TODO Auto-generated method stub } @Override public void delete(Integer bno) throws Exception { // TODO Auto-generated method stub } @Override public List<BoardDAO> listAll() throws Exception { // TODO Auto-generated method stub return null; } }
Java
UTF-8
1,947
2.75
3
[]
no_license
package Projeto.LP2; import java.util.*; import projetop2.utils.ArquivoDeDados; public class GerenteDeCategoria { private List<CategoriaDeTransacao> categorias; private ArquivoDeDados<List<CategoriaDeTransacao>> arquivoDeCategoria; public GerenteDeCategoria(String email){ arquivoDeCategoria = new ArquivoDeDados<List<CategoriaDeTransacao>>("["+email+"]"+".categorias"); categorias = new ArrayList<CategoriaDeTransacao>(); } public boolean carrega()throws Exception{ categorias = arquivoDeCategoria.carregaObjetos(); return true; } public boolean salvar() throws Exception{ arquivoDeCategoria.salvaObjeto(categorias); return true; } public boolean deletaCategorias(){ return arquivoDeCategoria.limpaArquivo(); } public boolean adicionaCategorias(CategoriaDeTransacao categoria){ Iterator<CategoriaDeTransacao> it = categorias.iterator(); while (it.hasNext()){ if(categoria.equals(it.next())) return false; } categorias.add(categoria); return true; } public boolean removeCategoria(CategoriaDeTransacao categoria){ return categorias.remove(categoria); } public List<CategoriaDeTransacao> pesquisaCategoriaPorCor(Cor cor){ Iterator<CategoriaDeTransacao> it = categorias.iterator(); List<CategoriaDeTransacao> pesquisa = new ArrayList<CategoriaDeTransacao>(); CategoriaDeTransacao categoria; while (it.hasNext()){ categoria = it.next(); if (cor.equals(categoria.getCor())) pesquisa.add(categoria); } return pesquisa; } public CategoriaDeTransacao pesquisaCategoriaPorNome(String nome){ Iterator<CategoriaDeTransacao> it = categorias.iterator(); CategoriaDeTransacao categoria; while (it.hasNext()){ categoria = it.next(); if (nome.equals(categoria.getNome())) return categoria; } return null; } public List<CategoriaDeTransacao> getCategorias(){ return categorias; } }
Markdown
UTF-8
1,341
3.203125
3
[]
no_license
# Trove Lists Exhibition This is a AngularJS web app that retrieves lists of resources collected in Trove Lists via the Trove API, and then displays them as a simple exhibition. You can easily customise it to turn your own collection of lists into an exhibition. See the [demo](http://wragge.github.io/forecasters-demo). See [DIY Trove Exhibition](https://github.com/wragge/diy-trove-exhibition) for a simplified version that will have your exhibition online in minutes. ## Setting things up. Clone this repository into the folder of your choice. Run the following to install the bits you need: ``` npm install bower install ``` ## Customising your exhibition First get a Trove API key. Open `index.html` in the editor of your choice. Look for the 'EDIT THIS SECTION TO ADD YOUR EXHIBITION DETAILS' section. Modify this to add your own exhibition name, tagline, description and credits. Most importantly, edit the list of lists to include your own. Insert your API key where you see `var troveAPIKey = "";` ## Generating your exhibition. To view your exhibition locally: ``` grunt serve ```` To build your exhibition for publication: ``` grunt build ``` Once the build process is complete, your exhibition will be available in the `dist` directory. Just copy the contents of this directory to the webhost of your choice.
Python
UTF-8
446
4.09375
4
[]
no_license
min_length = 2 name = input("Please enter your name:") while not(len(name) >= min_length and name.isprintable() and name.isalnum()): name = input("Please try again:") print("Hello, {0}".format(name)) while True: name = input("Please enter your name:") if len(name) >= min_length and name.isprintable() and name.isalnum(): print("Hello, {0}".format(name)) break s = 'hello' for i, c in enumerate(s): print(i, c)
Python
UTF-8
1,825
3.59375
4
[]
no_license
from heapq import heapify, heappush, heappop class Solution: def rearrangeString(self, s, k) -> str: ''' at any point, we want to insert the most frequent character who's last element is at least k value away. if there are no elements that at are at least k values away, -> return "" if two elements have the same frequency x, and are at least k elements away, then it does not matter which element we keep first ''' latestPositionOfNumber = {} #number -> latest position answer = [] heap = [] heapify(heap) elements = {} for i in range(len(s)): if s[i] not in elements: elements[s[i]] = 1 else: elements[s[i]] += 1 for key,value in elements.items(): heappush(heap, (-value, key)) element = None while len(heap) != 0: heapLength = len(heap) element = heappop(heap) counter = 0 store = [] while (element[1] in latestPositionOfNumber and len(answer) - latestPositionOfNumber[element[1]] < k): store.append(element) if len(heap) == 0: return "" element = heappop(heap) for i in store: heappush(heap,i) # we have a valid element answer.append(element[1]) if element[0] < -1: heappush(heap, (element[0] + 1, element[1])) latestPositionOfNumber[element[1]] = 0 if len(answer) == 0 else len(answer) - 1 return "".join(answer) one = Solution() print(one.rearrangeString("aabbcc", 3)) print(one.rearrangeString("aaabc", 3)) print(one.rearrangeString("aaadbbcc", 2))
SQL
UTF-8
405
3.5
4
[]
no_license
Link- https://rextester.com/JVUKPF51336 CREATE TABLE Geek ( ID INT IDENTITY(1, 1), A INT, B INT, PRIMARY KEY(id)); INSERT INTO Geek (A, B) VALUES (1, 1),(1, 2), (1, 3), (2, 1), (1, 2), (1, 3), (2, 1), (2, 2); WITH CTE AS ( SELECT A, B, ROW_NUMBER() OVER ( PARTITION BY A, B ORDER BY A, B) AS ROWNUM FROM Geek) SELECT * FROM CTE WHERE rownum>1;
Java
UTF-8
723
2.078125
2
[ "MIT" ]
permissive
package com.sxu.baselibrary.datasource.http.impl; /******************************************************************************* * Description: * * Author: Freeman * * Date: 2018/8/14 * * Copyright: all rights reserved by Freeman. *******************************************************************************/ public interface RequestListener { abstract class SimpleRequestListener<T> implements RequestListener { public abstract void onSuccess(T response); public abstract void onFailure(int code, String msg); } abstract class RequestListenerEx<T> implements RequestListener { abstract void onSuccess(T response, String msg); abstract void onFailure(T response, int code, String msg); } }
Java
UTF-8
1,503
2.34375
2
[]
no_license
package com.shollmann.android.fogon.util; import android.content.Intent; import com.shollmann.android.fogon.DeFogonApplication; import com.shollmann.android.fogon.ui.activities.FavoriteSongsActivity; import com.shollmann.android.fogon.ui.activities.HomeActivity; import com.shollmann.android.fogon.ui.activities.RandomSongsActivity; public class IntentFactory { public static Intent getHomeActivity() { Intent intent = new Intent(DeFogonApplication.getApplication(), HomeActivity.class); intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP); return intent; } public static Intent getFavoriteSongsActivity() { Intent intent = new Intent(DeFogonApplication.getApplication(), FavoriteSongsActivity.class); intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP); return intent; } public static Intent getRandomSongsActivity() { Intent intent = new Intent(DeFogonApplication.getApplication(), RandomSongsActivity.class); intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP); return intent; } public static Intent getSendEmailActivity(String subject) { Intent intent = new Intent(Intent.ACTION_SEND); intent.setType("text/html"); intent.putExtra(Intent.EXTRA_EMAIL, new String[]{Constants.CONTACT_EMAIL}); intent.putExtra(Intent.EXTRA_SUBJECT, subject); return intent; } }
Java
UTF-8
711
2.265625
2
[]
no_license
package bai.atm.model; import bai.atm.dto.ReturnDtoInfo; public class Log implements ReturnDtoInfo{ private String method; private String request; private String response; private Integer status = 200; public String getMethod() { return method; } public void setMethod(String method) { this.method = method; } public String getRequest() { return request; } public void setRequest(String request) { this.request = request; } public String getResponse() { return response; } public void setResponse(String response) { this.response = response; } public Integer getStatus() { return status; } public void setStatus(Integer status) { this.status = status; } }
Markdown
UTF-8
3,433
2.859375
3
[ "MIT" ]
permissive
--- id: 18 title: 湯布院﹣玉の湯 date: '2009-03-15T07:41:21+00:00' author: Vito layout: post guid: 'http://vito.tw/?p=18' categories: - 名宿之旅 --- 九州的湯布院是日本OL票選最佳泡湯渡假的地方,而湯布院最有名的三家溫泉飯店則是合稱為”御三家”的無量塔、龜の井及玉の湯。這三家裏以無量塔最貴,一個人接近五萬日圓的起價和箱根的強羅花壇幾無差別。龜の井及玉の湯價位相當,但只少了一萬多日圓其實也不便宜。無量塔除了比較貴外,位置也較偏遠,因為是第一次造訪湯布院,就先不考慮了,玉の湯又比龜の井離湯布院車站近了一點點,於是玉の湯就成了我第一次到湯布院的溫泉飯店。 下午一點check-in,中午十二點check-out是玉の湯為人樂道的一個特點,為了不辜負主人的美意,我們也就早早來到這裏。 看到入口的這條小徑就讓人充滿了期待 ![](http://farm3.static.flickr.com/2178/2537098185_463a4fbd31.jpg?v=0) 小徑的終點其實是玉の湯的賣店,右邊才是check-in的地方 ![](http://farm3.static.flickr.com/2357/2537907402_b8a2e9c44a.jpg?v=0) 門口有兩隻木馬增添情趣 ![](http://farm3.static.flickr.com/2277/2537893012_6a76e27420.jpg?v=0) Check-in的時候請你坐著休息喝杯茶是基本的待客之道 ![](http://farm3.static.flickr.com/2361/2537836716_3d653517ee.jpg?v=0) 玉の湯是由數間”離”-也就是分開的屋子組成的,每個房間以走道連接,並有自己的小院子,我們的房間名字是ひわ,據說是鳥的名字 ![](http://farm4.static.flickr.com/3072/2537880462_9face84b0e.jpg?v=0) 房間是和洋式;和式: ![](http://farm3.static.flickr.com/2119/2537840420_2897036d51.jpg?v=0) 洋式: ![](http://farm3.static.flickr.com/2269/2537862342_948d07d66d.jpg?v=0) 房間裏有個小湯屋: ![](http://farm3.static.flickr.com/2315/2537859164_c56734803a.jpg?v=0) 整個環境是讓人覺得很輕鬆舒服的一片綠色;溼溼的走道不是因為下雨,而是旅館的人澆的。 ![](http://farm3.static.flickr.com/2166/2538109192_d1bb4f7023.jpg?v=0) 九州的人似乎是對自己的飲食文化有種堅持,所以到處都是鄉土料理,玉の湯的晚餐也是標榜鄉土料理,晚餐三種選擇:雞肉鍋,烤牛肉及鱉鍋。我們點了雞肉鍋及烤牛肉,另外湯的選擇中有鱉肉湯,所以都有吃到。因為不擅長拍食物加上覺得吃東西專心吃比較重要,食物的照片就從缺了。 做為日本OL的最愛,湯布院這個小鎮是有她可愛的地方-熱鬧而安靜,繁華而淳樸。從車站到金鱗湖一公里多的路上有很多賣店同時也有很多美術館;觀光客雖多,但一進入旅館卻是只剩下輕鬆寧靜的氣氛;街道路邊到處是可愛的小花,還有小橋流水,非常適合散步。一離開主要道路就可以看到耕作中的稻田,可以知道這個地方沒有過渡開發或太商業化的問題。雖無緣目賭,但想像夜裏出現的螢火蟲和繁星點點的夜空,一定會相信日本人說的”心靈の療瘉”的效果。 ![](http://farm3.static.flickr.com/2134/2552573197_cac6c50ee2.jpg?v=0) ![](http://farm4.static.flickr.com/3069/2537197287_bf34557b97.jpg?v=0) ![](http://farm4.static.flickr.com/3168/2537962968_95fbfce951.jpg?v=0)
Python
UTF-8
12,433
2.59375
3
[]
no_license
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import os import optparse import binascii import base64 import string import Crypto from Crypto.Hash import * from Crypto.Cipher import * from Crypto.PublicKey import RSA from Crypto import * from pycipher import Foursquare # Tables for CRYPO encoder Base64 translations tableB64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=" tableATOM128 = "/128GhIoPQROSTeUbADfgHijKLM+n0pFWXY456xyzB7=39VaqrstJklmNuZvwcdEC" tableMEGAN35 = "3GHIJKLMNOPQRSTUb=cdefghijklmnopWXYZ/12+406789VaqrstuvwxyzABCDEF5" tableZONG22 = "ZKj9n+yf0wDVX1s/5YbdxSo=ILaUpPBCHg8uvNO4klm6iJGhQ7eFrWczAMEq3RTt2" tableHAZZ15 = "HNO4klm6ij9n+J2hyf0gzA8uvwDEq3X1Q7ZKeFrWcVTts/MRGYbdxSo=ILaUpPBC5" tableGILA7 = "7ZSTJK+W=cVtBCasyf0gzA8uvwDEq3XH/1RMNOILPQU4klm65YbdeFrx2hij9nopG" tableESAB46 = "ABCDqrs456tuvNOPwxyz012KLM3789=+QRSTUVWXYZabcdefghijklmnopEFGHIJ/" tableTRIPO5 = "ghijopE+G78lmnIJQRXY=abcS/UVWdefABCs456tDqruvNOPwx2KLyz01M3Hk9ZFT" tableTIGO3FX = "FrsxyzA8VtuvwDEqWZ/1+4klm67=cBCa5Ybdef0g2hij9nopMNO3GHIRSTJKLPQUX" tableFERON74 = "75XYTabcS/UVWdefADqr6RuvN8PBCsQtwx2KLyz+OM3Hk9ghi01ZFlmnjopE=GIJ4" # Text output colors class txtcolors: PURPLE = '\033[95m' HEADER = '\033[94m' # Blue KEYWORD = '\033[92m' # Green WARNING = '\033[93m' FAIL = '\033[91m' # Red ENDC = '\033[0m' # Ends color scheme BOLD = '\033[1m' UNDERLINE = '\033[4m' # Change color of output if a key word is matched def checkKeyWords(result): if "admin" in result or "root" in result or \ "administrator" in result or "key" in result or \ "pass" in result or "flag" in result: return "key" elif "Invalid" in result or "Non-printable" in result: return "fail" else: return "norm" # Signal whether or not the result contains non-printable characters def checkNonPrintable(result): if all(c in string.printable for c in result): return False else: return True # Output printing function def printOutput(alg, result): # Print upper border with a standard length unless "none" is given if alg != "none": print txtcolors.BOLD + txtcolors.HEADER + "----- %s" %alg, "-" * \ (63 - len(alg)) + txtcolors.ENDC # Print result if result != "": if checkKeyWords(result) == "key": print txtcolors.KEYWORD + result + txtcolors.ENDC elif checkKeyWords(result) == "fail": print txtcolors.FAIL + result + txtcolors.ENDC else: print result # Prevent the code below from running if it's just being imported if __name__ == "__main__": # Define options and args parser = optparse.OptionParser() parser.add_option("-o", "--output", action="store", type="string", dest="outputFileName", help="Write output to a file") (options, args) = parser.parse_args() # Handle options and args if options.outputFileName: print "Caught the output arg! File is ", options.outputFileName # Make sure we get something to decode if len(args) < 1: print "Please specify the string to decrypt. Use -h for help." sys.exit(1) # Read in ciphertext ciphertext = args[0] printOutput("CIPHERTEXT", ciphertext) # Decode Bin to ASCII try: ciphertext_bin = ciphertext.replace(" ","") ciphertext_hx = int('0b'+ciphertext_bin, 2) result_btoa = binascii.unhexlify('%x' %ciphertext_hx) if checkNonPrintable(result_btoa): printOutput("Bin to ASCII", "Non-printable chars in result") else: printOutput("Bin to ASCII", result_btoa) except TypeError: printOutput("Bin to ASCII", "Invalid string for this operation.") except ValueError: printOutput("Bin to ASCII", "Invalid string for this operation.") # Decode Hex to ASCII # Valid formats: 7071, "70 71", \x70\x71, "0x70 0x71" ciphertext_hex = ciphertext.replace("0x","") ciphertext_hex = ciphertext_hex.replace("x","") ciphertext_hex = ciphertext_hex.replace(" ","") try: result_htoa = binascii.unhexlify(ciphertext_hex) if checkNonPrintable(result_htoa): printOutput("Hex to ASCII", "Non-printable chars in result") else: printOutput("Hex to ASCII", result_htoa) except TypeError: printOutput("Hex to ASCII", "Invalid string for this operation.") # Decode Base64 try: result_b64 = base64.b64decode(ciphertext) if checkNonPrintable(result_b64): printOutput("Base64", "Non-printable chars in result") else: printOutput("Base64", result_b64) except TypeError: printOutput("Base64", "Invalid string for this operation.") # Decode reverse-order result_reverse = "" for letternum in range(len(ciphertext) -1, -1, -1): result_reverse += ciphertext[letternum] printOutput("Reverse String", result_reverse) # Decode Caesar Shift, aka rotation ciphers # First check to see if there are even any letters here flg_alpha = False for letternum in range(0, len(ciphertext)): if ciphertext[letternum].isalpha(): flg_alpha = True break if flg_alpha == True: # 25 possible shifts to go through the whole alphabet for shiftnum in range(1,26): result_caesarshift = "" for letternum in range(0, len(ciphertext)): if ciphertext[letternum].isalpha(): letterord = ord(ciphertext[letternum]) resultord = letterord - shiftnum # Rotate back to the start, if reaching end points if ciphertext[letternum].isupper(): if resultord < ord("A"): resultord += 26 if ciphertext[letternum].islower(): if resultord < ord("a"): resultord += 26 result_caesarshift += chr(resultord) # Don't shift symbols/spaces else: result_caesarshift += ciphertext[letternum] if shiftnum == 1: outputTitle = "Caesar Shift/ROT(n)" printOutput(outputTitle, "") if checkKeyWords(result_caesarshift) == "key": print txtcolors.KEYWORD + "%02d: "%shiftnum + result_caesarshift + \ txtcolors.ENDC else: print "%02d: "%shiftnum + result_caesarshift else: printOutput("Caesar Shift", "No letters to rotate") # Decode ATOM-128, MEGAN-35, ZONG-22, HAZZ-15 ciphers # These all follow the same principle for decoding: # Translate the string to b64 using the tables above, then decode the b64 dictTables = {"ATOM-128":tableATOM128, "MEGAN-35":tableMEGAN35, \ "ZONG-22":tableZONG22, "HAZZ-15":tableHAZZ15, \ "GILA-7":tableGILA7, "ESAB-46":tableESAB46, \ "TRIPO-5":tableTRIPO5, "TIGO-3FX":tableTIGO3FX, \ "FERON-74":tableFERON74 } printOutput("CRYPO CIPHERS", "") for method in ["ATOM-128", "MEGAN-35", "ZONG-22", "HAZZ-15", \ "GILA-7", "ESAB-46", "TRIPO-5", "TIGO-3FX", "FERON-74"]: try: trans = string.maketrans(dictTables[method], tableB64) result_method = base64.b64decode(ciphertext.translate(trans)) if checkNonPrintable(result_method): printOutput("none", method + ": " + "Non-printable chars in result") else: printOutput("none", method + ": " + result_method) except TypeError: print txtcolors.FAIL + method + ": Invalid string for this operation" + \ txtcolors.ENDC # Decode try: result_b64 = base64.b64decode(ciphertext) if checkNonPrintable(result_b64): printOutput("Base64", "Non-printable chars in result") else: printOutput("Base64", result_b64) except TypeError: printOutput("Base64", "Invalid string for this operation.") #New Ciphers try: #Decode SHA256 SHA256.new(ciphertext).hexdigest() == result_sha256 if checkNonPrintable(result_sha256): printOutput("SHA256", "Non-printable chars in result") else: printOutput("SHA256", result_sha256) except TypeError: printOutput("SHA256", "Invalid string for this operation.") #Not written this yet. #Decode MD5 def get_file_checksum(filename): h = MD5.new() return h.hexdigest() #Not written this yet. #Not written this yet. try: des = DES.new('01234567', DES.MODE_ECB) result_des = des.decrypt(ciphertext) if checkNonPrintable(result_des): printOutput("DES", "Non-printable chars in result") else: printOutput("DES", result_des) except TypeError: printOutput("DES", "Invalid string for this operation.") #Not written this yet. #DES CFB iv = Random.get_random_bytes(8) des1 = DES.new('01234567', DES.MODE_CFB, iv) des2 = DES.new('01234567', DES.MODE_CFB, iv) text = 'abcdefghijklmnop' cipher_text = des1.encrypt(text) cipher_text des2.decrypt(cipher_text) #Not written this yet. #Stream Ciphers #ARC4 try: obj1 = ARC4.new('01234567') obj2 = ARC4.new('01234567') result_arc4 = obj2.decrypt(ciphertext) if checkNonPrintable(result_arc4): printOutput("ARC4", "Non-printable chars in result") else: printOutput("ARC4", result_arc4) except TypeError: printOutput("ARC4", "Invalid string for this operation.") #Not written this yet. #DES3 try: def encrypt_file(in_filename, out_filename, chunk_size, key, iv): des3 = DES3.new(key, DES3.MODE_CFB, iv) with open(in_filename, 'r') as in_file: with open(out_filename, 'w') as out_file: while True: chunk = in_file.read(chunk_size) if len(chunk) == 0: break elif len(chunk) % 16 != 0: chunk += ' ' * (16 - len(chunk) % 16) out_file.write(des3.encrypt(chunk)) def decrypt_file(in_filename, out_filename, chunk_size, key, iv): des3 = DES3.new(key, DES3.MODE_CFB, iv) with open(in_filename, 'r') as in_file: with open(out_filename, 'w') as out_file: while True: chunk = in_file.read(chunk_size) if len(chunk) == 0: break out_file.write(des3.decrypt(chunk)) #Not written this yet. # iv = Random.get_random_bytes(8) # with open('to_enc.txt', 'r') as f: # print 'to_enc.txt: %s' % f.read() # encrypt_file('to_enc.txt', 'to_enc.enc', 8192, key, iv) # with open('to_enc.enc', 'r') as f: # print 'to_enc.enc: %s' % f.read() # decrypt_file('to_enc.enc', 'to_enc.dec', 8192, key, iv) # with open('to_enc.dec', 'r') as f: # print 'to_enc.dec: %s' % f.read() #Not written this yet. try: random_generator = Random.new().read key = RSA.generate(1024, random_generator) key public_key = key.publickey() enc_data = public_key.encrypt('abcdefgh', 32) enc_data key.decrypt(enc_data) four1='ZGPTFOIHMUWDRCNYKEQAXVSBL' four2='MFNBDCRHSAXYOGVITUEWLQZKP' phrase='ATTACK AT DAWN' if (len(sys.argv)>1): four1=str(sys.argv[1]) if (len(sys.argv)>2): four2=str(sys.argv[2]) if (len(sys.argv)>3): phrase=str(sys.argv[3]) from pycipher import Foursquare s = Foursquare(four1,four2) res=Foursquare(key1=four1,key2=four2).encipher(phrase) print ("Cipher: ",res) print ("Decipher: ",Foursquare(key1=four1,key2=four2).decipher(res))
Markdown
UTF-8
4,120
2.84375
3
[]
no_license
--- description: "Recette De Courgette au four" title: "Recette De Courgette au four" slug: 3842-recette-de-courgette-au-four date: 2021-02-17T04:35:44.732Z image: https://img-global.cpcdn.com/recipes/5bdebe839e794962/751x532cq70/courgette-au-four-photo-principale-de-la-recette.jpg thumbnail: https://img-global.cpcdn.com/recipes/5bdebe839e794962/751x532cq70/courgette-au-four-photo-principale-de-la-recette.jpg cover: https://img-global.cpcdn.com/recipes/5bdebe839e794962/751x532cq70/courgette-au-four-photo-principale-de-la-recette.jpg author: Jesus Johnson ratingvalue: 4.1 reviewcount: 13 recipeingredient: - " courgettes" - " Huile dolive" - " Herbe de Provence" - " Sel" - " Poivre" recipeinstructions: - "Laver et couper en 2 les courgettes" - "Verser 1 ou 2 cuillères d&#39;huile d&#39;olive dessus" - "Parsemer des herbes de Provence, Saler et poivrer" - "Placer votre plat au four à 180°C une vingtaine de minutes" - "Idéale pour accompagner les viandes grillées des barbecues😉" categories: - Resep tags: - courgette - au - four katakunci: courgette au four nutrition: 219 calories recipecuisine: Indonesian preptime: "PT20M" cooktime: "PT57M" recipeyield: "3" recipecategory: Dinner --- ![Courgette au four](https://img-global.cpcdn.com/recipes/5bdebe839e794962/751x532cq70/courgette-au-four-photo-principale-de-la-recette.jpg) La plupart des gens ont peur de commencer à cuisiner courgette au four de peur que la nourriture ne soit pas bonne. Beaucoup de choses affectent la qualité gustative de courgette au four! Tout d'abord, du point de vue de la qualité des ustensiles de cuisine, assurez-vous toujours d'utiliser des ustensiles de cuisine de qualité et toujours en état de propreté. Ensuite, les types d'ingrédients utilisés ont également un effet sur l'ajout de saveur, utilisez donc toujours des ingrédients frais. De plus, entraînez-vous à reconnaître les différentes saveurs de la cuisine, profitez de chaque étape de la cuisine avec tout votre cœur, car la sensation d'être excité, calme et non pressé affecte aussi le goût de la cuisine! <!--inarticleads1--> Vous pouvez cuire courgette au four en utilisant 5 Ingrédients et 5 pas. Voici comment vous cuire cette. ##### Ingrédients de courgette au four : 1. Utilisation courgettes 1. Vous avez besoin Huile d&#39;olive 1. Fournir Herbe de Provence 1. Préparer Sel 1. Vous avez besoin Poivre Arosez les courgettes d&#39;huile et soupoudrez le parmesan. Huiler un grand plat à gratin. Des courgettes au four, légères et goûteuses grâce à sa marinade au za&#39;atar. Un plat estival qui accompagne très bien des tomates au four ou des boulettes de viande… Découvrez la préparation de la recette &#34;Courgettes au four&#34; : Pour faire vos courgettes au four :Faites pocher courgettes coupées en rondelles à l&#39;eau bouillante salée.Égouttez-les. <!--inarticleads2--> ##### Courgette au four instructions : 1. Laver et couper en 2 les courgettes 1. Verser 1 ou 2 cuillères d&#39;huile d&#39;olive dessus 1. Parsemer des herbes de Provence, Saler et poivrer 1. Placer votre plat au four à 180°C une vingtaine de minutes 1. Idéale pour accompagner les viandes grillées des barbecues😉 La disposer sur une plaque recouverte de papier sulfurisé, sur une seule couche. Le plat du jour : Carpaccio de courgettes de pays avec son pesto de basilic au verjus et houmous citron confit moutarde. Les saveurs de la courgette sont rehaussées avec cette cuisson. Pour une fois qu&#39;un de mes tests à fonctionné, je le partage ici Pour les réaliser, point de friteuse mais une cuisson des frites de courgettes au four tout simplement. Recettes Faciles: Courgettes blanches au four. <!--inarticleads1--> <p> Prenez ces concepts de recettes Courgette au four et utilisez-les ainsi que peut-être même expérimentez pendant que vous y êtes. Le coin cuisine est un excellent endroit pour tenter de nouveaux points avec l'aide appropriée. </p> <p> <i>Si vous trouvez cette Courgette au four recette utile, partagez-la avec vos amis ou votre famille, merci et bonne chance.</i> </p>
Markdown
UTF-8
3,889
2.765625
3
[]
no_license
# Задание на JS Цель задания — реализовать алгоритм работы «умного дома», который будет производить расчёт стоимости потребляемой электроэнергии в день и возвращать рекомендованное расписание использования электроприборов, оптимизируя денежные затраты. На вход подаются данные о тарифах, электроприборах и их максимальной потребляемой мощности. Тарифы — это периоды в сутках, для которых задана отдельная стоимость киловатт-часа. Приборы — это набор подключенных к «умному дому» электроприборов, для которых известна потребляемая мощность, длительность цикла работы, а также время дня, когда они используется. Каждый прибор должен отработать один цикл в сутки. Максимально потребляемая мощность указывается в ватт-часах. На выходе должно получиться суточное расписание включения электроприборов. Каждый прибор за сутки должен отработать один цикл, а суммарная стоимость потраченной электроэнергии должна быть минимальной. При значении mode — day период с 07:00 до 21:00. При значении mode — night период с 21:00 до 07:00 следующего дня. При значении mode — undefined период отсутствует, прибор может работать в любой промежуток времени. Примеры входных и выходных данных: [входные данные](https://github.com/Fizduy/entrance-task-3-2/blob/master/data/input.json) [выходные данные](https://github.com/Fizduy/entrance-task-3-2/blob/master/data/output.json) ## Результаты работы Реализованы проверки входных данных на превышение доступной мощности. Формирование расписания начинается с приборов, работающих 24 часа, далее - остальные приборы, в порядке уменьшения дельты стоимости (device.price_min_delta). Прибор старается занять слот, к котором его available.price минимальная. При наличии нескольких одинаковых слотов, выбирает наименее занятый. todo: 1) В случае, если ни один слот не доступен - создать варианты передвижения: - выбрать приборы с достаточной освобождающейся мощностью - создать копию schedule и заменить в нем перемещаемый прибор с исходным, и пытаться переместить их с мин. дельтой стоимости. - если мин. дельты заняты или слотов нет - учитывать рекурсию передвижения других приборов. 2) Если слоты есть, но минимальная цена недоступна, сравнить текущую возможную дельту с мин. дельтой прибора в нужносм слоте.
PHP
UTF-8
8,922
2.671875
3
[]
no_license
<?php require_once('Mpx.php'); require_once('ColorValues.php'); class ServiceOrder { public $serviceOrderHead = array(); public $salesOrderHead = array(); public $salesOrderItem = array(); public $operations = array(); public $components = array(); public $partners = array(); public $contacts = array(); public $barcodes = array(); public $colors = array(); public $salesOrderCharacteristics = array(); public $sku = array(); public $custmatinfo = array(); public $customerFields = array(); public $orderId = ''; public $requestTimestamp = 0; public $errorCode = 0; public $errorMsg = ''; private $mpx; function __construct() { $this->mpx = new Mpx(); } public function printr($arr) { echo '<pre>'; print_r($arr); echo '</pre>'; } public function array_keys_multi($inputArr) { $outArr = array(); foreach($inputArr as $arrItem) { foreach($arrItem as $itemKey=>$itemValue) $outArr[$itemKey] = ''; } return $outArr; } public function isValidOrderId($id) { return ctype_digit($id); } public function parseId($id) { if (!$this->isValidOrderId($id)) { $this->errorCode = 1; $this->errorMsg = 'Invalid Order ID provided'; return false; } $this->orderId = $id; return true; } public function get($id) { if ($this->parseId($id) === false) return false; $svcObj = $this->mpx->fetchUnifiedData($id); if ($svcObj === false) { $this->errorCode = $this->mpx->errorCode; $this->errorMsg = $this->mpx->errorMsg; return false; } $this->parse($svcObj); } public function parse(&$svcObj) { //$this->printr($svcObj); $this->requestTimestamp = (int) $svcObj->request_timestamp; $this->parseServiceOrderHead($svcObj); //$this->printr($this->serviceOrderHead); $this->parseSalesOrderHead($svcObj); //$this->printr($this->salesOrderHead); $this->parseSalesOrderItem($svcObj); //$this->printr($this->salesOrderItem); $this->parseOperations($svcObj); //$this->printr($this->operations); $this->parseComponents($svcObj); //$this->printr($this->components); $this->parsePartners($svcObj); //$this->printr($this->partners); //$this->printr($this->contacts); $this->parseBarcodes($svcObj); //$this->printr($this->barcodes); $this->parseColors($svcObj); //$this->printr($this->colors); $this->parseSalesOrderCharacteristics($svcObj); //$this->printr($this->salesOrderCharacteristics); //$this->printr($this->customerFields); $this->parseSku($svcObj); //$this->printr($this->sku); $this->parseCustmatinfo($svcObj); //$this->printr($this->custmatinfo); $this->projectId = $this->serviceOrderHead['ORDERID']; return $this; } private function parseAttributeChildren(&$attrObj) { $tmpArr = array(); foreach($attrObj->children($this->mpx->mpxNS) as $attribute) $tmpArr[$attribute->getName()] = (string) $attribute ; return $tmpArr; } private function parseServiceOrderHead(&$svcObj) { foreach($svcObj->ServiceOrder->ServiceOrderHead->attributes() as $key=>$val) { $this->serviceOrderHead[$key] = (string) $val; } } private function parseSalesOrderHead(&$svcObj) { foreach($svcObj->SalesOrder->SalesOrderHead->attributes() as $key=>$val) { $this->salesOrderHead[$key] = (string) $val; } } private function parseSalesOrderItem(&$svcObj) { foreach($svcObj->SalesOrder->SalesOrderItem->attributes() as $key=>$val) { $this->salesOrderItem[$key] = (string) $val; } } private function parseOperations(&$svcObj) { foreach($svcObj->ServiceOrder->Operation->children() as $operation) { $activityId = (int) $operation->attributes()->ACTIVITY; foreach($operation->attributes() as $key=>$val) { $this->operations[$activityId][$key] = (string) $val ; } } ksort($this->operations); } private function parseComponents(&$svcObj) { foreach($svcObj->ServiceOrder->Component as $component) { $activityId = (string) $component->attributes()->ACTIVITY; $itemNumber = (int) $component->attributes()->ITEM_NUMBER; foreach($component->attributes() as $key=>$val) { $this->components[$activityId][$itemNumber][$key] = (string) $val ; } } ksort($this->components); } private function parsePartners(&$svcObj) { $contacts = array(); foreach($svcObj->ServiceOrder->Partner->children() as $partner) { //$this->printr($partner); $nodeName = $partner->getName(); foreach($partner->attributes() as $key=>$val) $contacts[$nodeName][$key] = (string) $val ; } foreach($svcObj->SalesOrder->SalesOrderPartner->children() as $partner) { //$this->printr($partner); $nodeName = $partner->getName(); foreach($partner->attributes() as $key=>$val) $contacts[$nodeName][$key] = (string) $val ; } foreach($contacts as $key=>$partnerArr) { switch($key) { case 'AG': $this->contacts[$key] = $partnerArr; $this->contacts[$key]['ROLE_DESCRIPTION'] = 'Sold-to party'; break; case 'AP': $this->contacts[$key] = $partnerArr; $this->contacts[$key]['ROLE_DESCRIPTION'] = 'Contact person'; break; case 'RE': //$this->partners[$key]['ROLE_DESCRIPTION'] = 'Bill-to party'; break; case 'RG': //$this->partners[$key]['ROLE_DESCRIPTION'] = 'Payer'; break; case 'VE': $this->contacts[$key] = $partnerArr; $this->contacts[$key]['ROLE_DESCRIPTION'] = 'Sales Employee'; break; case 'WE': $this->contacts[$key] = $partnerArr; $this->contacts[$key]['ROLE_DESCRIPTION'] = 'Ship-to party'; break; case 'ZM': $this->contacts[$key] = $partnerArr; $this->contacts[$key]['ROLE_DESCRIPTION'] = 'Person respons.'; break; case 'ZN': $this->partners[$key] = $partnerArr; $this->partners[$key]['ROLE_DESCRIPTION'] = 'Printer'; break; case 'ZO': $this->partners[$key] = $partnerArr; $this->partners[$key]['ROLE_DESCRIPTION'] = 'Brandowner'; break; case 'ZR': $this->partners[$key] = $partnerArr; $this->partners[$key]['ROLE_DESCRIPTION'] = 'Agency'; break; case 'ZS': $this->partners[$key] = $partnerArr; $this->partners[$key]['ROLE_DESCRIPTION'] = 'Supplier'; break; } } } private function parseBarcodes(&$svcObj) { $x = 0; foreach($svcObj->SalesOrder->Barcode->children() as $barcode) { foreach($barcode->attributes() as $key=>$val) { $this->barcodes[$x][$key] = (string) $val ; } $memoNode = 'ZLP_BC_MEMO_TXT_'.str_pad($x+1, 2, 0, STR_PAD_LEFT); if (isset($svcObj->SalesOrder->SalesOrderCharacteristics->{$memoNode})) $this->barcodes[$x]['ZLP_BC_MEMO_TXT'] = (string) $svcObj->SalesOrder->SalesOrderCharacteristics->{$memoNode}->attributes()->VALUE; $x++; } } private function parseColors(&$svcObj) { $x = 0; $colorValues = new ColorValues(); foreach($svcObj->SalesOrder->Color->children() as $color) { foreach($color->attributes() as $key=>$val) { //$key = str_replace(array('ZLP_', 'AG_', 'F_'), '', $key); //$key = str_replace('_', ' ', $key); //$key = ucwords(strtolower($key)); $this->colors[$x][$key] = (string) $val ; if ($key == 'Color') $this->colors[$x]['ColorValue'] = $colorValues->lookup( (string) $val ); } $x++; } } private function parseSalesOrderCharacteristics(&$svcObj) { foreach($svcObj->SalesOrder->SalesOrderCharacteristics->children() as $characteristic) { $nodeName = $characteristic->getName(); $this->salesOrderCharacteristics[$nodeName] = (string) $characteristic['VALUE']; if (preg_match('/ZLP_CUST_SPEC_FIELD_LABEL_(\d+)/', $nodeName, $fieldNum)) { $valueNode = (string) $svcObj->SalesOrder->SalesOrderCharacteristics->{'ZLP_CUST_SPEC_FIELD_VALUE_'.$fieldNum[1]}['VALUE']; $this->customerFields['ZLP_CUST_SPEC_FIELD_'.$fieldNum[1]] = array('label'=> (string) $characteristic['VALUE'], 'value'=> $valueNode); //$this->printr($characteristic); } } $colorValues = new ColorValues(); $x = 1; foreach($svcObj->SalesOrder->Color->children() as $color) { $inkNum = str_pad($x, 2, 0, STR_PAD_LEFT); foreach($color->attributes() as $key=>$val) { $chrcKey = $key.'_'.$inkNum; $this->salesOrderCharacteristics[$chrcKey] = (string) $val ; if ($key == 'ZLP_AG_F_COLOR') $this->salesOrderCharacteristics['ColorValue_'.$inkNum] = $colorValues->lookup( (string) $val ); } $x++; } } private function parseSku(&$svcObj) { foreach($svcObj->SalesOrder->SKU->attributes() as $key=>$val) { $this->sku[$key] = (string) $val; } } private function parseCustmatinfo(&$svcObj) { foreach($svcObj->SalesOrder->CustMatInfo->attributes() as $key=>$val) { $this->custmatinfo[$key] = (string) $val; } } } ?>
Markdown
UTF-8
1,157
2.9375
3
[]
no_license
##2.5 订单拣选 点击“订单拣选”标签,进入订单拣选的主界面。该模块可以实现订单货位的分配和订单产品的拣选、查看在拣的订单数、货位的即时添加4个功能。 - 订单货位分配。对已经拣选出库的一联集合拆分成独立订单,按照”一单一货位“的原则,通过订单的扫码进行订单货位的分配。 - 产品的订单分配。扫产品相应的条码信息,根据语音提示选择相应的货位。 - 在拣订单的查看。如果商品拣选完成后,页面提示“拣选中的订单”不为“0”,点击订单数查看货位拣选详细信息,通过“强制清空货位”、“强制完成拣选中的订单”,进行订单的强制完成和货位的强制清空。 - 货位的即时添加。即订单的货位分配和产品的分配可同时进行。 <img src="images/订单拣选刘.png" alt = "图 2-5订单拣选系统--产品管理操作界面" align=center /> <p align=center>`图 2-5订单拣选系统--产品管理操作界面`</p> ##links + 上一节:[集合单管理](2.4.md) + 下一节:[订单拣选系统业务流程](2.6.md)
JavaScript
UTF-8
215
2.8125
3
[]
no_license
export function unique(arr) { var i, len=arr.length, out=[], obj={}; for (i=0;i<len;i++) { obj[arr[i]]=0; } for (i in obj) { out.push(i); } return out; }
Python
UTF-8
2,769
2.640625
3
[]
no_license
#!/usr/bin/python # -*- coding: utf-8 -*- import numpy as np import json import math import os from matplotlib import pyplot as plt import re def get_configuration(filename): try: f = open(filename) ret = json.loads(f.read()) f.close() return ret except: return {} def flatten(l): return [item for sublist in l for item in sublist] def save_image_or_show(path, filename): if path is None: plt.show() else: f = os.path.join(path) if not os.path.exists(f): os.makedirs(f) f = os.path.join(f, filename) plt.savefig(f) plt.clf() def get_auc(xs, ys): ret = 0.0 for i in xrange(1, len(xs)): this_y = ys[i] prev_y = ys[i - 1] base = xs[i] - xs[i - 1] ret += base * (min(this_y, prev_y) + abs(this_y - prev_y) / 2) return ret def get_feature_auc(feature, authors, plot=True, config=None, language=""): def distance(a, b): return abs(a - b) def up_to_k(values, threshold, first): id_v = first n = len(values) while id_v < n and values[id_v] <= threshold: id_v += 1 return id_v values = [a["features"][feature] for a in authors] values.sort() all_distances = [distance(v, w) for v in values for w in values] all_distances = list(set(all_distances)) all_distances.sort() distance_error = {d: 0 for d in all_distances} for v in values: v_distances = [distance(v, w) for w in values] v_distances.sort() remaining = list(v_distances) first = 0 for d in all_distances: filtered_distances = up_to_k(remaining, d, first) first = filtered_distances distance_error[d] += 1.0 - float(filtered_distances - 1) / \ len(values) xs = [d for d in distance_error] xs.sort() x_max_val = max(xs) x_min_val = min(xs) ys = [distance_error[d] for d in xs] y_max_val = max(ys) y_min_val = min(ys) xs = [(x - x_min_val) / (x_max_val - x_min_val + 1e-6) for x in xs] ys = [(y - y_min_val) / (y_max_val - y_min_val + 1e-6) for y in ys] area = get_auc(xs, ys) if plot: path = "output" if config is not None: path = os.path.join(config["results"], "features_auc", language) plt.plot(xs, ys) plt.title(feature + " - " + str(area)) save_image_or_show(path, feature + ".png") return area def remove_dirs(top): for root, dirs, files in os.walk(top, topdown=False): for name in files: os.remove(os.path.join(root, name)) for name in dirs: os.rmdir(os.path.join(root, name))
Markdown
UTF-8
1,895
2.59375
3
[]
no_license
## HBase特点 海量存储、列式存储、极易扩展、高并发、稀疏。 ## HBase架构 ![image-20200813151111083](D:\MarkDown\BigData\img\image-20200813151111083.png) ### client Client包含了访问Hbase的接口,另外Client还维护了对应的cache来加速Hbase的访问,比如cache的.META.元数据的信息。 ### Zookeeper Zookeeper的高可用、RegionServer的监控、元数据的入口以及集群配置的维护等工作。具体工作如下: 通过Zoopkeeper来保证集群中只有1个master在运行,如果master异常,会通过竞争机制产生新的master提供服务 通过Zoopkeeper来监控RegionServer的状态,当RegionSevrer有异常的时候,通过回调的形式通知Master RegionServer上下线的信息 通过Zoopkeeper存储元数据的统一入口地址 ### Hmaster HmastergionServer分配Region 维护整个集群的负载均衡 维护集群的元数据信息 发现失效的Region,并将失效的Region分配到正常的RegionServer上 当RegionSever失效的时候,协调对应Hlog的拆分 ### HregionServer HregionServer直接对接用户的读写请求,是真正的“干活”的节点。它的功能概括如下: 管理master为其分配的Region 处理来自客户端的读写请求 负责和底层HDFS的交互,存储数据到HDFS 负责Region变大以后的拆分 负责Storefile的合并工作 ### HDFS HDFS为Hbase提供最终的底层数据存储服务,同时为HBase提供高可用(Hlog存储在HDFS)的支持,具体功能概括如下: 提供元数据和表数据的底层分布式存储服务 数据多副本,保证的高可靠和高可用性 put 'student' ,'1002','info:name','liao' scan 'student',{STARTROW=>'1001'} put 'student','1002','info:name','wang' get 'student','1002' delete 'student','1002','info:name' deleteall 'student','1001' truncate 'student'
Swift
UTF-8
515
2.765625
3
[]
no_license
// // ImageHelper.swift // TabBar // // Created by Иосиф Дзеранов on 24/05/2017. // Copyright © 2017 IO Dzeranov. All rights reserved. // import Foundation import UIKit class ImageHelper { static func imageJPEGToData(image:UIImage) -> Data{ let data = UIImageJPEGRepresentation(image, 0.5) if let data = data { return data } return Data() } static func dataToImage(data: Data) -> UIImage { let image = UIImage(data: data) return image! } }
Python
UTF-8
674
2.640625
3
[]
no_license
import urllib.request from datetime import datetime import time import os data=open('name_fit.txt', 'r') path=str(os.getcwd()) scroll=len(os.listdir(path=path))-2 date = datetime.now() time_b=time.monotonic() print("-----start-----: ",date) for line in data: filename=line[0:-1] ext=filename[-3:] try: scroll=len(os.listdir(path=path))-2 if (ext=="fit"): print(filename,"loaded", scroll) url='http://10.2.1.16/SRH/'+filename urllib.request.urlretrieve(url,filename) except: continue time_e = time.monotonic() date = datetime.now() print("-----done-----: ",date) print("time: ",time_e-time_b)
PHP
UTF-8
1,915
2.8125
3
[]
no_license
<?php namespace App\View\Form; use Core\HTML\Form\Form; class ArticleForm { /** * @param $post * @return Form */ static function _article($post,$keywords = [], $categories = []) { $form = new Form($post); $form->input("titre", array('label' => "titre article")) ->input("menu", array('label' => "menu article")) ->input("keyword", array('type' => 'textarea', 'label' => "keyword (séparés par des virgules)", "value" => implode(",",$keywords) )) ->input("description", array('type' => 'textarea', 'label' => "Description/Extrait" )) ->select("parent_id", array('options' => $categories, 'label' => "Categorie"),$categories) ->input("date", array('type' => 'date', 'label' => "ajouté")) ->input("type",array("type"=>"hidden", "value"=>"article")) ->submit("Enregistrer"); return $form ; } /** * @param $post * @return Form */ static function _content($post) { $form = new Form($post); $form ->input("contenu", array('type' => 'textarea', 'label' => "contenu", "class" => "editor")) ->submit("Enregistrer"); return $form ; } /** * @param $post * @return Form */ static function _categorie($post,$keywords = array()) { $form = new Form($post); $form->input("titre", array('label' => "Titre Cat")) ->input("menu", array('label' => "menu article")) ->input("keyword", array('type' => 'textarea', 'label' => "keyword (séparés par des virgules)", "value" => implode(",",$keywords) )) ->input("description", array('type' => 'textarea', 'label' => "Description" )) //->input("type",array("type"=>"hidden" ,"value" =>"categorie")) ->submit("Enregistrer"); return $form ; } }
PHP
UTF-8
591
2.8125
3
[]
no_license
<?php $arquivo = $_FILES["foto"]; if ($arquivo["error"] <> 0) { echo "Erro ao carregar o arquivo"; return; } $formato_permitido = "image/jpeg"; if ($arquivo["type"] != $formato_permitido) { echo "Formato não suportado. Utilize $formato_permitido."; } else { $imagem = $arquivo["name"]; $path = "upload"; if (move_uploaded_file($arquivo["tmp_name"], "$path/$imagem")) { echo "<h4>Imagem carregada com sucesso!</h4>"; echo "<img src='". "$path/$imagem" ."' width='400' />"; } } ?>
Python
UTF-8
12,932
2.625
3
[ "MIT" ]
permissive
#!/usr/bin/env python #-*- coding:utf-8 -*- import urllib.request, urllib.parse, urllib.error import gzip import io import re import time import datetime import twopy from . import utility class Thread: """ 2chのスレッドを管理するクラスです. """ __url = re.compile(r"http://(.+?)/test/read.cgi/(.+?)/(\d+)") __etag = re.compile(r'".*"') __hidden = re.compile(r'input type=hidden name="(.+?)" value="(.+?)"') @classmethod def initWithURL(cls, url, board=None, user=None): """ スレッドを示すURLから、対象のThreadクラスを生成します. url: 対象となるURL board: Boardインスタンスが既にある場合は指定 user: 通信に用いるtwopy.Userクラスのインスタンス """ server, board_name, dat_number = Thread.parseURLToProperties(url) u = user or twopy.User.anonymouse() if board: b = board else: board_url = "http://%s/%s/" % (server, board_name) b = twopy.Board(board_url, u) filename = "%s.dat" % dat_number return Thread(b, filename, u) @classmethod def initWithDat(cls, dat, url, user=None): """ datからThreadクラスを生成します。 dat: スレッドのdatが格納されている文字列 url: スレッドを指し示すURL """ thread = Thread.initWithURL(url) thread._Thread__rawdat = dat thread.reload() return thread @classmethod def parseURLToProperties(cls, url): """ スレッドを示すURLから (サーバードメイン, 板の名前, スレッド番号) からなる文字列のタプルを返します。 """ rs = Thread.__url.search(url) assert rs, Exception("this url is not valid.") server = rs.group(1) board_name = rs.group(2) dat_number = rs.group(3) return (server, board_name, dat_number) def __init__(self, board, filename, user=None, title="", initialRes=0): """ オブジェクトのコンストラクタです. board: 対象となる板のインスタンス filename: datファイル名 user: 通信に用いるtwopy.Userクラスのインスタンス title: スレッドのタイトルが判明している場合は別途指定. retrieve()が呼び出された場合は、取得したスレッド名で上書きされる. initialRes: スレッドのレス数が判明している場合は別途指定. """ self.__board = board self.__filename = filename self.__user = user or twopy.User.anonymouse() self.__title = title self.__initialResNumber = initialRes self.__rawdat = "" self.__comments = [] self.__isBroken = False self.__last_modified = None self.__etag = None def __init_thread(self): self.__rawdat = "" self.__comments = [] def getBoard(self): return self.__board board = property(getBoard) def getFilename(self): return self.__filename filename = property(getFilename) def getUser(self): return self.__user user = property(getUser) def getConfig(self): return self.get_isRetrieved__conf def setConfig(self, conf): self.get_isRetrieved__conf = conf config = property(getConfig, setConfig) def getTitle(self): return self.__title title = property(getTitle) def getInitialResponse(self): return self.__initialResNumber initialRes = property(getInitialResponse) def getResponse(self): if self.isRetrieved: return len(self.__comments) else: return self.__initialResNumber response = property(getResponse) res = property(getResponse) def getPosition(self): return len(self.__comments) position = property(getPosition) def getDat(self): return self.__rawdat dat = property(getDat) def getDatNumber(self): return int(self.filename[:-4]) dat_number = property(getDatNumber) def get_isRetrieved(self): return len(self.__comments) > 0 isRetrieved = property(get_isRetrieved) def get_isBroken(self): return self.__isBroken isBroken = property(get_isBroken) def getUrl(self): u = "%sdat/%s" % (self.board.url, self.filename) return u url = property(getUrl) def getCGIUrl(self): u = "%stest/read.cgi/%s/%s/" % (self.board.getServer(), self.board.name, self.filename[:-4]) return u cgi_url = property(getCGIUrl) def getSince(self): return datetime.datetime.fromtimestamp(self.dat_number) since = property(getSince) def getVelocity(self, t=None): tp = t or time.time() now = int(tp) delta = now - self.dat_number return self.response / float(delta) * 3600 velocity = property(getVelocity) def retrieve(self): """ スレッドからdatファイルを読み込み、その内容を取得します. 返り値: HTTPステータスコードと、取得したコメントが格納されている配列のタプル """ self.__init_thread() try: response = self.user.urlopen(self.url, gzip=True) except urllib.error.HTTPError as e: response = e if response.code == 200: headers = response.info() self.__last_modified = headers["Last-Modified"] self.__etag = Thread.__etag.search(headers["ETag"]).group(0) gzip_str = io.BytesIO(response.read()) self.__rawdat = gzip.GzipFile(fileobj=gzip_str).read() if self.__rawdat.startswith(b"<html>"): # Dat落ちと判断 raise twopy.DatoutError(twopy.Message(self.__rawdat)) self.__parseDatToComments(str(self.__rawdat, "MS932", "replace")) self.__isBroken = False self.__res = len(self.__comments) elif response.code == 203: # Dat落ちと判断(10/01/24現在のanydat.soモジュールの仕様より) raise twopy.DatoutError(twopy.Message( ["203 Non-Authoritative Information", ("203レスポンスヘッダが返されました。" "このスレッドはDat落ちになったものと考えられます。")])) elif response.code == 404: raise twopy.DatoutError(twopy.Message( ["404 File Not Found", ("404レスポンスヘッダが返されました。" "このスレッドはDat落ちになったものと考えられます。")])) return (response.code, self.__comments) def __parseDatToComments(self, dat): comments = [] for line in dat.split("\n"): if len(self.__comments) == 0: columns = line.split("<>") self.__title = columns[4] if line != "": tmp = twopy.Comment(self, line, self.position + 1) comments.append(tmp) self.__comments.append(tmp) return comments def update(self): """ スレッドの内容を更新します. 返り値: HTTPステータスコードと、取得したコメントが格納されている配列のタプル """ assert not self.isBroken, twopy.BrokenError("this thread is broken. not updated.") if not self.isRetrieved: # 未取得だった場合 return self.retrieve() updatedComments = [] response = None try: response = self.user.urlopen(self.url, gzip=False, bytes=len(self.__rawdat), if_modified_since=self.__last_modified, if_none_match=self.__etag) if response.code == 206: # datが更新されていた場合 headers = response.info() self.__last_modified = headers["Last-Modified"] self.__etag = Thread.__etag.search(headers["ETag"]).group(0) newdat = response.read() self.__rawdat += newdat updatedComments = self.__parseDatToComments(newdat) elif response.code == 416: # datが壊れている場合 self.__isBroken = True elif response.code == 203: # dat落ちと判断 raise twopy.DatoutError(twopy.Message(("203 Non-Authoritative Information", \ "203レスポンスヘッダが返されました。このスレッドはDat落ちになったものと考えられます。"))) elif response.code == 404: # dat落ちと判断 raise twopy.DatoutError(twopy.Message(("404 File Not Found", \ "404レスポンスヘッダが返されました。このスレッドはDat落ちになったものと考えられます。"))) else: raise TypeError return (response.code, updatedComments) except urllib.error.HTTPError as e: if e.code == 304: # datが更新されていない場合 pass elif e.code == 404: raise twopy.DatoutError(twopy.Message(["404 File Not Found", \ "404レスポンスヘッダが返されました。このスレッドはDat落ちになったものと考えられます。"])) return (e.code, updatedComments) def reload(self): """ 現在保管しているdatデータを再読み込みします。 """ self.__comments = self.__parseDatToComments(self.__rawdat) self.__isBroken = False def reloadWithDat(self, dat): """ DATデータからThreadクラスを再読み込みします。 """ self.__rawdat = dat self.__comments = self.__parseDatToComments(dat) self.__isBroken = False def autopost(self, name="", mailaddr="", message="", submit="書き込む", delay=5): """ 書き込みの確認をすべてスキップして書き込みます. """ r1 = self.post(name, mailaddr, message, submit, delay=delay) if r1[0] == twopy.STATUS_COOKIE: r2 = self.post(name, mailaddr, message, submit, hidden=r1[2], delay=delay) return r2 else: return r1 def post(self, name="", mailaddr="", message="", submit="書き込む", hidden={}, delay=5): """ コメントの書き込みを試みます. 引数: name : 名前 mailaddr : メールアドレス message : 本文の文章 submit : 書き込みボタンのキャプション hidden : hidden属性の値 delay : 本来の時間から何秒だけ後戻りさせるか(未来の時間に書き込むのを防ぐ) 返り値: レスポンスコードと受信した文章の本文のタプル. レスポンスコード: twopy.STATUS_TRUE 書き込み成功 twopy.STATUS_FALSE 書き込み成功&警告 twopy.STATUS_ERROR 書き込み失敗 twopy.STATUS_CHECK 書き込み警告 twopy.STATUS_COOKIE 書き込み確認 ただし、レスポンスコードがtwopy.STATUS_COOKIEの場合、 返り値はレスポンスコード、受信した文章の本文、input->hidden属性の辞書が返されます. """ referer = "%stest/read.cgi/%s/%i/" % (self.board.server, self.board.name, self.dat_number) send_dict = {"bbs": self.board.name, "key": self.dat_number, "time": int(time.time()) - delay, "FROM": name.encode("MS932"), "mail": mailaddr.encode("MS932"), "MESSAGE": message.encode("MS932"), "submit": submit.encode("MS932")} send_dict.update(hidden) params = urllib.parse.urlencode(send_dict) return utility.bbsPost(self.user, self.board, params, referer) def __iter__(self): if not self.isRetrieved: raise twopy.NotRetrievedError for comment in self.__comments: yield comment def __len__(self): if not self.isRetrieved: raise twopy.NotRetrievedError return len(self.__comments) def __getitem__(self, i): if not self.isRetrieved: raise twopy.NotRetrievedError return self.__comments[i - 1]
Markdown
UTF-8
3,814
3.125
3
[]
no_license
# Sustainability report As a testament to our sustainability Minexx directly impacts 10 of the 17 Sustainable Development Goals set by the UN. The first being to end poverty. This goal is met through Minexx providing the miners with an opportunity for a fair wage, preventing them from being under paid for the minerals they collect. This allows the miners to live more sustainable lives e.g. not having to sacrifice their child’s education for food. <img src="../docs/images/goal1.png" width="226" height="192"> A second goal being met is good health and well-being. This is being met by Minexx through their ATIF, as this will allow the miners to purchase safety equipment and reliable tools, it will also fund development of the mine sites providing amenities such as water and electricity. This brings sustainability as it will lead to much fewer miners getting injured or falling ill due to their work. <img src="../docs/images/goal3.png" width="226" height="192"> Another goal being met is gender equality. This is being met by Minexx through their commitment that male and female miners will be paid equally. This will be enforced through the miners being paid according to the quantity and quality of the minerals they have collected. <img src="../docs/images/goal5.png" width="226" height="192"> Clean water and sanitation. This is being met also through the ATIF which funds investment in the mine site areas. Thus, providing the miners with the essential commodities that they need. Promoting sustainability through improving the facilities around the mine sites. <img src="../docs/images/goal6.png" width="226" height="192"> Ending hunger is a goal being met by Minexx through their commitment to provide the miners with fairer wages that better reflect the importance of their work to the modern world. <img src="../docs/images/goal2.png" width="226" height="192"> Reduced inequalities is being met in a similar way to gender equality. Minexx’s MineSmart platform will ensure equality as the miners will be paid based off the minerals that they collect without any bias. Meeting this goal in turn promotes sustainable communities. <img src="../docs/images/goal10.png" width="226" height="192"> Decent work and economic growth are a goal being met by Minexx through their work to bring transparency to the supply chain. This will lead to the miners getting a better wage for example if the money spent on the raw materials of an $800 smartphone were doubled from $1 to $2, then the miners wages would double as well drastically improving their livelihoods. <img src="../docs/images/goal8.png" width="226" height="192"> Affordable and clean energy is a goal being met by Minexx through the ATIF providing the opportunity for big investors to fund the development of the mine sites. This will allow for the miners to have access to electricity and build more sustainable sites. <img src="../docs/images/goal7.png" width="226" height="192"> Sustainable cities and communities is also being met by Minexx in a similar way to the affordable and clean energy goal. The ATIF allows for investment into the mine sites creating sustainable communities in turn improving the livelihoods of the miners, their families and the people they support. <img src="../docs/images/goal11.png" width="226" height="192"> Responsible consumption and production is the final goal being met. This is one of the core aims of Minexx with their plan to bring clarity to the mineral supply chain, meaning that tech companies can confidently claim that the raw materials in their products are ethically sourced. <img src="../docs/images/goal12.png" width="226" height="192"> The software base of the project lends itself to sustainability as the website and smart contract can continuely be updated.
Markdown
UTF-8
19,818
2.875
3
[]
no_license
<properties pageTitle="Batch and HPC solutions in the cloud | Microsoft Azure" description="Introduces batch and high performance computing (Big Compute) scenarios and solution options in Azure" services="batch, virtual-machines, cloud-services" documentationCenter="" authors="dlepow" manager="timlt" editor=""/> <tags ms.service="batch" ms.devlang="NA" ms.topic="get-started-article" ms.tgt_pltfrm="NA" ms.workload="big-compute" ms.date="01/21/2016" ms.author="danlep"/> # Batch and HPC solutions in the Azure cloud Azure offers efficient, scalable cloud solutions for batch and high performance computing (HPC) - also called *Big Compute*. Learn here about Big Compute workloads and Azure’s services to support them, or jump directly to [solution scenarios](#scenarios) later in this article. This article is mainly for technical decision-makers, IT managers, and independent software vendors, but other IT professionals and developers can use it to familiarize themselves with these solutions. Organizations have large-scale computing problems including engineering design and analysis, image rendering, complex modeling, Monte Carlo simulations, and financial risk calculations. Azure helps organizations solve these problems and make decisions with the resources, scale, and schedule they need. With Azure, organizations can: * Create hybrid solutions, extending an on-premises HPC cluster to offload peak workloads to the cloud * Run HPC cluster tools and workloads entirely in Azure * Use a managed and scalable Azure service such as [Batch](https://azure.microsoft.com/documentation/services/batch/) to run compute-intensive workloads without having to deploy and manage compute infrastructure Although beyond the scope of this article, Azure also provides developers and partners a full set of capabilities, architecture choices, and development tools to build large-scale, custom Big Compute workflows. And a growing partner ecosystem is ready to help you make your Big Compute workloads productive in the Azure cloud. ## Batch and HPC applications Unlike web applications and many line-of-business applications, batch and HPC applications have a defined beginning and end, and they can run on a schedule or on demand, sometimes for hours or longer. Most fall into two main categories: *intrinsically parallel* (sometimes called “embarrassingly parallel”, because the problems they solve lend themselves to running in parallel on multiple computers or processors) and *tightly coupled*. See the following table for more about these application types. Some Azure solution approaches work better for one type or the other. >[AZURE.NOTE] In Batch and HPC solutions, a running instance of an application is typically called a *job*, and each job might get divided into *tasks*. And the clustered compute resources for the application are often called *compute nodes*. Type | Characteristics | Examples ------------- | ----------- | --------------- **Intrinsically parallel**<br/><br/>![Intrinsically parallel][parallel] |• Individual computers run application logic independently<br/><br/> • Adding computers allows the application to scale and decrease computation time<br/><br/>• Application consists of separate executables, or is divided into a group of services invoked by a client (a service-oriented architecture, or SOA, application) |• Financial risk modeling<br/><br/>• Image rendering and image processing<br/><br/>• Media encoding and transcoding<br/><br/>• Monte Carlo simulations<br/><br/>• Software testing **Tightly coupled**<br/><br/>![Tightly coupled][coupled] |• Application requires compute nodes to interact or exchange intermediate results<br/><br/>• Compute nodes may communicate using the Message Passing Interface (MPI), a common communications protocol for parallel computing<br/><br/>• The application is sensitive to network latency and bandwidth<br/><br/>• Application performance can be improved by using high-speed networking technologies such as InfiniBand and remote direct memory access (RDMA) |• Oil and gas reservoir modeling<br/><br/>• Engineering design and analysis, such as computational fluid dynamics<br/><br/>• Physical simulations such as car crashes and nuclear reactions<br/><br/>• Weather forecasting ### Considerations for running batch and HPC applications in the cloud You can readily migrate many applications that are designed to run in on-premises HPC clusters to Azure, or to a hybrid (cross-premises) environment. However, there may be some limitations or considerations, including: * **Availability of cloud resources** - Depending on the type of cloud compute resources you use, you might not be able to rely on continuous machine availability for the duration of a job's execution. State handling and progress check pointing are common techniques to handle possible transient failures, and more necessary when leveraging cloud resources. * **Data access** - Data access techniques commonly available within an enterprise network cluster, such as NFS, may require special configuration in the cloud, or you might need to adopt different data access practices and patterns for the cloud. * **Data movement** - For applications that process large amounts of data, strategies are needed to move the data into cloud storage and to compute resources, and you might need high-speed cross-premises networking such as [Azure ExpressRoute](https://azure.microsoft.com/services/expressroute/). Also consider legal, regulatory, or policy limitations for storing or accessing that data. * **Licensing** - Check with the vendor of any commercial application for licensing or other restrictions for running in the cloud. Not all vendors offer pay-as-you-go licensing. You might need to plan for a licensing server in the cloud for your solution, or connect to an on-premises license server. ### Big Compute or Big Data? The dividing line between Big Compute and Big Data applications isn't always clear, and some applications may have characteristics of both. Both involve running large-scale computations, usually on clusters of computers. But the solution approaches and supporting tools can differ. • **Big Compute** tends to involve applications that rely on CPU power and memory, such as engineering simulations, financial risk modeling, and digital rendering. The clusters that power a Big Compute solution might include computers with specialized multicore processors to perform raw computation, and specialized, high speed networking hardware to connect the computers. • **Big Data** solves data analysis problems that involve large amounts of data that can’t be managed by a single computer or database management system, such as large volumes of web logs or other business intelligence data. Big Data tends to rely more on disk capacity and I/O performance than on CPU power, and might use specialized tools such as Apache Hadoop to manage the cluster and partition the data. (For information about Azure HDInsight and other Azure Hadoop solutions, see [Hadoop](https://azure.microsoft.com/solutions/hadoop/).) ## Compute management and job scheduling Running Batch and HPC applications usually includes a *cluster manager* and a *job scheduler* to help manage clustered compute resources and allocate them to the applications that run the jobs. These functions might be accomplished by separate tools, or an integrated tool or service. * **Cluster manager** - Provisions, releases, and administers compute resources (or compute nodes). A cluster manager might automate installation of operating system images and applications on compute nodes, scale compute resources according to demands, and monitor the performance of the nodes. * **Job scheduler** - Specifies the resources (such as processors or memory) an application needs, and the conditions when it will run. A job scheduler maintains a queue of jobs and allocates resources to them based on an assigned priority or other characteristics. Clustering and job scheduling tools for Windows-based and Linux-based clusters can migrate well to Azure. For example, [Microsoft HPC Pack](https://technet.microsoft.com/library/cc514029), Microsoft’s free compute cluster solution for Windows and Linux HPC workloads, offers several options for running in Azure. You can also build Linux clusters to run open-source tools such as Torque and SLURM, or run commercial tools such as [TIBCO DataSynapse GridServer](http://www.tibco.com/products/automation/application-development/grid-computing/gridserver) and [Univa Grid Engine](http://www.univa.com/products/grid-engine) in Azure. As shown in the following sections, you can also take advantage of Azure services to manage compute resources and schedule jobs without (or in addition to) traditional cluster management tools. ## Scenarios Here are three common scenarios to run Big Compute workloads in Azure by leveraging existing HPC cluster solutions, Azure services, or a combination of the two. Key considerations for choosing each scenario are listed but aren't exhaustive. More about the available Azure services you might use in your solution is later in the article. | Scenario | Why choose it? ------------- | ----------- | --------------- **Burst an HPC cluster to Azure**<br/><br/>[![Cluster burst][burst_cluster]](./media/batch-hpc-solutions/burst_cluster.png) <br/><br/> Learn more:<br/>• [Burst to Azure with Microsoft HPC Pack](https://technet.microsoft.com/library/gg481749.aspx)<br/><br/>• [Set up a hybrid compute cluster with Microsoft HPC Pack](../cloud-services/cloud-services-setup-hybrid-hpcpack-cluster.md)<br/><br/>|• Combine your on-premises [Microsoft HPC Pack](https://technet.microsoft.com/library/cc514029) cluster with additional Azure resources in a hybrid solution.<br/><br/>• Extend your Big Compute workloads to run on Platform as a Service (PaaS) virtual machine instances (currently Windows Server only).<br/><br/>• Access an on-premises license server or data store by using an optional Azure virtual network|• You have an existing HPC Pack cluster and need more resources <br/><br/>• You don’t want to purchase and manage additional HPC cluster infrastructure<br/><br/>• You have transient peak-demand periods or special projects **Create an HPC cluster entirely in Azure**<br/><br/>[![Cluster in IaaS][iaas_cluster]](./media/batch-hpc-solutions/iaas_cluster.png)<br/><br/>Learn more:<br/>• [HPC cluster solutions in Azure](./big-compute-resources.md)<br/><br/>|• Quickly and consistently deploy your applications and cluster tools on standard or custom Windows or Linux infrastructure as a service (IaaS) virtual machines.<br/><br/>• Run a variety of Big Compute workloads by using the job scheduling solution of your choice.<br/><br/>• Use additional Azure services including networking and storage to create complete cloud-based solutions. |• You don’t want to purchase and manage additional Linux or Windows HPC cluster infrastructure<br/><br/>• You have transient peak-demand periods or special projects<br/><br/>• You need an additional cluster for a period of time but don't want to invest in computers and space to deploy it<br/><br/>• You want to offload your compute-intensive application so it runs as a service entirely in the cloud **Scale out a parallel application to Azure**<br/><br/>[![Azure Batch][batch_proc]](./media/batch-hpc-solutions/batch_proc.png)<br/><br/>Learn more:<br/>• [Basics of Azure Batch](./batch-technical-overview.md)<br/><br/>• [Get started with the Azure Batch library for .NET](./batch-dotnet-get-started.md)|• Develop with [Azure Batch](https://azure.microsoft.com/documentation/services/batch/) APIs to scale out a variety of Big Compute workloads to run on pools of Platform as a Service (PaaS) virtual machines (currently Windows Server only).<br/><br/>• Use an Azure service to manage deployment and autoscaling of virtual machines, job scheduling, disaster recovery, data movement, dependency management, and application deployment - without requiring a separate HPC cluster or job scheduler.|• You don’t want to manage compute resources or a job scheduler; instead, you want to focus on running your applications<br/><br/>• You want to offload your compute-intensive application so it runs as a service in the cloud<br/><br/>• You want to automatically scale your compute resources to match the compute workload ## Azure services for Big Compute Here is more about the compute, data, networking and related services you can combine for Big Compute solutions and workflows. For in-depth guidance on Azure services, see the Azure services [documentation](https://azure.microsoft.com/documentation/). The [scenarios](#scenarios) earlier in this article show just some ways of using these services. >[AZURE.NOTE] Azure regularly introduces new services that could be useful for your scenario. If you have questions, contact an [Azure partner](https://pinpoint.microsoft.com/en-US/search?keyword=azure) or email *bigcompute@microsoft.com*. ### Compute services Azure compute services are the core of a Big Compute solution, and the different compute services offer advantages for different scenarios. At a basic level, these services offer different modes for applications to run on virtual machine-based compute instances that Azure provides using Windows Server Hyper-V technology. These instances can run a variety of standard and custom Linux and Windows operating systems and tools. Azure gives you a choice of [instance sizes](../virtual-machines/virtual-machines-linux-sizes.md) with different configurations of CPU cores, memory, disk capacity, and other characteristics. Depending on your needs you can scale the instances to thousands of cores and then scale down when you need fewer resources. >[AZURE.NOTE] Take advantage of the A8-A11 instances to improve the performance of some HPC workloads, including parallel MPI applications that require a low latency and high throughput application network. See [About the A8, A9, A10, and A11 Compute Intensive Instances](../virtual-machines/virtual-machines-windows-a8-a9-a10-a11-specs.md). Service | Description ------------- | ----------- **[Cloud services](https://azure.microsoft.com/documentation/services/cloud-services/)**<br/><br/> |• Can run Big Compute applications in worker role instances, which are virtual machines running a version of Windows Server and are managed entirely by Azure<br/><br/>• Enable scalable, reliable applications with low administrative overhead, running in a platform as a service (PaaS) model<br/><br/>• May require additional tools or development to integrate with on-premises HPC cluster solutions **[Virtual machines](https://azure.microsoft.com/documentation/services/virtual-machines/)**<br/><br/> |• Provide compute infrastructure as a service (IaaS) using Microsoft Hyper-V technology<br/><br/>• Enable you to flexibly provision and manage persistent cloud computers from standard Windows Server or Linux images, or images and data disks you supply or from the [Azure Marketplace](https://azure.microsoft.com/marketplace/)<br/><br/>• Run on-premises compute cluster tools and applications entirely in the cloud **[Batch](https://azure.microsoft.com/documentation/services/batch/)**<br/><br/> |• Runs large-scale parallel and batch workloads in a fully managed service<br/><br/>• Provides job scheduling and autoscaling of a managed pool of virtual machines<br/><br/>• Allows developers to build and run applications as a service or cloud-enable existing applications<br/> ### Storage services A Big Compute solution typically operates on a set of input data, and generates data for its results. Some of the Azure storage services used in Big Compute solutions include: * [Blob, table, and queue storage](https://azure.microsoft.com/documentation/services/storage/) - Manage large amounts of unstructured data, NoSQL data, and messages for workflow and communication, respectively. For example, you might use blob storage for large technical data sets, or the input images or media files your application processes. You might use queues for asynchronous communication in a solution. See [Introduction to Microsoft Azure Storage](../storage/storage-introduction.md). * [Azure File Storage](https://azure.microsoft.com/services/storage/files/) - Shares common files and data in Azure using the standard SMB protocol, which is needed for some HPC cluster solutions. ### Data and analysis services Some Big Compute scenarios involve large-scale data flows, or generate data that needs further processing or analysis. To handle this, Azure offers a number of data and analysis services including: * [Data Factory](https://azure.microsoft.com/documentation/services/data-factory/) - Builds data-driven workflows (pipelines) that join, aggregate, and transform data from on-premises, cloud-based, and Internet data stores. * [SQL Database](https://azure.microsoft.com/documentation/services/sql-database/) - Provides the key features of a Microsoft SQL Server relational database management system in a managed service. * [HDInsight](https://azure.microsoft.com/documentation/services/hdinsight/) - Deploys and provisions Windows Server or Linux-based Apache Hadoop clusters in the cloud to manage, analyze, and report on big data . * [Machine Learning](https://azure.microsoft.com/documentation/services/machine-learning/) - Helps you create, test, operate, and manage predictive analytic solutions in a fully managed service. ### Additional services Your Big Compute solution might need other Azure services to connect to resources on-premises or in other environments. Examples include: * [Virtual Network](https://azure.microsoft.com/documentation/services/virtual-network/) - Creates a logically isolated section in Azure to connect Azure resources to your on-premises data center or a single client machine using IPSec; allows Big Compute applications to access on-premises data, Active Directory services, and license servers * [ExpressRoute](https://azure.microsoft.com/documentation/services/expressroute/) - Creates a private connection between Microsoft data centers and infrastructure that’s on-premises or in a co-location environment, with higher security, more reliability, faster speeds, and lower latencies than typical connections over the Internet. * [Service Bus](https://azure.microsoft.com/documentation/services/service-bus/) - Provides several mechanisms for applications to communicate or exchange data, whether they are located on Azure, on another cloud platform, or in a data center. ## Next steps * See [Technical Resources for Batch and HPC](big-compute-resources.md) to find technical guidance to build your solution. * Discuss your Azure options with partners including Cycle Computing and UberCloud. * Read about Azure Big Compute solutions delivered by [Towers Watson](https://customers.microsoft.com/Pages/CustomerStory.aspx?recid=18222), [Altair](https://azure.microsoft.com/blog/availability-of-altair-radioss-rdma-on-microsoft-azure/), and [d3VIEW](https://customers.microsoft.com/Pages/CustomerStory.aspx?recid=22088). * For the latest announcements, see the [Microsoft HPC and Batch team blog](http://blogs.technet.com/b/windowshpc/) and the [Azure blog](https://azure.microsoft.com/blog/tag/hpc/). <!--Image references--> [parallel]: ./media/batch-hpc-solutions/parallel.png [coupled]: ./media/batch-hpc-solutions/coupled.png [iaas_cluster]: ./media/batch-hpc-solutions/iaas_cluster.png [burst_cluster]: ./media/batch-hpc-solutions/burst_cluster.png [batch_proc]: ./media/batch-hpc-solutions/batch_proc.png <!--HONumber=Apr16_HO2-->
C#
UTF-8
1,714
3.921875
4
[]
no_license
using System; using System.Collections.Generic; using System.Linq; class IntegerCalculation { static int Minimum(int[] array) { int minimum = array[0]; for (int i = 1; i < array.Length; i++) { if (array[i] < minimum) { minimum = array[i]; } } return minimum; } static int Maximum(int[] array) { int maximum = array[0]; for (int i = 1; i < array.Length; i++) { if (array[i] > maximum) { maximum = array[i]; } } return maximum; } static decimal Average(int[] array) { decimal average = 0m; int sum = 0; for (int i = 0; i < array.Length; i++) { sum += array[i]; } average = (decimal)sum / array.Length; return average; } static long Sum(int[] array) { long sum = 0; for (int i = 0; i < array.Length; i++) { sum += array[i]; } return sum; } static long Product(int[] array) { long product = 1; for (int i = 0; i < array.Length; i++) { product *= array[i]; } return product; } static void Main(string[] args) { int[] firstCombOfNum = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); Console.WriteLine(Minimum(firstCombOfNum)); Console.WriteLine(Maximum(firstCombOfNum)); Console.WriteLine("{0:F2}", Average(firstCombOfNum)); Console.WriteLine(Sum(firstCombOfNum)); Console.WriteLine(Product(firstCombOfNum)); } }
Swift
UTF-8
6,613
2.6875
3
[]
no_license
// // Transfer.swift // goridepay // // Created by Bryanza on 12/08/21. // Copyright © 2021 Apple Developer Academy. All rights reserved. // import Foundation class Transfer { func callHeroku( session: URLSession, address: String, contentType: String, parameters: [String: Any], requestMethod: String, completion: @escaping ([[String: Any]] , [String: Any], String) -> ()) { let url = URL(string: address)! var request = URLRequest(url: url) // request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type") // request.setValue("application/" + contentType, forHTTPHeaderField: "Content-Type") request.httpMethod = requestMethod // let parameters: [String: Any] = [ // "id": 13, // "name": "Jack & Jill" // ] // request.httpBody = parameters.percentEncoded() var responseString: String = "" var responseArray: [[String: Any]] = [[:]] var responseObject: [String: Any] = [:] // var responseArray: [String: Any] = [:] if (contentType == "json" && requestMethod != "GET") { do { request.httpBody = try JSONSerialization.data(withJSONObject: parameters, options: .prettyPrinted) // pass dictionary to nsdata object and set it as request body } catch let error { // print(error.localizedDescription) responseString = error.localizedDescription return completion(responseArray, responseObject, responseString) } } // request.addValue("application/json", forHTTPHeaderField: "Accept") request.addValue("*/*", forHTTPHeaderField: "Accept") request.addValue("application/" + contentType, forHTTPHeaderField: "Content-Type") // let task = URLSession.shared.dataTask(with: request) { data, response, error in //create dataTask using the session object to send data to the server let task = session.dataTask(with: request as URLRequest, completionHandler: { data, response, error in guard let data = data, let response = response as? HTTPURLResponse, error == nil else { // check for fundamental networking error // print("error", error ?? "Unknown error") responseString = "error " + error.debugDescription completion(responseArray, responseObject, responseString) return } if (contentType == "json") { do { //create json object from data if let json = try JSONSerialization.jsonObject(with: data, options: .mutableContainers) as? [String: Any] { // print(json) responseObject = json responseString = json.description completion(responseArray, responseObject, responseString) // handle json... }else if let json = try JSONSerialization.jsonObject(with: data, options: .mutableContainers) as? [[String: Any]] { responseString = json.description responseArray = json completion(responseArray, responseObject, responseString) } } catch let error { // print(error.localizedDescription) responseString = "error response = \(error.localizedDescription)" // return completion(responseArray, responseObject, responseString) } }else { responseString = String(data: data, encoding: .utf8) ?? "" completion(responseArray, responseObject, responseString) // print("responseString = \(String(describing: responseString))") } guard (200 ... 299) ~= response.statusCode else { // check for http errors // print("statusCode should be 2xx, but is \(response.statusCode)") // print("response = \(response)") responseString = "error response = \(response)" completion(responseArray, responseObject, responseString) return } }) task.resume() completion(responseArray, responseObject, responseString) } func parseDate(createdAt: String) -> String { let isoDate = String(createdAt.split(separator: "+")[0]) var dateFormatter = DateFormatter() dateFormatter.locale = Locale(identifier: "en_US_POSIX") // set locale to reliable US_POSIX dateFormatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ss" let date = dateFormatter.date(from:isoDate)! let calendar = Calendar.current let components = calendar.dateComponents([.year, .month, .day, .hour], from: date) let finalDate = calendar.date(from:components)! var dayComponent = DateComponents() dayComponent.day = -7 // For removing one day (yesterday): -1 dateFormatter = DateFormatter() dateFormatter.timeZone = TimeZone(abbreviation: "GMT") //Set timezone that you want dateFormatter.locale = NSLocale.current if (finalDate < calendar.date(byAdding: dayComponent, to: Date())!) { dateFormatter.dateFormat = "dd/MM/yy " //Specify your format that you want }else { dateFormatter.dateFormat = "EEEE" } return dateFormatter.string(from: finalDate) } } extension Dictionary { func percentEncoded() -> Data? { return map { key, value in let escapedKey = "\(key)".addingPercentEncoding(withAllowedCharacters: .urlQueryValueAllowed) ?? "" let escapedValue = "\(value)".addingPercentEncoding(withAllowedCharacters: .urlQueryValueAllowed) ?? "" return escapedKey + "=" + escapedValue } .joined(separator: "&") .data(using: .utf8) } } extension CharacterSet { static let urlQueryValueAllowed: CharacterSet = { let generalDelimitersToEncode = ":#[]@" // does not include "?" or "/" due to RFC 3986 - Section 3.4 let subDelimitersToEncode = "!$&'()*+,;=" var allowed = CharacterSet.urlQueryAllowed allowed.remove(charactersIn: "\(generalDelimitersToEncode)\(subDelimitersToEncode)") return allowed }() }
Markdown
UTF-8
2,411
2.609375
3
[]
no_license
--- layout: post title: "Week 115: Ned Flanders opens the Leftorium" date: 2020-11-14 category: weaknotes --- * I have started putting some knitting on [Ravelry](https://www.ravelry.com/people/littlecabaret). I don't know how Ravelry works, but you can see me there. I only have two friends, so if you're on Ravelry do add me. * My desire to document everything here, on my website, in one place, owned by me, is somewhat undermined by my jump to Ravelry but there are some good things about Ravelry so I thought I'd give it a go. * I planted tulip bulbs. And, I'm not sure this is really the greatest idea, but I just took some soil from some of my summer pots, sieved it to remove roots and whatnot, and then added some potting grit and slow release fertiliser. Will.. that... work? You never see Monty Don do that shit but, well what am i going to do with all this old soil if not reuse it? * Biden has won. Thank absolute fuck for that. Grimly curious as to what havoc Trump, sour from his defeat and full of spite, will wreak as he leaves. The desire to destroy everything, including yourself, out of spite is very relatable but I'm not the leader of the free world, I'm a suburban mum considering throwing my two year old's dummy in the bin in front of her because she claims she is too big for naps now. * I saw a kingfisher when I was walking the waterlink way with Maggie and it was brilliant! I've never seen one before. I might go back and look for it again. * Baby C has learnt to back onto front. Of course, he can't do the reverse manoeuvre and doesn't really like being on his tummy so I have to right him quite a lot as he squawks on the floor. E has started learning to add. She knows what 3+1 is but not what 1+3 is. She is definitely left handed, which neither Lachie or I are. I assume that's fine? does she need some special scissors? I should watch that Simpsons ep about when Ned Flanders opens the Leftorium shouldn't I. * I watched all of The Queen's Gambit on Netflix this week, after Russell said it was good. It made me want to learn to play chess and be an extremely thin doe eyed white woman in about equal measure. * I spent about 2 hours sat in the rain on the steps outside weatherspoons with Jen. Surrounded by fag butts, often our chatter was completely drowned out by the sound of the double deckers going past. It was really ace and I was buzzing from it for the rest of the day.
JavaScript
UTF-8
3,267
2.84375
3
[ "MIT" ]
permissive
const dataCacheName = 'swDemoData-v1'; const cacheName = 'sw-demo-1'; const filesToCache = [ 'index.html', 'styles.css', 'assets/big_image_10mb.jpg', 'assets/big_image_2mb.jpg' ]; const bigImageUrl = '/assets/big_image_10mb.jpg'; /* У serviceWorker waitUntil () сообщает браузеру, что работа продолжается до тех пор, пока не будет выполнено обещание, и он не должен завершать работу сервисного работника, если он хочет, чтобы эта работа была завершена. Такая конструкция гарантирует, что сервис-воркер не будет установлен, пока код, переданный внутри waitUntil(), не завершится с успехом. */ self.addEventListener('install', event => { console.log('[ServiceWorker] Install'); event.waitUntil( caches.open(cacheName) .then(cache => cache.addAll(filesToCache)) ); }); // delete old cache self.addEventListener('activate', event => { console.log('[ServiceWorker] Activate'); event.waitUntil( caches.keys().then(keyList => { return Promise.all(keyList.map(key => { if (key !== cacheName && key !== dataCacheName) { console.log('[ServiceWorker] Removing old cache', key); return caches.delete(key); } })); }) ); //Метод claim() интерфейса Clients позволяет активному сервис-воркеру установить себя контролирующим воркером для всех клиентских страниц в своей области видимости. Вызывает событие "controllerchange" на navigator.serviceWorker всех клиентских страниц, контролируемых сервис-воркером. return self.clients.claim(); }); self.addEventListener('fetch', event => { console.log('[Service Worker] Fetch', event.request.url); if (event.request.url.indexOf(bigImageUrl) > -1) { event.respondWith(caches.open(dataCacheName) .then(cache => { return fetch(event.request).then(response => { cache.put(event.request.url, response.clone()); return response; }); }) ); } else { event.respondWith( caches.match(event.request).then(response => { return response || fetch(event.request); }) ); } }); function loadImage() { return fetch(bigImageUrl); } // Message from the client self.addEventListener('message', event => { if (event.data === 'FETCH_IMAGE') { for (let i = 0; i < 100000; i++) { console.log('Blocking the service worker thread.'); } loadImage().then(response => { console.log(response.json()) //Метод matchAll () интерфейса Clients возвращает Promise для списка объектов Client работника сервиса clients.matchAll().then(clients => { clients.forEach(client => { console.log(client) client.postMessage(response.url); }) }) }); } });
Go
UTF-8
1,012
2.875
3
[]
no_license
package csbalancing import "fmt" // Complete the csRush function below. func csRush(n int32, m int32, css [][]int32, customers [][]int32, vacant_css []int32) int32 { // Creating map for customers mapCss := make(map[int32]int32) for _, cs := range css { mapCss[cs[0]] = cs[1] } // Remove customers on vacation for _, vc := range vacant_css { delete(mapCss, vc) } mapCustomers := make(map[int32]int32) for _, customer := range customers { mapCustomers[customer[0]] = customer[1] } mapCssAttend := make(map[int32]int32) mapCustomerAttended := make(map[int32]bool) for k, csCapacity := range mapCss { for kc, customerSize := range mapCustomers { _, ok := mapCustomerAttended[kc] if csCapacity >= customerSize && !ok { mapCssAttend[k]++ mapCustomerAttended[kc] = true } } } var max, customerId int32 fmt.Println(mapCssAttend) for k, totalAttend := range mapCssAttend { if totalAttend > max { max = totalAttend customerId = k } } return customerId }
C
UTF-8
506
3.46875
3
[ "MIT" ]
permissive
#include <stdio.h> #include <stdlib.h> #include <math.h> int main(void) { int n, i, j; int *tab; scanf("%d", &n); if(n > 100000) return 0; tab = malloc(sizeof(int) * n); for(i=0; i<n; i++) { scanf("%d", &tab[i]); if(tab[i] < 1 || tab[i] > 10000) return 0; for(j=2; j<=sqrt(tab[i]); j++) { if((tab[i]%j) == 0) { tab[i] = 0; break; } } } for(i=0; i<n; i++) { if(tab[i] == 0 || tab[i] == 1) puts("NIE"); else puts("TAK"); } free(tab); return 0; }
Java
UTF-8
7,036
2.21875
2
[]
no_license
package paypaldemo.controller; import org.springframework.http.HttpHeaders; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import org.springframework.web.client.RestTemplate; @RestController public class PaypalPostController { @PostMapping("/paypal/post") public PaypalResponse createUser(@RequestBody PaypalRequest paypalRequest) { PaypalResponse response = new PaypalResponse(); response.setStatus("success from post"); return response; } @PostMapping("/paypal/order") public PaypalResponse createOrder() { System.out.println("inside createOrder"); String str="{\n" + " \"intent\": \"CAPTURE\",\n" + " \"purchase_units\": [\n" + " {\n" + " \"reference_id\": \"5decd4b7-3779-4b2e-9d86-6d79e49b1dc8\",\n" + " \"description\": \"Default Level 1 Order\",\n" + " \"items\": [\n" + " {\n" + " \"name\": \"Salad\",\n" + " \"sku\": \"SKU-d3538cf2-e46b-4257-bcc6-6ad4b80957ee\",\n" + " \"currency\": \"USD\",\n" + " \"quantity\": 1,\n" + " \"category\": \"PHYSICAL_GOODS\",\n" + " \"unit_amount\": {\n" + " \"currency_code\": \"USD\",\n" + " \"value\": \"1.00\"\n" + " }\n" + " }\n" + " ],\n" + " \"amount\": {\n" + " \"value\": \"3.00\",\n" + " \"currency_code\": \"USD\",\n" + " \"breakdown\": {\n" + " \"item_total\": {\n" + " \"currency_code\": \"USD\",\n" + " \"value\": \"1.00\"\n" + " },\n" + " \"shipping\": {\n" + " \"currency_code\": \"USD\",\n" + " \"value\": \"1.00\"\n" + " },\n" + " \"tax_total\": {\n" + " \"currency_code\": \"USD\",\n" + " \"value\": \"1.00\"\n" + " }\n" + " }\n" + " },\n" + " \"payee\":\n" + " {\n" + " \"email\": \"shyam@smartwaveindia.com\",\n" + " \"payee_display_metadata\":\n" + " {\n" + " \"brand_name\": \"Shyam Test Store\",\n" + " \"phone\":\n" + " {\n" + " \"country_code\": \"1\",\n" + " \"number\": \"\"\n" + " }\n" + " }\n" + " },\n" + " \n" + " \"shipping_address\":\n" + " {\n" + " \"recipient_name\": \"Rylee Lueilwitz\",\n" + " \"line1\": \"965 Hilma Rapid\",\n" + " \"line2\": \"Apartment Number 91392\",\n" + " \"city\": \"Gilbert\",\n" + " \"country_code\": \"US\",\n" + " \"postal_code\": \"85298\",\n" + " \"state\": \"AZ\",\n" + " \"phone\": \"0018882211161\"\n" + " },\n" + " \"shipping_method\": \"United Postal Service\",\n" + " \"payment_linked_group\": 1,\n" + " \"custom\": \"MyCustomVar\",\n" + " \"invoice_number\": \"INV-d5719503-5efc-4426-a7b3-09a345d10da2\",\n" + " \"payment_descriptor\": \"Payment Nate Shop\",\n" + " \"partner_fee_details\":\n" + " {\n" + " \"amount\":\n" + " {\n" + " \"currency\": \"USD\",\n" + " \"value\": \"6.89\"\n" + " },\n" + " \"receiver\":\n" + " {\n" + " \"email\": \"javad.paypal.test-facilitator@gmail.com\",\n" + " \"merchant_id\": \"6RTE74QWR2394\",\n" + " \"payee_display_metadata\":\n" + " {\n" + " \"email\": \"\",\n" + " \"display_phone\":\n" + " {\n" + " \"country_code\": \"001\",\n" + " \"number\": \"8882211161\"\n" + " },\n" + " \"brand_name\": \"APEX\"\n" + " }\n" + " }\n" + " }\n" + " }]\n" + "}"; //String str="{\"intent\": \"CAPTURE\",\"purchase_units\": [{\"amount\": {\"currency_code\": \"USD\",\"value\": \"100.00\"},\"payee\": {\"email_address\": \"javad@india.cogbooks.com\"},\"payment_instruction\": {\"disbursement_mode\": \"INSTANT\",\"platform_fees\": [{\"amount\": {\"currency_code\": \"USD\",\"value\": \"25.00\"}}]}}]}"; String token=getToken(); String authHeader="Bearer "+token; String res=""; PaypalResponse response = new PaypalResponse(); //response.setStatus("success from post"); try { HttpHeaders headers = new HttpHeaders(); headers.add("Authorization", authHeader); headers.add("Content-Type", "application/json"); RestTemplate restTemplate = new RestTemplate(); org.springframework.http.HttpEntity request = new org.springframework.http.HttpEntity(str, headers); //ResponseEntity<String> response = restTemplate.exchange("https://api.sandbox.paypal.com/v2/checkout/orders", HttpMethod.POST, request, String.class); //postForEntity("https://api.sandbox.paypal.com/v2/checkout/orders", request, String.class); / response = restTemplate.postForObject("https://api.sandbox.paypal.com/v2/checkout/orders", request, PaypalResponse.class); //String response1 = restTemplate.postForObject("https://api.sandbox.paypal.com/v2/checkout/orders", request, String.class); //System.out.println(response1); } catch(Exception e) {e.printStackTrace();} return response; } private String getToken() { return "A21AAHmu-WHo2nteiAMPlv5p5dw1Tl__H04aXLd4QY5leSZ0tPocawkF8koRl3C85CV23rBSSLD3_L3S7VzfzvHicMeZSKhrQ"; } @PostMapping("/paypal/capture-order") public PaypalResponse captureOrder(@RequestParam(name="orderid", required=false, defaultValue="") String orderId) { System.out.println("inside capture Order "+orderId); String str=""; String token=getToken(); String authHeader="Bearer "+token; String res=""; PaypalResponse response = new PaypalResponse(); // response.setStatus("success"); // response.setId(orderId); try { HttpHeaders headers = new HttpHeaders(); headers.add("Authorization", authHeader); headers.add("Content-Type", "application/json"); RestTemplate restTemplate = new RestTemplate(); org.springframework.http.HttpEntity request = new org.springframework.http.HttpEntity(headers); response = restTemplate.postForObject("https://api.sandbox.paypal.com/v2/checkout/orders/"+orderId+"capture", request, PaypalResponse.class); //String response1 = restTemplate.postForObject("https://api.sandbox.paypal.com/v2/checkout/orders", request, String.class); //System.out.println(response1); } catch(Exception e) {e.printStackTrace();} return response; } }
Ruby
UTF-8
2,601
3.8125
4
[]
no_license
class Movie REGULAR = 0 NEW_RELEASE = 1 CHILDRENS = 2 attr_reader :title attr_reader :price_code attr_writer :price def initialize(title, the_price_code) @title, @price = title, the_price_code end def charge(days_rented) @price.charge(days_rented) end def frequent_renter_points(days_rented) @price.frequent_renter_points(days_rented) end end module DefaultPrice def frequent_renter_points(days_rented) 1 end end # INFO: 왠지 movie 클래스 안에 들어가야 할 듯 싶은데? 일단 이렇게 작성 해 봄 class RegularPrice include DefaultPrice def charge(days_rented) result = 2 result += (days_rented - 2) * 1.5 if days_rented > 2 result end end class NewReleasePrice def charge(days_rented) days_rented * 3 end def frequent_renter_points(days_rented) days_rented > 1 ? 2 : 1 end end class ChildrensPrice include DefaultPrice def charge(days_rented) result = 1.5 result += (days_rented - 3) * 1.5 if days_rented > 3 result end end class Rental attr_reader :movie, :days_rented def initialize(movie, days_rented) @movie, @days_rented = movie, days_rented end def charge movie.charge(days_rented) end def frequent_renter_points movie.frequent_renter_points(days_rented) end end class Customer attr_reader :name def initialize(name) @name = name @rentals = [] end def add_rental(arg) @rentals << arg end def statement result = "고객 #{@name}의 대여 기록\n" @rentals.each do |element| # 이번 대여의 계산 결과를 표시 result += "\t" + element.movie.title + "\t" + element.charge.to_s + "\n" end # 푸터 행 추가 result += "대여료는 #{total_charge}입니다.\n" result += "적립 포인트는 #{total_frequent_renter_points}입니다." result end def html_statement result ="<h1>고객 <em>#{@name}</em>의 대여 기록</h1><p>\n" @rentals.each do |element| # 이번 대여의 계산 결과를 표시 result += "\t" + element.movie.title + ": " + element.charge.to_s + "<br>\n" end # 푸터 행 추가 result += "<p>대여료는 <em>#{total_charge}</em>입니다.<p>\n" result += "적립 포인트는 " + "<em>#{total_frequent_renter_points}</em> " + "입니다.<p>" result end private def total_charge @rentals.inject(0) { |sum, rental| sum + rental.charge } end def total_frequent_renter_points @rentals.inject(0) { |sum, rental| sum + rental.frequent_renter_points } end end
Java
UTF-8
366
2.640625
3
[]
no_license
package strategy_pattern; public class Imbiss { public static void main(String[] args) { Mitarbeiter caaaarl = new Mitarbeiter(new HofFegen()); Mitarbeiter alfredo = new Mitarbeiter(new PizzaBacken()); Mitarbeiter charles = new Mitarbeiter(new PommesFritieren()); caaaarl.arbeiten(); alfredo.arbeiten(); charles.arbeiten(); caaaarl.arbeiten(); } }
Markdown
UTF-8
1,978
2.625
3
[]
no_license
--- title: 最近对Java服务框架的思考 date: 2017-10-11T14:19:12+08:00 tags: - Netty - Spring Boot - Play - Vert.X image: mokou_kaguya.png --- 简单说几句,关于最近对Java服务框架的思考。 最早我是用`springMVC + Spring`的,因为太臃肿,配置麻烦,很快切换到`SpringBoot`。 用上`SpringBoot`后,觉得内置`Tomcat/Jetty`性能可能不够好,于是自己写了个[基于Netty的内置Servlet容器](https://github.com/Leibnizhu/spring-boot-starter-netty),然而简单测试后发现性能与内置的`Tomcat/Jetty`相差不大(也有可能是因为测试用例太简单了,没有把`Netty NIO`在业务阻塞线程时的优势体现出来)。 期间还考虑过直接用`Netty`原生API来写一个分发请求的简单框架,看了一些别人类似功能的项目,后来不了了之。 结合这两点,盯上了`Play Framework`,这个在许久前就有关注过,但没深入了解,看了官方文档之后,发现这就是我想要的!开发起来很方便嘛,但是`Session`的实现有点………………建议用`scala`写,我个人是没问题,但不好带人一起写。 后来在Telegram某群组里被安利了`Vert.X`,看了官方文档,还有详细的官方Demo,以及各种安利文章,发现这玩意真好用诶,跟`Node.Js`有点像诶,也不用跟用`Netty`原生API一样战战兢兢了,配套解决方案也不少,逼格也有,多语言支持(虽然对我而言用处不大),决定就是你了! 所以最终结论就是:`Vert.X`大法好,退`Spring`保平安~ P.S. 在[Github](https://github.com/Leibnizhu/VertxLearn)写了一些简单的`Vert.X`学习例子,另外准备用`Vert.X`写一个微信/支付宝的微服务(2018-08-02更新:2017年年底已经写了,忘了更新这篇文章, 请参阅[基于Vert.X的高性能微信支付宝公众号通用服务](/p/基于Vert.X的高性能微信支付宝公众号通用服务/))。
C++
UTF-8
919
2.578125
3
[ "MIT", "LicenseRef-scancode-public-domain", "BSD-2-Clause" ]
permissive
#include "ShaderFactory.h" namespace vanadium { const bgfx::Memory* ShaderFactory::readFromVfs(const std::string& path) { vfs::FileStream stream(path, vfs::OpenMode::Input); if (!stream) { return nullptr; } auto fileSize = stream.length(); const bgfx::Memory* memory = bgfx::alloc(fileSize + 1); stream.read(memory->data, fileSize); memory->data[fileSize - 1] = '\0'; return memory; } bgfx::ShaderHandle ShaderFactory::loadShader(const std::string& path, const std::string& name) { const bgfx::Memory* shaderBin = ShaderFactory::readFromVfs(path); if (shaderBin == nullptr) { VAN_ENGINE_ERROR("Cannot open file to read shader: {}", path); return bgfx::ShaderHandle{bgfx::kInvalidHandle}; } bgfx::ShaderHandle shader = bgfx::createShader(shaderBin); bgfx::setName(shader, name.c_str()); return shader; } } // namespace vanadium
Java
UTF-8
2,796
2.234375
2
[]
no_license
package practicalities.book.gui; import net.minecraft.item.ItemStack; import net.minecraft.util.StatCollector; import org.lwjgl.opengl.GL11; import practicalities.book.GuideStateManager; import practicalities.helpers.GuiHelper; import practicalities.helpers.ItemHelpers; import practicalities.lib.client.gui.GuiElement; import practicalities.lib.client.gui.ScreenBase; public class GuideEntry extends GuiElement { public static final int HEIGHT = 11; boolean mouseIn = false; double animateStart = 0; int mouseEnterX = 0; String name; ItemStack icon; GuideStateManager state; GuiHelper h = GuiHelper.instance(); public GuideEntry(ScreenBase gui, int x, int y, GuideStateManager state, String name) { super(gui, x, y, GuiGuide.MAIN_SIZE_X, HEIGHT); this.state = state; this.name = name; this.icon = ItemHelpers.parseItemStack(StatCollector.translateToLocal(name.startsWith("list.") ? "guide."+name+".iconStack" : "guide.entry."+name+".list.iconStack")); } public String getTranslatedName() { if(name.startsWith("list.")) { return StatCollector.translateToLocal("guide."+name+".text"); } else { return StatCollector.translateToLocal("guide.entry." + name + ".list.text"); } } @Override public void drawBackground(int mouseX, int mouseY, float partialTick) { } @Override public void drawForeground(int paramInt1, int paramInt2) { boolean intersect = intersectsWith(paramInt1, paramInt2) && paramInt2 != posY; // to prevent two of them being hovered over at the same time. intersectsWith uses <= and >= if(!mouseIn && intersect) { mouseIn = true; mouseEnterX = paramInt1-posX; animateStart = h.getTicks(); } else if(mouseIn && !intersect) { mouseIn = false; animateStart = 0; // just for good measure. } int textLeft = 12; double s = 0.6; double S = 1.0/s; GL11.glScaled(s, s, s); h.setupItemRender(); h.drawItemStack(icon, (int)( (posX+1)*S ), (int)( (posY+1)*S )); h.cleanupItemRender(); GL11.glScaled(S, S, S); s = 2.0/3.0; S = 1.0/s; GL11.glScaled(s, s, s); GuiHelper.fontRendererObj.drawString(getTranslatedName(), (int)( ( posX+textLeft )*S ), (int)( ( posY+3 )*S ), 0x00000); GL11.glScaled(S, S, S); GL11.glAlphaFunc(GL11.GL_GREATER, 0); if(mouseIn) { double p = h.tickAnimate(animateStart, 5); h.loadInterpolationFraction(Math.min(p, 1)); h.drawColoredRect(posX+h.intr(mouseEnterX, 0), posY, posX+ h.intr(mouseEnterX, sizeX), posY+sizeY, 0,0,0, h.intr(0, 0.1)); } } @Override public boolean onMousePressed(int paramInt1, int paramInt2, int paramInt3) { // state.currentPage = null; state.pushHistory(); if(name.startsWith("list.")) { state.goToEntryList(name); } else { state.goToPage(name, 0); } return true; } }
Python
UTF-8
1,817
4.21875
4
[ "MIT" ]
permissive
# https://repl.it/@thakopian/day-4-2-exercise#main.py # write a program which will select a random name from a list of names # name selected will pay for everyone's bill # cannot use choice() function # inputs for the names - Angela, Ben, Jenny, Michael, Chloe # import modules import random # set varialbles for input and another to modify the input to divide strings by comma names_string = input("Give me everybody's names, separated by a comma. ") names = names_string.split(", ") # get name at index of list (example) print(names[0]) # you can also print len of the names to get their range print(len(names)) # set random module for the index values # > this is standard format > random.randint(0, x) # using the len as a substitute for x in the randint example with a variable set to len(names) num_items = len(names) # num_items - 1 in place of x to get the offset of the len length to match a starting 0 position on the index values # set the function to a variable choice = random.randint(0, num_items - 1) # assign the mutable name variable with an index of the choice variable to another variable for storing the index value of the name based on the index vaule person_who_pays = names[choice] # print that stored named variable out with a message print(person_who_pays + " is going to buy the meal today") ####### # This exercise isn't a practical application of random choice since it doesn't use the .choice() function # the idea is to replace variables, learn by retention and problem solve # create your own random choice function to understand how the code can facilitate that withouth the .choice() function # that way you learn how to go through problem challenges and how to create your own workaround in case the out of the box content isn't everything you need for a given problem
C
UTF-8
3,096
2.765625
3
[ "MIT" ]
permissive
#include <stdlib.h> #include <stdio.h> #include "jiggle.h" static jgVector2 jgSpringCalculateForce(jgVector2 posA, jgVector2 velA, jgVector2 posB, jgVector2 velB, float springD, float springK, float damping) { // I don't get this bit, I'm just copying // Something to do with Hooke's law jgVector2 BtoA = jgVector2Subtract(posA, posB); float dist = springD - jgVector2Length(BtoA); BtoA = jgVector2Normalize(BtoA); jgVector2 relVel = jgVector2Subtract(velA, velB); float totalRelVel = jgVector2Dot(relVel, BtoA); return jgVector2Multiply(BtoA, (dist * springK) - (totalRelVel * damping)); } jgSpring *jgSpringAlloc() { return malloc(sizeof(jgSpring)); } jgSpring *jgSpringInit(jgSpring *spring, jgParticle *a, jgParticle *b, float d, float k, float damp) { spring->particleA = a; spring->particleB = b; spring->springD = d; spring->springK = k; spring->damping = damp; return spring; } jgSpring *jgSpringNew(jgParticle *a, jgParticle *b, float d, float k, float damp) { return jgSpringInit(jgSpringAlloc(), a, b, d, k, damp); } void jgSpringFree(jgSpring *spring) { free(spring); } void jgSpringExert(jgSpring *spring) { jgSpringDragTogether(spring->particleA, spring->particleB, spring->springD, spring->springK, spring->damping); } void jgSpringDragTowards(jgParticle *particle, jgVector2 point, float d, float k, float damp) { jgVector2 force = jgSpringCalculateForce(particle->position, particle->velocity, point, jgv(0, 0), d, k, damp); particle->force = jgVector2Add(particle->force, force); } void jgSpringDragTogether(jgParticle *particleA, jgParticle *particleB, float d, float k, float damp) { jgVector2 force = jgSpringCalculateForce(particleA->position, particleA->velocity, particleB->position, particleB->velocity, d, k, damp); particleA->force = jgVector2Add (particleA->force, force); particleB->force = jgVector2Subtract(particleB->force, force); }
C++
SHIFT_JIS
3,484
2.921875
3
[]
no_license
#include <string> #include "pch.h" #include "Card.h" #ifdef _DEBUG #define CV_EXT "d.lib" #else #define CV_EXT ".lib" #endif #pragma comment(lib, "opencv_world411" CV_EXT) // OpenCV4.1.1Ȃ̂ class CardDummy : public Card { public: void set_name(char* _name) { name = _name; } void set_ability(char* _ability_text) { ability_text = _ability_text; } // loadImage()֐protectedȂ̂ŁÅ֐Ăяo bool call_loadImage(const string filename) { return loadImage(filename); } }; class UnitTestCard : public ::testing::Test { protected: const char* input_img = "../../test_data/CardGameTest/input/ki.png"; const int img_rows = 70; const int img_cols = 51; virtual void SetUp() { // do nothing } virtual void TearDown() { // do nothing } }; TEST_F(UnitTestCard, Card) { Card card; string act_name = card.get_name(); char* exp_name = "Nothing"; EXPECT_STREQ(exp_name, act_name.c_str()); string act_ability = card.get_ability(); char* exp_ability = "Nothing"; EXPECT_STREQ(exp_ability, act_ability.c_str()); } TEST_F(UnitTestCard, loadImage) { CardDummy card; const string error_filename = "not_exist_file.abc"; // ݂Ȃt@C EXPECT_FALSE(card.call_loadImage(error_filename)); const string filename = input_img; EXPECT_TRUE(card.call_loadImage(filename)); } TEST_F(UnitTestCard, load) { // 摜`ñeXg͂Ȃ CardDummy card; card.call_loadImage(input_img); char* name = "card_name"; card.set_name(name); char* ability = "card_ability"; card.set_ability(ability); string title_head = "title_head"; // coutȂ̂ŁAƂɃeXg͂Ȃ EXPECT_TRUE(card.show(title_head, Card::SHOW_TEXT)); // 摜\ñeXg͂Ȃ //EXPECT_TRUE(card.show(title_head, Card::SHOW_IMG_TEXT)); } TEST_F(UnitTestCard, show) { CardDummy card; string actual = card.show("nothing", 1.f, 0, 0, false); EXPECT_STREQ("", actual.c_str()); /* 摜`ñeXg͂ȂB card.call_loadImage(input_img); string expected = "input"; actual = card.show(expected, 1.f, 0, 0, false); EXPECT_STREQ(expected.c_str(), actual.c_str()); */ } TEST_F(UnitTestCard, get_name) { CardDummy card; char expected[] = "card_name"; card.set_name(expected); const string actual = card.get_name(); EXPECT_STREQ(expected, actual.c_str()); } TEST_F(UnitTestCard, get_ability) { CardDummy card; char expected[] = "card_ability"; card.set_ability(expected); const string actual = card.get_ability(); EXPECT_STREQ(expected, actual.c_str()); } TEST_F(UnitTestCard, endStr) { char c[] = { '\n', '\0', '\r' }; for (int i = 0; i < sizeof(c); i++) { EXPECT_TRUE(Card::endStr(c[i])); } } TEST_F(UnitTestCard, endStr_false) { char c[] = { 'a', '9', '#' }; for (int i = 0; i < sizeof(c); i++) { EXPECT_FALSE(Card::endStr(c[i])); } } TEST_F(UnitTestCard, split_plane) { char str[] = "sample1,ability is No.1,KT1.jpg"; char* actual[5] = {NULL, NULL, NULL, NULL, NULL}; EXPECT_EQ(3, Card::split_plane(str, actual)); char* expected[] = { "sample1", "ability is No.1", "KT1.jpg", NULL, NULL}; for (int i = 0; i < 5; i++) { EXPECT_STREQ(expected[i], actual[i]); } } TEST_F(UnitTestCard, getImgSize) { CardDummy card; unsigned int rows, cols; EXPECT_FALSE(card.getImgSize(&rows, &cols)); card.call_loadImage(input_img); EXPECT_TRUE(card.getImgSize(&rows, &cols)); EXPECT_EQ(img_rows, rows); EXPECT_EQ(img_cols, cols); }
C#
UTF-8
4,200
2.671875
3
[ "Apache-2.0" ]
permissive
using IronText.Framework; using IronText.Reflection; namespace CSharpParser { [Vocabulary] public class CsScanner { [Match(@"'//' ~('\r' | '\n' | u0085 | u2028 | u2029)*")] public void LineComment() { } [Match("'/*' (~'*'* | '*' ~'/')* '*/'")] public void MultiLineComment() { } [Match(@"'\r'? '\n' | u0085 | u2028 | u2029")] public void NewLine() { } [Match("(Zs | '\t' | u000B | u000C)+")] public void WhiteSpace() { } [Match(@" '@'? ('_' | Lu | Ll | Lt | Lm | Lo | Nl) (Pc | Lu | Ll | Lt | Lm | Lo | Nl | Nd | Mn | Mc | Cf)* ")] public CsIdentifier Identifier(string text) { return null; } #region Contextual keywords [Literal("assembly", Disambiguation.Contextual)] public CsAssemblyKeyword AssemblyKeyword() { return null; } [Literal("module", Disambiguation.Contextual)] public CsModuleKeyword ModuleKeyword() { return null; } [Literal("field", Disambiguation.Contextual)] public CsFieldKeyword FieldKeyword() { return null; } [Literal("event", Disambiguation.Contextual)] public CsEventKeyword EventKeyword() { return null; } [Literal("method", Disambiguation.Contextual)] public CsMethodKeyword MethodKeyword() { return null; } [Literal("param", Disambiguation.Contextual)] public CsParamKeyword ParamKeyword() { return null; } [Literal("property", Disambiguation.Contextual)] public CsPropertyKeyword PropertyKeyword() { return null; } [Literal("return", Disambiguation.Contextual)] public CsReturnKeyword ReturnKeyword() { return null; } [Literal("type", Disambiguation.Contextual)] public CsTypeKeyword TypeKeyword() { return null; } [Literal("var", Disambiguation.Contextual)] public CsVarKeyword VarKeyword() { return null; } #endregion Contextual keywords [Literal("true")] public CsBoolean BooleanTrue(string text) { return null; } [Literal("false")] public CsBoolean BooleanFalse(string text) { return null; } [Match("digit+ ([Uu] | [Ll] | 'UL' | 'Ul' | 'uL' | 'ul' | 'LU' | 'Lu' | 'lU' | 'lu')?")] public CsInteger DecimalInteger(string text) { return null; } [Match("'0x' hex+ ([Uu] | [Ll] | 'UL' | 'Ul' | 'uL' | 'ul' | 'LU' | 'Lu' | 'lU' | 'lu')?")] public CsInteger HexInteger(string text) { return null; } [Match("digit+ '.' digit+ ([eE] [+-]? digit+)? [FfDdMm]?")] [Match(" '.' digit+ ([eE] [+-]? digit+)? [FfDdMm]?")] [Match("digit+ ([eE] [+-]? digit+) [FfDdMm]?")] [Match("digit+ [FfDdMm]")] public CsReal Real(string text) { return null; } [Match(@"['] ( ~(u0027 | u005c | '\n') | esc ['""\\0abfnrtv] | esc hex {1,4} | esc 'u' hex {4} ) [']")] public CsChar Char(string text) { return null; } [Match(@" quot ( ~(quot | u005c | '\n') | '\\' ['""\\0abfnrtv] | '\\' hex {1,4} | '\\' 'u' hex {4} )* quot ")] public CsString RegularString(string text) { return null; } [Match("'@' quot (~quot | quot quot)* quot")] public CsString VerbatimString(string text) { return null; } [Literal("null")] public CsNull Null() { return null; } [Produce] public CsDimSeparators DimSeparators(CsCommas commas) { return null; } #region Typed keywords [Literal("extern")] public CsExtern Extern() { return null; } [Literal("partial")] public CsPartial Partial() { return null; } [Literal(";")] public CsSemicolon Semicolon() { return null; } [Literal("new")] public CsNew NewKeyword() { return null; } [Literal(".")] public CsDot Dot() { return null; } #endregion } }
Markdown
UTF-8
2,262
2.65625
3
[ "MIT" ]
permissive
--- name: 🔄 Update existing site about: Request that an existing listed site be updated with new information. title: Update [site name] labels: update site assignees: '' --- <!-- Before submitting this issue, please update the title to include the name of the site to be updated. Submit a single issue for each site to be updated. In Markdown, checkboxes work like this: - [ ] Unchecked box. - [x] Checked box. Check the box below before submitting your issue to verify that you have already checked for duplicate open issues and pull requests relating to your request. --> - [ ] I have searched [open issues and pull requests](https://github.com/2factorauth/twofactorauth/issues?q=is%3Aopen). The issue I'm creating is not a duplicate of an existing open issue or pull request. ### Information about the site entry to be updated: ### <!-- Name of the site, as currently listed on 2fa.directory --> * Site name - `` <!-- Link to the main page of the site, as currently listed on 2fa.directory --> * Site URL - `` <!-- Category of the site, as currently listed on 2fa.directory --> * Site category - `` ### Information about why the site entry should be updated: ### **This site entry should be updated because:** - [ ] It now supports 2FA. - [ ] The methods of 2FA that it supports have changed. - [ ] It has begun the process of implementing 2FA. - [ ] It no longer supports 2FA. - [ ] Its name has changed. - [ ] Its documentation link has changed. - [ ] Its Twitter username, Facebook page, and/or email address have changed. - [ ] It fits better in a different category. - [ ] Its logo has changed. - [ ] It has been acquired or absorbed by another site, and the new site is eligible to be listed on 2fa.directory. - [ ] Other (please describe below). ### Information about how the site entry should be updated: ### <!-- List the specific changes to the site entry that should be made below. For example, if a site now supports 2FA, list the methods of 2FA the site now supports. Please include any supporting documentation for the changes as well, such as official documentation links or announcement blog posts. If no public-facing documentation is available, please include screenshots of the changes, redacting any personal information. -->
Java
UTF-8
1,556
3.046875
3
[]
no_license
package com.vlfom.utils; import java.util.Random; /** * Created by @vlfom. */ public class VectorMath { public static Vector2D exp(Vector2D x) { for (int i = 0; i < x.getL1(); ++i) { for (int j = 0; j < x.getL2(); ++j) { x.setVal(i, j, Math.exp(x.getVal(i, j))); } } return x; } public static Vector2D zeros(int length) { Vector2D v = new Vector2D(length); return v; } public static Vector2D zeros(int l1, int l2) { Vector2D v = new Vector2D(l1, l2); return v; } public static Vector2D zeros(Vector2D x) { return zeros(x.getL1(), x.getL2()); } public static Vector2D ones(int length) { Vector2D v = new Vector2D(length); for (int i = 0; i < length; ++i) { v.setVal(i, 1); } return v; } public static Vector2D ones(int l1, int l2) { Vector2D v = new Vector2D(l1, l2); for (int i = 0; i < l1; ++i) { for (int j = 0; j < l2; ++j) { v.setVal(i, j, 1); } } return v; } public static Vector2D ones(Vector2D x) { return ones(x.getL1(), x.getL2()); } public static Vector2D gaussianRandom(int l1, int l2) { Random r = new Random(); Vector2D v = new Vector2D(l1, l2); for (int i = 0; i < l1; ++i) { for (int j = 0; j < l2; ++j) { v.setVal(i, j, r.nextGaussian()); } } return v; } }
Markdown
UTF-8
3,508
3.109375
3
[ "MIT" ]
permissive
# templated-secrets A Kubernetes operator to template secrets dynamically. ## Introduction This Kubernetes operator allows you to create secrets dynamically from templates. Secrets can be used as environment variables for Pods, using `envFrom` or `valueFrom`. Sometimes it is desired to create an environemnt variable based on one or more secrets. While it is possible to use variable substitution to combine one or more environment variables, it is quite cumbersome to include this in your Pod spec, especially if you need to rewrite secret names. In addition, all the variables necessary will pollute the environemt of the Pod. ## Usage The spec is quite similar to a regular `Secret`. ### Basic usage ```yaml apiVersion: k8s.basilfx.net/v1alpha1 kind: TemplatedSecret metadata: name: <name> namespace: <namespace> spec: data: key1: <template> key2: <template> ... keyN: <template> ``` A template is a regular string that can contain one or more variable references that will be replaced. A variable is defined as `$(namespace > secretRef > key)`, or `$(secretRef > key)` if the `secretRef` is within the same namespace as the template. Using `$(..)` as syntax for variable references does not conflict with the Sprig templating language as used by Helm and others. Note that advanced manipulation of variables is not supported. Although it is possible to use a `TemplatedSecret` just like a regular Secret, it should not be used as such. Furthermore, the values are treated as regular strings (not Base64 encoded). If any of the variables cannot be resolved, the `Secret` will not be created (or updated). It will be re-queued for reconcilliation. Furthermore, if the `TemplatedSecret` would overwrite an existing `Secret` (not owned by the `TemplatedSecret`), it will not continue. In both cases, the status of the `TemplatedSecret` will be updated. ### Advanced usage It is also possible to define additional metadata. See the example below: ```yaml apiVersion: k8s.basilfx.net/v1alpha1 kind: TemplatedSecret metadata: name: <name> namespace: <namespace> spec: template: type: Opaque metadata: name: <another-name> labels: app: some-app data: key1: <template> key2: <template> ... keyN: <template> ``` ## Example Given the following `Secret`s: ```yaml apiVersion: v1 kind: Secret metadata: name: common-secrets namespace: default type: Opaque stringData: host: example.org --- apiVersion: v1 kind: Secret metadata: name: other-secrets namespace: admin type: Opaque stringData: token: 123hello456world ``` The `TemplatedSecret` below will deploy and control another `Secret`, based on the template you define: ```yaml apiVersion: k8s.basilfx.net/v1alpha1 kind: TemplatedSecret metadata: name: templated-secret namespace: default spec: data: connectionString: "http://$(common-secrets > host)?token=$(admin > other-secrets > token)" ``` ## Building The easiest way to get started, is to use the Dockerfile and build the application in Docker. Simply run `docker build . --tag image:tag`. Alternatively, to run `make run` to build and start this service. This project depends on the [Operator SDK](https://sdk.operatorframework.io/). Refer to this project for more information. ## Helm chart A Helm chart is provided in the `helm/` folder. ## TODO * Reconcile when any referenced secrets update. * Template is only applicable for new secrets. ## License See the `LICENSE.md` file (MIT license).
Java
GB18030
10,613
2.65625
3
[]
no_license
package Ex5; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.border.EmptyBorder; import javax.swing.JLabel; import javax.swing.JOptionPane; import java.awt.Font; import javax.swing.JTextField; import javax.swing.JButton; import java.util.GregorianCalendar; import javax.swing.JComboBox; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import javax.swing.JTextArea; import javax.swing.JScrollPane; class MyOptionPane implements Runnable{ private VisibleClient client; public MyOptionPane(VisibleClient c){ this.client = c; } @Override public void run() { if(client.optionFlag == 1){ JOptionPane.showMessageDialog(null, "л", "", JOptionPane.PLAIN_MESSAGE); } } } class Alarm implements Runnable{ private VisibleClient client; String pause ; public Alarm(VisibleClient v) { this.client = v; } @Override public void run() { while(true){ try { counter(); } catch (InterruptedException e) { e.printStackTrace(); } addAlarm(); myAlarm(); } } /** * */ public synchronized void myAlarm() { if(client.sbCom.toString().contains(";")){ String [] str = client.sbCom.toString().split(";"); for(int i=0; i<str.length; i++){ String [] s = str[i].toString().split("m"); String [] s0 = s[0].toString().split("-"); String [] s1 = s[1].toString().split(":"); if((Integer.parseInt(s0[0])==client.year) && (Integer.parseInt(s0[1])==client.month) && (Integer.parseInt(s0[2])==client.date) && (Integer.parseInt(s1[0])==client.hour) && (Integer.parseInt(s1[1])==client.minute) && (Integer.parseInt(s1[2])==client.second) ){ // JOptionPane.showMessageDialog(null, "л", "", JOptionPane.PLAIN_MESSAGE); client.optionFlag = 1; new Thread (new MyOptionPane(client)).start(); // why?????????????????????????????????????? } } } } /** * */ public void addAlarm() { client.btnNewButton.addMouseListener(new MouseAdapter() { // Dz൱ڿһ̣߳ @Override public void mouseClicked(MouseEvent arg0) { if((pause==null) || !(pause.equals(client.textField.getText()+""+client.textField_1.getText()))){ pause = client.textField.getText()+""+client.textField_1.getText(); if(client.textField.getText().contains("-") && client.textField_1.getText().contains(":")){ if( (client.textField.getText().split("-").length == 3) && (client.textField_1.getText().split(":").length == 3) ){ String [] inputA = client.textField.getText().split("-"); String [] inputB = client.textField_1.getText().split(":"); if((Integer.parseInt(inputA[0])>2000)&&(Integer.parseInt(inputA[0])<2100) && (Integer.parseInt(inputA[1])>0)&& (Integer.parseInt(inputA[1])<13) && (Integer.parseInt(inputA[2])>0)&&(Integer.parseInt(inputA[2])<32)&& (Integer.parseInt(inputB[0])<25)&&((Integer.parseInt(inputB[0])>=0)) && (Integer.parseInt(inputB[1])<60)&& (Integer.parseInt(inputB[1])>=0) && (Integer.parseInt(inputB[2])>=0)&&(Integer.parseInt(inputB[2])<60) ){ client.sb.append(":\t"); client.sb.append(client.textField_2.getText()); client.sb.append("\nʱ:\t"); client.sb.append(client.textField.getText()); client.sb.append("\t"); client.sb.append(client.textField_1.getText()); client.sb.append("\n\n"); client.textArea.setText(client.sb.toString()); client.sbCom.append(client.textField.getText()); client.sbCom.append("m"); client.sbCom.append(client.textField_1.getText()); client.sbCom.append(";"); } else JOptionPane.showMessageDialog(null, "ʽ밴¸ʽ룺\r\n\tڣ\t2017-5-25\r\n\tʱ䣺\t14:2:32", "", JOptionPane.ERROR_MESSAGE); } else JOptionPane.showMessageDialog(null, "ʽ밴¸ʽ룺\r\n\tڣ\t2017-5-25\r\n\tʱ䣺\t14:2:32", "", JOptionPane.ERROR_MESSAGE); } else JOptionPane.showMessageDialog(null, "ʽ밴¸ʽ룺\r\n\tڣ\t2017-5-25\r\n\tʱ䣺\t14:2:32", "", JOptionPane.ERROR_MESSAGE); } } }); } public synchronized void counter() throws InterruptedException { client.contentPane.updateUI(); client.label_3.setText(timer()); Thread.sleep(1000); } public String timer() { client.second = (client.second == 59)? 0 : client.second+1 ; if(client.second == 0){ client.minute = (client.minute == 59)? 0 : client.minute+1; if(client.minute == 0){ client.hour = (client.hour == 23)? 0 : client.hour+1; } } client.timeStr = new StringBuilder(); client.timeStr.append(String.format("%2d",client.hour)+":"); client.timeStr.append((client.minute<10)?"0"+client.minute:client.minute); client.timeStr.append(":"); client.timeStr.append((client.second<10)?"0"+client.second:client.second); return client.timeStr.toString(); } } class TimeModify implements Runnable{ private VisibleClient client; public TimeModify(VisibleClient v) { this.client = v; } @Override public void run() { client.button.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent arg0) { if(client.comboBox.getSelectedItem().toString().equals("ʱ")) client.hour++; else if(client.comboBox.getSelectedItem().toString().equals("")) client.minute++; else client.second++; } }); client.button_1.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent arg0) { if(client.comboBox.getSelectedItem().toString().equals("ʱ")) client.hour--; else if(client.comboBox.getSelectedItem().toString().equals("")) client.minute--; else client.second--; } }); } } public class VisibleClient { public JPanel contentPane; public JTextField textField; public JTextField textField_1; public JTextField textField_2; public JFrame frame; public JLabel lblNewLabel; public JLabel label; public JLabel label_1; public JLabel label_2; public JLabel lblNewLabel_1; public JLabel label_3; public JLabel label_4; public JButton button; public JButton button_1; public JComboBox comboBox; public JButton btnNewButton; public JTextArea textArea; public JScrollPane scrollPane_1; GregorianCalendar gc = new GregorianCalendar(); public int year = gc.get(GregorianCalendar.YEAR); public int month = gc.get(GregorianCalendar.MONTH)+1; public int date = gc.get(GregorianCalendar.DATE); public int hour = gc.get(GregorianCalendar.HOUR); public int minute = gc.get(GregorianCalendar.MINUTE); public int second = gc.get(GregorianCalendar.SECOND); public int optionFlag = 0; public StringBuilder timeStr; StringBuilder sb = new StringBuilder(); StringBuilder sbCom = new StringBuilder(); /** * Launch the application. */ public static void main(String[] args) { VisibleClient client = new VisibleClient(); new Thread (new TimeModify(client)).start(); // new Thread (new MyOptionPane(client)).start(); new Thread (new Client(client)).start(); new Thread (new Alarm(client)).start(); } /** * Create the frame. */ public VisibleClient() { frame = new JFrame("VisibleClient"); frame.setTitle(""); frame.setVisible(true); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setBounds(100, 100, 664, 622); contentPane = new JPanel(); contentPane.setToolTipText(""); contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); frame.setContentPane(contentPane); contentPane.setLayout(null); lblNewLabel = new JLabel("\u65F6\u95F4"); lblNewLabel.setBounds(132, 97, 96, 45); lblNewLabel.setFont(new Font("", Font.BOLD, 25)); contentPane.add(lblNewLabel); label = new JLabel("\u65E5\u671F"); label.setBounds(132, 34, 96, 45); label.setFont(new Font("", Font.BOLD, 25)); contentPane.add(label); label_1 = new JLabel("\u95F9\u949F\u65E5\u671F"); label_1.setBounds(110, 181, 118, 45); label_1.setFont(new Font("", Font.BOLD, 25)); contentPane.add(label_1); label_2 = new JLabel("\u95F9\u949F\u65F6\u95F4"); label_2.setBounds(110, 248, 118, 45); label_2.setFont(new Font("", Font.BOLD, 25)); contentPane.add(label_2); lblNewLabel_1 = new JLabel(""); lblNewLabel_1.setBounds(241, 29, 170, 60); lblNewLabel_1.setFont(new Font("", Font.BOLD, 31)); contentPane.add(lblNewLabel_1); label_3 = new JLabel(""); label_3.setBounds(241, 96, 170, 60); label_3.setFont(new Font("", Font.BOLD, 31)); contentPane.add(label_3); textField = new JTextField(); textField.setBounds(241, 177, 170, 50); textField.setFont(new Font("", Font.BOLD, 32)); contentPane.add(textField); textField.setColumns(10); textField_1 = new JTextField(); textField_1.setBounds(241, 248, 170, 50); textField_1.setFont(new Font("", Font.BOLD, 32)); textField_1.setColumns(10); contentPane.add(textField_1); label_4 = new JLabel("\u5DF2\u8BBE\u5B9A\u7684\u95F9\u949F"); label_4.setBounds(62, 418, 184, 45); label_4.setFont(new Font("", Font.BOLD, 25)); contentPane.add(label_4); comboBox = new JComboBox(); comboBox.setBounds(435, 49, 68, 21); comboBox.addItem("ʱ"); comboBox.addItem(""); comboBox.addItem(""); contentPane.add(comboBox); button = new JButton("+"); button.setBounds(435, 97, 68, 32); contentPane.add(button); button_1 = new JButton("-"); button_1.setBounds(435, 127, 68, 29); contentPane.add(button_1); btnNewButton = new JButton("\u786E\u8BA4\u8F93\u5165"); btnNewButton.setBounds(435, 322, 96, 45); contentPane.add(btnNewButton); JScrollPane scrollPane_1 = new JScrollPane(); scrollPane_1.setBounds(241, 415, 268, 116); contentPane.add(scrollPane_1); textArea = new JTextArea(); scrollPane_1.setViewportView(textArea); // GregorianCalendar gc = new GregorianCalendar(); lblNewLabel_1.setText(year+"-"+month+"-"+date); JLabel label_5 = new JLabel("\u5E72\u5565"); label_5.setFont(new Font("", Font.BOLD, 25)); label_5.setBounds(110, 327, 118, 45); contentPane.add(label_5); textField_2 = new JTextField(); textField_2.setFont(new Font("", Font.BOLD, 32)); textField_2.setColumns(10); textField_2.setBounds(241, 322, 170, 50); contentPane.add(textField_2); } }
PHP
UTF-8
2,578
2.796875
3
[]
no_license
<?php $mysqli = new mysqli("localhost","root","","demo"); if ($mysqli -> connect_errno) { echo "Failed to connect to MySQL: " . $mysqli -> connect_error; exit(); } if ($_SERVER["REQUEST_METHOD"] == "POST") { $uname=$_POST['username']; $password=$_POST['password']; $Firstname=$_POST['Firstname']; $Lastname=$_POST['Lastname']; $email=$_POST['email']; $Phone_number=$_POST['Phone_number']; $sql="SELECT * FROM loginform WHERE User = '".$uname."'"; $result= $mysqli -> query($sql); if(mysqli_num_rows($result)==1){ echo "username already exist"; exit(); } else{ $REG = "INSERT INTO `loginform`(`User`, `Pass`) VALUES ('".$uname."' , '".$password."' )"; $mysqli -> query($REG); $DET ="INSERT INTO `details`(`Firstname`, `Lastname`, `Email`, `Phone no.`, `User`) VALUES ('".$Firstname."', '".$Lastname."', '".$email."', '".$Phone_number."', '".$uname."')"; $mysqli -> query($DET); echo "You have succesfully registered"; } } ?> <!DOCTYPE html> <html> <head> <title> Sign up form</title> <link rel="stylesheet" a href="css\style.css"> <link rel="stylesheet" a href="css\style2.css"> <!-- <link rel="stylesheet" a href="css\font-awesome.min.css"> --> </head> <body class="login_signup"> <div class="container"> <img src="media/login.png"/> <form method="POST" action="#"> <div class="row"> <div class="form-input"> <input type="text" name="Firstname" placeholder="Firstname" required="text" /> </div> <div class="form-input"> <input type="text" name="Lastname" placeholder="Lastname" required="text" /> </div> <div class="form-input"> <input type="email" name="email" placeholder="Email Address" required="email" /> </div> <div class="form-input"> <input type="text" name="Phone_number" placeholder="Phone Number" required="Number" /> </div> <div class="form-input"> <input type="text" name="username" placeholder="Create a Username" required="text" /> </div> <div class="form-input"> <input type="password" name="password" placeholder="password" required="text" /> </div> <input type="submit" type="submit" value="SIGN UP" class="btn-login"/> <a href="./login.PHP" class="btn-login">Go to Login</a> </form> </div> </body> </html>
C++
UTF-8
5,809
2.5625
3
[ "MIT" ]
permissive
#include <string.h> #include <unistd.h> #include <iostream> #include <stdlib.h> #include <SDL.h> #define WIDTH 1000 #define HEIGHT 500 #define WINDOWSIZE_X 1000 #define WINDOWSIZE_Y 500 #define RANGE 1 #define STATEWIDTH RANGE*2 + 1 using namespace std; // Give rule as first parameter. Default is rule 30. SDL_Surface *demo_screen; int iRule = 30; int iArray[WIDTH] = {0}; int iNextArray[WIDTH] = {0}; int iDisplay[WIDTH][HEIGHT] = {0}; int iRow = 0; int iStop = 1000000; int iIteration = 0; int iMetarule = 0; // Todo: make width, range and initial state parameterisable from command line. int handle() { int iState[STATEWIDTH] = {0}; int iHop = 100; int iLoop = 0; if (iIteration > iStop) { return 0; } //while (1) //{ for (int i=0; i<WIDTH; i++) { int iPos = 0; for (int j=i-RANGE; j<=i+RANGE; j++) { if ((j>0) && (j<WIDTH)) { if (1 == iArray[j]) { iState[iPos] = 1; } else { iState[iPos] = 0; } } iPos++; } int iVal = 0; for (int j=0; j<STATEWIDTH; j++) { iVal += iState[j] << j; } iNextArray[i] = (iRule >> iVal)&1; if (0 < iMetarule) { iRule |= iMetarule; iRule = iRule%256; } } /* for (int i=0; i<WIDTH; i++) { if (0 == iArray[i]) { cout << " "; } else { cout << "O"; } } cout << endl;*/ memcpy(iArray, iNextArray, WIDTH*sizeof(int)); for (int iD=0; iD<WIDTH; iD++) { iDisplay[iD][iRow] = iArray[iD]; } iRow = (iRow + 1)%HEIGHT; if (0 == (iLoop++)%iHop) { //sleep(1); } //} iIteration++; } void draw() { //cout << "draw()" << endl; int i,bpp,rank,x,y; int ii=0; int jj=0; Uint32 *pixel; /* Lock surface */ SDL_LockSurface(demo_screen); rank = demo_screen->pitch/sizeof(Uint32); pixel = (Uint32*)demo_screen->pixels; /* Draw all dots */ for(int y = 0; y < HEIGHT; y++) { for (int x = 0; x < WIDTH; x++) { /* Set pixel */ /* for (int i=0; i<WIDTH; i++) { if (0 == iArray[i]) { cout << " "; } else { cout << "O"; } } cout << endl;*/ if (0 == iDisplay[x][y]) { pixel[x+y*rank] = SDL_MapRGBA(demo_screen->format,255,255,255,255); //cout << "O"; } else { pixel[x+y*rank] = SDL_MapRGBA(demo_screen->format,0,0,0,255); //cout << " "; } } //cout << endl; //fflush(stdout); } /* Unlock surface */ SDL_UnlockSurface(demo_screen); } int main(int argc,char **argv) { if (1 < argc) { iRule = atoi(argv[1]); } else { iRule = 30; } if (2 < argc) { iStop = atoi(argv[2]); } else { iStop = 100000000; } if (3 < argc) { if (0 == atoi(argv[3])) { iArray[WIDTH/2] = 1; } else { for (int i=0; i < WIDTH; i++) { iArray[i] = rand()%atoi(argv[3]); } } } else { iArray[WIDTH/2] = 1; } if (4 < argc) { iMetarule = atoi(argv[4]); } else { iMetarule = 0; } SDL_Event ev; int active; /* Initialize SDL */ if(SDL_Init(SDL_INIT_VIDEO) != 0) fprintf(stderr,"Could not initialize SDL: %s\n",SDL_GetError()); /* Open main window */ demo_screen = SDL_SetVideoMode(WINDOWSIZE_X,WINDOWSIZE_Y,0,SDL_HWSURFACE|SDL_DOUBLEBUF); if(!demo_screen) fprintf(stderr,"Could not set video mode: %s\n",SDL_GetError()); /* Main loop */ active = 1; printf("speed up: press +, slow down: press -\n"); fflush(stdout); while(active) { /* Handle events */ while(SDL_PollEvent(&ev)) { if(ev.type == SDL_QUIT) active = 0; /* End */ if (SDL_KEYDOWN == ev.type) { //printf("pressed %d", ev.key.keysym.sym); /* switch (ev.key.keysym.sym) { case 43: { printf("speeding up. speed is: %f\n", demo_time_coeff); fflush(stdout); demo_time_coeff *= 2; break; } case 45: { printf("slowing down. speed is: %f\n", demo_time_coeff); fflush(stdout); demo_time_coeff /= 2; break; } default: { break; } }*/ } } /* Start time */ //demo_start_time(); /* Handle simulation */ handle(); /* Clear screen */ SDL_FillRect(demo_screen,NULL,SDL_MapRGBA(demo_screen->format,0,0,255,255)); /* Draw simulation */ draw(); /* Show screen */ SDL_Flip(demo_screen); /* End time */ //demo_end_time(); //cout << "active" << endl; //fflush(stdout); } /* Exit */ SDL_Quit(); return 0; }
C++
UTF-8
1,941
3.421875
3
[]
no_license
#include <iostream> #include <vector> #include <algorithm> using namespace std; struct ListNode { int val; ListNode *next; ListNode(int x) : val(x), next(NULL) {} }; class Solution { public: ListNode* mergeTwoLists(ListNode* l1, ListNode* l2) { ListNode* tail = new ListNode(0); ListNode* ans = tail; while (l1 && l2) { if (l1->val < l2->val) { tail->next = l1; l1 = l1->next; } else { tail->next = l2; l2 = l2->next; } tail = tail->next; } tail->next = l1 ? l1 : l2; return ans->next; } void merge(vector<int>& nums1, int m, vector<int>& nums2, int n) { int i = m - 1, j = n - 1, k = m + n - 1; while (j >= 0) { nums1[k--] = i >= 0 && nums1[i] >= nums2[j] ? nums1[i--] : nums2[j--]; } } int removeDuplicates(vector<int>& nums) { if (nums.size() < 2) return nums.size(); int pre = nums[0]; vector<int>::iterator it; for (it = nums.begin() + 1; it != nums.end();) { if (*it == pre) { it = nums.erase(it); } else { pre = *it; it++; } } return nums.size(); } int removeElement(vector<int>& nums, int val) { if (!nums.size()) return 0; int len = nums.size(); for (int i = 0; i < len;) { if (val == nums[i]) { nums[i] = nums[--len]; } else i++; } return len; } int searchInsert(vector<int>& nums, int target) { if (!nums.size() || target <= nums[0]) return 0; int i = 0; while (i < nums.size() && target > nums[i]) { i++; } return i; } bool isBadVersion(int version) { return false; } int firstBadVersion(int n) { int low = 0, high = n; while (low + 1 < high) { int mid = low + (high - low) / 2; if (isBadVersion(mid)) { high = mid; } else low = mid; } return high; } }; // //int main() { // /*vector<int> v; // v.push_back(1); // v.push_back(3); // v.push_back(5); // v.push_back(6);*/ // // Solution s; // cout << s.firstBadVersion(10) << endl; // return 0; //}
Python
UTF-8
4,206
2.515625
3
[]
no_license
from datetime import datetime import logging import math from typing import Dict, Optional, List, Union import backtrader as bt import pandas as pd import itertools _logger = logging.getLogger(__name__) def paramval2str(name, value): if value is None: # catch None value early here! return str(value) elif name == "timeframe": return bt.TimeFrame.getname(value, 1) elif isinstance(value, float): return f"{value:.2f}" elif isinstance(value, (list,tuple)): return ','.join(value) elif isinstance(value, type): return value.__name__ else: return str(value) def get_nondefault_params(params: object) -> Dict[str, object]: return {key: params._get(key) for key in params._getkeys() if not params.isdefault(key)} def get_params(params: bt.AutoInfoClass): return {key: params._get(key) for key in params._getkeys()} def get_params_str(params: Optional[bt.AutoInfoClass]) -> str: user_params = get_nondefault_params(params) plabs = [f"{x}: {paramval2str(x, y)}" for x, y in user_params.items()] plabs = '/'.join(plabs) return plabs def nanfilt(x: List) -> List: """filters all NaN values from a list""" return [value for value in x if not math.isnan(value)] def convert_by_line_clock(line, line_clk, new_clk): """Takes a clock and generates an appropriate line with a value for each entry in clock. Values are taken from another line if the clock value in question is found in its line_clk. Otherwise NaN is used""" if new_clk is None: return line clk_offset = len(line_clk) - len(line) # sometimes the clock has more data than the data line new_line = [] next_start_idx = 0 for sc in new_clk: for i in range(next_start_idx, len(line_clk)): v = line_clk[i] if sc == v: # exact hit line_idx = i - clk_offset if line_idx < 0: # data line is shorter so we don't have data new_line.append(float('nan')) else: new_line.append(line[line_idx]) next_start_idx = i + 1 break else: new_line.append(float('nan')) return new_line def convert_to_pandas(strat_clk, obj: bt.LineSeries, start: datetime = None, end: datetime = None, name_prefix: str = "", num_back=None) -> pd.DataFrame: lines_clk = obj.lines.datetime.plotrange(start, end) df = pd.DataFrame() # iterate all lines for lineidx in range(obj.size()): line = obj.lines[lineidx] linealias = obj.lines._getlinealias(lineidx) if linealias == 'datetime': continue # get data limited to time range data = line.plotrange(start, end) ndata = convert_by_line_clock(data, lines_clk, strat_clk) df[name_prefix + linealias] = ndata df[name_prefix + 'datetime'] = [bt.num2date(x) for x in strat_clk] return df def get_clock_line(obj: Union[bt.ObserverBase, bt.IndicatorBase, bt.StrategyBase]): """Find the corresponding clock for an object.""" if isinstance(obj, (bt.ObserverBase, bt.IndicatorBase)): return get_clock_line(obj._clock) elif isinstance(obj, (bt.StrategyBase, bt.AbstractDataBase)): clk = obj elif isinstance(obj, bt.LineSeriesStub): # indicators can be created to run on a single line (instead of e.g. a data object) # in that case we grab the owner of that line to find the corresponding clok return get_clock_line(obj._owner) else: raise Exception(f'Unsupported object type passed: {obj.__class__}') return clk.lines.datetime def find_by_plotid(strategy: bt.Strategy, plotid): objs = itertools.chain(strategy.datas, strategy.getindicators(), strategy.getobservers()) founds = [] for obj in objs: if getattr(obj.plotinfo, 'plotid', None) == plotid: founds.append(obj) num_results = len(founds) if num_results == 0: return None elif num_results == 1: return founds[0] else: raise RuntimeError(f'Found multiple objects with plotid "{plotid}"')
C#
UTF-8
1,877
2.671875
3
[]
no_license
using AutoMapper; using ExercisesAPI.Data.Models; using ExercisesAPI.Data.Repositories.Interfaces; using ExercisesAPI.ViewModels; using Microsoft.AspNetCore.Mvc; using System.Collections.Generic; namespace ExercisesAPI.Controllers { [Produces("application/json")] [Route("api/ExerciseTips")] public class ExerciseTipsController : Controller { private readonly IExerciseTipRepository _exerciseTipRepository; private readonly IMapper _mapper; public ExerciseTipsController(IExerciseTipRepository exerciseTipRepository) { _exerciseTipRepository = exerciseTipRepository; } [HttpGet] public IEnumerable<string> Get() { return new string[] { "value1", "value2" }; } [HttpGet("{id}", Name = "Get")] public string Get(int id) { return "value"; } [HttpPost] public void Post([FromBody]ExerciseTipViewModel exerciseTip) { var exerciseTipEntity = new ExerciseTip { ExerciseId = exerciseTip.ExerciseId, Description = exerciseTip.Description }; _exerciseTipRepository.Create(exerciseTipEntity); } [HttpPut("{exerciseTipId}")] public void Put(int exerciseTipId, [FromBody]string description) { var exerciseTipEntity = _exerciseTipRepository.GetById(exerciseTipId); exerciseTipEntity.Description = description; _exerciseTipRepository.Update(exerciseTipEntity); } [HttpDelete("{exerciseTipId}")] public void Delete(int exerciseTipId) { var exerciseTipEntity = _exerciseTipRepository.GetById(exerciseTipId); _exerciseTipRepository.Delete(exerciseTipEntity); } } }
Java
UTF-8
2,434
2.5
2
[]
no_license
/** * */ package fatworm.expr; import java.util.List; import fatworm.db.Schema; import fatworm.db.Transaction; import fatworm.scan.Scan; import fatworm.stmt.Select; import fatworm.value.Bool; import fatworm.value.Null; import fatworm.value.Value; /** * @author mrain * */ public class Quantifier extends Expr { String quantifier; String op; Expr left; Select right; Scan scan; public Quantifier(String quantifier, String op, Expr left, Select right) { this.quantifier = quantifier; this.op = op; this.left = left; this.right = right; this.type = java.sql.Types.BOOLEAN; } @Override public void consumeFields(Schema schema) { left.consumeFields(schema); right.consume(schema); } @Override public void scan(Transaction tx) { left.scan(tx); scan = right.scan(tx); if (scan.getSchema().getColumnCount() != 1) throw new RuntimeException("Oprand must contain one column"); } @Override public Value getValue() { Value s = left.getValue(); if (s instanceof Null) return s; scan.beforeFirst(); while (scan.next()) { Value t = scan.getValue(0); int result = s.compareTo(t); boolean r = false; if (op.compareTo("=") == 0) { r = (result == 0); } else if (op.compareTo("<") == 0) { r = (result == -1); } else if (op.compareTo(">") == 0) { r = (result == 1); } else if (op.compareTo("<=") == 0) { r = (result <= 0); } else if (op.compareTo(">=") == 0) { r = (result >= 0); } else if (op.compareTo("<>") == 0) { r = (result != 0); } if (r && quantifier.compareTo("ANY") == 0) return new Bool(true); if (!r && quantifier.compareTo("ALL") == 0) return new Bool(false); } if (quantifier.compareTo("ANY") == 0 || quantifier.compareTo("IN") == 0) return new Bool(false); else return new Bool(true); //return null; } @Override public void consume(Scan scan) { left.consume(scan); this.scan.consume(scan); // TODO } @Override public void fillDefault(Value v) { } @Override public void aggregate(Scan scan) { } @Override public boolean hasAggFn() { return left.hasAggFn(); } @Override public void stablize() { left.stablize(); } @Override public void extractAggFn(List<Expr> collector) { left.extractAggFn(collector); } @Override public void getFields(List<String> table) { } @Override public void initValue() { // TODO Auto-generated method stub } }
Python
UTF-8
11,283
2.53125
3
[ "MIT" ]
permissive
''' mc3426 a/d converter''' import smbus2 # I2C address of the device DEFAULT_ADDRESS = 0x68 REFERENCE_VOLTAGE = 2.048 # MCP3425/6/7/8 Configuration Command Set CMD_CONVERSION_MASK = 0x80 CMD_CONVERSION_READY = 0x00 # Conversion Complete: 0=data ready, 1=not_finished. CMD_CONVERSION_INITIATE = 0x80 # Initiate a new conversion(One-Shot Conversion mode only) CMD_CHANNEL_MASK = 0x60 CMD_CHANNEL_OFFSET = 5 CMD_CHANNEL_1 = 0x00 # Mux Channel-1 CMD_CHANNEL_2 = 0x20 # Mux Channel-2 CMD_CHANNEL_3 = 0x40 # Mux Channel-3 CMD_CHANNEL_4 = 0x60 # Mux Channel-4 CMD_MODE_MASK = 0x10 CMD_MODE_CONTINUOUS = 0x10 # Continuous Conversion Mode CMD_MODE_ONESHOT = 0x00 # One-Shot Conversion Mode CMD_SPS_MASK = 0x0C CMD_SPS_240 = 0x00 # 240 SPS (12-bit) CMD_SPS_60 = 0x04 # 60 SPS (14-bit) CMD_SPS_15 = 0x08 # 15 SPS (16-bit) CMD_SPS_3_75 = 0x0C # 3.75 SPS (18-bit) CMD_GAIN_MASK = 0x03 CMD_GAIN_1 = 0x00 # PGA Gain = 1V/V CMD_GAIN_2 = 0x01 # PGA Gain = 2V/V CMD_GAIN_4 = 0x02 # PGA Gain = 4V/V CMD_GAIN_8 = 0x03 # PGA Gain = 8V/V class Error(Exception): ERROR_NONE = 0 ERROR_WARN = 1 ERROR_CRITICAL = 2 level = ERROR_NONE name = 'No Error' description = 'all ok' resolution = 'nothing to resolve' pass class ConversionNotReadyError(Error): '''ConversionNotReady exception: devices conversion value is not current. Maybe you are requesting data faster than the device can acquire.''' level = Error.ERROR_WARN name = 'Conversion not Ready' description = 'conversion value is not current' resolution = 'Maybe you are requesting data faster than the device can acquire' pass class I2CBussError(Error): '''I2C Buss exception: Lost communication with A/D. Check cabling, power, etc to A/D device.''' level = Error.ERROR_CRITICAL name = 'I2C Buss Error' description = 'Error communicating with A/D' resolution = 'Check cabling, power, device address, etc to device' pass class Channel(object): '''access a/d device through a channel object''' def __init__(self, device, channel_number): ''' channel mixin. non variety specific routines for channel. device is an initialized mcp342x instance channel_number is the zero referenced mux channel number to access ''' #create out local variables super().__setattr__("_device", None) super().__setattr__("_config", None) super().__setattr__("_channel_number", None) super().__setattr__("_pga_gain", None) super().__setattr__("_sample_rate", None) super().__setattr__("_max_code", None) self._config = 0 self._device = device self.number = channel_number self.pga_gain = 1 self.sample_rate = 240 self.continuous = True return def __setattr__(self, attr, value): if not hasattr(self, attr): # raise if this would create a new attribute raise AttributeError(": {} has no attribute {}".format('Channel', attr)) super().__setattr__(attr, value) @property def config(self): '''peek into current config settings for this channel. for help in debug''' return self._config @property def is_active(self): '''returns true if the mux is set to this channel''' return self._device.active_channel == self._channel_number @property def number(self): ''' returns the zero referenced mux channel this object controls''' return self._channel_number @number.setter def number(self, channel_number): ''' sets the mux channel for this object.''' # verify number is valid for this adc self._device.validate_channel_number(channel_number) # validate_channel raises bad value. must be ok... self._config &= ~CMD_CHANNEL_MASK if channel_number == 0: self._config |= CMD_CHANNEL_1 elif channel_number == 1: self._config |= CMD_CHANNEL_2 elif channel_number == 2: self._config |= CMD_CHANNEL_3 elif channel_number == 3: self._config |= CMD_CHANNEL_4 self._channel_number = channel_number return @property def sample_rate(self): ''' returns channel sample rate in samples per second''' return self._sample_rate @sample_rate.setter def sample_rate(self, rate): ''' sets channel sample rate: 240, 60, or 15 sps''' self._config &= ~CMD_SPS_MASK if rate == 15: self._config |= CMD_SPS_15 self._max_code = 32767 elif rate == 60: self._config |= CMD_SPS_60 self._max_code = 8191 elif rate == 240: self._config |= CMD_SPS_240 self._max_code = 2047 else: raise ValueError('Possible sample_rate settings are 15, 60, or 240 samples per second') self._sample_rate = rate return @property def pga_gain(self): ''' returns pga gain: 1, 2, 4, or 8''' return self._pga_gain @pga_gain.setter def pga_gain(self, gain): ''' sets pga gain for this channel: 1, 2, 4, or 8''' self._config &= ~CMD_GAIN_MASK if gain == 1: self._config |= CMD_GAIN_1 elif gain == 2: self._config |= CMD_GAIN_2 elif gain == 4: self._config |= CMD_GAIN_4 elif gain == 8: self._config |= CMD_GAIN_8 else: raise ValueError('Possible pga gain settings are 1, 2, 4, or 8') self._pga_gain = gain return @property def max_voltage(self): ''' returns the maximum usable input in volts for this channel ''' return REFERENCE_VOLTAGE / self._pga_gain @property def lsb_voltage(self): ''' returns the resolution in volts for this channel ''' return self.max_voltage / self._max_code @property def continuous(self): ''' returns true if current channel conversion mode is continuous, false if one-shot''' status = False if self._config & CMD_MODE_CONTINUOUS: status = True return status @continuous.setter def continuous(self, enabled): ''' sets channel conversion mode to continuous, false for one-shot''' self._config &= ~CMD_MODE_CONTINUOUS if enabled is True: self._config |= CMD_MODE_CONTINUOUS return @property def conversion_time(self): ''' return estimated time in seconds to complete a single conversion assuming its present configuration ''' return 1/self._sample_rate def start_conversion(self): ''' Update device config register with our parameters and start conversion. If channel configured for continuous mode, conversions continue automatically If channel configured for one-shot mode (ie not continuous), trigger a single conversion and allow chip to enter low power mode. ''' self._device.initiate_conversion(self._config) return True def get_conversion_raw(self): ''' returns the latest conversion in semi raw two's complement binary''' not_ready, raw = self._device.get_conversion(self._sample_rate) if not_ready: raise ConversionNotReadyError return raw def get_conversion_volts(self): ''' returns the latest conversion in Volts with pga settings applied''' raw_value = self.get_conversion_raw() volts = raw_value * self.lsb_voltage return volts class Mcp342x(object): ''' hardware access to the chip''' def __init__(self, bus, address=DEFAULT_ADDRESS): '''bus is integer id of i2c bus, address is integer address of chip on that bus''' self._bus = smbus2.SMBus(bus) self._address = address self._config_cache = 0 return @property def active_channel(self): ''' returns the current mux channel setting''' return (self._config_cache & CMD_CHANNEL_MASK) >> CMD_CHANNEL_OFFSET def validate_channel_number(self, channel_number): ''' overide with your adc's channel validation check. Raise ValueError if out of bounds ''' ''' validates the mux channel for this version adc.''' return def initiate_conversion(self, config): ''' send conversion initiate command''' self._config_cache = config try: self._bus.write_byte(self._address, self._config_cache | CMD_CONVERSION_INITIATE) except OSError as e: if e.errno == 121: #Remote I/O error raise I2CBussError else: raise return True def get_conversion(self, rate): ''' get conversion if ready''' raw_adc = 0 try: data = self._bus.read_i2c_block_data(self._address, self._config_cache, 3) except OSError as e: if e.errno == 121: raise I2CBussError else: raise status = data[2] if (status & CMD_CONVERSION_MASK) == CMD_CONVERSION_READY: not_ready = False #print('status={:0b}, data0={:0x}, data1={:0x}'.format(status, data[0], data[1])) if rate == 240: raw_adc = ((data[0] & 0x0F) * 256) + data[1] if raw_adc > 2047: raw_adc -= 4096 elif rate == 60: raw_adc = ((data[0] & 0x3F) * 256) + data[1] if raw_adc > 8191: raw_adc -= 16384 elif rate == 15: raw_adc = (data[0] * 256) + data[1] if raw_adc > 32767: raw_adc -= 65536 else: pass else: not_ready = True return not_ready, raw_adc class Mcp3425(Mcp342x): '''MCP3425 specific channel parameters''' def validate_channel_number(self, channel_number): ''' validates the mux channel for this version adc.''' if channel_number != 0: raise ValueError('Possible MCP3425 channel numbers are 0') return class Mcp3426(Mcp342x): '''MCP3426 specific channel parameters''' def validate_channel_number(self, channel_number): ''' validates the mux channel for this version adc.''' if not 0 < channel_number < 2: raise ValueError('Possible MCP3426 channel numbers are 0 and 1') return class Mcp3427(Mcp342x): '''MCP3427 specific channel parameters (electrically same as the mcp3426, different package)''' def validate_channel_number(self, channel_number): ''' validates the mux channel for this version adc.''' if not 0 <= channel_number < 2: raise ValueError('Possible MCP3427 channel numbers are 0 and 1') return class Mcp3428(Mcp342x): '''MCP3428 specific channel parameters''' def validate_channel_number(self, channel_number): ''' validates the mux channel for this version adc.''' if not 0 <= channel_number < 4: raise ValueError('Possible MCP3428 channel numbers are 0, 1, 2, and 3') return
PHP
UTF-8
709
2.5625
3
[ "MIT" ]
permissive
<?php namespace TSK\UserBundle\Twig\Extension; class FormattingExtension extends \Twig_Extension { private $baseDir; public function __construct($baseDir='') { $this->baseDir = $baseDir; } public function getFunctions() { return array( 'format_money' => new \Twig_Function_Method($this, 'formatMoney') ); } public function formatMoney($amount, $prefix='$') { if ($amount == floor($amount)) { $formatStr = '%s%5.0f'; } else { $formatStr = '%s%5.2f'; } return sprintf($formatStr, $prefix, $amount); } public function getName() { return 'formatting'; } }
C
UTF-8
4,044
2.84375
3
[]
no_license
#include <stdlib.h> #include <stdio.h> #include <stdbool.h> #include <string.h> #include <dirent.h> #include <sys/stat.h> #include <unistd.h> #include <sys/wait.h> #include<string.h> bool vOption = false; bool wOption = false; bool exitFromProgram = false; bool cmp(char *firstString, char *secondString){ int firstLen = strlen(firstString), secondLen = strlen(secondString), i; if(firstLen!=secondLen) return false; for( i =0; i< firstLen; i++){ if(firstString[i] != secondString[i]) return false; } return true; } char *concatenatePath(char *path, char * dir){ int pathlen = strlen(path), i,j,range; int dirlen = strlen(dir); char * res; bool slashExists = (path[pathlen-1] == '/'); if(slashExists) res = malloc(pathlen + dirlen); else res = malloc(pathlen + 1 + dirlen); for (i = 0; i < pathlen; i++) res[i] = path[i]; if (!slashExists) { res[i++] = '/'; range = dirlen + pathlen + 1; } else range = dirlen + pathlen; for (j=0; i<range; i++, j++) res[i] = dir[j]; res[i] = '\0'; return res; } void seeTree(){ DIR *dir = NULL; struct dirent *dirDesc; struct stat statbuf; char *path = getenv("PATH_TO_BROWSE"); char *ext = getenv("EXT_TO_BROWSE"); if(path!=NULL) dir = opendir(path); int amountOfFiles = 0; int childrenAmountOfFiles = 0; int pid,i; int childrenAmount = 0; if (dir == NULL){ dir = opendir("./"); putenv("PATH_TO_BROWSE=."); path = "./"; } if(dir != NULL){ while((dirDesc = readdir(dir))){ int status = lstat(concatenatePath(path,dirDesc->d_name),&statbuf); if(status == -1){ continue; } if (S_ISDIR(statbuf.st_mode)){ if (cmp(dirDesc->d_name,".") || cmp(dirDesc->d_name,"..")) continue; if((pid = fork()) < 0){ printf("fork error\n"); return; } else{ char *pathToBrowse = malloc(PATH_MAX); char *setPath = concatenatePath(path,dirDesc->d_name); strcat(pathToBrowse,"PATH_TO_BROWSE="); strcat(pathToBrowse,setPath); putenv(pathToBrowse); if(pid == 0){ printf("thread %d\n", getpid()); if(vOption){ if(wOption){ if(execl("./fcounterVar","fcounterVar","-v","-w","-exit",(char *) 0)<0) printf("execle error"); } else if(execl("./fcounterVar","fcounterVar","-v","-exit",(char *) 0)<0) printf("execle error"); } else{ if(wOption){ if(execl("./fcounterVar","fcounterVar","-w","-exit",(char *) 0)<0) printf("execle error"); } else if(execl("./fcounterVar","fcounterVar","-exit",(char *) 0)<0) printf("execle error"); } } else{ //mother thread childrenAmount++; } } } else{ if(ext!=NULL && strlen(ext) !=0 ){ char *dot = strrchr(dirDesc->d_name, '.'); if (dot && strcmp(dot, ext)) amountOfFiles++; } else amountOfFiles++; } } int status; if (wOption) sleep(15); for(i = 0; i< childrenAmount; i++){ wait(&status); childrenAmountOfFiles += WEXITSTATUS(status); } if (vOption){ printf("path: %s," "amountOfFiles: %d,\n" "children amount of files: %d\n" "aggregate amount of my files and my children's amount of files %d\n", path, amountOfFiles, childrenAmountOfFiles, amountOfFiles + childrenAmountOfFiles); } closedir(dir); } else printf("could not open dir %s\n", path); if(exitFromProgram) exit(amountOfFiles + childrenAmountOfFiles); } int main(int argc, char *argv[]){ if (argc > 4){ printf ("Wrong usage: %s [-v] [-w]", argv[1]); return -1; } int i; if(argc > 1){ for (i = 1; i < argc; i++){ if(cmp("-v",argv[i])){ vOption = true; } else if(cmp("-w",argv[i])){ wOption = true; } else{ if(cmp("-exit",argv[i])){ exitFromProgram = true; }else{ printf ("Wrong usage: [-v] [-w]"); return -1; } } } } seeTree(); }
C#
UTF-8
3,349
2.515625
3
[]
no_license
using System; namespace Lucid { public delegate void WatchHandler(object source, OSHandle handle, WatchEventKind events); public delegate void TimeoutHandler(object source); public interface IEventLoop { object AddWatch(OSHandle handle, WatchEventKind events, WatchHandler handler); void UpdateWatch(object source, WatchEventKind events); object AddTimeout(uint timeout, TimeoutHandler handler); void RemoveSource(object source); void Run(); bool RunIteration(bool block); void Quit(); bool Pending { get; } } /* public static class MainLoop { [ThreadStatic] static GLib.MainLoop m_loop; //FIXME: This should create a thread-local loop..but how will that play nice w/ gtk? private delegate int GSourceFunc(IntPtr data); private delegate void GDestroyNotify(IntPtr data); [DllImport(Global.GLibDLL)] private static extern IntPtr g_main_loop_new(IntPtr main_context, int is_running); [DllImport(Global.GLibDLL)] private static extern void g_main_loop_run(IntPtr loop); [DllImport(Global.GLibDLL)] private static extern void g_main_loop_quit(IntPtr loop); [DllImport(Global.GLibDLL)] private static extern IntPtr g_main_loop_get_context(IntPtr main_context); [DllImport(Global.GLibDLL)] private static extern IntPtr g_timeout_source_new(uint milliseconds); [DllImport(Global.GLibDLL)] private static extern IntPtr g_idle_source_new(); [DllImport(Global.GLibDLL)] private static extern uint g_source_attach(IntPtr source, IntPtr main_context); [DllImport(Global.GLibDLL)] private static extern void g_source_set_callback(IntPtr source, GSourceFunc source_func, IntPtr data, GDestroyNotify destroy_notify); private static void EnsureMainLoop() { if(m_loop == IntPtr.Zero) { m_loop = g_main_loop_new(IntPtr.Zero, 0); } } public static void Run() { EnsureMainLoop(); g_main_loop_run(m_loop); } public static void Quit() { EnsureMainLoop(); g_main_loop_quit(m_loop); } internal uint AddSource(IntPtr source) { IntPtr context = g_main_loop_get_context(m_loop); return g_source_attach(source, context); } private static int SourceCallback(IntPtr data) { } public uint AddTimeout(uint milli_interval) { IntPtr source = g_timeout_new_source(milli_interval); g_source_set_callback(source, SourceCallback, return AddSource(source); } public uint AddIdle() { IntPtr source = g_idle_new_source(); return AddSource(source); } private static void EnsureLoop() { if(m_loop == null) m_loop = new GLib.MainLoop(); } public static void Run() { EnsureLoop(); m_loop.Run(); } public static void Quit() { EnsureLoop(); m_loop.Quit(); } public static uint AddTimeout(uint interval, GLib.TimeoutHandler handler) { return GLib.Timeout.Add(interval, handler); } public static uint AddIdle(uint interval, GLib.IdleHandler handler) { return GLib.Idle.Add(handler); } public static bool RemoveSource(uint source_id) { return GLib.Source.Remove(source_id); } } */ }
C++
UTF-8
898
3.140625
3
[]
no_license
#include<iostream> #include "maze_search.h" #include "check_if_produces.h" #include<fstream> #include<sstream> #include<string> #include<set> using namespace std; int main(){ /* int height; string eol; vector<vector<bool>> bitmap; cin >> height; getline(cin, eol); for(int i = 0; i < height; i++){ string line; string token; bitmap.push_back(vector<bool>()); getline(cin, line); stringstream ss(line); while(getline(ss, token, ' ')){ cout << token << " "; bitmap[i].push_back(token != "0"); } cout << endl; } vector<Coord> path = maze_search(bitmap, Coord{0, 5}, Coord{7, 23}); cout << path.size() << endl; for(int j = 0; j < path.size(); j ++){ cout << path[j].first << ":" << path[j].second << endl; } */ set<string> D = {"run","car","five","bar","tar","tan","pan","pen","jump","dump","tattoo","bed"}; cout << check_if_produces("bed", "pen", D) << endl; }
Java
UTF-8
2,001
3.25
3
[]
no_license
package academy.kovalevskyi.algorithms.week0.day2; import academy.kovalevskyi.algorithms.week0.day0.Sort; import java.util.Arrays; import java.util.Comparator; public class MergeSort1 implements Sort { @Override public <T> void sort(T[] target, Comparator<T> comparator) { if (comparator == null) { return; } T[] tmp; T[] currentSrc = target; T[] currentDest = Arrays.copyOf(target, target.length); int size = 1; while (size < target.length) { for (int i = 0; i < target.length; i += 2 * size) { merge(currentSrc, i, currentSrc, i + size, currentDest, i, size, comparator); } tmp = currentSrc; currentSrc = currentDest; currentDest = tmp; size = size * 2; } } private <T> void merge(T[] src1, int src1Start, T[] src2, int src2Start, T[] dest, int destStart, int size, Comparator<T> comparator) { int index1 = src1Start; int index2 = src2Start; int src1End = Math.min(src1Start + size, src1.length); int src2End = Math.min(src2Start + size, src2.length); int iterationCount = src1End - src1Start + src2End - src2Start; for (int i = destStart; i < destStart + iterationCount; i++) { if (index1 < src1End && (index2 >= src2End || comparator.compare(src1[index1], src2[index2]) < 0)) { dest[i] = src1[index1]; index1++; } else { dest[i] = src2[index2]; index2++; } } } public <T> T[] createSortedArray(final T[] target, final Comparator<T> comparator) { T[] result = Arrays.copyOf(target, target.length); sort(result, comparator); return result; } @Override public String complexityBest() { return "N*log(N)"; } @Override public String complexityAverage() { return "N*log(N)"; } @Override public String complexityWorst() { return "N*log(N)"; } @Override public String spaceComplexityWorst() { return "N"; } }
Markdown
UTF-8
2,623
2.5625
3
[]
no_license
SBIR Phase I: Aerial Weed Scout with Robust Adaptive Control for Site-Specific Weed Control =========================================================================================== # Abstract The broader impact/commercial potential of this Small Business Innovation Research (SBIR) project is to provide the farmer with the ability, on demand, to use aerial remote sensing via an unmanned aerial vehicle (UAV) to detect and identify weeds in the field. Presently, weeds are increasingly becoming herbicide-resistant. Farmers are required to spend more money and apply greater amounts of chemicals to their field leading to less profit and environmental degradation. In the meantime, UAVs have greatly decreased in cost while the FAA is increasingly loosening regulations to fly. UAVs bring powerful benefits: They can be operated on-demand (as opposed to long lead times for imaging via manned flight); and they also provide much higher resolution as compared with satellite alternatives. However, farmers needs more than images; they need actionable intelligence so decisions can be made. With the high resolution images provided by the UAV, and the advances in analytics, machine learning, and signature matching, these technologies will be used to help farmers efficiently manage their herbicide applications and improve their yield. This SBIR Phase I project proposes to demonstrate the feasibility of an aerial weed scout by developing and testing the onboard image processing algorithm and L1 robust adaptive control for accurate, efficient weed identification and mapping. Multiple technologies must come together in an integrative fashion in order to deliver this as a complete solution. A stable platform capable of following flight paths with extraordinary precision regardless of wind and other disturbances is necessary to avoid the "garbage-in /garbage-out" phenomenon that can occur with inaccurate data collection - this is especially critical for machine vision algorithms as crisp images greatly improve accuracy. Regarding image processing and machine vision, one critical aspect is designing these such that they can be efficiently executed given the resources available on-board, and speedily executed in the time available. The goal is to present the results of these algorithms to the farmer in a user friendly way so that they can quickly confirm or reject (as appropriate) the results and take action. # Award Details |Branch|Award Year|Award Amount|Keywords| | :---: | :---: | :---: | :---: | ||2015|$150,000|| [Back to Home](https://github.com/chrischow/dod_sbir_awards/JT/#195)
C
UTF-8
264
3
3
[]
no_license
#include <stdio.h> #include "heap.h" int main(int argc, char **args) { int h[] = {12, 43, 44, 129,100, 323, 321, 9, 18, 6, 21}; int a = 10, b = 20; int size = sizeof(h) / sizeof(int); sort_heap(h, size); swap_value(&a, &b); printf("hello\n"); return 0; }
Java
UTF-8
696
2.171875
2
[]
no_license
package com.yhtos.test; import com.yhtos.tcs.util.Car; import com.yhtos.tcs.util.JsonUtil; import org.junit.Test; public class JsonTest { @Test public void testj(){ String str = "{\n" + " \"name\":\"车辆名称\",\n" + " \"energ\":\"能量\",\n" + " \"location\":\"位置\",\n" + " \"state\":\"状态\",\n" + " \"position\":{\"x\":\"12\",\"y\":\"56\"}}"; JsonUtil jsonUtil = new JsonUtil(); Car car = (Car)jsonUtil.getObject(str,new Car()); System.out.println(car.toString()); } } //{"name":"车辆名称","energ":"能量","state":"状态","point":"Point-0025"}
Java
UTF-8
404
2.828125
3
[]
no_license
package cn.lingjian_2; import cn.lingjian_1.Jump; /** * @author lingjian * @date 2019-07-23 - 10:04 */ public class Dog extends Animal implements Jump { @Override public void eat() { System.out.println("Dog eat"); } @Override public void sleep() { System.out.println("Dog sleep"); } public void jump(){ System.out.println("Dog jump"); } }
Java
UTF-8
1,482
2.203125
2
[]
no_license
package br.com.codenation.spring.controler; import java.util.List; import java.util.Optional; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import br.com.codenation.spring.model.Vendedor; import br.com.codenation.spring.repository.VendedorRepository; @RestController @RequestMapping("/vendedor") public class VendedorControler { @Autowired private VendedorRepository vendedorRepository; @PostMapping public Vendedor salvar(@RequestBody Vendedor vendedor) { return vendedorRepository.save(vendedor); // usamos save quando usamos POST } @GetMapping("/{id}") public Optional<Vendedor> buscar(@PathVariable Integer id) { return vendedorRepository.findById(id); // Path variable signfica que eu vou receber essa variavel pela url // usa o Optional para evitar nullpointer } @GetMapping public List<Vendedor> pesquisar() { return vendedorRepository.findAll(); } @DeleteMapping("/{id}") public List<Vendedor> deletar(@PathVariable Integer id) { vendedorRepository.deleteById(id); return pesquisar(); } }
Python
UTF-8
114
3.59375
4
[]
no_license
d = {"Name": "John", "Surname": "Smith"} print(d["Smith"]) # produce error since "Smith" is not a key but a value.
Markdown
UTF-8
481
2.640625
3
[]
no_license
# Projects Tracker App As the title suggests the goal is to keep track all my (side) projects. ## Stack This project was built with: - [ReactJS](https://reactjs.org/) - [Bulma CSS](https://bulma.io/) - [React Hook Form](https://react-hook-form.com/) - [JSONPlaceholder](https://jsonplaceholder.typicode.com/) ## How to start First clone this repository: `$ git clone https://github.com/touredev/projects-tracker-app.git` And then run the app: `$ yarn install` `$ yarn start`
SQL
UTF-8
747
3.90625
4
[]
no_license
#1 CREATE TABLE Employee ( code CHAR(6) PRIMARY KEY, name VARCHAR(80), dob date, designation VARCHAR(100), salary FLOAT ); #2 INSERT INTO Employee (code, name, dob, designation, salary) VALUES ('STP','Musafir','1989-09-15','Senior Technical Professional',75000.00), ('DIR','Laxman','1992-05-23','Director',100000.00), ('GM','Lokesh','1985-11-29','General Manager',150000.00), ('CLRK1','Wade','2000-04-14','Clerk', 20000.00), ('CLRK2','Melvin','2000-10-30','Clerk', 20000.00); #3 SELECT SUM(salary) FROM Employee WHERE designation='Clerk'; #4 SELECT MAX(salary) FROM Employee; #5 SELECT AVG(salary) FROM Employee; #6 SELECT MIN(salary) FROM Employee; #7 SELECT COUNT(*) FROM Employee;
Java
UTF-8
316
1.601563
2
[ "Apache-2.0" ]
permissive
package com.github.chengpan.taskd; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class TaskdApplication { public static void main(String[] args) { SpringApplication.run(TaskdApplication.class, args); } }
Python
UTF-8
178
3.453125
3
[]
no_license
people = int(input()) time = list(map(int, input().split())) time.sort() answer = 0 for i in range(people): answer = answer + time[i]*(people-i) print(answer)
Markdown
UTF-8
6,950
2.609375
3
[]
no_license
  当敌人远远出现在视野里时,凡纳看到了那些全副武装的骑士,他们骑着高头大马,身穿亮闪闪的盔甲,缓缓向小镇靠近。平时镇里一名骑士老爷都是高高在上的存在,现在一下出来近百人,这景象让他倒吸了一口冷气。   凡纳感到自己手心又出汗了,如同站在城墙上初次面对邪兽时一样,不过这一次,他面对的是同类长歌要塞的贵族联军。   不对,他吐了口唾沫,将自己的想法甩到一边,同类?那些贵族什么时候把你当过同类?他自嘲地想。他们此行是为了抢夺边陲镇,把北坡矿区重新纳入要塞的掌控。更重要的是,他们竟然打算把王子殿下赶出西境,这是第一军全体成员根本无法接受的事情。   昨天殿下在战前训话时说得很清楚了,提费科.温布顿,也就是殿下的哥哥,使用阴谋诡计谋取了王位,害死了老国王温布顿三世。本来这些王室和贵族之间的事情,凡纳并没有什么看法国王换谁当不是当?可莱恩公爵想借着这个机会,把殿下的领地夺走,这就太过分了。   想想看,殿下没有来这里之前,边陲镇是个什么样子?前任领主似乎是个伯爵,平时很少见到,收购毛皮时都带着亲卫,常常用低价强买猎户手中的好货。邪魔之月到来时第一个逃走,镇民们在要塞贫民窟受苦时,从来没有过问过。   如今,边陲镇在王子殿下的治理下越变越好,这些变化都是大家看得到的。凡纳想,矿工们产出越多,得到的薪酬也越多。殿下把那台黑色机器投入北坡矿洞后,额外的产出依然算在矿工头上。无论是修建城墙,还是矿山碎石,乡亲们的报酬都是按时发放。今年冬天甚至没有饿死冻死一个人。   当然最大的变化还是民兵队不,现在的第一军。有了他们守卫小镇,所有人都不必在冬天蜷缩于要塞冰冷的木棚里,乞求那些大人物赏赐一口食物了。如果王子殿下不在了,公爵还会允许第一军存在吗?   凡纳深呼吸两下,将手汗擦在衣服上。他们当然不会允许,要塞贵族并不在乎镇民的死活,这正是殿下说的那句话:唯有一支由人民组成的军队,才会愿意为人民而战。   他抬起头,望向天空左侧,远处隐隐有个黑点在盘旋,不经意看的话,还以为是只个头硕大的鸟。那是火炮组的射击指挥闪电,她借着道路两旁的树林作掩护,居高临下观察敌人的动向。当她飞回来时,凡纳也注意过,只要她不主动前往空旷地带,底下的人仰头只会看到两侧的树枝,很难发现上空侦查的女巫。   闪电曾在一刻钟之间,飞到阵前较近的位置,亮出过绿色缎带。   那代表着敌人已经进入一千米的预备射击范围。凡纳尚不清楚殿下口中的“一千米”到底有多远,但看到绿色信号,他就下意识地按综合演习时的规定,喊出了装填和调整射角口令。   四个炮组很快完成了这一套动作,炮口射角被调到第三挡,火药和实心炮弹都已填入炮膛。   原以为站在城墙上与邪兽对抗过,就已经算得上经验丰富,但凡纳今天才发现,自己比起铁斧和布莱恩,仍是差得远了。下午列阵集结时,他的心跳就一直很难稳定下来。而这两人率领着各自的小组进入射击位,不仅神色如常,他甚至能从布莱恩的喊话声音里听到一丝跃跃欲试。可直到现在,自己仍没有恢复镇定,就连罗德尼兄弟看起来都比自己表现得要好。这让凡纳心底有些沮丧。   他舔了舔干燥的嘴唇,再次寻找闪电的位置。   就这时候,敌人前进速度忽然放缓了许多。   “他们在干什么?”罗德尼问。   “不清楚,”猫爪瞪大了眼睛张望,“似乎是在调整队形?他们的人看起来有些乱。”   “他们在等后面的部队,”柚皮声音带着些颤音,“骑士老爷不可能单独作战的,他们后面肯定还跟着大批人马。”   “你这都知道?”纳尔逊撇撇嘴。   “我见过的!一位骑士老爷至少会带两名扈从,还有十来个农奴为他们搬运粮草,”他掰着手指算到,“你看看,一个要塞公爵,手下至少有百余名骑士吧?光能骑马作战的,至少就有三百人。加上领地里的伯爵、子爵……就更多了!还有雇佣兵,他们干的都是刀头舔血的货,杀起人来各个不眨眼!我们总共才三百人啊。”   三百人不到,凡纳在心里纠正道。火枪队只有二百七十多人装备了武器,按殿下的说法,这叫产能不足。现在那些没有火枪的人都被派到了火炮组,为四门火炮搬运弹药。不过看到还有比自己表现得更差的,他心里好受了点。   “那就是雇佣兵,他们来了!”柚皮低呼道。   凡纳挑首望去,只见一群穿得五花八门的家伙逐渐占据了战场正面,他们没有骑马,也没有列队,而是三三两两地向场中间聚拢。骑士们则向两旁散开,似乎在给佣兵让出位置。比起半刻钟之前,公爵联军又离自己近了许多。   此时,一名骑士从联军中飞驰而出,向边陲镇快速奔来。凡纳心里一紧,差点把开火口令喊了出来。   这是要干什么?他抬起头,仍没有看到闪电,而对方越来越近,同时摇起了一杆白色的旗子。   “他是公爵派出的使者,”柚皮嘟囔道,“应该是来劝降的。”   “那不关我们的事,”罗德尼在火炮后面蹲下身子,将视线对齐炮管中线,“组长,火炮需要调整下方向,大部分骑士已经离开场中了。”   在之前的实弹练习时,他们被反复教导过,火炮的攻击范围就在炮口前方的这条直线上,因此想要打中目标,必须使目标与炮管中线重叠。五人一齐将炮车稍稍转动,直到重新将联军最前方的骑士部队纳入炮口指向的方向。   单独前来的使者随即被卡特大人押入防线后方,不过凡纳知道,公爵的这一举措只是在浪费时间,王子殿下绝对不会答应投降。   忽然,闪电突然加速向小镇防线飞来,她的手臂挥舞着,手中黄色的缎带迎风飘扬。   黄色信号代表对方已经进入八百米范围,这个距离内,火炮的实心弹已有几率命中目标。只要炮队队长没有示意禁止开炮,各炮组可以自由射击。   组员们也注意到了这个信号,大家纷纷将目光投向凡纳,后者点点头,深吸了口气,“开火!”
Markdown
UTF-8
3,054
2.578125
3
[ "CC-BY-4.0", "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Here we collect some information on how to set up your editor to properly input and output the unicode characters used throughout Iris. ## General: Unicode Fonts Most editors will just use system fonts for rendering unicode characters and do not need furhter configuration once the fonts are installed. Here are some combinations of fonts that are known to give readable results (i.e., each of these sets of fonts covers all the required characters): * Fira Mono, DejaVu Mono, Symbola ## Emacs ### Unicode Input First, install `math-symbol-lists` by doing `M-x package-install math-symbol-lists`. Next, add the following to your `~/.emacs` to configure an input method based on the math symbol list, and with some custom aliases for symbols used a lot in Iris: ``` ;; Input of unicode symbols (require 'math-symbol-lists) ; Automatically use math input method for Coq files (add-hook 'coq-mode-hook (lambda () (set-input-method "math"))) ; Input method for the minibuffer (defun my-inherit-input-method () "Inherit input method from `minibuffer-selected-window'." (let* ((win (minibuffer-selected-window)) (buf (and win (window-buffer win)))) (when buf (activate-input-method (buffer-local-value 'current-input-method buf))))) (add-hook 'minibuffer-setup-hook #'my-inherit-input-method) ; Define the actual input method (quail-define-package "math" "UTF-8" "Ω" t) (quail-define-rules ; add whatever extra rules you want to define here... ("\\mult" ?⋅) ("\\ent" ?⊢) ("\\valid" ?✓) ("\\box" ?□) ("\\later" ?▷) ("\\pred" ?φ) ("\\and" ?∧) ("\\or" ?∨) ("\\comp" ?∘) ("\\ccomp" ?◎) ("\\all" ?∀) ("\\ex" ?∃) ("\\to" ?→) ("\\sep" ?∗) ("\\lc" ?⌜) ("\\rc" ?⌝) ("\\lam" ?λ) ("\\empty" ?∅) ("\\Lam" ?Λ) ("\\Sig" ?Σ) ("\\-" ?∖) ("\\aa" ?●) ("\\af" ?◯) ("\\iff" ?↔) ("\\gname" ?γ) ("\\incl" ?≼) ("\\latert" ?▶) ) (mapc (lambda (x) (if (cddr x) (quail-defrule (cadr x) (car (cddr x))))) (append math-symbol-list-basic math-symbol-list-extended)) ``` ### Font Configuration Even when usable fonts are installed, Emacs tends to pick bad fonts for some symbols like universal and existential quantifiers. The following configuration results in a decent choice for the symbols used in Iris: ``` ;; Fonts (set-face-attribute 'default nil :height 110) ; height is in 1/10pt (dolist (ft (fontset-list)) ; Main font (set-fontset-font ft 'unicode (font-spec :name "Monospace")) ; Fallback font ; Appending to the 'unicode list makes emacs unbearably slow. ;(set-fontset-font ft 'unicode (font-spec :name "DejaVu Sans Mono") nil 'append) (set-fontset-font ft nil (font-spec :name "DejaVu Sans Mono")) ) ; Fallback-fallback font ; If we 'append this to all fontsets, it picks Symbola even for some cases where DejaVu could ; be used. Adding it only to the "t" table makes it Do The Right Thing (TM). (set-fontset-font t nil (font-spec :name "Symbola")) ```
JavaScript
UTF-8
850
3.296875
3
[]
no_license
let yearA=1896; let yearB = 1900; let yearC = 2000; let yearD=2100; let concatenacion=""; //Ejercicio de clase del 3 de octubre let ex1=1996; let ex2=2020; let ex3=2076; let ex4=3000; function bisiesto(year){ return ((year % 4 == 0 && year % 100 != 0) || year % 400 == 0) ? true : false; } console.log('El año '+yearA+' '+bisiesto(yearA)); console.log('El año '+yearB+' '+bisiesto(yearB)); console.log('El año '+yearC+' '+bisiesto(yearC)); console.log('El año '+yearD+' '+bisiesto(yearD)); console.log('--------------------------------------------------') console.log('--------------------------------------------------'); console.log('El año '+ex1+' '+bisiesto(ex1)); console.log('El año '+ex2+' '+bisiesto(ex2)); console.log('El año '+ex3+' '+bisiesto(ex3)); console.log('El año '+ex4+' '+bisiesto(ex4));
SQL
UTF-8
101,506
3.53125
4
[]
no_license
DROP TABLE IF EXISTS Colors; CREATE TABLE IF NOT EXISTS Colors ( id BIGINT NOT NULL AUTO_INCREMENT , updated_by BIGINT DEFAULT NULL , updated_at DATETIME DEFAULT NULL , status VARCHAR(32) DEFAULT 'Active' , color_code VARCHAR(32) DEFAULT NULL , color_type VARCHAR(32) DEFAULT NULL , color_name VARCHAR(255) DEFAULT NULL , recipes INT DEFAULT 0 , remarks TEXT DEFAULT NULL , PRIMARY KEY (id) , UNIQUE (color_code) , KEY type (color_type) , KEY name (color_name) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ; ALTER TABLE Colors ADD COLUMN dyeing_type VARCHAR(32) DEFAULT NULL AFTER color_name; ALTER TABLE Colors DROP COLUMN dyeing_type; ALTER TABLE Colors ADD COLUMN recipes INT DEFAULT 0 AFTER color_name; CREATE TABLE IF NOT EXISTS Work ( color_name VARCHAR(255) DEFAULT NULL , classificacao VARCHAR(32) DEFAULT NULL , dyeing_type VARCHAR(32) DEFAULT NULL , PRIMARY KEY (color_name) ); INSERT INTO Colors (color_name, color_type, dyeing_type) SELECT color_name, classificacao, dyeing_type FROM Work ; TRUNCATE TABLE Colors; INSERT INTO `Colors` (`id`, `updated_by`, `updated_at`, `status`, `color_code`, `color_type`, `color_name`, `dyeing_type`, `remarks`) VALUES (100001, NULL, NULL, 'Active', NULL, 'CM', 'Abacaxi Fio Tinto', 'Lavar', NULL), (100002, NULL, NULL, 'Active', NULL, 'CM', 'Abacaxi Liso', 'Tingir PA', NULL), (100003, NULL, NULL, 'Active', NULL, 'CM', 'Abacaxi Mec', 'Tingir PES/CMO', NULL), (100004, NULL, NULL, 'Active', NULL, 'CM', 'Abacaxi Mod', 'Tingir CMO', NULL), (100005, NULL, NULL, 'Active', NULL, 'CM', 'Abacaxi Nat', 'Tingir CO', NULL), (100006, NULL, NULL, 'Active', NULL, 'CM', 'Abacaxi Polly', 'Tingir PP', NULL), (100007, NULL, NULL, 'Active', NULL, 'CM', 'Abacaxi Tec', 'Tingir PES', NULL), (100008, NULL, NULL, 'Active', NULL, 'CM', 'Abacaxi Visco', 'Tingir CV', NULL), (100009, NULL, NULL, 'Active', NULL, 'CM', 'Abacaxi Viscotec', 'Tingir PV', NULL), (100010, NULL, NULL, 'Active', NULL, 'CE', 'Alcachofra Fio Tinto', 'Lavar', NULL), (100011, NULL, NULL, 'Active', NULL, 'CE', 'Alcachofra Liso', 'Tingir PA', NULL), (100012, NULL, NULL, 'Active', NULL, 'CE', 'Alcachofra Mec', 'Tingir PES/CMO', NULL), (100013, NULL, NULL, 'Active', NULL, 'CE', 'Alcachofra Mod', 'Tingir CMO', NULL), (100014, NULL, NULL, 'Active', NULL, 'CE', 'Alcachofra Nat', 'Tingir CO', NULL), (100015, NULL, NULL, 'Active', NULL, 'CE', 'Alcachofra Polly', 'Tingir PP', NULL), (100016, NULL, NULL, 'Active', NULL, 'CE', 'Alcachofra Tec', 'Tingir PES', NULL), (100017, NULL, NULL, 'Active', NULL, 'CE', 'Alcachofra Visco', 'Tingir CV', NULL), (100018, NULL, NULL, 'Active', NULL, 'CE', 'Alcachofra Viscotec', 'Tingir PV', NULL), (100019, NULL, NULL, 'Active', NULL, 'Unico', 'Alvejado', 'Alvejar', NULL), (100020, NULL, NULL, 'Active', NULL, 'CM', 'Amarelo BR Fio Tinto', 'Lavar', NULL), (100021, NULL, NULL, 'Active', NULL, 'CM', 'Amarelo BR Liso', 'Tingir PA', NULL), (100022, NULL, NULL, 'Active', NULL, 'CM', 'Amarelo BR Mec', 'Tingir PES/CMO', NULL), (100023, NULL, NULL, 'Active', NULL, 'CM', 'Amarelo BR Mod', 'Tingir CMO', NULL), (100024, NULL, NULL, 'Active', NULL, 'CM', 'Amarelo BR Nat', 'Tingir CO', NULL), (100025, NULL, NULL, 'Active', NULL, 'CM', 'Amarelo BR Polly', 'Tingir PP', NULL), (100026, NULL, NULL, 'Active', NULL, 'CM', 'Amarelo BR Tec', 'Tingir PES', NULL), (100027, NULL, NULL, 'Active', NULL, 'CM', 'Amarelo BR Visco', 'Tingir CV', NULL), (100028, NULL, NULL, 'Active', NULL, 'CM', 'Amarelo BR Viscotec', 'Tingir PV', NULL), (100029, NULL, NULL, 'Active', NULL, 'CM', 'Amarelo Citrico Fio Tinto', 'Lavar', NULL), (100030, NULL, NULL, 'Active', NULL, 'CM', 'Amarelo Citrico Liso', 'Tingir PA', NULL), (100031, NULL, NULL, 'Active', NULL, 'CM', 'Amarelo Citrico Mec', 'Tingir PES/CMO', NULL), (100032, NULL, NULL, 'Active', NULL, 'CM', 'Amarelo Citrico Mod', 'Tingir CMO', NULL), (100033, NULL, NULL, 'Active', NULL, 'CM', 'Amarelo Citrico Nat', 'Tingir CO', NULL), (100034, NULL, NULL, 'Active', NULL, 'CM', 'Amarelo Citrico Polly', 'Tingir PP', NULL), (100035, NULL, NULL, 'Active', NULL, 'CM', 'Amarelo Citrico Tec', 'Tingir PES', NULL), (100036, NULL, NULL, 'Active', NULL, 'CM', 'Amarelo Citrico Visco', 'Tingir CV', NULL), (100037, NULL, NULL, 'Active', NULL, 'CM', 'Amarelo Citrico Viscotec', 'Tingir PV', NULL), (100038, NULL, NULL, 'Active', NULL, 'CI', 'Amarelo Fluor Fio Tinto', 'Lavar', NULL), (100039, NULL, NULL, 'Active', NULL, 'CI', 'Amarelo Fluor Liso', 'Tingir PA', NULL), (100040, NULL, NULL, 'Active', NULL, 'CI', 'Amarelo Fluor Mec', 'Tingir PES/CMO', NULL), (100041, NULL, NULL, 'Active', NULL, 'CI', 'Amarelo Fluor Mod', 'Tingir CMO', NULL), (100042, NULL, NULL, 'Active', NULL, 'CI', 'Amarelo Fluor Nat', 'Tingir CO', NULL), (100043, NULL, NULL, 'Active', NULL, 'CI', 'Amarelo Fluor Polly', 'Tingir PP', NULL), (100044, NULL, NULL, 'Active', NULL, 'CI', 'Amarelo Fluor Tec', 'Tingir PES', NULL), (100045, NULL, NULL, 'Active', NULL, 'CI', 'Amarelo Fluor Visco', 'Tingir CV', NULL), (100046, NULL, NULL, 'Active', NULL, 'CI', 'Amarelo Fluor Viscotec', 'Tingir PV', NULL), (100047, NULL, NULL, 'Active', NULL, 'CE', 'Amarelo Neon Fio Tinto', 'Lavar', NULL), (100048, NULL, NULL, 'Active', NULL, 'CE', 'Amarelo Neon Liso', 'Tingir PA', NULL), (100049, NULL, NULL, 'Active', NULL, 'CE', 'Amarelo Neon Mec', 'Tingir PES/CMO', NULL), (100050, NULL, NULL, 'Active', NULL, 'CE', 'Amarelo Neon Mod', 'Tingir CMO', NULL), (100051, NULL, NULL, 'Active', NULL, 'CE', 'Amarelo Neon Nat', 'Tingir CO', NULL), (100052, NULL, NULL, 'Active', NULL, 'CE', 'Amarelo Neon Polly', 'Tingir PP', NULL), (100053, NULL, NULL, 'Active', NULL, 'CE', 'Amarelo Neon Tec', 'Tingir PES', NULL), (100054, NULL, NULL, 'Active', NULL, 'CE', 'Amarelo Neon Visco', 'Tingir CV', NULL), (100055, NULL, NULL, 'Active', NULL, 'CE', 'Amarelo Neon Viscotec', 'Tingir PV', NULL), (100056, NULL, NULL, 'Active', NULL, 'CE', 'Amazon Fio Tinto', 'Lavar', NULL), (100057, NULL, NULL, 'Active', NULL, 'CE', 'Amazon Liso', 'Tingir PA', NULL), (100058, NULL, NULL, 'Active', NULL, 'CE', 'Amazon Mec', 'Tingir PES/CMO', NULL), (100059, NULL, NULL, 'Active', NULL, 'CE', 'Amazon Mod', 'Tingir CMO', NULL), (100060, NULL, NULL, 'Active', NULL, 'CE', 'Amazon Nat', 'Tingir CO', NULL), (100061, NULL, NULL, 'Active', NULL, 'CE', 'Amazon Polly', 'Tingir PP', NULL), (100062, NULL, NULL, 'Active', NULL, 'CE', 'Amazon Tec', 'Tingir PES', NULL), (100063, NULL, NULL, 'Active', NULL, 'CE', 'Amazon Visco', 'Tingir CV', NULL), (100064, NULL, NULL, 'Active', NULL, 'CE', 'Amazon Viscotec', 'Tingir PV', NULL), (100065, NULL, NULL, 'Active', NULL, 'CI', 'Amora Fio Tinto', 'Lavar', NULL), (100066, NULL, NULL, 'Active', NULL, 'CI', 'Amora Liso', 'Tingir PA', NULL), (100067, NULL, NULL, 'Active', NULL, 'CI', 'Amora Mec', 'Tingir PES/CMO', NULL), (100068, NULL, NULL, 'Active', NULL, 'CI', 'Amora Mod', 'Tingir CMO', NULL), (100069, NULL, NULL, 'Active', NULL, 'CI', 'Amora Nat', 'Tingir CO', NULL), (100070, NULL, NULL, 'Active', NULL, 'CI', 'Amora Polly', 'Tingir PP', NULL), (100071, NULL, NULL, 'Active', NULL, 'CI', 'Amora Tec', 'Tingir PES', NULL), (100072, NULL, NULL, 'Active', NULL, 'CI', 'Amora Visco', 'Tingir CV', NULL), (100073, NULL, NULL, 'Active', NULL, 'CI', 'Amora Viscotec', 'Tingir PV', NULL), (100074, NULL, NULL, 'Active', NULL, 'CC', 'Areia Fio Tinto', 'Lavar', NULL), (100075, NULL, NULL, 'Active', NULL, 'CC', 'Areia Liso', 'Tingir PA', NULL), (100076, NULL, NULL, 'Active', NULL, 'CC', 'Areia Mec', 'Tingir PES/CMO', NULL), (100077, NULL, NULL, 'Active', NULL, 'CC', 'Areia Mod', 'Tingir CMO', NULL), (100078, NULL, NULL, 'Active', NULL, 'CC', 'Areia Nat', 'Tingir CO', NULL), (100079, NULL, NULL, 'Active', NULL, 'CC', 'Areia Polly', 'Tingir PP', NULL), (100080, NULL, NULL, 'Active', NULL, 'CC', 'Areia Tec', 'Tingir PES', NULL), (100081, NULL, NULL, 'Active', NULL, 'CC', 'Areia Visco', 'Tingir CV', NULL), (100082, NULL, NULL, 'Active', NULL, 'CC', 'Areia Viscotec', 'Tingir PV', NULL), (100083, NULL, NULL, 'Active', NULL, 'CI', 'Azaleia Fio Tinto', 'Lavar', NULL), (100084, NULL, NULL, 'Active', NULL, 'CI', 'Azaleia Liso', 'Tingir PA', NULL), (100085, NULL, NULL, 'Active', NULL, 'CI', 'Azaleia Mec', 'Tingir PES/CMO', NULL), (100086, NULL, NULL, 'Active', NULL, 'CI', 'Azaleia Mod', 'Tingir CMO', NULL), (100087, NULL, NULL, 'Active', NULL, 'CI', 'Azaleia Nat', 'Tingir CO', NULL), (100088, NULL, NULL, 'Active', NULL, 'CI', 'Azaleia Polly', 'Tingir PP', NULL), (100089, NULL, NULL, 'Active', NULL, 'CI', 'Azaleia Tec', 'Tingir PES', NULL), (100090, NULL, NULL, 'Active', NULL, 'CI', 'Azaleia Visco', 'Tingir CV', NULL), (100091, NULL, NULL, 'Active', NULL, 'CI', 'Azaleia Viscotec', 'Tingir PV', NULL), (100092, NULL, NULL, 'Active', NULL, 'CE', 'Azul Bali Fio Tinto', 'Lavar', NULL), (100093, NULL, NULL, 'Active', NULL, 'CE', 'Azul Bali Liso', 'Tingir PA', NULL), (100094, NULL, NULL, 'Active', NULL, 'CE', 'Azul Bali Mec', 'Tingir PES/CMO', NULL), (100095, NULL, NULL, 'Active', NULL, 'CE', 'Azul Bali Mod', 'Tingir CMO', NULL), (100096, NULL, NULL, 'Active', NULL, 'CE', 'Azul Bali Nat', 'Tingir CO', NULL), (100097, NULL, NULL, 'Active', NULL, 'CE', 'Azul Bali Polly', 'Tingir PP', NULL), (100098, NULL, NULL, 'Active', NULL, 'CE', 'Azul Bali Tec', 'Tingir PES', NULL), (100099, NULL, NULL, 'Active', NULL, 'CE', 'Azul Bali Visco', 'Tingir CV', NULL), (100100, NULL, NULL, 'Active', NULL, 'CE', 'Azul Bali Viscotec', 'Tingir PV', NULL), (100101, NULL, NULL, 'Active', NULL, 'CE', 'Azul Cancun Fio Tinto', 'Lavar', NULL), (100102, NULL, NULL, 'Active', NULL, 'CE', 'Azul Cancun Liso', 'Tingir PA', NULL), (100103, NULL, NULL, 'Active', NULL, 'CE', 'Azul Cancun Mec', 'Tingir PES/CMO', NULL), (100104, NULL, NULL, 'Active', NULL, 'CE', 'Azul Cancun Mod', 'Tingir CMO', NULL), (100105, NULL, NULL, 'Active', NULL, 'CE', 'Azul Cancun Nat', 'Tingir CO', NULL), (100106, NULL, NULL, 'Active', NULL, 'CE', 'Azul Cancun Polly', 'Tingir PP', NULL), (100107, NULL, NULL, 'Active', NULL, 'CE', 'Azul Cancun Tec', 'Tingir PES', NULL), (100108, NULL, NULL, 'Active', NULL, 'CE', 'Azul Cancun Visco', 'Tingir CV', NULL), (100109, NULL, NULL, 'Active', NULL, 'CE', 'Azul Cancun Viscotec', 'Tingir PV', NULL), (100110, NULL, NULL, 'Active', NULL, 'CI', 'Azul Genuino Fio Tinto', 'Lavar', NULL), (100111, NULL, NULL, 'Active', NULL, 'CI', 'Azul Genuino Liso', 'Tingir PA', NULL), (100112, NULL, NULL, 'Active', NULL, 'CI', 'Azul Genuino Mec', 'Tingir PES/CMO', NULL), (100113, NULL, NULL, 'Active', NULL, 'CI', 'Azul Genuino Mod', 'Tingir CMO', NULL), (100114, NULL, NULL, 'Active', NULL, 'CI', 'Azul Genuino Nat', 'Tingir CO', NULL), (100115, NULL, NULL, 'Active', NULL, 'CI', 'Azul Genuino Polly', 'Tingir PP', NULL), (100116, NULL, NULL, 'Active', NULL, 'CI', 'Azul Genuino Tec', 'Tingir PES', NULL), (100117, NULL, NULL, 'Active', NULL, 'CI', 'Azul Genuino Visco', 'Tingir CV', NULL), (100118, NULL, NULL, 'Active', NULL, 'CI', 'Azul Genuino Viscotec', 'Tingir PV', NULL), (100119, NULL, NULL, 'Active', NULL, 'CM', 'Azul Ilhabela Fio Tinto', 'Lavar', NULL), (100120, NULL, NULL, 'Active', NULL, 'CM', 'Azul Ilhabela Liso', 'Tingir PA', NULL), (100121, NULL, NULL, 'Active', NULL, 'CM', 'Azul Ilhabela Mec', 'Tingir PES/CMO', NULL), (100122, NULL, NULL, 'Active', NULL, 'CM', 'Azul Ilhabela Mod', 'Tingir CMO', NULL), (100123, NULL, NULL, 'Active', NULL, 'CM', 'Azul Ilhabela Nat', 'Tingir CO', NULL), (100124, NULL, NULL, 'Active', NULL, 'CM', 'Azul Ilhabela Polly', 'Tingir PP', NULL), (100125, NULL, NULL, 'Active', NULL, 'CM', 'Azul Ilhabela Tec', 'Tingir PES', NULL), (100126, NULL, NULL, 'Active', NULL, 'CM', 'Azul Ilhabela Visco', 'Tingir CV', NULL), (100127, NULL, NULL, 'Active', NULL, 'CM', 'Azul Ilhabela Viscotec', 'Tingir PV', NULL), (100128, NULL, NULL, 'Active', NULL, 'CC', 'Azul Lisocific Fio Tinto', 'Lavar', NULL), (100129, NULL, NULL, 'Active', NULL, 'CC', 'Azul Lisocific Liso', 'Tingir PA', NULL), (100130, NULL, NULL, 'Active', NULL, 'CC', 'Azul Lisocific Mec', 'Tingir PES/CMO', NULL), (100131, NULL, NULL, 'Active', NULL, 'CC', 'Azul Lisocific Mod', 'Tingir CMO', NULL), (100132, NULL, NULL, 'Active', NULL, 'CC', 'Azul Lisocific Nat', 'Tingir CO', NULL), (100133, NULL, NULL, 'Active', NULL, 'CC', 'Azul Lisocific Polly', 'Tingir PP', NULL), (100134, NULL, NULL, 'Active', NULL, 'CC', 'Azul Lisocific Tec', 'Tingir PES', NULL), (100135, NULL, NULL, 'Active', NULL, 'CC', 'Azul Lisocific Visco', 'Tingir CV', NULL), (100136, NULL, NULL, 'Active', NULL, 'CC', 'Azul Lisocific Viscotec', 'Tingir PV', NULL), (100137, NULL, NULL, 'Active', NULL, 'CI', 'Azul Lisotriota Fio Tinto', 'Lavar', NULL), (100138, NULL, NULL, 'Active', NULL, 'CI', 'Azul Lisotriota Liso', 'Tingir PA', NULL), (100139, NULL, NULL, 'Active', NULL, 'CI', 'Azul Lisotriota Mec', 'Tingir PES/CMO', NULL), (100140, NULL, NULL, 'Active', NULL, 'CI', 'Azul Lisotriota Mod', 'Tingir CMO', NULL), (100141, NULL, NULL, 'Active', NULL, 'CI', 'Azul Lisotriota Nat', 'Tingir CO', NULL), (100142, NULL, NULL, 'Active', NULL, 'CI', 'Azul Lisotriota Polly', 'Tingir PP', NULL), (100143, NULL, NULL, 'Active', NULL, 'CI', 'Azul Lisotriota Tec', 'Tingir PES', NULL), (100144, NULL, NULL, 'Active', NULL, 'CI', 'Azul Lisotriota Visco', 'Tingir CV', NULL), (100145, NULL, NULL, 'Active', NULL, 'CI', 'Azul Lisotriota Viscotec', 'Tingir PV', NULL), (100146, NULL, NULL, 'Active', NULL, 'CE', 'Azul Mediterraneo Fio Tinto', 'Lavar', NULL), (100147, NULL, NULL, 'Active', NULL, 'CE', 'Azul Mediterraneo Liso', 'Tingir PA', NULL), (100148, NULL, NULL, 'Active', NULL, 'CE', 'Azul Mediterraneo Mec', 'Tingir PES/CMO', NULL), (100149, NULL, NULL, 'Active', NULL, 'CE', 'Azul Mediterraneo Mod', 'Tingir CMO', NULL), (100150, NULL, NULL, 'Active', NULL, 'CE', 'Azul Mediterraneo Nat', 'Tingir CO', NULL), (100151, NULL, NULL, 'Active', NULL, 'CE', 'Azul Mediterraneo Polly', 'Tingir PP', NULL), (100152, NULL, NULL, 'Active', NULL, 'CE', 'Azul Mediterraneo Tec', 'Tingir PES', NULL), (100153, NULL, NULL, 'Active', NULL, 'CE', 'Azul Mediterraneo Visco', 'Tingir CV', NULL), (100154, NULL, NULL, 'Active', NULL, 'CE', 'Azul Mediterraneo Viscotec', 'Tingir PV', NULL), (100155, NULL, NULL, 'Active', NULL, 'CI', 'Azul Ocean Fio Tinto', 'Lavar', NULL), (100156, NULL, NULL, 'Active', NULL, 'CI', 'Azul Ocean Liso', 'Tingir PA', NULL), (100157, NULL, NULL, 'Active', NULL, 'CI', 'Azul Ocean Mec', 'Tingir PES/CMO', NULL), (100158, NULL, NULL, 'Active', NULL, 'CI', 'Azul Ocean Mod', 'Tingir CMO', NULL), (100159, NULL, NULL, 'Active', NULL, 'CI', 'Azul Ocean Nat', 'Tingir CO', NULL), (100160, NULL, NULL, 'Active', NULL, 'CI', 'Azul Ocean Polly', 'Tingir PP', NULL), (100161, NULL, NULL, 'Active', NULL, 'CI', 'Azul Ocean Tec', 'Tingir PES', NULL), (100162, NULL, NULL, 'Active', NULL, 'CI', 'Azul Ocean Visco', 'Tingir CV', NULL), (100163, NULL, NULL, 'Active', NULL, 'CI', 'Azul Ocean Viscotec', 'Tingir PV', NULL), (100164, NULL, NULL, 'Active', NULL, 'CM', 'Azul Shake Fio Tinto', 'Lavar', NULL), (100165, NULL, NULL, 'Active', NULL, 'CM', 'Azul Shake Liso', 'Tingir PA', NULL), (100166, NULL, NULL, 'Active', NULL, 'CM', 'Azul Shake Mec', 'Tingir PES/CMO', NULL), (100167, NULL, NULL, 'Active', NULL, 'CM', 'Azul Shake Mod', 'Tingir CMO', NULL), (100168, NULL, NULL, 'Active', NULL, 'CM', 'Azul Shake Nat', 'Tingir CO', NULL), (100169, NULL, NULL, 'Active', NULL, 'CM', 'Azul Shake Polly', 'Tingir PP', NULL), (100170, NULL, NULL, 'Active', NULL, 'CM', 'Azul Shake Tec', 'Tingir PES', NULL), (100171, NULL, NULL, 'Active', NULL, 'CM', 'Azul Shake Visco', 'Tingir CV', NULL), (100172, NULL, NULL, 'Active', NULL, 'CM', 'Azul Shake Viscotec', 'Tingir PV', NULL), (100173, NULL, NULL, 'Active', NULL, 'CI', 'Azul Submarino Fio Tinto', 'Lavar', NULL), (100174, NULL, NULL, 'Active', NULL, 'CI', 'Azul Submarino Liso', 'Tingir PA', NULL), (100175, NULL, NULL, 'Active', NULL, 'CI', 'Azul Submarino Mec', 'Tingir PES/CMO', NULL), (100176, NULL, NULL, 'Active', NULL, 'CI', 'Azul Submarino Mod', 'Tingir CMO', NULL), (100177, NULL, NULL, 'Active', NULL, 'CI', 'Azul Submarino Nat', 'Tingir CO', NULL), (100178, NULL, NULL, 'Active', NULL, 'CI', 'Azul Submarino Polly', 'Tingir PP', NULL), (100179, NULL, NULL, 'Active', NULL, 'CI', 'Azul Submarino Tec', 'Tingir PES', NULL), (100180, NULL, NULL, 'Active', NULL, 'CI', 'Azul Submarino Visco', 'Tingir CV', NULL), (100181, NULL, NULL, 'Active', NULL, 'CI', 'Azul Submarino Viscotec', 'Tingir PV', NULL), (100182, NULL, NULL, 'Active', NULL, 'CE', 'Beringela Fio Tinto', 'Lavar', NULL), (100183, NULL, NULL, 'Active', NULL, 'CE', 'Beringela Liso', 'Tingir PA', NULL), (100184, NULL, NULL, 'Active', NULL, 'CE', 'Beringela Mec', 'Tingir PES/CMO', NULL), (100185, NULL, NULL, 'Active', NULL, 'CE', 'Beringela Mod', 'Tingir CMO', NULL), (100186, NULL, NULL, 'Active', NULL, 'CE', 'Beringela Nat', 'Tingir CO', NULL), (100187, NULL, NULL, 'Active', NULL, 'CE', 'Beringela Polly', 'Tingir PP', NULL), (100188, NULL, NULL, 'Active', NULL, 'CE', 'Beringela Tec', 'Tingir PES', NULL), (100189, NULL, NULL, 'Active', NULL, 'CE', 'Beringela Visco', 'Tingir CV', NULL), (100190, NULL, NULL, 'Active', NULL, 'CE', 'Beringela Viscotec', 'Tingir PV', NULL), (100191, NULL, NULL, 'Active', NULL, 'CM', 'Blue Monday Fio Tinto', 'Lavar', NULL), (100192, NULL, NULL, 'Active', NULL, 'CM', 'Blue Monday Liso', 'Tingir PA', NULL), (100193, NULL, NULL, 'Active', NULL, 'CM', 'Blue Monday Mec', 'Tingir PES/CMO', NULL), (100194, NULL, NULL, 'Active', NULL, 'CM', 'Blue Monday Mod', 'Tingir CMO', NULL), (100195, NULL, NULL, 'Active', NULL, 'CM', 'Blue Monday Nat', 'Tingir CO', NULL), (100196, NULL, NULL, 'Active', NULL, 'CM', 'Blue Monday Polly', 'Tingir PP', NULL), (100197, NULL, NULL, 'Active', NULL, 'CM', 'Blue Monday Tec', 'Tingir PES', NULL), (100198, NULL, NULL, 'Active', NULL, 'CM', 'Blue Monday Visco', 'Tingir CV', NULL), (100199, NULL, NULL, 'Active', NULL, 'CM', 'Blue Monday Viscotec', 'Tingir PV', NULL), (100200, NULL, NULL, 'Active', NULL, 'CM', 'Blush Fio Tinto', 'Lavar', NULL), (100201, NULL, NULL, 'Active', NULL, 'CM', 'Blush Liso', 'Tingir PA', NULL), (100202, NULL, NULL, 'Active', NULL, 'CM', 'Blush Mec', 'Tingir PES/CMO', NULL), (100203, NULL, NULL, 'Active', NULL, 'CM', 'Blush Mod', 'Tingir CMO', NULL), (100204, NULL, NULL, 'Active', NULL, 'CM', 'Blush Nat', 'Tingir CO', NULL), (100205, NULL, NULL, 'Active', NULL, 'CM', 'Blush Polly', 'Tingir PP', NULL), (100206, NULL, NULL, 'Active', NULL, 'CM', 'Blush Tec', 'Tingir PES', NULL), (100207, NULL, NULL, 'Active', NULL, 'CM', 'Blush Visco', 'Tingir CV', NULL), (100208, NULL, NULL, 'Active', NULL, 'CM', 'Blush Viscotec', 'Tingir PV', NULL), (100209, NULL, NULL, 'Active', NULL, 'CE', 'Bordo Fio Tinto', 'Lavar', NULL), (100210, NULL, NULL, 'Active', NULL, 'CE', 'Bordo Liso', 'Tingir PA', NULL), (100211, NULL, NULL, 'Active', NULL, 'CE', 'Bordo Mec', 'Tingir PES/CMO', NULL), (100212, NULL, NULL, 'Active', NULL, 'CE', 'Bordo Mod', 'Tingir CMO', NULL), (100213, NULL, NULL, 'Active', NULL, 'CE', 'Bordo Nat', 'Tingir CO', NULL), (100214, NULL, NULL, 'Active', NULL, 'CE', 'Bordo Polly', 'Tingir PP', NULL), (100215, NULL, NULL, 'Active', NULL, 'CE', 'Bordo Tec', 'Tingir PES', NULL), (100216, NULL, NULL, 'Active', NULL, 'CE', 'Bordo Visco', 'Tingir CV', NULL), (100217, NULL, NULL, 'Active', NULL, 'CE', 'Bordo Viscotec', 'Tingir PV', NULL), (100218, NULL, NULL, 'Active', NULL, 'CB', 'Branco Fio Tinto', 'Lavar', NULL), (100219, NULL, NULL, 'Active', NULL, 'CB', 'Branco Liso', 'Tingir PA', NULL), (100220, NULL, NULL, 'Active', NULL, 'CB', 'Branco Mec', 'Tingir PES/CMO', NULL), (100221, NULL, NULL, 'Active', NULL, 'CB', 'Branco Mod', 'Tingir CMO', NULL), (100222, NULL, NULL, 'Active', NULL, 'CB', 'Branco Nat', 'Tingir CO', NULL), (100223, NULL, NULL, 'Active', NULL, 'CB', 'Branco Polly', 'Tingir PP', NULL), (100224, NULL, NULL, 'Active', NULL, 'CB', 'Branco Tec', 'Tingir PES', NULL), (100225, NULL, NULL, 'Active', NULL, 'CB', 'Branco Visco', 'Tingir CV', NULL), (100226, NULL, NULL, 'Active', NULL, 'CB', 'Branco Viscotec', 'Tingir PV', NULL), (100227, NULL, NULL, 'Active', NULL, 'CC', 'Camafel Fio Tinto', 'Lavar', NULL), (100228, NULL, NULL, 'Active', NULL, 'CC', 'Camafel Liso', 'Tingir PA', NULL), (100229, NULL, NULL, 'Active', NULL, 'CC', 'Camafel Mec', 'Tingir PES/CMO', NULL), (100230, NULL, NULL, 'Active', NULL, 'CC', 'Camafel Mod', 'Tingir CMO', NULL), (100231, NULL, NULL, 'Active', NULL, 'CC', 'Camafel Nat', 'Tingir CO', NULL), (100232, NULL, NULL, 'Active', NULL, 'CC', 'Camafel Polly', 'Tingir PP', NULL), (100233, NULL, NULL, 'Active', NULL, 'CC', 'Camafel Tec', 'Tingir PES', NULL), (100234, NULL, NULL, 'Active', NULL, 'CC', 'Camafel Visco', 'Tingir CV', NULL), (100235, NULL, NULL, 'Active', NULL, 'CC', 'Camafel Viscotec', 'Tingir PV', NULL), (100236, NULL, NULL, 'Active', NULL, 'CI', 'Camurca Fio Tinto', 'Lavar', NULL), (100237, NULL, NULL, 'Active', NULL, 'CI', 'Camurca Liso', 'Tingir PA', NULL), (100238, NULL, NULL, 'Active', NULL, 'CI', 'Camurca Mec', 'Tingir PES/CMO', NULL), (100239, NULL, NULL, 'Active', NULL, 'CI', 'Camurca Mod', 'Tingir CMO', NULL), (100240, NULL, NULL, 'Active', NULL, 'CI', 'Camurca Nat', 'Tingir CO', NULL), (100241, NULL, NULL, 'Active', NULL, 'CI', 'Camurca Polly', 'Tingir PP', NULL), (100242, NULL, NULL, 'Active', NULL, 'CI', 'Camurca Tec', 'Tingir PES', NULL), (100243, NULL, NULL, 'Active', NULL, 'CI', 'Camurca Visco', 'Tingir CV', NULL), (100244, NULL, NULL, 'Active', NULL, 'CI', 'Camurca Viscotec', 'Tingir PV', NULL), (100245, NULL, NULL, 'Active', NULL, 'CC', 'Canario Fio Tinto', 'Lavar', NULL), (100246, NULL, NULL, 'Active', NULL, 'CC', 'Canario Liso', 'Tingir PA', NULL), (100247, NULL, NULL, 'Active', NULL, 'CC', 'Canario Mec', 'Tingir PES/CMO', NULL), (100248, NULL, NULL, 'Active', NULL, 'CC', 'Canario Mod', 'Tingir CMO', NULL), (100249, NULL, NULL, 'Active', NULL, 'CC', 'Canario Nat', 'Tingir CO', NULL), (100250, NULL, NULL, 'Active', NULL, 'CC', 'Canario Polly', 'Tingir PP', NULL), (100251, NULL, NULL, 'Active', NULL, 'CC', 'Canario Tec', 'Tingir PES', NULL), (100252, NULL, NULL, 'Active', NULL, 'CC', 'Canario Visco', 'Tingir CV', NULL), (100253, NULL, NULL, 'Active', NULL, 'CC', 'Canario Viscotec', 'Tingir PV', NULL), (100254, NULL, NULL, 'Active', NULL, 'CE', 'Carbono Fio Tinto', 'Lavar', NULL), (100255, NULL, NULL, 'Active', NULL, 'CE', 'Carbono Liso', 'Tingir PA', NULL), (100256, NULL, NULL, 'Active', NULL, 'CE', 'Carbono Mec', 'Tingir PES/CMO', NULL), (100257, NULL, NULL, 'Active', NULL, 'CE', 'Carbono Mod', 'Tingir CMO', NULL), (100258, NULL, NULL, 'Active', NULL, 'CE', 'Carbono Nat', 'Tingir CO', NULL), (100259, NULL, NULL, 'Active', NULL, 'CE', 'Carbono Polly', 'Tingir PP', NULL), (100260, NULL, NULL, 'Active', NULL, 'CE', 'Carbono Tec', 'Tingir PES', NULL), (100261, NULL, NULL, 'Active', NULL, 'CE', 'Carbono Visco', 'Tingir CV', NULL), (100262, NULL, NULL, 'Active', NULL, 'CE', 'Carbono Viscotec', 'Tingir PV', NULL), (100263, NULL, NULL, 'Active', NULL, 'CI', 'Cerejinha Fio Tinto', 'Lavar', NULL), (100264, NULL, NULL, 'Active', NULL, 'CI', 'Cerejinha Liso', 'Tingir PA', NULL), (100265, NULL, NULL, 'Active', NULL, 'CI', 'Cerejinha Mec', 'Tingir PES/CMO', NULL), (100266, NULL, NULL, 'Active', NULL, 'CI', 'Cerejinha Mod', 'Tingir CMO', NULL), (100267, NULL, NULL, 'Active', NULL, 'CI', 'Cerejinha Nat', 'Tingir CO', NULL), (100268, NULL, NULL, 'Active', NULL, 'CI', 'Cerejinha Polly', 'Tingir PP', NULL), (100269, NULL, NULL, 'Active', NULL, 'CI', 'Cerejinha Tec', 'Tingir PES', NULL), (100270, NULL, NULL, 'Active', NULL, 'CI', 'Cerejinha Visco', 'Tingir CV', NULL), (100271, NULL, NULL, 'Active', NULL, 'CI', 'Cerejinha Viscotec', 'Tingir PV', NULL), (100272, NULL, NULL, 'Active', NULL, 'CE', 'Chocolate Fio Tinto', 'Lavar', NULL), (100273, NULL, NULL, 'Active', NULL, 'CE', 'Chocolate Liso', 'Tingir PA', NULL), (100274, NULL, NULL, 'Active', NULL, 'CE', 'Chocolate Mec', 'Tingir PES/CMO', NULL), (100275, NULL, NULL, 'Active', NULL, 'CE', 'Chocolate Mod', 'Tingir CMO', NULL), (100276, NULL, NULL, 'Active', NULL, 'CE', 'Chocolate Nat', 'Tingir CO', NULL), (100277, NULL, NULL, 'Active', NULL, 'CE', 'Chocolate Polly', 'Tingir PP', NULL), (100278, NULL, NULL, 'Active', NULL, 'CE', 'Chocolate Tec', 'Tingir PES', NULL), (100279, NULL, NULL, 'Active', NULL, 'CE', 'Chocolate Visco', 'Tingir CV', NULL), (100280, NULL, NULL, 'Active', NULL, 'CE', 'Chocolate Viscotec', 'Tingir PV', NULL), (100281, NULL, NULL, 'Active', NULL, 'CI', 'Chumbo Sarah Fio Tinto', 'Lavar', NULL), (100282, NULL, NULL, 'Active', NULL, 'CI', 'Chumbo Sarah Liso', 'Tingir PA', NULL), (100283, NULL, NULL, 'Active', NULL, 'CI', 'Chumbo Sarah Mec', 'Tingir PES/CMO', NULL), (100284, NULL, NULL, 'Active', NULL, 'CI', 'Chumbo Sarah Mod', 'Tingir CMO', NULL), (100285, NULL, NULL, 'Active', NULL, 'CI', 'Chumbo Sarah Nat', 'Tingir CO', NULL), (100286, NULL, NULL, 'Active', NULL, 'CI', 'Chumbo Sarah Polly', 'Tingir PP', NULL), (100287, NULL, NULL, 'Active', NULL, 'CI', 'Chumbo Sarah Tec', 'Tingir PES', NULL), (100288, NULL, NULL, 'Active', NULL, 'CI', 'Chumbo Sarah Visco', 'Tingir CV', NULL), (100289, NULL, NULL, 'Active', NULL, 'CI', 'Chumbo Sarah Viscotec', 'Tingir PV', NULL), (100290, NULL, NULL, 'Active', NULL, 'CE', 'Clorofila Fio Tinto', 'Lavar', NULL), (100291, NULL, NULL, 'Active', NULL, 'CE', 'Clorofila Liso', 'Tingir PA', NULL), (100292, NULL, NULL, 'Active', NULL, 'CE', 'Clorofila Mec', 'Tingir PES/CMO', NULL), (100293, NULL, NULL, 'Active', NULL, 'CE', 'Clorofila Mod', 'Tingir CMO', NULL), (100294, NULL, NULL, 'Active', NULL, 'CE', 'Clorofila Nat', 'Tingir CO', NULL), (100295, NULL, NULL, 'Active', NULL, 'CE', 'Clorofila Polly', 'Tingir PP', NULL), (100296, NULL, NULL, 'Active', NULL, 'CE', 'Clorofila Tec', 'Tingir PES', NULL), (100297, NULL, NULL, 'Active', NULL, 'CE', 'Clorofila Visco', 'Tingir CV', NULL), (100298, NULL, NULL, 'Active', NULL, 'CE', 'Clorofila Viscotec', 'Tingir PV', NULL), (100299, NULL, NULL, 'Active', NULL, 'CLASSIFICACAO', 'COR', 'TIPO TINGIMENTO', NULL), (100300, NULL, NULL, 'Active', NULL, 'CI', 'Coral Fluor Fio Tinto', 'Lavar', NULL), (100301, NULL, NULL, 'Active', NULL, 'CI', 'Coral Fluor Liso', 'Tingir PA', NULL), (100302, NULL, NULL, 'Active', NULL, 'CI', 'Coral Fluor Mec', 'Tingir PES/CMO', NULL), (100303, NULL, NULL, 'Active', NULL, 'CI', 'Coral Fluor Mod', 'Tingir CMO', NULL), (100304, NULL, NULL, 'Active', NULL, 'CI', 'Coral Fluor Nat', 'Tingir CO', NULL), (100305, NULL, NULL, 'Active', NULL, 'CI', 'Coral Fluor Polly', 'Tingir PP', NULL), (100306, NULL, NULL, 'Active', NULL, 'CI', 'Coral Fluor Tec', 'Tingir PES', NULL), (100307, NULL, NULL, 'Active', NULL, 'CI', 'Coral Fluor Visco', 'Tingir CV', NULL), (100308, NULL, NULL, 'Active', NULL, 'CI', 'Coral Fluor Viscotec', 'Tingir PV', NULL), (100309, NULL, NULL, 'Active', NULL, 'CB', 'Cru', '', NULL), (100310, NULL, NULL, 'Active', NULL, 'CB', 'Cru de Maquina', '', NULL), (100311, NULL, NULL, 'Active', NULL, 'CI', 'Crush Fio Tinto', 'Lavar', NULL), (100312, NULL, NULL, 'Active', NULL, 'CI', 'Crush Liso', 'Tingir PA', NULL), (100313, NULL, NULL, 'Active', NULL, 'CI', 'Crush Mec', 'Tingir PES/CMO', NULL), (100314, NULL, NULL, 'Active', NULL, 'CI', 'Crush Mod', 'Tingir CMO', NULL), (100315, NULL, NULL, 'Active', NULL, 'CI', 'Crush Nat', 'Tingir CO', NULL), (100316, NULL, NULL, 'Active', NULL, 'CI', 'Crush Polly', 'Tingir PP', NULL), (100317, NULL, NULL, 'Active', NULL, 'CI', 'Crush Tec', 'Tingir PES', NULL), (100318, NULL, NULL, 'Active', NULL, 'CI', 'Crush Visco', 'Tingir CV', NULL), (100319, NULL, NULL, 'Active', NULL, 'CI', 'Crush Viscotec', 'Tingir PV', NULL), (100320, NULL, NULL, 'Active', NULL, 'CM', 'Curry Fio Tinto', 'Lavar', NULL), (100321, NULL, NULL, 'Active', NULL, 'CM', 'Curry Liso', 'Tingir PA', NULL), (100322, NULL, NULL, 'Active', NULL, 'CM', 'Curry Mec', 'Tingir PES/CMO', NULL), (100323, NULL, NULL, 'Active', NULL, 'CM', 'Curry Mod', 'Tingir CMO', NULL), (100324, NULL, NULL, 'Active', NULL, 'CM', 'Curry Nat', 'Tingir CO', NULL), (100325, NULL, NULL, 'Active', NULL, 'CM', 'Curry Polly', 'Tingir PP', NULL), (100326, NULL, NULL, 'Active', NULL, 'CM', 'Curry Tec', 'Tingir PES', NULL), (100327, NULL, NULL, 'Active', NULL, 'CM', 'Curry Visco', 'Tingir CV', NULL), (100328, NULL, NULL, 'Active', NULL, 'CM', 'Curry Viscotec', 'Tingir PV', NULL), (100329, NULL, NULL, 'Active', NULL, 'CM', 'Dalia Fio Tinto', 'Lavar', NULL), (100330, NULL, NULL, 'Active', NULL, 'CM', 'Dalia Liso', 'Tingir PA', NULL), (100331, NULL, NULL, 'Active', NULL, 'CM', 'Dalia Mec', 'Tingir PES/CMO', NULL), (100332, NULL, NULL, 'Active', NULL, 'CM', 'Dalia Mod', 'Tingir CMO', NULL), (100333, NULL, NULL, 'Active', NULL, 'CM', 'Dalia Nat', 'Tingir CO', NULL), (100334, NULL, NULL, 'Active', NULL, 'CM', 'Dalia Polly', 'Tingir PP', NULL), (100335, NULL, NULL, 'Active', NULL, 'CM', 'Dalia Tec', 'Tingir PES', NULL), (100336, NULL, NULL, 'Active', NULL, 'CM', 'Dalia Visco', 'Tingir CV', NULL), (100337, NULL, NULL, 'Active', NULL, 'CM', 'Dalia Viscotec', 'Tingir PV', NULL), (100338, NULL, NULL, 'Active', NULL, 'CC', 'Damasco Fio Tinto', 'Lavar', NULL), (100339, NULL, NULL, 'Active', NULL, 'CC', 'Damasco Liso', 'Tingir PA', NULL), (100340, NULL, NULL, 'Active', NULL, 'CC', 'Damasco Mec', 'Tingir PES/CMO', NULL), (100341, NULL, NULL, 'Active', NULL, 'CC', 'Damasco Mod', 'Tingir CMO', NULL), (100342, NULL, NULL, 'Active', NULL, 'CC', 'Damasco Nat', 'Tingir CO', NULL), (100343, NULL, NULL, 'Active', NULL, 'CC', 'Damasco Polly', 'Tingir PP', NULL), (100344, NULL, NULL, 'Active', NULL, 'CC', 'Damasco Tec', 'Tingir PES', NULL), (100345, NULL, NULL, 'Active', NULL, 'CC', 'Damasco Visco', 'Tingir CV', NULL), (100346, NULL, NULL, 'Active', NULL, 'CC', 'Damasco Viscotec', 'Tingir PV', NULL), (100347, NULL, NULL, 'Active', NULL, 'CI', 'Esmeralda Fio Tinto', 'Lavar', NULL), (100348, NULL, NULL, 'Active', NULL, 'CI', 'Esmeralda Liso', 'Tingir PA', NULL), (100349, NULL, NULL, 'Active', NULL, 'CI', 'Esmeralda Mec', 'Tingir PES/CMO', NULL), (100350, NULL, NULL, 'Active', NULL, 'CI', 'Esmeralda Mod', 'Tingir CMO', NULL), (100351, NULL, NULL, 'Active', NULL, 'CI', 'Esmeralda Nat', 'Tingir CO', NULL), (100352, NULL, NULL, 'Active', NULL, 'CI', 'Esmeralda Polly', 'Tingir PP', NULL), (100353, NULL, NULL, 'Active', NULL, 'CI', 'Esmeralda Tec', 'Tingir PES', NULL), (100354, NULL, NULL, 'Active', NULL, 'CI', 'Esmeralda Visco', 'Tingir CV', NULL), (100355, NULL, NULL, 'Active', NULL, 'CI', 'Esmeralda Viscotec', 'Tingir PV', NULL), (100356, NULL, NULL, 'Active', NULL, 'CE', 'Framboesa Fio Tinto', 'Lavar', NULL), (100357, NULL, NULL, 'Active', NULL, 'CE', 'Framboesa Liso', 'Tingir PA', NULL), (100358, NULL, NULL, 'Active', NULL, 'CE', 'Framboesa Mec', 'Tingir PES/CMO', NULL), (100359, NULL, NULL, 'Active', NULL, 'CE', 'Framboesa Mod', 'Tingir CMO', NULL), (100360, NULL, NULL, 'Active', NULL, 'CE', 'Framboesa Nat', 'Tingir CO', NULL), (100361, NULL, NULL, 'Active', NULL, 'CE', 'Framboesa Polly', 'Tingir PP', NULL), (100362, NULL, NULL, 'Active', NULL, 'CE', 'Framboesa Tec', 'Tingir PES', NULL), (100363, NULL, NULL, 'Active', NULL, 'CE', 'Framboesa Visco', 'Tingir CV', NULL), (100364, NULL, NULL, 'Active', NULL, 'CE', 'Framboesa Viscotec', 'Tingir PV', NULL), (100365, NULL, NULL, 'Active', NULL, 'CE', 'Galapagos Star I Fio Tinto', 'Lavar', NULL), (100366, NULL, NULL, 'Active', NULL, 'CE', 'Galapagos Star I Liso', 'Tingir PA', NULL), (100367, NULL, NULL, 'Active', NULL, 'CE', 'Galapagos Star I Mec', 'Tingir PES/CMO', NULL), (100368, NULL, NULL, 'Active', NULL, 'CE', 'Galapagos Star I Mod', 'Tingir CMO', NULL), (100369, NULL, NULL, 'Active', NULL, 'CE', 'Galapagos Star I Nat', 'Tingir CO', NULL), (100370, NULL, NULL, 'Active', NULL, 'CE', 'Galapagos Star I Polly', 'Tingir PP', NULL), (100371, NULL, NULL, 'Active', NULL, 'CE', 'Galapagos Star I Tec', 'Tingir PES', NULL), (100372, NULL, NULL, 'Active', NULL, 'CE', 'Galapagos Star I Visco', 'Tingir CV', NULL), (100373, NULL, NULL, 'Active', NULL, 'CE', 'Galapagos Star I Viscotec', 'Tingir PV', NULL), (100374, NULL, NULL, 'Active', NULL, 'CC', 'Ganache Fio Tinto', 'Lavar', NULL), (100375, NULL, NULL, 'Active', NULL, 'CC', 'Ganache Liso', 'Tingir PA', NULL), (100376, NULL, NULL, 'Active', NULL, 'CC', 'Ganache Mec', 'Tingir PES/CMO', NULL), (100377, NULL, NULL, 'Active', NULL, 'CC', 'Ganache Mod', 'Tingir CMO', NULL), (100378, NULL, NULL, 'Active', NULL, 'CC', 'Ganache Nat', 'Tingir CO', NULL), (100379, NULL, NULL, 'Active', NULL, 'CC', 'Ganache Polly', 'Tingir PP', NULL), (100380, NULL, NULL, 'Active', NULL, 'CC', 'Ganache Tec', 'Tingir PES', NULL), (100381, NULL, NULL, 'Active', NULL, 'CC', 'Ganache Visco', 'Tingir CV', NULL), (100382, NULL, NULL, 'Active', NULL, 'CC', 'Ganache Viscotec', 'Tingir PV', NULL), (100383, NULL, NULL, 'Active', NULL, 'CM', 'Gelado Fio Tinto', 'Lavar', NULL), (100384, NULL, NULL, 'Active', NULL, 'CM', 'Gelado Liso', 'Tingir PA', NULL), (100385, NULL, NULL, 'Active', NULL, 'CM', 'Gelado Mec', 'Tingir PES/CMO', NULL), (100386, NULL, NULL, 'Active', NULL, 'CM', 'Gelado Mod', 'Tingir CMO', NULL), (100387, NULL, NULL, 'Active', NULL, 'CM', 'Gelado Nat', 'Tingir CO', NULL), (100388, NULL, NULL, 'Active', NULL, 'CM', 'Gelado Polly', 'Tingir PP', NULL), (100389, NULL, NULL, 'Active', NULL, 'CM', 'Gelado Tec', 'Tingir PES', NULL), (100390, NULL, NULL, 'Active', NULL, 'CM', 'Gelado Visco', 'Tingir CV', NULL), (100391, NULL, NULL, 'Active', NULL, 'CM', 'Gelado Viscotec', 'Tingir PV', NULL), (100392, NULL, NULL, 'Active', NULL, 'CC', 'Gelo Fio Tinto', 'Lavar', NULL), (100393, NULL, NULL, 'Active', NULL, 'CC', 'Gelo Liso', 'Tingir PA', NULL), (100394, NULL, NULL, 'Active', NULL, 'CC', 'Gelo Mec', 'Tingir PES/CMO', NULL), (100395, NULL, NULL, 'Active', NULL, 'CC', 'Gelo Mod', 'Tingir CMO', NULL), (100396, NULL, NULL, 'Active', NULL, 'CC', 'Gelo Nat', 'Tingir CO', NULL), (100397, NULL, NULL, 'Active', NULL, 'CC', 'Gelo Polly', 'Tingir PP', NULL), (100398, NULL, NULL, 'Active', NULL, 'CC', 'Gelo Tec', 'Tingir PES', NULL), (100399, NULL, NULL, 'Active', NULL, 'CC', 'Gelo Visco', 'Tingir CV', NULL), (100400, NULL, NULL, 'Active', NULL, 'CC', 'Gelo Viscotec', 'Tingir PV', NULL), (100401, NULL, NULL, 'Active', NULL, 'CM', 'Girassol Fio Tinto', 'Lavar', NULL), (100402, NULL, NULL, 'Active', NULL, 'CM', 'Girassol Liso', 'Tingir PA', NULL), (100403, NULL, NULL, 'Active', NULL, 'CM', 'Girassol Mec', 'Tingir PES/CMO', NULL), (100404, NULL, NULL, 'Active', NULL, 'CM', 'Girassol Mod', 'Tingir CMO', NULL), (100405, NULL, NULL, 'Active', NULL, 'CM', 'Girassol Nat', 'Tingir CO', NULL), (100406, NULL, NULL, 'Active', NULL, 'CM', 'Girassol Polly', 'Tingir PP', NULL), (100407, NULL, NULL, 'Active', NULL, 'CM', 'Girassol Tec', 'Tingir PES', NULL), (100408, NULL, NULL, 'Active', NULL, 'CM', 'Girassol Visco', 'Tingir CV', NULL), (100409, NULL, NULL, 'Active', NULL, 'CM', 'Girassol Viscotec', 'Tingir PV', NULL), (100410, NULL, NULL, 'Active', NULL, 'CM', 'Goiaba Fio Tinto', 'Lavar', NULL), (100411, NULL, NULL, 'Active', NULL, 'CM', 'Goiaba Liso', 'Tingir PA', NULL), (100412, NULL, NULL, 'Active', NULL, 'CM', 'Goiaba Mec', 'Tingir PES/CMO', NULL), (100413, NULL, NULL, 'Active', NULL, 'CM', 'Goiaba Mod', 'Tingir CMO', NULL), (100414, NULL, NULL, 'Active', NULL, 'CM', 'Goiaba Nat', 'Tingir CO', NULL), (100415, NULL, NULL, 'Active', NULL, 'CM', 'Goiaba Polly', 'Tingir PP', NULL), (100416, NULL, NULL, 'Active', NULL, 'CM', 'Goiaba Tec', 'Tingir PES', NULL), (100417, NULL, NULL, 'Active', NULL, 'CM', 'Goiaba Visco', 'Tingir CV', NULL), (100418, NULL, NULL, 'Active', NULL, 'CM', 'Goiaba Viscotec', 'Tingir PV', NULL), (100419, NULL, NULL, 'Active', NULL, 'CE', 'Grapette Fio Tinto', 'Lavar', NULL), (100420, NULL, NULL, 'Active', NULL, 'CE', 'Grapette Liso', 'Tingir PA', NULL), (100421, NULL, NULL, 'Active', NULL, 'CE', 'Grapette Mec', 'Tingir PES/CMO', NULL), (100422, NULL, NULL, 'Active', NULL, 'CE', 'Grapette Mod', 'Tingir CMO', NULL), (100423, NULL, NULL, 'Active', NULL, 'CE', 'Grapette Nat', 'Tingir CO', NULL), (100424, NULL, NULL, 'Active', NULL, 'CE', 'Grapette Polly', 'Tingir PP', NULL), (100425, NULL, NULL, 'Active', NULL, 'CE', 'Grapette Tec', 'Tingir PES', NULL), (100426, NULL, NULL, 'Active', NULL, 'CE', 'Grapette Visco', 'Tingir CV', NULL), (100427, NULL, NULL, 'Active', NULL, 'CE', 'Grapette Viscotec', 'Tingir PV', NULL), (100428, NULL, NULL, 'Active', NULL, 'CI', 'Hibisco Fio Tinto', 'Lavar', NULL), (100429, NULL, NULL, 'Active', NULL, 'CI', 'Hibisco Liso', 'Tingir PA', NULL), (100430, NULL, NULL, 'Active', NULL, 'CI', 'Hibisco Mec', 'Tingir PES/CMO', NULL), (100431, NULL, NULL, 'Active', NULL, 'CI', 'Hibisco Mod', 'Tingir CMO', NULL), (100432, NULL, NULL, 'Active', NULL, 'CI', 'Hibisco Nat', 'Tingir CO', NULL), (100433, NULL, NULL, 'Active', NULL, 'CI', 'Hibisco Polly', 'Tingir PP', NULL), (100434, NULL, NULL, 'Active', NULL, 'CI', 'Hibisco Tec', 'Tingir PES', NULL), (100435, NULL, NULL, 'Active', NULL, 'CI', 'Hibisco Visco', 'Tingir CV', NULL), (100436, NULL, NULL, 'Active', NULL, 'CI', 'Hibisco Viscotec', 'Tingir PV', NULL), (100437, NULL, NULL, 'Active', NULL, 'CM', 'Indigo Fio Tinto', 'Lavar', NULL), (100438, NULL, NULL, 'Active', NULL, 'CM', 'Indigo Liso', 'Tingir PA', NULL), (100439, NULL, NULL, 'Active', NULL, 'CM', 'Indigo Mec', 'Tingir PES/CMO', NULL), (100440, NULL, NULL, 'Active', NULL, 'CM', 'Indigo Mod', 'Tingir CMO', NULL), (100441, NULL, NULL, 'Active', NULL, 'CM', 'Indigo Nat', 'Tingir CO', NULL), (100442, NULL, NULL, 'Active', NULL, 'CM', 'Indigo Polly', 'Tingir PP', NULL), (100443, NULL, NULL, 'Active', NULL, 'CM', 'Indigo Tec', 'Tingir PES', NULL), (100444, NULL, NULL, 'Active', NULL, 'CM', 'Indigo Visco', 'Tingir CV', NULL), (100445, NULL, NULL, 'Active', NULL, 'CM', 'Indigo Viscotec', 'Tingir PV', NULL), (100446, NULL, NULL, 'Active', NULL, 'CM', 'Inhame Fio Tinto', 'Lavar', NULL), (100447, NULL, NULL, 'Active', NULL, 'CM', 'Inhame Liso', 'Tingir PA', NULL), (100448, NULL, NULL, 'Active', NULL, 'CM', 'Inhame Mec', 'Tingir PES/CMO', NULL), (100449, NULL, NULL, 'Active', NULL, 'CM', 'Inhame Mod', 'Tingir CMO', NULL), (100450, NULL, NULL, 'Active', NULL, 'CM', 'Inhame Nat', 'Tingir CO', NULL), (100451, NULL, NULL, 'Active', NULL, 'CM', 'Inhame Polly', 'Tingir PP', NULL), (100452, NULL, NULL, 'Active', NULL, 'CM', 'Inhame Tec', 'Tingir PES', NULL), (100453, NULL, NULL, 'Active', NULL, 'CM', 'Inhame Visco', 'Tingir CV', NULL), (100454, NULL, NULL, 'Active', NULL, 'CM', 'Inhame Viscotec', 'Tingir PV', NULL), (100455, NULL, NULL, 'Active', NULL, 'CC', 'Jasmim Fio Tinto', 'Lavar', NULL), (100456, NULL, NULL, 'Active', NULL, 'CC', 'Jasmim Liso', 'Tingir PA', NULL), (100457, NULL, NULL, 'Active', NULL, 'CC', 'Jasmim Mec', 'Tingir PES/CMO', NULL), (100458, NULL, NULL, 'Active', NULL, 'CC', 'Jasmim Mod', 'Tingir CMO', NULL), (100459, NULL, NULL, 'Active', NULL, 'CC', 'Jasmim Nat', 'Tingir CO', NULL), (100460, NULL, NULL, 'Active', NULL, 'CC', 'Jasmim Polly', 'Tingir PP', NULL), (100461, NULL, NULL, 'Active', NULL, 'CC', 'Jasmim Tec', 'Tingir PES', NULL), (100462, NULL, NULL, 'Active', NULL, 'CC', 'Jasmim Visco', 'Tingir CV', NULL), (100463, NULL, NULL, 'Active', NULL, 'CC', 'Jasmim Viscotec', 'Tingir PV', NULL), (100464, NULL, NULL, 'Active', NULL, 'CM', 'Laranja Queimado Fio Tinto', 'Lavar', NULL), (100465, NULL, NULL, 'Active', NULL, 'CM', 'Laranja Queimado Liso', 'Tingir PA', NULL), (100466, NULL, NULL, 'Active', NULL, 'CM', 'Laranja Queimado Mec', 'Tingir PES/CMO', NULL), (100467, NULL, NULL, 'Active', NULL, 'CM', 'Laranja Queimado Mod', 'Tingir CMO', NULL), (100468, NULL, NULL, 'Active', NULL, 'CM', 'Laranja Queimado Nat', 'Tingir CO', NULL), (100469, NULL, NULL, 'Active', NULL, 'CM', 'Laranja Queimado Polly', 'Tingir PP', NULL), (100470, NULL, NULL, 'Active', NULL, 'CM', 'Laranja Queimado Tec', 'Tingir PES', NULL), (100471, NULL, NULL, 'Active', NULL, 'CM', 'Laranja Queimado Visco', 'Tingir CV', NULL), (100472, NULL, NULL, 'Active', NULL, 'CM', 'Laranja Queimado Viscotec', 'Tingir PV', NULL), (100473, NULL, NULL, 'Active', NULL, 'CI', 'Laranjina Fio Tinto', 'Lavar', NULL), (100474, NULL, NULL, 'Active', NULL, 'CI', 'Laranjina Liso', 'Tingir PA', NULL), (100475, NULL, NULL, 'Active', NULL, 'CI', 'Laranjina Mec', 'Tingir PES/CMO', NULL), (100476, NULL, NULL, 'Active', NULL, 'CI', 'Laranjina Mod', 'Tingir CMO', NULL), (100477, NULL, NULL, 'Active', NULL, 'CI', 'Laranjina Nat', 'Tingir CO', NULL), (100478, NULL, NULL, 'Active', NULL, 'CI', 'Laranjina Polly', 'Tingir PP', NULL), (100479, NULL, NULL, 'Active', NULL, 'CI', 'Laranjina Tec', 'Tingir PES', NULL), (100480, NULL, NULL, 'Active', NULL, 'CI', 'Laranjina Visco', 'Tingir CV', NULL), (100481, NULL, NULL, 'Active', NULL, 'CI', 'Laranjina Viscotec', 'Tingir PV', NULL), (100482, NULL, NULL, 'Active', NULL, 'Unico', 'Lavado', 'Lavar', NULL), (100483, NULL, NULL, 'Active', NULL, 'CC', 'Lavanda Fio Tinto', 'Lavar', NULL), (100484, NULL, NULL, 'Active', NULL, 'CC', 'Lavanda Liso', 'Tingir PA', NULL), (100485, NULL, NULL, 'Active', NULL, 'CC', 'Lavanda Mec', 'Tingir PES/CMO', NULL), (100486, NULL, NULL, 'Active', NULL, 'CC', 'Lavanda Mod', 'Tingir CMO', NULL), (100487, NULL, NULL, 'Active', NULL, 'CC', 'Lavanda Nat', 'Tingir CO', NULL), (100488, NULL, NULL, 'Active', NULL, 'CC', 'Lavanda Polly', 'Tingir PP', NULL), (100489, NULL, NULL, 'Active', NULL, 'CC', 'Lavanda Tec', 'Tingir PES', NULL), (100490, NULL, NULL, 'Active', NULL, 'CC', 'Lavanda Visco', 'Tingir CV', NULL), (100491, NULL, NULL, 'Active', NULL, 'CC', 'Lavanda Viscotec', 'Tingir PV', NULL), (100492, NULL, NULL, 'Active', NULL, 'CI', 'Lemon Fio Tinto', 'Lavar', NULL), (100493, NULL, NULL, 'Active', NULL, 'CI', 'Lemon Liso', 'Tingir PA', NULL), (100494, NULL, NULL, 'Active', NULL, 'CI', 'Lemon Mec', 'Tingir PES/CMO', NULL), (100495, NULL, NULL, 'Active', NULL, 'CI', 'Lemon Mod', 'Tingir CMO', NULL), (100496, NULL, NULL, 'Active', NULL, 'CI', 'Lemon Nat', 'Tingir CO', NULL), (100497, NULL, NULL, 'Active', NULL, 'CI', 'Lemon Polly', 'Tingir PP', NULL), (100498, NULL, NULL, 'Active', NULL, 'CI', 'Lemon Tec', 'Tingir PES', NULL), (100499, NULL, NULL, 'Active', NULL, 'CI', 'Lemon Visco', 'Tingir CV', NULL), (100500, NULL, NULL, 'Active', NULL, 'CI', 'Lemon Viscotec', 'Tingir PV', NULL), (100501, NULL, NULL, 'Active', NULL, 'CM', 'Lilac Fio Tinto', 'Lavar', NULL), (100502, NULL, NULL, 'Active', NULL, 'CM', 'Lilac Liso', 'Tingir PA', NULL), (100503, NULL, NULL, 'Active', NULL, 'CM', 'Lilac Mec', 'Tingir PES/CMO', NULL), (100504, NULL, NULL, 'Active', NULL, 'CM', 'Lilac Mod', 'Tingir CMO', NULL), (100505, NULL, NULL, 'Active', NULL, 'CM', 'Lilac Nat', 'Tingir CO', NULL), (100506, NULL, NULL, 'Active', NULL, 'CM', 'Lilac Polly', 'Tingir PP', NULL), (100507, NULL, NULL, 'Active', NULL, 'CM', 'Lilac Tec', 'Tingir PES', NULL), (100508, NULL, NULL, 'Active', NULL, 'CM', 'Lilac Visco', 'Tingir CV', NULL), (100509, NULL, NULL, 'Active', NULL, 'CM', 'Lilac Viscotec', 'Tingir PV', NULL), (100510, NULL, NULL, 'Active', NULL, 'CM', 'Lilas Fio Tinto', 'Lavar', NULL), (100511, NULL, NULL, 'Active', NULL, 'CM', 'Lilas Liso', 'Tingir PA', NULL), (100512, NULL, NULL, 'Active', NULL, 'CM', 'Lilas Mec', 'Tingir PES/CMO', NULL), (100513, NULL, NULL, 'Active', NULL, 'CM', 'Lilas Mod', 'Tingir CMO', NULL), (100514, NULL, NULL, 'Active', NULL, 'CM', 'Lilas Nat', 'Tingir CO', NULL), (100515, NULL, NULL, 'Active', NULL, 'CM', 'Lilas Polly', 'Tingir PP', NULL), (100516, NULL, NULL, 'Active', NULL, 'CM', 'Lilas Tec', 'Tingir PES', NULL), (100517, NULL, NULL, 'Active', NULL, 'CM', 'Lilas Visco', 'Tingir CV', NULL), (100518, NULL, NULL, 'Active', NULL, 'CM', 'Lilas Viscotec', 'Tingir PV', NULL), (100519, NULL, NULL, 'Active', NULL, 'CI', 'Lima Fio Tinto', 'Lavar', NULL), (100520, NULL, NULL, 'Active', NULL, 'CI', 'Lima Liso', 'Tingir PA', NULL), (100521, NULL, NULL, 'Active', NULL, 'CI', 'Lima Mec', 'Tingir PES/CMO', NULL), (100522, NULL, NULL, 'Active', NULL, 'CI', 'Lima Mod', 'Tingir CMO', NULL), (100523, NULL, NULL, 'Active', NULL, 'CI', 'Lima Nat', 'Tingir CO', NULL), (100524, NULL, NULL, 'Active', NULL, 'CI', 'Lima Polly', 'Tingir PP', NULL), (100525, NULL, NULL, 'Active', NULL, 'CI', 'Lima Tec', 'Tingir PES', NULL), (100526, NULL, NULL, 'Active', NULL, 'CI', 'Lima Visco', 'Tingir CV', NULL), (100527, NULL, NULL, 'Active', NULL, 'CI', 'Lima Viscotec', 'Tingir PV', NULL), (100528, NULL, NULL, 'Active', NULL, 'CC', 'Limone Fio Tinto', 'Lavar', NULL), (100529, NULL, NULL, 'Active', NULL, 'CC', 'Limone Liso', 'Tingir PA', NULL), (100530, NULL, NULL, 'Active', NULL, 'CC', 'Limone Mec', 'Tingir PES/CMO', NULL), (100531, NULL, NULL, 'Active', NULL, 'CC', 'Limone Mod', 'Tingir CMO', NULL), (100532, NULL, NULL, 'Active', NULL, 'CC', 'Limone Nat', 'Tingir CO', NULL), (100533, NULL, NULL, 'Active', NULL, 'CC', 'Limone Polly', 'Tingir PP', NULL), (100534, NULL, NULL, 'Active', NULL, 'CC', 'Limone Tec', 'Tingir PES', NULL), (100535, NULL, NULL, 'Active', NULL, 'CC', 'Limone Visco', 'Tingir CV', NULL), (100536, NULL, NULL, 'Active', NULL, 'CC', 'Limone Viscotec', 'Tingir PV', NULL), (100537, NULL, NULL, 'Active', NULL, 'CM', 'Lips Fio Tinto', 'Lavar', NULL), (100538, NULL, NULL, 'Active', NULL, 'CM', 'Lips Liso', 'Tingir PA', NULL), (100539, NULL, NULL, 'Active', NULL, 'CM', 'Lips Mec', 'Tingir PES/CMO', NULL), (100540, NULL, NULL, 'Active', NULL, 'CM', 'Lips Mod', 'Tingir CMO', NULL), (100541, NULL, NULL, 'Active', NULL, 'CM', 'Lips Nat', 'Tingir CO', NULL), (100542, NULL, NULL, 'Active', NULL, 'CM', 'Lips Polly', 'Tingir PP', NULL), (100543, NULL, NULL, 'Active', NULL, 'CM', 'Lips Tec', 'Tingir PES', NULL), (100544, NULL, NULL, 'Active', NULL, 'CM', 'Lips Visco', 'Tingir CV', NULL), (100545, NULL, NULL, 'Active', NULL, 'CM', 'Lips Viscotec', 'Tingir PV', NULL), (100546, NULL, NULL, 'Active', NULL, 'CM', 'Mare Fio Tinto', 'Lavar', NULL), (100547, NULL, NULL, 'Active', NULL, 'CM', 'Mare Liso', 'Tingir PA', NULL), (100548, NULL, NULL, 'Active', NULL, 'CM', 'Mare Mec', 'Tingir PES/CMO', NULL), (100549, NULL, NULL, 'Active', NULL, 'CM', 'Mare Mod', 'Tingir CMO', NULL), (100550, NULL, NULL, 'Active', NULL, 'CM', 'Mare Nat', 'Tingir CO', NULL), (100551, NULL, NULL, 'Active', NULL, 'CM', 'Mare Polly', 'Tingir PP', NULL), (100552, NULL, NULL, 'Active', NULL, 'CM', 'Mare Tec', 'Tingir PES', NULL), (100553, NULL, NULL, 'Active', NULL, 'CM', 'Mare Visco', 'Tingir CV', NULL), (100554, NULL, NULL, 'Active', NULL, 'CM', 'Mare Viscotec', 'Tingir PV', NULL), (100555, NULL, NULL, 'Active', NULL, 'CC', 'Marfim Fio Tinto', 'Lavar', NULL), (100556, NULL, NULL, 'Active', NULL, 'CC', 'Marfim Liso', 'Tingir PA', NULL), (100557, NULL, NULL, 'Active', NULL, 'CC', 'Marfim Mec', 'Tingir PES/CMO', NULL), (100558, NULL, NULL, 'Active', NULL, 'CC', 'Marfim Mod', 'Tingir CMO', NULL), (100559, NULL, NULL, 'Active', NULL, 'CC', 'Marfim Nat', 'Tingir CO', NULL), (100560, NULL, NULL, 'Active', NULL, 'CC', 'Marfim Polly', 'Tingir PP', NULL), (100561, NULL, NULL, 'Active', NULL, 'CC', 'Marfim Tec', 'Tingir PES', NULL), (100562, NULL, NULL, 'Active', NULL, 'CC', 'Marfim Visco', 'Tingir CV', NULL), (100563, NULL, NULL, 'Active', NULL, 'CC', 'Marfim Viscotec', 'Tingir PV', NULL), (100564, NULL, NULL, 'Active', NULL, 'CI', 'Marinho Fio Tinto', 'Lavar', NULL), (100565, NULL, NULL, 'Active', NULL, 'CI', 'Marinho Liso', 'Tingir PA', NULL), (100566, NULL, NULL, 'Active', NULL, 'CI', 'Marinho Mec', 'Tingir PES/CMO', NULL), (100567, NULL, NULL, 'Active', NULL, 'CI', 'Marinho Mod', 'Tingir CMO', NULL), (100568, NULL, NULL, 'Active', NULL, 'CI', 'Marinho Nat', 'Tingir CO', NULL), (100569, NULL, NULL, 'Active', NULL, 'CI', 'Marinho Polly', 'Tingir PP', NULL), (100570, NULL, NULL, 'Active', NULL, 'CI', 'Marinho Tec', 'Tingir PES', NULL), (100571, NULL, NULL, 'Active', NULL, 'CI', 'Marinho Visco', 'Tingir CV', NULL), (100572, NULL, NULL, 'Active', NULL, 'CI', 'Marinho Viscotec', 'Tingir PV', NULL), (100573, NULL, NULL, 'Active', NULL, 'CE', 'Menthol Fio Tinto', 'Lavar', NULL), (100574, NULL, NULL, 'Active', NULL, 'CE', 'Menthol Liso', 'Tingir PA', NULL), (100575, NULL, NULL, 'Active', NULL, 'CE', 'Menthol Mec', 'Tingir PES/CMO', NULL), (100576, NULL, NULL, 'Active', NULL, 'CE', 'Menthol Mod', 'Tingir CMO', NULL), (100577, NULL, NULL, 'Active', NULL, 'CE', 'Menthol Nat', 'Tingir CO', NULL), (100578, NULL, NULL, 'Active', NULL, 'CE', 'Menthol Polly', 'Tingir PP', NULL), (100579, NULL, NULL, 'Active', NULL, 'CE', 'Menthol Tec', 'Tingir PES', NULL), (100580, NULL, NULL, 'Active', NULL, 'CE', 'Menthol Visco', 'Tingir CV', NULL), (100581, NULL, NULL, 'Active', NULL, 'CE', 'Menthol Viscotec', 'Tingir PV', NULL), (100582, NULL, NULL, 'Active', NULL, 'CM', 'Metal And Fio Tinto', 'Lavar', NULL), (100583, NULL, NULL, 'Active', NULL, 'CM', 'Metal And Liso', 'Tingir PA', NULL), (100584, NULL, NULL, 'Active', NULL, 'CM', 'Metal And Mec', 'Tingir PES/CMO', NULL), (100585, NULL, NULL, 'Active', NULL, 'CM', 'Metal And Mod', 'Tingir CMO', NULL), (100586, NULL, NULL, 'Active', NULL, 'CM', 'Metal And Nat', 'Tingir CO', NULL), (100587, NULL, NULL, 'Active', NULL, 'CM', 'Metal And Polly', 'Tingir PP', NULL), (100588, NULL, NULL, 'Active', NULL, 'CM', 'Metal And Tec', 'Tingir PES', NULL), (100589, NULL, NULL, 'Active', NULL, 'CM', 'Metal And Visco', 'Tingir CV', NULL), (100590, NULL, NULL, 'Active', NULL, 'CM', 'Metal And Viscotec', 'Tingir PV', NULL), (100591, NULL, NULL, 'Active', NULL, 'CM', 'Metal Blue Fio Tinto', 'Lavar', NULL), (100592, NULL, NULL, 'Active', NULL, 'CM', 'Metal Blue Liso', 'Tingir PA', NULL), (100593, NULL, NULL, 'Active', NULL, 'CM', 'Metal Blue Mec', 'Tingir PES/CMO', NULL), (100594, NULL, NULL, 'Active', NULL, 'CM', 'Metal Blue Mod', 'Tingir CMO', NULL), (100595, NULL, NULL, 'Active', NULL, 'CM', 'Metal Blue Nat', 'Tingir CO', NULL), (100596, NULL, NULL, 'Active', NULL, 'CM', 'Metal Blue Polly', 'Tingir PP', NULL), (100597, NULL, NULL, 'Active', NULL, 'CM', 'Metal Blue Tec', 'Tingir PES', NULL), (100598, NULL, NULL, 'Active', NULL, 'CM', 'Metal Blue Visco', 'Tingir CV', NULL), (100599, NULL, NULL, 'Active', NULL, 'CM', 'Metal Blue Viscotec', 'Tingir PV', NULL), (100600, NULL, NULL, 'Active', NULL, 'CI', 'Militar Fio Tinto', 'Lavar', NULL), (100601, NULL, NULL, 'Active', NULL, 'CI', 'Militar Liso', 'Tingir PA', NULL), (100602, NULL, NULL, 'Active', NULL, 'CI', 'Militar Mec', 'Tingir PES/CMO', NULL), (100603, NULL, NULL, 'Active', NULL, 'CI', 'Militar Mod', 'Tingir CMO', NULL), (100604, NULL, NULL, 'Active', NULL, 'CI', 'Militar Nat', 'Tingir CO', NULL), (100605, NULL, NULL, 'Active', NULL, 'CI', 'Militar Polly', 'Tingir PP', NULL), (100606, NULL, NULL, 'Active', NULL, 'CI', 'Militar Tec', 'Tingir PES', NULL), (100607, NULL, NULL, 'Active', NULL, 'CI', 'Militar Visco', 'Tingir CV', NULL), (100608, NULL, NULL, 'Active', NULL, 'CI', 'Militar Viscotec', 'Tingir PV', NULL), (100609, NULL, NULL, 'Active', NULL, 'CM', 'Minerio Fio Tinto', 'Lavar', NULL), (100610, NULL, NULL, 'Active', NULL, 'CM', 'Minerio Liso', 'Tingir PA', NULL), (100611, NULL, NULL, 'Active', NULL, 'CM', 'Minerio Mec', 'Tingir PES/CMO', NULL), (100612, NULL, NULL, 'Active', NULL, 'CM', 'Minerio Mod', 'Tingir CMO', NULL), (100613, NULL, NULL, 'Active', NULL, 'CM', 'Minerio Nat', 'Tingir CO', NULL), (100614, NULL, NULL, 'Active', NULL, 'CM', 'Minerio Polly', 'Tingir PP', NULL), (100615, NULL, NULL, 'Active', NULL, 'CM', 'Minerio Tec', 'Tingir PES', NULL), (100616, NULL, NULL, 'Active', NULL, 'CM', 'Minerio Visco', 'Tingir CV', NULL), (100617, NULL, NULL, 'Active', NULL, 'CM', 'Minerio Viscotec', 'Tingir PV', NULL), (100618, NULL, NULL, 'Active', NULL, 'CM', 'Mostarda Fio Tinto', 'Lavar', NULL), (100619, NULL, NULL, 'Active', NULL, 'CM', 'Mostarda Liso', 'Tingir PA', NULL), (100620, NULL, NULL, 'Active', NULL, 'CM', 'Mostarda Mec', 'Tingir PES/CMO', NULL), (100621, NULL, NULL, 'Active', NULL, 'CM', 'Mostarda Mod', 'Tingir CMO', NULL), (100622, NULL, NULL, 'Active', NULL, 'CM', 'Mostarda Nat', 'Tingir CO', NULL), (100623, NULL, NULL, 'Active', NULL, 'CM', 'Mostarda Polly', 'Tingir PP', NULL), (100624, NULL, NULL, 'Active', NULL, 'CM', 'Mostarda Tec', 'Tingir PES', NULL), (100625, NULL, NULL, 'Active', NULL, 'CM', 'Mostarda Visco', 'Tingir CV', NULL), (100626, NULL, NULL, 'Active', NULL, 'CM', 'Mostarda Viscotec', 'Tingir PV', NULL), (100627, NULL, NULL, 'Active', NULL, 'CI', 'Mousse Fio Tinto', 'Lavar', NULL), (100628, NULL, NULL, 'Active', NULL, 'CI', 'Mousse Liso', 'Tingir PA', NULL); INSERT INTO `Colors` (`id`, `updated_by`, `updated_at`, `status`, `color_code`, `color_type`, `color_name`, `dyeing_type`, `remarks`) VALUES (100629, NULL, NULL, 'Active', NULL, 'CI', 'Mousse Mec', 'Tingir PES/CMO', NULL), (100630, NULL, NULL, 'Active', NULL, 'CI', 'Mousse Mod', 'Tingir CMO', NULL), (100631, NULL, NULL, 'Active', NULL, 'CI', 'Mousse Nat', 'Tingir CO', NULL), (100632, NULL, NULL, 'Active', NULL, 'CI', 'Mousse Polly', 'Tingir PP', NULL), (100633, NULL, NULL, 'Active', NULL, 'CI', 'Mousse Tec', 'Tingir PES', NULL), (100634, NULL, NULL, 'Active', NULL, 'CI', 'Mousse Visco', 'Tingir CV', NULL), (100635, NULL, NULL, 'Active', NULL, 'CI', 'Mousse Viscotec', 'Tingir PV', NULL), (100636, NULL, NULL, 'Active', NULL, 'CI', 'Musgo Fio Tinto', 'Lavar', NULL), (100637, NULL, NULL, 'Active', NULL, 'CI', 'Musgo Liso', 'Tingir PA', NULL), (100638, NULL, NULL, 'Active', NULL, 'CI', 'Musgo Mec', 'Tingir PES/CMO', NULL), (100639, NULL, NULL, 'Active', NULL, 'CI', 'Musgo Mod', 'Tingir CMO', NULL), (100640, NULL, NULL, 'Active', NULL, 'CI', 'Musgo Nat', 'Tingir CO', NULL), (100641, NULL, NULL, 'Active', NULL, 'CI', 'Musgo Polly', 'Tingir PP', NULL), (100642, NULL, NULL, 'Active', NULL, 'CI', 'Musgo Tec', 'Tingir PES', NULL), (100643, NULL, NULL, 'Active', NULL, 'CI', 'Musgo Visco', 'Tingir CV', NULL), (100644, NULL, NULL, 'Active', NULL, 'CI', 'Musgo Viscotec', 'Tingir PV', NULL), (100645, NULL, NULL, 'Active', NULL, 'CM', 'Mushroom Fio Tinto', 'Lavar', NULL), (100646, NULL, NULL, 'Active', NULL, 'CM', 'Mushroom Liso', 'Tingir PA', NULL), (100647, NULL, NULL, 'Active', NULL, 'CM', 'Mushroom Mec', 'Tingir PES/CMO', NULL), (100648, NULL, NULL, 'Active', NULL, 'CM', 'Mushroom Mod', 'Tingir CMO', NULL), (100649, NULL, NULL, 'Active', NULL, 'CM', 'Mushroom Nat', 'Tingir CO', NULL), (100650, NULL, NULL, 'Active', NULL, 'CM', 'Mushroom Polly', 'Tingir PP', NULL), (100651, NULL, NULL, 'Active', NULL, 'CM', 'Mushroom Tec', 'Tingir PES', NULL), (100652, NULL, NULL, 'Active', NULL, 'CM', 'Mushroom Visco', 'Tingir CV', NULL), (100653, NULL, NULL, 'Active', NULL, 'CM', 'Mushroom Viscotec', 'Tingir PV', NULL), (100654, NULL, NULL, 'Active', NULL, 'CC', 'Natural Fio Tinto', 'Lavar', NULL), (100655, NULL, NULL, 'Active', NULL, 'CC', 'Natural Liso', 'Tingir PA', NULL), (100656, NULL, NULL, 'Active', NULL, 'CC', 'Natural Mec', 'Tingir PES/CMO', NULL), (100657, NULL, NULL, 'Active', NULL, 'CC', 'Natural Mod', 'Tingir CMO', NULL), (100658, NULL, NULL, 'Active', NULL, 'CC', 'Natural Nat', 'Tingir CO', NULL), (100659, NULL, NULL, 'Active', NULL, 'CC', 'Natural Polly', 'Tingir PP', NULL), (100660, NULL, NULL, 'Active', NULL, 'CC', 'Natural Tec', 'Tingir PES', NULL), (100661, NULL, NULL, 'Active', NULL, 'CC', 'Natural Visco', 'Tingir CV', NULL), (100662, NULL, NULL, 'Active', NULL, 'CC', 'Natural Viscotec', 'Tingir PV', NULL), (100663, NULL, NULL, 'Active', NULL, 'CM', 'Nectar Fio Tinto', 'Lavar', NULL), (100664, NULL, NULL, 'Active', NULL, 'CM', 'Nectar Liso', 'Tingir PA', NULL), (100665, NULL, NULL, 'Active', NULL, 'CM', 'Nectar Mec', 'Tingir PES/CMO', NULL), (100666, NULL, NULL, 'Active', NULL, 'CM', 'Nectar Mod', 'Tingir CMO', NULL), (100667, NULL, NULL, 'Active', NULL, 'CM', 'Nectar Nat', 'Tingir CO', NULL), (100668, NULL, NULL, 'Active', NULL, 'CM', 'Nectar Polly', 'Tingir PP', NULL), (100669, NULL, NULL, 'Active', NULL, 'CM', 'Nectar Tec', 'Tingir PES', NULL), (100670, NULL, NULL, 'Active', NULL, 'CM', 'Nectar Visco', 'Tingir CV', NULL), (100671, NULL, NULL, 'Active', NULL, 'CM', 'Nectar Viscotec', 'Tingir PV', NULL), (100672, NULL, NULL, 'Active', NULL, 'CE', 'Nivea Fio Tinto', 'Lavar', NULL), (100673, NULL, NULL, 'Active', NULL, 'CE', 'Nivea Liso', 'Tingir PA', NULL), (100674, NULL, NULL, 'Active', NULL, 'CE', 'Nivea Mec', 'Tingir PES/CMO', NULL), (100675, NULL, NULL, 'Active', NULL, 'CE', 'Nivea Mod', 'Tingir CMO', NULL), (100676, NULL, NULL, 'Active', NULL, 'CE', 'Nivea Nat', 'Tingir CO', NULL), (100677, NULL, NULL, 'Active', NULL, 'CE', 'Nivea Polly', 'Tingir PP', NULL), (100678, NULL, NULL, 'Active', NULL, 'CE', 'Nivea Tec', 'Tingir PES', NULL), (100679, NULL, NULL, 'Active', NULL, 'CE', 'Nivea Visco', 'Tingir CV', NULL), (100680, NULL, NULL, 'Active', NULL, 'CE', 'Nivea Viscotec', 'Tingir PV', NULL), (100681, NULL, NULL, 'Active', NULL, 'CI', 'Nozes Fio Tinto', 'Lavar', NULL), (100682, NULL, NULL, 'Active', NULL, 'CI', 'Nozes Liso', 'Tingir PA', NULL), (100683, NULL, NULL, 'Active', NULL, 'CI', 'Nozes Mec', 'Tingir PES/CMO', NULL), (100684, NULL, NULL, 'Active', NULL, 'CI', 'Nozes Mod', 'Tingir CMO', NULL), (100685, NULL, NULL, 'Active', NULL, 'CI', 'Nozes Nat', 'Tingir CO', NULL), (100686, NULL, NULL, 'Active', NULL, 'CI', 'Nozes Polly', 'Tingir PP', NULL), (100687, NULL, NULL, 'Active', NULL, 'CI', 'Nozes Tec', 'Tingir PES', NULL), (100688, NULL, NULL, 'Active', NULL, 'CI', 'Nozes Visco', 'Tingir CV', NULL), (100689, NULL, NULL, 'Active', NULL, 'CI', 'Nozes Viscotec', 'Tingir PV', NULL), (100690, NULL, NULL, 'Active', NULL, 'CI', 'Orange Fluor Fio Tinto', 'Lavar', NULL), (100691, NULL, NULL, 'Active', NULL, 'CI', 'Orange Fluor Liso', 'Tingir PA', NULL), (100692, NULL, NULL, 'Active', NULL, 'CI', 'Orange Fluor Mec', 'Tingir PES/CMO', NULL), (100693, NULL, NULL, 'Active', NULL, 'CI', 'Orange Fluor Mod', 'Tingir CMO', NULL), (100694, NULL, NULL, 'Active', NULL, 'CI', 'Orange Fluor Nat', 'Tingir CO', NULL), (100695, NULL, NULL, 'Active', NULL, 'CI', 'Orange Fluor Polly', 'Tingir PP', NULL), (100696, NULL, NULL, 'Active', NULL, 'CI', 'Orange Fluor Tec', 'Tingir PES', NULL), (100697, NULL, NULL, 'Active', NULL, 'CI', 'Orange Fluor Visco', 'Tingir CV', NULL), (100698, NULL, NULL, 'Active', NULL, 'CI', 'Orange Fluor Viscotec', 'Tingir PV', NULL), (100699, NULL, NULL, 'Active', NULL, 'CM', 'Orange Kin Fio Tinto', 'Lavar', NULL), (100700, NULL, NULL, 'Active', NULL, 'CM', 'Orange Kin Liso', 'Tingir PA', NULL), (100701, NULL, NULL, 'Active', NULL, 'CM', 'Orange Kin Mec', 'Tingir PES/CMO', NULL), (100702, NULL, NULL, 'Active', NULL, 'CM', 'Orange Kin Mod', 'Tingir CMO', NULL), (100703, NULL, NULL, 'Active', NULL, 'CM', 'Orange Kin Nat', 'Tingir CO', NULL), (100704, NULL, NULL, 'Active', NULL, 'CM', 'Orange Kin Polly', 'Tingir PP', NULL), (100705, NULL, NULL, 'Active', NULL, 'CM', 'Orange Kin Tec', 'Tingir PES', NULL), (100706, NULL, NULL, 'Active', NULL, 'CM', 'Orange Kin Visco', 'Tingir CV', NULL), (100707, NULL, NULL, 'Active', NULL, 'CM', 'Orange Kin Viscotec', 'Tingir PV', NULL), (100708, NULL, NULL, 'Active', NULL, 'CI', 'Papaya Fio Tinto', 'Lavar', NULL), (100709, NULL, NULL, 'Active', NULL, 'CI', 'Papaya Liso', 'Tingir PA', NULL), (100710, NULL, NULL, 'Active', NULL, 'CI', 'Papaya Mec', 'Tingir PES/CMO', NULL), (100711, NULL, NULL, 'Active', NULL, 'CI', 'Papaya Mod', 'Tingir CMO', NULL), (100712, NULL, NULL, 'Active', NULL, 'CI', 'Papaya Nat', 'Tingir CO', NULL), (100713, NULL, NULL, 'Active', NULL, 'CI', 'Papaya Polly', 'Tingir PP', NULL), (100714, NULL, NULL, 'Active', NULL, 'CI', 'Papaya Tec', 'Tingir PES', NULL), (100715, NULL, NULL, 'Active', NULL, 'CI', 'Papaya Visco', 'Tingir CV', NULL), (100716, NULL, NULL, 'Active', NULL, 'CI', 'Papaya Viscotec', 'Tingir PV', NULL), (100717, NULL, NULL, 'Active', NULL, 'CI', 'Petroleo Fio Tinto', 'Lavar', NULL), (100718, NULL, NULL, 'Active', NULL, 'CI', 'Petroleo Liso', 'Tingir PA', NULL), (100719, NULL, NULL, 'Active', NULL, 'CI', 'Petroleo Mec', 'Tingir PES/CMO', NULL), (100720, NULL, NULL, 'Active', NULL, 'CI', 'Petroleo Mod', 'Tingir CMO', NULL), (100721, NULL, NULL, 'Active', NULL, 'CI', 'Petroleo Nat', 'Tingir CO', NULL), (100722, NULL, NULL, 'Active', NULL, 'CI', 'Petroleo Polly', 'Tingir PP', NULL), (100723, NULL, NULL, 'Active', NULL, 'CI', 'Petroleo Tec', 'Tingir PES', NULL), (100724, NULL, NULL, 'Active', NULL, 'CI', 'Petroleo Visco', 'Tingir CV', NULL), (100725, NULL, NULL, 'Active', NULL, 'CI', 'Petroleo Viscotec', 'Tingir PV', NULL), (100726, NULL, NULL, 'Active', NULL, 'CI', 'Pink Berry Fluor Fio Tinto', 'Lavar', NULL), (100727, NULL, NULL, 'Active', NULL, 'CI', 'Pink Berry Fluor Liso', 'Tingir PA', NULL), (100728, NULL, NULL, 'Active', NULL, 'CI', 'Pink Berry Fluor Mec', 'Tingir PES/CMO', NULL), (100729, NULL, NULL, 'Active', NULL, 'CI', 'Pink Berry Fluor Mod', 'Tingir CMO', NULL), (100730, NULL, NULL, 'Active', NULL, 'CI', 'Pink Berry Fluor Nat', 'Tingir CO', NULL), (100731, NULL, NULL, 'Active', NULL, 'CI', 'Pink Berry Fluor Polly', 'Tingir PP', NULL), (100732, NULL, NULL, 'Active', NULL, 'CI', 'Pink Berry Fluor Tec', 'Tingir PES', NULL), (100733, NULL, NULL, 'Active', NULL, 'CI', 'Pink Berry Fluor Visco', 'Tingir CV', NULL), (100734, NULL, NULL, 'Active', NULL, 'CI', 'Pink Berry Fluor Viscotec', 'Tingir PV', NULL), (100735, NULL, NULL, 'Active', NULL, 'CE', 'Pink Divino Fio Tinto', 'Lavar', NULL), (100736, NULL, NULL, 'Active', NULL, 'CE', 'Pink Divino Liso', 'Tingir PA', NULL), (100737, NULL, NULL, 'Active', NULL, 'CE', 'Pink Divino Mec', 'Tingir PES/CMO', NULL), (100738, NULL, NULL, 'Active', NULL, 'CE', 'Pink Divino Mod', 'Tingir CMO', NULL), (100739, NULL, NULL, 'Active', NULL, 'CE', 'Pink Divino Nat', 'Tingir CO', NULL), (100740, NULL, NULL, 'Active', NULL, 'CE', 'Pink Divino Polly', 'Tingir PP', NULL), (100741, NULL, NULL, 'Active', NULL, 'CE', 'Pink Divino Tec', 'Tingir PES', NULL), (100742, NULL, NULL, 'Active', NULL, 'CE', 'Pink Divino Visco', 'Tingir CV', NULL), (100743, NULL, NULL, 'Active', NULL, 'CE', 'Pink Divino Viscotec', 'Tingir PV', NULL), (100744, NULL, NULL, 'Active', NULL, 'CI', 'Pink Fluor Fio Tinto', 'Lavar', NULL), (100745, NULL, NULL, 'Active', NULL, 'CI', 'Pink Fluor Liso', 'Tingir PA', NULL), (100746, NULL, NULL, 'Active', NULL, 'CI', 'Pink Fluor Mec', 'Tingir PES/CMO', NULL), (100747, NULL, NULL, 'Active', NULL, 'CI', 'Pink Fluor Mod', 'Tingir CMO', NULL), (100748, NULL, NULL, 'Active', NULL, 'CI', 'Pink Fluor Nat', 'Tingir CO', NULL), (100749, NULL, NULL, 'Active', NULL, 'CI', 'Pink Fluor Polly', 'Tingir PP', NULL), (100750, NULL, NULL, 'Active', NULL, 'CI', 'Pink Fluor Tec', 'Tingir PES', NULL), (100751, NULL, NULL, 'Active', NULL, 'CI', 'Pink Fluor Visco', 'Tingir CV', NULL), (100752, NULL, NULL, 'Active', NULL, 'CI', 'Pink Fluor Viscotec', 'Tingir PV', NULL), (100753, NULL, NULL, 'Active', NULL, 'CI', 'Pink Natt Fio Tinto', 'Lavar', NULL), (100754, NULL, NULL, 'Active', NULL, 'CI', 'Pink Natt Liso', 'Tingir PA', NULL), (100755, NULL, NULL, 'Active', NULL, 'CI', 'Pink Natt Mec', 'Tingir PES/CMO', NULL), (100756, NULL, NULL, 'Active', NULL, 'CI', 'Pink Natt Mod', 'Tingir CMO', NULL), (100757, NULL, NULL, 'Active', NULL, 'CI', 'Pink Natt Nat', 'Tingir CO', NULL), (100758, NULL, NULL, 'Active', NULL, 'CI', 'Pink Natt Polly', 'Tingir PP', NULL), (100759, NULL, NULL, 'Active', NULL, 'CI', 'Pink Natt Tec', 'Tingir PES', NULL), (100760, NULL, NULL, 'Active', NULL, 'CI', 'Pink Natt Visco', 'Tingir CV', NULL), (100761, NULL, NULL, 'Active', NULL, 'CI', 'Pink Natt Viscotec', 'Tingir PV', NULL), (100762, NULL, NULL, 'Active', NULL, 'CI', 'Pink Neon Fio Tinto', 'Lavar', NULL), (100763, NULL, NULL, 'Active', NULL, 'CI', 'Pink Neon Liso', 'Tingir PA', NULL), (100764, NULL, NULL, 'Active', NULL, 'CI', 'Pink Neon Mec', 'Tingir PES/CMO', NULL), (100765, NULL, NULL, 'Active', NULL, 'CI', 'Pink Neon Mod', 'Tingir CMO', NULL), (100766, NULL, NULL, 'Active', NULL, 'CI', 'Pink Neon Nat', 'Tingir CO', NULL), (100767, NULL, NULL, 'Active', NULL, 'CI', 'Pink Neon Polly', 'Tingir PP', NULL), (100768, NULL, NULL, 'Active', NULL, 'CI', 'Pink Neon Tec', 'Tingir PES', NULL), (100769, NULL, NULL, 'Active', NULL, 'CI', 'Pink Neon Visco', 'Tingir CV', NULL), (100770, NULL, NULL, 'Active', NULL, 'CI', 'Pink Neon Viscotec', 'Tingir PV', NULL), (100771, NULL, NULL, 'Active', NULL, 'CE', 'Pomodoro Fio Tinto', 'Lavar', NULL), (100772, NULL, NULL, 'Active', NULL, 'CE', 'Pomodoro Liso', 'Tingir PA', NULL), (100773, NULL, NULL, 'Active', NULL, 'CE', 'Pomodoro Mec', 'Tingir PES/CMO', NULL), (100774, NULL, NULL, 'Active', NULL, 'CE', 'Pomodoro Mod', 'Tingir CMO', NULL), (100775, NULL, NULL, 'Active', NULL, 'CE', 'Pomodoro Nat', 'Tingir CO', NULL), (100776, NULL, NULL, 'Active', NULL, 'CE', 'Pomodoro Polly', 'Tingir PP', NULL), (100777, NULL, NULL, 'Active', NULL, 'CE', 'Pomodoro Tec', 'Tingir PES', NULL), (100778, NULL, NULL, 'Active', NULL, 'CE', 'Pomodoro Visco', 'Tingir CV', NULL), (100779, NULL, NULL, 'Active', NULL, 'CE', 'Pomodoro Viscotec', 'Tingir PV', NULL), (100780, NULL, NULL, 'Active', NULL, 'CM', 'Preto Fio Tinto', 'Lavar', NULL), (100781, NULL, NULL, 'Active', NULL, 'CM', 'Preto Liso', 'Tingir PA', NULL), (100782, NULL, NULL, 'Active', NULL, 'CM', 'Preto Mec', 'Tingir PES/CMO', NULL), (100783, NULL, NULL, 'Active', NULL, 'CM', 'Preto Mod', 'Tingir CMO', NULL), (100784, NULL, NULL, 'Active', NULL, 'CM', 'Preto Nat', 'Tingir CO', NULL), (100785, NULL, NULL, 'Active', NULL, 'CM', 'Preto Polly', 'Tingir PP', NULL), (100786, NULL, NULL, 'Active', NULL, 'CM', 'Preto Tec', 'Tingir PES', NULL), (100787, NULL, NULL, 'Active', NULL, 'CM', 'Preto Visco', 'Tingir CV', NULL), (100788, NULL, NULL, 'Active', NULL, 'CM', 'Preto Viscotec', 'Tingir PV', NULL), (100789, NULL, NULL, 'Active', NULL, 'CB', 'PT', 'Lavar', NULL), (100790, NULL, NULL, 'Active', NULL, 'CE', 'Red Fly Fio Tinto', 'Lavar', NULL), (100791, NULL, NULL, 'Active', NULL, 'CE', 'Red Fly Liso', 'Tingir PA', NULL), (100792, NULL, NULL, 'Active', NULL, 'CE', 'Red Fly Mec', 'Tingir PES/CMO', NULL), (100793, NULL, NULL, 'Active', NULL, 'CE', 'Red Fly Mod', 'Tingir CMO', NULL), (100794, NULL, NULL, 'Active', NULL, 'CE', 'Red Fly Nat', 'Tingir CO', NULL), (100795, NULL, NULL, 'Active', NULL, 'CE', 'Red Fly Polly', 'Tingir PP', NULL), (100796, NULL, NULL, 'Active', NULL, 'CE', 'Red Fly Tec', 'Tingir PES', NULL), (100797, NULL, NULL, 'Active', NULL, 'CE', 'Red Fly Visco', 'Tingir CV', NULL), (100798, NULL, NULL, 'Active', NULL, 'CE', 'Red Fly Viscotec', 'Tingir PV', NULL), (100799, NULL, NULL, 'Active', NULL, 'CC', 'Rice Fio Tinto', 'Lavar', NULL), (100800, NULL, NULL, 'Active', NULL, 'CC', 'Rice Liso', 'Tingir PA', NULL), (100801, NULL, NULL, 'Active', NULL, 'CC', 'Rice Mec', 'Tingir PES/CMO', NULL), (100802, NULL, NULL, 'Active', NULL, 'CC', 'Rice Mod', 'Tingir CMO', NULL), (100803, NULL, NULL, 'Active', NULL, 'CC', 'Rice Nat', 'Tingir CO', NULL), (100804, NULL, NULL, 'Active', NULL, 'CC', 'Rice Polly', 'Tingir PP', NULL), (100805, NULL, NULL, 'Active', NULL, 'CC', 'Rice Tec', 'Tingir PES', NULL), (100806, NULL, NULL, 'Active', NULL, 'CC', 'Rice Visco', 'Tingir CV', NULL), (100807, NULL, NULL, 'Active', NULL, 'CC', 'Rice Viscotec', 'Tingir PV', NULL), (100808, NULL, NULL, 'Active', NULL, 'CC', 'Rosa BB Fio Tinto', 'Lavar', NULL), (100809, NULL, NULL, 'Active', NULL, 'CC', 'Rosa BB Liso', 'Tingir PA', NULL), (100810, NULL, NULL, 'Active', NULL, 'CC', 'Rosa BB Mec', 'Tingir PES/CMO', NULL), (100811, NULL, NULL, 'Active', NULL, 'CC', 'Rosa BB Mod', 'Tingir CMO', NULL), (100812, NULL, NULL, 'Active', NULL, 'CC', 'Rosa BB Nat', 'Tingir CO', NULL), (100813, NULL, NULL, 'Active', NULL, 'CC', 'Rosa BB Polly', 'Tingir PP', NULL), (100814, NULL, NULL, 'Active', NULL, 'CC', 'Rosa BB Tec', 'Tingir PES', NULL), (100815, NULL, NULL, 'Active', NULL, 'CC', 'Rosa BB Visco', 'Tingir CV', NULL), (100816, NULL, NULL, 'Active', NULL, 'CC', 'Rosa BB Viscotec', 'Tingir PV', NULL), (100817, NULL, NULL, 'Active', NULL, 'CM', 'Rosa Bromelia Fio Tinto', 'Lavar', NULL), (100818, NULL, NULL, 'Active', NULL, 'CM', 'Rosa Bromelia Liso', 'Tingir PA', NULL), (100819, NULL, NULL, 'Active', NULL, 'CM', 'Rosa Bromelia Mec', 'Tingir PES/CMO', NULL), (100820, NULL, NULL, 'Active', NULL, 'CM', 'Rosa Bromelia Mod', 'Tingir CMO', NULL), (100821, NULL, NULL, 'Active', NULL, 'CM', 'Rosa Bromelia Nat', 'Tingir CO', NULL), (100822, NULL, NULL, 'Active', NULL, 'CM', 'Rosa Bromelia Polly', 'Tingir PP', NULL), (100823, NULL, NULL, 'Active', NULL, 'CM', 'Rosa Bromelia Tec', 'Tingir PES', NULL), (100824, NULL, NULL, 'Active', NULL, 'CM', 'Rosa Bromelia Visco', 'Tingir CV', NULL), (100825, NULL, NULL, 'Active', NULL, 'CM', 'Rosa Bromelia Viscotec', 'Tingir PV', NULL), (100826, NULL, NULL, 'Active', NULL, 'CC', 'Rosa Cristal Fio Tinto', 'Lavar', NULL), (100827, NULL, NULL, 'Active', NULL, 'CC', 'Rosa Cristal Liso', 'Tingir PA', NULL), (100828, NULL, NULL, 'Active', NULL, 'CC', 'Rosa Cristal Mec', 'Tingir PES/CMO', NULL), (100829, NULL, NULL, 'Active', NULL, 'CC', 'Rosa Cristal Mod', 'Tingir CMO', NULL), (100830, NULL, NULL, 'Active', NULL, 'CC', 'Rosa Cristal Nat', 'Tingir CO', NULL), (100831, NULL, NULL, 'Active', NULL, 'CC', 'Rosa Cristal Polly', 'Tingir PP', NULL), (100832, NULL, NULL, 'Active', NULL, 'CC', 'Rosa Cristal Tec', 'Tingir PES', NULL), (100833, NULL, NULL, 'Active', NULL, 'CC', 'Rosa Cristal Visco', 'Tingir CV', NULL), (100834, NULL, NULL, 'Active', NULL, 'CC', 'Rosa Cristal Viscotec', 'Tingir PV', NULL), (100835, NULL, NULL, 'Active', NULL, 'CI', 'Rosa Maravilha Fio Tinto', 'Lavar', NULL), (100836, NULL, NULL, 'Active', NULL, 'CI', 'Rosa Maravilha Liso', 'Tingir PA', NULL), (100837, NULL, NULL, 'Active', NULL, 'CI', 'Rosa Maravilha Mec', 'Tingir PES/CMO', NULL), (100838, NULL, NULL, 'Active', NULL, 'CI', 'Rosa Maravilha Mod', 'Tingir CMO', NULL), (100839, NULL, NULL, 'Active', NULL, 'CI', 'Rosa Maravilha Nat', 'Tingir CO', NULL), (100840, NULL, NULL, 'Active', NULL, 'CI', 'Rosa Maravilha Polly', 'Tingir PP', NULL), (100841, NULL, NULL, 'Active', NULL, 'CI', 'Rosa Maravilha Tec', 'Tingir PES', NULL), (100842, NULL, NULL, 'Active', NULL, 'CI', 'Rosa Maravilha Visco', 'Tingir CV', NULL), (100843, NULL, NULL, 'Active', NULL, 'CI', 'Rosa Maravilha Viscotec', 'Tingir PV', NULL), (100844, NULL, NULL, 'Active', NULL, 'CM', 'Rosa Petunia Fio Tinto', 'Lavar', NULL), (100845, NULL, NULL, 'Active', NULL, 'CM', 'Rosa Petunia Liso', 'Tingir PA', NULL), (100846, NULL, NULL, 'Active', NULL, 'CM', 'Rosa Petunia Mec', 'Tingir PES/CMO', NULL), (100847, NULL, NULL, 'Active', NULL, 'CM', 'Rosa Petunia Mod', 'Tingir CMO', NULL), (100848, NULL, NULL, 'Active', NULL, 'CM', 'Rosa Petunia Nat', 'Tingir CO', NULL), (100849, NULL, NULL, 'Active', NULL, 'CM', 'Rosa Petunia Polly', 'Tingir PP', NULL), (100850, NULL, NULL, 'Active', NULL, 'CM', 'Rosa Petunia Tec', 'Tingir PES', NULL), (100851, NULL, NULL, 'Active', NULL, 'CM', 'Rosa Petunia Visco', 'Tingir CV', NULL), (100852, NULL, NULL, 'Active', NULL, 'CM', 'Rosa Petunia Viscotec', 'Tingir PV', NULL), (100853, NULL, NULL, 'Active', NULL, 'CM', 'Rosa Shake Fio Tinto', 'Lavar', NULL), (100854, NULL, NULL, 'Active', NULL, 'CM', 'Rosa Shake Liso', 'Tingir PA', NULL), (100855, NULL, NULL, 'Active', NULL, 'CM', 'Rosa Shake Mec', 'Tingir PES/CMO', NULL), (100856, NULL, NULL, 'Active', NULL, 'CM', 'Rosa Shake Mod', 'Tingir CMO', NULL), (100857, NULL, NULL, 'Active', NULL, 'CM', 'Rosa Shake Nat', 'Tingir CO', NULL), (100858, NULL, NULL, 'Active', NULL, 'CM', 'Rosa Shake Polly', 'Tingir PP', NULL), (100859, NULL, NULL, 'Active', NULL, 'CM', 'Rosa Shake Tec', 'Tingir PES', NULL), (100860, NULL, NULL, 'Active', NULL, 'CM', 'Rosa Shake Visco', 'Tingir CV', NULL), (100861, NULL, NULL, 'Active', NULL, 'CM', 'Rosa Shake Viscotec', 'Tingir PV', NULL), (100862, NULL, NULL, 'Active', NULL, 'CM', 'Rose Natral Fio Tinto', 'Lavar', NULL), (100863, NULL, NULL, 'Active', NULL, 'CM', 'Rose Natral Liso', 'Tingir PA', NULL), (100864, NULL, NULL, 'Active', NULL, 'CM', 'Rose Natral Mec', 'Tingir PES/CMO', NULL), (100865, NULL, NULL, 'Active', NULL, 'CM', 'Rose Natral Mod', 'Tingir CMO', NULL), (100866, NULL, NULL, 'Active', NULL, 'CM', 'Rose Natral Nat', 'Tingir CO', NULL), (100867, NULL, NULL, 'Active', NULL, 'CM', 'Rose Natral Polly', 'Tingir PP', NULL), (100868, NULL, NULL, 'Active', NULL, 'CM', 'Rose Natral Tec', 'Tingir PES', NULL), (100869, NULL, NULL, 'Active', NULL, 'CM', 'Rose Natral Visco', 'Tingir CV', NULL), (100870, NULL, NULL, 'Active', NULL, 'CM', 'Rose Natral Viscotec', 'Tingir PV', NULL), (100871, NULL, NULL, 'Active', NULL, 'CE', 'Roxo Primula Fio Tinto', 'Lavar', NULL), (100872, NULL, NULL, 'Active', NULL, 'CE', 'Roxo Primula Liso', 'Tingir PA', NULL), (100873, NULL, NULL, 'Active', NULL, 'CE', 'Roxo Primula Mec', 'Tingir PES/CMO', NULL), (100874, NULL, NULL, 'Active', NULL, 'CE', 'Roxo Primula Mod', 'Tingir CMO', NULL), (100875, NULL, NULL, 'Active', NULL, 'CE', 'Roxo Primula Nat', 'Tingir CO', NULL), (100876, NULL, NULL, 'Active', NULL, 'CE', 'Roxo Primula Polly', 'Tingir PP', NULL), (100877, NULL, NULL, 'Active', NULL, 'CE', 'Roxo Primula Tec', 'Tingir PES', NULL), (100878, NULL, NULL, 'Active', NULL, 'CE', 'Roxo Primula Visco', 'Tingir CV', NULL), (100879, NULL, NULL, 'Active', NULL, 'CE', 'Roxo Primula Viscotec', 'Tingir PV', NULL), (100880, NULL, NULL, 'Active', NULL, 'CE', 'Roxo Purpura Fio Tinto', 'Lavar', NULL), (100881, NULL, NULL, 'Active', NULL, 'CE', 'Roxo Purpura Liso', 'Tingir PA', NULL), (100882, NULL, NULL, 'Active', NULL, 'CE', 'Roxo Purpura Mec', 'Tingir PES/CMO', NULL), (100883, NULL, NULL, 'Active', NULL, 'CE', 'Roxo Purpura Mod', 'Tingir CMO', NULL), (100884, NULL, NULL, 'Active', NULL, 'CE', 'Roxo Purpura Nat', 'Tingir CO', NULL), (100885, NULL, NULL, 'Active', NULL, 'CE', 'Roxo Purpura Polly', 'Tingir PP', NULL), (100886, NULL, NULL, 'Active', NULL, 'CE', 'Roxo Purpura Tec', 'Tingir PES', NULL), (100887, NULL, NULL, 'Active', NULL, 'CE', 'Roxo Purpura Visco', 'Tingir CV', NULL), (100888, NULL, NULL, 'Active', NULL, 'CE', 'Roxo Purpura Viscotec', 'Tingir PV', NULL), (100889, NULL, NULL, 'Active', NULL, 'CE', 'Royal Kin Fio Tinto', 'Lavar', NULL), (100890, NULL, NULL, 'Active', NULL, 'CE', 'Royal Kin Liso', 'Tingir PA', NULL), (100891, NULL, NULL, 'Active', NULL, 'CE', 'Royal Kin Mec', 'Tingir PES/CMO', NULL), (100892, NULL, NULL, 'Active', NULL, 'CE', 'Royal Kin Mod', 'Tingir CMO', NULL), (100893, NULL, NULL, 'Active', NULL, 'CE', 'Royal Kin Nat', 'Tingir CO', NULL), (100894, NULL, NULL, 'Active', NULL, 'CE', 'Royal Kin Polly', 'Tingir PP', NULL), (100895, NULL, NULL, 'Active', NULL, 'CE', 'Royal Kin Tec', 'Tingir PES', NULL), (100896, NULL, NULL, 'Active', NULL, 'CE', 'Royal Kin Visco', 'Tingir CV', NULL), (100897, NULL, NULL, 'Active', NULL, 'CE', 'Royal Kin Viscotec', 'Tingir PV', NULL), (100898, NULL, NULL, 'Active', NULL, 'CE', 'Rubi Fio Tinto', 'Lavar', NULL), (100899, NULL, NULL, 'Active', NULL, 'CE', 'Rubi Liso', 'Tingir PA', NULL), (100900, NULL, NULL, 'Active', NULL, 'CE', 'Rubi Mec', 'Tingir PES/CMO', NULL), (100901, NULL, NULL, 'Active', NULL, 'CE', 'Rubi Mod', 'Tingir CMO', NULL), (100902, NULL, NULL, 'Active', NULL, 'CE', 'Rubi Nat', 'Tingir CO', NULL), (100903, NULL, NULL, 'Active', NULL, 'CE', 'Rubi Polly', 'Tingir PP', NULL), (100904, NULL, NULL, 'Active', NULL, 'CE', 'Rubi Tec', 'Tingir PES', NULL), (100905, NULL, NULL, 'Active', NULL, 'CE', 'Rubi Visco', 'Tingir CV', NULL), (100906, NULL, NULL, 'Active', NULL, 'CE', 'Rubi Viscotec', 'Tingir PV', NULL), (100907, NULL, NULL, 'Active', NULL, 'CM', 'Sachet Fio Tinto', 'Lavar', NULL), (100908, NULL, NULL, 'Active', NULL, 'CM', 'Sachet Liso', 'Tingir PA', NULL), (100909, NULL, NULL, 'Active', NULL, 'CM', 'Sachet Mec', 'Tingir PES/CMO', NULL), (100910, NULL, NULL, 'Active', NULL, 'CM', 'Sachet Mod', 'Tingir CMO', NULL), (100911, NULL, NULL, 'Active', NULL, 'CM', 'Sachet Nat', 'Tingir CO', NULL), (100912, NULL, NULL, 'Active', NULL, 'CM', 'Sachet Polly', 'Tingir PP', NULL), (100913, NULL, NULL, 'Active', NULL, 'CM', 'Sachet Tec', 'Tingir PES', NULL), (100914, NULL, NULL, 'Active', NULL, 'CM', 'Sachet Visco', 'Tingir CV', NULL), (100915, NULL, NULL, 'Active', NULL, 'CM', 'Sachet Viscotec', 'Tingir PV', NULL), (100916, NULL, NULL, 'Active', NULL, 'CM', 'Salmon Tom Fio Tinto', 'Lavar', NULL), (100917, NULL, NULL, 'Active', NULL, 'CM', 'Salmon Tom Liso', 'Tingir PA', NULL), (100918, NULL, NULL, 'Active', NULL, 'CM', 'Salmon Tom Mec', 'Tingir PES/CMO', NULL), (100919, NULL, NULL, 'Active', NULL, 'CM', 'Salmon Tom Mod', 'Tingir CMO', NULL), (100920, NULL, NULL, 'Active', NULL, 'CM', 'Salmon Tom Nat', 'Tingir CO', NULL), (100921, NULL, NULL, 'Active', NULL, 'CM', 'Salmon Tom Polly', 'Tingir PP', NULL), (100922, NULL, NULL, 'Active', NULL, 'CM', 'Salmon Tom Tec', 'Tingir PES', NULL), (100923, NULL, NULL, 'Active', NULL, 'CM', 'Salmon Tom Visco', 'Tingir CV', NULL), (100924, NULL, NULL, 'Active', NULL, 'CM', 'Salmon Tom Viscotec', 'Tingir PV', NULL), (100925, NULL, NULL, 'Active', NULL, 'CM', 'Samambaia Fio Tinto', 'Lavar', NULL), (100926, NULL, NULL, 'Active', NULL, 'CM', 'Samambaia Liso', 'Tingir PA', NULL), (100927, NULL, NULL, 'Active', NULL, 'CM', 'Samambaia Mec', 'Tingir PES/CMO', NULL), (100928, NULL, NULL, 'Active', NULL, 'CM', 'Samambaia Mod', 'Tingir CMO', NULL), (100929, NULL, NULL, 'Active', NULL, 'CM', 'Samambaia Nat', 'Tingir CO', NULL), (100930, NULL, NULL, 'Active', NULL, 'CM', 'Samambaia Polly', 'Tingir PP', NULL), (100931, NULL, NULL, 'Active', NULL, 'CM', 'Samambaia Tec', 'Tingir PES', NULL), (100932, NULL, NULL, 'Active', NULL, 'CM', 'Samambaia Visco', 'Tingir CV', NULL), (100933, NULL, NULL, 'Active', NULL, 'CM', 'Samambaia Viscotec', 'Tingir PV', NULL), (100934, NULL, NULL, 'Active', NULL, 'CM', 'Segunda Pele Fio Tinto', 'Lavar', NULL), (100935, NULL, NULL, 'Active', NULL, 'CM', 'Segunda Pele Liso', 'Tingir PA', NULL), (100936, NULL, NULL, 'Active', NULL, 'CM', 'Segunda Pele Mec', 'Tingir PES/CMO', NULL), (100937, NULL, NULL, 'Active', NULL, 'CM', 'Segunda Pele Mod', 'Tingir CMO', NULL), (100938, NULL, NULL, 'Active', NULL, 'CM', 'Segunda Pele Nat', 'Tingir CO', NULL), (100939, NULL, NULL, 'Active', NULL, 'CM', 'Segunda Pele Polly', 'Tingir PP', NULL), (100940, NULL, NULL, 'Active', NULL, 'CM', 'Segunda Pele Tec', 'Tingir PES', NULL), (100941, NULL, NULL, 'Active', NULL, 'CM', 'Segunda Pele Visco', 'Tingir CV', NULL), (100942, NULL, NULL, 'Active', NULL, 'CM', 'Segunda Pele Viscotec', 'Tingir PV', NULL), (100943, NULL, NULL, 'Active', NULL, 'CM', 'Sukita Fio Tinto', 'Lavar', NULL), (100944, NULL, NULL, 'Active', NULL, 'CM', 'Sukita Liso', 'Tingir PA', NULL), (100945, NULL, NULL, 'Active', NULL, 'CM', 'Sukita Mec', 'Tingir PES/CMO', NULL), (100946, NULL, NULL, 'Active', NULL, 'CM', 'Sukita Mod', 'Tingir CMO', NULL), (100947, NULL, NULL, 'Active', NULL, 'CM', 'Sukita Nat', 'Tingir CO', NULL), (100948, NULL, NULL, 'Active', NULL, 'CM', 'Sukita Polly', 'Tingir PP', NULL), (100949, NULL, NULL, 'Active', NULL, 'CM', 'Sukita Tec', 'Tingir PES', NULL), (100950, NULL, NULL, 'Active', NULL, 'CM', 'Sukita Visco', 'Tingir CV', NULL), (100951, NULL, NULL, 'Active', NULL, 'CM', 'Sukita Viscotec', 'Tingir PV', NULL), (100952, NULL, NULL, 'Active', NULL, 'CE', 'Telha Fio Tinto', 'Lavar', NULL), (100953, NULL, NULL, 'Active', NULL, 'CE', 'Telha Liso', 'Tingir PA', NULL), (100954, NULL, NULL, 'Active', NULL, 'CE', 'Telha Mec', 'Tingir PES/CMO', NULL), (100955, NULL, NULL, 'Active', NULL, 'CE', 'Telha Mod', 'Tingir CMO', NULL), (100956, NULL, NULL, 'Active', NULL, 'CE', 'Telha Nat', 'Tingir CO', NULL), (100957, NULL, NULL, 'Active', NULL, 'CE', 'Telha Polly', 'Tingir PP', NULL), (100958, NULL, NULL, 'Active', NULL, 'CE', 'Telha Tec', 'Tingir PES', NULL), (100959, NULL, NULL, 'Active', NULL, 'CE', 'Telha Visco', 'Tingir CV', NULL), (100960, NULL, NULL, 'Active', NULL, 'CE', 'Telha Viscotec', 'Tingir PV', NULL), (100961, NULL, NULL, 'Active', NULL, 'CE', 'Terracota Fio Tinto', 'Lavar', NULL), (100962, NULL, NULL, 'Active', NULL, 'CE', 'Terracota Liso', 'Tingir PA', NULL), (100963, NULL, NULL, 'Active', NULL, 'CE', 'Terracota Mec', 'Tingir PES/CMO', NULL), (100964, NULL, NULL, 'Active', NULL, 'CE', 'Terracota Mod', 'Tingir CMO', NULL), (100965, NULL, NULL, 'Active', NULL, 'CE', 'Terracota Nat', 'Tingir CO', NULL), (100966, NULL, NULL, 'Active', NULL, 'CE', 'Terracota Polly', 'Tingir PP', NULL), (100967, NULL, NULL, 'Active', NULL, 'CE', 'Terracota Tec', 'Tingir PES', NULL), (100968, NULL, NULL, 'Active', NULL, 'CE', 'Terracota Visco', 'Tingir CV', NULL), (100969, NULL, NULL, 'Active', NULL, 'CE', 'Terracota Viscotec', 'Tingir PV', NULL), (100970, NULL, NULL, 'Active', NULL, 'CE', 'Toddy Fio Tinto', 'Lavar', NULL), (100971, NULL, NULL, 'Active', NULL, 'CE', 'Toddy Liso', 'Tingir PA', NULL), (100972, NULL, NULL, 'Active', NULL, 'CE', 'Toddy Mec', 'Tingir PES/CMO', NULL), (100973, NULL, NULL, 'Active', NULL, 'CE', 'Toddy Mod', 'Tingir CMO', NULL), (100974, NULL, NULL, 'Active', NULL, 'CE', 'Toddy Nat', 'Tingir CO', NULL), (100975, NULL, NULL, 'Active', NULL, 'CE', 'Toddy Polly', 'Tingir PP', NULL), (100976, NULL, NULL, 'Active', NULL, 'CE', 'Toddy Tec', 'Tingir PES', NULL), (100977, NULL, NULL, 'Active', NULL, 'CE', 'Toddy Visco', 'Tingir CV', NULL), (100978, NULL, NULL, 'Active', NULL, 'CE', 'Toddy Viscotec', 'Tingir PV', NULL), (100979, NULL, NULL, 'Active', NULL, 'CE', 'Tulipa Fio Tinto', 'Lavar', NULL), (100980, NULL, NULL, 'Active', NULL, 'CE', 'Tulipa Liso', 'Tingir PA', NULL), (100981, NULL, NULL, 'Active', NULL, 'CE', 'Tulipa Mec', 'Tingir PES/CMO', NULL), (100982, NULL, NULL, 'Active', NULL, 'CE', 'Tulipa Mod', 'Tingir CMO', NULL), (100983, NULL, NULL, 'Active', NULL, 'CE', 'Tulipa Nat', 'Tingir CO', NULL), (100984, NULL, NULL, 'Active', NULL, 'CE', 'Tulipa Polly', 'Tingir PP', NULL), (100985, NULL, NULL, 'Active', NULL, 'CE', 'Tulipa Tec', 'Tingir PES', NULL), (100986, NULL, NULL, 'Active', NULL, 'CE', 'Tulipa Visco', 'Tingir CV', NULL), (100987, NULL, NULL, 'Active', NULL, 'CE', 'Tulipa Viscotec', 'Tingir PV', NULL), (100988, NULL, NULL, 'Active', NULL, 'CI', 'Turkis Fio Tinto', 'Lavar', NULL), (100989, NULL, NULL, 'Active', NULL, 'CI', 'Turkis Liso', 'Tingir PA', NULL), (100990, NULL, NULL, 'Active', NULL, 'CI', 'Turkis Mec', 'Tingir PES/CMO', NULL), (100991, NULL, NULL, 'Active', NULL, 'CI', 'Turkis Mod', 'Tingir CMO', NULL), (100992, NULL, NULL, 'Active', NULL, 'CI', 'Turkis Nat', 'Tingir CO', NULL), (100993, NULL, NULL, 'Active', NULL, 'CI', 'Turkis Polly', 'Tingir PP', NULL), (100994, NULL, NULL, 'Active', NULL, 'CI', 'Turkis Tec', 'Tingir PES', NULL), (100995, NULL, NULL, 'Active', NULL, 'CI', 'Turkis Visco', 'Tingir CV', NULL), (100996, NULL, NULL, 'Active', NULL, 'CI', 'Turkis Viscotec', 'Tingir PV', NULL), (100997, NULL, NULL, 'Active', NULL, 'CE', 'Turquaise Fio Tinto', 'Lavar', NULL), (100998, NULL, NULL, 'Active', NULL, 'CE', 'Turquaise Liso', 'Tingir PA', NULL), (100999, NULL, NULL, 'Active', NULL, 'CE', 'Turquaise Mec', 'Tingir PES/CMO', NULL), (101000, NULL, NULL, 'Active', NULL, 'CE', 'Turquaise Mod', 'Tingir CMO', NULL), (101001, NULL, NULL, 'Active', NULL, 'CE', 'Turquaise Nat', 'Tingir CO', NULL), (101002, NULL, NULL, 'Active', NULL, 'CE', 'Turquaise Polly', 'Tingir PP', NULL), (101003, NULL, NULL, 'Active', NULL, 'CE', 'Turquaise Tec', 'Tingir PES', NULL), (101004, NULL, NULL, 'Active', NULL, 'CE', 'Turquaise Visco', 'Tingir CV', NULL), (101005, NULL, NULL, 'Active', NULL, 'CE', 'Turquaise Viscotec', 'Tingir PV', NULL), (101006, NULL, NULL, 'Active', NULL, 'CE', 'Uva Fio Tinto', 'Lavar', NULL), (101007, NULL, NULL, 'Active', NULL, 'CE', 'Uva Liso', 'Tingir PA', NULL), (101008, NULL, NULL, 'Active', NULL, 'CE', 'Uva Mec', 'Tingir PES/CMO', NULL), (101009, NULL, NULL, 'Active', NULL, 'CE', 'Uva Mod', 'Tingir CMO', NULL), (101010, NULL, NULL, 'Active', NULL, 'CE', 'Uva Nat', 'Tingir CO', NULL), (101011, NULL, NULL, 'Active', NULL, 'CE', 'Uva Polly', 'Tingir PP', NULL), (101012, NULL, NULL, 'Active', NULL, 'CE', 'Uva Tec', 'Tingir PES', NULL), (101013, NULL, NULL, 'Active', NULL, 'CE', 'Uva Visco', 'Tingir CV', NULL), (101014, NULL, NULL, 'Active', NULL, 'CE', 'Uva Viscotec', 'Tingir PV', NULL), (101015, NULL, NULL, 'Active', NULL, 'CI', 'Verde Alface Fio Tinto', 'Lavar', NULL), (101016, NULL, NULL, 'Active', NULL, 'CI', 'Verde Alface Liso', 'Tingir PA', NULL), (101017, NULL, NULL, 'Active', NULL, 'CI', 'Verde Alface Mec', 'Tingir PES/CMO', NULL), (101018, NULL, NULL, 'Active', NULL, 'CI', 'Verde Alface Mod', 'Tingir CMO', NULL), (101019, NULL, NULL, 'Active', NULL, 'CI', 'Verde Alface Nat', 'Tingir CO', NULL), (101020, NULL, NULL, 'Active', NULL, 'CI', 'Verde Alface Polly', 'Tingir PP', NULL), (101021, NULL, NULL, 'Active', NULL, 'CI', 'Verde Alface Tec', 'Tingir PES', NULL), (101022, NULL, NULL, 'Active', NULL, 'CI', 'Verde Alface Visco', 'Tingir CV', NULL), (101023, NULL, NULL, 'Active', NULL, 'CI', 'Verde Alface Viscotec', 'Tingir PV', NULL), (101024, NULL, NULL, 'Active', NULL, 'CC', 'Verde Aquarela Fio Tinto', 'Lavar', NULL), (101025, NULL, NULL, 'Active', NULL, 'CC', 'Verde Aquarela Liso', 'Tingir PA', NULL), (101026, NULL, NULL, 'Active', NULL, 'CC', 'Verde Aquarela Mec', 'Tingir PES/CMO', NULL), (101027, NULL, NULL, 'Active', NULL, 'CC', 'Verde Aquarela Mod', 'Tingir CMO', NULL), (101028, NULL, NULL, 'Active', NULL, 'CC', 'Verde Aquarela Nat', 'Tingir CO', NULL), (101029, NULL, NULL, 'Active', NULL, 'CC', 'Verde Aquarela Polly', 'Tingir PP', NULL), (101030, NULL, NULL, 'Active', NULL, 'CC', 'Verde Aquarela Tec', 'Tingir PES', NULL), (101031, NULL, NULL, 'Active', NULL, 'CC', 'Verde Aquarela Visco', 'Tingir CV', NULL), (101032, NULL, NULL, 'Active', NULL, 'CC', 'Verde Aquarela Viscotec', 'Tingir PV', NULL), (101033, NULL, NULL, 'Active', NULL, 'CI', 'Verde Arquipelago Fio Tinto', 'Lavar', NULL), (101034, NULL, NULL, 'Active', NULL, 'CI', 'Verde Arquipelago Liso', 'Tingir PA', NULL), (101035, NULL, NULL, 'Active', NULL, 'CI', 'Verde Arquipelago Mec', 'Tingir PES/CMO', NULL), (101036, NULL, NULL, 'Active', NULL, 'CI', 'Verde Arquipelago Mod', 'Tingir CMO', NULL), (101037, NULL, NULL, 'Active', NULL, 'CI', 'Verde Arquipelago Nat', 'Tingir CO', NULL), (101038, NULL, NULL, 'Active', NULL, 'CI', 'Verde Arquipelago Polly', 'Tingir PP', NULL), (101039, NULL, NULL, 'Active', NULL, 'CI', 'Verde Arquipelago Tec', 'Tingir PES', NULL), (101040, NULL, NULL, 'Active', NULL, 'CI', 'Verde Arquipelago Visco', 'Tingir CV', NULL), (101041, NULL, NULL, 'Active', NULL, 'CI', 'Verde Arquipelago Viscotec', 'Tingir PV', NULL), (101042, NULL, NULL, 'Active', NULL, 'CI', 'Verde Azeitona Fio Tinto', 'Lavar', NULL), (101043, NULL, NULL, 'Active', NULL, 'CI', 'Verde Azeitona Liso', 'Tingir PA', NULL), (101044, NULL, NULL, 'Active', NULL, 'CI', 'Verde Azeitona Mec', 'Tingir PES/CMO', NULL), (101045, NULL, NULL, 'Active', NULL, 'CI', 'Verde Azeitona Mod', 'Tingir CMO', NULL), (101046, NULL, NULL, 'Active', NULL, 'CI', 'Verde Azeitona Nat', 'Tingir CO', NULL), (101047, NULL, NULL, 'Active', NULL, 'CI', 'Verde Azeitona Polly', 'Tingir PP', NULL), (101048, NULL, NULL, 'Active', NULL, 'CI', 'Verde Azeitona Tec', 'Tingir PES', NULL), (101049, NULL, NULL, 'Active', NULL, 'CI', 'Verde Azeitona Visco', 'Tingir CV', NULL), (101050, NULL, NULL, 'Active', NULL, 'CI', 'Verde Azeitona Viscotec', 'Tingir PV', NULL), (101051, NULL, NULL, 'Active', NULL, 'CM', 'Verde BB Fio Tinto', 'Lavar', NULL), (101052, NULL, NULL, 'Active', NULL, 'CM', 'Verde BB Liso', 'Tingir PA', NULL), (101053, NULL, NULL, 'Active', NULL, 'CM', 'Verde BB Mec', 'Tingir PES/CMO', NULL), (101054, NULL, NULL, 'Active', NULL, 'CM', 'Verde BB Mod', 'Tingir CMO', NULL), (101055, NULL, NULL, 'Active', NULL, 'CM', 'Verde BB Nat', 'Tingir CO', NULL), (101056, NULL, NULL, 'Active', NULL, 'CM', 'Verde BB Polly', 'Tingir PP', NULL), (101057, NULL, NULL, 'Active', NULL, 'CM', 'Verde BB Tec', 'Tingir PES', NULL), (101058, NULL, NULL, 'Active', NULL, 'CM', 'Verde BB Visco', 'Tingir CV', NULL), (101059, NULL, NULL, 'Active', NULL, 'CM', 'Verde BB Viscotec', 'Tingir PV', NULL), (101060, NULL, NULL, 'Active', NULL, 'CE', 'Verde Bonsai Fio Tinto', 'Lavar', NULL), (101061, NULL, NULL, 'Active', NULL, 'CE', 'Verde Bonsai Liso', 'Tingir PA', NULL), (101062, NULL, NULL, 'Active', NULL, 'CE', 'Verde Bonsai Mec', 'Tingir PES/CMO', NULL), (101063, NULL, NULL, 'Active', NULL, 'CE', 'Verde Bonsai Mod', 'Tingir CMO', NULL), (101064, NULL, NULL, 'Active', NULL, 'CE', 'Verde Bonsai Nat', 'Tingir CO', NULL), (101065, NULL, NULL, 'Active', NULL, 'CE', 'Verde Bonsai Polly', 'Tingir PP', NULL), (101066, NULL, NULL, 'Active', NULL, 'CE', 'Verde Bonsai Tec', 'Tingir PES', NULL), (101067, NULL, NULL, 'Active', NULL, 'CE', 'Verde Bonsai Visco', 'Tingir CV', NULL), (101068, NULL, NULL, 'Active', NULL, 'CE', 'Verde Bonsai Viscotec', 'Tingir PV', NULL), (101069, NULL, NULL, 'Active', NULL, 'CE', 'Verde Boston Fio Tinto', 'Lavar', NULL), (101070, NULL, NULL, 'Active', NULL, 'CE', 'Verde Boston Liso', 'Tingir PA', NULL), (101071, NULL, NULL, 'Active', NULL, 'CE', 'Verde Boston Mec', 'Tingir PES/CMO', NULL), (101072, NULL, NULL, 'Active', NULL, 'CE', 'Verde Boston Mod', 'Tingir CMO', NULL), (101073, NULL, NULL, 'Active', NULL, 'CE', 'Verde Boston Nat', 'Tingir CO', NULL), (101074, NULL, NULL, 'Active', NULL, 'CE', 'Verde Boston Polly', 'Tingir PP', NULL), (101075, NULL, NULL, 'Active', NULL, 'CE', 'Verde Boston Tec', 'Tingir PES', NULL), (101076, NULL, NULL, 'Active', NULL, 'CE', 'Verde Boston Visco', 'Tingir CV', NULL), (101077, NULL, NULL, 'Active', NULL, 'CE', 'Verde Boston Viscotec', 'Tingir PV', NULL), (101078, NULL, NULL, 'Active', NULL, 'CE', 'Verde BR Fio Tinto', 'Lavar', NULL), (101079, NULL, NULL, 'Active', NULL, 'CE', 'Verde BR Liso', 'Tingir PA', NULL), (101080, NULL, NULL, 'Active', NULL, 'CE', 'Verde BR Mec', 'Tingir PES/CMO', NULL), (101081, NULL, NULL, 'Active', NULL, 'CE', 'Verde BR Mod', 'Tingir CMO', NULL), (101082, NULL, NULL, 'Active', NULL, 'CE', 'Verde BR Nat', 'Tingir CO', NULL), (101083, NULL, NULL, 'Active', NULL, 'CE', 'Verde BR Polly', 'Tingir PP', NULL), (101084, NULL, NULL, 'Active', NULL, 'CE', 'Verde BR Tec', 'Tingir PES', NULL), (101085, NULL, NULL, 'Active', NULL, 'CE', 'Verde BR Visco', 'Tingir CV', NULL), (101086, NULL, NULL, 'Active', NULL, 'CE', 'Verde BR Viscotec', 'Tingir PV', NULL), (101087, NULL, NULL, 'Active', NULL, 'CC', 'Verde Caribe Fio Tinto', 'Lavar', NULL), (101088, NULL, NULL, 'Active', NULL, 'CC', 'Verde Caribe Liso', 'Tingir PA', NULL), (101089, NULL, NULL, 'Active', NULL, 'CC', 'Verde Caribe Mec', 'Tingir PES/CMO', NULL), (101090, NULL, NULL, 'Active', NULL, 'CC', 'Verde Caribe Mod', 'Tingir CMO', NULL), (101091, NULL, NULL, 'Active', NULL, 'CC', 'Verde Caribe Nat', 'Tingir CO', NULL), (101092, NULL, NULL, 'Active', NULL, 'CC', 'Verde Caribe Polly', 'Tingir PP', NULL), (101093, NULL, NULL, 'Active', NULL, 'CC', 'Verde Caribe Tec', 'Tingir PES', NULL), (101094, NULL, NULL, 'Active', NULL, 'CC', 'Verde Caribe Visco', 'Tingir CV', NULL), (101095, NULL, NULL, 'Active', NULL, 'CC', 'Verde Caribe Viscotec', 'Tingir PV', NULL), (101096, NULL, NULL, 'Active', NULL, 'CM', 'Verde Ervas Fio Tinto', 'Lavar', NULL), (101097, NULL, NULL, 'Active', NULL, 'CM', 'Verde Ervas Liso', 'Tingir PA', NULL), (101098, NULL, NULL, 'Active', NULL, 'CM', 'Verde Ervas Mec', 'Tingir PES/CMO', NULL), (101099, NULL, NULL, 'Active', NULL, 'CM', 'Verde Ervas Mod', 'Tingir CMO', NULL), (101100, NULL, NULL, 'Active', NULL, 'CM', 'Verde Ervas Nat', 'Tingir CO', NULL), (101101, NULL, NULL, 'Active', NULL, 'CM', 'Verde Ervas Polly', 'Tingir PP', NULL), (101102, NULL, NULL, 'Active', NULL, 'CM', 'Verde Ervas Tec', 'Tingir PES', NULL), (101103, NULL, NULL, 'Active', NULL, 'CM', 'Verde Ervas Visco', 'Tingir CV', NULL), (101104, NULL, NULL, 'Active', NULL, 'CM', 'Verde Ervas Viscotec', 'Tingir PV', NULL), (101105, NULL, NULL, 'Active', NULL, 'CE', 'Verde Evolution Fio Tinto', 'Lavar', NULL), (101106, NULL, NULL, 'Active', NULL, 'CE', 'Verde Evolution Liso', 'Tingir PA', NULL), (101107, NULL, NULL, 'Active', NULL, 'CE', 'Verde Evolution Mec', 'Tingir PES/CMO', NULL), (101108, NULL, NULL, 'Active', NULL, 'CE', 'Verde Evolution Mod', 'Tingir CMO', NULL), (101109, NULL, NULL, 'Active', NULL, 'CE', 'Verde Evolution Nat', 'Tingir CO', NULL), (101110, NULL, NULL, 'Active', NULL, 'CE', 'Verde Evolution Polly', 'Tingir PP', NULL), (101111, NULL, NULL, 'Active', NULL, 'CE', 'Verde Evolution Tec', 'Tingir PES', NULL), (101112, NULL, NULL, 'Active', NULL, 'CE', 'Verde Evolution Visco', 'Tingir CV', NULL), (101113, NULL, NULL, 'Active', NULL, 'CE', 'Verde Evolution Viscotec', 'Tingir PV', NULL), (101114, NULL, NULL, 'Active', NULL, 'CE', 'Verde Floresta Fio Tinto', 'Lavar', NULL), (101115, NULL, NULL, 'Active', NULL, 'CE', 'Verde Floresta Liso', 'Tingir PA', NULL), (101116, NULL, NULL, 'Active', NULL, 'CE', 'Verde Floresta Mec', 'Tingir PES/CMO', NULL), (101117, NULL, NULL, 'Active', NULL, 'CE', 'Verde Floresta Mod', 'Tingir CMO', NULL), (101118, NULL, NULL, 'Active', NULL, 'CE', 'Verde Floresta Nat', 'Tingir CO', NULL), (101119, NULL, NULL, 'Active', NULL, 'CE', 'Verde Floresta Polly', 'Tingir PP', NULL), (101120, NULL, NULL, 'Active', NULL, 'CE', 'Verde Floresta Tec', 'Tingir PES', NULL), (101121, NULL, NULL, 'Active', NULL, 'CE', 'Verde Floresta Visco', 'Tingir CV', NULL), (101122, NULL, NULL, 'Active', NULL, 'CE', 'Verde Floresta Viscotec', 'Tingir PV', NULL), (101123, NULL, NULL, 'Active', NULL, 'CI', 'Verde Fluor Fio Tinto', 'Lavar', NULL), (101124, NULL, NULL, 'Active', NULL, 'CI', 'Verde Fluor Liso', 'Tingir PA', NULL), (101125, NULL, NULL, 'Active', NULL, 'CI', 'Verde Fluor Mec', 'Tingir PES/CMO', NULL), (101126, NULL, NULL, 'Active', NULL, 'CI', 'Verde Fluor Mod', 'Tingir CMO', NULL), (101127, NULL, NULL, 'Active', NULL, 'CI', 'Verde Fluor Nat', 'Tingir CO', NULL), (101128, NULL, NULL, 'Active', NULL, 'CI', 'Verde Fluor Polly', 'Tingir PP', NULL), (101129, NULL, NULL, 'Active', NULL, 'CI', 'Verde Fluor Tec', 'Tingir PES', NULL), (101130, NULL, NULL, 'Active', NULL, 'CI', 'Verde Fluor Visco', 'Tingir CV', NULL), (101131, NULL, NULL, 'Active', NULL, 'CI', 'Verde Fluor Viscotec', 'Tingir PV', NULL), (101132, NULL, NULL, 'Active', NULL, 'CI', 'Verde Folha Fio Tinto', 'Lavar', NULL), (101133, NULL, NULL, 'Active', NULL, 'CI', 'Verde Folha Liso', 'Tingir PA', NULL), (101134, NULL, NULL, 'Active', NULL, 'CI', 'Verde Folha Mec', 'Tingir PES/CMO', NULL), (101135, NULL, NULL, 'Active', NULL, 'CI', 'Verde Folha Mod', 'Tingir CMO', NULL), (101136, NULL, NULL, 'Active', NULL, 'CI', 'Verde Folha Nat', 'Tingir CO', NULL), (101137, NULL, NULL, 'Active', NULL, 'CI', 'Verde Folha Polly', 'Tingir PP', NULL), (101138, NULL, NULL, 'Active', NULL, 'CI', 'Verde Folha Tec', 'Tingir PES', NULL), (101139, NULL, NULL, 'Active', NULL, 'CI', 'Verde Folha Visco', 'Tingir CV', NULL), (101140, NULL, NULL, 'Active', NULL, 'CI', 'Verde Folha Viscotec', 'Tingir PV', NULL), (101141, NULL, NULL, 'Active', NULL, 'CM', 'Verde Island Fio Tinto', 'Lavar', NULL), (101142, NULL, NULL, 'Active', NULL, 'CM', 'Verde Island Liso', 'Tingir PA', NULL), (101143, NULL, NULL, 'Active', NULL, 'CM', 'Verde Island Mec', 'Tingir PES/CMO', NULL), (101144, NULL, NULL, 'Active', NULL, 'CM', 'Verde Island Mod', 'Tingir CMO', NULL), (101145, NULL, NULL, 'Active', NULL, 'CM', 'Verde Island Nat', 'Tingir CO', NULL), (101146, NULL, NULL, 'Active', NULL, 'CM', 'Verde Island Polly', 'Tingir PP', NULL), (101147, NULL, NULL, 'Active', NULL, 'CM', 'Verde Island Tec', 'Tingir PES', NULL), (101148, NULL, NULL, 'Active', NULL, 'CM', 'Verde Island Visco', 'Tingir CV', NULL), (101149, NULL, NULL, 'Active', NULL, 'CM', 'Verde Island Viscotec', 'Tingir PV', NULL), (101150, NULL, NULL, 'Active', NULL, 'CI', 'Verde Jade Fio Tinto', 'Lavar', NULL), (101151, NULL, NULL, 'Active', NULL, 'CI', 'Verde Jade Liso', 'Tingir PA', NULL), (101152, NULL, NULL, 'Active', NULL, 'CI', 'Verde Jade Mec', 'Tingir PES/CMO', NULL), (101153, NULL, NULL, 'Active', NULL, 'CI', 'Verde Jade Mod', 'Tingir CMO', NULL), (101154, NULL, NULL, 'Active', NULL, 'CI', 'Verde Jade Nat', 'Tingir CO', NULL), (101155, NULL, NULL, 'Active', NULL, 'CI', 'Verde Jade Polly', 'Tingir PP', NULL), (101156, NULL, NULL, 'Active', NULL, 'CI', 'Verde Jade Tec', 'Tingir PES', NULL), (101157, NULL, NULL, 'Active', NULL, 'CI', 'Verde Jade Visco', 'Tingir CV', NULL), (101158, NULL, NULL, 'Active', NULL, 'CI', 'Verde Jade Viscotec', 'Tingir PV', NULL), (101159, NULL, NULL, 'Active', NULL, 'CE', 'Verde Jamaica Fio Tinto', 'Lavar', NULL), (101160, NULL, NULL, 'Active', NULL, 'CE', 'Verde Jamaica Liso', 'Tingir PA', NULL), (101161, NULL, NULL, 'Active', NULL, 'CE', 'Verde Jamaica Mec', 'Tingir PES/CMO', NULL), (101162, NULL, NULL, 'Active', NULL, 'CE', 'Verde Jamaica Mod', 'Tingir CMO', NULL), (101163, NULL, NULL, 'Active', NULL, 'CE', 'Verde Jamaica Nat', 'Tingir CO', NULL), (101164, NULL, NULL, 'Active', NULL, 'CE', 'Verde Jamaica Polly', 'Tingir PP', NULL), (101165, NULL, NULL, 'Active', NULL, 'CE', 'Verde Jamaica Tec', 'Tingir PES', NULL), (101166, NULL, NULL, 'Active', NULL, 'CE', 'Verde Jamaica Visco', 'Tingir CV', NULL), (101167, NULL, NULL, 'Active', NULL, 'CE', 'Verde Jamaica Viscotec', 'Tingir PV', NULL), (101168, NULL, NULL, 'Active', NULL, 'CI', 'Verde Lagoa Fio Tinto', 'Lavar', NULL), (101169, NULL, NULL, 'Active', NULL, 'CI', 'Verde Lagoa Liso', 'Tingir PA', NULL), (101170, NULL, NULL, 'Active', NULL, 'CI', 'Verde Lagoa Mec', 'Tingir PES/CMO', NULL), (101171, NULL, NULL, 'Active', NULL, 'CI', 'Verde Lagoa Mod', 'Tingir CMO', NULL), (101172, NULL, NULL, 'Active', NULL, 'CI', 'Verde Lagoa Nat', 'Tingir CO', NULL), (101173, NULL, NULL, 'Active', NULL, 'CI', 'Verde Lagoa Polly', 'Tingir PP', NULL), (101174, NULL, NULL, 'Active', NULL, 'CI', 'Verde Lagoa Tec', 'Tingir PES', NULL), (101175, NULL, NULL, 'Active', NULL, 'CI', 'Verde Lagoa Visco', 'Tingir CV', NULL), (101176, NULL, NULL, 'Active', NULL, 'CI', 'Verde Lagoa Viscotec', 'Tingir PV', NULL), (101177, NULL, NULL, 'Active', NULL, 'CI', 'Verde Maranhao Fio Tinto', 'Lavar', NULL), (101178, NULL, NULL, 'Active', NULL, 'CI', 'Verde Maranhao Liso', 'Tingir PA', NULL), (101179, NULL, NULL, 'Active', NULL, 'CI', 'Verde Maranhao Mec', 'Tingir PES/CMO', NULL), (101180, NULL, NULL, 'Active', NULL, 'CI', 'Verde Maranhao Mod', 'Tingir CMO', NULL), (101181, NULL, NULL, 'Active', NULL, 'CI', 'Verde Maranhao Nat', 'Tingir CO', NULL), (101182, NULL, NULL, 'Active', NULL, 'CI', 'Verde Maranhao Polly', 'Tingir PP', NULL), (101183, NULL, NULL, 'Active', NULL, 'CI', 'Verde Maranhao Tec', 'Tingir PES', NULL), (101184, NULL, NULL, 'Active', NULL, 'CI', 'Verde Maranhao Visco', 'Tingir CV', NULL), (101185, NULL, NULL, 'Active', NULL, 'CI', 'Verde Maranhao Viscotec', 'Tingir PV', NULL), (101186, NULL, NULL, 'Active', NULL, 'CM', 'Verde Piscina Fio Tinto', 'Lavar', NULL), (101187, NULL, NULL, 'Active', NULL, 'CM', 'Verde Piscina Liso', 'Tingir PA', NULL), (101188, NULL, NULL, 'Active', NULL, 'CM', 'Verde Piscina Mec', 'Tingir PES/CMO', NULL), (101189, NULL, NULL, 'Active', NULL, 'CM', 'Verde Piscina Mod', 'Tingir CMO', NULL), (101190, NULL, NULL, 'Active', NULL, 'CM', 'Verde Piscina Nat', 'Tingir CO', NULL), (101191, NULL, NULL, 'Active', NULL, 'CM', 'Verde Piscina Polly', 'Tingir PP', NULL), (101192, NULL, NULL, 'Active', NULL, 'CM', 'Verde Piscina Tec', 'Tingir PES', NULL), (101193, NULL, NULL, 'Active', NULL, 'CM', 'Verde Piscina Visco', 'Tingir CV', NULL), (101194, NULL, NULL, 'Active', NULL, 'CM', 'Verde Piscina Viscotec', 'Tingir PV', NULL), (101195, NULL, NULL, 'Active', NULL, 'CE', 'Verde Shake Fio Tinto', 'Lavar', NULL), (101196, NULL, NULL, 'Active', NULL, 'CE', 'Verde Shake Liso', 'Tingir PA', NULL), (101197, NULL, NULL, 'Active', NULL, 'CE', 'Verde Shake Mec', 'Tingir PES/CMO', NULL), (101198, NULL, NULL, 'Active', NULL, 'CE', 'Verde Shake Mod', 'Tingir CMO', NULL), (101199, NULL, NULL, 'Active', NULL, 'CE', 'Verde Shake Nat', 'Tingir CO', NULL), (101200, NULL, NULL, 'Active', NULL, 'CE', 'Verde Shake Polly', 'Tingir PP', NULL), (101201, NULL, NULL, 'Active', NULL, 'CE', 'Verde Shake Tec', 'Tingir PES', NULL), (101202, NULL, NULL, 'Active', NULL, 'CE', 'Verde Shake Visco', 'Tingir CV', NULL), (101203, NULL, NULL, 'Active', NULL, 'CE', 'Verde Shake Viscotec', 'Tingir PV', NULL), (101204, NULL, NULL, 'Active', NULL, 'CI', 'Vermelho China Fio Tinto', 'Lavar', NULL), (101205, NULL, NULL, 'Active', NULL, 'CI', 'Vermelho China Liso', 'Tingir PA', NULL), (101206, NULL, NULL, 'Active', NULL, 'CI', 'Vermelho China Mec', 'Tingir PES/CMO', NULL), (101207, NULL, NULL, 'Active', NULL, 'CI', 'Vermelho China Mod', 'Tingir CMO', NULL), (101208, NULL, NULL, 'Active', NULL, 'CI', 'Vermelho China Nat', 'Tingir CO', NULL), (101209, NULL, NULL, 'Active', NULL, 'CI', 'Vermelho China Polly', 'Tingir PP', NULL), (101210, NULL, NULL, 'Active', NULL, 'CI', 'Vermelho China Tec', 'Tingir PES', NULL), (101211, NULL, NULL, 'Active', NULL, 'CI', 'Vermelho China Visco', 'Tingir CV', NULL), (101212, NULL, NULL, 'Active', NULL, 'CI', 'Vermelho China Viscotec', 'Tingir PV', NULL), (101213, NULL, NULL, 'Active', NULL, 'CM', 'Vespro Fio Tinto', 'Lavar', NULL), (101214, NULL, NULL, 'Active', NULL, 'CM', 'Vespro Liso', 'Tingir PA', NULL), (101215, NULL, NULL, 'Active', NULL, 'CM', 'Vespro Mec', 'Tingir PES/CMO', NULL), (101216, NULL, NULL, 'Active', NULL, 'CM', 'Vespro Mod', 'Tingir CMO', NULL), (101217, NULL, NULL, 'Active', NULL, 'CM', 'Vespro Nat', 'Tingir CO', NULL), (101218, NULL, NULL, 'Active', NULL, 'CM', 'Vespro Polly', 'Tingir PP', NULL), (101219, NULL, NULL, 'Active', NULL, 'CM', 'Vespro Tec', 'Tingir PES', NULL), (101220, NULL, NULL, 'Active', NULL, 'CM', 'Vespro Visco', 'Tingir CV', NULL), (101221, NULL, NULL, 'Active', NULL, 'CM', 'Vespro Viscotec', 'Tingir PV', NULL), (101222, NULL, NULL, 'Active', NULL, 'CI', 'Violeta Fio Tinto', 'Lavar', NULL), (101223, NULL, NULL, 'Active', NULL, 'CI', 'Violeta Liso', 'Tingir PA', NULL), (101224, NULL, NULL, 'Active', NULL, 'CI', 'Violeta Mec', 'Tingir PES/CMO', NULL), (101225, NULL, NULL, 'Active', NULL, 'CI', 'Violeta Mod', 'Tingir CMO', NULL), (101226, NULL, NULL, 'Active', NULL, 'CI', 'Violeta Nat', 'Tingir CO', NULL), (101227, NULL, NULL, 'Active', NULL, 'CI', 'Violeta Polly', 'Tingir PP', NULL), (101228, NULL, NULL, 'Active', NULL, 'CI', 'Violeta Tec', 'Tingir PES', NULL), (101229, NULL, NULL, 'Active', NULL, 'CI', 'Violeta Visco', 'Tingir CV', NULL), (101230, NULL, NULL, 'Active', NULL, 'CI', 'Violeta Viscotec', 'Tingir PV', NULL), (101231, NULL, NULL, 'Active', NULL, 'CE', 'Wine Fio Tinto', 'Lavar', NULL), (101232, NULL, NULL, 'Active', NULL, 'CE', 'Wine Liso', 'Tingir PA', NULL), (101233, NULL, NULL, 'Active', NULL, 'CE', 'Wine Mec', 'Tingir PES/CMO', NULL), (101234, NULL, NULL, 'Active', NULL, 'CE', 'Wine Mod', 'Tingir CMO', NULL), (101235, NULL, NULL, 'Active', NULL, 'CE', 'Wine Nat', 'Tingir CO', NULL), (101236, NULL, NULL, 'Active', NULL, 'CE', 'Wine Polly', 'Tingir PP', NULL), (101237, NULL, NULL, 'Active', NULL, 'CE', 'Wine Tec', 'Tingir PES', NULL), (101238, NULL, NULL, 'Active', NULL, 'CE', 'Wine Visco', 'Tingir CV', NULL), (101239, NULL, NULL, 'Active', NULL, 'CE', 'Wine Viscotec', 'Tingir PV', NULL);
Markdown
UTF-8
1,449
2.609375
3
[ "MIT" ]
permissive
### Psalm 21 > To the chief Musician, A Psalm of David. 1 The king shall joy in thy strength, O LORD; and in thy salvation how greatly shall he rejoice! 2 Thou hast given him his heart's desire, and hast not withholden the request of his lips. Selah. 3 For thou preventest him with the blessings of goodness: thou settest a crown of pure gold on his head. 4 He asked life of thee, *and* thou gavest *it* him, *even* length of days for ever and ever. 5 His glory *is* great in thy salvation: honour and majesty hast thou laid upon him. 6 For thou hast made him most blessed for ever: thou hast made him exceeding glad with thy countenance. 7 For the king trusteth in the LORD, and through the mercy of the most High he shall not be moved. 8 Thine hand shall find out all thine enemies: thy right hand shall find out those that hate thee. 9 Thou shalt make them as a fiery oven in the time of thine anger: the LORD shall swallow them up in his wrath, and the fire shall devour them. 10 Their fruit shalt thou destroy from the earth, and their seed from among the children of men. 11 For they intended evil against thee: they imagined a mischievous device, *which* they are not able *to perform*. 12 Therefore shalt thou make them turn their back, *when* thou shalt make ready *thine arrows* upon thy strings against the face of them. 13 Be thou exalted, LORD, in thine own strength: *so* will we sing and praise thy power.
Shell
UTF-8
244
2.625
3
[]
no_license
alias gem="docker-compose run --rm jekyll gem" alias bundle="docker-compose run --rm jekyll bundle" alias jekyll="docker-compose run --rm jekyll jekyll" clean_shell() { unalias gem unalias bundle unalias jekyll unset -f clean_shell }
PHP
UTF-8
903
3.21875
3
[]
no_license
<?php require_once 'data.movies.php'; include 'search.php'; function searchMovies($movies, $titre, $date, $genre, $cast) { $results = array(); //tableau dans lequel on mettra les films qu'on veut renvoyer //si au moins un champs est rempli if($titre != null || $date != null || $genre != null || $cast != null) { foreach($movies as $movie) { //si les infos dans les champs correspondent à un film dans $movies OU champ vide if((strcmp($movie["title"], $titre) == 0 || $titre == null) && (strcmp($movie["releaseDate"], $date) == 0 || $date == null) && (strcmp($movie["genre"], $genre) == 0 || $genre == null) && (strcmp($movie["director"], $cast) == 0 || $cast == null)) { array_push($results, $movie); //on met ce film dans $results } } return $results; } else { echo "Il manque quelque chose dans le formulaire.</br>"; } } ?>
Markdown
UTF-8
2,315
2.875
3
[]
no_license
# stw300cem-final-project-bishesu stw300cem-final-project-bishesu created by GitHub Classroom Title Photography Application Promoting Local Photographers Introdution The application that I developed is named as Photo Genie. This is an android application that is made in conjunction with a website of the same functionality from where I aim to import different APIs to make the user experience more optimized. The main goal of the application is to promote the local photography scene of the country. The users will be able to make profile in which they will be able to upload photos with detailed description The starting page of the app will have a collage of different photographs from different users. This project aims to be the go to application for Nepalese photography whose aim is to promote the local photography scene of the country and encourage people to make photography as a part of their career and provide the users exposure to national as well as the international market AIM • Build an android application that promotes the local photography scene of the country Objective • Make a user-friendly mobile application, • To show the photography potential of the local photographers of Nepal to national and international audience, • USe and implement different types of sensor to the application • To Import different APIs from the website of the app FEATURES • The photographers can make their own profile: this android application will have the feature where the photographers can make their personal profile where they will be able to upload their pictures. • Detailed information of the photographs: the user must provide a brief information about the details of the pictures that has been uploaded Youtube link https://youtu.be/KmjbAsDhrIw BACK END API LINK https://github.com/stw304cem/t2-backend-api-bishesu.git Retrofit Retrofit is the class through which your API interfaces are turned into callable objects. By default, Retrofit will give you sane defaults for your platform but it allows for customization Conclusion finally the project has ended through out this project lifecycle i have learned about Object orineted programming and coding in android studio. i have also learned to use different sesnors and api and embeed them in the application THANK YOU
C++
UTF-8
606
2.53125
3
[]
no_license
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main(int argc, char **argv) { int t; scanf("%d", &t); while (t-- != 0) { int n; scanf("%d", &n); ll len = -1; ll E = sqrt(2 * n) + 1; for (ll r = 2; r <= E && len == -1; ++r) { ll x = 2 * n - r * r + r; if (x > 0 && x % (2 * r) == 0) len = r; } if (len == -1) puts("IMPOSSIBLE"); else { ll a = (2 * n - len * len + len) / (2 * len); printf("%d =", n); for (int i = 0; i < len; ++i) { printf(" %lld", a + i); if (i + 1 != len) printf(" +"); } puts(""); } } return 0; }
Java
UTF-8
10,983
3.0625
3
[]
no_license
package geometry; /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ import geometry.Line; import geometry.Point; import org.junit.After; import org.junit.AfterClass; import org.junit.Before; import org.junit.BeforeClass; import org.junit.Test; import static org.junit.Assert.*; /** * * @author lroni */ public class LineTest { Point P1; Point P2; Point P3; Point P4; double[] parameters1; private boolean pointIsOnLine(double[] solvedLine, Point point) { double result = solvedLine[0] * point.getX() + solvedLine[1] * point.getY(); return result == solvedLine[2]; } public LineTest() { } @BeforeClass public static void setUpClass() { } @AfterClass public static void tearDownClass() { } @Before public void setUp() { P1 = new Point(0, 0); P2 = new Point(5, 0); P3 = new Point(0, 5); P4 = new Point(0, 8); parameters1 = new double[3]; } @After public void tearDown() { } @Test public void testLineStartPoint() { Line l = new Line(P1, P1); assertSame(P1, l.getStart()); } @Test public void testLineEndPoint() { Line l = new Line(P1, P1); assertSame(P1, l.getEnd()); } @Test public void testLineStartPointWhenNotDefined() { Line l = new Line(parameters1); assertNull(l.getStart()); } @Test public void testLineEndPointWhenNotDefined() { Line l = new Line(parameters1); assertNull(l.getEnd()); } @Test public void testLineParametersWhenPointsNotDefined() { Line l = new Line(parameters1); assertArrayEquals(parameters1, l.getParameters(), 0.001); } @Test public void testLineParametersWhenPointsDefined() { Line l = new Line(P1, P2); double[] expected = l.solveLine(); assertArrayEquals(expected, l.getParameters(), 0.001); } @Test public void testLineLenghtWhenSamePoints() { Line l = new Line(P1, P1); assertEquals(0, l.getLength(), 0.001); } @Test public void testLineLenghtWhenStraight() { Line l1 = new Line(P1, P2); Line l2 = new Line(P1, P3); assertEquals(5, l1.getLength(), 0.001); assertEquals(5, l2.getLength(), 0.001); } @Test public void testLineLenghtWhenDiagonal() { Line l1 = new Line(P2, P3); assertEquals(7.071, l1.getLength(), 0.001); } @Test public void testLineLenghtWhenPointsNotDefined() { Line l = new Line(parameters1); assertEquals(Double.NaN, l.getLength(), 0); } @Test public void testLineMidpointWhenSamePoints() { Line l = new Line(P1, P1); assertEquals(P1, l.getMidPoint()); } @Test public void testLineMidpointWhenPointsNotDefined() { Line l = new Line(parameters1); assertNull(l.getMidPoint()); } @Test public void testLineMidpointWhenStraight() { Line l1 = new Line(P1, P2); Line l2 = new Line(P1, P3); assertEquals(2.5, l1.getMidPoint().getX(), 0.001); assertEquals(2.5, l2.getMidPoint().getY(), 0.001); } @Test public void testLineMidpointWhenDiagonal() { Line l1 = new Line(P2, P3); Line l2 = new Line(P4, P2); assertEquals(new Point(2.5, 2.5), l1.getMidPoint()); assertEquals(new Point(2.5, 4), l2.getMidPoint()); } @Test public void testSolveLineWhenPointsNotDefined() { double[] params = {1.0, 1.0, 5.0}; Line l = new Line(params); assertArrayEquals(params, l.solveLine(), 0.001); } @Test public void testSolveLineWhenSamePoint() { double[] expected = {0.0, 0.0, 0.0}; Line l = new Line(P1, P1); assertArrayEquals(expected, l.solveLine(), 0.001); } @Test public void testSolveLineWhenStraight() { Line l1 = new Line(P1, P2); Line l2 = new Line(P1, P3); Line l3 = new Line(P1, P1); Point pointOnLine1 = new Point(2, 0); Point pointOnLine2 = new Point(0, 2); Point pointNotOnLine = new Point(99, 99); double[] values1 = l1.solveLine(); double[] values2 = l2.solveLine(); double[] values3 = {0.0, 0.0, 0.0}; assertTrue(pointIsOnLine(values1, pointOnLine1)); assertTrue(pointIsOnLine(values2, pointOnLine2)); assertFalse(pointIsOnLine(values1, pointNotOnLine)); assertFalse(pointIsOnLine(values2, pointNotOnLine)); //when on same point assertArrayEquals(values3, l3.solveLine(), 0.0); } @Test public void testSolveLineWhenDiagonal() { Line l1 = new Line(P3, P2); Line l2 = new Line(P3, new Point(10, 0)); Point pointOnLine1 = new Point(4, 1); Point pointOnLine2 = new Point(6, 2); Point pointNotOnLine = new Point(99, 99); double[] values1 = l1.solveLine(); double[] values2 = l2.solveLine(); //Test points on solved line assertTrue(pointIsOnLine(values1, pointOnLine1)); assertTrue(pointIsOnLine(values2, pointOnLine2)); //Test points not on solved line assertFalse(pointIsOnLine(values1, pointNotOnLine)); assertFalse(pointIsOnLine(values2, pointNotOnLine)); } @Test public void testFindIntersectWhenParallel() { Line l1 = new Line(P1, P2); Line l2 = new Line(P2, P1); assertNull(l1.findIntersect(l2)); } @Test public void testFindIntersectWhenStraight() { Line l1 = new Line(P1, P2); Line l2 = new Line(new Point(1, 5), new Point(1, -1)); Line l3 = new Line(new Point(3, 4), new Point(3, 1)); assertEquals(new Point(1, 0), l1.findIntersect(l2)); assertEquals(new Point(3, 0), l1.findIntersect(l3)); } @Test public void testFindIntersectWhenDiagonal() { Line l1 = new Line(P2, P3); Line l2 = new Line(P1, new Point(5, 5)); Line l3 = new Line(new Point(0, 4), new Point(8, 0)); Line l4 = new Line(P1, new Point(10, 5)); assertEquals(new Point(2.5, 2.5), l1.findIntersect(l2)); assertEquals(new Point(4, 2), l3.findIntersect(l4)); } @Test public void testfindPerpendicularLineWhenSamePoint() { Line l1 = new Line(P1, P1); Line l2 = new Line(parameters1); assertArrayEquals(parameters1, l1.findPerpendicularLine(), 0.001); assertArrayEquals(parameters1, l2.findPerpendicularLine(), 0.001); } @Test public void testfindPerpendicularLineWhenStraightOnX() { double[] param = {0.0, -5.0, 0.0}; double[] expected = {5.0, 0.0, 0.0}; Line l1 = new Line(P1, P2); Line l2 = new Line(param); assertArrayEquals(expected, l1.findPerpendicularLine(), 0.001); assertArrayEquals(expected, l2.findPerpendicularLine(), 0.001); } @Test public void testfindPerpendicularLineWhenStraightOnY() { double[] param = {5.0, 0.0, 0.0}; double[] expected = {0.0, 5.0, 0.0}; Line l1 = new Line(P1, P3); Line l2 = new Line(param); assertArrayEquals(expected, l1.findPerpendicularLine(), 0.001); assertArrayEquals(expected, l2.findPerpendicularLine(), 0.001); } @Test public void testfindPerpendicularLineWhenDiagonal() { double[] param1 = {5.0, -5.0, 0}; double[] param2 = {4.0, -8.0, 0}; double[] expected1 = {5.0, 5.0, 0.0}; double[] expected2 = {8.0, 4.0, 0}; Line l1 = new Line(P1, new Point(5, 5)); Line l1ByParam = new Line(param1); Line l2 = new Line(P1, new Point(8, 4)); Line l2ByParam = new Line(param2); assertArrayEquals(expected1, l1.findPerpendicularLine(), 0.001); assertArrayEquals(expected1, l1ByParam.findPerpendicularLine(), 0.001); assertArrayEquals(expected2, l2.findPerpendicularLine(), 0.001); assertArrayEquals(expected2, l2ByParam.findPerpendicularLine(), 0.001); } @Test public void testfindPerpendicularLineByPointWhenSamePoint() { Line l1 = new Line(P1, P1); Line l2 = new Line(parameters1); assertArrayEquals(parameters1, l1.findPerpendicularLineByPoint(P1), 0.001); assertArrayEquals(parameters1, l2.findPerpendicularLineByPoint(P1), 0.001); } @Test public void testfindPerpendicularLineByPointWhenStraightOnX() { double[] param = {0.0, -5.0, 0.0}; double[] expected = {5.0, 0.0, 5.0}; Point testPoint = new Point(1, 0); Line l1 = new Line(P1, P2); Line l2 = new Line(param); assertArrayEquals(expected, l1.findPerpendicularLineByPoint(testPoint), 0.001); assertArrayEquals(expected, l2.findPerpendicularLineByPoint(testPoint), 0.001); } @Test public void testfindPerpendicularLineByPointWhenStraightOnY() { double[] param = {5.0, 0.0, 0.0}; double[] expected = {0.0, 5.0, 5.0}; Point testPoint = new Point(0, 1); Line l1 = new Line(P1, P3); Line l2 = new Line(param); assertArrayEquals(expected, l1.findPerpendicularLineByPoint(testPoint), 0.001); assertArrayEquals(expected, l2.findPerpendicularLineByPoint(testPoint), 0.001); } @Test public void testfindPerpendicularLineByPointWhenDiagonal() { double[] param1 = {5.0, -5.0, 0.0}; double[] param2 = {5.0, -8.0, 0.0}; double[] expected1 = {5.0, 5.0, 10.0}; double[] expected2 = {8.0, 5.0, 89.0}; Line l1 = new Line(P1, new Point(5, 5)); Line l1ByParam = new Line(param1); Line l2 = new Line(P1, new Point(8, 5)); Line l2ByParam = new Line(param2); assertArrayEquals(expected1, l1.findPerpendicularLineByPoint(new Point(1, 1)), 0.001); assertArrayEquals(expected1, l1ByParam.findPerpendicularLineByPoint(new Point(1, 1)), 0.001); assertArrayEquals(expected2, l2.findPerpendicularLineByPoint(new Point(8, 5)), 0.001); assertArrayEquals(expected2, l2ByParam.findPerpendicularLineByPoint(new Point(8, 5)), 0.001); } @Test public void toStringWhenPointsDefined() { Line l = new Line(P1, P2); double[] lineParams = l.getParameters(); String expected = P1.toString() + " - " + P2.toString() + " distance: " + l.getLength() + ", equation: " + lineParams[0] + "x + " + lineParams[1] + "y = " + lineParams[2]; assertEquals(expected, l.toString()); } @Test public void toStringWhenPointsNotDefined() { Line l = new Line(parameters1); String expected = "null - null distance: NaN, equation: " + parameters1[0] + "x + " + parameters1[1] + "y = " + parameters1[2]; assertEquals(expected, l.toString()); } }
TypeScript
UTF-8
1,397
2.765625
3
[]
no_license
'use strict' import BN from 'bn.js' // Geth compatible DB keys const headsKey = 'heads' /** * Current canonical head for light sync */ const headHeaderKey = 'LastHeader' /** * Current canonical head for full sync */ const headBlockKey = 'LastBlock' /** * headerPrefix + number + hash -> header */ const headerPrefix = Buffer.from('h') /** * headerPrefix + number + hash + tdSuffix -> td */ const tdSuffix = Buffer.from('t') /** * headerPrefix + number + numSuffix -> hash */ const numSuffix = Buffer.from('n') /** * blockHashPrefix + hash -> number */ const blockHashPrefix = Buffer.from('H') /** * bodyPrefix + number + hash -> block body */ const bodyPrefix = Buffer.from('b') // Utility functions /** * Convert BN to big endian Buffer */ const bufBE8 = (n: BN) => n.toArrayLike(Buffer, 'be', 8) const tdKey = (n: BN, hash: Buffer) => Buffer.concat([headerPrefix, bufBE8(n), hash, tdSuffix]) const headerKey = (n: BN, hash: Buffer) => Buffer.concat([headerPrefix, bufBE8(n), hash]) const bodyKey = (n: BN, hash: Buffer) => Buffer.concat([bodyPrefix, bufBE8(n), hash]) const numberToHashKey = (n: BN) => Buffer.concat([headerPrefix, bufBE8(n), numSuffix]) const hashToNumberKey = (hash: Buffer) => Buffer.concat([blockHashPrefix, hash]) export { headsKey, headHeaderKey, headBlockKey, bufBE8, tdKey, headerKey, bodyKey, numberToHashKey, hashToNumberKey, }
JavaScript
UTF-8
2,245
2.75
3
[]
no_license
/** * [测试分页查询] * @param {[type]} app [description] * @return {[type]} [description] */ import _ from 'lodash'; import pingData from '../testData/paging.js' module.exports = function (app) { app.post('/paging', function (req, res) { console.log('paging body data', req.body); let start = parseInt(req.body.start) let count = parseInt(req.body.count) let end = start + count console.log(start, end); let reust = _.slice(pingData.paging, start, end) setTimeout(function () { res.json({ testData: reust, total: pingData.paging.length }) }, 2000) }) app.post('/paging/count', function (req, res) { console.log('paging body data', req.body); let start = parseInt(req.body.data.pageIndex) let count = parseInt(req.body.data.pageSize) console.log('页码', start); let totalPage = Math.ceil(pingData.paging.length / count) let list = pagingArray(pingData.paging, start, count) setTimeout(function () { let code = '10000' if (start === 3) { code = '10001' } res.json({ code: code, data: { questionnaire: { title: '体质问卷', code: 7 }, itemList: list, currentPageIndex: start, totalPageCount: totalPage } }) }, 1000) }) } /** * [pagingArray 分页加载] * @param {[type]} mArray [description] * @param {[type]} pageIndex [description] * @param {[type]} mPageNum [description] * @return {[type]} [description] */ function pagingArray(mArray, pageIndex, mPageNum) { let array = mArray let pageNum = mPageNum let startPosition, endPosition startPosition = pageIndex * pageNum - pageNum endPosition = pageIndex * pageNum if (startPosition < 0) { startPosition = 0 } if (endPosition > array.length) { endPosition = array.length } return array.slice(startPosition, endPosition) }
Java
UTF-8
1,334
3.5
4
[]
no_license
package String; import java.util.Scanner; public class SubstringPractice{ public static void main(String[] args){ String comComponent="keyboard"; System.out.println(comComponent.substring( 3 )); System.out.println(comComponent.substring( 3,5 )); System.out.println(comComponent.substring( 2,2 ));//empty // System.out.println(comComponent.substring( 4,2 ));//it will give error. it has to be bigger first index // System.out.println(comComponent.substring( 4,20 ));//it will give error, it does not have 20 character Scanner input=new Scanner( System.in ); System.out.println("Please enter name and year "); String nameDate=input.nextLine(); System.out.println("first letter is m"+nameDate.startsWith( "m" )); boolean nameTrue=nameDate.contains( "muammer" ); System.out.println("Contains muammer "+nameTrue); System.out.println("Year is "+nameDate.substring( nameDate.length()-4 )); boolean dateTrue=nameDate.substring( nameDate.length()-4 ).equals("1995"); System.out.println("Year is 1995 "+dateTrue); String name="name"; System.out.println(name.replace( "me","zli" )); String exception="indexOutOfBoundException"; System.out.println(exception.replace( 'e','a' )); } }
Java
UTF-8
2,246
2.265625
2
[]
no_license
package jpashop.jpabook.controller; import jpashop.jpabook.domain.item.Book; import jpashop.jpabook.domain.item.Item; import jpashop.jpabook.service.ItemService; import lombok.RequiredArgsConstructor; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMapping; import java.util.List; @Controller @RequiredArgsConstructor public class ItemController { private final ItemService itemService; @GetMapping("/items/new") public String save(Model model){ model.addAttribute("itemForm",new BookForm()); return "items/createItemForm"; } @PostMapping("/items/new") public String createItem(BookForm bookForm){ Book book = new Book(); book.setName(bookForm.getName()); book.setPrice(bookForm.getPrice()); book.setStockQuantity(bookForm.getStockQuantity()); book.setAuthor(bookForm.getAuthor()); book.setIsbn(bookForm.getIsbn()); itemService.save(book); return "redirect:/"; } @RequestMapping("/items") public String list(Model model){ List<Item>items = itemService.findItems(); model.addAttribute("items",items); return "items/itemList"; } @GetMapping("/items/{id}/edit") public String updateForm(@PathVariable("id") Long id, Model model ){ Book item = (Book) itemService.findOne(id); BookForm form = new BookForm(); form.setId(item.getId()); form.setName(item.getName()); form.setPrice(item.getPrice()); form.setStockQuantity(item.getStockQuantity()); form.setAuthor(item.getAuthor()); form.setIsbn(item.getIsbn()); model.addAttribute("form", form); return "items/updateItemForm"; } @PostMapping("/items/{id}/edit") public String updateItem(@PathVariable("id") Long id, BookForm form){ itemService.updateItem(form.getId(),form.getName(),form.getPrice(), form.getStockQuantity()); return "redirect:/items"; } }
Java
GB18030
1,870
3.71875
4
[]
no_license
package org.leo.thread.timer; import java.util.Timer; import java.util.TimerTask; /** * TimerһڣTimerTask׳δ쳣Timer޷ԤϵΪ * Timer̲߳쳣 TimerTask׳δ쳣ֹtimer̡߳ * £TimerҲ»̵ִָ߳;ΪTimerȡˡ * ʱѾŵδִеTimerTaskԶִˣµҲܱˡ * * иóTimer׳һRumtimeExceptionjava.lang.IllegalStateException:Timer already cancelled. * ԵǻУTimer⴫Ⱦһùĵߣ * ԭͼύһTimerTaskģϣһֱȥȻʵʾ5Ӻֹˣһ쳣쳣Ϣ"Timer already cancelled" * ScheduledThreadPoolExectorƵش쳣˵java5.0ߵJDKУûʹ Timerˡ * * @author leo * */ public class TimerTest2 { private Timer timer = new Timer(); // ʱ public void lanuchTimer() { timer.schedule(new TimerTask() { public void run() { throw new RuntimeException(); } }, 1000 * 3, 500); } // ʱһ public void addOneTask() { timer.schedule(new TimerTask() { public void run() { System.out.println("hello world"); } }, 1000 * 1, 1000 * 5); } public static void main(String[] args) throws Exception { TimerTest2 test = new TimerTest2(); test.lanuchTimer(); Thread.sleep(1000 * 5);// 5֮һ test.addOneTask(); } }
Markdown
UTF-8
2,234
2.625
3
[ "CC-BY-4.0", "MIT" ]
permissive
--- title: 使用 Synapse SQL 指派變數 description: 在本文中,您將找到使用 Synapse SQL 指派 T-sql 變數的秘訣。 services: synapse-analytics author: azaricstefan ms.service: synapse-analytics ms.topic: conceptual ms.subservice: sql ms.date: 04/15/2020 ms.author: stefanazaric ms.reviewer: jrasnick ms.openlocfilehash: 4ec59b7cc124a87b3939d095d03ee4a8bae9070f ms.sourcegitcommit: c157b830430f9937a7fa7a3a6666dcb66caa338b ms.translationtype: MT ms.contentlocale: zh-TW ms.lasthandoff: 11/17/2020 ms.locfileid: "94685761" --- # <a name="assign-variables-with-synapse-sql"></a>使用 Synapse SQL 指派變數 在本文中,您將找到使用 Synapse SQL 指派 T-sql 變數的秘訣。 ## <a name="set-variables-with-declare"></a>使用 DECLARE 設定變數 Synapse SQL 中的變數是使用 `DECLARE` 語句或語句來設定 `SET` 。 使用 DECLARE 初始化變數是在 Synapse SQL 中設定變數值最具彈性的方式之一。 ```sql DECLARE @v int = 0 ; ``` 您也可以使用 DECLARE,一次設定一個以上的變數。 您無法使用 [選取或更新] 執行下列動作: ```sql DECLARE @v INT = (SELECT TOP 1 c_customer_sk FROM Customer where c_last_name = 'Smith') , @v1 INT = (SELECT TOP 1 c_customer_sk FROM Customer where c_last_name = 'Jones') ; ``` 您無法在相同的 DECLARE 語句中初始化和使用變數。 為了說明,由於 *\@ p1* 已初始化並在相同的 DECLARE 語句中使用,因此不允許下列範例。 下列範例會顯示錯誤。 ```sql DECLARE @p1 int = 0 , @p2 int = (SELECT COUNT (*) FROM sys.types where is_user_defined = @p1 ) ; ``` ## <a name="set-values-with-set"></a>使用 SET 設定值 SET 是設定單一變數時常見的方法。 下列陳述式是使用 SET 設定變數所有的有效方法: ```sql SET @v = (Select max(database_id) from sys.databases); SET @v = 1; SET @v = @v+1; SET @v +=1; ``` 您一次只能使用 SET 設定一個變數。 不過,允許複合運算子。 ## <a name="limitations"></a>限制 您無法使用 UPDATE 進行變數指派。 ## <a name="next-steps"></a>後續步驟 如需更多開發秘訣,請參閱 [SYNAPSE SQL 開發總覽](develop-overview.md) 文章。
JavaScript
UTF-8
1,063
3.03125
3
[]
no_license
// export const Hamburger = (data) => { // const state = { // // this state to check if the hamburger is clicked // isMenuOpen: false, // }; // const openMenu = () => { // state.isMenuOpen = !state.isMenuOpen; // let navContainer = document.querySelector(".nav-container"); // if (state.isMenuOpen) { // menuIcon.src = data.imageSrc; // navContainer.classList.add("open-nav"); // } else { // menuIcon.src = data.imageSrc; // navContainer.classList.remove("open-nav"); // } // }; // const markUp = document.createElement("div"); // markUp.classList.add("hamburger-menu"); // // attach event listener to hide/display nav container // // and change the icon to close or hamburger // markUp.addEventListener("click", openMenu); // const menuIcon = document.createElement("img"); // // intialize menu icon with a hamburger icon // menuIcon.src =data.imageSrc; // markUp.appendChild(menuIcon); // return markUp; // };
PHP
UTF-8
2,203
2.53125
3
[]
no_license
<?php /** * @description * This exports the acknowledged contributions to a mail merge file. * * @author Chezre Fredericks * @date_created 21/01/2014 * @Changes * */ # BOOTSTRAP include("inc/globals.php"); $filename = preg_replace('/ /','_',$_POST['filename']); if (file_exists('acklists/'.$filename)) $filename = preg_replace('/.txt/',date("-YmdHis").'.txt',$filename); $cnt = 0; # CREATE MAIL MERGE DATA FOR EACH CONTRIBUTION foreach ($_POST['trxns'] as $k=>$v) { $t = new transaction(); $t->Load($v); $mr = new mergerecord; $mr->loadByTrnsId($v); $e = $mr->getMergeRecordHeadings(); foreach ($mr->xmlFields->field as $m) { $f = (string)$m['id']; $e[(string)$m['label']] = $mr->$m['id']; } $exportArray[] = $e; # INSERT AN ACKNOWLEDGEMENT RECORD INTO THE DMS dms_acknowledgement TABLE $a = new acknowledgement(); $a->ack_date = date("Y-m-d H:i:s"); $a->ack_civi_con_id = $t->civ_contribution_id; $a->ack_document = $filename; $a->ack_method = 'export'; $a->ack_trns_id = $t->trns_id; $a->ack_usr_id = $_SESSION['dms_user']['userid']; $a->Save(); # UPDATE LAST ACKNOWLEDGEMENT DATE $ap = new acknowledgementpreferences(); $ap->LoadByContactId($t->civ_contact_id); $ap->apr_last_acknowledgement_date = $a->ack_date; $ap->apr_last_acknowledgement_trns_id = $t->trns_id; $ap->apr_unacknowledged_total = 0; $ap->Save(); # UPDATE THE CONTRIBUTION RECORD WITH A THANKYOU DATE IN THE CIVICRM DATABASE. $updateParams['version'] = 3; $updateParams['id'] = $t->civ_contribution_id; $updateParams['thankyou_date'] = $a->ack_date; $result = civicrm_api('Contribution', 'create', $updateParams); $cnt++; } # UPDATE THE SESSION WITH THE LATEST MAIL MERGE FILE CREATED $_SESSION['dms_acknowledgements']['lastFilename'] = $filename; $_SESSION['dms_acknowledgements']['noOfRecords'] = $cnt; # CREATE THE CSV FILE ON THE SERVER (CAN BE DOWNLOADED AT A LATER STAGE) $GLOBALS['functions']->exportArrayToCSV('acklists/'.$filename,$exportArray); # GO TO THE EXPORTED ACKNOWLEDGEMENTS PAGE header('location:export.acknowledgements.php');
Ruby
UTF-8
357
2.625
3
[]
no_license
class ProspectoPaquete < ActiveRecord::Base def self.paquetes_de(servicio) self.find(:all, :conditions => "servicio = '#{servicio}'") end def self.paquetes_con_nombre_de(producto) @paquetes_raw = paquetes_de(producto) @nombres = Array.new for paquete_raw in @paquetes_raw @nombres << paquete_raw.paquete end return @nombres end end
Java
UTF-8
1,150
2.3125
2
[ "Apache-2.0" ]
permissive
package com.philemonworks.critter.condition; import java.util.regex.Matcher; import java.util.regex.Pattern; import com.philemonworks.critter.action.RuleIngredient; import com.philemonworks.critter.rule.RuleContext; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class Path extends RuleIngredient implements Condition { private static final Logger LOG = LoggerFactory.getLogger(Host.class); public String matches; @Override public boolean test(RuleContext ctx) { Pattern p = Pattern.compile(this.matches); Matcher m = p.matcher(ctx.forwardURI.getPath()); boolean ok = false; if (m.matches()) { // take any group values for (int g = 0; g <= m.groupCount(); g++) { ctx.parameters.put("path." + g, m.group(g)); } ok = true; } if (ctx.rule.tracing) { LOG.info("rule={} path={} matches={} test={}", ctx.rule.id, ctx.forwardURI.getPath(), matches, ok); } return ok; } @Override public String explain() { return "url path matches [" + matches + "]"; } }
Java
UTF-8
649
2.265625
2
[]
no_license
package com.urservices.domain; import static org.assertj.core.api.Assertions.assertThat; import com.urservices.web.rest.TestUtil; import org.junit.jupiter.api.Test; class ExamenTest { @Test void equalsVerifier() throws Exception { TestUtil.equalsVerifier(Examen.class); Examen examen1 = new Examen(); examen1.setId(1L); Examen examen2 = new Examen(); examen2.setId(examen1.getId()); assertThat(examen1).isEqualTo(examen2); examen2.setId(2L); assertThat(examen1).isNotEqualTo(examen2); examen1.setId(null); assertThat(examen1).isNotEqualTo(examen2); } }
C++
UTF-8
2,246
2.5625
3
[]
no_license
// This file defines utility macros for working with C++. #pragma once #include "phd/private/macros_impl.h" #include <stdio.h> #include <execinfo.h> #include <signal.h> #include <stdlib.h> #include <unistd.h> #ifdef DEBUG #error "C preprocessor macro DEBUG() already defined!" #endif #ifdef INFO #error "C preprocessor macro INFO() already defined!" #endif #ifdef WARN #error "C preprocessor macro WARN() already defined!" #endif #ifdef ERROR #error "C preprocessor macro ERROR() already defined!" #endif #ifdef FATAL #error "C preprocessor macro FATAL() already defined!" #endif // Log the given message with varying levels of severity. The arguments should // be a format string. A newline is appended to the message when printed. #define DEBUG(...) LOG_WITH_PREFIX("D", __VA_ARGS__) #define INFO(...) LOG_WITH_PREFIX("I", __VA_ARGS__) #define WARN(...) LOG_WITH_PREFIX("W", __VA_ARGS__) #define ERROR(...) LOG_WITH_PREFIX("E", __VA_ARGS__) // Terminate the program with exit code 1, printing the given message to // stderr, followed by a stack trace. The arguments should be a format string. // A newline is appended to the message when printed. Code to dump a stack // trace by @tgamblin at: https://stackoverflow.com/a/77336 #define FATAL(...) \ { \ LOG_WITH_PREFIX("F", __VA_ARGS__); \ void *array[10]; \ size_t size; \ size = backtrace(array, 10); \ backtrace_symbols_fd(array, size, STDERR_FILENO); \ exit(1); \ } #ifdef CHECK #error "C preprocessor macro CHECK() already defined!" #endif // Check that `conditional` is true else fail fatally. #define CHECK(conditional) \ { \ if (!(conditional)) { \ FATAL("CHECK(" #conditional ") failed!"); \ } \ } namespace test { namespace debug { // Debug type: template<typename T> struct debug_t {}; } // debug namespace } // test namespace // Macros for debugging types: // // Fatally crash the compiler by attempting to construct an object of // 'type' using an unknown argument. #define PRINT_TYPENAME(type) type _____{test::debug::debug_t<type>}; // // Fatally crash the compiler by attempting to cast 'variable' to an // unknown type. #define PRINT_TYPE(variable) static_cast<test::debug::debug_t<decltype(variable)>>(variable);
C++
UTF-8
315
3.984375
4
[]
no_license
#include<iostream> #include<vector> using namespace std; /* Task: 1. implement a vector in c++ 2. initialize the vector with values 3. iterate over the vector using the auto keyword */ int main(){ vector<int> v = {1, 2, 3, 4, 5}; for (auto &it : v) { cout << it << ' '; } return 0; }
C++
UTF-8
1,256
2.765625
3
[]
no_license
#include <iostream> #include <cstdio> #include <cstdlib> using namespace std; int main() { int T; cin >> T; for(int i = 1; i <= T; ++i) { int N; int nrSenators[30]; cin >> N; int total = 0; for(int j = 0; j < N; ++j) { cin >> nrSenators[j]; total += nrSenators[j]; } cout << "Case #" << i << ":"; for(int j = 0; j < total; ++j) { int next = -1; int two = -1; int largest = 0; bool third = false; for(int h = 0; h < N; ++h) { if(nrSenators[h] > largest) { largest = nrSenators[h]; next = h; two = -1; third = false; } else if(nrSenators[h] == largest) { if(two != -1) { third = true; } two = h; } } cout << " " << (char)('A' + next); --nrSenators[next]; if(two != -1 && !(third && largest == 1)) { cout << (char)('A' + two); --nrSenators[two]; ++j; } } cout << endl; // cout << " "; // for(int j = 0; j < N; ++j) { // if(nrSenators[j]) { // cout << (char)('A' + j); // } // } // cout << endl; } return 0; }